blob: 5d666ed93eb47b84372755807205ac5dabe03dc3 [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001#! /bin/sh
Guido van Rossum627b2d71993-12-24 10:39:16 +00002# Guess values for system-dependent variables and create Makefiles.
Ross Lagerwall2bb842a2012-10-29 17:39:19 +00003# Generated by GNU Autoconf 2.69 for python 3.4.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004#
Georg Brandle2e15612009-05-20 18:25:10 +00005# Report bugs to <http://bugs.python.org/>.
Martin v. Löwis1d459062005-03-14 21:23:33 +00006#
Matthias Kloseb9621712010-04-24 17:59:49 +00007#
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Matthias Kloseb9621712010-04-24 17:59:49 +00009#
10#
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011# 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:49 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Martin v. Löwis11437992002-04-12 09:54:03 +000016
Thomas Wouters47b49bf2007-08-30 22:15:33 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Matthias Kloseb9621712010-04-24 17:59:49 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000020 emulate sh
21 NULLCMD=:
Matthias Kloseb9621712010-04-24 17:59:49 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:04 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Thomas Wouters47b49bf2007-08-30 22:15:33 +000025 setopt NO_GLOB_SUBST
Skip Montanaroeb33e5a2007-08-17 12:57:41 +000026else
Matthias Kloseb9621712010-04-24 17:59:49 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000032esac
Martin v. Löwis11437992002-04-12 09:54:03 +000033fi
Thomas Wouters89f507f2006-12-13 04:49:30 +000034
35
Matthias Kloseb9621712010-04-24 17:59:49 +000036as_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:03 +000073
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Matthias Kloseb9621712010-04-24 17:59:49 +000076 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:33 +000081fi
Martin v. Löwis11437992002-04-12 09:54:03 +000082
Thomas Wouters47b49bf2007-08-30 22:15:33 +000083
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:33 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Victor Stinnere0be4232011-10-25 13:06:09 +020092as_myself=
Matthias Kloseb9621712010-04-24 17:59:49 +000093case $0 in #((
Thomas Wouters47b49bf2007-08-30 22:15:33 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:03 +000096for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000102IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +0000103
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000104 ;;
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:49 +0000112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000114fi
115
Matthias Kloseb9621712010-04-24 17:59:49 +0000116# 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:33 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Matthias Kloseb9621712010-04-24 17:59:49 +0000129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000133
Matthias Kloseb9621712010-04-24 17:59:49 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
Ross Lagerwall1b863eb2012-10-29 17:31:54 +0000137# 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:49 +0000162if 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:54 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
Matthias Kloseb9621712010-04-24 17:59:49 +0000197 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:54 +0000241 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:49 +0000260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: http://bugs.python.org/ about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +0200358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Matthias Kloseb9621712010-04-24 17:59:49 +0000359
360
361} # as_fn_mkdir_p
Ross Lagerwall1b863eb2012-10-29 17:31:54 +0000362
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:49 +0000370# 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 07:30:30 +0200406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
Matthias Kloseb9621712010-04-24 17:59:49 +0000408# 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 07:30:30 +0200410# script with STATUS, using 1 if that was 0.
Matthias Kloseb9621712010-04-24 17:59:49 +0000411as_fn_error ()
412{
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +0200413 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:49 +0000417 fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +0200418 $as_echo "$as_me: error: $2" >&2
Matthias Kloseb9621712010-04-24 17:59:49 +0000419 as_fn_exit $as_status
420} # as_fn_error
421
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000422if 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:49 +0000435if (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:33 +0000440
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000441as_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:49 +0000445$as_echo X/"$0" |
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000446 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:49 +0000460# 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:33 +0000466
467
Matthias Kloseb9621712010-04-24 17:59:49 +0000468 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:33 +0000473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03 +0000477 sed '
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Martin v. Löwis11437992002-04-12 09:54:03 +0000482 N
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03 +0000485 t loop
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000486 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03 +0000487 ' >$as_me.lineno &&
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000488 chmod +x "$as_me.lineno" ||
Matthias Kloseb9621712010-04-24 17:59:49 +0000489 { $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:03 +0000490
Ross Lagerwall1b863eb2012-10-29 17:31:54 +0000491 # 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:03 +0000495 # 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:33 +0000497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03 +0000499 # Exit status is that of the last command.
500 exit
501}
502
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000503ECHO_C= ECHO_N= ECHO_T=
Matthias Kloseb9621712010-04-24 17:59:49 +0000504case `echo -n x` in #(((((
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000505-n*)
Matthias Kloseb9621712010-04-24 17:59:49 +0000506 case `echo 'xy\c'` in
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Matthias Kloseb9621712010-04-24 17:59:49 +0000508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000511 esac;;
512*)
513 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03 +0000514esac
Ronald Oussoren74f29b42009-09-20 20:09:26 +0000515
Martin v. Löwis11437992002-04-12 09:54:03 +0000516rm -f conf$$ conf$$.exe conf$$.file
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
Matthias Kloseb9621712010-04-24 17:59:49 +0000521 mkdir conf$$.dir 2>/dev/null
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000522fi
Matthias Kloseb9621712010-04-24 17:59:49 +0000523if (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:54 +0000529 # In both cases, we have to default to `cp -pR'.
Matthias Kloseb9621712010-04-24 17:59:49 +0000530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Ross Lagerwall1b863eb2012-10-29 17:31:54 +0000531 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:49 +0000532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
Ross Lagerwall1b863eb2012-10-29 17:31:54 +0000535 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:49 +0000536 fi
Martin v. Löwis11437992002-04-12 09:54:03 +0000537else
Ross Lagerwall1b863eb2012-10-29 17:31:54 +0000538 as_ln_s='cp -pR'
Martin v. Löwis11437992002-04-12 09:54:03 +0000539fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03 +0000542
Skip Montanaro6dead952003-09-25 14:50:04 +0000543if mkdir -p . 2>/dev/null; then
Matthias Kloseb9621712010-04-24 17:59:49 +0000544 as_mkdir_p='mkdir -p "$as_dir"'
Skip Montanaro6dead952003-09-25 14:50:04 +0000545else
Skip Montanarof0d5f792004-08-15 14:08:23 +0000546 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04 +0000547 as_mkdir_p=false
548fi
549
Ross Lagerwall1b863eb2012-10-29 17:31:54 +0000550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Martin v. Löwis11437992002-04-12 09:54:03 +0000552
553# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23 +0000554as_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:03 +0000555
556# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +0000558
559
Matthias Kloseb9621712010-04-24 17:59:49 +0000560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Martin v. Löwis11437992002-04-12 09:54:03 +0000562
563# Name of the host.
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +0200564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Martin v. Löwis11437992002-04-12 09:54:03 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Martin v. Löwis11437992002-04-12 09:54:03 +0000568#
569# Initializations.
570#
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000571ac_default_prefix=/usr/local
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000572ac_clean_files=
Skip Montanaro6dead952003-09-25 14:50:04 +0000573ac_config_libobj_dir=.
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000574LIBOBJS=
Martin v. Löwis11437992002-04-12 09:54:03 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Martin v. Löwis11437992002-04-12 09:54:03 +0000579
Martin v. Löwis11437992002-04-12 09:54:03 +0000580# Identity of this package.
Martin v. Löwis88afe662002-10-26 13:47:44 +0000581PACKAGE_NAME='python'
582PACKAGE_TARNAME='python'
Georg Brandl08a90122012-09-29 09:34:13 +0200583PACKAGE_VERSION='3.4'
584PACKAGE_STRING='python 3.4'
Georg Brandle2e15612009-05-20 18:25:10 +0000585PACKAGE_BUGREPORT='http://bugs.python.org/'
Matthias Kloseb9621712010-04-24 17:59:49 +0000586PACKAGE_URL=''
Martin v. Löwis11437992002-04-12 09:54:03 +0000587
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:33 +0000592#ifdef HAVE_SYS_TYPES_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000593# include <sys/types.h>
594#endif
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000595#ifdef HAVE_SYS_STAT_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000596# include <sys/stat.h>
597#endif
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000598#ifdef STDC_HEADERS
Martin v. Löwis11437992002-04-12 09:54:03 +0000599# include <stdlib.h>
600# include <stddef.h>
601#else
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000602# ifdef HAVE_STDLIB_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000603# include <stdlib.h>
604# endif
605#endif
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000608# include <memory.h>
609# endif
610# include <string.h>
611#endif
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000612#ifdef HAVE_STRINGS_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000613# include <strings.h>
614#endif
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000615#ifdef HAVE_INTTYPES_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000616# include <inttypes.h>
Thomas Wouters477c8d52006-05-27 19:21:47 +0000617#endif
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000622# include <unistd.h>
623#endif"
624
Matthias Kloseb9621712010-04-24 17:59:49 +0000625ac_subst_vars='LTLIBOBJS
Ned Deily322f5ba2013-11-21 23:01:59 -0800626ENSUREPIP
Ronald Oussoren74f29b42009-09-20 20:09:26 +0000627SRCDIRS
Matthias Kloseb9621712010-04-24 17:59:49 +0000628THREADHEADERS
doko@python.org87421192013-01-26 11:39:31 +0100629LIBPL
630PY_ENABLE_SHARED
doko@ubuntu.comd5537d02013-03-21 13:21:49 -0700631EXT_SUFFIX
Barry Warsaw35f3a2c2010-09-03 18:30:30 +0000632SOABI
Matthias Kloseb9621712010-04-24 17:59:49 +0000633LIBC
634LIBM
635HAVE_GETHOSTBYNAME
636HAVE_GETHOSTBYNAME_R
637HAVE_GETHOSTBYNAME_R_3_ARG
638HAVE_GETHOSTBYNAME_R_5_ARG
639HAVE_GETHOSTBYNAME_R_6_ARG
640LIBOBJS
641TRUE
642MACHDEP_OBJS
643DYNLOADFILE
644DLINCLDIR
645THREADOBJ
646LDLAST
647USE_THREAD_MODULE
648SIGNAL_OBJS
649USE_SIGNAL_MODULE
Ned Deilyd819b932013-09-06 01:07:05 -0700650TCLTK_LIBS
651TCLTK_INCLUDES
Matthias Kloseb9621712010-04-24 17:59:49 +0000652LIBFFI_INCLUDEDIR
653PKG_CONFIG
654SHLIBS
655CFLAGSFORSHARED
656LINKFORSHARED
657CCSHARED
658BLDSHARED
659LDCXXSHARED
660LDSHARED
doko@ubuntu.comd5537d02013-03-21 13:21:49 -0700661SHLIB_SUFFIX
Matthias Kloseb9621712010-04-24 17:59:49 +0000662LIBTOOL_CRUFT
663OTHER_LIBTOOL_OPT
664UNIVERSAL_ARCH_FLAGS
665BASECFLAGS
666OPT
Barry Warsaw8cf4eae2010-10-16 01:04:07 +0000667ABIFLAGS
Matthias Kloseb9621712010-04-24 17:59:49 +0000668LN
Matthias Klose93a0ef12012-03-15 18:08:34 +0100669MKDIR_P
Matthias Kloseb9621712010-04-24 17:59:49 +0000670INSTALL_DATA
671INSTALL_SCRIPT
672INSTALL_PROGRAM
Matthias Klosec4c48422012-10-21 23:05:35 +0200673PYTHON
674ASDLGEN
doko@ubuntu.com58844492012-06-30 18:25:32 +0200675ac_ct_READELF
676READELF
Matthias Kloseb9621712010-04-24 17:59:49 +0000677ARFLAGS
doko@ubuntu.com51f65942012-06-30 14:42:46 +0200678ac_ct_AR
Matthias Kloseb9621712010-04-24 17:59:49 +0000679AR
680RANLIB
Daniel Stutzbacha606faa2010-08-31 19:51:07 +0000681USE_INLINE
Matthias Kloseb9621712010-04-24 17:59:49 +0000682GNULD
683LINKCC
Barry Warsaw8cf4eae2010-10-16 01:04:07 +0000684LDVERSION
Matthias Kloseb9621712010-04-24 17:59:49 +0000685RUNSHARED
686INSTSONAME
687LDLIBRARYDIR
Martin v. Löwisd1fc34d2010-12-30 14:55:47 +0000688PY3LIBRARY
Matthias Kloseb9621712010-04-24 17:59:49 +0000689BLDLIBRARY
690DLLLIBRARY
691LDLIBRARY
692LIBRARY
doko@python.org3e6e2ac2013-01-25 13:12:29 +0100693MULTIARCH
Matthias Kloseb9621712010-04-24 17:59:49 +0000694BUILDEXEEXT
695EGREP
696GREP
697CPP
Martin v. Löwis48e14d32011-05-09 07:37:45 +0200698NO_AS_NEEDED
doko@ubuntu.com51f65942012-06-30 14:42:46 +0200699ac_ct_CXX
Matthias Kloseb9621712010-04-24 17:59:49 +0000700MAINCC
701CXX
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709EXPORT_MACOSX_DEPLOYMENT_TARGET
710CONFIGURE_MACOSX_DEPLOYMENT_TARGET
711SGI_ABI
doko@ubuntu.com1abe1c52012-06-30 20:42:45 +0200712_PYTHON_HOST_PLATFORM
Matthias Kloseb9621712010-04-24 17:59:49 +0000713MACHDEP
Ronald Oussoren86b33c82010-04-30 11:41:56 +0000714FRAMEWORKINSTALLAPPSPREFIX
Matthias Kloseb9621712010-04-24 17:59:49 +0000715FRAMEWORKUNIXTOOLSPREFIX
Ned Deilyb8f944f2013-11-21 22:42:25 -0800716FRAMEWORKPYTHONW
Matthias Kloseb9621712010-04-24 17:59:49 +0000717FRAMEWORKALTINSTALLLAST
718FRAMEWORKALTINSTALLFIRST
719FRAMEWORKINSTALLLAST
720FRAMEWORKINSTALLFIRST
721PYTHONFRAMEWORKINSTALLDIR
722PYTHONFRAMEWORKPREFIX
723PYTHONFRAMEWORKDIR
724PYTHONFRAMEWORKIDENTIFIER
725PYTHONFRAMEWORK
726LIPO_32BIT_FLAGS
727ARCH_RUN_32BIT
728UNIVERSALSDK
729CONFIG_ARGS
730SOVERSION
731VERSION
doko@ubuntu.com1abe1c52012-06-30 20:42:45 +0200732PYTHON_FOR_BUILD
Matthias Kloseca2f6ec2012-03-15 21:30:11 +0100733host_os
734host_vendor
735host_cpu
736host
737build_os
738build_vendor
739build_cpu
740build
Benjamin Peterson8c6f88e2011-05-31 20:52:17 -0500741HAS_HG
742HGBRANCH
743HGTAG
744HGVERSION
Trent Nelson4d4ec652012-10-16 08:51:24 -0400745BASECPPFLAGS
Matthias Kloseb9621712010-04-24 17:59:49 +0000746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
Skip Montanaro6dead952003-09-25 14:50:04 +0000784ac_subst_files=''
Matthias Kloseb9621712010-04-24 17:59:49 +0000785ac_user_opts='
786enable_option_checking
787enable_universalsdk
788with_universal_archs
789with_framework_name
790enable_framework
791with_gcc
792with_cxx_main
793with_suffix
794enable_shared
795enable_profiling
796with_pydebug
Christian Heimes985ecdc2013-11-20 11:46:18 +0100797with_hash_algorithm
Matthias Kloseb9621712010-04-24 17:59:49 +0000798with_libs
799with_system_expat
800with_system_ffi
Stefan Krah60187b52012-03-23 19:06:27 +0100801with_system_libmpdec
Benjamin Peterson076ed002010-10-31 17:11:02 +0000802enable_loadable_sqlite_extensions
Ned Deilyd819b932013-09-06 01:07:05 -0700803with_tcltk_includes
804with_tcltk_libs
Matthias Kloseb9621712010-04-24 17:59:49 +0000805with_dbmliborder
806with_signal_module
Matthias Kloseb9621712010-04-24 17:59:49 +0000807with_threads
808with_thread
809enable_ipv6
810with_doc_strings
811with_tsc
812with_pymalloc
813with_valgrind
Matthias Kloseb9621712010-04-24 17:59:49 +0000814with_fpectl
815with_libm
816with_libc
817enable_big_digits
Matthias Kloseb9621712010-04-24 17:59:49 +0000818with_computed_gotos
Ned Deily322f5ba2013-11-21 23:01:59 -0800819with_ensurepip
Matthias Kloseb9621712010-04-24 17:59:49 +0000820'
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000821 ac_precious_vars='build_alias
822host_alias
823target_alias
doko@python.orgeab42bf2013-01-26 18:57:19 +0100824MACHDEP
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000825CC
826CFLAGS
827LDFLAGS
828LIBS
829CPPFLAGS
Charles-François Natali47413c12011-10-06 19:47:44 +0200830CPP'
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000831
Guido van Rossum627b2d71993-12-24 10:39:16 +0000832
Guido van Rossum7f43da71994-08-01 12:15:30 +0000833# Initialize some variables set by options.
Martin v. Löwis11437992002-04-12 09:54:03 +0000834ac_init_help=
835ac_init_version=false
Matthias Kloseb9621712010-04-24 17:59:49 +0000836ac_unrecognized_opts=
837ac_unrecognized_sep=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000838# The variables have the same names as the options, with
839# dashes changed to underlines.
Martin v. Löwis11437992002-04-12 09:54:03 +0000840cache_file=/dev/null
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000841exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30 +0000842no_create=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30 +0000848silent=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000849site=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000850srcdir=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000851verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000852x_includes=NONE
853x_libraries=NONE
Martin v. Löwis11437992002-04-12 09:54:03 +0000854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000860# (The list follows the same order as the GNU Coding Standards.)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000869includedir='${prefix}/include'
870oldincludedir='/usr/include'
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000871docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000880
Guido van Rossum7f43da71994-08-01 12:15:30 +0000881ac_prev=
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000882ac_dashdash=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000883for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +0000884do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000887 eval $ac_prev=\$ac_option
Guido van Rossum7f43da71994-08-01 12:15:30 +0000888 ac_prev=
889 continue
Guido van Rossum627b2d71993-12-24 10:39:16 +0000890 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000891
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000892 case $ac_option in
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +0200893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000896 esac
Guido van Rossum7f43da71994-08-01 12:15:30 +0000897
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000903
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000907 bindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000908
909 -build | --build | --buil | --bui | --bu)
Martin v. Löwis11437992002-04-12 09:54:03 +0000910 ac_prev=build_alias ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000912 build_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000913
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000923
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000924 -datadir | --datadir | --datadi | --datad)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000925 ac_prev=datadir ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000927 datadir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000928
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
Guido van Rossum7f43da71994-08-01 12:15:30 +0000936 -disable-* | --disable-*)
Matthias Kloseb9621712010-04-24 17:59:49 +0000937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000938 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49 +0000939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +0200940 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:49 +0000941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945"enable_$ac_useropt"
946"*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +0000951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000961
962 -enable-* | --enable-*)
Matthias Kloseb9621712010-04-24 17:59:49 +0000963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000964 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49 +0000965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +0200966 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:49 +0000967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000977
Guido van Rossum7f43da71994-08-01 12:15:30 +0000978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000985 exec_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000986
987 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000990
Martin v. Löwis11437992002-04-12 09:54:03 +0000991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000997
998 -host | --host | --hos | --ho)
Martin v. Löwis11437992002-04-12 09:54:03 +0000999 ac_prev=host_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001000 -host=* | --host=* | --hos=* | --ho=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001001 host_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001002
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001014 includedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001019 infodir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001024 libdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001031 libexecdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001032
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001038 -localstatedir | --localstatedir | --localstatedi | --localstated \
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001039 | --localstate | --localstat | --localsta | --localst | --locals)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001043 localstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001048 mandir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001049
Guido van Rossum7f43da71994-08-01 12:15:30 +00001050 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Martin v. Löwis11437992002-04-12 09:54:03 +00001055 | --no-cr | --no-c | -n)
Guido van Rossum7f43da71994-08-01 12:15:30 +00001056 no_create=yes ;;
1057
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001061
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001069 oldincludedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001070
Guido van Rossum7f43da71994-08-01 12:15:30 +00001071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001074 prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001081 program_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001088 program_suffix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001105 program_transform_name=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001106
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
Guido van Rossum7f43da71994-08-01 12:15:30 +00001117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001125 sbindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001136 sharedstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001137
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001141 site=$ac_optarg ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001142
Guido van Rossum7f43da71994-08-01 12:15:30 +00001143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001146 srcdir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001147
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001153 sysconfdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001154
Guido van Rossum7f43da71994-08-01 12:15:30 +00001155 -target | --target | --targe | --targ | --tar | --ta | --t)
Martin v. Löwis11437992002-04-12 09:54:03 +00001156 ac_prev=target_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001158 target_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
Martin v. Löwis11437992002-04-12 09:54:03 +00001163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001165
1166 -with-* | --with-*)
Matthias Kloseb9621712010-04-24 17:59:49 +00001167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001168 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49 +00001169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001170 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:49 +00001171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175"with_$ac_useropt"
1176"*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001181
1182 -without-* | --without-*)
Matthias Kloseb9621712010-04-24 17:59:49 +00001183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001184 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49 +00001185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001186 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:49 +00001187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191"with_$ac_useropt"
1192"*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001197
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001207 x_includes=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001214 x_libraries=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001215
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217Try \`$0 --help' for more information"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001218 ;;
1219
Martin v. Löwis11437992002-04-12 09:54:03 +00001220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49 +00001223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Matthias Kloseb9621712010-04-24 17:59:49 +00001226 esac
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001227 eval $ac_envvar=\$ac_optarg
Martin v. Löwis11437992002-04-12 09:54:03 +00001228 export $ac_envvar ;;
1229
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001230 *)
Martin v. Löwis11437992002-04-12 09:54:03 +00001231 # FIXME: should be removed in autoconf 3.0.
Matthias Kloseb9621712010-04-24 17:59:49 +00001232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Matthias Kloseb9621712010-04-24 17:59:49 +00001234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Victor Stinnere0be4232011-10-25 13:06:09 +02001235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001236 ;;
1237
1238 esac
Guido van Rossum627b2d71993-12-24 10:39:16 +00001239done
1240
Guido van Rossum7f43da71994-08-01 12:15:30 +00001241if test -n "$ac_prev"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001243 as_fn_error $? "missing argument to $ac_option"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001244fi
1245
Matthias Kloseb9621712010-04-24 17:59:49 +00001246if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Matthias Kloseb9621712010-04-24 17:59:49 +00001250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252fi
1253
1254# Check all directory arguments for consistency.
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001255for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001259do
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001260 eval ac_val=\$$ac_var
Matthias Kloseb9621712010-04-24 17:59:49 +00001261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
Martin v. Löwis11437992002-04-12 09:54:03 +00001268 case $ac_val in
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001271 esac
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Martin v. Löwis11437992002-04-12 09:54:03 +00001273done
Guido van Rossum627b2d71993-12-24 10:39:16 +00001274
Martin v. Löwis11437992002-04-12 09:54:03 +00001275# There might be people who depend on the old broken behavior: `$host'
1276# used to hold the argument of --host etc.
1277# FIXME: To remove some day.
1278build=$build_alias
1279host=$host_alias
1280target=$target_alias
Guido van Rossum627b2d71993-12-24 10:39:16 +00001281
Martin v. Löwis11437992002-04-12 09:54:03 +00001282# FIXME: To remove some day.
1283if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
Martin v. Löwis11437992002-04-12 09:54:03 +00001286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
1295
Guido van Rossum627b2d71993-12-24 10:39:16 +00001296
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001300 as_fn_error $? "working directory cannot be determined"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001302 as_fn_error $? "pwd does not report name of working directory"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001303
1304
Guido van Rossum627b2d71993-12-24 10:39:16 +00001305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001307 ac_srcdir_defaulted=yes
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001308 # Try the directory containing this script, then the parent directory.
Matthias Kloseb9621712010-04-24 17:59:49 +00001309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001332 srcdir=$ac_confdir
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001333 if test ! -r "$srcdir/$ac_unique_file"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001334 srcdir=..
1335 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001336else
1337 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001338fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Thomas Wouters477c8d52006-05-27 19:21:47 +00001342fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
1357for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001363
Martin v. Löwis11437992002-04-12 09:54:03 +00001364#
1365# Report the --help message.
1366#
1367if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
Georg Brandl08a90122012-09-29 09:34:13 +02001371\`configure' configures python 3.4 to adapt to many kinds of systems.
Martin v. Löwis11437992002-04-12 09:54:03 +00001372
1373Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378Defaults for the options are specified in brackets.
1379
1380Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001385 -q, --quiet, --silent do not print \`checking ...' messages
Martin v. Löwis11437992002-04-12 09:54:03 +00001386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
Martin v. Löwis11437992002-04-12 09:54:03 +00001391Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
Matthias Kloseb9621712010-04-24 17:59:49 +00001393 [$ac_default_prefix]
Martin v. Löwis11437992002-04-12 09:54:03 +00001394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Matthias Kloseb9621712010-04-24 17:59:49 +00001395 [PREFIX]
Martin v. Löwis11437992002-04-12 09:54:03 +00001396
1397By default, \`make install' will install all the files in
1398\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400for instance \`--prefix=\$HOME'.
1401
1402For better control, use the options below.
1403
1404Fine tuning of the installation directories:
Matthias Kloseb9621712010-04-24 17:59:49 +00001405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
Martin v. Löwis11437992002-04-12 09:54:03 +00001424_ACEOF
1425
1426 cat <<\_ACEOF
Matthias Kloseca2f6ec2012-03-15 21:30:11 +01001427
1428System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Martin v. Löwis11437992002-04-12 09:54:03 +00001431_ACEOF
1432fi
1433
1434if test -n "$ac_init_help"; then
Martin v. Löwis88afe662002-10-26 13:47:44 +00001435 case $ac_init_help in
Georg Brandl08a90122012-09-29 09:34:13 +02001436 short | recursive ) echo "Configuration of python 3.4:";;
Martin v. Löwis88afe662002-10-26 13:47:44 +00001437 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00001438 cat <<\_ACEOF
1439
1440Optional Features:
Matthias Kloseb9621712010-04-24 17:59:49 +00001441 --disable-option-checking ignore unrecognized --enable/--with options
Martin v. Löwis11437992002-04-12 09:54:03 +00001442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Christian Heimes68f5fbe2008-02-14 08:27:37 +00001444 --enable-universalsdk[=SDKDIR]
Ned Deilycbfb9a52012-06-23 16:02:19 -07001445 Build fat binary against Mac OS X SDK
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001446 --enable-framework[=INSTALLDIR]
1447 Build (MacOSX|Darwin) framework
1448 --enable-shared disable/enable building shared python library
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00001449 --enable-profiling enable C-level code profiling
Benjamin Peterson076ed002010-10-31 17:11:02 +00001450 --enable-loadable-sqlite-extensions
1451 support loadable extensions in _sqlite module
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001452 --enable-ipv6 Enable ipv6 (with ipv4) support
1453 --disable-ipv6 Disable ipv6 support
Mark Dickinsonbd792642009-03-18 20:06:12 +00001454 --enable-big-digits[=BITS]
Matthias Kloseb9621712010-04-24 17:59:49 +00001455 use big digits for Python longs [[BITS=30]]
Martin v. Löwis11437992002-04-12 09:54:03 +00001456
1457Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benjamin Peterson14ae9592008-07-16 02:20:15 +00001460 --with-universal-archs=ARCH
1461 select architectures for universal build ("32-bit",
Ned Deily87adb6e2013-10-18 21:09:56 -07001462 "64-bit", "3-way", "intel", "intel-32", or "all")
Christian Heimes81ee3ef2008-05-04 22:42:01 +00001463 --with-framework-name=FRAMEWORK
1464 specify an alternate name of the framework built
1465 with --enable-framework
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001466 --without-gcc never use gcc
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00001467 --with-cxx-main=<compiler>
1468 compile main() and link python executable with C++
1469 compiler
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001470 --with-suffix=.exe set executable suffix
1471 --with-pydebug build with Py_DEBUG defined
Christian Heimes985ecdc2013-11-20 11:46:18 +01001472 --with-hash-algorithm=[fnv|siphash24]
1473 select hash algorithm
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001474 --with-libs='lib1 ...' link against additional libs
Benjamin Petersonb2d90462009-12-31 03:23:10 +00001475 --with-system-expat build pyexpat module using an installed expat
1476 library
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00001477 --with-system-ffi build _ctypes module using an installed ffi library
Stefan Krah60187b52012-03-23 19:06:27 +01001478 --with-system-libmpdec build _decimal module using an installed libmpdec
1479 library
Ned Deilyd819b932013-09-06 01:07:05 -07001480 --with-tcltk-includes='-I...'
1481 override search for Tcl and Tk include files
1482 --with-tcltk-libs='-L...'
1483 override search for Tcl and Tk libs
Matthias Klose55708cc2009-04-30 08:06:49 +00001484 --with-dbmliborder=db1:db2:...
1485 order to check db backends for dbm. Valid value is a
1486 colon separated string with the backend names
1487 `ndbm', `gdbm' and `bdb'.
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001488 --with-signal-module disable/enable signal module
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001489 --with(out)-threads[=DIRECTORY]
1490 disable/enable thread support
1491 --with(out)-thread[=DIRECTORY]
1492 deprecated; use --with(out)-threads
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001493 --with(out)-doc-strings disable/enable documentation strings
Martin v. Löwisf30d60e2004-06-08 08:17:44 +00001494 --with(out)-tsc enable/disable timestamp counter profile
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001495 --with(out)-pymalloc disable/enable specialized mallocs
Benjamin Peterson05159c42009-12-03 03:01:27 +00001496 --with-valgrind Enable Valgrind support
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001497 --with-fpectl enable SIGFPE catching
1498 --with-libm=STRING math library
1499 --with-libc=STRING C library
Antoine Pitrou042b1282010-08-13 21:15:58 +00001500 --with(out)-computed-gotos
1501 Use computed gotos in evaluation loop (enabled by
1502 default on supported compilers)
Ned Deily322f5ba2013-11-21 23:01:59 -08001503 --with(out)-ensurepip=[=upgrade]
1504 "install" or "upgrade" using bundled pip
Martin v. Löwis11437992002-04-12 09:54:03 +00001505
1506Some influential environment variables:
doko@python.orgeab42bf2013-01-26 18:57:19 +01001507 MACHDEP name for machine-dependent library files
Martin v. Löwis11437992002-04-12 09:54:03 +00001508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001512 LIBS libraries to pass to the linker, e.g. -l<library>
Matthias Kloseb9621712010-04-24 17:59:49 +00001513 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001514 you have headers in a nonstandard directory <include dir>
Martin v. Löwis11437992002-04-12 09:54:03 +00001515 CPP C preprocessor
1516
1517Use these variables to override the choices made by `configure' or to help
1518it to find libraries and programs with nonstandard names/locations.
1519
Georg Brandle2e15612009-05-20 18:25:10 +00001520Report bugs to <http://bugs.python.org/>.
Martin v. Löwis11437992002-04-12 09:54:03 +00001521_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001522ac_status=$?
Martin v. Löwis11437992002-04-12 09:54:03 +00001523fi
1524
1525if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
Martin v. Löwis11437992002-04-12 09:54:03 +00001527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Matthias Kloseb9621712010-04-24 17:59:49 +00001528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
Martin v. Löwis11437992002-04-12 09:54:03 +00001531 ac_builddir=.
1532
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001533case "$ac_dir" in
1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535*)
Matthias Kloseb9621712010-04-24 17:59:49 +00001536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001537 # A ".." for each directory in $ac_dir_suffix.
Matthias Kloseb9621712010-04-24 17:59:49 +00001538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543esac
1544ac_abs_top_builddir=$ac_pwd
1545ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546# for backward compatibility:
1547ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:03 +00001548
1549case $srcdir in
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001550 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:03 +00001551 ac_srcdir=.
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:03 +00001555 ac_srcdir=$srcdir$ac_dir_suffix;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00001562esac
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:23 +00001564
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
Martin v. Löwis11437992002-04-12 09:54:03 +00001573 else
Matthias Kloseb9621712010-04-24 17:59:49 +00001574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
Martin v. Löwis11437992002-04-12 09:54:03 +00001577 done
1578fi
1579
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001580test -n "$ac_init_help" && exit $ac_status
Martin v. Löwis11437992002-04-12 09:54:03 +00001581if $ac_init_version; then
1582 cat <<\_ACEOF
Georg Brandl08a90122012-09-29 09:34:13 +02001583python configure 3.4
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00001584generated by GNU Autoconf 2.69
Martin v. Löwis11437992002-04-12 09:54:03 +00001585
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00001586Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:03 +00001587This configure script is free software; the Free Software Foundation
1588gives unlimited permission to copy, distribute and modify it.
1589_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +00001590 exit
Martin v. Löwis11437992002-04-12 09:54:03 +00001591fi
Matthias Kloseb9621712010-04-24 17:59:49 +00001592
1593## ------------------------ ##
1594## Autoconf initialization. ##
1595## ------------------------ ##
1596
1597# ac_fn_c_try_compile LINENO
1598# --------------------------
1599# Try to compile conftest.$ac_ext, and return whether this succeeded.
1600ac_fn_c_try_compile ()
1601{
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext
1604 if { { ac_try="$ac_compile"
1605case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext; then :
1623 ac_retval=0
1624else
1625 $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629fi
Victor Stinnere0be4232011-10-25 13:06:09 +02001630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00001631 as_fn_set_status $ac_retval
1632
1633} # ac_fn_c_try_compile
1634
Matthias Kloseb9621712010-04-24 17:59:49 +00001635# ac_fn_c_try_link LINENO
1636# -----------------------
1637# Try to link conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_link ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext conftest$ac_exeext
1642 if { { ac_try="$ac_link"
1643case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_link") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest$ac_exeext && {
1661 test "$cross_compiling" = yes ||
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00001662 test -x conftest$ac_exeext
Matthias Kloseb9621712010-04-24 17:59:49 +00001663 }; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670fi
1671 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1672 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1673 # interfere with the next link command; also delete a directory that is
1674 # left behind by Apple's compiler. We do this before executing the actions.
1675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Victor Stinnere0be4232011-10-25 13:06:09 +02001676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00001677 as_fn_set_status $ac_retval
1678
1679} # ac_fn_c_try_link
1680
Matthias Kloseb9621712010-04-24 17:59:49 +00001681# ac_fn_c_try_cpp LINENO
1682# ----------------------
1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_cpp ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_cpp conftest.$ac_ext"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001702 test $ac_status = 0; } > conftest.i && {
Matthias Kloseb9621712010-04-24 17:59:49 +00001703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 }; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712fi
Victor Stinnere0be4232011-10-25 13:06:09 +02001713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00001714 as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_cpp
1717
1718# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1719# -------------------------------------------------------
1720# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1721# the include files in INCLUDES and setting the cache variable VAR
1722# accordingly.
1723ac_fn_c_check_header_mongrel ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Victor Stinnere0be4232011-10-25 13:06:09 +02001726 if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00001727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02001729if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00001730 $as_echo_n "(cached) " >&6
1731fi
1732eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
1735else
1736 # Is the header compilable?
1737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1738$as_echo_n "checking $2 usability... " >&6; }
1739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h. */
1741$4
1742#include <$2>
1743_ACEOF
1744if ac_fn_c_try_compile "$LINENO"; then :
1745 ac_header_compiler=yes
1746else
1747 ac_header_compiler=no
1748fi
1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1751$as_echo "$ac_header_compiler" >&6; }
1752
1753# Is the header present?
1754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1755$as_echo_n "checking $2 presence... " >&6; }
1756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h. */
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_cpp "$LINENO"; then :
1761 ac_header_preproc=yes
1762else
1763 ac_header_preproc=no
1764fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001765rm -f conftest.err conftest.i conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +00001766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1767$as_echo "$ac_header_preproc" >&6; }
1768
1769# So? What about this header?
1770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1771 yes:no: )
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1773$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1775$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1776 ;;
1777 no:yes:* )
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1779$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1781$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1783$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1785$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1787$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001788( $as_echo "## -------------------------------------- ##
Matthias Kloseb9621712010-04-24 17:59:49 +00001789## Report this to http://bugs.python.org/ ##
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001790## -------------------------------------- ##"
Matthias Kloseb9621712010-04-24 17:59:49 +00001791 ) | sed "s/^/$as_me: WARNING: /" >&2
1792 ;;
1793esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02001796if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00001797 $as_echo_n "(cached) " >&6
1798else
1799 eval "$3=\$ac_header_compiler"
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804fi
Victor Stinnere0be4232011-10-25 13:06:09 +02001805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00001806
1807} # ac_fn_c_check_header_mongrel
1808
1809# ac_fn_c_try_run LINENO
1810# ----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812# that executables *can* be run.
1813ac_fn_c_try_run ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=$ac_status
1844fi
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Victor Stinnere0be4232011-10-25 13:06:09 +02001846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00001847 as_fn_set_status $ac_retval
1848
1849} # ac_fn_c_try_run
1850
1851# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists and can be compiled using the include files in
1854# INCLUDES, setting the cache variable VAR accordingly.
1855ac_fn_c_check_header_compile ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02001860if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00001861 $as_echo_n "(cached) " >&6
1862else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$4
1866#include <$2>
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02001878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00001879
1880} # ac_fn_c_check_header_compile
1881
Matthias Kloseb9621712010-04-24 17:59:49 +00001882# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1883# -------------------------------------------
1884# Tests whether TYPE exists after having included INCLUDES, setting cache
1885# variable VAR accordingly.
1886ac_fn_c_check_type ()
1887{
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02001891if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00001892 $as_echo_n "(cached) " >&6
1893else
1894 eval "$3=no"
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h. */
1897$4
1898int
1899main ()
1900{
1901if (sizeof ($2))
1902 return 0;
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h. */
1910$4
1911int
1912main ()
1913{
1914if (sizeof (($2)))
1915 return 0;
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921
1922else
1923 eval "$3=yes"
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928fi
1929eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02001932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00001933
1934} # ac_fn_c_check_type
1935
1936# ac_fn_c_find_uintX_t LINENO BITS VAR
1937# ------------------------------------
1938# Finds an unsigned integer type with width BITS, setting cache variable VAR
1939# accordingly.
1940ac_fn_c_find_uintX_t ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1944$as_echo_n "checking for uint$2_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02001945if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00001946 $as_echo_n "(cached) " >&6
1947else
1948 eval "$3=no"
1949 # Order is important - never check a type that is potentially smaller
1950 # than half of the expected target width.
1951 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1952 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955$ac_includes_default
1956int
1957main ()
1958{
1959static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00001960test_array [0] = 0;
1961return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:49 +00001962
1963 ;
1964 return 0;
1965}
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"; then :
1968 case $ac_type in #(
1969 uint$2_t) :
1970 eval "$3=yes" ;; #(
1971 *) :
1972 eval "$3=\$ac_type" ;;
1973esac
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02001976 if eval test \"x\$"$3"\" = x"no"; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00001977
1978else
1979 break
1980fi
1981 done
1982fi
1983eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02001986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00001987
1988} # ac_fn_c_find_uintX_t
1989
1990# ac_fn_c_find_intX_t LINENO BITS VAR
1991# -----------------------------------
1992# Finds a signed integer type with width BITS, setting cache variable VAR
1993# accordingly.
1994ac_fn_c_find_intX_t ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1998$as_echo_n "checking for int$2_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02001999if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00002000 $as_echo_n "(cached) " >&6
2001else
2002 eval "$3=no"
2003 # Order is important - never check a type that is potentially smaller
2004 # than half of the expected target width.
2005 for ac_type in int$2_t 'int' 'long int' \
2006 'long long int' 'short int' 'signed char'; do
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009$ac_includes_default
Martin v. Löwis9b142aa2011-02-05 20:26:52 +00002010 enum { N = $2 / 2 - 1 };
Matthias Kloseb9621712010-04-24 17:59:49 +00002011int
2012main ()
2013{
Martin v. Löwis9b142aa2011-02-05 20:26:52 +00002014static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00002015test_array [0] = 0;
2016return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:49 +00002017
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$ac_includes_default
Martin v. Löwis9b142aa2011-02-05 20:26:52 +00002026 enum { N = $2 / 2 - 1 };
Matthias Kloseb9621712010-04-24 17:59:49 +00002027int
2028main ()
2029{
Martin v. Löwis9b142aa2011-02-05 20:26:52 +00002030static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
Matthias Kloseb9621712010-04-24 17:59:49 +00002031 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00002032test_array [0] = 0;
2033return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:49 +00002034
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040
2041else
2042 case $ac_type in #(
2043 int$2_t) :
2044 eval "$3=yes" ;; #(
2045 *) :
2046 eval "$3=\$ac_type" ;;
2047esac
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002052 if eval test \"x\$"$3"\" = x"no"; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00002053
2054else
2055 break
2056fi
2057 done
2058fi
2059eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02002062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00002063
2064} # ac_fn_c_find_intX_t
2065
2066# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067# --------------------------------------------
2068# Tries to find the compile-time value of EXPR in a program that includes
2069# INCLUDES, setting VAR accordingly. Returns whether the value could be
2070# computed
2071ac_fn_c_compute_int ()
2072{
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$4
2079int
2080main ()
2081{
2082static int test_array [1 - 2 * !(($2) >= 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00002083test_array [0] = 0;
2084return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:49 +00002085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091 ac_lo=0 ac_mid=0
2092 while :; do
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h. */
2095$4
2096int
2097main ()
2098{
2099static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00002100test_array [0] = 0;
2101return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:49 +00002102
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_hi=$ac_mid; break
2109else
2110 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2111 if test $ac_lo -le $ac_mid; then
2112 ac_lo= ac_hi=
2113 break
2114 fi
2115 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 done
2119else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h. */
2122$4
2123int
2124main ()
2125{
2126static int test_array [1 - 2 * !(($2) < 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00002127test_array [0] = 0;
2128return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:49 +00002129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_hi=-1 ac_mid=-1
2136 while :; do
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h. */
2139$4
2140int
2141main ()
2142{
2143static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00002144test_array [0] = 0;
2145return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:49 +00002146
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_lo=$ac_mid; break
2153else
2154 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2155 if test $ac_mid -le $ac_hi; then
2156 ac_lo= ac_hi=
2157 break
2158 fi
2159 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 done
2163else
2164 ac_lo= ac_hi=
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169# Binary search between lo and hi bounds.
2170while test "x$ac_lo" != "x$ac_hi"; do
2171 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h. */
2174$4
2175int
2176main ()
2177{
2178static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00002179test_array [0] = 0;
2180return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:49 +00002181
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_hi=$ac_mid
2188else
2189 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192done
2193case $ac_lo in #((
2194?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2195'') ac_retval=1 ;;
2196esac
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201static long int longval () { return $2; }
2202static unsigned long int ulongval () { return $2; }
2203#include <stdio.h>
2204#include <stdlib.h>
2205int
2206main ()
2207{
2208
2209 FILE *f = fopen ("conftest.val", "w");
2210 if (! f)
2211 return 1;
2212 if (($2) < 0)
2213 {
2214 long int i = longval ();
2215 if (i != ($2))
2216 return 1;
2217 fprintf (f, "%ld", i);
2218 }
2219 else
2220 {
2221 unsigned long int i = ulongval ();
2222 if (i != ($2))
2223 return 1;
2224 fprintf (f, "%lu", i);
2225 }
2226 /* Do not output a trailing newline, as this causes \r\n confusion
2227 on some platforms. */
2228 return ferror (f) || fclose (f) != 0;
2229
2230 ;
2231 return 0;
2232}
2233_ACEOF
2234if ac_fn_c_try_run "$LINENO"; then :
2235 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2236else
2237 ac_retval=1
2238fi
2239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240 conftest.$ac_objext conftest.beam conftest.$ac_ext
2241rm -f conftest.val
2242
2243 fi
Victor Stinnere0be4232011-10-25 13:06:09 +02002244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00002245 as_fn_set_status $ac_retval
2246
2247} # ac_fn_c_compute_int
2248
2249# ac_fn_c_check_func LINENO FUNC VAR
2250# ----------------------------------
2251# Tests whether FUNC exists, setting the cache variable VAR accordingly
2252ac_fn_c_check_func ()
2253{
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02002257if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00002258 $as_echo_n "(cached) " >&6
2259else
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261/* end confdefs.h. */
2262/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2264#define $2 innocuous_$2
2265
2266/* System header to define __stub macros and hopefully few prototypes,
2267 which can conflict with char $2 (); below.
2268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2269 <limits.h> exists even on freestanding compilers. */
2270
2271#ifdef __STDC__
2272# include <limits.h>
2273#else
2274# include <assert.h>
2275#endif
2276
2277#undef $2
2278
2279/* Override any GCC internal prototype to avoid an error.
2280 Use char because int might match the return type of a GCC
2281 builtin and then its argument prototype would still apply. */
2282#ifdef __cplusplus
2283extern "C"
2284#endif
2285char $2 ();
2286/* The GNU C library defines this for functions which it implements
2287 to always fail with ENOSYS. Some functions are actually named
2288 something starting with __ and the normal name is an alias. */
2289#if defined __stub_$2 || defined __stub___$2
2290choke me
2291#endif
2292
2293int
2294main ()
2295{
2296return $2 ();
2297 ;
2298 return 0;
2299}
2300_ACEOF
2301if ac_fn_c_try_link "$LINENO"; then :
2302 eval "$3=yes"
2303else
2304 eval "$3=no"
2305fi
2306rm -f core conftest.err conftest.$ac_objext \
2307 conftest$ac_exeext conftest.$ac_ext
2308fi
2309eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02002312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00002313
2314} # ac_fn_c_check_func
2315
Gregory P. Smithdf300d52012-01-21 18:20:15 -08002316# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2317# ---------------------------------------------
2318# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2319# accordingly.
2320ac_fn_c_check_decl ()
2321{
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 as_decl_name=`echo $2|sed 's/ *(.*//'`
2324 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2326$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2327if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331/* end confdefs.h. */
2332$4
2333int
2334main ()
2335{
2336#ifndef $as_decl_name
2337#ifdef __cplusplus
2338 (void) $as_decl_use;
2339#else
2340 (void) $as_decl_name;
2341#endif
2342#endif
2343
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348if ac_fn_c_try_compile "$LINENO"; then :
2349 eval "$3=yes"
2350else
2351 eval "$3=no"
2352fi
2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354fi
2355eval ac_res=\$$3
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357$as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359
2360} # ac_fn_c_check_decl
2361
Matthias Kloseb9621712010-04-24 17:59:49 +00002362# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2363# ----------------------------------------------------
2364# Tries to find if the field MEMBER exists in type AGGR, after including
2365# INCLUDES, setting cache variable VAR accordingly.
2366ac_fn_c_check_member ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2370$as_echo_n "checking for $2.$3... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02002371if eval \${$4+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00002372 $as_echo_n "(cached) " >&6
2373else
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375/* end confdefs.h. */
2376$5
2377int
2378main ()
2379{
2380static $2 ac_aggr;
2381if (ac_aggr.$3)
2382return 0;
2383 ;
2384 return 0;
2385}
2386_ACEOF
2387if ac_fn_c_try_compile "$LINENO"; then :
2388 eval "$4=yes"
2389else
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391/* end confdefs.h. */
2392$5
2393int
2394main ()
2395{
2396static $2 ac_aggr;
2397if (sizeof ac_aggr.$3)
2398return 0;
2399 ;
2400 return 0;
2401}
2402_ACEOF
2403if ac_fn_c_try_compile "$LINENO"; then :
2404 eval "$4=yes"
2405else
2406 eval "$4=no"
2407fi
2408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409fi
2410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411fi
2412eval ac_res=\$$4
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02002415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:49 +00002416
2417} # ac_fn_c_check_member
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002418cat >config.log <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +00002419This file contains any messages produced by compilers while
2420running configure, to aid debugging if configure makes a mistake.
2421
Georg Brandl08a90122012-09-29 09:34:13 +02002422It was created by python $as_me 3.4, which was
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00002423generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:03 +00002424
2425 $ $0 $@
2426
2427_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002428exec 5>>config.log
Martin v. Löwis11437992002-04-12 09:54:03 +00002429{
2430cat <<_ASUNAME
2431## --------- ##
2432## Platform. ##
2433## --------- ##
2434
2435hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2436uname -m = `(uname -m) 2>/dev/null || echo unknown`
2437uname -r = `(uname -r) 2>/dev/null || echo unknown`
2438uname -s = `(uname -s) 2>/dev/null || echo unknown`
2439uname -v = `(uname -v) 2>/dev/null || echo unknown`
2440
2441/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2442/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2443
2444/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2445/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2446/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002447/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Martin v. Löwis11437992002-04-12 09:54:03 +00002448/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2449/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2450/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2451
2452_ASUNAME
2453
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00002459 $as_echo "PATH: $as_dir"
2460 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002461IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002462
2463} >&5
2464
2465cat >&5 <<_ACEOF
2466
2467
2468## ----------- ##
2469## Core tests. ##
2470## ----------- ##
2471
2472_ACEOF
2473
2474
2475# Keep a trace of the command line.
2476# Strip out --no-create and --no-recursion so they do not pile up.
Skip Montanaro6dead952003-09-25 14:50:04 +00002477# Strip out --silent because we don't want to record it for future runs.
Martin v. Löwis11437992002-04-12 09:54:03 +00002478# Also quote any args containing shell meta-characters.
Skip Montanaro6dead952003-09-25 14:50:04 +00002479# Make two passes to allow for proper duplicate-argument suppression.
Martin v. Löwis11437992002-04-12 09:54:03 +00002480ac_configure_args=
Skip Montanaro6dead952003-09-25 14:50:04 +00002481ac_configure_args0=
2482ac_configure_args1=
Skip Montanaro6dead952003-09-25 14:50:04 +00002483ac_must_keep_next=false
2484for ac_pass in 1 2
Martin v. Löwis11437992002-04-12 09:54:03 +00002485do
Skip Montanaro6dead952003-09-25 14:50:04 +00002486 for ac_arg
2487 do
2488 case $ac_arg in
2489 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491 | -silent | --silent | --silen | --sile | --sil)
2492 continue ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002493 *\'*)
Matthias Kloseb9621712010-04-24 17:59:49 +00002494 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002495 esac
2496 case $ac_pass in
Matthias Kloseb9621712010-04-24 17:59:49 +00002497 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002498 2)
Matthias Kloseb9621712010-04-24 17:59:49 +00002499 as_fn_append ac_configure_args1 " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:04 +00002500 if test $ac_must_keep_next = true; then
Skip Montanarof0d5f792004-08-15 14:08:23 +00002501 ac_must_keep_next=false # Got value, back to normal.
Skip Montanaro6dead952003-09-25 14:50:04 +00002502 else
Skip Montanarof0d5f792004-08-15 14:08:23 +00002503 case $ac_arg in
2504 *=* | --config-cache | -C | -disable-* | --disable-* \
2505 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507 | -with-* | --with-* | -without-* | --without-* | --x)
2508 case "$ac_configure_args0 " in
2509 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2510 esac
2511 ;;
2512 -* ) ac_must_keep_next=true ;;
2513 esac
Skip Montanaro6dead952003-09-25 14:50:04 +00002514 fi
Matthias Kloseb9621712010-04-24 17:59:49 +00002515 as_fn_append ac_configure_args " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:04 +00002516 ;;
2517 esac
2518 done
Martin v. Löwis11437992002-04-12 09:54:03 +00002519done
Matthias Kloseb9621712010-04-24 17:59:49 +00002520{ ac_configure_args0=; unset ac_configure_args0;}
2521{ ac_configure_args1=; unset ac_configure_args1;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002522
2523# When interrupted or exit'd, cleanup temporary files, and complete
2524# config.log. We remove comments because anyway the quotes in there
2525# would cause problems or look ugly.
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002526# WARNING: Use '\'' to represent an apostrophe within the trap.
2527# 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:03 +00002528trap 'exit_status=$?
2529 # Save into config.log some information that might help in debugging.
2530 {
2531 echo
Skip Montanaro6dead952003-09-25 14:50:04 +00002532
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002533 $as_echo "## ---------------- ##
Martin v. Löwis11437992002-04-12 09:54:03 +00002534## Cache variables. ##
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002535## ---------------- ##"
Martin v. Löwis11437992002-04-12 09:54:03 +00002536 echo
2537 # The following way of writing the cache mishandles newlines in values,
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002538(
2539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2540 eval ac_val=\$$ac_var
2541 case $ac_val in #(
2542 *${as_nl}*)
2543 case $ac_var in #(
Matthias Kloseb9621712010-04-24 17:59:49 +00002544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002546 esac
2547 case $ac_var in #(
2548 _ | IFS | as_nl) ;; #(
Matthias Kloseb9621712010-04-24 17:59:49 +00002549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2550 *) { eval $ac_var=; unset $ac_var;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002551 esac ;;
2552 esac
2553 done
Martin v. Löwis11437992002-04-12 09:54:03 +00002554 (set) 2>&1 |
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2556 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:03 +00002557 sed -n \
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002558 "s/'\''/'\''\\\\'\'''\''/g;
2559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2560 ;; #(
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00002561 *)
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00002563 ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002564 esac |
2565 sort
2566)
Martin v. Löwis11437992002-04-12 09:54:03 +00002567 echo
Skip Montanaro6dead952003-09-25 14:50:04 +00002568
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002569 $as_echo "## ----------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00002570## Output variables. ##
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002571## ----------------- ##"
Skip Montanaro6dead952003-09-25 14:50:04 +00002572 echo
2573 for ac_var in $ac_subst_vars
2574 do
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002575 eval ac_val=\$$ac_var
2576 case $ac_val in
Matthias Kloseb9621712010-04-24 17:59:49 +00002577 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002578 esac
Matthias Kloseb9621712010-04-24 17:59:49 +00002579 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:04 +00002580 done | sort
2581 echo
2582
2583 if test -n "$ac_subst_files"; then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002584 $as_echo "## ------------------- ##
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002585## File substitutions. ##
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002586## ------------------- ##"
Skip Montanaro6dead952003-09-25 14:50:04 +00002587 echo
2588 for ac_var in $ac_subst_files
2589 do
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002590 eval ac_val=\$$ac_var
2591 case $ac_val in
Matthias Kloseb9621712010-04-24 17:59:49 +00002592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002593 esac
Matthias Kloseb9621712010-04-24 17:59:49 +00002594 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:04 +00002595 done | sort
2596 echo
2597 fi
2598
Martin v. Löwis11437992002-04-12 09:54:03 +00002599 if test -s confdefs.h; then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002600 $as_echo "## ----------- ##
Martin v. Löwis11437992002-04-12 09:54:03 +00002601## confdefs.h. ##
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002602## ----------- ##"
Martin v. Löwis11437992002-04-12 09:54:03 +00002603 echo
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002604 cat confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00002605 echo
2606 fi
2607 test "$ac_signal" != 0 &&
Matthias Kloseb9621712010-04-24 17:59:49 +00002608 $as_echo "$as_me: caught signal $ac_signal"
2609 $as_echo "$as_me: exit $exit_status"
Martin v. Löwis11437992002-04-12 09:54:03 +00002610 } >&5
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002611 rm -f core *.core core.conftest.* &&
2612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Martin v. Löwis11437992002-04-12 09:54:03 +00002613 exit $exit_status
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002614' 0
Martin v. Löwis11437992002-04-12 09:54:03 +00002615for ac_signal in 1 2 13 15; do
Matthias Kloseb9621712010-04-24 17:59:49 +00002616 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Martin v. Löwis11437992002-04-12 09:54:03 +00002617done
2618ac_signal=0
2619
2620# confdefs.h avoids OS command line length limits that DEFS can exceed.
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002621rm -f -r conftest* confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00002622
Matthias Kloseb9621712010-04-24 17:59:49 +00002623$as_echo "/* confdefs.h */" > confdefs.h
2624
Martin v. Löwis11437992002-04-12 09:54:03 +00002625# Predefined preprocessor variables.
2626
2627cat >>confdefs.h <<_ACEOF
2628#define PACKAGE_NAME "$PACKAGE_NAME"
2629_ACEOF
2630
Martin v. Löwis11437992002-04-12 09:54:03 +00002631cat >>confdefs.h <<_ACEOF
2632#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2633_ACEOF
2634
Martin v. Löwis11437992002-04-12 09:54:03 +00002635cat >>confdefs.h <<_ACEOF
2636#define PACKAGE_VERSION "$PACKAGE_VERSION"
2637_ACEOF
2638
Martin v. Löwis11437992002-04-12 09:54:03 +00002639cat >>confdefs.h <<_ACEOF
2640#define PACKAGE_STRING "$PACKAGE_STRING"
2641_ACEOF
2642
Martin v. Löwis11437992002-04-12 09:54:03 +00002643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2645_ACEOF
2646
Matthias Kloseb9621712010-04-24 17:59:49 +00002647cat >>confdefs.h <<_ACEOF
2648#define PACKAGE_URL "$PACKAGE_URL"
2649_ACEOF
2650
Martin v. Löwis11437992002-04-12 09:54:03 +00002651
2652# Let the site file select an alternate cache file if it wants to.
Matthias Kloseb9621712010-04-24 17:59:49 +00002653# Prefer an explicitly selected file to automatically selected ones.
2654ac_site_file1=NONE
2655ac_site_file2=NONE
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002656if test -n "$CONFIG_SITE"; then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002657 # We do not want a PATH search for config.site.
2658 case $CONFIG_SITE in #((
2659 -*) ac_site_file1=./$CONFIG_SITE;;
2660 */*) ac_site_file1=$CONFIG_SITE;;
2661 *) ac_site_file1=./$CONFIG_SITE;;
2662 esac
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002663elif test "x$prefix" != xNONE; then
Matthias Kloseb9621712010-04-24 17:59:49 +00002664 ac_site_file1=$prefix/share/config.site
2665 ac_site_file2=$prefix/etc/config.site
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002666else
Matthias Kloseb9621712010-04-24 17:59:49 +00002667 ac_site_file1=$ac_default_prefix/share/config.site
2668 ac_site_file2=$ac_default_prefix/etc/config.site
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002669fi
Matthias Kloseb9621712010-04-24 17:59:49 +00002670for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002671do
Matthias Kloseb9621712010-04-24 17:59:49 +00002672 test "x$ac_site_file" = xNONE && continue
2673 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2675$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002676 sed 's/^/| /' "$ac_site_file" >&5
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002677 . "$ac_site_file" \
2678 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680as_fn_error $? "failed to load site script $ac_site_file
Victor Stinnere0be4232011-10-25 13:06:09 +02002681See \`config.log' for more details" "$LINENO" 5; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002682 fi
2683done
2684
2685if test -r "$cache_file"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00002686 # Some versions of bash will fail to source /dev/null (special files
2687 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2688 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2690$as_echo "$as_me: loading cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002691 case $cache_file in
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2693 *) . "./$cache_file";;
Martin v. Löwis11437992002-04-12 09:54:03 +00002694 esac
2695 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002696else
Matthias Kloseb9621712010-04-24 17:59:49 +00002697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2698$as_echo "$as_me: creating cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002699 >$cache_file
2700fi
2701
2702# Check that the precious variables saved in the cache have kept the same
2703# value.
2704ac_cache_corrupted=false
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002705for ac_var in $ac_precious_vars; do
Martin v. Löwis11437992002-04-12 09:54:03 +00002706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2707 eval ac_new_set=\$ac_env_${ac_var}_set
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2709 eval ac_new_val=\$ac_env_${ac_var}_value
Martin v. Löwis11437992002-04-12 09:54:03 +00002710 case $ac_old_set,$ac_new_set in
2711 set,)
Matthias Kloseb9621712010-04-24 17:59:49 +00002712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2713$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:03 +00002714 ac_cache_corrupted=: ;;
2715 ,set)
Matthias Kloseb9621712010-04-24 17:59:49 +00002716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2717$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002718 ac_cache_corrupted=: ;;
2719 ,);;
2720 *)
2721 if test "x$ac_old_val" != "x$ac_new_val"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00002722 # differences in whitespace do not lead to failure.
2723 ac_old_val_w=`echo x $ac_old_val`
2724 ac_new_val_w=`echo x $ac_new_val`
2725 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2727$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2728 ac_cache_corrupted=:
2729 else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2731$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2732 eval $ac_var=\$ac_old_val
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2735$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2737$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002738 fi;;
2739 esac
2740 # Pass precious variables to config.status.
2741 if test "$ac_new_set" = set; then
2742 case $ac_new_val in
Matthias Kloseb9621712010-04-24 17:59:49 +00002743 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002744 *) ac_arg=$ac_var=$ac_new_val ;;
2745 esac
2746 case " $ac_configure_args " in
2747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Matthias Kloseb9621712010-04-24 17:59:49 +00002748 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002749 esac
2750 fi
2751done
2752if $ac_cache_corrupted; then
Matthias Kloseb9621712010-04-24 17:59:49 +00002753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2756$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02002757 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002758fi
Matthias Kloseb9621712010-04-24 17:59:49 +00002759## -------------------- ##
2760## Main body of script. ##
2761## -------------------- ##
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002762
Guido van Rossum7f43da71994-08-01 12:15:30 +00002763ac_ext=c
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002764ac_cpp='$CPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:03 +00002765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002768
Guido van Rossum627b2d71993-12-24 10:39:16 +00002769
Michael W. Hudson54241132001-12-07 15:38:26 +00002770
Trent Nelson4d4ec652012-10-16 08:51:24 -04002771
Trent Nelson5595ab52012-10-17 04:47:31 -04002772if test "$abs_srcdir" != "$abs_builddir"; then
Trent Nelson4d4ec652012-10-16 08:51:24 -04002773 # If we're building out-of-tree, we need to make sure the following
2774 # resources get picked up before their $srcdir counterparts.
2775 # Objects/ -> typeslots.inc
2776 # Include/ -> Python-ast.h, graminit.h
2777 # Python/ -> importlib.h
2778 # (A side effect of this is that these resources will automatically be
2779 # regenerated when building out-of-tree, regardless of whether or not
2780 # the $srcdir counterpart is up-to-date. This is an acceptable trade
2781 # off.)
2782 BASECPPFLAGS="-IObjects -IInclude -IPython"
2783else
2784 BASECPPFLAGS=""
2785fi
2786
Benjamin Peterson8c6f88e2011-05-31 20:52:17 -05002787
2788
2789
2790
Antoine Pitroud3b2aef2011-07-27 01:22:41 +02002791if test -e $srcdir/.hg/dirstate
Benjamin Peterson8c6f88e2011-05-31 20:52:17 -05002792then
2793# Extract the first word of "hg", so it can be a program name with args.
2794set dummy hg; ac_word=$2
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02002797if ${ac_cv_prog_HAS_HG+:} false; then :
Benjamin Peterson8c6f88e2011-05-31 20:52:17 -05002798 $as_echo_n "(cached) " >&6
2799else
2800 if test -n "$HAS_HG"; then
2801 ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:57 +00002809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benjamin Peterson8c6f88e2011-05-31 20:52:17 -05002810 ac_cv_prog_HAS_HG="found"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814done
2815 done
2816IFS=$as_save_IFS
2817
2818 test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found"
2819fi
2820fi
2821HAS_HG=$ac_cv_prog_HAS_HG
2822if test -n "$HAS_HG"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5
2824$as_echo "$HAS_HG" >&6; }
2825else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830
2831else
2832HAS_HG=no-repository
2833fi
2834if test $HAS_HG = found
2835then
2836 HGVERSION="hg id -i \$(srcdir)"
2837 HGTAG="hg id -t \$(srcdir)"
2838 HGBRANCH="hg id -b \$(srcdir)"
2839else
2840 HGVERSION=""
2841 HGTAG=""
2842 HGBRANCH=""
2843fi
2844
2845
Thomas Wouters47b49bf2007-08-30 22:15:33 +00002846ac_config_headers="$ac_config_headers pyconfig.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00002847
2848
Matthias Kloseca2f6ec2012-03-15 21:30:11 +01002849ac_aux_dir=
2850for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2851 if test -f "$ac_dir/install-sh"; then
2852 ac_aux_dir=$ac_dir
2853 ac_install_sh="$ac_aux_dir/install-sh -c"
2854 break
2855 elif test -f "$ac_dir/install.sh"; then
2856 ac_aux_dir=$ac_dir
2857 ac_install_sh="$ac_aux_dir/install.sh -c"
2858 break
2859 elif test -f "$ac_dir/shtool"; then
2860 ac_aux_dir=$ac_dir
2861 ac_install_sh="$ac_aux_dir/shtool install -c"
2862 break
2863 fi
2864done
2865if test -z "$ac_aux_dir"; then
2866 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2867fi
2868
2869# These three variables are undocumented and unsupported,
2870# and are intended to be withdrawn in a future Autoconf release.
2871# They can cause serious problems if a builder's source tree is in a directory
2872# whose full name contains unusual characters.
2873ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2874ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2875ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2876
2877
2878# Make sure we can run config.sub.
2879$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2880 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2881
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2883$as_echo_n "checking build system type... " >&6; }
2884if ${ac_cv_build+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886else
2887 ac_build_alias=$build_alias
2888test "x$ac_build_alias" = x &&
2889 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2890test "x$ac_build_alias" = x &&
2891 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2892ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2893 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2894
2895fi
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2897$as_echo "$ac_cv_build" >&6; }
2898case $ac_cv_build in
2899*-*-*) ;;
2900*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2901esac
2902build=$ac_cv_build
2903ac_save_IFS=$IFS; IFS='-'
2904set x $ac_cv_build
2905shift
2906build_cpu=$1
2907build_vendor=$2
2908shift; shift
2909# Remember, the first character of IFS is used to create $*,
2910# except with old shells:
2911build_os=$*
2912IFS=$ac_save_IFS
2913case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2914
2915
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2917$as_echo_n "checking host system type... " >&6; }
2918if ${ac_cv_host+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920else
2921 if test "x$host_alias" = x; then
2922 ac_cv_host=$ac_cv_build
2923else
2924 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2926fi
2927
2928fi
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2930$as_echo "$ac_cv_host" >&6; }
2931case $ac_cv_host in
2932*-*-*) ;;
2933*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2934esac
2935host=$ac_cv_host
2936ac_save_IFS=$IFS; IFS='-'
2937set x $ac_cv_host
2938shift
2939host_cpu=$1
2940host_vendor=$2
2941shift; shift
2942# Remember, the first character of IFS is used to create $*,
2943# except with old shells:
2944host_os=$*
2945IFS=$ac_save_IFS
2946case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2947
2948
2949
doko@python.orga10e4a92013-01-25 18:45:12 +01002950
2951
doko@ubuntu.com1abe1c52012-06-30 20:42:45 +02002952if test "$cross_compiling" = yes; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2954$as_echo_n "checking for python interpreter for cross build... " >&6; }
2955 if test -z "$PYTHON_FOR_BUILD"; then
2956 for interp in python$PACKAGE_VERSION python3 python; do
2957 which $interp >/dev/null 2>&1 || continue
2958 if $interp -c 'import sys;sys.exit(not sys.version_info[:2] >= (3,3))'; then
2959 break
2960 fi
2961 interp=
2962 done
2963 if test x$interp = x; then
2964 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
2965 fi
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2967$as_echo "$interp" >&6; }
doko@python.org244b6872013-01-26 12:08:25 +01002968 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp
doko@ubuntu.com1abe1c52012-06-30 20:42:45 +02002969 fi
Christian Heimes954ac032012-12-12 13:10:21 +01002970elif test "$cross_compiling" = maybe; then
2971 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
doko@ubuntu.com1abe1c52012-06-30 20:42:45 +02002972else
2973 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
2974fi
2975
2976
Martin v. Löwis11437992002-04-12 09:54:03 +00002977
Benjamin Petersond23f8222009-04-05 19:13:16 +00002978if test "$prefix" != "/"; then
2979 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2980fi
2981
2982
Martin v. Löwis11437992002-04-12 09:54:03 +00002983
2984
Martin v. Löwis8316feb2003-06-14 07:48:07 +00002985# We don't use PACKAGE_ variables, and they cause conflicts
2986# with other autoconf-based packages that include Python.h
2987grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2988rm confdefs.h
2989mv confdefs.h.new confdefs.h
2990
Martin v. Löwisbddf5a52002-11-11 13:37:28 +00002991
Georg Brandl08a90122012-09-29 09:34:13 +02002992VERSION=3.4
Guido van Rossum1fd74a71997-07-19 19:36:02 +00002993
Benjamin Petersond7f73e92010-09-05 00:09:07 +00002994# Version number of Python's own shared library file.
Martin v. Löwis1142de32002-03-29 16:28:31 +00002995
2996SOVERSION=1.0
2997
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00002998# The later defininition of _XOPEN_SOURCE disables certain features
2999# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
3000
Matthias Kloseb9621712010-04-24 17:59:49 +00003001$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00003002
3003
Martin v. Löwisbcd93962003-05-03 10:32:18 +00003004# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3005# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3006# them.
3007
Matthias Kloseb9621712010-04-24 17:59:49 +00003008$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
Martin v. Löwisbcd93962003-05-03 10:32:18 +00003009
3010
Andrew MacIntyreabccf412003-07-02 13:53:25 +00003011# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3012# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3013# them.
3014
Matthias Kloseb9621712010-04-24 17:59:49 +00003015$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
Andrew MacIntyreabccf412003-07-02 13:53:25 +00003016
3017
Martin v. Löwisd6320502004-08-12 13:45:08 +00003018# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3019# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
3020
Matthias Kloseb9621712010-04-24 17:59:49 +00003021$as_echo "#define _BSD_TYPES 1" >>confdefs.h
Martin v. Löwisd6320502004-08-12 13:45:08 +00003022
3023
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003024# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3025# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3026# them.
3027
Matthias Kloseb9621712010-04-24 17:59:49 +00003028$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003029
3030
3031
Martin v. Löwis35195ad2002-11-11 13:26:51 +00003032define_xopen_source=yes
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00003033
Neil Schemenauer4edbc2a2001-03-22 00:34:03 +00003034# Arguments passed to configure.
3035
3036CONFIG_ARGS="$ac_configure_args"
3037
Matthias Kloseb9621712010-04-24 17:59:49 +00003038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3039$as_echo_n "checking for --enable-universalsdk... " >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003040# Check whether --enable-universalsdk was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00003041if test "${enable_universalsdk+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003042 enableval=$enable_universalsdk;
Thomas Wouters477c8d52006-05-27 19:21:47 +00003043 case $enableval in
3044 yes)
Ned Deilycbfb9a52012-06-23 16:02:19 -07003045 # Locate the best usable SDK, see Mac/README.txt for more
3046 # information
3047 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
Ned Deily87adb6e2013-10-18 21:09:56 -07003048 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
Ronald Oussoren8af24c12010-02-07 12:03:42 +00003049 then
Ned Deilycbfb9a52012-06-23 16:02:19 -07003050 enableval=/Developer/SDKs/MacOSX10.4u.sdk
3051 if test ! -d "${enableval}"
3052 then
3053 enableval=/
3054 fi
Ronald Oussoren8af24c12010-02-07 12:03:42 +00003055 fi
Thomas Wouters477c8d52006-05-27 19:21:47 +00003056 ;;
3057 esac
3058 case $enableval in
3059 no)
3060 UNIVERSALSDK=
3061 enable_universalsdk=
3062 ;;
3063 *)
3064 UNIVERSALSDK=$enableval
Ronald Oussoren8af24c12010-02-07 12:03:42 +00003065 if test ! -d "${UNIVERSALSDK}"
3066 then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02003067 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
Ronald Oussoren8af24c12010-02-07 12:03:42 +00003068 fi
Thomas Wouters477c8d52006-05-27 19:21:47 +00003069 ;;
3070 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00003071
Ronald Oussoren8af24c12010-02-07 12:03:42 +00003072
Thomas Wouters477c8d52006-05-27 19:21:47 +00003073else
3074
3075 UNIVERSALSDK=
3076 enable_universalsdk=
3077
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003078fi
Thomas Wouters477c8d52006-05-27 19:21:47 +00003079
Ronald Oussoren8af24c12010-02-07 12:03:42 +00003080if test -n "${UNIVERSALSDK}"
3081then
Matthias Kloseb9621712010-04-24 17:59:49 +00003082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3083$as_echo "${UNIVERSALSDK}" >&6; }
Ronald Oussoren8af24c12010-02-07 12:03:42 +00003084else
Matthias Kloseb9621712010-04-24 17:59:49 +00003085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
Ronald Oussoren8af24c12010-02-07 12:03:42 +00003087fi
Thomas Wouters477c8d52006-05-27 19:21:47 +00003088
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003089
Benjamin Peterson6794aa32008-07-16 20:33:37 +00003090
Ned Deily87adb6e2013-10-18 21:09:56 -07003091ARCH_RUN_32BIT=""
Benjamin Peterson6794aa32008-07-16 20:33:37 +00003092
Ned Deilycbfb9a52012-06-23 16:02:19 -07003093# For backward compatibility reasons we prefer to select '32-bit' if available,
3094# otherwise use 'intel'
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003095UNIVERSAL_ARCHS="32-bit"
Ned Deilycbfb9a52012-06-23 16:02:19 -07003096if test "`uname -s`" = "Darwin"
3097then
3098 if test -n "${UNIVERSALSDK}"
3099 then
Ned Deily87adb6e2013-10-18 21:09:56 -07003100 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
Ned Deilycbfb9a52012-06-23 16:02:19 -07003101 then
3102 UNIVERSAL_ARCHS="intel"
3103 fi
3104 fi
3105fi
3106
Ronald Oussoren6f6c5622009-12-24 14:03:19 +00003107
Matthias Kloseb9621712010-04-24 17:59:49 +00003108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3109$as_echo_n "checking for --with-universal-archs... " >&6; }
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003110
3111# Check whether --with-universal-archs was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00003112if test "${with_universal_archs+set}" = set; then :
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003113 withval=$with_universal_archs;
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003114 UNIVERSAL_ARCHS="$withval"
3115
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003116fi
3117
Ned Deily87adb6e2013-10-18 21:09:56 -07003118if test -n "${UNIVERSALSDK}"
3119then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3121$as_echo "${UNIVERSAL_ARCHS}" >&6; }
3122else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125fi
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003126
Christian Heimes81ee3ef2008-05-04 22:42:01 +00003127
3128# Check whether --with-framework-name was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00003129if test "${with_framework_name+set}" = set; then :
Christian Heimes81ee3ef2008-05-04 22:42:01 +00003130 withval=$with_framework_name;
3131 PYTHONFRAMEWORK=${withval}
3132 PYTHONFRAMEWORKDIR=${withval}.framework
3133 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3134
3135else
3136
3137 PYTHONFRAMEWORK=Python
3138 PYTHONFRAMEWORKDIR=Python.framework
3139 PYTHONFRAMEWORKIDENTIFIER=org.python.python
3140
3141fi
3142
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003143# Check whether --enable-framework was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00003144if test "${enable_framework+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003145 enableval=$enable_framework;
Jack Jansene578a632001-08-15 01:27:14 +00003146 case $enableval in
Martin v. Löwis11437992002-04-12 09:54:03 +00003147 yes)
Jack Jansene578a632001-08-15 01:27:14 +00003148 enableval=/Library/Frameworks
Jack Jansen127e56e2001-09-11 14:41:54 +00003149 esac
3150 case $enableval in
3151 no)
3152 PYTHONFRAMEWORK=
3153 PYTHONFRAMEWORKDIR=no-framework
3154 PYTHONFRAMEWORKPREFIX=
3155 PYTHONFRAMEWORKINSTALLDIR=
Thomas Wouters477c8d52006-05-27 19:21:47 +00003156 FRAMEWORKINSTALLFIRST=
3157 FRAMEWORKINSTALLLAST=
Thomas Wouters73e5a5b2006-06-08 15:35:45 +00003158 FRAMEWORKALTINSTALLFIRST=
3159 FRAMEWORKALTINSTALLLAST=
Ned Deilyb8f944f2013-11-21 22:42:25 -08003160 FRAMEWORKPYTHONW=
Thomas Wouters73e5a5b2006-06-08 15:35:45 +00003161 if test "x${prefix}" = "xNONE"; then
3162 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3163 else
3164 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3165 fi
Jack Jansen127e56e2001-09-11 14:41:54 +00003166 enable_framework=
Jack Jansene578a632001-08-15 01:27:14 +00003167 ;;
3168 *)
Ronald Oussoren86b33c82010-04-30 11:41:56 +00003169 PYTHONFRAMEWORKPREFIX="${enableval}"
Jack Jansen127e56e2001-09-11 14:41:54 +00003170 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
Thomas Wouters477c8d52006-05-27 19:21:47 +00003171 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
Ronald Oussorenf6ccbf62009-06-02 10:55:56 +00003172 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
Ronald Oussoren6f6c5622009-12-24 14:03:19 +00003173 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3174 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
Ned Deilyb8f944f2013-11-21 22:42:25 -08003175 FRAMEWORKPYTHONW="frameworkpythonw"
Ronald Oussoren86b33c82010-04-30 11:41:56 +00003176 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003177
Thomas Wouters73e5a5b2006-06-08 15:35:45 +00003178 if test "x${prefix}" = "xNONE" ; then
3179 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
Ronald Oussoren86b33c82010-04-30 11:41:56 +00003180
Thomas Wouters73e5a5b2006-06-08 15:35:45 +00003181 else
3182 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3183 fi
Ronald Oussoren86b33c82010-04-30 11:41:56 +00003184
3185 case "${enableval}" in
3186 /System*)
3187 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3188 if test "${prefix}" = "NONE" ; then
3189 # See below
3190 FRAMEWORKUNIXTOOLSPREFIX="/usr"
3191 fi
3192 ;;
3193
3194 /Library*)
3195 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3196 ;;
3197
3198 */Library/Frameworks)
3199 MDIR="`dirname "${enableval}"`"
3200 MDIR="`dirname "${MDIR}"`"
3201 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3202
3203 if test "${prefix}" = "NONE"; then
3204 # User hasn't specified the
3205 # --prefix option, but wants to install
3206 # the framework in a non-default location,
3207 # ensure that the compatibility links get
3208 # installed relative to that prefix as well
3209 # instead of in /usr/local.
3210 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3211 fi
3212 ;;
3213
3214 *)
3215 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3216 ;;
3217 esac
3218
Jack Jansen127e56e2001-09-11 14:41:54 +00003219 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
Thomas Wouters477c8d52006-05-27 19:21:47 +00003220
Christian Heimes81ee3ef2008-05-04 22:42:01 +00003221 # Add files for Mac specific code to the list of output
Thomas Wouters477c8d52006-05-27 19:21:47 +00003222 # files:
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003223 ac_config_files="$ac_config_files Mac/Makefile"
Thomas Wouters477c8d52006-05-27 19:21:47 +00003224
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003225 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
Thomas Wouters477c8d52006-05-27 19:21:47 +00003226
Christian Heimes81ee3ef2008-05-04 22:42:01 +00003227 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3228
3229 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3230
Jack Jansene578a632001-08-15 01:27:14 +00003231 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00003232
Guido van Rossum563e7081996-09-10 18:20:48 +00003233else
Martin v. Löwis11437992002-04-12 09:54:03 +00003234
Jack Jansene578a632001-08-15 01:27:14 +00003235 PYTHONFRAMEWORK=
Jack Jansen127e56e2001-09-11 14:41:54 +00003236 PYTHONFRAMEWORKDIR=no-framework
Jack Jansene578a632001-08-15 01:27:14 +00003237 PYTHONFRAMEWORKPREFIX=
3238 PYTHONFRAMEWORKINSTALLDIR=
Thomas Wouters477c8d52006-05-27 19:21:47 +00003239 FRAMEWORKINSTALLFIRST=
3240 FRAMEWORKINSTALLLAST=
Thomas Wouters73e5a5b2006-06-08 15:35:45 +00003241 FRAMEWORKALTINSTALLFIRST=
3242 FRAMEWORKALTINSTALLLAST=
Ned Deilyb8f944f2013-11-21 22:42:25 -08003243 FRAMEWORKPYTHONW=
Thomas Wouters73e5a5b2006-06-08 15:35:45 +00003244 if test "x${prefix}" = "xNONE" ; then
3245 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3246 else
3247 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3248 fi
Jack Jansene578a632001-08-15 01:27:14 +00003249 enable_framework=
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003250
Benjamin Peterson14ae9592008-07-16 02:20:15 +00003251
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003252fi
3253
Thomas Wouters477c8d52006-05-27 19:21:47 +00003254
3255
Michael W. Hudson54241132001-12-07 15:38:26 +00003256
3257
3258
3259
Jack Jansene578a632001-08-15 01:27:14 +00003260
Thomas Wouters73e5a5b2006-06-08 15:35:45 +00003261
3262
3263
Christian Heimes81ee3ef2008-05-04 22:42:01 +00003264
Ronald Oussoren86b33c82010-04-30 11:41:56 +00003265
Ned Deilyb8f944f2013-11-21 22:42:25 -08003266
Jack Jansene578a632001-08-15 01:27:14 +00003267##AC_ARG_WITH(dyld,
Matthias Klose2b8733f2010-04-25 18:34:36 +00003268## AS_HELP_STRING([--with-dyld],
Matthias Klosec80c93f2010-04-24 17:04:35 +00003269## [Use (OpenStep|Rhapsody) dynamic linker]))
Jack Jansene578a632001-08-15 01:27:14 +00003270##
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003271# Set name for machine-dependent library files
3272
Matthias Kloseb9621712010-04-24 17:59:49 +00003273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3274$as_echo_n "checking MACHDEP... " >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003275if test -z "$MACHDEP"
3276then
Matthias Klosedf2aecb2012-03-15 22:19:28 +01003277 # avoid using uname for cross builds
3278 if test "$cross_compiling" = yes; then
doko@python.org44bbbda2013-01-25 14:44:00 +01003279 # ac_sys_system and ac_sys_release are used for setting
3280 # a lot of different things including 'define_xopen_source'
3281 # in the case statement below.
Matthias Klosedf2aecb2012-03-15 22:19:28 +01003282 case "$host" in
3283 *-*-linux*)
3284 ac_sys_system=Linux
3285 ;;
3286 *-*-cygwin*)
3287 ac_sys_system=Cygwin
3288 ;;
3289 *)
3290 # for now, limit cross builds to known configurations
3291 MACHDEP="unknown"
3292 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3293 esac
3294 ac_sys_release=
3295 else
Guido van Rossum563e7081996-09-10 18:20:48 +00003296 ac_sys_system=`uname -s`
Benjamin Peterson8719ad52009-09-11 22:24:02 +00003297 if test "$ac_sys_system" = "AIX" \
Martin v. Löwis21ee4092002-09-30 16:19:48 +00003298 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
Guido van Rossum563e7081996-09-10 18:20:48 +00003299 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003300 else
Guido van Rossum563e7081996-09-10 18:20:48 +00003301 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003302 fi
Matthias Klosedf2aecb2012-03-15 22:19:28 +01003303 fi
3304 ac_md_system=`echo $ac_sys_system |
3305 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3306 ac_md_release=`echo $ac_sys_release |
3307 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3308 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:48 +00003309
Matthias Klosedf2aecb2012-03-15 22:19:28 +01003310 case $MACHDEP in
Victor Stinner7209ff22011-08-21 00:00:16 +02003311 linux*) MACHDEP="linux";;
Andrew M. Kuchling5a3e4cb2001-07-20 19:29:04 +00003312 cygwin*) MACHDEP="cygwin";;
Jack Jansen8a97f4a2001-12-05 23:27:32 +00003313 darwin*) MACHDEP="darwin";;
doko@ubuntu.comba015832012-06-30 16:52:05 +02003314 irix646) MACHDEP="irix6";;
Guido van Rossumb97ef171997-09-28 05:44:03 +00003315 '') MACHDEP="unknown";;
Matthias Klosedf2aecb2012-03-15 22:19:28 +01003316 esac
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003317fi
Guido van Rossum91922671997-10-09 20:24:13 +00003318
doko@ubuntu.com1abe1c52012-06-30 20:42:45 +02003319
3320if test "$cross_compiling" = yes; then
3321 case "$host" in
3322 *-*-linux*)
3323 case "$host_cpu" in
3324 arm*)
3325 _host_cpu=arm
3326 ;;
3327 *)
3328 _host_cpu=$host_cpu
3329 esac
3330 ;;
3331 *-*-cygwin*)
3332 _host_cpu=
3333 ;;
3334 *)
3335 # for now, limit cross builds to known configurations
3336 MACHDEP="unknown"
3337 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3338 esac
3339 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3340fi
3341
Martin v. Löwis35195ad2002-11-11 13:26:51 +00003342# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3343# disable features if it is defined, without any means to access these
3344# features as extensions. For these systems, we skip the definition of
3345# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3346# some feature, make sure there is no alternative way to access this
3347# feature. Also, when using wildcards, make sure you have verified the
3348# need for not defining _XOPEN_SOURCE on all systems matching the
3349# wildcard, and that the wildcard does not include future systems
3350# (which may remove their limitations).
3351case $ac_sys_system/$ac_sys_release in
3352 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3353 # even though select is a POSIX function. Reported by J. Ribbens.
Martin v. Löwis76bafc62003-10-03 13:47:44 +00003354 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
Martin v. Löwis19ed3c82010-02-15 21:45:06 +00003355 # In addition, Stefan Krah confirms that issue #1244610 exists through
3356 # OpenBSD 4.6, but is fixed in 4.7.
Charles-François Natali54ef40b2011-07-22 23:52:02 +02003357 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
Christian Heimes5b5e81c2007-12-31 16:14:33 +00003358 define_xopen_source=no
3359 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3360 # also defined. This can be overridden by defining _BSD_SOURCE
3361 # As this has a different meaning on Linux, only define it on OpenBSD
3362
Matthias Kloseb9621712010-04-24 17:59:49 +00003363$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Christian Heimes5b5e81c2007-12-31 16:14:33 +00003364
3365 ;;
Charles-François Natali54ef40b2011-07-22 23:52:02 +02003366 OpenBSD/*)
Martin v. Löwis7671efc2010-02-15 08:35:16 +00003367 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3368 # also defined. This can be overridden by defining _BSD_SOURCE
3369 # As this has a different meaning on Linux, only define it on OpenBSD
3370
Matthias Kloseb9621712010-04-24 17:59:49 +00003371$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Martin v. Löwis7671efc2010-02-15 08:35:16 +00003372
3373 ;;
Thomas Wouters89f507f2006-12-13 04:49:30 +00003374 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3375 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3376 # Marc Recht
Benjamin Petersonf608c612008-11-16 18:33:53 +00003377 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:51 +00003378 define_xopen_source=no;;
Martin v. Löwis1a415762010-05-28 15:44:20 +00003379 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3380 # request to enable features supported by the standard as a request
3381 # to disable features not supported by the standard. The best way
3382 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3383 # entirely and define __EXTENSIONS__ instead.
3384 SunOS/*)
Martin v. Löwisa9d71422003-03-28 18:43:31 +00003385 define_xopen_source=no;;
Martin v. Löwisc2409b42003-05-11 05:53:41 +00003386 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3387 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
Jack Jansen6b08a402004-06-03 12:41:45 +00003388 # Reconfirmed for 7.1.4 by Martin v. Loewis.
Martin v. Löwis253d1f42004-05-07 19:14:14 +00003389 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
Martin v. Löwisc2409b42003-05-11 05:53:41 +00003390 define_xopen_source=no;;
3391 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
Martin v. Löwis53e73c32003-05-05 05:13:18 +00003392 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
Martin v. Löwisc2409b42003-05-11 05:53:41 +00003393 SCO_SV/3.2)
Martin v. Löwis53e73c32003-05-05 05:13:18 +00003394 define_xopen_source=no;;
Martin v. Löwisb37509b2008-11-04 20:45:29 +00003395 # On FreeBSD 4, the math functions C89 does not cover are never defined
3396 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3397 FreeBSD/4.*)
3398 define_xopen_source=no;;
3399 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3400 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3401 # identifies itself as Darwin/7.*
3402 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3403 # disables platform specific features beyond repair.
3404 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3405 # has no effect, don't bother defining them
3406 Darwin/[6789].*)
Anthony Baxter6169c6b2003-10-04 07:46:23 +00003407 define_xopen_source=no;;
Ronald Oussoren92fb9412010-03-09 06:40:19 +00003408 Darwin/1[0-9].*)
Ronald Oussorenb8f11a62010-03-08 07:02:03 +00003409 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:39 +00003410 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3411 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3412 # or has another value. By not (re)defining it, the defaults come in place.
Martin v. Löwisc19c5a62003-11-18 20:00:44 +00003413 AIX/4)
3414 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:39 +00003415 AIX/5)
3416 if test `uname -r` -eq 1; then
3417 define_xopen_source=no
3418 fi
3419 ;;
Benjamin Petersonde9c8692008-07-01 18:23:09 +00003420 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3421 # defining NI_NUMERICHOST.
3422 QNX/6.3.2)
3423 define_xopen_source=no
3424 ;;
Bob Ippolito7026a0a2005-03-28 23:23:47 +00003425
Martin v. Löwis35195ad2002-11-11 13:26:51 +00003426esac
3427
3428if test $define_xopen_source = yes
3429then
Victor Stinner14d098d2011-09-07 22:29:43 +02003430 # X/Open 7, incorporating POSIX.1-2008
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00003431
Victor Stinner14d098d2011-09-07 22:29:43 +02003432$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
Martin v. Löwis35195ad2002-11-11 13:26:51 +00003433
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00003434
3435 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3436 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3437 # several APIs are not declared. Since this is also needed in some
3438 # cases for HP-UX, we define it globally.
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00003439
Matthias Kloseb9621712010-04-24 17:59:49 +00003440$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00003441
3442
Bob Ippolito7026a0a2005-03-28 23:23:47 +00003443
Victor Stinnerd169fdc2011-09-08 00:56:17 +02003444$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00003445
Martin v. Löwis35195ad2002-11-11 13:26:51 +00003446fi
3447
Guido van Rossum91922671997-10-09 20:24:13 +00003448#
3449# SGI compilers allow the specification of the both the ABI and the
3450# ISA on the command line. Depending on the values of these switches,
3451# different and often incompatable code will be generated.
3452#
3453# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3454# thus supply support for various ABI/ISA combinations. The MACHDEP
3455# variable is also adjusted.
3456#
3457
3458if test ! -z "$SGI_ABI"
3459then
3460 CC="cc $SGI_ABI"
3461 LDFLAGS="$SGI_ABI $LDFLAGS"
3462 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3463fi
Matthias Kloseb9621712010-04-24 17:59:49 +00003464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3465$as_echo "$MACHDEP" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003466
Jack Jansen6b08a402004-06-03 12:41:45 +00003467# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3468# it may influence the way we can build extensions, so distutils
3469# needs to check it
3470
Thomas Wouters477c8d52006-05-27 19:21:47 +00003471
Jack Jansen6b08a402004-06-03 12:41:45 +00003472CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
Thomas Wouters477c8d52006-05-27 19:21:47 +00003473EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
Jack Jansen6b08a402004-06-03 12:41:45 +00003474
Guido van Rossum627b2d71993-12-24 10:39:16 +00003475# checks for alternative programs
Skip Montanarodecc6a42003-01-01 20:07:49 +00003476
3477# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3478# for debug/optimization stuff. BASECFLAGS is for flags that are required
3479# just to get things to compile and link. Users are free to override OPT
3480# when running configure or make. The build should not break if they do.
3481# BASECFLAGS should generally not be messed with, however.
3482
3483# XXX shouldn't some/most/all of this code be merged with the stuff later
3484# on that fiddles with OPT and BASECFLAGS?
Matthias Kloseb9621712010-04-24 17:59:49 +00003485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3486$as_echo_n "checking for --without-gcc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003487
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003488# Check whether --with-gcc was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00003489if test "${with_gcc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003490 withval=$with_gcc;
Guido van Rossum7f43da71994-08-01 12:15:30 +00003491 case $withval in
Antoine Pitroub52ec782009-01-25 16:34:23 +00003492 no) CC=${CC:-cc}
Guido van Rossumda88dad1995-01-26 00:46:29 +00003493 without_gcc=yes;;
3494 yes) CC=gcc
3495 without_gcc=no;;
3496 *) CC=$withval
3497 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00003498 esac
Guido van Rossumda88dad1995-01-26 00:46:29 +00003499else
Martin v. Löwis11437992002-04-12 09:54:03 +00003500
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003501 case $ac_sys_system in
Antoine Pitrouf6350d22010-09-21 15:19:14 +00003502 AIX*) CC=${CC:-xlc_r}
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00003503 without_gcc=;;
Martin v. Löwis130fb172001-07-19 11:00:41 +00003504 *) without_gcc=no;;
Guido van Rossume77438c1995-09-13 18:59:59 +00003505 esac
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003506fi
3507
Matthias Kloseb9621712010-04-24 17:59:49 +00003508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3509$as_echo "$without_gcc" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00003510
Guido van Rossum8b131c51995-03-09 14:10:13 +00003511# If the user switches compilers, we can't believe the cache
3512if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3513then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02003514 as_fn_error $? "cached CC is different -- throw away $cache_file
Matthias Kloseb9621712010-04-24 17:59:49 +00003515(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
Guido van Rossum8b131c51995-03-09 14:10:13 +00003516fi
3517
Jeffrey Yasskind4fcdb12010-07-09 16:30:58 +00003518# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
3519# when the compiler supports them, but we don't always want -O2, and
3520# we set -g later.
3521if test -z "$CFLAGS"; then
3522 CFLAGS=
3523fi
Ned Deilycbfb9a52012-06-23 16:02:19 -07003524
3525if test "$ac_sys_system" = "Darwin"
3526then
3527 # Compiler selection on MacOSX is more complicated than
3528 # AC_PROG_CC can handle, see Mac/README.txt for more
3529 # information
3530 if test -z "${CC}"
3531 then
3532 found_gcc=
3533 found_clang=
3534 as_save_IFS=$IFS; IFS=:
3535 for as_dir in $PATH
3536 do
3537 IFS=$as_save_IFS
3538 if test -x $as_dir/gcc; then
3539 if test -z "${found_gcc}"; then
3540 found_gcc=$as_dir/gcc
3541 fi
3542 fi
3543 if test -x $as_dir/clang; then
3544 if test -z "${found_clang}"; then
3545 found_clang=$as_dir/clang
3546 fi
3547 fi
3548 done
3549 IFS=$as_save_IFS
3550
3551 if test -n "$found_gcc" -a -n "$found_clang"
3552 then
3553 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
3554 then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
3556$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
3557 CC="$found_clang"
3558 CXX="$found_clang++"
3559 fi
3560
3561
3562 elif test -z "$found_gcc" -a -n "$found_clang"
3563 then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
3565$as_echo "$as_me: No GCC found, use CLANG" >&6;}
3566 CC="$found_clang"
3567 CXX="$found_clang++"
3568
3569 elif test -z "$found_gcc" -a -z "$found_clang"
3570 then
3571 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
3572 if test -n "${found_clang}"
3573 then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
3575$as_echo "$as_me: Using clang from Xcode.app" >&6;}
3576 CC="${found_clang}"
3577 CXX="`/usr/bin/xcrun -find clang++`"
3578
3579 # else: use default behaviour
3580 fi
3581 fi
3582 fi
3583fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003584ac_ext=c
3585ac_cpp='$CPP $CPPFLAGS'
3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3591set dummy ${ac_tool_prefix}gcc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02003594if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00003595 $as_echo_n "(cached) " >&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003596else
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC="$CC" # Let the user override the test.
3599else
Martin v. Löwis11437992002-04-12 09:54:03 +00003600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601for as_dir in $PATH
3602do
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00003605 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00003606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003607 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Matthias Kloseb9621712010-04-24 17:59:49 +00003608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003609 break 2
3610 fi
3611done
Matthias Kloseb9621712010-04-24 17:59:49 +00003612 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003613IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00003614
Jack Jansendd19cf82001-12-06 22:36:17 +00003615fi
3616fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003617CC=$ac_cv_prog_CC
Jack Jansendd19cf82001-12-06 22:36:17 +00003618if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00003619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620$as_echo "$CC" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00003621else
Matthias Kloseb9621712010-04-24 17:59:49 +00003622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003624fi
3625
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003626
Martin v. Löwis11437992002-04-12 09:54:03 +00003627fi
3628if test -z "$ac_cv_prog_CC"; then
3629 ac_ct_CC=$CC
3630 # Extract the first word of "gcc", so it can be a program name with args.
3631set dummy gcc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00003632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02003634if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00003635 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00003636else
3637 if test -n "$ac_ct_CC"; then
3638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3639else
3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00003645 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00003646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003647 ac_cv_prog_ac_ct_CC="gcc"
Matthias Kloseb9621712010-04-24 17:59:49 +00003648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003649 break 2
3650 fi
3651done
Matthias Kloseb9621712010-04-24 17:59:49 +00003652 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003653IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00003654
3655fi
3656fi
3657ac_ct_CC=$ac_cv_prog_ac_ct_CC
3658if test -n "$ac_ct_CC"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00003659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3660$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003661else
Matthias Kloseb9621712010-04-24 17:59:49 +00003662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003664fi
3665
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003666 if test "x$ac_ct_CC" = x; then
3667 CC=""
3668 else
3669 case $cross_compiling:$ac_tool_warned in
3670yes:)
Matthias Kloseb9621712010-04-24 17:59:49 +00003671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003673ac_tool_warned=yes ;;
3674esac
3675 CC=$ac_ct_CC
3676 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003677else
3678 CC="$ac_cv_prog_CC"
Jack Jansendd19cf82001-12-06 22:36:17 +00003679fi
3680
Jack Jansendd19cf82001-12-06 22:36:17 +00003681if test -z "$CC"; then
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003682 if test -n "$ac_tool_prefix"; then
3683 # 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:03 +00003684set dummy ${ac_tool_prefix}cc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00003685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02003687if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00003688 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:17 +00003689else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692else
Martin v. Löwis11437992002-04-12 09:54:03 +00003693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00003698 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00003699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003700 ac_cv_prog_CC="${ac_tool_prefix}cc"
Matthias Kloseb9621712010-04-24 17:59:49 +00003701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003702 break 2
3703 fi
3704done
Matthias Kloseb9621712010-04-24 17:59:49 +00003705 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003706IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00003707
3708fi
3709fi
3710CC=$ac_cv_prog_CC
3711if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00003712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003714else
Matthias Kloseb9621712010-04-24 17:59:49 +00003715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003717fi
3718
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003719
Martin v. Löwis11437992002-04-12 09:54:03 +00003720 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003721fi
3722if test -z "$CC"; then
3723 # Extract the first word of "cc", so it can be a program name with args.
3724set dummy cc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00003725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02003727if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00003728 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00003729else
3730 if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3732else
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003733 ac_prog_rejected=no
Martin v. Löwis11437992002-04-12 09:54:03 +00003734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00003739 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00003740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3742 ac_prog_rejected=yes
3743 continue
3744 fi
3745 ac_cv_prog_CC="cc"
Matthias Kloseb9621712010-04-24 17:59:49 +00003746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003747 break 2
3748 fi
3749done
Matthias Kloseb9621712010-04-24 17:59:49 +00003750 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003751IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00003752
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003753if test $ac_prog_rejected = yes; then
3754 # We found a bogon in the path, so make sure we never use it.
3755 set dummy $ac_cv_prog_CC
3756 shift
Martin v. Löwis11437992002-04-12 09:54:03 +00003757 if test $# != 0; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003758 # We chose a different compiler from the bogus one.
3759 # However, it has the same basename, so the bogon will be chosen
3760 # first if we set CC to just the basename; use the full file name.
3761 shift
Skip Montanaro6dead952003-09-25 14:50:04 +00003762 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003763 fi
3764fi
3765fi
3766fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003767CC=$ac_cv_prog_CC
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003768if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00003769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770$as_echo "$CC" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003771else
Matthias Kloseb9621712010-04-24 17:59:49 +00003772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773$as_echo "no" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003774fi
3775
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003776
Martin v. Löwis11437992002-04-12 09:54:03 +00003777fi
3778if test -z "$CC"; then
3779 if test -n "$ac_tool_prefix"; then
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003780 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:03 +00003781 do
3782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00003784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02003786if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00003787 $as_echo_n "(cached) " >&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003788else
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3791else
Martin v. Löwis11437992002-04-12 09:54:03 +00003792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00003797 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00003798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:49 +00003800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003801 break 2
Guido van Rossumf78abae1997-01-21 22:02:36 +00003802 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003803done
Matthias Kloseb9621712010-04-24 17:59:49 +00003804 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003805IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00003806
3807fi
3808fi
3809CC=$ac_cv_prog_CC
3810if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00003811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003813else
Matthias Kloseb9621712010-04-24 17:59:49 +00003814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815$as_echo "no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00003816fi
3817
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003818
Martin v. Löwis11437992002-04-12 09:54:03 +00003819 test -n "$CC" && break
3820 done
3821fi
3822if test -z "$CC"; then
3823 ac_ct_CC=$CC
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003824 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:03 +00003825do
3826 # Extract the first word of "$ac_prog", so it can be a program name with args.
3827set dummy $ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00003828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02003830if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00003831 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00003832else
3833 if test -n "$ac_ct_CC"; then
3834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00003841 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00003842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003843 ac_cv_prog_ac_ct_CC="$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:49 +00003844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003845 break 2
3846 fi
3847done
Matthias Kloseb9621712010-04-24 17:59:49 +00003848 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003849IFS=$as_save_IFS
Jack Jansendd19cf82001-12-06 22:36:17 +00003850
Martin v. Löwis11437992002-04-12 09:54:03 +00003851fi
3852fi
3853ac_ct_CC=$ac_cv_prog_ac_ct_CC
3854if test -n "$ac_ct_CC"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00003855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3856$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003857else
Matthias Kloseb9621712010-04-24 17:59:49 +00003858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003860fi
Michael W. Hudson54241132001-12-07 15:38:26 +00003861
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003862
Martin v. Löwis11437992002-04-12 09:54:03 +00003863 test -n "$ac_ct_CC" && break
3864done
Michael W. Hudson54241132001-12-07 15:38:26 +00003865
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003866 if test "x$ac_ct_CC" = x; then
3867 CC=""
3868 else
3869 case $cross_compiling:$ac_tool_warned in
3870yes:)
Matthias Kloseb9621712010-04-24 17:59:49 +00003871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003873ac_tool_warned=yes ;;
3874esac
3875 CC=$ac_ct_CC
3876 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003877fi
3878
3879fi
3880
3881
Matthias Kloseb9621712010-04-24 17:59:49 +00003882test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02003884as_fn_error $? "no acceptable C compiler found in \$PATH
Victor Stinnere0be4232011-10-25 13:06:09 +02003885See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003886
3887# Provide some information about the compiler.
Matthias Kloseb9621712010-04-24 17:59:49 +00003888$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3889set X $ac_compile
3890ac_compiler=$2
3891for ac_option in --version -v -V -qversion; do
3892 { { ac_try="$ac_compiler $ac_option >&5"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003893case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896esac
Matthias Kloseb9621712010-04-24 17:59:49 +00003897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898$as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003900 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:49 +00003901 if test -s conftest.err; then
3902 sed '10a\
3903... rest of stderr output deleted ...
3904 10q' conftest.err >conftest.er1
3905 cat conftest.er1 >&5
3906 fi
3907 rm -f conftest.er1 conftest.err
3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; }
3910done
Martin v. Löwis11437992002-04-12 09:54:03 +00003911
Matthias Kloseb9621712010-04-24 17:59:49 +00003912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00003913/* end confdefs.h. */
Jack Jansendd19cf82001-12-06 22:36:17 +00003914
Martin v. Löwis11437992002-04-12 09:54:03 +00003915int
3916main ()
3917{
3918
3919 ;
3920 return 0;
3921}
3922_ACEOF
3923ac_clean_files_save=$ac_clean_files
Matthias Kloseb9621712010-04-24 17:59:49 +00003924ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Martin v. Löwis11437992002-04-12 09:54:03 +00003925# Try to create an executable without -o first, disregard a.out.
3926# It will help us diagnose broken compilers, and finding out an intuition
3927# of exeext.
Matthias Kloseb9621712010-04-24 17:59:49 +00003928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3929$as_echo_n "checking whether the C compiler works... " >&6; }
3930ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3931
3932# The possible output files:
3933ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3934
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003935ac_rmfiles=
3936for ac_file in $ac_files
3937do
3938 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:49 +00003939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003940 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3941 esac
3942done
3943rm -f $ac_rmfiles
3944
Matthias Kloseb9621712010-04-24 17:59:49 +00003945if { { ac_try="$ac_link_default"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003946case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949esac
Matthias Kloseb9621712010-04-24 17:59:49 +00003950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003952 (eval "$ac_link_default") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003953 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:49 +00003954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003956 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3957# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3958# in a Makefile. We should not override ac_cv_exeext if it was cached,
3959# so that the user can short-circuit this test for compilers unknown to
3960# Autoconf.
3961for ac_file in $ac_files ''
Skip Montanaro6dead952003-09-25 14:50:04 +00003962do
3963 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:03 +00003964 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:49 +00003965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00003966 ;;
3967 [ab].out )
3968 # We found the default executable, but exeext='' is most
3969 # certainly right.
3970 break;;
3971 *.* )
Matthias Kloseb9621712010-04-24 17:59:49 +00003972 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003973 then :; else
3974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3975 fi
3976 # We set ac_cv_exeext here because the later test for it is not
3977 # safe: cross compilers may not add the suffix if given an `-o'
3978 # argument, so we may need to know it at that point already.
3979 # Even if this section looks crufty: it has the advantage of
3980 # actually working.
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00003981 break;;
3982 * )
3983 break;;
Martin v. Löwis11437992002-04-12 09:54:03 +00003984 esac
3985done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003986test "$ac_cv_exeext" = no && ac_cv_exeext=
3987
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003988else
Thomas Wouters47b49bf2007-08-30 22:15:33 +00003989 ac_file=''
3990fi
Matthias Kloseb9621712010-04-24 17:59:49 +00003991if test -z "$ac_file"; then :
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
3994$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003995sed 's/^/| /' conftest.$ac_ext >&5
3996
Matthias Kloseb9621712010-04-24 17:59:49 +00003997{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02003999as_fn_error 77 "C compiler cannot create executables
Victor Stinnere0be4232011-10-25 13:06:09 +02004000See \`config.log' for more details" "$LINENO" 5; }
Matthias Kloseb9621712010-04-24 17:59:49 +00004001else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4003$as_echo "yes" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00004004fi
Matthias Kloseb9621712010-04-24 17:59:49 +00004005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4006$as_echo_n "checking for C compiler default output file name... " >&6; }
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4008$as_echo "$ac_file" >&6; }
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00004009ac_exeext=$ac_cv_exeext
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00004010
Matthias Kloseb9621712010-04-24 17:59:49 +00004011rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00004012ac_clean_files=$ac_clean_files_save
Matthias Kloseb9621712010-04-24 17:59:49 +00004013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4014$as_echo_n "checking for suffix of executables... " >&6; }
4015if { { ac_try="$ac_link"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004016case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
Matthias Kloseb9621712010-04-24 17:59:49 +00004020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004022 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004023 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:49 +00004024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }; then :
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00004026 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4027# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4028# work properly (i.e., refer to `conftest.exe'), while it won't with
4029# `rm'.
4030for ac_file in conftest.exe conftest conftest.*; do
4031 test -f "$ac_file" || continue
4032 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:49 +00004033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00004034 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4035 break;;
4036 * ) break;;
4037 esac
4038done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004039else
Matthias Kloseb9621712010-04-24 17:59:49 +00004040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004042as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Victor Stinnere0be4232011-10-25 13:06:09 +02004043See \`config.log' for more details" "$LINENO" 5; }
Michael W. Hudson54241132001-12-07 15:38:26 +00004044fi
Matthias Kloseb9621712010-04-24 17:59:49 +00004045rm -f conftest conftest$ac_cv_exeext
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4047$as_echo "$ac_cv_exeext" >&6; }
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00004048
4049rm -f conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00004050EXEEXT=$ac_cv_exeext
4051ac_exeext=$EXEEXT
Matthias Kloseb9621712010-04-24 17:59:49 +00004052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h. */
4054#include <stdio.h>
4055int
4056main ()
4057{
4058FILE *f = fopen ("conftest.out", "w");
4059 return ferror (f) || fclose (f) != 0;
4060
4061 ;
4062 return 0;
4063}
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00004064_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00004065ac_clean_files="$ac_clean_files conftest.out"
4066# Check that the compiler produces executables we can run. If not, either
4067# the compiler is broken, or we cross compile.
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4069$as_echo_n "checking whether we are cross compiling... " >&6; }
4070if test "$cross_compiling" != yes; then
4071 { { ac_try="$ac_link"
4072case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075esac
4076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077$as_echo "$ac_try_echo"; } >&5
4078 (eval "$ac_link") 2>&5
4079 ac_status=$?
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }
4082 if { ac_try='./conftest$ac_cv_exeext'
4083 { { case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088$as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_try") 2>&5
4090 ac_status=$?
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }; }; then
4093 cross_compiling=no
4094 else
4095 if test "$cross_compiling" = maybe; then
4096 cross_compiling=yes
4097 else
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004100as_fn_error $? "cannot run C compiled programs.
Matthias Kloseb9621712010-04-24 17:59:49 +00004101If you meant to cross compile, use \`--host'.
Victor Stinnere0be4232011-10-25 13:06:09 +02004102See \`config.log' for more details" "$LINENO" 5; }
Matthias Kloseb9621712010-04-24 17:59:49 +00004103 fi
4104 fi
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4107$as_echo "$cross_compiling" >&6; }
4108
4109rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4110ac_clean_files=$ac_clean_files_save
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4112$as_echo_n "checking for suffix of object files... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02004113if ${ac_cv_objext+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00004114 $as_echo_n "(cached) " >&6
4115else
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00004117/* end confdefs.h. */
4118
4119int
4120main ()
4121{
4122
4123 ;
4124 return 0;
4125}
4126_ACEOF
4127rm -f conftest.o conftest.obj
Matthias Kloseb9621712010-04-24 17:59:49 +00004128if { { ac_try="$ac_compile"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004129case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
Matthias Kloseb9621712010-04-24 17:59:49 +00004133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4134$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004135 (eval "$ac_compile") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004136 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:49 +00004137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4138 test $ac_status = 0; }; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004139 for ac_file in conftest.o conftest.obj conftest.*; do
4140 test -f "$ac_file" || continue;
Martin v. Löwis11437992002-04-12 09:54:03 +00004141 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:49 +00004142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00004143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4144 break;;
4145 esac
4146done
4147else
Matthias Kloseb9621712010-04-24 17:59:49 +00004148 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00004149sed 's/^/| /' conftest.$ac_ext >&5
4150
Matthias Kloseb9621712010-04-24 17:59:49 +00004151{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004153as_fn_error $? "cannot compute suffix of object files: cannot compile
Victor Stinnere0be4232011-10-25 13:06:09 +02004154See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004155fi
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00004156rm -f conftest.$ac_cv_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00004157fi
Matthias Kloseb9621712010-04-24 17:59:49 +00004158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4159$as_echo "$ac_cv_objext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004160OBJEXT=$ac_cv_objext
4161ac_objext=$OBJEXT
Matthias Kloseb9621712010-04-24 17:59:49 +00004162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4163$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02004164if ${ac_cv_c_compiler_gnu+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00004165 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00004166else
Matthias Kloseb9621712010-04-24 17:59:49 +00004167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00004168/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00004169
Martin v. Löwis11437992002-04-12 09:54:03 +00004170int
4171main ()
4172{
4173#ifndef __GNUC__
4174 choke me
4175#endif
4176
4177 ;
4178 return 0;
4179}
4180_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00004181if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00004182 ac_compiler_gnu=yes
4183else
Matthias Kloseb9621712010-04-24 17:59:49 +00004184 ac_compiler_gnu=no
Martin v. Löwis11437992002-04-12 09:54:03 +00004185fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00004187ac_cv_c_compiler_gnu=$ac_compiler_gnu
4188
4189fi
Matthias Kloseb9621712010-04-24 17:59:49 +00004190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4191$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4192if test $ac_compiler_gnu = yes; then
4193 GCC=yes
4194else
4195 GCC=
4196fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004197ac_test_CFLAGS=${CFLAGS+set}
4198ac_save_CFLAGS=$CFLAGS
Matthias Kloseb9621712010-04-24 17:59:49 +00004199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4200$as_echo_n "checking whether $CC accepts -g... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02004201if ${ac_cv_prog_cc_g+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00004202 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00004203else
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004204 ac_save_c_werror_flag=$ac_c_werror_flag
4205 ac_c_werror_flag=yes
4206 ac_cv_prog_cc_g=no
4207 CFLAGS="-g"
Matthias Kloseb9621712010-04-24 17:59:49 +00004208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00004209/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00004210
Martin v. Löwis11437992002-04-12 09:54:03 +00004211int
4212main ()
4213{
4214
4215 ;
4216 return 0;
4217}
4218_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00004219if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumf78abae1997-01-21 22:02:36 +00004220 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004221else
Matthias Kloseb9621712010-04-24 17:59:49 +00004222 CFLAGS=""
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004224/* end confdefs.h. */
4225
4226int
4227main ()
4228{
4229
4230 ;
4231 return 0;
4232}
4233_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00004234if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004235
Matthias Kloseb9621712010-04-24 17:59:49 +00004236else
4237 ac_c_werror_flag=$ac_save_c_werror_flag
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004238 CFLAGS="-g"
Matthias Kloseb9621712010-04-24 17:59:49 +00004239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004240/* end confdefs.h. */
4241
4242int
4243main ()
4244{
4245
4246 ;
4247 return 0;
4248}
4249_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00004250if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004251 ac_cv_prog_cc_g=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00004252fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004254fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 ac_c_werror_flag=$ac_save_c_werror_flag
4259fi
Matthias Kloseb9621712010-04-24 17:59:49 +00004260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4261$as_echo "$ac_cv_prog_cc_g" >&6; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00004262if test "$ac_test_CFLAGS" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004263 CFLAGS=$ac_save_CFLAGS
Guido van Rossume6c2cf11999-01-08 21:08:33 +00004264elif test $ac_cv_prog_cc_g = yes; then
4265 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00004266 CFLAGS="-g -O2"
4267 else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00004268 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004269 fi
4270else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00004271 if test "$GCC" = yes; then
4272 CFLAGS="-O2"
4273 else
4274 CFLAGS=
4275 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004276fi
Matthias Kloseb9621712010-04-24 17:59:49 +00004277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4278$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02004279if ${ac_cv_prog_cc_c89+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00004280 $as_echo_n "(cached) " >&6
Skip Montanaro6dead952003-09-25 14:50:04 +00004281else
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004282 ac_cv_prog_cc_c89=no
Skip Montanaro6dead952003-09-25 14:50:04 +00004283ac_save_CC=$CC
Matthias Kloseb9621712010-04-24 17:59:49 +00004284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00004285/* end confdefs.h. */
4286#include <stdarg.h>
4287#include <stdio.h>
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00004288struct stat;
Skip Montanaro6dead952003-09-25 14:50:04 +00004289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4290struct buf { int x; };
4291FILE * (*rcsopen) (struct buf *, struct stat *, int);
4292static char *e (p, i)
4293 char **p;
4294 int i;
4295{
4296 return p[i];
4297}
4298static char *f (char * (*g) (char **, int), char **p, ...)
4299{
4300 char *s;
4301 va_list v;
4302 va_start (v,p);
4303 s = g (p, va_arg (v,int));
4304 va_end (v);
4305 return s;
4306}
Skip Montanarof0d5f792004-08-15 14:08:23 +00004307
4308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4309 function prototypes and stuff, but not '\xHH' hex character constants.
4310 These don't provoke an error unfortunately, instead are silently treated
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004311 as 'x'. The following induces an error, until -std is added to get
Skip Montanarof0d5f792004-08-15 14:08:23 +00004312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4313 array size at least. It's necessary to write '\x00'==0 to get something
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004314 that's true only with -std. */
Skip Montanarof0d5f792004-08-15 14:08:23 +00004315int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4316
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004317/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4318 inside strings and character constants. */
4319#define FOO(x) 'x'
4320int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4321
Skip Montanaro6dead952003-09-25 14:50:04 +00004322int test (int i, double x);
4323struct s1 {int (*f) (int a);};
4324struct s2 {int (*f) (double a);};
4325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4326int argc;
4327char **argv;
4328int
4329main ()
4330{
4331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4332 ;
4333 return 0;
4334}
4335_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004336for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4337 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Skip Montanaro6dead952003-09-25 14:50:04 +00004338do
4339 CC="$ac_save_CC $ac_arg"
Matthias Kloseb9621712010-04-24 17:59:49 +00004340 if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004341 ac_cv_prog_cc_c89=$ac_arg
Skip Montanaro6dead952003-09-25 14:50:04 +00004342fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004343rm -f core conftest.err conftest.$ac_objext
4344 test "x$ac_cv_prog_cc_c89" != "xno" && break
Skip Montanaro6dead952003-09-25 14:50:04 +00004345done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004346rm -f conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00004347CC=$ac_save_CC
4348
4349fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004350# AC_CACHE_VAL
4351case "x$ac_cv_prog_cc_c89" in
4352 x)
Matthias Kloseb9621712010-04-24 17:59:49 +00004353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354$as_echo "none needed" >&6; } ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004355 xno)
Matthias Kloseb9621712010-04-24 17:59:49 +00004356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4357$as_echo "unsupported" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00004358 *)
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004359 CC="$CC $ac_cv_prog_cc_c89"
Matthias Kloseb9621712010-04-24 17:59:49 +00004360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4361$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00004362esac
Matthias Kloseb9621712010-04-24 17:59:49 +00004363if test "x$ac_cv_prog_cc_c89" != xno; then :
Skip Montanaro6dead952003-09-25 14:50:04 +00004364
Matthias Kloseb9621712010-04-24 17:59:49 +00004365fi
Skip Montanaro6dead952003-09-25 14:50:04 +00004366
Martin v. Löwis11437992002-04-12 09:54:03 +00004367ac_ext=c
4368ac_cpp='$CPP $CPPFLAGS'
4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004372
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00004373
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004374
4375
Matthias Kloseb9621712010-04-24 17:59:49 +00004376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4377$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004378
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004379# Check whether --with-cxx_main was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00004380if test "${with_cxx_main+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004381 withval=$with_cxx_main;
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004382
4383 case $withval in
4384 no) with_cxx_main=no
4385 MAINCC='$(CC)';;
4386 yes) with_cxx_main=yes
4387 MAINCC='$(CXX)';;
4388 *) with_cxx_main=yes
4389 MAINCC=$withval
4390 if test -z "$CXX"
4391 then
4392 CXX=$withval
4393 fi;;
4394 esac
4395else
4396
4397 with_cxx_main=no
4398 MAINCC='$(CC)'
4399
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004400fi
4401
Matthias Kloseb9621712010-04-24 17:59:49 +00004402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4403$as_echo "$with_cxx_main" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004404
4405preset_cxx="$CXX"
4406if test -z "$CXX"
4407then
4408 case "$CC" in
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004409 gcc) if test -n "$ac_tool_prefix"; then
4410 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4411set dummy ${ac_tool_prefix}g++; ac_word=$2
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413$as_echo_n "checking for $ac_word... " >&6; }
4414if ${ac_cv_path_CXX+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416else
4417 case $CXX in
4418 [\\/]* | ?:[\\/]*)
4419 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4420 ;;
4421 *)
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in notfound
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:57 +00004428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004429 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433done
4434 done
4435IFS=$as_save_IFS
4436
4437 ;;
4438esac
4439fi
4440CXX=$ac_cv_path_CXX
4441if test -n "$CXX"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4443$as_echo "$CXX" >&6; }
4444else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448
4449
4450fi
4451if test -z "$ac_cv_path_CXX"; then
4452 ac_pt_CXX=$CXX
4453 # Extract the first word of "g++", so it can be a program name with args.
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004454set dummy g++; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00004455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456$as_echo_n "checking for $ac_word... " >&6; }
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004457if ${ac_cv_path_ac_pt_CXX+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459else
4460 case $ac_pt_CXX in
4461 [\\/]* | ?:[\\/]*)
4462 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4463 ;;
4464 *)
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in notfound
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00004471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004472 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476done
4477 done
4478IFS=$as_save_IFS
4479
4480 ;;
4481esac
4482fi
4483ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4484if test -n "$ac_pt_CXX"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4486$as_echo "$ac_pt_CXX" >&6; }
4487else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489$as_echo "no" >&6; }
4490fi
4491
4492 if test "x$ac_pt_CXX" = x; then
4493 CXX="g++"
4494 else
4495 case $cross_compiling:$ac_tool_warned in
4496yes:)
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499ac_tool_warned=yes ;;
4500esac
4501 CXX=$ac_pt_CXX
4502 fi
4503else
4504 CXX="$ac_cv_path_CXX"
4505fi
4506 ;;
4507 cc) if test -n "$ac_tool_prefix"; then
4508 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4509set dummy ${ac_tool_prefix}c++; ac_word=$2
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02004512if ${ac_cv_path_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00004513 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004514else
4515 case $CXX in
4516 [\\/]* | ?:[\\/]*)
4517 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4518 ;;
4519 *)
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in notfound
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00004525 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00004526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004527 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:49 +00004528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004529 break 2
4530 fi
4531done
Matthias Kloseb9621712010-04-24 17:59:49 +00004532 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004533IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004534
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004535 ;;
4536esac
4537fi
4538CXX=$ac_cv_path_CXX
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00004539if test -n "$CXX"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00004540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4541$as_echo "$CXX" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00004542else
Matthias Kloseb9621712010-04-24 17:59:49 +00004543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00004545fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004546
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004547
4548fi
4549if test -z "$ac_cv_path_CXX"; then
4550 ac_pt_CXX=$CXX
4551 # Extract the first word of "c++", so it can be a program name with args.
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004552set dummy c++; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00004553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554$as_echo_n "checking for $ac_word... " >&6; }
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004555if ${ac_cv_path_ac_pt_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00004556 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004557else
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004558 case $ac_pt_CXX in
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004559 [\\/]* | ?:[\\/]*)
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004560 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004561 ;;
4562 *)
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in notfound
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00004568 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:57 +00004569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004570 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:49 +00004571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004572 break 2
4573 fi
4574done
Matthias Kloseb9621712010-04-24 17:59:49 +00004575 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004576IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004577
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004578 ;;
4579esac
4580fi
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004581ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4582if test -n "$ac_pt_CXX"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4584$as_echo "$ac_pt_CXX" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00004585else
Matthias Kloseb9621712010-04-24 17:59:49 +00004586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587$as_echo "no" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00004588fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004589
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004590 if test "x$ac_pt_CXX" = x; then
4591 CXX="c++"
4592 else
4593 case $cross_compiling:$ac_tool_warned in
4594yes:)
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4597ac_tool_warned=yes ;;
4598esac
4599 CXX=$ac_pt_CXX
4600 fi
4601else
4602 CXX="$ac_cv_path_CXX"
4603fi
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004604 ;;
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004605 clang|*/clang) if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
4607set dummy ${ac_tool_prefix}clang++; ac_word=$2
Ned Deilycbfb9a52012-06-23 16:02:19 -07004608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609$as_echo_n "checking for $ac_word... " >&6; }
4610if ${ac_cv_path_CXX+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612else
4613 case $CXX in
4614 [\\/]* | ?:[\\/]*)
4615 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4616 ;;
4617 *)
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in notfound
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:57 +00004624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ned Deilycbfb9a52012-06-23 16:02:19 -07004625 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629done
4630 done
4631IFS=$as_save_IFS
4632
Ned Deilycbfb9a52012-06-23 16:02:19 -07004633 ;;
4634esac
4635fi
4636CXX=$ac_cv_path_CXX
4637if test -n "$CXX"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4639$as_echo "$CXX" >&6; }
4640else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642$as_echo "no" >&6; }
4643fi
4644
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004645
4646fi
4647if test -z "$ac_cv_path_CXX"; then
4648 ac_pt_CXX=$CXX
4649 # Extract the first word of "clang++", so it can be a program name with args.
4650set dummy clang++; ac_word=$2
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652$as_echo_n "checking for $ac_word... " >&6; }
4653if ${ac_cv_path_ac_pt_CXX+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655else
4656 case $ac_pt_CXX in
4657 [\\/]* | ?:[\\/]*)
4658 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4659 ;;
4660 *)
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in notfound
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:57 +00004667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004668 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672done
4673 done
4674IFS=$as_save_IFS
4675
4676 ;;
4677esac
4678fi
4679ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4680if test -n "$ac_pt_CXX"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4682$as_echo "$ac_pt_CXX" >&6; }
4683else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685$as_echo "no" >&6; }
4686fi
4687
4688 if test "x$ac_pt_CXX" = x; then
4689 CXX="clang++"
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692yes:)
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695ac_tool_warned=yes ;;
4696esac
4697 CXX=$ac_pt_CXX
4698 fi
4699else
4700 CXX="$ac_cv_path_CXX"
4701fi
Ned Deilycbfb9a52012-06-23 16:02:19 -07004702 ;;
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004703 esac
4704 if test "$CXX" = "notfound"
4705 then
4706 CXX=""
4707 fi
4708fi
4709if test -z "$CXX"
4710then
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004711 if test -n "$ac_tool_prefix"; then
4712 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4713 do
4714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00004716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02004718if ${ac_cv_prog_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00004719 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004720else
4721 if test -n "$CXX"; then
4722 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00004729 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00004730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004731 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:49 +00004732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004733 break 2
4734 fi
4735done
Matthias Kloseb9621712010-04-24 17:59:49 +00004736 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004737IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004738
4739fi
4740fi
4741CXX=$ac_cv_prog_CXX
4742if test -n "$CXX"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00004743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4744$as_echo "$CXX" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004745else
Matthias Kloseb9621712010-04-24 17:59:49 +00004746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747$as_echo "no" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004748fi
4749
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004750
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004751 test -n "$CXX" && break
4752 done
4753fi
4754if test -z "$CXX"; then
4755 ac_ct_CXX=$CXX
4756 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4757do
4758 # Extract the first word of "$ac_prog", so it can be a program name with args.
4759set dummy $ac_prog; ac_word=$2
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
4762if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764else
4765 if test -n "$ac_ct_CXX"; then
4766 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:57 +00004774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004775 ac_cv_prog_ac_ct_CXX="$ac_prog"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4778 fi
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004779done
doko@ubuntu.com51f65942012-06-30 14:42:46 +02004780 done
4781IFS=$as_save_IFS
4782
4783fi
4784fi
4785ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4786if test -n "$ac_ct_CXX"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4788$as_echo "$ac_ct_CXX" >&6; }
4789else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
4792fi
4793
4794
4795 test -n "$ac_ct_CXX" && break
4796done
4797
4798 if test "x$ac_ct_CXX" = x; then
4799 CXX="notfound"
4800 else
4801 case $cross_compiling:$ac_tool_warned in
4802yes:)
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805ac_tool_warned=yes ;;
4806esac
4807 CXX=$ac_ct_CXX
4808 fi
4809fi
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004810
4811 if test "$CXX" = "notfound"
4812 then
4813 CXX=""
4814 fi
4815fi
4816if test "$preset_cxx" != "$CXX"
4817then
Christian Heimesfe32aec2013-11-20 01:18:26 +01004818 { $as_echo "$as_me:${as_lineno-$LINENO}:
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004819
4820 By default, distutils will build C++ extension modules with \"$CXX\".
4821 If this is not intended, then set CXX on the configure command line.
4822 " >&5
Christian Heimesfe32aec2013-11-20 01:18:26 +01004823$as_echo "$as_me:
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004824
4825 By default, distutils will build C++ extension modules with \"$CXX\".
4826 If this is not intended, then set CXX on the configure command line.
Christian Heimesfe32aec2013-11-20 01:18:26 +01004827 " >&6;}
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00004828fi
4829
4830
Martin v. Löwis48e14d32011-05-09 07:37:45 +02004831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
4832$as_echo_n "checking for -Wl,--no-as-needed... " >&6; }
4833save_LDFLAGS="$LDFLAGS"
4834LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
Martin v. Löwis11437992002-04-12 09:54:03 +00004835
Martin v. Löwis48e14d32011-05-09 07:37:45 +02004836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h. */
4838
4839int
4840main ()
4841{
4842
4843 ;
4844 return 0;
4845}
4846_ACEOF
4847if ac_fn_c_try_link "$LINENO"; then :
4848 NO_AS_NEEDED="-Wl,--no-as-needed"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4850$as_echo "yes" >&6; }
4851else
4852 NO_AS_NEEDED=""
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855fi
4856rm -f core conftest.err conftest.$ac_objext \
4857 conftest$ac_exeext conftest.$ac_ext
4858LDFLAGS="$save_LDFLAGS"
4859
4860
4861
4862# checks for UNIX variants that set C preprocessor variables
Martin v. Löwis11437992002-04-12 09:54:03 +00004863ac_ext=c
4864ac_cpp='$CPP $CPPFLAGS'
4865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867ac_compiler_gnu=$ac_cv_c_compiler_gnu
Matthias Kloseb9621712010-04-24 17:59:49 +00004868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4869$as_echo_n "checking how to run the C preprocessor... " >&6; }
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00004870# On Suns, sometimes $CPP names a directory.
4871if test -n "$CPP" && test -d "$CPP"; then
4872 CPP=
4873fi
4874if test -z "$CPP"; then
Victor Stinnere0be4232011-10-25 13:06:09 +02004875 if ${ac_cv_prog_CPP+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00004876 $as_echo_n "(cached) " >&6
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00004877else
Martin v. Löwis11437992002-04-12 09:54:03 +00004878 # Double quotes because CPP needs to be expanded
4879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4880 do
4881 ac_preproc_ok=false
4882for ac_c_preproc_warn_flag in '' yes
4883do
4884 # Use a header file that comes with gcc, so configuring glibc
4885 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:04 +00004886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4887 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00004888 # On the NeXT, cc -E runs the code through the compiler's parser,
Martin v. Löwis11437992002-04-12 09:54:03 +00004889 # not just through cpp. "Syntax error" is here to catch this case.
Matthias Kloseb9621712010-04-24 17:59:49 +00004890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00004891/* end confdefs.h. */
4892#ifdef __STDC__
4893# include <limits.h>
4894#else
4895# include <assert.h>
4896#endif
Skip Montanarof0d5f792004-08-15 14:08:23 +00004897 Syntax error
Martin v. Löwis11437992002-04-12 09:54:03 +00004898_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00004899if ac_fn_c_try_cpp "$LINENO"; then :
Skip Montanaro6dead952003-09-25 14:50:04 +00004900
Matthias Kloseb9621712010-04-24 17:59:49 +00004901else
Martin v. Löwis11437992002-04-12 09:54:03 +00004902 # Broken: fails on valid input.
4903continue
Jack Jansendd19cf82001-12-06 22:36:17 +00004904fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004905rm -f conftest.err conftest.i conftest.$ac_ext
Jack Jansendd19cf82001-12-06 22:36:17 +00004906
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004907 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:03 +00004908 # can be detected and how.
Matthias Kloseb9621712010-04-24 17:59:49 +00004909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00004910/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00004911#include <ac_nonexistent.h>
4912_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00004913if ac_fn_c_try_cpp "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00004914 # Broken: success on invalid input.
4915continue
4916else
Martin v. Löwis11437992002-04-12 09:54:03 +00004917 # Passes both tests.
4918ac_preproc_ok=:
4919break
4920fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004921rm -f conftest.err conftest.i conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00004922
4923done
4924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004925rm -f conftest.i conftest.err conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +00004926if $ac_preproc_ok; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00004927 break
4928fi
4929
4930 done
4931 ac_cv_prog_CPP=$CPP
4932
4933fi
4934 CPP=$ac_cv_prog_CPP
4935else
4936 ac_cv_prog_CPP=$CPP
4937fi
Matthias Kloseb9621712010-04-24 17:59:49 +00004938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4939$as_echo "$CPP" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004940ac_preproc_ok=false
4941for ac_c_preproc_warn_flag in '' yes
4942do
4943 # Use a header file that comes with gcc, so configuring glibc
4944 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:04 +00004945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4946 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis11437992002-04-12 09:54:03 +00004947 # On the NeXT, cc -E runs the code through the compiler's parser,
4948 # not just through cpp. "Syntax error" is here to catch this case.
Matthias Kloseb9621712010-04-24 17:59:49 +00004949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00004950/* end confdefs.h. */
4951#ifdef __STDC__
4952# include <limits.h>
4953#else
4954# include <assert.h>
4955#endif
Skip Montanarof0d5f792004-08-15 14:08:23 +00004956 Syntax error
Martin v. Löwis11437992002-04-12 09:54:03 +00004957_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00004958if ac_fn_c_try_cpp "$LINENO"; then :
Skip Montanaro6dead952003-09-25 14:50:04 +00004959
Matthias Kloseb9621712010-04-24 17:59:49 +00004960else
Martin v. Löwis11437992002-04-12 09:54:03 +00004961 # Broken: fails on valid input.
4962continue
4963fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004964rm -f conftest.err conftest.i conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00004965
Thomas Wouters47b49bf2007-08-30 22:15:33 +00004966 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:03 +00004967 # can be detected and how.
Matthias Kloseb9621712010-04-24 17:59:49 +00004968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00004969/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00004970#include <ac_nonexistent.h>
4971_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00004972if ac_fn_c_try_cpp "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00004973 # Broken: success on invalid input.
4974continue
4975else
Martin v. Löwis11437992002-04-12 09:54:03 +00004976 # Passes both tests.
4977ac_preproc_ok=:
4978break
4979fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004980rm -f conftest.err conftest.i conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00004981
4982done
4983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004984rm -f conftest.i conftest.err conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +00004985if $ac_preproc_ok; then :
4986
Martin v. Löwis11437992002-04-12 09:54:03 +00004987else
Matthias Kloseb9621712010-04-24 17:59:49 +00004988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02004990as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Victor Stinnere0be4232011-10-25 13:06:09 +02004991See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004992fi
4993
4994ac_ext=c
4995ac_cpp='$CPP $CPPFLAGS'
4996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999
5000
Matthias Kloseb9621712010-04-24 17:59:49 +00005001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5002$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02005003if ${ac_cv_path_GREP+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00005004 $as_echo_n "(cached) " >&6
Skip Montanaro6dead952003-09-25 14:50:04 +00005005else
Matthias Kloseb9621712010-04-24 17:59:49 +00005006 if test -z "$GREP"; then
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005007 ac_path_GREP_found=false
Matthias Kloseb9621712010-04-24 17:59:49 +00005008 # Loop through the user's path and test for each of PROGNAME-LIST
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005010for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5011do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00005014 for ac_prog in grep ggrep; do
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00005017 as_fn_executable_p "$ac_path_GREP" || continue
Matthias Kloseb9621712010-04-24 17:59:49 +00005018# Check for GNU ac_path_GREP and select it if it is found.
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005019 # Check for GNU $ac_path_GREP
5020case `"$ac_path_GREP" --version 2>&1` in
5021*GNU*)
5022 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5023*)
5024 ac_count=0
Matthias Kloseb9621712010-04-24 17:59:49 +00005025 $as_echo_n 0123456789 >"conftest.in"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005026 while :
5027 do
5028 cat "conftest.in" "conftest.in" >"conftest.tmp"
5029 mv "conftest.tmp" "conftest.in"
5030 cp "conftest.in" "conftest.nl"
Matthias Kloseb9621712010-04-24 17:59:49 +00005031 $as_echo 'GREP' >> "conftest.nl"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005032 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Matthias Kloseb9621712010-04-24 17:59:49 +00005034 as_fn_arith $ac_count + 1 && ac_count=$as_val
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005035 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5036 # Best one so far, save it but keep looking for a better one
5037 ac_cv_path_GREP="$ac_path_GREP"
5038 ac_path_GREP_max=$ac_count
Skip Montanaro6dead952003-09-25 14:50:04 +00005039 fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005040 # 10*(2^10) chars as input seems more than enough
5041 test $ac_count -gt 10 && break
5042 done
5043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5044esac
5045
Matthias Kloseb9621712010-04-24 17:59:49 +00005046 $ac_path_GREP_found && break 3
5047 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005048 done
Matthias Kloseb9621712010-04-24 17:59:49 +00005049 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005050IFS=$as_save_IFS
Matthias Kloseb9621712010-04-24 17:59:49 +00005051 if test -z "$ac_cv_path_GREP"; then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02005052 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:49 +00005053 fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005054else
5055 ac_cv_path_GREP=$GREP
5056fi
5057
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005058fi
Matthias Kloseb9621712010-04-24 17:59:49 +00005059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5060$as_echo "$ac_cv_path_GREP" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005061 GREP="$ac_cv_path_GREP"
5062
5063
Matthias Kloseb9621712010-04-24 17:59:49 +00005064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5065$as_echo_n "checking for egrep... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02005066if ${ac_cv_path_EGREP+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00005067 $as_echo_n "(cached) " >&6
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005068else
5069 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5070 then ac_cv_path_EGREP="$GREP -E"
5071 else
Matthias Kloseb9621712010-04-24 17:59:49 +00005072 if test -z "$EGREP"; then
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005073 ac_path_EGREP_found=false
Matthias Kloseb9621712010-04-24 17:59:49 +00005074 # Loop through the user's path and test for each of PROGNAME-LIST
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005076for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00005080 for ac_prog in egrep; do
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00005083 as_fn_executable_p "$ac_path_EGREP" || continue
Matthias Kloseb9621712010-04-24 17:59:49 +00005084# Check for GNU ac_path_EGREP and select it if it is found.
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005085 # Check for GNU $ac_path_EGREP
5086case `"$ac_path_EGREP" --version 2>&1` in
5087*GNU*)
5088 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5089*)
5090 ac_count=0
Matthias Kloseb9621712010-04-24 17:59:49 +00005091 $as_echo_n 0123456789 >"conftest.in"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005092 while :
5093 do
5094 cat "conftest.in" "conftest.in" >"conftest.tmp"
5095 mv "conftest.tmp" "conftest.in"
5096 cp "conftest.in" "conftest.nl"
Matthias Kloseb9621712010-04-24 17:59:49 +00005097 $as_echo 'EGREP' >> "conftest.nl"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005098 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Matthias Kloseb9621712010-04-24 17:59:49 +00005100 as_fn_arith $ac_count + 1 && ac_count=$as_val
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005101 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5102 # Best one so far, save it but keep looking for a better one
5103 ac_cv_path_EGREP="$ac_path_EGREP"
5104 ac_path_EGREP_max=$ac_count
5105 fi
5106 # 10*(2^10) chars as input seems more than enough
5107 test $ac_count -gt 10 && break
5108 done
5109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5110esac
5111
Matthias Kloseb9621712010-04-24 17:59:49 +00005112 $ac_path_EGREP_found && break 3
5113 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005114 done
Matthias Kloseb9621712010-04-24 17:59:49 +00005115 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005116IFS=$as_save_IFS
Matthias Kloseb9621712010-04-24 17:59:49 +00005117 if test -z "$ac_cv_path_EGREP"; then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02005118 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:49 +00005119 fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005120else
5121 ac_cv_path_EGREP=$EGREP
5122fi
5123
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005124 fi
5125fi
Matthias Kloseb9621712010-04-24 17:59:49 +00005126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5127$as_echo "$ac_cv_path_EGREP" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00005128 EGREP="$ac_cv_path_EGREP"
Skip Montanaro6dead952003-09-25 14:50:04 +00005129
5130
Matthias Kloseb9621712010-04-24 17:59:49 +00005131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5132$as_echo_n "checking for ANSI C header files... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02005133if ${ac_cv_header_stdc+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00005134 $as_echo_n "(cached) " >&6
5135else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benjamin Peterson8719ad52009-09-11 22:24:02 +00005137/* end confdefs.h. */
Matthias Kloseb9621712010-04-24 17:59:49 +00005138#include <stdlib.h>
5139#include <stdarg.h>
5140#include <string.h>
5141#include <float.h>
5142
5143int
5144main ()
5145{
5146
5147 ;
5148 return 0;
5149}
5150_ACEOF
5151if ac_fn_c_try_compile "$LINENO"; then :
5152 ac_cv_header_stdc=yes
5153else
5154 ac_cv_header_stdc=no
5155fi
5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157
5158if test $ac_cv_header_stdc = yes; then
5159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h. */
5162#include <string.h>
Benjamin Peterson8719ad52009-09-11 22:24:02 +00005163
Benjamin Peterson8719ad52009-09-11 22:24:02 +00005164_ACEOF
Ronald Oussoren74f29b42009-09-20 20:09:26 +00005165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +00005166 $EGREP "memchr" >/dev/null 2>&1; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005167
Ronald Oussoren74f29b42009-09-20 20:09:26 +00005168else
Matthias Kloseb9621712010-04-24 17:59:49 +00005169 ac_cv_header_stdc=no
Ronald Oussoren74f29b42009-09-20 20:09:26 +00005170fi
Matthias Klosec80c93f2010-04-24 17:04:35 +00005171rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005172
Matthias Kloseb9621712010-04-24 17:59:49 +00005173fi
5174
5175if test $ac_cv_header_stdc = yes; then
5176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h. */
5179#include <stdlib.h>
5180
5181_ACEOF
5182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183 $EGREP "free" >/dev/null 2>&1; then :
5184
5185else
5186 ac_cv_header_stdc=no
5187fi
5188rm -f conftest*
5189
5190fi
5191
5192if test $ac_cv_header_stdc = yes; then
5193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5194 if test "$cross_compiling" = yes; then :
5195 :
5196else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h. */
5199#include <ctype.h>
5200#include <stdlib.h>
5201#if ((' ' & 0x0FF) == 0x020)
5202# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5203# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5204#else
5205# define ISLOWER(c) \
5206 (('a' <= (c) && (c) <= 'i') \
5207 || ('j' <= (c) && (c) <= 'r') \
5208 || ('s' <= (c) && (c) <= 'z'))
5209# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5210#endif
5211
5212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5213int
5214main ()
5215{
5216 int i;
5217 for (i = 0; i < 256; i++)
5218 if (XOR (islower (i), ISLOWER (i))
5219 || toupper (i) != TOUPPER (i))
5220 return 2;
5221 return 0;
5222}
5223_ACEOF
5224if ac_fn_c_try_run "$LINENO"; then :
5225
5226else
5227 ac_cv_header_stdc=no
5228fi
5229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5230 conftest.$ac_objext conftest.beam conftest.$ac_ext
5231fi
5232
5233fi
5234fi
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5236$as_echo "$ac_cv_header_stdc" >&6; }
5237if test $ac_cv_header_stdc = yes; then
5238
5239$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5240
5241fi
5242
5243# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5244for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5245 inttypes.h stdint.h unistd.h
5246do :
5247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5248ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5249"
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02005250if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00005251 cat >>confdefs.h <<_ACEOF
5252#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253_ACEOF
5254
5255fi
5256
5257done
5258
5259
5260
5261 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +02005262if test "x$ac_cv_header_minix_config_h" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00005263 MINIX=yes
5264else
5265 MINIX=
5266fi
5267
5268
5269 if test "$MINIX" = yes; then
5270
5271$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5272
5273
5274$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5275
5276
5277$as_echo "#define _MINIX 1" >>confdefs.h
5278
5279 fi
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5283$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02005284if ${ac_cv_safe_to_define___extensions__+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00005285 $as_echo_n "(cached) " >&6
5286else
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h. */
5289
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00005290# define __EXTENSIONS__ 1
5291 $ac_includes_default
Matthias Kloseb9621712010-04-24 17:59:49 +00005292int
5293main ()
5294{
5295
5296 ;
5297 return 0;
5298}
5299_ACEOF
5300if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_safe_to_define___extensions__=yes
5302else
5303 ac_cv_safe_to_define___extensions__=no
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306fi
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5308$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5309 test $ac_cv_safe_to_define___extensions__ = yes &&
5310 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5311
5312 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5313
5314 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5315
5316 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5317
5318 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5319
5320
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005321
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005322# Check for unsupported systems
5323case $ac_sys_system/$ac_sys_release in
5324atheos*|Linux*/1*)
5325 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5326 echo See README for details.
5327 exit 1;;
5328esac
5329
5330
Matthias Kloseb9621712010-04-24 17:59:49 +00005331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5332$as_echo_n "checking for --with-suffix... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005333
5334# Check whether --with-suffix was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00005335if test "${with_suffix+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005336 withval=$with_suffix;
5337 case $withval in
5338 no) EXEEXT=;;
5339 yes) EXEEXT=.exe;;
5340 *) EXEEXT=$withval;;
5341 esac
5342fi
5343
Matthias Kloseb9621712010-04-24 17:59:49 +00005344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5345$as_echo "$EXEEXT" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005346
5347# Test whether we're running on a non-case-sensitive system, in which
5348# case we give a warning if no ext is given
5349
Matthias Kloseb9621712010-04-24 17:59:49 +00005350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5351$as_echo_n "checking for case-insensitive build directory... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005352if test ! -d CaseSensitiveTestDir; then
5353mkdir CaseSensitiveTestDir
5354fi
5355
5356if test -d casesensitivetestdir
5357then
Matthias Kloseb9621712010-04-24 17:59:49 +00005358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5359$as_echo "yes" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005360 BUILDEXEEXT=.exe
5361else
Matthias Kloseb9621712010-04-24 17:59:49 +00005362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005364 BUILDEXEEXT=$EXEEXT
5365fi
5366rmdir CaseSensitiveTestDir
5367
5368case $MACHDEP in
5369bsdos*)
5370 case $CC in
5371 gcc) CC="$CC -D_HAVE_BSDI";;
5372 esac;;
5373esac
5374
5375case $ac_sys_system in
5376hp*|HP*)
5377 case $CC in
5378 cc|*/cc) CC="$CC -Ae";;
5379 esac;;
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005380esac
5381
doko@python.org3e6e2ac2013-01-25 13:12:29 +01005382MULTIARCH=$($CC --print-multiarch 2>/dev/null)
5383
5384
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005385
5386
Matthias Kloseb9621712010-04-24 17:59:49 +00005387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5388$as_echo_n "checking LIBRARY... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005389if test -z "$LIBRARY"
5390then
Barry Warsawf040d7d2010-10-18 17:09:07 +00005391 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005392fi
Matthias Kloseb9621712010-04-24 17:59:49 +00005393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5394$as_echo "$LIBRARY" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005395
5396# LDLIBRARY is the name of the library to link against (as opposed to the
5397# name of the library into which to insert object files). BLDLIBRARY is also
5398# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5399# is blank as the main program is not linked directly against LDLIBRARY.
5400# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5401# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5402# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5403# DLLLIBRARY is the shared (i.e., DLL) library.
5404#
5405# RUNSHARED is used to run shared python without installed libraries
5406#
5407# INSTSONAME is the name of the shared library that will be use to install
5408# on the system - some systems like version suffix, others don't
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005409#
5410# LDVERSION is the shared library version number, normally the Python version
5411# with the ABI build flags appended.
5412
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005413
5414
5415
5416
5417
5418
Martin v. Löwisd1fc34d2010-12-30 14:55:47 +00005419
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005420LDLIBRARY="$LIBRARY"
5421BLDLIBRARY='$(LDLIBRARY)'
5422INSTSONAME='$(LDLIBRARY)'
5423DLLLIBRARY=''
5424LDLIBRARYDIR=''
5425RUNSHARED=''
Barry Warsaw14d98ac2010-11-24 19:43:47 +00005426LDVERSION="$VERSION"
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005427
5428# LINKCC is the command that links the python executable -- default is $(CC).
5429# If CXX is set, and if it is needed to link a main function that was
5430# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5431# python might then depend on the C++ runtime
5432# This is altered for AIX in order to build the export list before
5433# linking.
5434
Matthias Kloseb9621712010-04-24 17:59:49 +00005435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5436$as_echo_n "checking LINKCC... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005437if test -z "$LINKCC"
5438then
5439 LINKCC='$(PURIFY) $(MAINCC)'
5440 case $ac_sys_system in
5441 AIX*)
5442 exp_extra="\"\""
5443 if test $ac_sys_release -ge 5 -o \
5444 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5445 exp_extra="."
5446 fi
5447 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005448 QNX*)
5449 # qcc must be used because the other compilers do not
5450 # support -N.
5451 LINKCC=qcc;;
5452 esac
5453fi
Matthias Kloseb9621712010-04-24 17:59:49 +00005454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5455$as_echo "$LINKCC" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005456
5457# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
5458# make sure we default having it set to "no": this is used by
5459# distutils.unixccompiler to know if it should add --enable-new-dtags
5460# to linker command lines, and failing to detect GNU ld simply results
5461# in the same bahaviour as before.
5462
Matthias Kloseb9621712010-04-24 17:59:49 +00005463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5464$as_echo_n "checking for GNU ld... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005465ac_prog=ld
5466if test "$GCC" = yes; then
5467 ac_prog=`$CC -print-prog-name=ld`
5468fi
5469case `"$ac_prog" -V 2>&1 < /dev/null` in
5470 *GNU*)
5471 GNULD=yes;;
5472 *)
5473 GNULD=no;;
5474esac
Matthias Kloseb9621712010-04-24 17:59:49 +00005475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5476$as_echo "$GNULD" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005477
Daniel Stutzbacha606faa2010-08-31 19:51:07 +00005478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5479$as_echo_n "checking for inline... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02005480if ${ac_cv_c_inline+:} false; then :
Daniel Stutzbacha606faa2010-08-31 19:51:07 +00005481 $as_echo_n "(cached) " >&6
5482else
5483 ac_cv_c_inline=no
5484for ac_kw in inline __inline__ __inline; do
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h. */
5487#ifndef __cplusplus
5488typedef int foo_t;
5489static $ac_kw foo_t static_foo () {return 0; }
5490$ac_kw foo_t foo () {return 0; }
5491#endif
5492
5493_ACEOF
5494if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_cv_c_inline=$ac_kw
5496fi
5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 test "$ac_cv_c_inline" != no && break
5499done
5500
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5503$as_echo "$ac_cv_c_inline" >&6; }
5504
5505case $ac_cv_c_inline in
5506 inline | yes) ;;
5507 *)
5508 case $ac_cv_c_inline in
5509 no) ac_val=;;
5510 *) ac_val=$ac_cv_c_inline;;
5511 esac
5512 cat >>confdefs.h <<_ACEOF
5513#ifndef __cplusplus
5514#define inline $ac_val
5515#endif
5516_ACEOF
5517 ;;
5518esac
5519
5520if test "$ac_cv_c_inline" != no ; then
Benjamin Petersond7f73e92010-09-05 00:09:07 +00005521
5522$as_echo "#define USE_INLINE 1" >>confdefs.h
Daniel Stutzbacha606faa2010-08-31 19:51:07 +00005523
5524
5525fi
5526
5527
Matthias Kloseb9621712010-04-24 17:59:49 +00005528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5529$as_echo_n "checking for --enable-shared... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005530# Check whether --enable-shared was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00005531if test "${enable_shared+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005532 enableval=$enable_shared;
5533fi
5534
5535
5536if test -z "$enable_shared"
5537then
5538 case $ac_sys_system in
Antoine Pitrou6103ab12009-10-24 20:11:21 +00005539 CYGWIN*)
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005540 enable_shared="yes";;
5541 *)
5542 enable_shared="no";;
5543 esac
5544fi
Matthias Kloseb9621712010-04-24 17:59:49 +00005545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5546$as_echo "$enable_shared" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005547
Matthias Kloseb9621712010-04-24 17:59:49 +00005548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5549$as_echo_n "checking for --enable-profiling... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005550# Check whether --enable-profiling was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00005551if test "${enable_profiling+set}" = set; then :
doko@ubuntu.comba015832012-06-30 16:52:05 +02005552 enableval=$enable_profiling;
5553fi
5554
5555if test "x$enable_profiling" = xyes; then
5556 ac_save_cc="$CC"
Benjamin Peterson615ea1a2013-03-26 08:55:37 -04005557 CC="$CC -pg"
Matthias Kloseb9621712010-04-24 17:59:49 +00005558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005559/* end confdefs.h. */
5560int main() { return 0; }
5561_ACEOF
doko@ubuntu.comba015832012-06-30 16:52:05 +02005562if ac_fn_c_try_link "$LINENO"; then :
5563
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005564else
doko@ubuntu.comba015832012-06-30 16:52:05 +02005565 enable_profiling=no
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005566fi
doko@ubuntu.comba015832012-06-30 16:52:05 +02005567rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569 CC="$ac_save_cc"
5570else
5571 enable_profiling=no
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005572fi
doko@ubuntu.comba015832012-06-30 16:52:05 +02005573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5574$as_echo "$enable_profiling" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005575
doko@ubuntu.comba015832012-06-30 16:52:05 +02005576if test "x$enable_profiling" = xyes; then
5577 BASECFLAGS="-pg $BASECFLAGS"
5578 LDFLAGS="-pg $LDFLAGS"
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005579fi
5580
Matthias Kloseb9621712010-04-24 17:59:49 +00005581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5582$as_echo_n "checking LDLIBRARY... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005583
5584# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5585# library that we build, but we do not want to link against it (we
5586# will find it with a -framework option). For this reason there is an
5587# extra variable BLDLIBRARY against which Python and the extension
5588# modules are linked, BLDLIBRARY. This is normally the same as
5589# LDLIBRARY, but empty for MacOSX framework builds.
5590if test "$enable_framework"
5591then
5592 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
5593 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
5594 BLDLIBRARY=''
5595else
5596 BLDLIBRARY='$(LDLIBRARY)'
5597fi
5598
5599# Other platforms follow
5600if test $enable_shared = "yes"; then
doko@python.org87421192013-01-26 11:39:31 +01005601 PY_ENABLE_SHARED=1
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005602
Matthias Kloseb9621712010-04-24 17:59:49 +00005603$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005604
5605 case $ac_sys_system in
5606 CYGWIN*)
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005607 LDLIBRARY='libpython$(LDVERSION).dll.a'
5608 DLLLIBRARY='libpython$(LDVERSION).dll'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005609 ;;
5610 SunOS*)
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005611 LDLIBRARY='libpython$(LDVERSION).so'
5612 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005613 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
5614 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis9b142aa2011-02-05 20:26:52 +00005615 if test "$with_pydebug" != yes
Martin v. Löwisd1fc34d2010-12-30 14:55:47 +00005616 then
5617 PY3LIBRARY=libpython3.so
5618 fi
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005619 ;;
Charles-François Natali749400a2011-07-24 22:41:18 +02005620 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005621 LDLIBRARY='libpython$(LDVERSION).so'
5622 BLDLIBRARY='-L. -lpython$(LDVERSION)'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005623 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
5624 case $ac_sys_system in
5625 FreeBSD*)
5626 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
5627 ;;
5628 esac
5629 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis9b142aa2011-02-05 20:26:52 +00005630 if test "$with_pydebug" != yes
Martin v. Löwisd1fc34d2010-12-30 14:55:47 +00005631 then
5632 PY3LIBRARY=libpython3.so
5633 fi
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005634 ;;
5635 hp*|HP*)
5636 case `uname -m` in
5637 ia64)
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005638 LDLIBRARY='libpython$(LDVERSION).so'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005639 ;;
5640 *)
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005641 LDLIBRARY='libpython$(LDVERSION).sl'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005642 ;;
5643 esac
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005644 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005645 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
5646 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005647 Darwin*)
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005648 LDLIBRARY='libpython$(LDVERSION).dylib'
5649 BLDLIBRARY='-L. -lpython$(LDVERSION)'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005650 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
5651 ;;
Antoine Pitrou8e6b4072010-09-10 19:44:44 +00005652 AIX*)
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005653 LDLIBRARY='libpython$(LDVERSION).so'
Antoine Pitrou8e6b4072010-09-10 19:44:44 +00005654 RUNSHARED=LIBPATH=`pwd`:${LIBPATH}
5655 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005656
5657 esac
5658else # shared is disabled
doko@python.org87421192013-01-26 11:39:31 +01005659 PY_ENABLE_SHARED=0
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005660 case $ac_sys_system in
5661 CYGWIN*)
5662 BLDLIBRARY='$(LIBRARY)'
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00005663 LDLIBRARY='libpython$(LDVERSION).dll.a'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005664 ;;
5665 esac
5666fi
5667
doko@ubuntu.com1abe1c52012-06-30 20:42:45 +02005668if test "$cross_compiling" = yes; then
5669 RUNSHARED=
5670fi
5671
Matthias Kloseb9621712010-04-24 17:59:49 +00005672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5673$as_echo "$LDLIBRARY" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005674
5675if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5677set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00005678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02005680if ${ac_cv_prog_RANLIB+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00005681 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005682else
5683 if test -n "$RANLIB"; then
5684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00005691 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00005692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Matthias Kloseb9621712010-04-24 17:59:49 +00005694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005695 break 2
5696 fi
5697done
Matthias Kloseb9621712010-04-24 17:59:49 +00005698 done
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005699IFS=$as_save_IFS
5700
5701fi
5702fi
5703RANLIB=$ac_cv_prog_RANLIB
5704if test -n "$RANLIB"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00005705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5706$as_echo "$RANLIB" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005707else
Matthias Kloseb9621712010-04-24 17:59:49 +00005708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005710fi
5711
5712
5713fi
5714if test -z "$ac_cv_prog_RANLIB"; then
5715 ac_ct_RANLIB=$RANLIB
5716 # Extract the first word of "ranlib", so it can be a program name with args.
5717set dummy ranlib; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00005718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02005720if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00005721 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005722else
5723 if test -n "$ac_ct_RANLIB"; then
5724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00005731 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00005732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005733 ac_cv_prog_ac_ct_RANLIB="ranlib"
Matthias Kloseb9621712010-04-24 17:59:49 +00005734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005735 break 2
5736 fi
5737done
Matthias Kloseb9621712010-04-24 17:59:49 +00005738 done
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005739IFS=$as_save_IFS
5740
5741fi
5742fi
5743ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5744if test -n "$ac_ct_RANLIB"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00005745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5746$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005747else
Matthias Kloseb9621712010-04-24 17:59:49 +00005748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005750fi
5751
5752 if test "x$ac_ct_RANLIB" = x; then
5753 RANLIB=":"
5754 else
5755 case $cross_compiling:$ac_tool_warned in
5756yes:)
Matthias Kloseb9621712010-04-24 17:59:49 +00005757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005759ac_tool_warned=yes ;;
5760esac
5761 RANLIB=$ac_ct_RANLIB
5762 fi
5763else
5764 RANLIB="$ac_cv_prog_RANLIB"
5765fi
5766
5767
doko@ubuntu.com51f65942012-06-30 14:42:46 +02005768if test -n "$ac_tool_prefix"; then
5769 for ac_prog in ar aal
5770 do
5771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5772set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00005773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02005775if ${ac_cv_prog_AR+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00005776 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005777else
5778 if test -n "$AR"; then
5779 ac_cv_prog_AR="$AR" # Let the user override the test.
5780else
5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00005786 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00005787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 14:42:46 +02005788 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:49 +00005789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005790 break 2
5791 fi
5792done
Matthias Kloseb9621712010-04-24 17:59:49 +00005793 done
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005794IFS=$as_save_IFS
5795
5796fi
5797fi
5798AR=$ac_cv_prog_AR
5799if test -n "$AR"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00005800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5801$as_echo "$AR" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005802else
Matthias Kloseb9621712010-04-24 17:59:49 +00005803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005805fi
5806
5807
doko@ubuntu.com51f65942012-06-30 14:42:46 +02005808 test -n "$AR" && break
5809 done
5810fi
5811if test -z "$AR"; then
5812 ac_ct_AR=$AR
5813 for ac_prog in ar aal
5814do
5815 # Extract the first word of "$ac_prog", so it can be a program name with args.
5816set dummy $ac_prog; ac_word=$2
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
5819if ${ac_cv_prog_ac_ct_AR+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821else
5822 if test -n "$ac_ct_AR"; then
5823 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:57 +00005831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 14:42:46 +02005832 ac_cv_prog_ac_ct_AR="$ac_prog"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005836done
doko@ubuntu.com51f65942012-06-30 14:42:46 +02005837 done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842ac_ct_AR=$ac_cv_prog_ac_ct_AR
5843if test -n "$ac_ct_AR"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5845$as_echo "$ac_ct_AR" >&6; }
5846else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852 test -n "$ac_ct_AR" && break
5853done
5854
5855 if test "x$ac_ct_AR" = x; then
5856 AR="ar"
5857 else
5858 case $cross_compiling:$ac_tool_warned in
5859yes:)
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862ac_tool_warned=yes ;;
5863esac
5864 AR=$ac_ct_AR
5865 fi
5866fi
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005867
5868
5869# tweak ARFLAGS only if the user didn't set it on the command line
5870
5871if test -z "$ARFLAGS"
5872then
5873 ARFLAGS="rc"
5874fi
5875
doko@ubuntu.com58844492012-06-30 18:25:32 +02005876if test -n "$ac_tool_prefix"; then
5877 for ac_prog in readelf
5878 do
5879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
5883if ${ac_cv_prog_READELF+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885else
5886 if test -n "$READELF"; then
5887 ac_cv_prog_READELF="$READELF" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00005895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com58844492012-06-30 18:25:32 +02005896 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900done
5901 done
5902IFS=$as_save_IFS
5903
5904fi
5905fi
5906READELF=$ac_cv_prog_READELF
5907if test -n "$READELF"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5909$as_echo "$READELF" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915
5916 test -n "$READELF" && break
5917 done
5918fi
5919if test -z "$READELF"; then
5920 ac_ct_READELF=$READELF
5921 for ac_prog in readelf
5922do
5923 # Extract the first word of "$ac_prog", so it can be a program name with args.
5924set dummy $ac_prog; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
5927if ${ac_cv_prog_ac_ct_READELF+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929else
5930 if test -n "$ac_ct_READELF"; then
5931 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00005939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com58844492012-06-30 18:25:32 +02005940 ac_cv_prog_ac_ct_READELF="$ac_prog"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944done
5945 done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
5951if test -n "$ac_ct_READELF"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
5953$as_echo "$ac_ct_READELF" >&6; }
5954else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959
5960 test -n "$ac_ct_READELF" && break
5961done
5962
5963 if test "x$ac_ct_READELF" = x; then
5964 READELF=":"
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967yes:)
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970ac_tool_warned=yes ;;
5971esac
5972 READELF=$ac_ct_READELF
5973 fi
5974fi
5975
5976if test "$cross_compiling" = yes; then
5977 case "$READELF" in
5978 readelf|:)
5979 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
5980 ;;
5981 esac
5982fi
5983
5984
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00005985
Matthias Klosec4c48422012-10-21 23:05:35 +02005986for ac_prog in python$PACKAGE_VERSION python3 python
5987do
5988 # Extract the first word of "$ac_prog", so it can be a program name with args.
5989set dummy $ac_prog; ac_word=$2
Benjamin Peterson87cdb812011-05-31 18:26:08 -05005990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991$as_echo_n "checking for $ac_word... " >&6; }
Matthias Klosec4c48422012-10-21 23:05:35 +02005992if ${ac_cv_prog_PYTHON+:} false; then :
Benjamin Peterson87cdb812011-05-31 18:26:08 -05005993 $as_echo_n "(cached) " >&6
5994else
Matthias Klosec4c48422012-10-21 23:05:35 +02005995 if test -n "$PYTHON"; then
5996 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
Benjamin Peterson87cdb812011-05-31 18:26:08 -05005997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00006004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Matthias Klosec4c48422012-10-21 23:05:35 +02006005 ac_cv_prog_PYTHON="$ac_prog"
Benjamin Peterson87cdb812011-05-31 18:26:08 -05006006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010 done
6011IFS=$as_save_IFS
6012
Benjamin Peterson87cdb812011-05-31 18:26:08 -05006013fi
6014fi
Matthias Klosec4c48422012-10-21 23:05:35 +02006015PYTHON=$ac_cv_prog_PYTHON
6016if test -n "$PYTHON"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6018$as_echo "$PYTHON" >&6; }
Benjamin Peterson87cdb812011-05-31 18:26:08 -05006019else
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021$as_echo "no" >&6; }
6022fi
6023
6024
Matthias Klosec4c48422012-10-21 23:05:35 +02006025 test -n "$PYTHON" && break
6026done
6027test -n "$PYTHON" || PYTHON="not-found"
6028
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00006029if test "$PYTHON" = not-found; then
Matthias Klosec4c48422012-10-21 23:05:35 +02006030 ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #"
6031else
6032 ASDLGEN="$PYTHON"
Benjamin Peterson87cdb812011-05-31 18:26:08 -05006033fi
6034
6035
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006036case $MACHDEP in
6037bsdos*|hp*|HP*)
6038 # install -d does not work on BSDI or HP-UX
6039 if test -z "$INSTALL"
6040 then
6041 INSTALL="${srcdir}/install-sh -c"
6042 fi
6043esac
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006044# Find a good install program. We prefer a C program (faster),
6045# so one script is as good as another. But avoid the broken or
6046# incompatible versions:
6047# SysV /etc/install, /usr/sbin/install
6048# SunOS /usr/etc/install
6049# IRIX /sbin/install
6050# AIX /bin/install
6051# AmigaOS /C/install, which installs bootblocks on floppy discs
6052# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6053# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6054# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6055# OS/2's system install, which has a completely different semantic
6056# ./install, which can be erroneously created by make from ./install.sh.
Matthias Kloseb9621712010-04-24 17:59:49 +00006057# Reject install programs that cannot install multiple files.
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6059$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006060if test -z "$INSTALL"; then
Victor Stinnere0be4232011-10-25 13:06:09 +02006061if ${ac_cv_path_install+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00006062 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006063else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00006069 # Account for people who put trailing slashes in PATH elements.
6070case $as_dir/ in #((
6071 ./ | .// | /[cC]/* | \
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006072 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Matthias Kloseb9621712010-04-24 17:59:49 +00006073 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006074 /usr/ucb/* ) ;;
6075 *)
6076 # OSF1 and SCO ODT 3.0 have their own names for install.
6077 # Don't use installbsd from OSF since it installs stuff as root
6078 # by default.
6079 for ac_prog in ginstall scoinst install; do
6080 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00006081 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006082 if test $ac_prog = install &&
6083 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6084 # AIX install. It has an incompatible calling convention.
6085 :
6086 elif test $ac_prog = install &&
6087 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6088 # program-specific install script used by HP pwplus--don't use.
6089 :
6090 else
Matthias Kloseb9621712010-04-24 17:59:49 +00006091 rm -rf conftest.one conftest.two conftest.dir
6092 echo one > conftest.one
6093 echo two > conftest.two
6094 mkdir conftest.dir
6095 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6096 test -s conftest.one && test -s conftest.two &&
6097 test -s conftest.dir/conftest.one &&
6098 test -s conftest.dir/conftest.two
6099 then
6100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6101 break 3
6102 fi
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006103 fi
6104 fi
6105 done
6106 done
6107 ;;
6108esac
Matthias Kloseb9621712010-04-24 17:59:49 +00006109
6110 done
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006111IFS=$as_save_IFS
6112
Matthias Kloseb9621712010-04-24 17:59:49 +00006113rm -rf conftest.one conftest.two conftest.dir
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006114
6115fi
6116 if test "${ac_cv_path_install+set}" = set; then
6117 INSTALL=$ac_cv_path_install
6118 else
6119 # As a last resort, use the slow shell script. Don't cache a
6120 # value for INSTALL within a source directory, because that will
6121 # break other packages using the cache if that directory is
6122 # removed, or if the value is a relative name.
6123 INSTALL=$ac_install_sh
6124 fi
6125fi
Matthias Kloseb9621712010-04-24 17:59:49 +00006126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6127$as_echo "$INSTALL" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006128
6129# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6130# It thinks the first close brace ends the variable substitution.
6131test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6132
6133test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6134
6135test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6136
Matthias Klose93a0ef12012-03-15 18:08:34 +01006137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6138$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6139if test -z "$MKDIR_P"; then
6140 if ${ac_cv_path_mkdir+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_prog in mkdir gmkdir; do
6149 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00006150 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Matthias Klose93a0ef12012-03-15 18:08:34 +01006151 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6152 'mkdir (GNU coreutils) '* | \
6153 'mkdir (coreutils) '* | \
6154 'mkdir (fileutils) '4.1*)
6155 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6156 break 3;;
6157 esac
6158 done
6159 done
6160 done
6161IFS=$as_save_IFS
6162
6163fi
6164
6165 test -d ./--version && rmdir ./--version
6166 if test "${ac_cv_path_mkdir+set}" = set; then
6167 MKDIR_P="$ac_cv_path_mkdir -p"
6168 else
6169 # As a last resort, use the slow shell script. Don't cache a
6170 # value for MKDIR_P within a source directory, because that will
6171 # break other packages using the cache if that directory is
6172 # removed, or if the value is a relative name.
6173 MKDIR_P="$ac_install_sh -d"
6174 fi
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6177$as_echo "$MKDIR_P" >&6; }
6178
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006179
6180# Not every filesystem supports hard links
6181
6182if test -z "$LN" ; then
6183 case $ac_sys_system in
6184 CYGWIN*) LN="ln -s";;
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006185 *) LN=ln;;
6186 esac
6187fi
6188
Barry Warsaw35f3a2c2010-09-03 18:30:30 +00006189# For calculating the .so ABI tag.
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00006190
6191ABIFLAGS=""
Barry Warsaw35f3a2c2010-09-03 18:30:30 +00006192
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006193# Check for --with-pydebug
Matthias Kloseb9621712010-04-24 17:59:49 +00006194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
6195$as_echo_n "checking for --with-pydebug... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006196
6197# Check whether --with-pydebug was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00006198if test "${with_pydebug+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006199 withval=$with_pydebug;
6200if test "$withval" != no
6201then
6202
Matthias Kloseb9621712010-04-24 17:59:49 +00006203$as_echo "#define Py_DEBUG 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006204
Matthias Kloseb9621712010-04-24 17:59:49 +00006205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6206$as_echo "yes" >&6; };
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006207 Py_DEBUG='true'
Barry Warsaw8cf4eae2010-10-16 01:04:07 +00006208 ABIFLAGS="${ABIFLAGS}d"
Matthias Kloseb9621712010-04-24 17:59:49 +00006209else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210$as_echo "no" >&6; }; Py_DEBUG='false'
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006211fi
6212else
Matthias Kloseb9621712010-04-24 17:59:49 +00006213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006215fi
6216
6217
6218# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
6219# merged with this chunk of code?
6220
6221# Optimizer/debugger flags
6222# ------------------------
6223# (The following bit of code is complicated enough - please keep things
6224# indented properly. Just pretend you're editing Python code. ;-)
6225
6226# There are two parallel sets of case statements below, one that checks to
6227# see if OPT was set and one that does BASECFLAGS setting based upon
6228# compiler and platform. BASECFLAGS tweaks need to be made even if the
6229# user set OPT.
6230
6231# tweak OPT based on compiler and platform, only if the user didn't set
6232# it on the command line
6233
Benjamin Peterson65b4ec52010-03-23 21:02:34 +00006234if test "${OPT-unset}" = "unset"
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006235then
6236 case $GCC in
6237 yes)
6238 if test "$CC" != 'g++' ; then
6239 STRICT_PROTO="-Wstrict-prototypes"
6240 fi
6241 # For gcc 4.x we need to use -fwrapv so lets check if its supported
6242 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6243 WRAP="-fwrapv"
6244 fi
Stefan Krah962055d2011-09-14 15:14:08 +02006245
6246 # Clang also needs -fwrapv
Stefan Krahaf04ff22011-12-08 22:20:31 +01006247 case $CC in
6248 *clang*) WRAP="-fwrapv"
6249 ;;
6250 esac
Stefan Krah962055d2011-09-14 15:14:08 +02006251
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006252 case $ac_cv_prog_cc_g in
6253 yes)
6254 if test "$Py_DEBUG" = 'true' ; then
6255 # Optimization messes up debuggers, so turn it off for
6256 # debug builds.
Mark Dickinsonb2153e92010-05-05 22:31:36 +00006257 OPT="-g -O0 -Wall $STRICT_PROTO"
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006258 else
6259 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
6260 fi
6261 ;;
6262 *)
6263 OPT="-O3 -Wall $STRICT_PROTO"
6264 ;;
6265 esac
6266 case $ac_sys_system in
6267 SCO_SV*) OPT="$OPT -m486 -DSCO5"
6268 ;;
6269 esac
6270 ;;
6271
6272 *)
6273 OPT="-O"
6274 ;;
6275 esac
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006276fi
6277
6278
6279
6280# The -arch flags for universal builds on OSX
6281UNIVERSAL_ARCH_FLAGS=
6282
6283
6284# tweak BASECFLAGS based on compiler and platform
6285case $GCC in
6286yes)
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006287 # Python doesn't violate C99 aliasing rules, but older versions of
6288 # GCC produce warnings for legal Python code. Enable
6289 # -fno-strict-aliasing on versions of GCC that support but produce
6290 # warnings. See Issue3326
Matthias Kloseb9621712010-04-24 17:59:49 +00006291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
6292$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006293 ac_save_cc="$CC"
6294 CC="$CC -fno-strict-aliasing"
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006295 save_CFLAGS="$CFLAGS"
Victor Stinnere0be4232011-10-25 13:06:09 +02006296 if ${ac_cv_no_strict_aliasing+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00006297 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00006298else
Matthias Kloseb9621712010-04-24 17:59:49 +00006299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006300/* end confdefs.h. */
Gregory P. Smithe0450c62009-11-01 21:11:36 +00006301
Matthias Kloseb159a552010-04-25 21:00:44 +00006302
Gregory P. Smithe0450c62009-11-01 21:11:36 +00006303int
6304main ()
6305{
Mark Dickinson8c2b6f12010-05-11 09:23:07 +00006306
Gregory P. Smithe0450c62009-11-01 21:11:36 +00006307 ;
6308 return 0;
6309}
Matthias Kloseb159a552010-04-25 21:00:44 +00006310
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006311_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00006312if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:44 +00006313
6314 CC="$ac_save_cc -fstrict-aliasing"
6315 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006317/* end confdefs.h. */
6318
Mark Dickinson8c2b6f12010-05-11 09:23:07 +00006319 void f(int **x) {}
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006320int
6321main ()
6322{
Mark Dickinson8c2b6f12010-05-11 09:23:07 +00006323double *x; f((int **) &x);
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006324 ;
6325 return 0;
6326}
Matthias Kloseb159a552010-04-25 21:00:44 +00006327
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006328_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00006329if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:44 +00006330
6331 ac_cv_no_strict_aliasing=no
6332
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006333else
Matthias Kloseb159a552010-04-25 21:00:44 +00006334
6335 ac_cv_no_strict_aliasing=yes
6336
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006337fi
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb159a552010-04-25 21:00:44 +00006339
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006340else
Matthias Kloseb159a552010-04-25 21:00:44 +00006341
6342 ac_cv_no_strict_aliasing=no
6343
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006344fi
Gregory P. Smithe0450c62009-11-01 21:11:36 +00006345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00006346fi
6347
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006348 CFLAGS="$save_CFLAGS"
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006349 CC="$ac_save_cc"
Matthias Kloseb9621712010-04-24 17:59:49 +00006350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
6351$as_echo "$ac_cv_no_strict_aliasing" >&6; }
Benjamin Petersone6c9d242010-03-30 17:34:47 +00006352 if test $ac_cv_no_strict_aliasing = yes
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006353 then
6354 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
6355 fi
6356
Benjamin Peterson7ddbf102011-09-23 13:23:22 -04006357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5
6358$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; }
6359 ac_save_cc="$CC"
6360 CC="$CC -Wunused-result -Werror"
6361 save_CFLAGS="$CFLAGS"
Victor Stinnere0be4232011-10-25 13:06:09 +02006362 if ${ac_cv_disable_unused_result_warning+:} false; then :
Benjamin Peterson7ddbf102011-09-23 13:23:22 -04006363 $as_echo_n "(cached) " >&6
6364else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h. */
6367
6368
6369int
6370main ()
6371{
6372
6373 ;
6374 return 0;
6375}
6376
6377_ACEOF
6378if ac_fn_c_try_compile "$LINENO"; then :
6379
6380 ac_cv_disable_unused_result_warning=yes
6381
6382else
6383
6384 ac_cv_disable_unused_result_warning=no
6385
6386fi
6387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388fi
6389
6390 CFLAGS="$save_CFLAGS"
6391 CC="$ac_save_cc"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
6393$as_echo "$ac_cv_disable_unused_result_warning" >&6; }
6394
6395 if test $ac_cv_disable_unused_result_warning = yes
6396 then
6397 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
6398 fi
6399
Benjamin Petersoncc00e012013-05-20 08:22:04 -07006400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5
6401$as_echo_n "checking for -Werror=declaration-after-statement... " >&6; }
6402 ac_save_cc="$CC"
6403 CC="$CC -Werror=declaration-after-statement"
6404 save_CFLAGS="$CFLAGS"
6405 if ${ac_cv_declaration_after_statement_warning+:} false; then :
6406 $as_echo_n "(cached) " >&6
6407else
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h. */
6410
6411
6412int
6413main ()
6414{
6415
6416 ;
6417 return 0;
6418}
6419
6420_ACEOF
6421if ac_fn_c_try_compile "$LINENO"; then :
6422
6423 ac_cv_declaration_after_statement_warning=yes
6424
6425else
6426
6427 ac_cv_declaration_after_statement_warning=no
6428
6429fi
6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431fi
6432
6433 CFLAGS="$save_CFLAGS"
6434 CC="$ac_save_cc"
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5
6436$as_echo "$ac_cv_declaration_after_statement_warning" >&6; }
6437
6438 if test $ac_cv_declaration_after_statement_warning = yes
6439 then
6440 BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement"
6441 fi
6442
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006443 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
6444 # support. Without this, treatment of subnormals doesn't follow
6445 # the standard.
Matthias Klosedf2aecb2012-03-15 22:19:28 +01006446 case $host in
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006447 alpha*)
6448 BASECFLAGS="$BASECFLAGS -mieee"
6449 ;;
6450 esac
6451
6452 case $ac_sys_system in
6453 SCO_SV*)
6454 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
6455 ;;
Ned Deily87adb6e2013-10-18 21:09:56 -07006456
6457 # is there any other compiler on Darwin besides gcc?
6458 Darwin*)
6459 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
6460 # used to be here, but non-Apple gcc doesn't accept them.
6461 if test "${CC}" = gcc
6462 then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +00006464$as_echo_n "checking which compiler should be used... " >&6; }
Ned Deily87adb6e2013-10-18 21:09:56 -07006465 case "${UNIVERSALSDK}" in
6466 */MacOSX10.4u.sdk)
6467 # Build using 10.4 SDK, force usage of gcc when the
6468 # compiler is gcc, otherwise the user will get very
6469 # confusing error messages when building on OSX 10.6
6470 CC=gcc-4.0
6471 CPP=cpp-4.0
6472 ;;
6473 esac
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +00006475$as_echo "$CC" >&6; }
Ned Deily87adb6e2013-10-18 21:09:56 -07006476 fi
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006477
Ned Deily87adb6e2013-10-18 21:09:56 -07006478 if test "${enable_universalsdk}"
6479 then
6480 case "$UNIVERSAL_ARCHS" in
6481 32-bit)
6482 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
6483 LIPO_32BIT_FLAGS=""
6484 ARCH_RUN_32BIT=""
6485 ;;
6486 64-bit)
6487 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
6488 LIPO_32BIT_FLAGS=""
6489 ARCH_RUN_32BIT="true"
6490 ;;
6491 all)
6492 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
6493 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6494 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6495 ;;
6496 intel)
6497 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
6498 LIPO_32BIT_FLAGS="-extract i386"
6499 ARCH_RUN_32BIT="/usr/bin/arch -i386"
6500 ;;
6501 intel-32)
6502 UNIVERSAL_ARCH_FLAGS="-arch i386"
6503 LIPO_32BIT_FLAGS=""
6504 ARCH_RUN_32BIT=""
6505 ;;
6506 3-way)
6507 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
6508 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6509 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6510 ;;
6511 *)
6512 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
6513 ;;
6514 esac
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006515
Ned Deily87adb6e2013-10-18 21:09:56 -07006516 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
6517 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
6518 if test "${UNIVERSALSDK}" != "/"
6519 then
6520 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
6521 fi
6522 fi
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006523
Ned Deily87adb6e2013-10-18 21:09:56 -07006524 # Calculate an appropriate deployment target for this build:
6525 # The deployment target value is used explicitly to enable certain
6526 # features are enabled (such as builtin libedit support for readline)
6527 # through the use of Apple's Availabiliy Macros and is used as a
6528 # component of the string returned by distutils.get_platform().
6529 #
6530 # Use the value from:
6531 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
6532 # 2. the operating system version of the build machine if >= 10.6
6533 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
6534 # below to pick either 10.3, 10.4, or 10.5 as the target.
6535 # 4. If we are running on OS X 10.2 or earlier, good luck!
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006536
Ned Deily87adb6e2013-10-18 21:09:56 -07006537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
6538$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
6539 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
6540 if test ${cur_target} '>' 10.2 && \
6541 test ${cur_target} '<' 10.6
6542 then
6543 cur_target=10.3
6544 if test ${enable_universalsdk}
6545 then
6546 case "$UNIVERSAL_ARCHS" in
6547 all|3-way|intel|64-bit)
6548 # These configurations were first supported in 10.5
6549 cur_target='10.5'
6550 ;;
6551 esac
6552 else
6553 if test `/usr/bin/arch` = "i386"
6554 then
6555 # 10.4 was the first release to support Intel archs
6556 cur_target="10.4"
6557 fi
6558 fi
6559 fi
6560 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
Ronald Oussoren3c064c12009-09-08 07:12:42 +00006561
Ned Deily87adb6e2013-10-18 21:09:56 -07006562 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
6563 # environment with a value that is the same as what we'll use
6564 # in the Makefile to ensure that we'll get the same compiler
6565 # environment during configure and build time.
6566 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
6567 export MACOSX_DEPLOYMENT_TARGET
6568 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
6570$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
Ronald Oussoren3c064c12009-09-08 07:12:42 +00006571
Ned Deily87adb6e2013-10-18 21:09:56 -07006572 # end of Darwin* tests
6573 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006574 esac
6575 ;;
6576
6577*)
6578 case $ac_sys_system in
6579 OpenUNIX*|UnixWare*)
6580 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
6581 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006582 SCO_SV*)
6583 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
6584 ;;
6585 esac
6586 ;;
6587esac
6588
6589if test "$Py_DEBUG" = 'true'; then
6590 :
6591else
6592 OPT="-DNDEBUG $OPT"
6593fi
6594
6595if test "$ac_arch_flags"
6596then
6597 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
6598fi
6599
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006600# On some compilers, pthreads are available without further options
6601# (e.g. MacOS X). On some of these systems, the compiler will not
6602# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
6603# So we have to see first whether pthreads are available without
6604# options before we can check whether -Kpthread improves anything.
Matthias Kloseb9621712010-04-24 17:59:49 +00006605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
6606$as_echo_n "checking whether pthreads are available without options... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02006607if ${ac_cv_pthread_is_default+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00006608 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006609else
Matthias Kloseb9621712010-04-24 17:59:49 +00006610 if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006611 ac_cv_pthread_is_default=no
6612else
Matthias Kloseb9621712010-04-24 17:59:49 +00006613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006614/* end confdefs.h. */
6615
Stefan Krah7dba5942012-11-22 22:49:11 +01006616#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006617#include <pthread.h>
6618
6619void* routine(void* p){return NULL;}
6620
6621int main(){
6622 pthread_t p;
6623 if(pthread_create(&p,NULL,routine,NULL)!=0)
6624 return 1;
6625 (void)pthread_detach(p);
6626 return 0;
6627}
6628
6629_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00006630if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006631
6632 ac_cv_pthread_is_default=yes
6633 ac_cv_kthread=no
6634 ac_cv_pthread=no
6635
6636else
Matthias Kloseb9621712010-04-24 17:59:49 +00006637 ac_cv_pthread_is_default=no
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006638fi
Matthias Kloseb9621712010-04-24 17:59:49 +00006639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6640 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006641fi
6642
6643
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006644fi
6645
Matthias Kloseb9621712010-04-24 17:59:49 +00006646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
6647$as_echo "$ac_cv_pthread_is_default" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006648
6649
6650if test $ac_cv_pthread_is_default = yes
6651then
6652 ac_cv_kpthread=no
6653else
6654# -Kpthread, if available, provides the right #defines
6655# and linker options to make pthread_create available
6656# Some compilers won't report that they do not support -Kpthread,
6657# so we need to run a program to see whether it really made the
6658# function available.
Matthias Kloseb9621712010-04-24 17:59:49 +00006659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
6660$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02006661if ${ac_cv_kpthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00006662 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006663else
6664 ac_save_cc="$CC"
6665CC="$CC -Kpthread"
Matthias Kloseb9621712010-04-24 17:59:49 +00006666if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006667 ac_cv_kpthread=no
6668else
Matthias Kloseb9621712010-04-24 17:59:49 +00006669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006670/* end confdefs.h. */
6671
Stefan Krah7dba5942012-11-22 22:49:11 +01006672#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006673#include <pthread.h>
6674
6675void* routine(void* p){return NULL;}
6676
6677int main(){
6678 pthread_t p;
6679 if(pthread_create(&p,NULL,routine,NULL)!=0)
6680 return 1;
6681 (void)pthread_detach(p);
6682 return 0;
6683}
6684
6685_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00006686if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006687 ac_cv_kpthread=yes
6688else
Matthias Kloseb9621712010-04-24 17:59:49 +00006689 ac_cv_kpthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006690fi
Matthias Kloseb9621712010-04-24 17:59:49 +00006691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6692 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006693fi
6694
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006695CC="$ac_save_cc"
6696fi
6697
Matthias Kloseb9621712010-04-24 17:59:49 +00006698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
6699$as_echo "$ac_cv_kpthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006700fi
6701
6702if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
6703then
6704# -Kthread, if available, provides the right #defines
6705# and linker options to make pthread_create available
6706# Some compilers won't report that they do not support -Kthread,
6707# so we need to run a program to see whether it really made the
6708# function available.
Matthias Kloseb9621712010-04-24 17:59:49 +00006709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
6710$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02006711if ${ac_cv_kthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00006712 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006713else
6714 ac_save_cc="$CC"
6715CC="$CC -Kthread"
Matthias Kloseb9621712010-04-24 17:59:49 +00006716if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006717 ac_cv_kthread=no
6718else
Matthias Kloseb9621712010-04-24 17:59:49 +00006719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006720/* end confdefs.h. */
6721
Stefan Krah7dba5942012-11-22 22:49:11 +01006722#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006723#include <pthread.h>
6724
6725void* routine(void* p){return NULL;}
6726
6727int main(){
6728 pthread_t p;
6729 if(pthread_create(&p,NULL,routine,NULL)!=0)
6730 return 1;
6731 (void)pthread_detach(p);
6732 return 0;
6733}
6734
6735_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00006736if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006737 ac_cv_kthread=yes
6738else
Matthias Kloseb9621712010-04-24 17:59:49 +00006739 ac_cv_kthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006740fi
Matthias Kloseb9621712010-04-24 17:59:49 +00006741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6742 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006743fi
6744
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006745CC="$ac_save_cc"
6746fi
6747
Matthias Kloseb9621712010-04-24 17:59:49 +00006748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
6749$as_echo "$ac_cv_kthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006750fi
6751
6752if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
6753then
6754# -pthread, if available, provides the right #defines
6755# and linker options to make pthread_create available
6756# Some compilers won't report that they do not support -pthread,
6757# so we need to run a program to see whether it really made the
6758# function available.
Matthias Kloseb9621712010-04-24 17:59:49 +00006759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
6760$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
doko@python.org7981f202013-01-25 15:33:25 +01006761if ${ac_cv_pthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00006762 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006763else
6764 ac_save_cc="$CC"
6765CC="$CC -pthread"
Matthias Kloseb9621712010-04-24 17:59:49 +00006766if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006767 ac_cv_pthread=no
6768else
Matthias Kloseb9621712010-04-24 17:59:49 +00006769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006770/* end confdefs.h. */
6771
Stefan Krah7dba5942012-11-22 22:49:11 +01006772#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006773#include <pthread.h>
6774
6775void* routine(void* p){return NULL;}
6776
6777int main(){
6778 pthread_t p;
6779 if(pthread_create(&p,NULL,routine,NULL)!=0)
6780 return 1;
6781 (void)pthread_detach(p);
6782 return 0;
6783}
6784
6785_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00006786if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006787 ac_cv_pthread=yes
6788else
Matthias Kloseb9621712010-04-24 17:59:49 +00006789 ac_cv_pthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006790fi
Matthias Kloseb9621712010-04-24 17:59:49 +00006791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6792 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006793fi
6794
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006795CC="$ac_save_cc"
6796fi
6797
Matthias Kloseb9621712010-04-24 17:59:49 +00006798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
6799$as_echo "$ac_cv_pthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006800fi
6801
6802# If we have set a CC compiler flag for thread support then
6803# check if it works for CXX, too.
6804ac_cv_cxx_thread=no
6805if test ! -z "$CXX"
6806then
Matthias Kloseb9621712010-04-24 17:59:49 +00006807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
6808$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006809ac_save_cxx="$CXX"
6810
6811if test "$ac_cv_kpthread" = "yes"
6812then
6813 CXX="$CXX -Kpthread"
6814 ac_cv_cxx_thread=yes
6815elif test "$ac_cv_kthread" = "yes"
6816then
6817 CXX="$CXX -Kthread"
6818 ac_cv_cxx_thread=yes
6819elif test "$ac_cv_pthread" = "yes"
6820then
6821 CXX="$CXX -pthread"
6822 ac_cv_cxx_thread=yes
6823fi
6824
6825if test $ac_cv_cxx_thread = yes
6826then
6827 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
6828 $CXX -c conftest.$ac_ext 2>&5
6829 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
6830 && test -s conftest$ac_exeext && ./conftest$ac_exeext
6831 then
6832 ac_cv_cxx_thread=yes
6833 else
6834 ac_cv_cxx_thread=no
6835 fi
6836 rm -fr conftest*
6837fi
Matthias Kloseb9621712010-04-24 17:59:49 +00006838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
6839$as_echo "$ac_cv_cxx_thread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006840fi
6841CXX="$ac_save_cxx"
6842
6843
6844# checks for header files
Matthias Kloseb9621712010-04-24 17:59:49 +00006845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6846$as_echo_n "checking for ANSI C header files... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02006847if ${ac_cv_header_stdc+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00006848 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006849else
Matthias Kloseb9621712010-04-24 17:59:49 +00006850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006851/* end confdefs.h. */
6852#include <stdlib.h>
6853#include <stdarg.h>
6854#include <string.h>
6855#include <float.h>
6856
6857int
6858main ()
6859{
6860
6861 ;
6862 return 0;
6863}
6864_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00006865if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006866 ac_cv_header_stdc=yes
6867else
Matthias Kloseb9621712010-04-24 17:59:49 +00006868 ac_cv_header_stdc=no
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006869fi
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871
6872if test $ac_cv_header_stdc = yes; then
6873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Matthias Kloseb9621712010-04-24 17:59:49 +00006874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006875/* end confdefs.h. */
6876#include <string.h>
6877
6878_ACEOF
6879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +00006880 $EGREP "memchr" >/dev/null 2>&1; then :
6881
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006882else
6883 ac_cv_header_stdc=no
6884fi
Matthias Klosec80c93f2010-04-24 17:04:35 +00006885rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006886
6887fi
6888
6889if test $ac_cv_header_stdc = yes; then
6890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Matthias Kloseb9621712010-04-24 17:59:49 +00006891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006892/* end confdefs.h. */
6893#include <stdlib.h>
6894
6895_ACEOF
6896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +00006897 $EGREP "free" >/dev/null 2>&1; then :
6898
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006899else
6900 ac_cv_header_stdc=no
6901fi
Matthias Klosec80c93f2010-04-24 17:04:35 +00006902rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006903
6904fi
6905
6906if test $ac_cv_header_stdc = yes; then
6907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Matthias Kloseb9621712010-04-24 17:59:49 +00006908 if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006909 :
6910else
Matthias Kloseb9621712010-04-24 17:59:49 +00006911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006912/* end confdefs.h. */
6913#include <ctype.h>
6914#include <stdlib.h>
6915#if ((' ' & 0x0FF) == 0x020)
6916# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918#else
6919# define ISLOWER(c) \
6920 (('a' <= (c) && (c) <= 'i') \
6921 || ('j' <= (c) && (c) <= 'r') \
6922 || ('s' <= (c) && (c) <= 'z'))
6923# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6924#endif
6925
6926#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6927int
6928main ()
6929{
6930 int i;
6931 for (i = 0; i < 256; i++)
6932 if (XOR (islower (i), ISLOWER (i))
6933 || toupper (i) != TOUPPER (i))
6934 return 2;
6935 return 0;
6936}
6937_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00006938if ac_fn_c_try_run "$LINENO"; then :
6939
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006940else
Matthias Kloseb9621712010-04-24 17:59:49 +00006941 ac_cv_header_stdc=no
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006942fi
Matthias Kloseb9621712010-04-24 17:59:49 +00006943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6944 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006945fi
6946
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006947fi
6948fi
Matthias Kloseb9621712010-04-24 17:59:49 +00006949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6950$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006951if test $ac_cv_header_stdc = yes; then
6952
Matthias Kloseb9621712010-04-24 17:59:49 +00006953$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:53 +00006954
6955fi
6956
doko@ubuntu.com9dc823d2012-07-07 03:06:42 +02006957ac_save_cppflags="$CPPFLAGS"
6958CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
Benjamin Petersonb77fe172011-09-13 17:20:47 -04006959for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
Thomas Wouters0e3f5912006-08-11 14:57:12 +00006960fcntl.h grp.h \
Jesus Cead8b9ae62011-11-14 19:07:41 +01006961ieeefp.h io.h langinfo.h libintl.h ncurses.h process.h pthread.h \
Benjamin Peterson94b580d2011-08-02 17:30:04 -05006962sched.h shadow.h signal.h stdint.h stropts.h termios.h \
Martin v. Löwis14e73b12003-01-01 09:51:12 +00006963unistd.h utime.h \
Jesus Cead8b9ae62011-11-14 19:07:41 +01006964poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
Antoine Pitroubcf2b592012-02-08 23:28:36 +01006965sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
Martin v. Löwis9d6c6692012-02-03 17:44:58 +01006966sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
Jesus Cead8b9ae62011-11-14 19:07:41 +01006967sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
Martin v. Löwis9d6c6692012-02-03 17:44:58 +01006968sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
Georg Brandl941f9562011-02-25 15:21:47 +00006969sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
Gregory P. Smith3b1f2c32011-05-15 12:18:23 -07006970libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
Christian Heimes985ecdc2013-11-20 11:46:18 +01006971bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h endian.h \
6972sys/endian.h
Matthias Kloseb9621712010-04-24 17:59:49 +00006973do :
6974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6975ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02006976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00006977 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00006978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +00006979_ACEOF
6980
6981fi
6982
Guido van Rossum627b2d71993-12-24 10:39:16 +00006983done
6984
doko@ubuntu.com9dc823d2012-07-07 03:06:42 +02006985CPPFLAGS=$ac_save_cppflags
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006986ac_header_dirent=no
Martin v. Löwis11437992002-04-12 09:54:03 +00006987for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Matthias Kloseb9621712010-04-24 17:59:49 +00006988 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6990$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02006991if eval \${$as_ac_Header+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00006992 $as_echo_n "(cached) " >&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00006993else
Matthias Kloseb9621712010-04-24 17:59:49 +00006994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00006995/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006996#include <sys/types.h>
6997#include <$ac_hdr>
Martin v. Löwis11437992002-04-12 09:54:03 +00006998
Martin v. Löwis11437992002-04-12 09:54:03 +00006999int
7000main ()
7001{
7002if ((DIR *) 0)
7003return 0;
7004 ;
7005 return 0;
7006}
7007_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00007008if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00007009 eval "$as_ac_Header=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +00007010else
Matthias Kloseb9621712010-04-24 17:59:49 +00007011 eval "$as_ac_Header=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007012fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00007014fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007015eval ac_res=\$$as_ac_Header
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7017$as_echo "$ac_res" >&6; }
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00007019 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00007020#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +00007021_ACEOF
7022
7023ac_header_dirent=$ac_hdr; break
Michael W. Hudson54241132001-12-07 15:38:26 +00007024fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007025
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007026done
7027# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7028if test $ac_header_dirent = dirent.h; then
Matthias Kloseb9621712010-04-24 17:59:49 +00007029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7030$as_echo_n "checking for library containing opendir... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007031if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007032 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007033else
Martin v. Löwis11437992002-04-12 09:54:03 +00007034 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:49 +00007035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00007036/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007037
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007038/* Override any GCC internal prototype to avoid an error.
7039 Use char because int might match the return type of a GCC
7040 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007041#ifdef __cplusplus
7042extern "C"
7043#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00007044char opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00007045int
7046main ()
7047{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007048return opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00007049 ;
7050 return 0;
7051}
7052_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007053for ac_lib in '' dir; do
7054 if test -z "$ac_lib"; then
7055 ac_res="none required"
7056 else
7057 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00007058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007059 fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007060 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007061 ac_cv_search_opendir=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:47 +00007062fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007063rm -f core conftest.err conftest.$ac_objext \
7064 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 13:06:09 +02007065 if ${ac_cv_search_opendir+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007066 break
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00007067fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007068done
Victor Stinnere0be4232011-10-25 13:06:09 +02007069if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007070
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007071else
7072 ac_cv_search_opendir=no
7073fi
7074rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007075LIBS=$ac_func_search_save_LIBS
7076fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7078$as_echo "$ac_cv_search_opendir" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007079ac_res=$ac_cv_search_opendir
Matthias Kloseb9621712010-04-24 17:59:49 +00007080if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Michael W. Hudson54241132001-12-07 15:38:26 +00007082
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007083fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007084
Michael W. Hudson54241132001-12-07 15:38:26 +00007085else
Matthias Kloseb9621712010-04-24 17:59:49 +00007086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7087$as_echo_n "checking for library containing opendir... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007088if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007089 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007090else
7091 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:49 +00007092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00007093/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007094
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007095/* Override any GCC internal prototype to avoid an error.
7096 Use char because int might match the return type of a GCC
7097 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007098#ifdef __cplusplus
7099extern "C"
7100#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00007101char opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00007102int
7103main ()
7104{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007105return opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00007106 ;
7107 return 0;
7108}
7109_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007110for ac_lib in '' x; do
7111 if test -z "$ac_lib"; then
7112 ac_res="none required"
7113 else
7114 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00007115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007116 fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007117 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007118 ac_cv_search_opendir=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:47 +00007119fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007120rm -f core conftest.err conftest.$ac_objext \
7121 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 13:06:09 +02007122 if ${ac_cv_search_opendir+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007123 break
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00007124fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007125done
Victor Stinnere0be4232011-10-25 13:06:09 +02007126if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007127
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007128else
7129 ac_cv_search_opendir=no
7130fi
7131rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007132LIBS=$ac_func_search_save_LIBS
7133fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7135$as_echo "$ac_cv_search_opendir" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007136ac_res=$ac_cv_search_opendir
Matthias Kloseb9621712010-04-24 17:59:49 +00007137if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +00007139
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007140fi
7141
7142fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00007143
Matthias Kloseb9621712010-04-24 17:59:49 +00007144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7145$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007146if ${ac_cv_header_sys_types_h_makedev+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007147 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00007148else
Matthias Kloseb9621712010-04-24 17:59:49 +00007149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00007150/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00007151#include <sys/types.h>
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00007152int
7153main ()
7154{
7155return makedev(0, 0);
7156 ;
7157 return 0;
7158}
7159_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00007160if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00007161 ac_cv_header_sys_types_h_makedev=yes
7162else
Matthias Kloseb9621712010-04-24 17:59:49 +00007163 ac_cv_header_sys_types_h_makedev=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00007164fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007165rm -f core conftest.err conftest.$ac_objext \
7166 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00007167
7168fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7170$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00007171
7172if test $ac_cv_header_sys_types_h_makedev = no; then
Matthias Kloseb9621712010-04-24 17:59:49 +00007173ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +02007174if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:04 +00007175
Matthias Kloseb9621712010-04-24 17:59:49 +00007176$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00007177
7178fi
7179
7180
7181
7182 if test $ac_cv_header_sys_mkdev_h = no; then
Matthias Kloseb9621712010-04-24 17:59:49 +00007183 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +02007184if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:04 +00007185
Matthias Kloseb9621712010-04-24 17:59:49 +00007186$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00007187
7188fi
7189
7190
7191 fi
7192fi
7193
Michael W. Hudson54241132001-12-07 15:38:26 +00007194
Gregory P. Smith3b1f2c32011-05-15 12:18:23 -07007195# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
7196for ac_header in net/if.h
7197do :
7198 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
7199#ifdef STDC_HEADERS
7200# include <stdlib.h>
7201# include <stddef.h>
7202#else
7203# ifdef HAVE_STDLIB_H
7204# include <stdlib.h>
7205# endif
7206#endif
7207#ifdef HAVE_SYS_SOCKET_H
7208# include <sys/socket.h>
7209#endif
7210
7211"
Victor Stinnere0be4232011-10-25 13:06:09 +02007212if test "x$ac_cv_header_net_if_h" = xyes; then :
Gregory P. Smith3b1f2c32011-05-15 12:18:23 -07007213 cat >>confdefs.h <<_ACEOF
7214#define HAVE_NET_IF_H 1
7215_ACEOF
7216
7217fi
7218
7219done
7220
7221
7222
Martin v. Löwisae2830c2004-09-18 09:54:52 +00007223# On Solaris, term.h requires curses.h
Martin v. Löwisfd1c69e72004-11-30 22:09:37 +00007224for ac_header in term.h
Matthias Kloseb9621712010-04-24 17:59:49 +00007225do :
7226 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
Martin v. Löwis5d52e782004-09-18 10:07:03 +00007227#ifdef HAVE_CURSES_H
7228#include <curses.h>
7229#endif
7230
Matthias Kloseb9621712010-04-24 17:59:49 +00007231"
Victor Stinnere0be4232011-10-25 13:06:09 +02007232if test "x$ac_cv_header_term_h" = xyes; then :
Martin v. Löwisfd1c69e72004-11-30 22:09:37 +00007233 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00007234#define HAVE_TERM_H 1
Martin v. Löwisfd1c69e72004-11-30 22:09:37 +00007235_ACEOF
Martin v. Löwisae2830c2004-09-18 09:54:52 +00007236
Martin v. Löwisfd1c69e72004-11-30 22:09:37 +00007237fi
7238
7239done
Martin v. Löwisae2830c2004-09-18 09:54:52 +00007240
7241
Martin v. Löwis11017b12006-01-14 18:12:57 +00007242# On Linux, netlink.h requires asm/types.h
Martin v. Löwis11017b12006-01-14 18:12:57 +00007243for ac_header in linux/netlink.h
Matthias Kloseb9621712010-04-24 17:59:49 +00007244do :
7245 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
Martin v. Löwis11017b12006-01-14 18:12:57 +00007246#ifdef HAVE_ASM_TYPES_H
7247#include <asm/types.h>
7248#endif
7249#ifdef HAVE_SYS_SOCKET_H
7250#include <sys/socket.h>
7251#endif
7252
Matthias Kloseb9621712010-04-24 17:59:49 +00007253"
Victor Stinnere0be4232011-10-25 13:06:09 +02007254if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
Martin v. Löwis11017b12006-01-14 18:12:57 +00007255 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00007256#define HAVE_LINUX_NETLINK_H 1
Martin v. Löwis11017b12006-01-14 18:12:57 +00007257_ACEOF
7258
7259fi
7260
7261done
7262
7263
Charles-François Natali47413c12011-10-06 19:47:44 +02007264# On Linux, can.h and can/raw.h require sys/socket.h
Charles-François Natali773e42d2013-02-05 19:42:01 +01007265for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h
Charles-François Natali47413c12011-10-06 19:47:44 +02007266do :
7267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7268ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7269#ifdef HAVE_SYS_SOCKET_H
7270#include <sys/socket.h>
7271#endif
7272
7273"
7274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7275 cat >>confdefs.h <<_ACEOF
7276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277_ACEOF
7278
7279fi
7280
7281done
7282
7283
Guido van Rossum627b2d71993-12-24 10:39:16 +00007284# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:29 +00007285was_it_defined=no
Matthias Kloseb9621712010-04-24 17:59:49 +00007286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
7287$as_echo_n "checking for clock_t in time.h... " >&6; }
7288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00007289/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007290#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007291
7292_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +00007294 $EGREP "clock_t" >/dev/null 2>&1; then :
Guido van Rossumda88dad1995-01-26 00:46:29 +00007295 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00007296else
Martin v. Löwis11437992002-04-12 09:54:03 +00007297
7298
Matthias Kloseb9621712010-04-24 17:59:49 +00007299$as_echo "#define clock_t long" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +00007300
Martin v. Löwisc45929e2002-04-06 10:10:49 +00007301
Guido van Rossum627b2d71993-12-24 10:39:16 +00007302fi
Matthias Klosec80c93f2010-04-24 17:04:35 +00007303rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +00007304
Matthias Kloseb9621712010-04-24 17:59:49 +00007305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
7306$as_echo "$was_it_defined" >&6; }
Guido van Rossumda88dad1995-01-26 00:46:29 +00007307
Matthias Kloseb9621712010-04-24 17:59:49 +00007308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
7309$as_echo_n "checking for makedev... " >&6; }
7310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00007311/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:44 +00007312
Jesus Cea740f53a2010-04-28 11:35:30 +00007313#if defined(MAJOR_IN_MKDEV)
7314#include <sys/mkdev.h>
7315#elif defined(MAJOR_IN_SYSMACROS)
7316#include <sys/sysmacros.h>
7317#else
7318#include <sys/types.h>
7319#endif
7320
Neal Norwitz11690112002-07-30 01:08:28 +00007321int
7322main ()
7323{
Jesus Cea740f53a2010-04-28 11:35:30 +00007324
7325 makedev(0, 0)
Neal Norwitz11690112002-07-30 01:08:28 +00007326 ;
7327 return 0;
7328}
Matthias Kloseb159a552010-04-25 21:00:44 +00007329
Neal Norwitz11690112002-07-30 01:08:28 +00007330_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00007331if ac_fn_c_try_link "$LINENO"; then :
Neal Norwitz11690112002-07-30 01:08:28 +00007332 ac_cv_has_makedev=yes
7333else
Matthias Kloseb9621712010-04-24 17:59:49 +00007334 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:28 +00007335fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007336rm -f core conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +00007338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
7339$as_echo "$ac_cv_has_makedev" >&6; }
Neal Norwitz11690112002-07-30 01:08:28 +00007340if test "$ac_cv_has_makedev" = "yes"; then
7341
Matthias Kloseb9621712010-04-24 17:59:49 +00007342$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
Neal Norwitz11690112002-07-30 01:08:28 +00007343
7344fi
7345
Christian Heimes985ecdc2013-11-20 11:46:18 +01007346# byte swapping
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
7348$as_echo_n "checking for le64toh... " >&6; }
7349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h. */
7351
7352#ifdef HAVE_ENDIAN_H
7353#include <endian.h>
7354#elif defined(HAVE_SYS_ENDIAN_H)
7355#include <sys/endian.h>
7356#endif
7357
7358int
7359main ()
7360{
7361
7362 le64toh(1)
7363 ;
7364 return 0;
7365}
7366
7367_ACEOF
7368if ac_fn_c_try_link "$LINENO"; then :
7369 ac_cv_has_le64toh=yes
7370else
7371 ac_cv_has_le64toh=no
7372fi
7373rm -f core conftest.err conftest.$ac_objext \
7374 conftest$ac_exeext conftest.$ac_ext
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5
7376$as_echo "$ac_cv_has_le64toh" >&6; }
7377if test "$ac_cv_has_le64toh" = "yes"; then
7378
7379$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
7380
7381fi
7382
Martin v. Löwis399a6892002-10-04 10:22:02 +00007383# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7384# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7385# defined, but the compiler does not support pragma redefine_extname,
7386# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7387# structures (such as rlimit64) without declaring them. As a
7388# work-around, disable LFS on such configurations
7389
7390use_lfs=yes
Matthias Kloseb9621712010-04-24 17:59:49 +00007391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
7392$as_echo_n "checking Solaris LFS bug... " >&6; }
7393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00007394/* end confdefs.h. */
Martin v. Löwis399a6892002-10-04 10:22:02 +00007395
7396#define _LARGEFILE_SOURCE 1
7397#define _FILE_OFFSET_BITS 64
7398#include <sys/resource.h>
7399
Martin v. Löwis399a6892002-10-04 10:22:02 +00007400int
7401main ()
7402{
7403struct rlimit foo;
7404 ;
7405 return 0;
7406}
7407_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00007408if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis399a6892002-10-04 10:22:02 +00007409 sol_lfs_bug=no
7410else
Matthias Kloseb9621712010-04-24 17:59:49 +00007411 sol_lfs_bug=yes
Martin v. Löwis399a6892002-10-04 10:22:02 +00007412fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +00007414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
7415$as_echo "$sol_lfs_bug" >&6; }
Martin v. Löwis399a6892002-10-04 10:22:02 +00007416if test "$sol_lfs_bug" = "yes"; then
7417 use_lfs=no
7418fi
7419
7420if test "$use_lfs" = "yes"; then
Guido van Rossum810cc512001-09-09 23:51:39 +00007421# Two defines needed to enable largefile support on various platforms
7422# These may affect some typedefs
Georg Brandl216e4042011-02-19 08:58:23 +00007423case $ac_sys_system/$ac_sys_release in
7424AIX*)
7425
7426$as_echo "#define _LARGE_FILES 1" >>confdefs.h
7427
7428 ;;
7429esac
Guido van Rossum810cc512001-09-09 23:51:39 +00007430
Matthias Kloseb9621712010-04-24 17:59:49 +00007431$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00007432
7433
Matthias Kloseb9621712010-04-24 17:59:49 +00007434$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
Guido van Rossum810cc512001-09-09 23:51:39 +00007435
Martin v. Löwis399a6892002-10-04 10:22:02 +00007436fi
Michael W. Hudson54241132001-12-07 15:38:26 +00007437
Guido van Rossum84e7b241996-08-19 21:59:00 +00007438# Add some code to confdefs.h so that the test for off_t works on SCO
7439cat >> confdefs.h <<\EOF
7440#if defined(SCO_DS)
7441#undef _OFF_T
7442#endif
7443EOF
7444
Guido van Rossumef2255b2000-03-10 22:30:29 +00007445# Type availability checks
Matthias Kloseb9621712010-04-24 17:59:49 +00007446ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +02007447if test "x$ac_cv_type_mode_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:04 +00007448
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007449else
Martin v. Löwis11437992002-04-12 09:54:03 +00007450
7451cat >>confdefs.h <<_ACEOF
7452#define mode_t int
7453_ACEOF
7454
7455fi
7456
Matthias Kloseb9621712010-04-24 17:59:49 +00007457ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +02007458if test "x$ac_cv_type_off_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:04 +00007459
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007460else
Martin v. Löwis11437992002-04-12 09:54:03 +00007461
7462cat >>confdefs.h <<_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007463#define off_t long int
Martin v. Löwis11437992002-04-12 09:54:03 +00007464_ACEOF
7465
7466fi
7467
Matthias Kloseb9621712010-04-24 17:59:49 +00007468ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +02007469if test "x$ac_cv_type_pid_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:04 +00007470
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007471else
Martin v. Löwis11437992002-04-12 09:54:03 +00007472
7473cat >>confdefs.h <<_ACEOF
7474#define pid_t int
7475_ACEOF
7476
7477fi
7478
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00007479
Martin v. Löwis11437992002-04-12 09:54:03 +00007480cat >>confdefs.h <<_ACEOF
Matthias Klosebada4c32010-04-25 21:18:48 +00007481#define RETSIGTYPE void
Martin v. Löwis11437992002-04-12 09:54:03 +00007482_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00007483
Matthias Kloseb9621712010-04-24 17:59:49 +00007484ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +02007485if test "x$ac_cv_type_size_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:04 +00007486
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007487else
Martin v. Löwis11437992002-04-12 09:54:03 +00007488
7489cat >>confdefs.h <<_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007490#define size_t unsigned int
Martin v. Löwis11437992002-04-12 09:54:03 +00007491_ACEOF
7492
7493fi
7494
Matthias Kloseb9621712010-04-24 17:59:49 +00007495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7496$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007497if ${ac_cv_type_uid_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007498 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007499else
Matthias Kloseb9621712010-04-24 17:59:49 +00007500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00007501/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007502#include <sys/types.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007503
7504_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +00007506 $EGREP "uid_t" >/dev/null 2>&1; then :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007507 ac_cv_type_uid_t=yes
7508else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007509 ac_cv_type_uid_t=no
7510fi
Matthias Klosec80c93f2010-04-24 17:04:35 +00007511rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +00007512
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007513fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7515$as_echo "$ac_cv_type_uid_t" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00007516if test $ac_cv_type_uid_t = no; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007517
Matthias Kloseb9621712010-04-24 17:59:49 +00007518$as_echo "#define uid_t int" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00007519
7520
Matthias Kloseb9621712010-04-24 17:59:49 +00007521$as_echo "#define gid_t int" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007522
7523fi
7524
Mark Dickinson983bc162012-12-02 12:11:38 +00007525
7526# There are two separate checks for each of the exact-width integer types we
7527# need. First we check whether the type is available using the usual
7528# AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h>
7529# and <stdint.h> where available). We then also use the special type checks of
7530# the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available
7531# directly, #define's uint32_t to be a suitable type.
7532
7533ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7534if test "x$ac_cv_type_uint32_t" = xyes; then :
7535
7536$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
7537
7538fi
7539
Matthias Kloseb9621712010-04-24 17:59:49 +00007540ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7541case $ac_cv_c_uint32_t in #(
Mark Dickinsonbd792642009-03-18 20:06:12 +00007542 no|yes) ;; #(
7543 *)
7544
Matthias Kloseb9621712010-04-24 17:59:49 +00007545$as_echo "#define _UINT32_T 1" >>confdefs.h
Mark Dickinsonbd792642009-03-18 20:06:12 +00007546
7547
7548cat >>confdefs.h <<_ACEOF
7549#define uint32_t $ac_cv_c_uint32_t
7550_ACEOF
7551;;
7552 esac
7553
Mark Dickinson983bc162012-12-02 12:11:38 +00007554
7555ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
7556if test "x$ac_cv_type_uint64_t" = xyes; then :
7557
7558$as_echo "#define HAVE_UINT64_T 1" >>confdefs.h
7559
7560fi
7561
Matthias Kloseb9621712010-04-24 17:59:49 +00007562ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7563case $ac_cv_c_uint64_t in #(
Mark Dickinsonbd792642009-03-18 20:06:12 +00007564 no|yes) ;; #(
7565 *)
7566
Matthias Kloseb9621712010-04-24 17:59:49 +00007567$as_echo "#define _UINT64_T 1" >>confdefs.h
Mark Dickinsonbd792642009-03-18 20:06:12 +00007568
7569
7570cat >>confdefs.h <<_ACEOF
7571#define uint64_t $ac_cv_c_uint64_t
7572_ACEOF
7573;;
7574 esac
7575
Mark Dickinson983bc162012-12-02 12:11:38 +00007576
7577ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7578if test "x$ac_cv_type_int32_t" = xyes; then :
7579
7580$as_echo "#define HAVE_INT32_T 1" >>confdefs.h
7581
7582fi
7583
Matthias Kloseb9621712010-04-24 17:59:49 +00007584ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7585case $ac_cv_c_int32_t in #(
Mark Dickinsonbd792642009-03-18 20:06:12 +00007586 no|yes) ;; #(
7587 *)
7588
7589cat >>confdefs.h <<_ACEOF
7590#define int32_t $ac_cv_c_int32_t
7591_ACEOF
7592;;
Mark Dickinsonbd792642009-03-18 20:06:12 +00007593esac
7594
Mark Dickinson983bc162012-12-02 12:11:38 +00007595
7596ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
7597if test "x$ac_cv_type_int64_t" = xyes; then :
7598
7599$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
7600
7601fi
7602
Matthias Kloseb9621712010-04-24 17:59:49 +00007603ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7604case $ac_cv_c_int64_t in #(
Mark Dickinsonbd792642009-03-18 20:06:12 +00007605 no|yes) ;; #(
7606 *)
7607
7608cat >>confdefs.h <<_ACEOF
7609#define int64_t $ac_cv_c_int64_t
7610_ACEOF
7611;;
Benjamin Peterson8719ad52009-09-11 22:24:02 +00007612esac
Martin v. Löwis18e16552006-02-15 17:27:45 +00007613
Mark Dickinson983bc162012-12-02 12:11:38 +00007614
Matthias Kloseb9621712010-04-24 17:59:49 +00007615ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +02007616if test "x$ac_cv_type_ssize_t" = xyes; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007617
Matthias Kloseb9621712010-04-24 17:59:49 +00007618$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
Martin v. Löwis18e16552006-02-15 17:27:45 +00007619
7620fi
7621
Stefan Krah1919b7e2012-03-21 18:25:23 +01007622ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
7623if test "x$ac_cv_type___uint128_t" = xyes; then :
7624
7625$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
7626
7627fi
7628
Jack Jansendd19cf82001-12-06 22:36:17 +00007629
Michael W. Hudson54241132001-12-07 15:38:26 +00007630# Sizes of various common basic types
Skip Montanarob9820a32004-01-17 00:16:12 +00007631# ANSI C requires sizeof(char) == 1, so no need to check it
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007632# The cast to long int works around a bug in the HP C Compiler
7633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7635# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7637$as_echo_n "checking size of int... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007638if ${ac_cv_sizeof_int+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007639 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007640else
Matthias Kloseb9621712010-04-24 17:59:49 +00007641 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:03 +00007642
Martin v. Löwis11437992002-04-12 09:54:03 +00007643else
Matthias Kloseb9621712010-04-24 17:59:49 +00007644 if test "$ac_cv_type_int" = yes; then
7645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007647as_fn_error 77 "cannot compute sizeof (int)
Victor Stinnere0be4232011-10-25 13:06:09 +02007648See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007649 else
7650 ac_cv_sizeof_int=0
7651 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007652fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007653
Martin v. Löwis11437992002-04-12 09:54:03 +00007654fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7656$as_echo "$ac_cv_sizeof_int" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007657
7658
7659
Martin v. Löwis11437992002-04-12 09:54:03 +00007660cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007661#define SIZEOF_INT $ac_cv_sizeof_int
Martin v. Löwis11437992002-04-12 09:54:03 +00007662_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007663
7664
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007665# The cast to long int works around a bug in the HP C Compiler
7666# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7667# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7668# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7670$as_echo_n "checking size of long... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007671if ${ac_cv_sizeof_long+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007672 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007673else
Matthias Kloseb9621712010-04-24 17:59:49 +00007674 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:03 +00007675
Martin v. Löwis11437992002-04-12 09:54:03 +00007676else
Matthias Kloseb9621712010-04-24 17:59:49 +00007677 if test "$ac_cv_type_long" = yes; then
7678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007680as_fn_error 77 "cannot compute sizeof (long)
Victor Stinnere0be4232011-10-25 13:06:09 +02007681See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007682 else
7683 ac_cv_sizeof_long=0
7684 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007685fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007686
Martin v. Löwis11437992002-04-12 09:54:03 +00007687fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7689$as_echo "$ac_cv_sizeof_long" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007690
7691
7692
Martin v. Löwis11437992002-04-12 09:54:03 +00007693cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007694#define SIZEOF_LONG $ac_cv_sizeof_long
Martin v. Löwis11437992002-04-12 09:54:03 +00007695_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007696
7697
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007698# The cast to long int works around a bug in the HP C Compiler
7699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7701# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7703$as_echo_n "checking size of void *... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007704if ${ac_cv_sizeof_void_p+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007705 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007706else
Matthias Kloseb9621712010-04-24 17:59:49 +00007707 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:03 +00007708
Martin v. Löwis11437992002-04-12 09:54:03 +00007709else
Matthias Kloseb9621712010-04-24 17:59:49 +00007710 if test "$ac_cv_type_void_p" = yes; then
7711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007713as_fn_error 77 "cannot compute sizeof (void *)
Victor Stinnere0be4232011-10-25 13:06:09 +02007714See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007715 else
7716 ac_cv_sizeof_void_p=0
7717 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007718fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007719
Martin v. Löwis11437992002-04-12 09:54:03 +00007720fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7722$as_echo "$ac_cv_sizeof_void_p" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007723
7724
7725
Martin v. Löwis11437992002-04-12 09:54:03 +00007726cat >>confdefs.h <<_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00007727#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Martin v. Löwis11437992002-04-12 09:54:03 +00007728_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00007729
7730
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007731# The cast to long int works around a bug in the HP C Compiler
7732# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7733# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7734# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7736$as_echo_n "checking size of short... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007737if ${ac_cv_sizeof_short+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007738 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007739else
Matthias Kloseb9621712010-04-24 17:59:49 +00007740 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:03 +00007741
Martin v. Löwis11437992002-04-12 09:54:03 +00007742else
Matthias Kloseb9621712010-04-24 17:59:49 +00007743 if test "$ac_cv_type_short" = yes; then
7744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007746as_fn_error 77 "cannot compute sizeof (short)
Victor Stinnere0be4232011-10-25 13:06:09 +02007747See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007748 else
7749 ac_cv_sizeof_short=0
7750 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007751fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007752
Martin v. Löwis11437992002-04-12 09:54:03 +00007753fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7755$as_echo "$ac_cv_sizeof_short" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007756
7757
7758
Martin v. Löwis11437992002-04-12 09:54:03 +00007759cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007760#define SIZEOF_SHORT $ac_cv_sizeof_short
Martin v. Löwis11437992002-04-12 09:54:03 +00007761_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007762
7763
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007764# The cast to long int works around a bug in the HP C Compiler
7765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7767# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7769$as_echo_n "checking size of float... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007770if ${ac_cv_sizeof_float+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007771 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007772else
Matthias Kloseb9621712010-04-24 17:59:49 +00007773 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:03 +00007774
Martin v. Löwis11437992002-04-12 09:54:03 +00007775else
Matthias Kloseb9621712010-04-24 17:59:49 +00007776 if test "$ac_cv_type_float" = yes; then
7777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007779as_fn_error 77 "cannot compute sizeof (float)
Victor Stinnere0be4232011-10-25 13:06:09 +02007780See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007781 else
7782 ac_cv_sizeof_float=0
7783 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007784fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007785
Martin v. Löwis11437992002-04-12 09:54:03 +00007786fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7788$as_echo "$ac_cv_sizeof_float" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007789
7790
7791
Martin v. Löwis11437992002-04-12 09:54:03 +00007792cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007793#define SIZEOF_FLOAT $ac_cv_sizeof_float
Martin v. Löwis11437992002-04-12 09:54:03 +00007794_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007795
7796
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007797# The cast to long int works around a bug in the HP C Compiler
7798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7800# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7802$as_echo_n "checking size of double... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007803if ${ac_cv_sizeof_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007804 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007805else
Matthias Kloseb9621712010-04-24 17:59:49 +00007806 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:03 +00007807
Martin v. Löwis11437992002-04-12 09:54:03 +00007808else
Matthias Kloseb9621712010-04-24 17:59:49 +00007809 if test "$ac_cv_type_double" = yes; then
7810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007812as_fn_error 77 "cannot compute sizeof (double)
Victor Stinnere0be4232011-10-25 13:06:09 +02007813See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007814 else
7815 ac_cv_sizeof_double=0
7816 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007817fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007818
Martin v. Löwis11437992002-04-12 09:54:03 +00007819fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7821$as_echo "$ac_cv_sizeof_double" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007822
7823
7824
Martin v. Löwis11437992002-04-12 09:54:03 +00007825cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007826#define SIZEOF_DOUBLE $ac_cv_sizeof_double
Martin v. Löwis11437992002-04-12 09:54:03 +00007827_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007828
7829
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007830# The cast to long int works around a bug in the HP C Compiler
7831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7833# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
7835$as_echo_n "checking size of fpos_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007836if ${ac_cv_sizeof_fpos_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007837 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007838else
Matthias Kloseb9621712010-04-24 17:59:49 +00007839 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:03 +00007840
Martin v. Löwis11437992002-04-12 09:54:03 +00007841else
Matthias Kloseb9621712010-04-24 17:59:49 +00007842 if test "$ac_cv_type_fpos_t" = yes; then
7843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007845as_fn_error 77 "cannot compute sizeof (fpos_t)
Victor Stinnere0be4232011-10-25 13:06:09 +02007846See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007847 else
7848 ac_cv_sizeof_fpos_t=0
7849 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007850fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007851
Martin v. Löwis11437992002-04-12 09:54:03 +00007852fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
7854$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007855
7856
7857
Martin v. Löwis11437992002-04-12 09:54:03 +00007858cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007859#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
Martin v. Löwis11437992002-04-12 09:54:03 +00007860_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007861
Michael W. Hudson54241132001-12-07 15:38:26 +00007862
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007863# The cast to long int works around a bug in the HP C Compiler
7864# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7865# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7866# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
7868$as_echo_n "checking size of size_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007869if ${ac_cv_sizeof_size_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007870 $as_echo_n "(cached) " >&6
Martin v. Löwis18e16552006-02-15 17:27:45 +00007871else
Matthias Kloseb9621712010-04-24 17:59:49 +00007872 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:45 +00007873
Martin v. Löwis18e16552006-02-15 17:27:45 +00007874else
Matthias Kloseb9621712010-04-24 17:59:49 +00007875 if test "$ac_cv_type_size_t" = yes; then
7876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007878as_fn_error 77 "cannot compute sizeof (size_t)
Victor Stinnere0be4232011-10-25 13:06:09 +02007879See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007880 else
7881 ac_cv_sizeof_size_t=0
7882 fi
Martin v. Löwis18e16552006-02-15 17:27:45 +00007883fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007884
Martin v. Löwis18e16552006-02-15 17:27:45 +00007885fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
7887$as_echo "$ac_cv_sizeof_size_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007888
7889
7890
Martin v. Löwis18e16552006-02-15 17:27:45 +00007891cat >>confdefs.h <<_ACEOF
7892#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
7893_ACEOF
7894
7895
Christian Heimes400adb02008-02-01 08:12:03 +00007896# The cast to long int works around a bug in the HP C Compiler
7897# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7898# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7899# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
7901$as_echo_n "checking size of pid_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007902if ${ac_cv_sizeof_pid_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007903 $as_echo_n "(cached) " >&6
Christian Heimes400adb02008-02-01 08:12:03 +00007904else
Matthias Kloseb9621712010-04-24 17:59:49 +00007905 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:03 +00007906
Christian Heimes400adb02008-02-01 08:12:03 +00007907else
Matthias Kloseb9621712010-04-24 17:59:49 +00007908 if test "$ac_cv_type_pid_t" = yes; then
7909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007911as_fn_error 77 "cannot compute sizeof (pid_t)
Victor Stinnere0be4232011-10-25 13:06:09 +02007912See \`config.log' for more details" "$LINENO" 5; }
Christian Heimes400adb02008-02-01 08:12:03 +00007913 else
7914 ac_cv_sizeof_pid_t=0
7915 fi
7916fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007917
Christian Heimes400adb02008-02-01 08:12:03 +00007918fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
7920$as_echo "$ac_cv_sizeof_pid_t" >&6; }
Christian Heimes400adb02008-02-01 08:12:03 +00007921
7922
7923
7924cat >>confdefs.h <<_ACEOF
7925#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
7926_ACEOF
7927
7928
Michael W. Hudson54241132001-12-07 15:38:26 +00007929
Matthias Kloseb9621712010-04-24 17:59:49 +00007930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
7931$as_echo_n "checking for long long support... " >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007932have_long_long=no
Matthias Kloseb9621712010-04-24 17:59:49 +00007933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00007934/* end confdefs.h. */
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007935
Martin v. Löwis11437992002-04-12 09:54:03 +00007936int
7937main ()
7938{
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007939long long x; x = (long long)0;
Martin v. Löwis11437992002-04-12 09:54:03 +00007940 ;
7941 return 0;
7942}
7943_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00007944if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00007945
7946
Matthias Kloseb9621712010-04-24 17:59:49 +00007947$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00007948
Martin v. Löwisc45929e2002-04-06 10:10:49 +00007949 have_long_long=yes
7950
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007951fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +00007953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
7954$as_echo "$have_long_long" >&6; }
Guido van Rossum96f2eb91999-04-10 16:02:18 +00007955if test "$have_long_long" = yes ; then
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007956# The cast to long int works around a bug in the HP C Compiler
7957# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7958# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7959# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00007960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7961$as_echo_n "checking size of long long... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02007962if ${ac_cv_sizeof_long_long+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00007963 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007964else
Matthias Kloseb9621712010-04-24 17:59:49 +00007965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00007966
Martin v. Löwis11437992002-04-12 09:54:03 +00007967else
Matthias Kloseb9621712010-04-24 17:59:49 +00007968 if test "$ac_cv_type_long_long" = yes; then
7969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02007971as_fn_error 77 "cannot compute sizeof (long long)
Victor Stinnere0be4232011-10-25 13:06:09 +02007972See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007973 else
7974 ac_cv_sizeof_long_long=0
7975 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007976fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007977
Martin v. Löwis11437992002-04-12 09:54:03 +00007978fi
Matthias Kloseb9621712010-04-24 17:59:49 +00007979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7980$as_echo "$ac_cv_sizeof_long_long" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00007981
7982
7983
Martin v. Löwis11437992002-04-12 09:54:03 +00007984cat >>confdefs.h <<_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007985#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Martin v. Löwis11437992002-04-12 09:54:03 +00007986_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007987
Michael W. Hudson54241132001-12-07 15:38:26 +00007988
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007989fi
7990
Matthias Kloseb9621712010-04-24 17:59:49 +00007991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
7992$as_echo_n "checking for long double support... " >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:37 +00007993have_long_double=no
Matthias Kloseb9621712010-04-24 17:59:49 +00007994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Travis E. Oliphant9b307842007-10-12 22:06:37 +00007995/* end confdefs.h. */
7996
7997int
7998main ()
7999{
8000long double x; x = (long double)0;
8001 ;
8002 return 0;
8003}
8004_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00008005if ac_fn_c_try_compile "$LINENO"; then :
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008006
8007
Matthias Kloseb9621712010-04-24 17:59:49 +00008008$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008009
8010 have_long_double=yes
8011
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008012fi
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +00008014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
8015$as_echo "$have_long_double" >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008016if test "$have_long_double" = yes ; then
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008017# The cast to long int works around a bug in the HP C Compiler
8018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8020# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00008021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8022$as_echo_n "checking size of long double... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008023if ${ac_cv_sizeof_long_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008024 $as_echo_n "(cached) " >&6
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008025else
Matthias Kloseb9621712010-04-24 17:59:49 +00008026 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:37 +00008027
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008028else
Matthias Kloseb9621712010-04-24 17:59:49 +00008029 if test "$ac_cv_type_long_double" = yes; then
8030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02008032as_fn_error 77 "cannot compute sizeof (long double)
Victor Stinnere0be4232011-10-25 13:06:09 +02008033See \`config.log' for more details" "$LINENO" 5; }
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008034 else
8035 ac_cv_sizeof_long_double=0
8036 fi
8037fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008038
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008039fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8041$as_echo "$ac_cv_sizeof_long_double" >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:37 +00008042
8043
8044
8045cat >>confdefs.h <<_ACEOF
8046#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8047_ACEOF
8048
8049
8050fi
8051
8052
Matthias Kloseb9621712010-04-24 17:59:49 +00008053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
8054$as_echo_n "checking for _Bool support... " >&6; }
Thomas Woutersb2137042007-02-01 18:02:27 +00008055have_c99_bool=no
Matthias Kloseb9621712010-04-24 17:59:49 +00008056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Woutersb2137042007-02-01 18:02:27 +00008057/* end confdefs.h. */
8058
8059int
8060main ()
8061{
8062_Bool x; x = (_Bool)0;
8063 ;
8064 return 0;
8065}
8066_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00008067if ac_fn_c_try_compile "$LINENO"; then :
Thomas Woutersb2137042007-02-01 18:02:27 +00008068
8069
Matthias Kloseb9621712010-04-24 17:59:49 +00008070$as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
Thomas Woutersb2137042007-02-01 18:02:27 +00008071
8072 have_c99_bool=yes
8073
Thomas Woutersb2137042007-02-01 18:02:27 +00008074fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +00008076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
8077$as_echo "$have_c99_bool" >&6; }
Thomas Woutersb2137042007-02-01 18:02:27 +00008078if test "$have_c99_bool" = yes ; then
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008079# The cast to long int works around a bug in the HP C Compiler
8080# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8081# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8082# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00008083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8084$as_echo_n "checking size of _Bool... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008085if ${ac_cv_sizeof__Bool+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008086 $as_echo_n "(cached) " >&6
Thomas Woutersb2137042007-02-01 18:02:27 +00008087else
Matthias Kloseb9621712010-04-24 17:59:49 +00008088 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:27 +00008089
Thomas Woutersb2137042007-02-01 18:02:27 +00008090else
Matthias Kloseb9621712010-04-24 17:59:49 +00008091 if test "$ac_cv_type__Bool" = yes; then
8092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02008094as_fn_error 77 "cannot compute sizeof (_Bool)
Victor Stinnere0be4232011-10-25 13:06:09 +02008095See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008096 else
8097 ac_cv_sizeof__Bool=0
8098 fi
Thomas Woutersb2137042007-02-01 18:02:27 +00008099fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008100
Thomas Woutersb2137042007-02-01 18:02:27 +00008101fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8103$as_echo "$ac_cv_sizeof__Bool" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008104
8105
8106
Thomas Woutersb2137042007-02-01 18:02:27 +00008107cat >>confdefs.h <<_ACEOF
8108#define SIZEOF__BOOL $ac_cv_sizeof__Bool
8109_ACEOF
8110
8111
8112fi
8113
Matthias Kloseb9621712010-04-24 17:59:49 +00008114ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
Thomas Wouters89f507f2006-12-13 04:49:30 +00008115 #include <stdint.h>
8116 #endif
Antoine Pitrou1bf29b72010-10-10 08:10:16 +00008117 #ifdef HAVE_INTTYPES_H
8118 #include <inttypes.h>
8119 #endif
Matthias Kloseb9621712010-04-24 17:59:49 +00008120"
Victor Stinnere0be4232011-10-25 13:06:09 +02008121if test "x$ac_cv_type_uintptr_t" = xyes; then :
Thomas Wouters89f507f2006-12-13 04:49:30 +00008122
8123cat >>confdefs.h <<_ACEOF
8124#define HAVE_UINTPTR_T 1
8125_ACEOF
8126
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008127# The cast to long int works around a bug in the HP C Compiler
8128# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8129# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8130# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00008131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8132$as_echo_n "checking size of uintptr_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008133if ${ac_cv_sizeof_uintptr_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008134 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00008135else
Matthias Kloseb9621712010-04-24 17:59:49 +00008136 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00008137
Martin v. Löwis11437992002-04-12 09:54:03 +00008138else
Matthias Kloseb9621712010-04-24 17:59:49 +00008139 if test "$ac_cv_type_uintptr_t" = yes; then
8140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02008142as_fn_error 77 "cannot compute sizeof (uintptr_t)
Victor Stinnere0be4232011-10-25 13:06:09 +02008143See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008144 else
8145 ac_cv_sizeof_uintptr_t=0
8146 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008147fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008148
Martin v. Löwis11437992002-04-12 09:54:03 +00008149fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8151$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008152
8153
8154
Martin v. Löwis11437992002-04-12 09:54:03 +00008155cat >>confdefs.h <<_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008156#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
Martin v. Löwis11437992002-04-12 09:54:03 +00008157_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008158
Michael W. Hudson54241132001-12-07 15:38:26 +00008159
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008160fi
8161
Thomas Wouters89f507f2006-12-13 04:49:30 +00008162
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008163# The cast to long int works around a bug in the HP C Compiler
8164# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8165# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8166# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00008167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8168$as_echo_n "checking size of off_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008169if ${ac_cv_sizeof_off_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008170 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008171else
Matthias Kloseb9621712010-04-24 17:59:49 +00008172 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008173#ifdef HAVE_SYS_TYPES_H
8174#include <sys/types.h>
8175#endif
8176
Matthias Kloseb9621712010-04-24 17:59:49 +00008177"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008178
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008179else
Matthias Kloseb9621712010-04-24 17:59:49 +00008180 if test "$ac_cv_type_off_t" = yes; then
8181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02008183as_fn_error 77 "cannot compute sizeof (off_t)
Victor Stinnere0be4232011-10-25 13:06:09 +02008184See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008185 else
8186 ac_cv_sizeof_off_t=0
8187 fi
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008188fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008189
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008190fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8192$as_echo "$ac_cv_sizeof_off_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008193
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008194
8195
Martin v. Löwis11437992002-04-12 09:54:03 +00008196cat >>confdefs.h <<_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008197#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
Martin v. Löwis11437992002-04-12 09:54:03 +00008198_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008199
Michael W. Hudson54241132001-12-07 15:38:26 +00008200
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008201
Matthias Kloseb9621712010-04-24 17:59:49 +00008202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8203$as_echo_n "checking whether to enable large file support... " >&6; }
Mark Dickinson2df5d282009-12-31 21:22:50 +00008204if test "$have_long_long" = yes
8205then
8206if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
Guido van Rossum96f2eb91999-04-10 16:02:18 +00008207 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008208
Matthias Kloseb9621712010-04-24 17:59:49 +00008209$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00008210
Matthias Kloseb9621712010-04-24 17:59:49 +00008211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8212$as_echo "yes" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008213else
Matthias Kloseb9621712010-04-24 17:59:49 +00008214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215$as_echo "no" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008216fi
Mark Dickinson2df5d282009-12-31 21:22:50 +00008217else
Matthias Kloseb9621712010-04-24 17:59:49 +00008218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219$as_echo "no" >&6; }
Mark Dickinson2df5d282009-12-31 21:22:50 +00008220fi
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008221
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008222# The cast to long int works around a bug in the HP C Compiler
8223# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8224# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8225# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00008226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8227$as_echo_n "checking size of time_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008228if ${ac_cv_sizeof_time_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008229 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008230else
Matthias Kloseb9621712010-04-24 17:59:49 +00008231 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008232#ifdef HAVE_SYS_TYPES_H
8233#include <sys/types.h>
8234#endif
8235#ifdef HAVE_TIME_H
8236#include <time.h>
8237#endif
8238
Matthias Kloseb9621712010-04-24 17:59:49 +00008239"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008240
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008241else
Matthias Kloseb9621712010-04-24 17:59:49 +00008242 if test "$ac_cv_type_time_t" = yes; then
8243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02008245as_fn_error 77 "cannot compute sizeof (time_t)
Victor Stinnere0be4232011-10-25 13:06:09 +02008246See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008247 else
8248 ac_cv_sizeof_time_t=0
8249 fi
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008250fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008251
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008252fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
8254$as_echo "$ac_cv_sizeof_time_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008255
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008256
8257
Martin v. Löwis11437992002-04-12 09:54:03 +00008258cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008259#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
Martin v. Löwis11437992002-04-12 09:54:03 +00008260_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008261
Michael W. Hudson54241132001-12-07 15:38:26 +00008262
8263
Trent Mick635f6fb2000-08-23 21:33:05 +00008264# if have pthread_t then define SIZEOF_PTHREAD_T
Martin v. Löwis123cbd22001-07-19 14:21:10 +00008265ac_save_cc="$CC"
8266if test "$ac_cv_kpthread" = "yes"
8267then CC="$CC -Kpthread"
Martin v. Löwis5f433f02003-05-05 05:05:30 +00008268elif test "$ac_cv_kthread" = "yes"
8269then CC="$CC -Kthread"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00008270elif test "$ac_cv_pthread" = "yes"
8271then CC="$CC -pthread"
Martin v. Löwis123cbd22001-07-19 14:21:10 +00008272fi
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008273
Matthias Kloseb9621712010-04-24 17:59:49 +00008274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
8275$as_echo_n "checking for pthread_t... " >&6; }
Trent Mick635f6fb2000-08-23 21:33:05 +00008276have_pthread_t=no
Matthias Kloseb9621712010-04-24 17:59:49 +00008277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00008278/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:44 +00008279
8280 #include <pthread.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008281int
8282main ()
8283{
Guido van Rossum12580492000-09-24 16:47:19 +00008284pthread_t x; x = *(pthread_t*)0;
Martin v. Löwis11437992002-04-12 09:54:03 +00008285 ;
8286 return 0;
8287}
Matthias Kloseb159a552010-04-25 21:00:44 +00008288
Martin v. Löwis11437992002-04-12 09:54:03 +00008289_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00008290if ac_fn_c_try_compile "$LINENO"; then :
Trent Mick635f6fb2000-08-23 21:33:05 +00008291 have_pthread_t=yes
Trent Mick635f6fb2000-08-23 21:33:05 +00008292fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +00008294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
8295$as_echo "$have_pthread_t" >&6; }
Trent Mick635f6fb2000-08-23 21:33:05 +00008296if test "$have_pthread_t" = yes ; then
Matthias Kloseb9621712010-04-24 17:59:49 +00008297 # The cast to long int works around a bug in the HP C Compiler
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8300# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +00008301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
8302$as_echo_n "checking size of pthread_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008303if ${ac_cv_sizeof_pthread_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008304 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008305else
Matthias Kloseb9621712010-04-24 17:59:49 +00008306 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008307#ifdef HAVE_PTHREAD_H
8308#include <pthread.h>
8309#endif
8310
Matthias Kloseb9621712010-04-24 17:59:49 +00008311"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008312
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008313else
Matthias Kloseb9621712010-04-24 17:59:49 +00008314 if test "$ac_cv_type_pthread_t" = yes; then
8315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02008317as_fn_error 77 "cannot compute sizeof (pthread_t)
Victor Stinnere0be4232011-10-25 13:06:09 +02008318See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008319 else
8320 ac_cv_sizeof_pthread_t=0
8321 fi
Trent Mick635f6fb2000-08-23 21:33:05 +00008322fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008323
Trent Mick635f6fb2000-08-23 21:33:05 +00008324fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
8326$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008327
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008328
8329
Martin v. Löwis11437992002-04-12 09:54:03 +00008330cat >>confdefs.h <<_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +00008331#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
Martin v. Löwis11437992002-04-12 09:54:03 +00008332_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +00008333
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +00008334
Trent Mick635f6fb2000-08-23 21:33:05 +00008335fi
Martin v. Löwis123cbd22001-07-19 14:21:10 +00008336CC="$ac_save_cc"
Trent Mick635f6fb2000-08-23 21:33:05 +00008337
Michael W. Hudson54241132001-12-07 15:38:26 +00008338
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008339case $ac_sys_system/$ac_sys_release in
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00008340 Darwin/[01567]\..*)
Bob Ippolito7026a0a2005-03-28 23:23:47 +00008341 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
8342 ;;
8343 Darwin/*)
8344 OTHER_LIBTOOL_OPT=""
8345 ;;
8346esac
8347
8348
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008349
Bob Ippolito7026a0a2005-03-28 23:23:47 +00008350case $ac_sys_system/$ac_sys_release in
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00008351 Darwin/[01567]\..*)
Thomas Wouters477c8d52006-05-27 19:21:47 +00008352 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
8353 if test "${enable_universalsdk}"; then
8354 :
8355 else
Ronald Oussorene3da75a2010-02-11 13:38:58 +00008356 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
Thomas Wouters477c8d52006-05-27 19:21:47 +00008357 fi
Jack Jansenb36687a2004-07-16 08:43:47 +00008358 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:12 +00008359 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum5839e582000-10-09 19:52:35 +00008360 Darwin/*)
Ronald Oussoren9812a6c2010-02-07 11:53:18 +00008361 gcc_version=`gcc -dumpversion`
Bob Ippolito7026a0a2005-03-28 23:23:47 +00008362 if test ${gcc_version} '<' 4.0
8363 then
8364 LIBTOOL_CRUFT="-lcc_dynamic"
8365 else
8366 LIBTOOL_CRUFT=""
8367 fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008368 if test "$cross_compiling" = yes; then :
Ronald Oussoren3c064c12009-09-08 07:12:42 +00008369 ac_osx_32bit=yes
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008370else
Matthias Kloseb9621712010-04-24 17:59:49 +00008371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008372/* end confdefs.h. */
Ronald Oussoren3c064c12009-09-08 07:12:42 +00008373
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008374 #include <unistd.h>
8375 int main(int argc, char*argv[])
8376 {
8377 if (sizeof(long) == 4) {
8378 return 0;
8379 } else {
8380 return 1;
8381 }
Ronald Oussoren3c064c12009-09-08 07:12:42 +00008382 }
8383
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008384_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00008385if ac_fn_c_try_run "$LINENO"; then :
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008386 ac_osx_32bit=yes
8387else
Matthias Kloseb9621712010-04-24 17:59:49 +00008388 ac_osx_32bit=no
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008389fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8391 conftest.$ac_objext conftest.beam conftest.$ac_ext
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008392fi
8393
8394
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008395 if test "${ac_osx_32bit}" = "yes"; then
Ronald Oussorene3da75a2010-02-11 13:38:58 +00008396 case `/usr/bin/arch` in
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008397 i386)
8398 MACOSX_DEFAULT_ARCH="i386"
8399 ;;
8400 ppc)
8401 MACOSX_DEFAULT_ARCH="ppc"
8402 ;;
8403 *)
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02008404 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008405 ;;
8406 esac
8407 else
Ronald Oussorene3da75a2010-02-11 13:38:58 +00008408 case `/usr/bin/arch` in
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008409 i386)
8410 MACOSX_DEFAULT_ARCH="x86_64"
8411 ;;
8412 ppc)
8413 MACOSX_DEFAULT_ARCH="ppc64"
8414 ;;
8415 *)
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02008416 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008417 ;;
8418 esac
8419
Ronald Oussoren5bbab3e2009-09-06 11:01:15 +00008420 fi
8421
8422 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
Jack Jansenb36687a2004-07-16 08:43:47 +00008423 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +00008424 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008425esac
Matthias Kloseb9621712010-04-24 17:59:49 +00008426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
8427$as_echo_n "checking for --enable-framework... " >&6; }
Jack Jansene578a632001-08-15 01:27:14 +00008428if test "$enable_framework"
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008429then
Skip Montanarodecc6a42003-01-01 20:07:49 +00008430 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
Martin v. Löwis11437992002-04-12 09:54:03 +00008431 # -F. is needed to allow linking to the framework while
Jack Jansene578a632001-08-15 01:27:14 +00008432 # in the build location.
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008433
Matthias Kloseb9621712010-04-24 17:59:49 +00008434$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00008435
Matthias Kloseb9621712010-04-24 17:59:49 +00008436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8437$as_echo "yes" >&6; }
Ronald Oussoren99aab652009-06-08 21:22:57 +00008438 if test $enable_shared = "yes"
8439 then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02008440 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:57 +00008441 fi
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008442else
Matthias Kloseb9621712010-04-24 17:59:49 +00008443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008445fi
8446
Matthias Kloseb9621712010-04-24 17:59:49 +00008447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
8448$as_echo_n "checking for dyld... " >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:14 +00008449case $ac_sys_system/$ac_sys_release in
8450 Darwin/*)
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008451
Matthias Kloseb9621712010-04-24 17:59:49 +00008452$as_echo "#define WITH_DYLD 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00008453
Matthias Kloseb9621712010-04-24 17:59:49 +00008454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
8455$as_echo "always on for Darwin" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:14 +00008456 ;;
8457 *)
Matthias Kloseb9621712010-04-24 17:59:49 +00008458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459$as_echo "no" >&6; }
Jack Jansene578a632001-08-15 01:27:14 +00008460 ;;
Jack Jansen9a66b6d2001-08-08 13:56:14 +00008461esac
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008462
Guido van Rossum0a516c91994-09-12 10:58:40 +00008463# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:40 +00008464
Michael W. Hudson54241132001-12-07 15:38:26 +00008465
8466
8467
8468
Benjamin Peterson99f03762010-04-11 22:15:28 +00008469
Thomas Wouters477c8d52006-05-27 19:21:47 +00008470
doko@ubuntu.comd5537d02013-03-21 13:21:49 -07008471# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
8472# -- usually .so, .sl on HP-UX, .dll on Cygwin
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
8474$as_echo_n "checking the extension of shared libraries... " >&6; }
8475if test -z "$SHLIB_SUFFIX"; then
8476 case $ac_sys_system in
8477 hp*|HP*)
8478 case `uname -m` in
8479 ia64) SHLIB_SUFFIX=.so;;
8480 *) SHLIB_SUFFIX=.sl;;
8481 esac
8482 ;;
8483 CYGWIN*) SHLIB_SUFFIX=.dll;;
8484 *) SHLIB_SUFFIX=.so;;
8485 esac
8486fi
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
8488$as_echo "$SHLIB_SUFFIX" >&6; }
Thomas Wouters477c8d52006-05-27 19:21:47 +00008489
Guido van Rossum0a516c91994-09-12 10:58:40 +00008490# LDSHARED is the ld *command* used to create shared library
Martin v. Löwis12af0482004-01-31 12:34:17 +00008491# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008492# (Shared libraries in this instance are shared modules to be loaded into
8493# Python, as opposed to building Python itself as a shared library.)
Matthias Kloseb9621712010-04-24 17:59:49 +00008494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
8495$as_echo_n "checking LDSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +00008496if test -z "$LDSHARED"
8497then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008498 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00008499 AIX*)
Georg Brandl9a829be2011-02-15 15:44:51 +00008500 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp"
Guido van Rossumce608b02001-09-28 15:59:38 +00008501 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00008502 ;;
Guido van Rossum07397971997-04-29 21:49:50 +00008503 IRIX/5*) LDSHARED="ld -shared";;
Guido van Rossum91922671997-10-09 20:24:13 +00008504 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
Martin v. Löwis11437992002-04-12 09:54:03 +00008505 SunOS/5*)
Benjamin Peterson99f03762010-04-11 22:15:28 +00008506 if test "$GCC" = "yes" ; then
8507 LDSHARED='$(CC) -shared'
8508 LDCXXSHARED='$(CXX) -shared'
8509 else
8510 LDSHARED='$(CC) -G'
8511 LDCXXSHARED='$(CXX) -G'
Greg Ward57c9a6632000-05-26 12:22:54 +00008512 fi ;;
Thomas Hellerf44b9a12008-04-04 10:18:23 +00008513 hp*|HP*)
Benjamin Peterson99f03762010-04-11 22:15:28 +00008514 if test "$GCC" = "yes" ; then
8515 LDSHARED='$(CC) -shared'
8516 LDCXXSHARED='$(CXX) -shared'
8517 else
8518 LDSHARED='ld -b'
Thomas Hellerf44b9a12008-04-04 10:18:23 +00008519 fi ;;
Jack Jansen418c3b12001-11-14 10:59:57 +00008520 Darwin/1.3*)
Antoine Pitroud4958c22010-10-13 17:01:10 +00008521 LDSHARED='$(CC) -bundle'
8522 LDCXXSHARED='$(CXX) -bundle'
Jack Jansena3891ea2001-09-07 14:25:12 +00008523 if test "$enable_framework" ; then
8524 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +00008525 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8526 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:28 +00008527 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:12 +00008528 else
8529 # No framework. Ignore undefined symbols, assuming they come from Python
Jack Jansen418c3b12001-11-14 10:59:57 +00008530 LDSHARED="$LDSHARED -undefined suppress"
Benjamin Peterson99f03762010-04-11 22:15:28 +00008531 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
Jack Jansena3891ea2001-09-07 14:25:12 +00008532 fi ;;
Jack Jansen6b08a402004-06-03 12:41:45 +00008533 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
Antoine Pitroud4958c22010-10-13 17:01:10 +00008534 LDSHARED='$(CC) -bundle'
8535 LDCXXSHARED='$(CXX) -bundle'
Jack Jansene578a632001-08-15 01:27:14 +00008536 if test "$enable_framework" ; then
8537 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +00008538 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8539 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:28 +00008540 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +00008541 else
Michael W. Hudson594bc802002-03-07 09:59:15 +00008542 # No framework, use the Python app as bundle-loader
8543 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
Jack Jansenc28fc372003-02-25 13:14:43 +00008544 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Benjamin Peterson99f03762010-04-11 22:15:28 +00008545 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008546 fi ;;
Jack Jansen6b08a402004-06-03 12:41:45 +00008547 Darwin/*)
8548 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
8549 # This allows an extension to be used in any Python
Thomas Wouters89d996e2007-09-08 17:39:28 +00008550
Benjamin Peterson14ae9592008-07-16 02:20:15 +00008551 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
Jack Jansen6b08a402004-06-03 12:41:45 +00008552 then
Antoine Pitroud4958c22010-10-13 17:01:10 +00008553 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
8554 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
Jack Jansen6b08a402004-06-03 12:41:45 +00008555 BLDSHARED="$LDSHARED"
Jack Jansen6b08a402004-06-03 12:41:45 +00008556 else
Antoine Pitroud4958c22010-10-13 17:01:10 +00008557 LDSHARED='$(CC) -bundle'
8558 LDCXXSHARED='$(CXX) -bundle'
Jack Jansen6b08a402004-06-03 12:41:45 +00008559 if test "$enable_framework" ; then
8560 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +00008561 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8562 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:28 +00008563 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen6b08a402004-06-03 12:41:45 +00008564 else
8565 # No framework, use the Python app as bundle-loader
8566 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8567 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Benjamin Peterson99f03762010-04-11 22:15:28 +00008568 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Jack Jansen6b08a402004-06-03 12:41:45 +00008569 fi
8570 fi
8571 ;;
Benjamin Peterson99f03762010-04-11 22:15:28 +00008572 Linux*|GNU*|QNX*)
8573 LDSHARED='$(CC) -shared'
8574 LDCXXSHARED='$(CXX) -shared';;
8575 BSD/OS*/4*)
8576 LDSHARED="gcc -shared"
8577 LDCXXSHARED="g++ -shared";;
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00008578 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:35 +00008579 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:49 +00008580 then
Antoine Pitroud4958c22010-10-13 17:01:10 +00008581 LDSHARED='$(CC) -shared'
8582 LDCXXSHARED='$(CXX) -shared'
Guido van Rossum0286ae82000-08-29 15:06:49 +00008583 else
Antoine Pitroud4958c22010-10-13 17:01:10 +00008584 LDSHARED="ld -Bshareable"
Guido van Rossum0286ae82000-08-29 15:06:49 +00008585 fi;;
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00008586 OpenBSD*)
8587 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8588 then
Antoine Pitroud4958c22010-10-13 17:01:10 +00008589 LDSHARED='$(CC) -shared $(CCSHARED)'
8590 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00008591 else
8592 case `uname -r` in
8593 [01].* | 2.[0-7] | 2.[0-7].*)
8594 LDSHARED="ld -Bshareable ${LDFLAGS}"
8595 ;;
8596 *)
Antoine Pitroud4958c22010-10-13 17:01:10 +00008597 LDSHARED='$(CC) -shared $(CCSHARED)'
8598 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +00008599 ;;
8600 esac
8601 fi;;
Benjamin Peterson99f03762010-04-11 22:15:28 +00008602 NetBSD*|DragonFly*)
Antoine Pitrouece919e2011-01-02 20:45:21 +00008603 LDSHARED='$(CC) -shared'
8604 LDCXXSHARED='$(CXX) -shared';;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +00008605 OpenUNIX*|UnixWare*)
Benjamin Peterson99f03762010-04-11 22:15:28 +00008606 if test "$GCC" = "yes" ; then
8607 LDSHARED='$(CC) -shared'
8608 LDCXXSHARED='$(CXX) -shared'
8609 else
8610 LDSHARED='$(CC) -G'
8611 LDCXXSHARED='$(CXX) -G'
Martin v. Löwisbec19582001-03-21 15:57:54 +00008612 fi;;
Benjamin Peterson99f03762010-04-11 22:15:28 +00008613 SCO_SV*)
8614 LDSHARED='$(CC) -Wl,-G,-Bexport'
8615 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
8616 CYGWIN*)
8617 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
8618 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00008619 *) LDSHARED="ld";;
8620 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00008621fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
8623$as_echo "$LDSHARED" >&6; }
Benjamin Peterson99f03762010-04-11 22:15:28 +00008624LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00008625BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:40 +00008626# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008627# library (module) -- this is only needed for a few systems
Matthias Kloseb9621712010-04-24 17:59:49 +00008628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
8629$as_echo_n "checking CCSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +00008630if test -z "$CCSHARED"
8631then
Guido van Rossum07397971997-04-29 21:49:50 +00008632 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:49 +00008633 SunOS*) if test "$GCC" = yes;
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00008634 then CCSHARED="-fPIC";
8635 elif test `uname -p` = sparc;
8636 then CCSHARED="-xcode=pic32";
8637 else CCSHARED="-Kpic";
8638 fi;;
Guido van Rossumaf07a441995-02-13 19:45:27 +00008639 hp*|HP*) if test "$GCC" = yes;
Martin v. Löwis703ad702001-09-05 08:36:52 +00008640 then CCSHARED="-fPIC";
Guido van Rossumaf07a441995-02-13 19:45:27 +00008641 else CCSHARED="+z";
8642 fi;;
Martin v. Löwisa6e97582002-01-01 18:41:33 +00008643 Linux*|GNU*) CCSHARED="-fPIC";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +00008644 BSD/OS*/4*) CCSHARED="-fpic";;
Martin v. Löwis86d66262006-02-17 08:40:11 +00008645 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +00008646 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:54 +00008647 if test "$GCC" = "yes"
8648 then CCSHARED="-fPIC"
Martin v. Löwis130fb172001-07-19 11:00:41 +00008649 else CCSHARED="-KPIC"
Martin v. Löwisbec19582001-03-21 15:57:54 +00008650 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:48 +00008651 SCO_SV*)
8652 if test "$GCC" = "yes"
8653 then CCSHARED="-fPIC"
8654 else CCSHARED="-Kpic -belf"
8655 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00008656 IRIX*/6*) case $CC in
8657 *gcc*) CCSHARED="-shared";;
Guido van Rossumee21f411998-04-20 18:51:54 +00008658 *) CCSHARED="";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00008659 esac;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00008660 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00008661fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
8663$as_echo "$CCSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +00008664# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00008665# the python executable -- this is only needed for a few systems
Matthias Kloseb9621712010-04-24 17:59:49 +00008666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
8667$as_echo_n "checking LINKFORSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +00008668if test -z "$LINKFORSHARED"
8669then
Guido van Rossum07397971997-04-29 21:49:50 +00008670 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00008671 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008672 hp*|HP*)
Martin v. Löwis1142de32002-03-29 16:28:31 +00008673 LINKFORSHARED="-Wl,-E -Wl,+s";;
8674# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +00008675 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Martin v. Löwisa6e97582002-01-01 18:41:33 +00008676 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008677 # -u libsys_s pulls in all symbols in libsys
Martin v. Löwis11437992002-04-12 09:54:03 +00008678 Darwin/*)
Benjamin Peterson9c80cac2009-05-23 16:34:23 +00008679 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
Łukasz Langa335ab5b2013-05-30 20:58:53 +02008680
8681 # Issue #18075: the default maximum stack size (8MBytes) is too
8682 # small for the default recursion limit. Increase the stack size
8683 # to ensure that tests don't crash
8684 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
8685
Jack Jansene578a632001-08-15 01:27:14 +00008686 if test "$enable_framework"
8687 then
Jack Jansenda49e192005-01-07 13:08:22 +00008688 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +00008689 fi
Anthony Baxtereef2d3b2004-11-06 04:45:33 +00008690 LINKFORSHARED="$LINKFORSHARED";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +00008691 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
Martin v. Löwis21ee4092002-09-30 16:19:48 +00008692 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:46 +00008693 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Martin v. Löwis86d66262006-02-17 08:40:11 +00008694 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
Guido van Rossumdf693651999-01-07 21:50:41 +00008695 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8696 then
8697 LINKFORSHARED="-Wl,--export-dynamic"
8698 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00008699 SunOS/5*) case $CC in
8700 *gcc*)
Martin v. Löwisa4548572002-04-18 14:51:36 +00008701 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:19 +00008702 then
8703 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:09 +00008704 fi;;
8705 esac;;
Jason Tishler30765592003-09-04 11:04:06 +00008706 CYGWIN*)
8707 if test $enable_shared = "no"
8708 then
8709 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
8710 fi;;
Benjamin Petersonde9c8692008-07-01 18:23:09 +00008711 QNX*)
8712 # -Wl,-E causes the symbols to be added to the dynamic
8713 # symbol table so that they can be found when a module
8714 # is loaded. -N 2048K causes the stack size to be set
8715 # to 2048 kilobytes so that the stack doesn't overflow
8716 # when running test_compile.py.
8717 LINKFORSHARED='-Wl,-E -N 2048K';;
Guido van Rossum0a516c91994-09-12 10:58:40 +00008718 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00008719fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
8721$as_echo "$LINKFORSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +00008722
Michael W. Hudson54241132001-12-07 15:38:26 +00008723
Benjamin Peterson8f95cc22008-07-16 02:23:25 +00008724
Matthias Kloseb9621712010-04-24 17:59:49 +00008725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
8726$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00008727if test ! "$LIBRARY" = "$LDLIBRARY"
8728then
Neil Schemenauer0c6141f2001-01-27 21:40:54 +00008729 case $ac_sys_system in
8730 CYGWIN*)
8731 # Cygwin needs CCSHARED when building extension DLLs
8732 # but not when building the interpreter DLL.
8733 CFLAGSFORSHARED='';;
8734 *)
8735 CFLAGSFORSHARED='$(CCSHARED)'
8736 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00008737fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
8739$as_echo "$CFLAGSFORSHARED" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00008740
Martin v. Löwisf90ae202002-06-11 06:22:31 +00008741# SHLIBS are libraries (except -lc and -lm) to link to the python shared
8742# library (with --enable-shared).
8743# For platforms on which shared libraries are not allowed to have unresolved
Martin v. Löwisd6359c52002-08-04 12:38:50 +00008744# symbols, this must be set to $(LIBS) (expanded by make). We do this even
8745# if it is not required, since it creates a dependency of the shared library
8746# to LIBS. This, in turn, means that applications linking the shared libpython
8747# don't need to link LIBS explicitly. The default should be only changed
8748# on systems where this approach causes problems.
Martin v. Löwisf90ae202002-06-11 06:22:31 +00008749
Matthias Kloseb9621712010-04-24 17:59:49 +00008750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
8751$as_echo_n "checking SHLIBS... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +00008752case "$ac_sys_system" in
Martin v. Löwisf90ae202002-06-11 06:22:31 +00008753 *)
Martin v. Löwisd6359c52002-08-04 12:38:50 +00008754 SHLIBS='$(LIBS)';;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00008755esac
Matthias Kloseb9621712010-04-24 17:59:49 +00008756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
8757$as_echo "$SHLIBS" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +00008758
8759
Guido van Rossum627b2d71993-12-24 10:39:16 +00008760# checks for libraries
Georg Brandl941f9562011-02-25 15:21:47 +00008761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
8762$as_echo_n "checking for sendfile in -lsendfile... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008763if ${ac_cv_lib_sendfile_sendfile+:} false; then :
Georg Brandl941f9562011-02-25 15:21:47 +00008764 $as_echo_n "(cached) " >&6
8765else
8766 ac_check_lib_save_LIBS=$LIBS
8767LIBS="-lsendfile $LIBS"
8768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h. */
8770
8771/* Override any GCC internal prototype to avoid an error.
8772 Use char because int might match the return type of a GCC
8773 builtin and then its argument prototype would still apply. */
8774#ifdef __cplusplus
8775extern "C"
8776#endif
8777char sendfile ();
8778int
8779main ()
8780{
8781return sendfile ();
8782 ;
8783 return 0;
8784}
8785_ACEOF
8786if ac_fn_c_try_link "$LINENO"; then :
8787 ac_cv_lib_sendfile_sendfile=yes
8788else
8789 ac_cv_lib_sendfile_sendfile=no
8790fi
8791rm -f core conftest.err conftest.$ac_objext \
8792 conftest$ac_exeext conftest.$ac_ext
8793LIBS=$ac_check_lib_save_LIBS
8794fi
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
8796$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008797if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
Georg Brandl941f9562011-02-25 15:21:47 +00008798 cat >>confdefs.h <<_ACEOF
8799#define HAVE_LIBSENDFILE 1
8800_ACEOF
8801
8802 LIBS="-lsendfile $LIBS"
8803
8804fi
8805
Matthias Kloseb9621712010-04-24 17:59:49 +00008806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8807$as_echo_n "checking for dlopen in -ldl... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008808if ${ac_cv_lib_dl_dlopen+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008809 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008810else
Martin v. Löwis11437992002-04-12 09:54:03 +00008811 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00008812LIBS="-ldl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00008813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00008814/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008815
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008816/* Override any GCC internal prototype to avoid an error.
8817 Use char because int might match the return type of a GCC
8818 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008819#ifdef __cplusplus
8820extern "C"
8821#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00008822char dlopen ();
Martin v. Löwis11437992002-04-12 09:54:03 +00008823int
8824main ()
8825{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008826return dlopen ();
Martin v. Löwis11437992002-04-12 09:54:03 +00008827 ;
8828 return 0;
8829}
8830_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00008831if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00008832 ac_cv_lib_dl_dlopen=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008833else
Matthias Kloseb9621712010-04-24 17:59:49 +00008834 ac_cv_lib_dl_dlopen=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00008835fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008836rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008838LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +00008839fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8841$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008842if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00008843 cat >>confdefs.h <<_ACEOF
8844#define HAVE_LIBDL 1
8845_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00008846
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00008847 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +00008848
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008849fi
8850 # Dynamic linking for SunOS/Solaris and SYSV
Matthias Kloseb9621712010-04-24 17:59:49 +00008851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8852$as_echo_n "checking for shl_load in -ldld... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008853if ${ac_cv_lib_dld_shl_load+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008854 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008855else
Martin v. Löwis11437992002-04-12 09:54:03 +00008856 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00008857LIBS="-ldld $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00008858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00008859/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008860
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008861/* Override any GCC internal prototype to avoid an error.
8862 Use char because int might match the return type of a GCC
8863 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008864#ifdef __cplusplus
8865extern "C"
8866#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00008867char shl_load ();
Martin v. Löwis11437992002-04-12 09:54:03 +00008868int
8869main ()
8870{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008871return shl_load ();
Martin v. Löwis11437992002-04-12 09:54:03 +00008872 ;
8873 return 0;
8874}
8875_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00008876if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00008877 ac_cv_lib_dld_shl_load=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008878else
Matthias Kloseb9621712010-04-24 17:59:49 +00008879 ac_cv_lib_dld_shl_load=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00008880fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008881rm -f core conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008883LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +00008884fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8886$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008887if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00008888 cat >>confdefs.h <<_ACEOF
8889#define HAVE_LIBDLD 1
8890_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00008891
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00008892 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008893
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008894fi
8895 # Dynamic linking for HP-UX
Martin v. Löwis519adae2003-09-20 10:47:47 +00008896
Georg Brandlb1441c72009-01-03 22:33:39 +00008897# only check for sem_init if thread support is requested
Martin v. Löwis519adae2003-09-20 10:47:47 +00008898if test "$with_threads" = "yes" -o -z "$with_threads"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00008899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
8900$as_echo_n "checking for library containing sem_init... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008901if ${ac_cv_search_sem_init+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008902 $as_echo_n "(cached) " >&6
Martin v. Löwis41933dd2002-03-21 15:10:58 +00008903else
Martin v. Löwis82c19a72002-10-06 11:48:09 +00008904 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:49 +00008905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00008906/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008907
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008908/* Override any GCC internal prototype to avoid an error.
8909 Use char because int might match the return type of a GCC
8910 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008911#ifdef __cplusplus
8912extern "C"
8913#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00008914char sem_init ();
Martin v. Löwis11437992002-04-12 09:54:03 +00008915int
8916main ()
8917{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008918return sem_init ();
Martin v. Löwis11437992002-04-12 09:54:03 +00008919 ;
8920 return 0;
8921}
8922_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008923for ac_lib in '' pthread rt posix4; do
8924 if test -z "$ac_lib"; then
8925 ac_res="none required"
8926 else
8927 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00008928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008929 fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008930 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008931 ac_cv_search_sem_init=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:47 +00008932fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008933rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 13:06:09 +02008935 if ${ac_cv_search_sem_init+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008936 break
Skip Montanaroeb33e5a2007-08-17 12:57:41 +00008937fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008938done
Victor Stinnere0be4232011-10-25 13:06:09 +02008939if ${ac_cv_search_sem_init+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008940
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008941else
8942 ac_cv_search_sem_init=no
8943fi
8944rm conftest.$ac_ext
Martin v. Löwis82c19a72002-10-06 11:48:09 +00008945LIBS=$ac_func_search_save_LIBS
8946fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
8948$as_echo "$ac_cv_search_sem_init" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008949ac_res=$ac_cv_search_sem_init
Matthias Kloseb9621712010-04-24 17:59:49 +00008950if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis41933dd2002-03-21 15:10:58 +00008952
Martin v. Löwis41933dd2002-03-21 15:10:58 +00008953fi
Martin v. Löwisd3545ec2003-05-03 11:25:43 +00008954 # 'Real Time' functions on Solaris
Martin v. Löwis519adae2003-09-20 10:47:47 +00008955 # posix4 on Solaris 2.6
8956 # pthread (first!) on Linux
8957fi
8958
Martin v. Löwis19d17342003-06-14 21:03:05 +00008959# check if we need libintl for locale functions
Matthias Kloseb9621712010-04-24 17:59:49 +00008960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
8961$as_echo_n "checking for textdomain in -lintl... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008962if ${ac_cv_lib_intl_textdomain+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00008963 $as_echo_n "(cached) " >&6
Martin v. Löwis19d17342003-06-14 21:03:05 +00008964else
8965 ac_check_lib_save_LIBS=$LIBS
8966LIBS="-lintl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00008967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00008968/* end confdefs.h. */
Martin v. Löwis19d17342003-06-14 21:03:05 +00008969
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008970/* Override any GCC internal prototype to avoid an error.
8971 Use char because int might match the return type of a GCC
8972 builtin and then its argument prototype would still apply. */
Martin v. Löwis19d17342003-06-14 21:03:05 +00008973#ifdef __cplusplus
8974extern "C"
8975#endif
Martin v. Löwis19d17342003-06-14 21:03:05 +00008976char textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:05 +00008977int
8978main ()
8979{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00008980return textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:05 +00008981 ;
8982 return 0;
8983}
8984_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00008985if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis19d17342003-06-14 21:03:05 +00008986 ac_cv_lib_intl_textdomain=yes
8987else
Matthias Kloseb9621712010-04-24 17:59:49 +00008988 ac_cv_lib_intl_textdomain=no
Martin v. Löwis19d17342003-06-14 21:03:05 +00008989fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008990rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis19d17342003-06-14 21:03:05 +00008992LIBS=$ac_check_lib_save_LIBS
8993fi
Matthias Kloseb9621712010-04-24 17:59:49 +00008994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
8995$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02008996if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
Martin v. Löwis19d17342003-06-14 21:03:05 +00008997
Matthias Kloseb9621712010-04-24 17:59:49 +00008998$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
Martin v. Löwis19d17342003-06-14 21:03:05 +00008999
Brett Cannonc6d936e2009-06-07 20:09:53 +00009000 LIBS="-lintl $LIBS"
Martin v. Löwis19d17342003-06-14 21:03:05 +00009001fi
9002
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009003
9004# checks for system dependent C++ extensions support
9005case "$ac_sys_system" in
Matthias Kloseb9621712010-04-24 17:59:49 +00009006 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9007$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009009/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:44 +00009010
Georg Brandl59e87bd2011-02-15 19:48:59 +00009011 #include <load.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009012int
9013main ()
9014{
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009015loadAndInit("", 0, "")
Martin v. Löwis11437992002-04-12 09:54:03 +00009016 ;
9017 return 0;
9018}
Matthias Kloseb159a552010-04-25 21:00:44 +00009019
Martin v. Löwis11437992002-04-12 09:54:03 +00009020_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009021if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009022
Matthias Kloseb159a552010-04-25 21:00:44 +00009023
Matthias Kloseb9621712010-04-24 17:59:49 +00009024$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00009025
Matthias Kloseb159a552010-04-25 21:00:44 +00009026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +00009027$as_echo "yes" >&6; }
Matthias Kloseb159a552010-04-25 21:00:44 +00009028
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009029else
Matthias Kloseb159a552010-04-25 21:00:44 +00009030
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +00009032$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:44 +00009033
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009034fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009035rm -f core conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext conftest.$ac_ext;;
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009037 *) ;;
9038esac
9039
Christian Heimes985ecdc2013-11-20 11:46:18 +01009040# check for systems that require aligned memory access
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
9042$as_echo_n "checking aligned memory access is required... " >&6; }
9043if test "$cross_compiling" = yes; then :
9044 aligned_required=yes
9045else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h. */
9048
9049int main()
9050{
9051 char s[16];
9052 int i, *p1, *p2;
9053 for (i=0; i < 16; i++)
9054 s[i] = i;
9055 p1 = (int*)(s+1);
9056 p2 = (int*)(s+2);
9057 if (*p1 == *p2)
9058 return 1;
9059 return 0;
9060}
9061
9062_ACEOF
9063if ac_fn_c_try_run "$LINENO"; then :
9064 aligned_required=no
9065else
9066 aligned_required=yes
9067fi
9068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9069 conftest.$ac_objext conftest.beam conftest.$ac_ext
9070fi
9071
9072
9073if test "$aligned_required" = yes ; then
9074
9075$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
9076
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5
9079$as_echo "$aligned_required" >&6; }
9080
9081
9082# str, bytes and memoryview hash algorithm
9083
9084
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
9086$as_echo_n "checking for --with-hash-algorithm... " >&6; }
9087
9088# Check whether --with-hash_algorithm was given.
9089if test "${with_hash_algorithm+set}" = set; then :
9090 withval=$with_hash_algorithm;
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9092$as_echo "$withval" >&6; }
9093case "$withval" in
9094 siphash24)
9095 $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h
9096
9097 ;;
9098 fnv)
9099 $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h
9100
9101 ;;
9102 *)
9103 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
9104 ;;
9105esac
9106
9107else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
9109$as_echo "default" >&6; }
9110fi
9111
9112
Guido van Rossum70c7f481998-03-26 18:44:10 +00009113# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
Matthias Kloseb9621712010-04-24 17:59:49 +00009114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
9115$as_echo_n "checking for t_open in -lnsl... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009116if ${ac_cv_lib_nsl_t_open+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009117 $as_echo_n "(cached) " >&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009118else
Martin v. Löwis11437992002-04-12 09:54:03 +00009119 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009120LIBS="-lnsl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00009121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009122/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009123
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009124/* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009127#ifdef __cplusplus
9128extern "C"
9129#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009130char t_open ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009131int
9132main ()
9133{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009134return t_open ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009135 ;
9136 return 0;
9137}
9138_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009139if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00009140 ac_cv_lib_nsl_t_open=yes
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009141else
Matthias Kloseb9621712010-04-24 17:59:49 +00009142 ac_cv_lib_nsl_t_open=no
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009143fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009144rm -f core conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009146LIBS=$ac_check_lib_save_LIBS
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009147fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
9149$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009150if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009151 LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009152fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +00009153 # SVR4
Matthias Kloseb9621712010-04-24 17:59:49 +00009154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9155$as_echo_n "checking for socket in -lsocket... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009156if ${ac_cv_lib_socket_socket+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009157 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009158else
Martin v. Löwis11437992002-04-12 09:54:03 +00009159 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009160LIBS="-lsocket $LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00009161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009162/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009163
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009164/* Override any GCC internal prototype to avoid an error.
9165 Use char because int might match the return type of a GCC
9166 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009167#ifdef __cplusplus
9168extern "C"
9169#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009170char socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009171int
9172main ()
9173{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009174return socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009175 ;
9176 return 0;
9177}
9178_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009179if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00009180 ac_cv_lib_socket_socket=yes
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009181else
Matthias Kloseb9621712010-04-24 17:59:49 +00009182 ac_cv_lib_socket_socket=no
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009183fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009184rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009186LIBS=$ac_check_lib_save_LIBS
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009187fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9189$as_echo "$ac_cv_lib_socket_socket" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009190if test "x$ac_cv_lib_socket_socket" = xyes; then :
Guido van Rossumad678af1998-10-02 14:42:15 +00009191 LIBS="-lsocket $LIBS"
Guido van Rossumad678af1998-10-02 14:42:15 +00009192fi
9193 # SVR4 sockets
Skip Montanarob9949db2004-01-17 04:04:13 +00009194
Matthias Kloseb9621712010-04-24 17:59:49 +00009195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
9196$as_echo_n "checking for --with-libs... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009197
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009198# Check whether --with-libs was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00009199if test "${with_libs+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009200 withval=$with_libs;
Matthias Kloseb9621712010-04-24 17:59:49 +00009201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9202$as_echo "$withval" >&6; }
Guido van Rossuma68acba1996-07-31 17:36:39 +00009203LIBS="$withval $LIBS"
9204
9205else
Matthias Kloseb9621712010-04-24 17:59:49 +00009206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009208fi
9209
Guido van Rossum7f43da71994-08-01 12:15:30 +00009210
Benjamin Peterson0f64b0b2010-03-09 21:49:52 +00009211if test -n "$ac_tool_prefix"; then
Benjamin Petersond78735d2010-01-01 16:04:23 +00009212 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9213set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00009214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9215$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009216if ${ac_cv_path_PKG_CONFIG+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009217 $as_echo_n "(cached) " >&6
Benjamin Petersond78735d2010-01-01 16:04:23 +00009218else
9219 case $PKG_CONFIG in
9220 [\\/]* | ?:[\\/]*)
9221 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9222 ;;
9223 *)
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00009229 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00009230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benjamin Petersond78735d2010-01-01 16:04:23 +00009231 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:49 +00009232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benjamin Petersond78735d2010-01-01 16:04:23 +00009233 break 2
9234 fi
9235done
Matthias Kloseb9621712010-04-24 17:59:49 +00009236 done
Benjamin Petersond78735d2010-01-01 16:04:23 +00009237IFS=$as_save_IFS
9238
9239 ;;
9240esac
9241fi
9242PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9243if test -n "$PKG_CONFIG"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00009244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9245$as_echo "$PKG_CONFIG" >&6; }
Benjamin Petersond78735d2010-01-01 16:04:23 +00009246else
Matthias Kloseb9621712010-04-24 17:59:49 +00009247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
Benjamin Petersond78735d2010-01-01 16:04:23 +00009249fi
9250
9251
9252fi
9253if test -z "$ac_cv_path_PKG_CONFIG"; then
9254 ac_pt_PKG_CONFIG=$PKG_CONFIG
9255 # Extract the first word of "pkg-config", so it can be a program name with args.
9256set dummy pkg-config; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +00009257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009259if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009260 $as_echo_n "(cached) " >&6
Benjamin Petersond78735d2010-01-01 16:04:23 +00009261else
9262 case $ac_pt_PKG_CONFIG in
9263 [\\/]* | ?:[\\/]*)
9264 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9265 ;;
9266 *)
9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268for as_dir in $PATH
9269do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +00009272 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +00009273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benjamin Petersond78735d2010-01-01 16:04:23 +00009274 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:49 +00009275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benjamin Petersond78735d2010-01-01 16:04:23 +00009276 break 2
9277 fi
9278done
Matthias Kloseb9621712010-04-24 17:59:49 +00009279 done
Benjamin Petersond78735d2010-01-01 16:04:23 +00009280IFS=$as_save_IFS
9281
9282 ;;
9283esac
9284fi
9285ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9286if test -n "$ac_pt_PKG_CONFIG"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00009287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9288$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Benjamin Petersond78735d2010-01-01 16:04:23 +00009289else
Matthias Kloseb9621712010-04-24 17:59:49 +00009290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
Benjamin Petersond78735d2010-01-01 16:04:23 +00009292fi
9293
9294 if test "x$ac_pt_PKG_CONFIG" = x; then
9295 PKG_CONFIG=""
9296 else
9297 case $cross_compiling:$ac_tool_warned in
9298yes:)
Matthias Kloseb9621712010-04-24 17:59:49 +00009299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Benjamin Petersond78735d2010-01-01 16:04:23 +00009301ac_tool_warned=yes ;;
9302esac
9303 PKG_CONFIG=$ac_pt_PKG_CONFIG
9304 fi
9305else
9306 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9307fi
9308
Benjamin Peterson0f64b0b2010-03-09 21:49:52 +00009309
9310# Check for use of the system expat library
Matthias Kloseb9621712010-04-24 17:59:49 +00009311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
9312$as_echo_n "checking for --with-system-expat... " >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:52 +00009313
9314# Check whether --with-system_expat was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00009315if test "${with_system_expat+set}" = set; then :
Benjamin Peterson0f64b0b2010-03-09 21:49:52 +00009316 withval=$with_system_expat;
Benjamin Peterson79263252010-10-31 16:50:44 +00009317else
9318 with_system_expat="no"
Benjamin Peterson0f64b0b2010-03-09 21:49:52 +00009319fi
9320
9321
Matthias Kloseb9621712010-04-24 17:59:49 +00009322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
9323$as_echo "$with_system_expat" >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:52 +00009324
9325# Check for use of the system libffi library
Matthias Kloseb9621712010-04-24 17:59:49 +00009326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
9327$as_echo_n "checking for --with-system-ffi... " >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:52 +00009328
9329# Check whether --with-system_ffi was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00009330if test "${with_system_ffi+set}" = set; then :
Benjamin Peterson0f64b0b2010-03-09 21:49:52 +00009331 withval=$with_system_ffi;
Benjamin Peterson79263252010-10-31 16:50:44 +00009332else
9333 with_system_ffi="no"
Benjamin Peterson0f64b0b2010-03-09 21:49:52 +00009334fi
9335
9336
9337if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
Benjamin Petersond78735d2010-01-01 16:04:23 +00009338 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
9339else
9340 LIBFFI_INCLUDEDIR=""
9341fi
9342
9343
Matthias Kloseb9621712010-04-24 17:59:49 +00009344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
9345$as_echo "$with_system_ffi" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00009346
Stefan Krah60187b52012-03-23 19:06:27 +01009347# Check for use of the system libmpdec library
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
9349$as_echo_n "checking for --with-system-libmpdec... " >&6; }
9350
9351# Check whether --with-system_libmpdec was given.
9352if test "${with_system_libmpdec+set}" = set; then :
9353 withval=$with_system_libmpdec;
9354else
9355 with_system_libmpdec="no"
9356fi
9357
9358
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
9360$as_echo "$with_system_libmpdec" >&6; }
9361
Benjamin Peterson076ed002010-10-31 17:11:02 +00009362# Check for support for loadable sqlite extensions
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
9364$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; }
9365# Check whether --enable-loadable-sqlite-extensions was given.
9366if test "${enable_loadable_sqlite_extensions+set}" = set; then :
9367 enableval=$enable_loadable_sqlite_extensions;
9368else
9369 enable_loadable_sqlite_extensions="no"
9370fi
9371
9372
9373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5
9374$as_echo "$enable_loadable_sqlite_extensions" >&6; }
9375
Ned Deilyd819b932013-09-06 01:07:05 -07009376# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
9377
9378
9379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
9380$as_echo_n "checking for --with-tcltk-includes... " >&6; }
9381
9382# Check whether --with-tcltk-includes was given.
9383if test "${with_tcltk_includes+set}" = set; then :
9384 withval=$with_tcltk_includes;
9385else
9386 with_tcltk_includes="default"
9387fi
9388
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
9390$as_echo "$with_tcltk_includes" >&6; }
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
9392$as_echo_n "checking for --with-tcltk-libs... " >&6; }
9393
9394# Check whether --with-tcltk-libs was given.
9395if test "${with_tcltk_libs+set}" = set; then :
9396 withval=$with_tcltk_libs;
9397else
9398 with_tcltk_libs="default"
9399fi
9400
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
9402$as_echo "$with_tcltk_libs" >&6; }
9403if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
9404then
9405 if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
9406 then
9407 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
9408 fi
9409 TCLTK_INCLUDES=""
9410 TCLTK_LIBS=""
9411else
9412 TCLTK_INCLUDES="$with_tcltk_includes"
9413 TCLTK_LIBS="$with_tcltk_libs"
9414fi
9415
Matthias Klose55708cc2009-04-30 08:06:49 +00009416# Check for --with-dbmliborder
Matthias Kloseb9621712010-04-24 17:59:49 +00009417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
9418$as_echo_n "checking for --with-dbmliborder... " >&6; }
Matthias Klose55708cc2009-04-30 08:06:49 +00009419
9420# Check whether --with-dbmliborder was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00009421if test "${with_dbmliborder+set}" = set; then :
Matthias Klose55708cc2009-04-30 08:06:49 +00009422 withval=$with_dbmliborder;
9423if test x$with_dbmliborder = xyes
9424then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02009425as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Matthias Klose55708cc2009-04-30 08:06:49 +00009426else
9427 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
9428 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
9429 then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +02009430 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Matthias Klose55708cc2009-04-30 08:06:49 +00009431 fi
9432 done
9433fi
9434fi
9435
Matthias Kloseb9621712010-04-24 17:59:49 +00009436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
9437$as_echo "$with_dbmliborder" >&6; }
Matthias Klose55708cc2009-04-30 08:06:49 +00009438
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00009439# Determine if signalmodule should be used.
Neil Schemenauerd32c2492001-01-24 17:25:28 +00009440
9441
Matthias Kloseb9621712010-04-24 17:59:49 +00009442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
9443$as_echo_n "checking for --with-signal-module... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009444
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009445# Check whether --with-signal-module was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00009446if test "${with_signal_module+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009447 withval=$with_signal_module;
9448fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +00009449
9450
9451if test -z "$with_signal_module"
9452then with_signal_module="yes"
9453fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
9455$as_echo "$with_signal_module" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +00009456
9457if test "${with_signal_module}" = "yes"; then
9458 USE_SIGNAL_MODULE=""
9459 SIGNAL_OBJS=""
9460else
9461 USE_SIGNAL_MODULE="#"
9462 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
9463fi
9464
Guido van Rossum3d15bd82001-01-10 18:53:48 +00009465# This is used to generate Setup.config
Guido van Rossum009f7871997-12-04 00:51:42 +00009466
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00009467USE_THREAD_MODULE=""
Guido van Rossum009f7871997-12-04 00:51:42 +00009468
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009469
Martin v. Löwis11437992002-04-12 09:54:03 +00009470
9471# Templates for things AC_DEFINEd more than once.
9472# For a single AC_DEFINE, no template is needed.
Guido van Rossumec2f0731997-01-22 20:54:01 +00009473
9474
Martin v. Löwis11437992002-04-12 09:54:03 +00009475
Matthias Kloseb9621712010-04-24 17:59:49 +00009476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
9477$as_echo_n "checking for --with-threads... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009478
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009479# Check whether --with-threads was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00009480if test "${with_threads+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009481 withval=$with_threads;
9482fi
Guido van Rossumec2f0731997-01-22 20:54:01 +00009483
9484
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00009485# --with-thread is deprecated, but check for it anyway
Martin v. Löwis11437992002-04-12 09:54:03 +00009486
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009487# Check whether --with-thread was given.
Matthias Kloseb9621712010-04-24 17:59:49 +00009488if test "${with_thread+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009489 withval=$with_thread; with_threads=$with_thread
9490fi
9491
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00009492
9493if test -z "$with_threads"
9494then with_threads="yes"
9495fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
9497$as_echo "$with_threads" >&6; }
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00009498
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009499
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00009500if test "$with_threads" = "no"
9501then
9502 USE_THREAD_MODULE="#"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009503elif test "$ac_cv_pthread_is_default" = yes
9504then
Matthias Kloseb9621712010-04-24 17:59:49 +00009505 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009506
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009507 # Defining _REENTRANT on system with POSIX threads should not hurt.
Matthias Kloseb9621712010-04-24 17:59:49 +00009508 $as_echo "#define _REENTRANT 1" >>confdefs.h
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009509
9510 posix_threads=yes
Martin v. Löwis11437992002-04-12 09:54:03 +00009511 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +00009512elif test "$ac_cv_kpthread" = "yes"
9513then
9514 CC="$CC -Kpthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +00009515 if test "$ac_cv_cxx_thread" = "yes"; then
9516 CXX="$CXX -Kpthread"
9517 fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009518 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum2242f2f2001-04-11 20:58:20 +00009519
Guido van Rossumd0b69ec2001-09-10 14:10:54 +00009520 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009521 THREADOBJ="Python/thread.o"
Martin v. Löwis5f433f02003-05-05 05:05:30 +00009522elif test "$ac_cv_kthread" = "yes"
9523then
9524 CC="$CC -Kthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +00009525 if test "$ac_cv_cxx_thread" = "yes"; then
9526 CXX="$CXX -Kthread"
9527 fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009528 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwis5f433f02003-05-05 05:05:30 +00009529
9530 posix_threads=yes
9531 THREADOBJ="Python/thread.o"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009532elif test "$ac_cv_pthread" = "yes"
9533then
9534 CC="$CC -pthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +00009535 if test "$ac_cv_cxx_thread" = "yes"; then
9536 CXX="$CXX -pthread"
9537 fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009538 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009539
9540 posix_threads=yes
9541 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +00009542else
9543 if test ! -z "$with_threads" -a -d "$with_threads"
9544 then LDFLAGS="$LDFLAGS -L$with_threads"
9545 fi
9546 if test ! -z "$withval" -a -d "$withval"
9547 then LDFLAGS="$LDFLAGS -L$withval"
9548 fi
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009549
9550 # According to the POSIX spec, a pthreads implementation must
Matthias Klosea2542be2004-08-16 11:35:51 +00009551 # define _POSIX_THREADS in unistd.h. Some apparently don't
9552 # (e.g. gnu pth with pthread emulation)
Matthias Kloseb9621712010-04-24 17:59:49 +00009553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
9554$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009556/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:15 +00009557
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009558#include <unistd.h>
Neal Norwitz6eb37f02003-02-23 23:28:15 +00009559#ifdef _POSIX_THREADS
9560yes
9561#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009562
9563_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +00009565 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009566 unistd_defines_pthreads=yes
9567else
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009568 unistd_defines_pthreads=no
9569fi
Matthias Klosec80c93f2010-04-24 17:04:35 +00009570rm -f conftest*
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009571
Matthias Kloseb9621712010-04-24 17:59:49 +00009572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
9573$as_echo "$unistd_defines_pthreads" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009574
Matthias Kloseb9621712010-04-24 17:59:49 +00009575 $as_echo "#define _REENTRANT 1" >>confdefs.h
Guido van Rossum9caf77a1996-08-01 00:52:26 +00009576
Martin v. Löwis8158b5a2001-10-08 13:17:28 +00009577 # Just looking for pthread_create in libpthread is not enough:
9578 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
9579 # So we really have to include pthread.h, and then link.
9580 _libs=$LIBS
9581 LIBS="$LIBS -lpthread"
Matthias Kloseb9621712010-04-24 17:59:49 +00009582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
9583$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009585/* end confdefs.h. */
Stefan Krah7dba5942012-11-22 22:49:11 +01009586
9587#include <stdio.h>
Martin v. Löwis8158b5a2001-10-08 13:17:28 +00009588#include <pthread.h>
Guido van Rossum02a1c402000-02-25 19:26:31 +00009589
Martin v. Löwis8158b5a2001-10-08 13:17:28 +00009590void * start_routine (void *arg) { exit (0); }
Martin v. Löwis11437992002-04-12 09:54:03 +00009591int
9592main ()
9593{
Martin v. Löwis8158b5a2001-10-08 13:17:28 +00009594
9595pthread_create (NULL, NULL, start_routine, NULL)
Martin v. Löwis11437992002-04-12 09:54:03 +00009596 ;
9597 return 0;
9598}
9599_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009600if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00009601
Matthias Kloseb9621712010-04-24 17:59:49 +00009602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9603$as_echo "yes" >&6; }
9604 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum02a1c402000-02-25 19:26:31 +00009605
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009606 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009607 THREADOBJ="Python/thread.o"
Guido van Rossum02a1c402000-02-25 19:26:31 +00009608else
Martin v. Löwis11437992002-04-12 09:54:03 +00009609
Martin v. Löwis8158b5a2001-10-08 13:17:28 +00009610 LIBS=$_libs
Matthias Kloseb9621712010-04-24 17:59:49 +00009611 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
Victor Stinnere0be4232011-10-25 13:06:09 +02009612if test "x$ac_cv_func_pthread_detach" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009613 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossumad678af1998-10-02 14:42:15 +00009614
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009615 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009616 THREADOBJ="Python/thread.o"
Guido van Rossumad678af1998-10-02 14:42:15 +00009617else
Guido van Rossumad678af1998-10-02 14:42:15 +00009618
Matthias Kloseb9621712010-04-24 17:59:49 +00009619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
9620$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009621if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009622 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009623else
Martin v. Löwis11437992002-04-12 09:54:03 +00009624 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009625LIBS="-lpthreads $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00009626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009627/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009628
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009629/* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009632#ifdef __cplusplus
9633extern "C"
9634#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009635char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009636int
9637main ()
9638{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009639return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009640 ;
9641 return 0;
9642}
9643_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009644if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00009645 ac_cv_lib_pthreads_pthread_create=yes
Greg Steinadf63d62000-07-05 10:38:09 +00009646else
Matthias Kloseb9621712010-04-24 17:59:49 +00009647 ac_cv_lib_pthreads_pthread_create=no
Greg Steinadf63d62000-07-05 10:38:09 +00009648fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009649rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009651LIBS=$ac_check_lib_save_LIBS
Greg Steinadf63d62000-07-05 10:38:09 +00009652fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
9654$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009655if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009656 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Greg Steinadf63d62000-07-05 10:38:09 +00009657
Guido van Rossumd0b69ec2001-09-10 14:10:54 +00009658 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +00009659 LIBS="$LIBS -lpthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009660 THREADOBJ="Python/thread.o"
Greg Steinadf63d62000-07-05 10:38:09 +00009661else
Greg Steinadf63d62000-07-05 10:38:09 +00009662
Matthias Kloseb9621712010-04-24 17:59:49 +00009663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
9664$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009665if ${ac_cv_lib_c_r_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009666 $as_echo_n "(cached) " >&6
Greg Steinadf63d62000-07-05 10:38:09 +00009667else
Martin v. Löwis11437992002-04-12 09:54:03 +00009668 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:09 +00009669LIBS="-lc_r $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00009670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009671/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009672
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009673/* Override any GCC internal prototype to avoid an error.
9674 Use char because int might match the return type of a GCC
9675 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009676#ifdef __cplusplus
9677extern "C"
9678#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009679char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009680int
9681main ()
9682{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009683return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009684 ;
9685 return 0;
9686}
9687_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009688if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00009689 ac_cv_lib_c_r_pthread_create=yes
Guido van Rossum49545951997-12-02 19:28:29 +00009690else
Matthias Kloseb9621712010-04-24 17:59:49 +00009691 ac_cv_lib_c_r_pthread_create=no
Guido van Rossum49545951997-12-02 19:28:29 +00009692fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009693rm -f core conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009695LIBS=$ac_check_lib_save_LIBS
Guido van Rossum49545951997-12-02 19:28:29 +00009696fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
9698$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009699if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009700 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum49545951997-12-02 19:28:29 +00009701
Guido van Rossumd0b69ec2001-09-10 14:10:54 +00009702 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +00009703 LIBS="$LIBS -lc_r"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009704 THREADOBJ="Python/thread.o"
Guido van Rossum07bd90e2000-05-08 13:41:38 +00009705else
Guido van Rossum07bd90e2000-05-08 13:41:38 +00009706
Matthias Kloseb9621712010-04-24 17:59:49 +00009707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
9708$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009709if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009710 $as_echo_n "(cached) " >&6
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00009711else
Martin v. Löwis11437992002-04-12 09:54:03 +00009712 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00009713LIBS="-lpthread $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00009714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009715/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009716
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009717/* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009720#ifdef __cplusplus
9721extern "C"
9722#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009723char __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009724int
9725main ()
9726{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009727return __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009728 ;
9729 return 0;
9730}
9731_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009732if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00009733 ac_cv_lib_pthread___pthread_create_system=yes
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00009734else
Matthias Kloseb9621712010-04-24 17:59:49 +00009735 ac_cv_lib_pthread___pthread_create_system=no
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00009736fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009737rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009739LIBS=$ac_check_lib_save_LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00009740fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
9742$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009743if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009744 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00009745
Guido van Rossumd0b69ec2001-09-10 14:10:54 +00009746 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +00009747 LIBS="$LIBS -lpthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009748 THREADOBJ="Python/thread.o"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00009749else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00009750
Matthias Kloseb9621712010-04-24 17:59:49 +00009751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
9752$as_echo_n "checking for pthread_create in -lcma... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009753if ${ac_cv_lib_cma_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009754 $as_echo_n "(cached) " >&6
Guido van Rossumb93a8621998-05-07 13:27:32 +00009755else
Martin v. Löwis11437992002-04-12 09:54:03 +00009756 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +00009757LIBS="-lcma $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00009758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009759/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009760
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009761/* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009764#ifdef __cplusplus
9765extern "C"
9766#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009767char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009768int
9769main ()
9770{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009771return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009772 ;
9773 return 0;
9774}
9775_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009776if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00009777 ac_cv_lib_cma_pthread_create=yes
Guido van Rossumb93a8621998-05-07 13:27:32 +00009778else
Matthias Kloseb9621712010-04-24 17:59:49 +00009779 ac_cv_lib_cma_pthread_create=no
Guido van Rossumb93a8621998-05-07 13:27:32 +00009780fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009781rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009783LIBS=$ac_check_lib_save_LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +00009784fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
9786$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009787if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009788 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossumb93a8621998-05-07 13:27:32 +00009789
Guido van Rossumd0b69ec2001-09-10 14:10:54 +00009790 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +00009791 LIBS="$LIBS -lcma"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009792 THREADOBJ="Python/thread.o"
Guido van Rossumb93a8621998-05-07 13:27:32 +00009793else
Thomas Wouters0db2b2b2000-08-26 11:33:43 +00009794
Martin v. Löwis130fb172001-07-19 11:00:41 +00009795 USE_THREAD_MODULE="#"
Guido van Rossum2d38f911996-06-26 19:47:01 +00009796fi
9797
Guido van Rossum627b2d71993-12-24 10:39:16 +00009798
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009799fi
9800
Guido van Rossum0be3e491997-05-22 20:33:33 +00009801fi
9802
Guido van Rossum49545951997-12-02 19:28:29 +00009803fi
9804
Guido van Rossumb93a8621998-05-07 13:27:32 +00009805fi
9806
Martin v. Löwisf90ae202002-06-11 06:22:31 +00009807fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009808rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00009810
Matthias Kloseb9621712010-04-24 17:59:49 +00009811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
9812$as_echo_n "checking for usconfig in -lmpc... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009813if ${ac_cv_lib_mpc_usconfig+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009814 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009815else
Martin v. Löwis11437992002-04-12 09:54:03 +00009816 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009817LIBS="-lmpc $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00009818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009819/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009820
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009821/* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009824#ifdef __cplusplus
9825extern "C"
9826#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009827char usconfig ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009828int
9829main ()
9830{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009831return usconfig ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009832 ;
9833 return 0;
9834}
9835_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009836if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00009837 ac_cv_lib_mpc_usconfig=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009838else
Matthias Kloseb9621712010-04-24 17:59:49 +00009839 ac_cv_lib_mpc_usconfig=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00009840fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009841rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009843LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009844fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
9846$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009847if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009848 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +00009849
Martin v. Löwis130fb172001-07-19 11:00:41 +00009850 LIBS="$LIBS -lmpc"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009851 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +00009852 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +00009853fi
9854
Martin v. Löwis3d2b5492002-03-15 13:48:21 +00009855
Neal Norwitza978ab02002-11-02 16:58:05 +00009856 if test "$posix_threads" != "yes"; then
Matthias Kloseb9621712010-04-24 17:59:49 +00009857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
9858$as_echo_n "checking for thr_create in -lthread... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009859if ${ac_cv_lib_thread_thr_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009860 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009861else
Martin v. Löwis11437992002-04-12 09:54:03 +00009862 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009863LIBS="-lthread $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +00009864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009865/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009866
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009867/* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009870#ifdef __cplusplus
9871extern "C"
9872#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009873char thr_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009874int
9875main ()
9876{
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009877return thr_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +00009878 ;
9879 return 0;
9880}
9881_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009882if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +00009883 ac_cv_lib_thread_thr_create=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009884else
Matthias Kloseb9621712010-04-24 17:59:49 +00009885 ac_cv_lib_thread_thr_create=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00009886fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009887rm -f core conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009889LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009890fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
9892$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009893if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009894 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +00009895
Martin v. Löwis3d2b5492002-03-15 13:48:21 +00009896 LIBS="$LIBS -lthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009897 THREADOBJ="Python/thread.o"
Martin v. Löwis3d2b5492002-03-15 13:48:21 +00009898 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +00009899fi
9900
Martin v. Löwis3d2b5492002-03-15 13:48:21 +00009901 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009902fi
Martin v. Löwisa7a76d32002-10-04 07:21:24 +00009903
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009904if test "$posix_threads" = "yes"; then
9905 if test "$unistd_defines_pthreads" = "no"; then
Martin v. Löwisa7a76d32002-10-04 07:21:24 +00009906
Matthias Kloseb9621712010-04-24 17:59:49 +00009907$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009908
9909 fi
9910
9911 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
9912 case $ac_sys_system/$ac_sys_release in
Charles-François Natali996f6062011-07-21 19:45:31 +02009913 SunOS/5.6)
Matthias Kloseb9621712010-04-24 17:59:49 +00009914$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
Martin v. Löwisa7a76d32002-10-04 07:21:24 +00009915
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009916 ;;
9917 SunOS/5.8)
Matthias Kloseb9621712010-04-24 17:59:49 +00009918$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009919
9920 ;;
Charles-François Natali996f6062011-07-21 19:45:31 +02009921 AIX/*)
Matthias Kloseb9621712010-04-24 17:59:49 +00009922$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Christian Heimes7b3ce6a2008-01-31 14:31:45 +00009923
9924 ;;
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009925 esac
9926
Matthias Kloseb9621712010-04-24 17:59:49 +00009927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
9928$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +02009929 if ${ac_cv_pthread_system_supported+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +00009930 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009931else
Matthias Kloseb9621712010-04-24 17:59:49 +00009932 if test "$cross_compiling" = yes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009933 ac_cv_pthread_system_supported=no
9934else
Matthias Kloseb9621712010-04-24 17:59:49 +00009935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00009936/* end confdefs.h. */
Stefan Krah7dba5942012-11-22 22:49:11 +01009937
9938 #include <stdio.h>
9939 #include <pthread.h>
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009940 void *foo(void *parm) {
9941 return NULL;
9942 }
9943 main() {
9944 pthread_attr_t attr;
9945 pthread_t id;
9946 if (pthread_attr_init(&attr)) exit(-1);
9947 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
9948 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
9949 exit(0);
9950 }
9951_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009952if ac_fn_c_try_run "$LINENO"; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009953 ac_cv_pthread_system_supported=yes
9954else
Matthias Kloseb9621712010-04-24 17:59:49 +00009955 ac_cv_pthread_system_supported=no
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009956fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9958 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009959fi
Martin v. Löwisa7a76d32002-10-04 07:21:24 +00009960
Thomas Wouters47b49bf2007-08-30 22:15:33 +00009961
Guido van Rossum627b2d71993-12-24 10:39:16 +00009962fi
9963
Matthias Kloseb9621712010-04-24 17:59:49 +00009964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
9965$as_echo "$ac_cv_pthread_system_supported" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009966 if test "$ac_cv_pthread_system_supported" = "yes"; then
9967
Matthias Kloseb9621712010-04-24 17:59:49 +00009968$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009969
9970 fi
Matthias Kloseb9621712010-04-24 17:59:49 +00009971 for ac_func in pthread_sigmask
9972do :
9973 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
Victor Stinnere0be4232011-10-25 13:06:09 +02009974if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009975 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +00009976#define HAVE_PTHREAD_SIGMASK 1
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009977_ACEOF
Jason Tishlerfac083d2003-07-22 15:20:49 +00009978 case $ac_sys_system in
9979 CYGWIN*)
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009980
Matthias Kloseb9621712010-04-24 17:59:49 +00009981$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
Jason Tishlerfac083d2003-07-22 15:20:49 +00009982
9983 ;;
9984 esac
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009985fi
9986done
9987
Christian Heimesf77b4b22013-08-21 13:26:05 +02009988 for ac_func in pthread_atfork
9989do :
9990 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
9991if test "x$ac_cv_func_pthread_atfork" = xyes; then :
9992 cat >>confdefs.h <<_ACEOF
9993#define HAVE_PTHREAD_ATFORK 1
9994_ACEOF
9995
9996fi
9997done
9998
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00009999fi
10000
10001
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010002# Check for enable-ipv6
Martin v. Löwis11437992002-04-12 09:54:03 +000010003
Matthias Kloseb9621712010-04-24 17:59:49 +000010004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10005$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010006# Check whether --enable-ipv6 was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000010007if test "${enable_ipv6+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010008 enableval=$enable_ipv6; case "$enableval" in
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010009 no)
Matthias Kloseb9621712010-04-24 17:59:49 +000010010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010012 ipv6=no
10013 ;;
Matthias Kloseb9621712010-04-24 17:59:49 +000010014 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10015$as_echo "yes" >&6; }
10016 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010017
10018 ipv6=yes
10019 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000010020 esac
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010021else
Martin v. Löwis11437992002-04-12 09:54:03 +000010022
Matthias Kloseb9621712010-04-24 17:59:49 +000010023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010024/* end confdefs.h. */
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010025 /* AF_INET6 available check */
10026#include <sys/types.h>
10027#include <sys/socket.h>
Charles-François Natalif6fd7942013-01-08 19:49:42 +010010028int
10029main ()
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010030{
Charles-François Natalif6fd7942013-01-08 19:49:42 +010010031int domain = AF_INET6;
10032 ;
10033 return 0;
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010034}
Martin v. Löwis11437992002-04-12 09:54:03 +000010035_ACEOF
Charles-François Natalif6fd7942013-01-08 19:49:42 +010010036if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:44 +000010037
Matthias Kloseb9621712010-04-24 17:59:49 +000010038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10039$as_echo "yes" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010040 ipv6=yes
Matthias Kloseb159a552010-04-25 21:00:44 +000010041
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010042else
Matthias Kloseb159a552010-04-25 21:00:44 +000010043
Matthias Kloseb9621712010-04-24 17:59:49 +000010044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010046 ipv6=no
Matthias Kloseb159a552010-04-25 21:00:44 +000010047
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010048fi
Charles-François Natalif6fd7942013-01-08 19:49:42 +010010049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010050
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000010051if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:49 +000010052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
10053$as_echo_n "checking if RFC2553 API is available... " >&6; }
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010055/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:44 +000010056
10057 #include <sys/types.h>
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000010058#include <netinet/in.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010059int
10060main ()
10061{
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000010062struct sockaddr_in6 x;
Matthias Kloseb159a552010-04-25 21:00:44 +000010063 x.sin6_scope_id;
Martin v. Löwis11437992002-04-12 09:54:03 +000010064 ;
10065 return 0;
10066}
Matthias Kloseb159a552010-04-25 21:00:44 +000010067
Martin v. Löwis11437992002-04-12 09:54:03 +000010068_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010069if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:44 +000010070
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010072$as_echo "yes" >&6; }
Matthias Kloseb159a552010-04-25 21:00:44 +000010073 ipv6=yes
10074
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000010075else
Matthias Kloseb159a552010-04-25 21:00:44 +000010076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010078$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:44 +000010079 ipv6=no
10080
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000010081fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000010083fi
10084
10085if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:49 +000010086 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000010087
10088fi
10089
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010090fi
10091
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010092
10093ipv6type=unknown
10094ipv6lib=none
10095ipv6trylibc=no
10096
10097if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:49 +000010098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
10099$as_echo_n "checking ipv6 stack type... " >&6; }
Guido van Rossumb8552162001-09-05 14:58:11 +000010100 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
10101 do
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010102 case $i in
10103 inria)
Matthias Kloseb9621712010-04-24 17:59:49 +000010104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010105/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000010106
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010107#include <netinet/in.h>
10108#ifdef IPV6_INRIA_VERSION
10109yes
10110#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000010111_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +000010113 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000010114 ipv6type=$i
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010115fi
Matthias Klosec80c93f2010-04-24 17:04:35 +000010116rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010117
10118 ;;
10119 kame)
Matthias Kloseb9621712010-04-24 17:59:49 +000010120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010121/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000010122
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010123#include <netinet/in.h>
10124#ifdef __KAME__
10125yes
10126#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000010127_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +000010129 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010130 ipv6type=$i;
10131 ipv6lib=inet6
10132 ipv6libdir=/usr/local/v6/lib
10133 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010134fi
Matthias Klosec80c93f2010-04-24 17:04:35 +000010135rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010136
10137 ;;
10138 linux-glibc)
Matthias Kloseb9621712010-04-24 17:59:49 +000010139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010140/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000010141
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010142#include <features.h>
10143#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
10144yes
10145#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000010146_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +000010148 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010149 ipv6type=$i;
10150 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010151fi
Matthias Klosec80c93f2010-04-24 17:04:35 +000010152rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010153
10154 ;;
10155 linux-inet6)
10156 if test -d /usr/inet6; then
10157 ipv6type=$i
10158 ipv6lib=inet6
10159 ipv6libdir=/usr/inet6/lib
Skip Montanarodecc6a42003-01-01 20:07:49 +000010160 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010161 fi
10162 ;;
10163 solaris)
10164 if test -f /etc/netconfig; then
Antoine Pitrouf3fcd9f2011-01-03 18:53:50 +000010165 if $GREP -q tcp6 /etc/netconfig; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010166 ipv6type=$i
10167 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010168 fi
10169 fi
10170 ;;
10171 toshiba)
Matthias Kloseb9621712010-04-24 17:59:49 +000010172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010173/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000010174
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010175#include <sys/param.h>
10176#ifdef _TOSHIBA_INET6
10177yes
10178#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000010179_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +000010181 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010182 ipv6type=$i;
10183 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000010184 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010185fi
Matthias Klosec80c93f2010-04-24 17:04:35 +000010186rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010187
10188 ;;
10189 v6d)
Matthias Kloseb9621712010-04-24 17:59:49 +000010190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010191/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000010192
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010193#include </usr/local/v6/include/sys/v6config.h>
10194#ifdef __V6D__
10195yes
10196#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000010197_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +000010199 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010200 ipv6type=$i;
10201 ipv6lib=v6;
10202 ipv6libdir=/usr/local/v6/lib;
Skip Montanarodecc6a42003-01-01 20:07:49 +000010203 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010204fi
Matthias Klosec80c93f2010-04-24 17:04:35 +000010205rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010206
10207 ;;
10208 zeta)
Matthias Kloseb9621712010-04-24 17:59:49 +000010209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010210/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000010211
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010212#include <sys/param.h>
10213#ifdef _ZETA_MINAMI_INET6
10214yes
10215#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000010216_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +000010218 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010219 ipv6type=$i;
10220 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000010221 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010222fi
Matthias Klosec80c93f2010-04-24 17:04:35 +000010223rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010224
10225 ;;
10226 esac
10227 if test "$ipv6type" != "unknown"; then
10228 break
10229 fi
10230 done
Matthias Kloseb9621712010-04-24 17:59:49 +000010231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
10232$as_echo "$ipv6type" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000010233fi
10234
10235if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
10236 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
10237 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
10238 echo "using lib$ipv6lib"
10239 else
10240 if test $ipv6trylibc = "yes"; then
10241 echo "using libc"
10242 else
10243 echo 'Fatal: no $ipv6lib library found. cannot continue.'
10244 echo "You need to fetch lib$ipv6lib.a from appropriate"
10245 echo 'ipv6 kit and compile beforehand.'
10246 exit 1
10247 fi
10248 fi
10249fi
10250
Matthias Kloseb9621712010-04-24 17:59:49 +000010251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
10252$as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
10253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benjamin Peterson8f95cc22008-07-16 02:23:25 +000010254/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:44 +000010255
10256 #include <Carbon/Carbon.h>
Benjamin Peterson8f95cc22008-07-16 02:23:25 +000010257int
10258main ()
10259{
10260FSIORefNum fRef = 0
10261 ;
10262 return 0;
10263}
Matthias Kloseb159a552010-04-25 21:00:44 +000010264
Benjamin Peterson8f95cc22008-07-16 02:23:25 +000010265_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010266if ac_fn_c_try_compile "$LINENO"; then :
Benjamin Peterson8f95cc22008-07-16 02:23:25 +000010267
Matthias Kloseb159a552010-04-25 21:00:44 +000010268
Matthias Kloseb9621712010-04-24 17:59:49 +000010269$as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
Benjamin Peterson8f95cc22008-07-16 02:23:25 +000010270
Matthias Kloseb9621712010-04-24 17:59:49 +000010271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10272$as_echo "yes" >&6; }
Matthias Kloseb159a552010-04-25 21:00:44 +000010273
Benjamin Peterson8f95cc22008-07-16 02:23:25 +000010274else
Matthias Kloseb159a552010-04-25 21:00:44 +000010275
Matthias Kloseb9621712010-04-24 17:59:49 +000010276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277$as_echo "no" >&6; }
Benjamin Peterson8f95cc22008-07-16 02:23:25 +000010278
10279fi
Benjamin Peterson8f95cc22008-07-16 02:23:25 +000010280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000010282# Check for --with-doc-strings
Matthias Kloseb9621712010-04-24 17:59:49 +000010283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
10284$as_echo_n "checking for --with-doc-strings... " >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000010285
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010286# Check whether --with-doc-strings was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000010287if test "${with_doc_strings+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010288 withval=$with_doc_strings;
10289fi
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000010290
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000010291
10292if test -z "$with_doc_strings"
10293then with_doc_strings="yes"
10294fi
10295if test "$with_doc_strings" != "no"
10296then
10297
Matthias Kloseb9621712010-04-24 17:59:49 +000010298$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000010299
10300fi
Matthias Kloseb9621712010-04-24 17:59:49 +000010301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
10302$as_echo "$with_doc_strings" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000010303
Antoine Pitrou042b1282010-08-13 21:15:58 +000010304# Check if eval loop should use timestamp counter profiling
Matthias Kloseb9621712010-04-24 17:59:49 +000010305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
10306$as_echo_n "checking for --with-tsc... " >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000010307
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010308# Check whether --with-tsc was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000010309if test "${with_tsc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010310 withval=$with_tsc;
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000010311if test "$withval" != no
10312then
10313
Matthias Kloseb9621712010-04-24 17:59:49 +000010314$as_echo "#define WITH_TSC 1" >>confdefs.h
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000010315
Matthias Kloseb9621712010-04-24 17:59:49 +000010316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10317$as_echo "yes" >&6; }
10318else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319$as_echo "no" >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000010320fi
10321else
Matthias Kloseb9621712010-04-24 17:59:49 +000010322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323$as_echo "no" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010324fi
10325
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000010326
10327# Check for Python-specific malloc support
Matthias Kloseb9621712010-04-24 17:59:49 +000010328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
10329$as_echo_n "checking for --with-pymalloc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000010330
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010331# Check whether --with-pymalloc was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000010332if test "${with_pymalloc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010333 withval=$with_pymalloc;
10334fi
Michael W. Hudson54241132001-12-07 15:38:26 +000010335
Neil Schemenauera35c6882001-02-27 04:45:05 +000010336
Neil Schemenauer16c22972002-03-22 15:34:49 +000010337if test -z "$with_pymalloc"
Barry Warsaw35f3a2c2010-09-03 18:30:30 +000010338then
10339 with_pymalloc="yes"
Neil Schemenauer16c22972002-03-22 15:34:49 +000010340fi
10341if test "$with_pymalloc" != "no"
10342then
Martin v. Löwis11437992002-04-12 09:54:03 +000010343
Matthias Kloseb9621712010-04-24 17:59:49 +000010344$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
Neil Schemenauer16c22972002-03-22 15:34:49 +000010345
doko@ubuntu.com9c7817e2012-06-30 17:05:13 +020010346 ABIFLAGS="${ABIFLAGS}m"
Neil Schemenauer16c22972002-03-22 15:34:49 +000010347fi
Matthias Kloseb9621712010-04-24 17:59:49 +000010348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
10349$as_echo "$with_pymalloc" >&6; }
Neil Schemenauer16c22972002-03-22 15:34:49 +000010350
Benjamin Peterson05159c42009-12-03 03:01:27 +000010351# Check for Valgrind support
Matthias Kloseb9621712010-04-24 17:59:49 +000010352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
10353$as_echo_n "checking for --with-valgrind... " >&6; }
Benjamin Peterson05159c42009-12-03 03:01:27 +000010354
10355# Check whether --with-valgrind was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000010356if test "${with_valgrind+set}" = set; then :
Benjamin Peterson05159c42009-12-03 03:01:27 +000010357 withval=$with_valgrind;
10358else
10359 with_valgrind=no
10360fi
10361
Matthias Kloseb9621712010-04-24 17:59:49 +000010362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
10363$as_echo "$with_valgrind" >&6; }
Benjamin Peterson05159c42009-12-03 03:01:27 +000010364if test "$with_valgrind" != no; then
Matthias Kloseb9621712010-04-24 17:59:49 +000010365 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +020010366if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
Benjamin Peterson05159c42009-12-03 03:01:27 +000010367
Matthias Kloseb9621712010-04-24 17:59:49 +000010368$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
Benjamin Peterson05159c42009-12-03 03:01:27 +000010369
10370else
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020010371 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
Benjamin Peterson05159c42009-12-03 03:01:27 +000010372
10373fi
10374
10375
Jeffrey Yasskin39370832010-05-03 19:29:34 +000010376 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
Benjamin Peterson05159c42009-12-03 03:01:27 +000010377fi
10378
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000010379# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:30 +000010380
Guido van Rossum98935bf2001-09-05 19:13:16 +000010381DLINCLDIR=.
Guido van Rossum7f43da71994-08-01 12:15:30 +000010382
Guido van Rossume97ee181999-12-20 21:27:22 +000010383# the dlopen() function means we might want to use dynload_shlib.o. some
10384# platforms, such as AIX, have dlopen(), but don't want to use it.
Thomas Wouters3a584202000-08-05 23:28:51 +000010385for ac_func in dlopen
Matthias Kloseb9621712010-04-24 17:59:49 +000010386do :
10387 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Victor Stinnere0be4232011-10-25 13:06:09 +020010388if test "x$ac_cv_func_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000010389 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010390#define HAVE_DLOPEN 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010391_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000010392
Guido van Rossume97ee181999-12-20 21:27:22 +000010393fi
Thomas Wouters3a584202000-08-05 23:28:51 +000010394done
Guido van Rossume97ee181999-12-20 21:27:22 +000010395
Michael W. Hudson54241132001-12-07 15:38:26 +000010396
Guido van Rossume97ee181999-12-20 21:27:22 +000010397# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
10398# loading of modules.
10399
Matthias Kloseb9621712010-04-24 17:59:49 +000010400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
10401$as_echo_n "checking DYNLOADFILE... " >&6; }
Guido van Rossume97ee181999-12-20 21:27:22 +000010402if test -z "$DYNLOADFILE"
10403then
10404 case $ac_sys_system/$ac_sys_release in
Martin v. Löwisc19c5a62003-11-18 20:00:44 +000010405 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
10406 if test "$ac_cv_func_dlopen" = yes
10407 then DYNLOADFILE="dynload_shlib.o"
10408 else DYNLOADFILE="dynload_aix.o"
10409 fi
10410 ;;
Guido van Rossume97ee181999-12-20 21:27:22 +000010411 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000010412 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
10413 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
Guido van Rossume97ee181999-12-20 21:27:22 +000010414 *)
10415 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
10416 # out any dynamic loading
10417 if test "$ac_cv_func_dlopen" = yes
10418 then DYNLOADFILE="dynload_shlib.o"
10419 else DYNLOADFILE="dynload_stub.o"
10420 fi
10421 ;;
10422 esac
10423fi
Matthias Kloseb9621712010-04-24 17:59:49 +000010424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
10425$as_echo "$DYNLOADFILE" >&6; }
Guido van Rossume97ee181999-12-20 21:27:22 +000010426if test "$DYNLOADFILE" != "dynload_stub.o"
10427then
Martin v. Löwis11437992002-04-12 09:54:03 +000010428
Matthias Kloseb9621712010-04-24 17:59:49 +000010429$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
Guido van Rossume97ee181999-12-20 21:27:22 +000010430
10431fi
10432
Neil Schemenauer4e425612001-06-19 15:44:15 +000010433# MACHDEP_OBJS can be set to platform-specific object files needed by Python
10434
Michael W. Hudson54241132001-12-07 15:38:26 +000010435
Matthias Kloseb9621712010-04-24 17:59:49 +000010436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
10437$as_echo_n "checking MACHDEP_OBJS... " >&6; }
Neil Schemenauer4e425612001-06-19 15:44:15 +000010438if test -z "$MACHDEP_OBJS"
10439then
Jack Jansene578a632001-08-15 01:27:14 +000010440 MACHDEP_OBJS=$extra_machdep_objs
10441else
10442 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
Neil Schemenauer4e425612001-06-19 15:44:15 +000010443fi
doko@ubuntu.com9c7817e2012-06-30 17:05:13 +020010444if test -z "$MACHDEP_OBJS"; then
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10446$as_echo "none" >&6; }
10447else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
10449$as_echo "$MACHDEP_OBJS" >&6; }
10450fi
Neil Schemenauer4e425612001-06-19 15:44:15 +000010451
Guido van Rossum627b2d71993-12-24 10:39:16 +000010452# checks for library functions
Antoine Pitroub1c54962010-10-14 15:05:38 +000010453for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
Victor Stinnerdaf45552013-08-28 00:53:59 +020010454 clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \
Ross Lagerwall7807c352011-03-17 20:20:30 +020010455 fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020010456 futimens futimes gai_strerror \
10457 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
Martin v. Löwis7aed61a2009-11-27 14:09:49 +000010458 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
Gregory P. Smith5ed2e772011-05-15 00:26:45 -070010459 if_nameindex \
Antoine Pitrouf0effe62011-11-26 01:11:02 +010010460 initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
10461 memrchr mbrtowc mkdirat mkfifo \
Charles-François Natalidaafdd52011-05-29 20:07:40 +020010462 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
Ross Lagerwall7807c352011-03-17 20:20:30 +020010463 posix_fallocate posix_fadvise pread \
Victor Stinnerb3e72192011-05-08 01:46:11 +020010464 pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \
Georg Brandl941f9562011-02-25 15:21:47 +000010465 select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \
Antoine Pitrou061cfb52011-02-28 22:25:22 +000010466 setgid sethostname \
Giampaolo Rodolà18e8bcb2011-02-25 20:57:54 +000010467 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \
Charles-François Nataliea0d5fc2011-09-06 19:03:35 +020010468 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \
10469 sched_rr_get_interval \
Ross Lagerwallbc808222011-06-25 12:13:40 +020010470 sigaction sigaltstack siginterrupt sigpending sigrelse \
10471 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \
Michael W. Hudson34f20ea2002-05-27 15:08:24 +000010472 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Ross Lagerwall7807c352011-03-17 20:20:30 +020010473 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \
Victor Stinnercd777ea2013-04-08 22:43:44 +020010474 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty
Matthias Kloseb9621712010-04-24 17:59:49 +000010475do :
10476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10477ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020010478if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000010479 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010480#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010481_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000010482
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010483fi
10484done
10485
Michael W. Hudson54241132001-12-07 15:38:26 +000010486
Gregory P. Smithdf300d52012-01-21 18:20:15 -080010487ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
10488 #include <dirent.h>
10489"
10490if test "x$ac_cv_have_decl_dirfd" = xyes; then :
10491
10492$as_echo "#define HAVE_DIRFD 1" >>confdefs.h
10493
10494fi
10495
10496
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010497# For some functions, having a definition is not sufficient, since
10498# we want to take their address.
Matthias Kloseb9621712010-04-24 17:59:49 +000010499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
10500$as_echo_n "checking for chroot... " >&6; }
10501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010502/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010503#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010504int
10505main ()
10506{
10507void *x=chroot
10508 ;
10509 return 0;
10510}
10511_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010512if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010513
Matthias Kloseb9621712010-04-24 17:59:49 +000010514$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010515
Matthias Kloseb159a552010-04-25 21:00:44 +000010516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010517$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010518else
Matthias Kloseb9621712010-04-24 17:59:49 +000010519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010521
10522fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000010524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
10525$as_echo_n "checking for link... " >&6; }
10526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010527/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010528#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010529int
10530main ()
10531{
10532void *x=link
10533 ;
10534 return 0;
10535}
10536_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010537if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010538
Matthias Kloseb9621712010-04-24 17:59:49 +000010539$as_echo "#define HAVE_LINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010540
Matthias Kloseb159a552010-04-25 21:00:44 +000010541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010542$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010543else
Matthias Kloseb9621712010-04-24 17:59:49 +000010544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010546
10547fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000010549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
10550$as_echo_n "checking for symlink... " >&6; }
10551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010552/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010553#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010554int
10555main ()
10556{
10557void *x=symlink
10558 ;
10559 return 0;
10560}
10561_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010562if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010563
Matthias Kloseb9621712010-04-24 17:59:49 +000010564$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010565
Matthias Kloseb159a552010-04-25 21:00:44 +000010566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010567$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010568else
Matthias Kloseb9621712010-04-24 17:59:49 +000010569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010571
10572fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000010574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
10575$as_echo_n "checking for fchdir... " >&6; }
10576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010577/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010578#include <unistd.h>
10579int
10580main ()
10581{
10582void *x=fchdir
10583 ;
10584 return 0;
10585}
10586_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010587if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010588
Matthias Kloseb9621712010-04-24 17:59:49 +000010589$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010590
Matthias Kloseb159a552010-04-25 21:00:44 +000010591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010592$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010593else
Matthias Kloseb9621712010-04-24 17:59:49 +000010594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010596
10597fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000010599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
10600$as_echo_n "checking for fsync... " >&6; }
10601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010602/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010603#include <unistd.h>
10604int
10605main ()
10606{
10607void *x=fsync
10608 ;
10609 return 0;
10610}
10611_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010612if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010613
Matthias Kloseb9621712010-04-24 17:59:49 +000010614$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010615
Matthias Kloseb159a552010-04-25 21:00:44 +000010616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010617$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010618else
Matthias Kloseb9621712010-04-24 17:59:49 +000010619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010621
10622fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000010624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
10625$as_echo_n "checking for fdatasync... " >&6; }
10626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010627/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010628#include <unistd.h>
10629int
10630main ()
10631{
10632void *x=fdatasync
10633 ;
10634 return 0;
10635}
10636_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010637if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010638
Matthias Kloseb9621712010-04-24 17:59:49 +000010639$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010640
Matthias Kloseb159a552010-04-25 21:00:44 +000010641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010642$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010643else
Matthias Kloseb9621712010-04-24 17:59:49 +000010644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000010646
10647fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000010649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
10650$as_echo_n "checking for epoll... " >&6; }
10651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010652/* end confdefs.h. */
10653#include <sys/epoll.h>
10654int
10655main ()
10656{
10657void *x=epoll_create
10658 ;
10659 return 0;
10660}
10661_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010662if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000010663
Matthias Kloseb9621712010-04-24 17:59:49 +000010664$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010665
Matthias Kloseb159a552010-04-25 21:00:44 +000010666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010667$as_echo "yes" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010668else
Matthias Kloseb9621712010-04-24 17:59:49 +000010669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670$as_echo "no" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010671
10672fi
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benjamin Peterson95c16622011-12-27 15:36:32 -060010674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
10675$as_echo_n "checking for epoll_create1... " >&6; }
10676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677/* end confdefs.h. */
10678#include <sys/epoll.h>
10679int
10680main ()
10681{
10682void *x=epoll_create1
10683 ;
10684 return 0;
10685}
10686_ACEOF
10687if ac_fn_c_try_compile "$LINENO"; then :
10688
10689$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
10690
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10692$as_echo "yes" >&6; }
10693else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
10696
10697fi
10698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000010699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
10700$as_echo_n "checking for kqueue... " >&6; }
10701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010702/* end confdefs.h. */
10703
10704#include <sys/types.h>
10705#include <sys/event.h>
10706
10707int
10708main ()
10709{
10710int x=kqueue()
10711 ;
10712 return 0;
10713}
10714_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010715if ac_fn_c_try_compile "$LINENO"; then :
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010716
Matthias Kloseb9621712010-04-24 17:59:49 +000010717$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010718
Matthias Kloseb159a552010-04-25 21:00:44 +000010719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010720$as_echo "yes" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010721else
Matthias Kloseb9621712010-04-24 17:59:49 +000010722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010724
10725fi
Christian Heimes4fbc72b2008-03-22 00:47:35 +000010726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Christian Heimesb7bd5df2013-10-22 11:21:54 +020010727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
10728$as_echo_n "checking for prlimit... " >&6; }
10729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h. */
10731
10732#include <sys/time.h>
10733#include <sys/resource.h>
10734
10735int
10736main ()
10737{
10738void *x=prlimit
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743if ac_fn_c_try_compile "$LINENO"; then :
10744
10745$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h
10746
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10748$as_echo "yes" >&6; }
10749else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751$as_echo "no" >&6; }
10752
10753fi
10754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755
Martin v. Löwisd5843682002-11-21 20:41:28 +000010756# On some systems (eg. FreeBSD 5), we would find a definition of the
10757# functions ctermid_r, setgroups in the library, but no prototype
10758# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
10759# address to avoid compiler warnings and potential miscompilations
10760# because of the missing prototypes.
10761
Matthias Kloseb9621712010-04-24 17:59:49 +000010762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
10763$as_echo_n "checking for ctermid_r... " >&6; }
10764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010765/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:28 +000010766
Martin v. Löwisd5843682002-11-21 20:41:28 +000010767#include <stdio.h>
10768
Martin v. Löwisd5843682002-11-21 20:41:28 +000010769int
10770main ()
10771{
10772void* p = ctermid_r
10773 ;
10774 return 0;
10775}
10776_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010777if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:28 +000010778
Matthias Kloseb9621712010-04-24 17:59:49 +000010779$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:28 +000010780
Matthias Kloseb159a552010-04-25 21:00:44 +000010781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010782$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000010783else
Matthias Kloseb9621712010-04-24 17:59:49 +000010784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000010786
10787fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10789
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
10791$as_echo_n "checking for flock declaration... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020010792if ${ac_cv_flock_decl+:} false; then :
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010793 $as_echo_n "(cached) " >&6
10794else
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010796/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010797#include <sys/file.h>
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010798int
10799main ()
10800{
10801void* p = flock
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010802
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010803 ;
10804 return 0;
10805}
10806_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010807if ac_fn_c_try_compile "$LINENO"; then :
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010808 ac_cv_flock_decl=yes
10809else
10810 ac_cv_flock_decl=no
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010811
10812fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Antoine Pitroua3000072010-09-07 14:52:42 +000010814
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010815fi
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
10817$as_echo "$ac_cv_flock_decl" >&6; }
10818if test "x${ac_cv_flock_decl}" = xyes; then
10819 for ac_func in flock
10820do :
10821 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
Victor Stinnere0be4232011-10-25 13:06:09 +020010822if test "x$ac_cv_func_flock" = xyes; then :
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010823 cat >>confdefs.h <<_ACEOF
10824#define HAVE_FLOCK 1
Antoine Pitroua3000072010-09-07 14:52:42 +000010825_ACEOF
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010826
Antoine Pitroua3000072010-09-07 14:52:42 +000010827else
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
Antoine Pitroua3000072010-09-07 14:52:42 +000010829$as_echo_n "checking for flock in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020010830if ${ac_cv_lib_bsd_flock+:} false; then :
Antoine Pitroua3000072010-09-07 14:52:42 +000010831 $as_echo_n "(cached) " >&6
10832else
10833 ac_check_lib_save_LIBS=$LIBS
10834LIBS="-lbsd $LIBS"
10835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* end confdefs.h. */
10837
10838/* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10841#ifdef __cplusplus
10842extern "C"
10843#endif
10844char flock ();
10845int
10846main ()
10847{
10848return flock ();
10849 ;
10850 return 0;
10851}
10852_ACEOF
10853if ac_fn_c_try_link "$LINENO"; then :
10854 ac_cv_lib_bsd_flock=yes
10855else
10856 ac_cv_lib_bsd_flock=no
10857fi
10858rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860LIBS=$ac_check_lib_save_LIBS
10861fi
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
10863$as_echo "$ac_cv_lib_bsd_flock" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020010864if test "x$ac_cv_lib_bsd_flock" = xyes; then :
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010865 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
Antoine Pitroua3000072010-09-07 14:52:42 +000010866
10867
10868$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
10869
10870
10871fi
10872
10873
10874fi
Antoine Pitroua4e4ae22010-09-10 18:39:00 +000010875done
10876
Antoine Pitroua3000072010-09-07 14:52:42 +000010877fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010878
Matthias Kloseb9621712010-04-24 17:59:49 +000010879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
10880$as_echo_n "checking for getpagesize... " >&6; }
10881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010882/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010883
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010884#include <unistd.h>
10885
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010886int
10887main ()
10888{
10889void* p = getpagesize
10890 ;
10891 return 0;
10892}
10893_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000010894if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010895
Matthias Kloseb9621712010-04-24 17:59:49 +000010896$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010897
Matthias Kloseb159a552010-04-25 21:00:44 +000010898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000010899$as_echo "yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010900else
Matthias Kloseb9621712010-04-24 17:59:49 +000010901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902$as_echo "no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010903
10904fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000010906
Victor Stinner984890f2011-11-24 13:53:38 +010010907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
10908$as_echo_n "checking for broken unsetenv... " >&6; }
10909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910/* end confdefs.h. */
10911
10912#include <stdlib.h>
10913
10914int
10915main ()
10916{
10917int res = unsetenv("DUMMY")
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922if ac_fn_c_try_compile "$LINENO"; then :
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924$as_echo "no" >&6; }
10925else
10926
10927$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
10928
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10930$as_echo "yes" >&6; }
10931
10932fi
10933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000010935for ac_prog in true
10936do
10937 # Extract the first word of "$ac_prog", so it can be a program name with args.
10938set dummy $ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:49 +000010939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020010941if ${ac_cv_prog_TRUE+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000010942 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000010943else
10944 if test -n "$TRUE"; then
10945 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
10946else
10947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $PATH
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +000010952 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000010953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000010954 ac_cv_prog_TRUE="$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:49 +000010955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000010956 break 2
10957 fi
10958done
Matthias Kloseb9621712010-04-24 17:59:49 +000010959 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010960IFS=$as_save_IFS
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000010961
10962fi
10963fi
10964TRUE=$ac_cv_prog_TRUE
10965if test -n "$TRUE"; then
Matthias Kloseb9621712010-04-24 17:59:49 +000010966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
10967$as_echo "$TRUE" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000010968else
Matthias Kloseb9621712010-04-24 17:59:49 +000010969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000010971fi
10972
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010973
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000010974 test -n "$TRUE" && break
10975done
10976test -n "$TRUE" || TRUE="/bin/true"
10977
10978
Matthias Kloseb9621712010-04-24 17:59:49 +000010979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
10980$as_echo_n "checking for inet_aton in -lc... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020010981if ${ac_cv_lib_c_inet_aton+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000010982 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:48 +000010983else
10984 ac_check_lib_save_LIBS=$LIBS
10985LIBS="-lc $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000010986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000010987/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000010988
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010989/* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000010992#ifdef __cplusplus
10993extern "C"
10994#endif
Martin v. Löwis95c419b2003-05-03 12:10:48 +000010995char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000010996int
10997main ()
10998{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000010999return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011000 ;
11001 return 0;
11002}
11003_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011004if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011005 ac_cv_lib_c_inet_aton=yes
11006else
Matthias Kloseb9621712010-04-24 17:59:49 +000011007 ac_cv_lib_c_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011008fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011009rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011011LIBS=$ac_check_lib_save_LIBS
11012fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
11014$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011015if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000011016 $ac_cv_prog_TRUE
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011017else
Matthias Kloseb9621712010-04-24 17:59:49 +000011018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
11019$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011020if ${ac_cv_lib_resolv_inet_aton+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011021 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011022else
11023 ac_check_lib_save_LIBS=$LIBS
11024LIBS="-lresolv $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000011025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011026/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011027
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011028/* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011031#ifdef __cplusplus
11032extern "C"
11033#endif
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011034char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011035int
11036main ()
11037{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011038return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011039 ;
11040 return 0;
11041}
11042_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011043if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011044 ac_cv_lib_resolv_inet_aton=yes
11045else
Matthias Kloseb9621712010-04-24 17:59:49 +000011046 ac_cv_lib_resolv_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011047fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011048rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011050LIBS=$ac_check_lib_save_LIBS
11051fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
11053$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011054if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011055 cat >>confdefs.h <<_ACEOF
11056#define HAVE_LIBRESOLV 1
11057_ACEOF
11058
11059 LIBS="-lresolv $LIBS"
11060
11061fi
11062
11063
11064fi
11065
11066
Christian Heimesd0764e22007-12-04 15:00:33 +000011067# On Tru64, chflags seems to be present, but calling it will
11068# exit Python
Matthias Kloseb9621712010-04-24 17:59:49 +000011069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
11070$as_echo_n "checking for chflags... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011071if ${ac_cv_have_chflags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011072 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011073else
Matthias Kloseb9621712010-04-24 17:59:49 +000011074 if test "$cross_compiling" = yes; then :
Benjamin Petersoned68afa2010-01-30 19:36:43 +000011075 ac_cv_have_chflags=cross
Christian Heimesd0764e22007-12-04 15:00:33 +000011076else
Matthias Kloseb9621712010-04-24 17:59:49 +000011077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimesd0764e22007-12-04 15:00:33 +000011078/* end confdefs.h. */
Ned Deily3eb67d52011-06-28 00:00:28 -070011079
Christian Heimesd0764e22007-12-04 15:00:33 +000011080#include <sys/stat.h>
11081#include <unistd.h>
11082int main(int argc, char*argv[])
11083{
11084 if(chflags(argv[0], 0) != 0)
11085 return 1;
11086 return 0;
11087}
Ned Deily3eb67d52011-06-28 00:00:28 -070011088
Christian Heimesd0764e22007-12-04 15:00:33 +000011089_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011090if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011091 ac_cv_have_chflags=yes
Alexandre Vassalotti19142282009-07-17 23:11:52 +000011092else
Matthias Kloseb9621712010-04-24 17:59:49 +000011093 ac_cv_have_chflags=no
Alexandre Vassalotti19142282009-07-17 23:11:52 +000011094fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11096 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +000011097fi
11098
Alexandre Vassalotti19142282009-07-17 23:11:52 +000011099
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011100fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
11102$as_echo "$ac_cv_have_chflags" >&6; }
Benjamin Petersoned68afa2010-01-30 19:36:43 +000011103if test "$ac_cv_have_chflags" = cross ; then
Matthias Kloseb9621712010-04-24 17:59:49 +000011104 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
Victor Stinnere0be4232011-10-25 13:06:09 +020011105if test "x$ac_cv_func_chflags" = xyes; then :
Benjamin Petersoned68afa2010-01-30 19:36:43 +000011106 ac_cv_have_chflags="yes"
11107else
11108 ac_cv_have_chflags="no"
11109fi
11110
11111fi
11112if test "$ac_cv_have_chflags" = yes ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011113
Matthias Kloseb9621712010-04-24 17:59:49 +000011114$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011115
11116fi
11117
Matthias Kloseb9621712010-04-24 17:59:49 +000011118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
11119$as_echo_n "checking for lchflags... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011120if ${ac_cv_have_lchflags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011121 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011122else
Matthias Kloseb9621712010-04-24 17:59:49 +000011123 if test "$cross_compiling" = yes; then :
Benjamin Petersoned68afa2010-01-30 19:36:43 +000011124 ac_cv_have_lchflags=cross
Christian Heimesd0764e22007-12-04 15:00:33 +000011125else
Matthias Kloseb9621712010-04-24 17:59:49 +000011126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimesd0764e22007-12-04 15:00:33 +000011127/* end confdefs.h. */
Ned Deily3eb67d52011-06-28 00:00:28 -070011128
Christian Heimesd0764e22007-12-04 15:00:33 +000011129#include <sys/stat.h>
11130#include <unistd.h>
11131int main(int argc, char*argv[])
11132{
11133 if(lchflags(argv[0], 0) != 0)
11134 return 1;
11135 return 0;
11136}
Ned Deily3eb67d52011-06-28 00:00:28 -070011137
Christian Heimesd0764e22007-12-04 15:00:33 +000011138_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011139if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011140 ac_cv_have_lchflags=yes
Alexandre Vassalotti19142282009-07-17 23:11:52 +000011141else
Matthias Kloseb9621712010-04-24 17:59:49 +000011142 ac_cv_have_lchflags=no
Christian Heimesd0764e22007-12-04 15:00:33 +000011143fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11145 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti19142282009-07-17 23:11:52 +000011146fi
11147
11148
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011149fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
11151$as_echo "$ac_cv_have_lchflags" >&6; }
Benjamin Petersoned68afa2010-01-30 19:36:43 +000011152if test "$ac_cv_have_lchflags" = cross ; then
Matthias Kloseb9621712010-04-24 17:59:49 +000011153 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
Victor Stinnere0be4232011-10-25 13:06:09 +020011154if test "x$ac_cv_func_lchflags" = xyes; then :
Benjamin Petersoned68afa2010-01-30 19:36:43 +000011155 ac_cv_have_lchflags="yes"
11156else
11157 ac_cv_have_lchflags="no"
11158fi
11159
11160fi
11161if test "$ac_cv_have_lchflags" = yes ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011162
Matthias Kloseb9621712010-04-24 17:59:49 +000011163$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011164
11165fi
11166
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011167case $ac_sys_system/$ac_sys_release in
11168Darwin/*)
11169 _CUR_CFLAGS="${CFLAGS}"
11170 _CUR_LDFLAGS="${LDFLAGS}"
11171 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
11172 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
11173 ;;
11174esac
11175
Matthias Kloseb9621712010-04-24 17:59:49 +000011176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
11177$as_echo_n "checking for inflateCopy in -lz... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011178if ${ac_cv_lib_z_inflateCopy+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011179 $as_echo_n "(cached) " >&6
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011180else
11181 ac_check_lib_save_LIBS=$LIBS
11182LIBS="-lz $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000011183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011184/* end confdefs.h. */
11185
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011186/* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011189#ifdef __cplusplus
11190extern "C"
11191#endif
11192char inflateCopy ();
11193int
11194main ()
11195{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011196return inflateCopy ();
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011197 ;
11198 return 0;
11199}
11200_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011201if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011202 ac_cv_lib_z_inflateCopy=yes
11203else
Matthias Kloseb9621712010-04-24 17:59:49 +000011204 ac_cv_lib_z_inflateCopy=no
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011205fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011206rm -f core conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011208LIBS=$ac_check_lib_save_LIBS
11209fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
11211$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011212if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011213
Matthias Kloseb9621712010-04-24 17:59:49 +000011214$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:12 +000011215
11216fi
11217
11218
11219case $ac_sys_system/$ac_sys_release in
11220Darwin/*)
11221 CFLAGS="${_CUR_CFLAGS}"
11222 LDFLAGS="${_CUR_LDFLAGS}"
11223 ;;
11224esac
11225
Matthias Kloseb9621712010-04-24 17:59:49 +000011226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
11227$as_echo_n "checking for hstrerror... " >&6; }
11228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011229/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000011230
Martin v. Löwise9416172003-05-03 10:12:45 +000011231#include <netdb.h>
11232
Martin v. Löwise9416172003-05-03 10:12:45 +000011233int
11234main ()
11235{
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011236void* p = hstrerror; hstrerror(0)
Martin v. Löwise9416172003-05-03 10:12:45 +000011237 ;
11238 return 0;
11239}
11240_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011241if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:45 +000011242
Matthias Kloseb9621712010-04-24 17:59:49 +000011243$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:45 +000011244
Matthias Kloseb159a552010-04-25 21:00:44 +000011245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000011246$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000011247else
Matthias Kloseb9621712010-04-24 17:59:49 +000011248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000011250
11251fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011252rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011254
Matthias Kloseb9621712010-04-24 17:59:49 +000011255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11256$as_echo_n "checking for inet_aton... " >&6; }
11257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011258/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000011259
Martin v. Löwis86d66262006-02-17 08:40:11 +000011260#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:45 +000011261#include <sys/socket.h>
11262#include <netinet/in.h>
11263#include <arpa/inet.h>
11264
Martin v. Löwise9416172003-05-03 10:12:45 +000011265int
11266main ()
11267{
Martin v. Löwis95c419b2003-05-03 12:10:48 +000011268void* p = inet_aton;inet_aton(0,0)
Martin v. Löwise9416172003-05-03 10:12:45 +000011269 ;
11270 return 0;
11271}
11272_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011273if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:45 +000011274
Matthias Kloseb9621712010-04-24 17:59:49 +000011275$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:45 +000011276
Matthias Kloseb159a552010-04-25 21:00:44 +000011277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000011278$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000011279else
Matthias Kloseb9621712010-04-24 17:59:49 +000011280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000011282
11283fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011284rm -f core conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011286
Matthias Kloseb9621712010-04-24 17:59:49 +000011287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
11288$as_echo_n "checking for inet_pton... " >&6; }
11289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011290/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000011291
Martin v. Löwisf2e488d2003-05-05 22:00:11 +000011292#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:45 +000011293#include <sys/socket.h>
11294#include <netinet/in.h>
11295#include <arpa/inet.h>
11296
Martin v. Löwise9416172003-05-03 10:12:45 +000011297int
11298main ()
11299{
11300void* p = inet_pton
11301 ;
11302 return 0;
11303}
11304_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011305if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:45 +000011306
Matthias Kloseb9621712010-04-24 17:59:49 +000011307$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:45 +000011308
Matthias Kloseb159a552010-04-25 21:00:44 +000011309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000011310$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000011311else
Matthias Kloseb9621712010-04-24 17:59:49 +000011312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000011314
11315fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000011317
Martin v. Löwisd6640d42003-07-06 09:29:52 +000011318# On some systems, setgroups is in unistd.h, on others, in grp.h
Matthias Kloseb9621712010-04-24 17:59:49 +000011319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
11320$as_echo_n "checking for setgroups... " >&6; }
11321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011322/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:28 +000011323
Martin v. Löwisf2e488d2003-05-05 22:00:11 +000011324#include <unistd.h>
Martin v. Löwisd6640d42003-07-06 09:29:52 +000011325#ifdef HAVE_GRP_H
11326#include <grp.h>
11327#endif
Martin v. Löwisd5843682002-11-21 20:41:28 +000011328
Martin v. Löwisd5843682002-11-21 20:41:28 +000011329int
11330main ()
11331{
11332void* p = setgroups
11333 ;
11334 return 0;
11335}
11336_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011337if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:28 +000011338
Matthias Kloseb9621712010-04-24 17:59:49 +000011339$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:28 +000011340
Matthias Kloseb159a552010-04-25 21:00:44 +000011341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000011342$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000011343else
Matthias Kloseb9621712010-04-24 17:59:49 +000011344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000011346
11347fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:28 +000011349
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011350# check for openpty and forkpty
11351
11352for ac_func in openpty
Matthias Kloseb9621712010-04-24 17:59:49 +000011353do :
11354 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
Victor Stinnere0be4232011-10-25 13:06:09 +020011355if test "x$ac_cv_func_openpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000011356 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011357#define HAVE_OPENPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011358_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011359
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011360else
Matthias Kloseb9621712010-04-24 17:59:49 +000011361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
11362$as_echo_n "checking for openpty in -lutil... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011363if ${ac_cv_lib_util_openpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011364 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000011365else
Martin v. Löwis11437992002-04-12 09:54:03 +000011366 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000011367LIBS="-lutil $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000011368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011369/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011370
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011371/* Override any GCC internal prototype to avoid an error.
11372 Use char because int might match the return type of a GCC
11373 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011374#ifdef __cplusplus
11375extern "C"
11376#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000011377char openpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000011378int
11379main ()
11380{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011381return openpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000011382 ;
11383 return 0;
11384}
11385_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011386if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000011387 ac_cv_lib_util_openpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000011388else
Matthias Kloseb9621712010-04-24 17:59:49 +000011389 ac_cv_lib_util_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000011390fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011391rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011393LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000011394fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
11396$as_echo "$ac_cv_lib_util_openpty" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011397if test "x$ac_cv_lib_util_openpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011398 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:38 +000011399 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011400else
Matthias Kloseb9621712010-04-24 17:59:49 +000011401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
11402$as_echo_n "checking for openpty in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011403if ${ac_cv_lib_bsd_openpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011404 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011405else
11406 ac_check_lib_save_LIBS=$LIBS
11407LIBS="-lbsd $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000011408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011409/* end confdefs.h. */
11410
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011411/* Override any GCC internal prototype to avoid an error.
11412 Use char because int might match the return type of a GCC
11413 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011414#ifdef __cplusplus
11415extern "C"
11416#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011417char openpty ();
11418int
11419main ()
11420{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011421return openpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011422 ;
11423 return 0;
11424}
11425_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011426if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011427 ac_cv_lib_bsd_openpty=yes
11428else
Matthias Kloseb9621712010-04-24 17:59:49 +000011429 ac_cv_lib_bsd_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000011430fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011431rm -f core conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011433LIBS=$ac_check_lib_save_LIBS
11434fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
11436$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011437if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011438 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011439 LIBS="$LIBS -lbsd"
11440fi
11441
11442
11443fi
11444
Fred Drake8cef4cf2000-06-28 16:40:38 +000011445
11446fi
11447done
11448
11449for ac_func in forkpty
Matthias Kloseb9621712010-04-24 17:59:49 +000011450do :
11451 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
Victor Stinnere0be4232011-10-25 13:06:09 +020011452if test "x$ac_cv_func_forkpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000011453 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011454#define HAVE_FORKPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011455_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000011456
Fred Drake8cef4cf2000-06-28 16:40:38 +000011457else
Matthias Kloseb9621712010-04-24 17:59:49 +000011458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
11459$as_echo_n "checking for forkpty in -lutil... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011460if ${ac_cv_lib_util_forkpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011461 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000011462else
Martin v. Löwis11437992002-04-12 09:54:03 +000011463 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000011464LIBS="-lutil $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000011465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011466/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011467
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011468/* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011471#ifdef __cplusplus
11472extern "C"
11473#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000011474char forkpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000011475int
11476main ()
11477{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011478return forkpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000011479 ;
11480 return 0;
11481}
11482_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011483if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000011484 ac_cv_lib_util_forkpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000011485else
Matthias Kloseb9621712010-04-24 17:59:49 +000011486 ac_cv_lib_util_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000011487fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011488rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011490LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000011491fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
11493$as_echo "$ac_cv_lib_util_forkpty" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011494if test "x$ac_cv_lib_util_forkpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011495 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:38 +000011496 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011497else
Matthias Kloseb9621712010-04-24 17:59:49 +000011498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
11499$as_echo_n "checking for forkpty in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011500if ${ac_cv_lib_bsd_forkpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011501 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011502else
11503 ac_check_lib_save_LIBS=$LIBS
11504LIBS="-lbsd $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000011505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011506/* end confdefs.h. */
11507
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011508/* Override any GCC internal prototype to avoid an error.
11509 Use char because int might match the return type of a GCC
11510 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011511#ifdef __cplusplus
11512extern "C"
11513#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011514char forkpty ();
11515int
11516main ()
11517{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011518return forkpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011519 ;
11520 return 0;
11521}
11522_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011523if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011524 ac_cv_lib_bsd_forkpty=yes
11525else
Matthias Kloseb9621712010-04-24 17:59:49 +000011526 ac_cv_lib_bsd_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000011527fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011528rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011530LIBS=$ac_check_lib_save_LIBS
11531fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
11533$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011534if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011535 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000011536 LIBS="$LIBS -lbsd"
11537fi
11538
11539
11540fi
11541
Fred Drake8cef4cf2000-06-28 16:40:38 +000011542
11543fi
11544done
11545
Jack Jansendd19cf82001-12-06 22:36:17 +000011546
Christian Heimesb186d002008-03-18 15:15:01 +000011547# Stuff for expat.
Christian Heimesb186d002008-03-18 15:15:01 +000011548for ac_func in memmove
Matthias Kloseb9621712010-04-24 17:59:49 +000011549do :
11550 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
Victor Stinnere0be4232011-10-25 13:06:09 +020011551if test "x$ac_cv_func_memmove" = xyes; then :
Christian Heimesb186d002008-03-18 15:15:01 +000011552 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011553#define HAVE_MEMMOVE 1
Christian Heimesb186d002008-03-18 15:15:01 +000011554_ACEOF
11555
11556fi
11557done
11558
11559
Michael W. Hudson54241132001-12-07 15:38:26 +000011560# check for long file support functions
Fred Drake8cef4cf2000-06-28 16:40:38 +000011561for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
Matthias Kloseb9621712010-04-24 17:59:49 +000011562do :
11563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11564ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020011565if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000011566 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011567#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011568_ACEOF
Michael W. Hudson54241132001-12-07 15:38:26 +000011569
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011570fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000011571done
11572
Michael W. Hudson54241132001-12-07 15:38:26 +000011573
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020011574ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
Victor Stinnere0be4232011-10-25 13:06:09 +020011575if test "x$ac_cv_func_dup2" = xyes; then :
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020011576 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
Martin v. Löwis1142de32002-03-29 16:28:31 +000011577
Martin v. Löwis1142de32002-03-29 16:28:31 +000011578else
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011579 case " $LIBOBJS " in
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020011580 *" dup2.$ac_objext "* ) ;;
11581 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011582 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000011583esac
11584
Martin v. Löwis1142de32002-03-29 16:28:31 +000011585fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020011586
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020011587ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
Victor Stinnere0be4232011-10-25 13:06:09 +020011588if test "x$ac_cv_func_strdup" = xyes; then :
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020011589 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
11590
11591else
11592 case " $LIBOBJS " in
11593 *" strdup.$ac_objext "* ) ;;
11594 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
11595 ;;
11596esac
11597
11598fi
Martin v. Löwis1142de32002-03-29 16:28:31 +000011599
11600
11601for ac_func in getpgrp
Matthias Kloseb9621712010-04-24 17:59:49 +000011602do :
11603 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
Victor Stinnere0be4232011-10-25 13:06:09 +020011604if test "x$ac_cv_func_getpgrp" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000011605 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011606#define HAVE_GETPGRP 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011607_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011609/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011610#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000011611int
11612main ()
11613{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011614getpgrp(0);
Martin v. Löwis11437992002-04-12 09:54:03 +000011615 ;
11616 return 0;
11617}
11618_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011619if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000011620
Matthias Kloseb9621712010-04-24 17:59:49 +000011621$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:04 +000011622
Guido van Rossum627b2d71993-12-24 10:39:16 +000011623fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000011625
Guido van Rossum627b2d71993-12-24 10:39:16 +000011626fi
Thomas Wouters3a584202000-08-05 23:28:51 +000011627done
Guido van Rossum627b2d71993-12-24 10:39:16 +000011628
Jack Jansen150753c2003-03-29 22:07:47 +000011629for ac_func in setpgrp
Matthias Kloseb9621712010-04-24 17:59:49 +000011630do :
11631 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
Victor Stinnere0be4232011-10-25 13:06:09 +020011632if test "x$ac_cv_func_setpgrp" = xyes; then :
Jack Jansen150753c2003-03-29 22:07:47 +000011633 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011634#define HAVE_SETPGRP 1
Jack Jansen150753c2003-03-29 22:07:47 +000011635_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011637/* end confdefs.h. */
Jack Jansen150753c2003-03-29 22:07:47 +000011638#include <unistd.h>
Jack Jansen150753c2003-03-29 22:07:47 +000011639int
11640main ()
11641{
11642setpgrp(0,0);
11643 ;
11644 return 0;
11645}
11646_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011647if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000011648
Matthias Kloseb9621712010-04-24 17:59:49 +000011649$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:04 +000011650
Guido van Rossum8eee56f1994-10-20 22:18:37 +000011651fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jack Jansen150753c2003-03-29 22:07:47 +000011653
11654fi
11655done
Guido van Rossum8eee56f1994-10-20 22:18:37 +000011656
Thomas Wouters3a584202000-08-05 23:28:51 +000011657for ac_func in gettimeofday
Matthias Kloseb9621712010-04-24 17:59:49 +000011658do :
11659 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
Victor Stinnere0be4232011-10-25 13:06:09 +020011660if test "x$ac_cv_func_gettimeofday" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000011661 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011662#define HAVE_GETTIMEOFDAY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011663_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011665/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000011666#include <sys/time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000011667int
11668main ()
11669{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011670gettimeofday((struct timeval*)0,(struct timezone*)0);
Martin v. Löwis11437992002-04-12 09:54:03 +000011671 ;
11672 return 0;
11673}
11674_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011675if ac_fn_c_try_compile "$LINENO"; then :
11676
Guido van Rossum627b2d71993-12-24 10:39:16 +000011677else
Skip Montanaro6dead952003-09-25 14:50:04 +000011678
Matthias Kloseb9621712010-04-24 17:59:49 +000011679$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +000011680
Martin v. Löwis11437992002-04-12 09:54:03 +000011681
Guido van Rossum627b2d71993-12-24 10:39:16 +000011682fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000011684
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011685fi
Thomas Wouters3a584202000-08-05 23:28:51 +000011686done
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011687
Michael W. Hudson54241132001-12-07 15:38:26 +000011688
Victor Stinnere0be4232011-10-25 13:06:09 +020011689for ac_func in clock_gettime
11690do :
11691 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
11692if test "x$ac_cv_func_clock_gettime" = xyes; then :
11693 cat >>confdefs.h <<_ACEOF
11694#define HAVE_CLOCK_GETTIME 1
11695_ACEOF
11696
11697else
11698
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11700$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11701if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703else
11704 ac_check_lib_save_LIBS=$LIBS
11705LIBS="-lrt $LIBS"
11706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707/* end confdefs.h. */
11708
11709/* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11712#ifdef __cplusplus
11713extern "C"
11714#endif
11715char clock_gettime ();
11716int
11717main ()
11718{
11719return clock_gettime ();
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724if ac_fn_c_try_link "$LINENO"; then :
11725 ac_cv_lib_rt_clock_gettime=yes
11726else
11727 ac_cv_lib_rt_clock_gettime=no
11728fi
11729rm -f core conftest.err conftest.$ac_objext \
11730 conftest$ac_exeext conftest.$ac_ext
11731LIBS=$ac_check_lib_save_LIBS
11732fi
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11734$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11735if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11736
11737 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
11738
11739
11740$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h
11741
11742
11743fi
11744
11745
11746fi
11747done
11748
11749
11750for ac_func in clock_getres
11751do :
11752 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
11753if test "x$ac_cv_func_clock_getres" = xyes; then :
11754 cat >>confdefs.h <<_ACEOF
11755#define HAVE_CLOCK_GETRES 1
11756_ACEOF
11757
11758else
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
11761$as_echo_n "checking for clock_getres in -lrt... " >&6; }
11762if ${ac_cv_lib_rt_clock_getres+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764else
11765 ac_check_lib_save_LIBS=$LIBS
11766LIBS="-lrt $LIBS"
11767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768/* end confdefs.h. */
11769
11770/* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11773#ifdef __cplusplus
11774extern "C"
11775#endif
11776char clock_getres ();
11777int
11778main ()
11779{
11780return clock_getres ();
11781 ;
11782 return 0;
11783}
11784_ACEOF
11785if ac_fn_c_try_link "$LINENO"; then :
11786 ac_cv_lib_rt_clock_getres=yes
11787else
11788 ac_cv_lib_rt_clock_getres=no
11789fi
11790rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792LIBS=$ac_check_lib_save_LIBS
11793fi
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
11795$as_echo "$ac_cv_lib_rt_clock_getres" >&6; }
11796if test "x$ac_cv_lib_rt_clock_getres" = xyes; then :
11797
11798 $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
11799
11800
11801fi
11802
11803
11804fi
11805done
11806
11807
Matthias Kloseb9621712010-04-24 17:59:49 +000011808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
11809$as_echo_n "checking for major... " >&6; }
11810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011811/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000011812
Neal Norwitz6eb37f02003-02-23 23:28:15 +000011813#if defined(MAJOR_IN_MKDEV)
11814#include <sys/mkdev.h>
11815#elif defined(MAJOR_IN_SYSMACROS)
11816#include <sys/sysmacros.h>
11817#else
11818#include <sys/types.h>
11819#endif
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000011820
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000011821int
11822main ()
11823{
11824
11825 makedev(major(0),minor(0));
11826
11827 ;
11828 return 0;
11829}
11830_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011831if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000011832
11833
Matthias Kloseb9621712010-04-24 17:59:49 +000011834$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000011835
Matthias Kloseb9621712010-04-24 17:59:49 +000011836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837$as_echo "yes" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000011838
11839else
Skip Montanaro6dead952003-09-25 14:50:04 +000011840
Matthias Kloseb9621712010-04-24 17:59:49 +000011841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842$as_echo "no" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000011843
11844fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011845rm -f core conftest.err conftest.$ac_objext \
11846 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000011847
Martin v. Löwis861a65b2001-10-24 14:36:00 +000011848# On OSF/1 V5.1, getaddrinfo is available, but a define
Martin v. Löwis11437992002-04-12 09:54:03 +000011849# for [no]getaddrinfo in netdb.h.
Matthias Kloseb9621712010-04-24 17:59:49 +000011850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
11851$as_echo_n "checking for getaddrinfo... " >&6; }
11852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011853/* end confdefs.h. */
Martin v. Löwis861a65b2001-10-24 14:36:00 +000011854
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000011855#include <sys/types.h>
Martin v. Löwis861a65b2001-10-24 14:36:00 +000011856#include <sys/socket.h>
11857#include <netdb.h>
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000011858#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011859
Martin v. Löwis11437992002-04-12 09:54:03 +000011860int
11861main ()
11862{
Martin v. Löwis861a65b2001-10-24 14:36:00 +000011863getaddrinfo(NULL, NULL, NULL, NULL);
Martin v. Löwis11437992002-04-12 09:54:03 +000011864 ;
11865 return 0;
11866}
11867_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011868if ac_fn_c_try_link "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011869 have_getaddrinfo=yes
11870else
Matthias Kloseb9621712010-04-24 17:59:49 +000011871 have_getaddrinfo=no
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011872fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011873rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
11876$as_echo "$have_getaddrinfo" >&6; }
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011877if test $have_getaddrinfo = yes
11878then
Matthias Kloseb9621712010-04-24 17:59:49 +000011879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
11880$as_echo_n "checking getaddrinfo bug... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020011881 if ${ac_cv_buggy_getaddrinfo+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000011882 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011883else
Matthias Kloseb9621712010-04-24 17:59:49 +000011884 if test "$cross_compiling" = yes; then :
Matthias Klose96350132012-03-15 20:42:23 +010011885
11886if test "${enable_ipv6+set}" = set; then
11887 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
11888else
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011889 ac_cv_buggy_getaddrinfo=yes
Matthias Klose96350132012-03-15 20:42:23 +010011890fi
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011891else
Matthias Kloseb9621712010-04-24 17:59:49 +000011892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000011893/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011894
Stefan Krah19c21392012-11-22 23:47:32 +010011895#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011896#include <sys/types.h>
11897#include <netdb.h>
11898#include <string.h>
11899#include <sys/socket.h>
11900#include <netinet/in.h>
11901
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011902int main()
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011903{
11904 int passive, gaierr, inet4 = 0, inet6 = 0;
11905 struct addrinfo hints, *ai, *aitop;
11906 char straddr[INET6_ADDRSTRLEN], strport[16];
11907
11908 for (passive = 0; passive <= 1; passive++) {
11909 memset(&hints, 0, sizeof(hints));
11910 hints.ai_family = AF_UNSPEC;
11911 hints.ai_flags = passive ? AI_PASSIVE : 0;
11912 hints.ai_socktype = SOCK_STREAM;
Hye-Shik Chang54f94392004-04-14 07:55:31 +000011913 hints.ai_protocol = IPPROTO_TCP;
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011914 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
11915 (void)gai_strerror(gaierr);
11916 goto bad;
11917 }
11918 for (ai = aitop; ai; ai = ai->ai_next) {
11919 if (ai->ai_addr == NULL ||
11920 ai->ai_addrlen == 0 ||
11921 getnameinfo(ai->ai_addr, ai->ai_addrlen,
11922 straddr, sizeof(straddr), strport, sizeof(strport),
11923 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
11924 goto bad;
11925 }
11926 switch (ai->ai_family) {
11927 case AF_INET:
11928 if (strcmp(strport, "54321") != 0) {
11929 goto bad;
11930 }
11931 if (passive) {
11932 if (strcmp(straddr, "0.0.0.0") != 0) {
11933 goto bad;
11934 }
11935 } else {
11936 if (strcmp(straddr, "127.0.0.1") != 0) {
11937 goto bad;
11938 }
11939 }
11940 inet4++;
11941 break;
11942 case AF_INET6:
11943 if (strcmp(strport, "54321") != 0) {
11944 goto bad;
11945 }
11946 if (passive) {
11947 if (strcmp(straddr, "::") != 0) {
11948 goto bad;
11949 }
11950 } else {
11951 if (strcmp(straddr, "::1") != 0) {
11952 goto bad;
11953 }
11954 }
11955 inet6++;
11956 break;
11957 case AF_UNSPEC:
11958 goto bad;
11959 break;
11960 default:
11961 /* another family support? */
11962 break;
11963 }
11964 }
11965 }
11966
11967 if (!(inet4 == 0 || inet4 == 2))
11968 goto bad;
11969 if (!(inet6 == 0 || inet6 == 2))
11970 goto bad;
11971
11972 if (aitop)
11973 freeaddrinfo(aitop);
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011974 return 0;
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011975
11976 bad:
11977 if (aitop)
11978 freeaddrinfo(aitop);
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011979 return 1;
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011980}
11981
Martin v. Löwis11437992002-04-12 09:54:03 +000011982_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000011983if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011984 ac_cv_buggy_getaddrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011985else
Matthias Kloseb9621712010-04-24 17:59:49 +000011986 ac_cv_buggy_getaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011987fi
Matthias Kloseb9621712010-04-24 17:59:49 +000011988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11989 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011990fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011991
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000011992fi
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000011993
Martin v. Löwis861a65b2001-10-24 14:36:00 +000011994fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000011995
Benjamin Petersond4694ed2010-11-01 01:44:30 +000011996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
11997$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
11998
doko@ubuntu.com9c7817e2012-06-30 17:05:13 +020011999if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000012000then
12001 if test $ipv6 = yes
12002 then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012003 echo 'Fatal: You must get working getaddrinfo() function.'
12004 echo ' or you can specify "--disable-ipv6"'.
12005 exit 1
12006 fi
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012007else
Martin v. Löwis11437992002-04-12 09:54:03 +000012008
Matthias Kloseb9621712010-04-24 17:59:49 +000012009$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012010
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012011fi
Benjamin Petersond4694ed2010-11-01 01:44:30 +000012012
Jack Jansen9a66b6d2001-08-08 13:56:14 +000012013for ac_func in getnameinfo
Matthias Kloseb9621712010-04-24 17:59:49 +000012014do :
12015 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
Victor Stinnere0be4232011-10-25 13:06:09 +020012016if test "x$ac_cv_func_getnameinfo" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012017 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012018#define HAVE_GETNAMEINFO 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012019_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012020
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012021fi
12022done
12023
Michael W. Hudson54241132001-12-07 15:38:26 +000012024
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012025# checks for structures
Matthias Kloseb9621712010-04-24 17:59:49 +000012026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12027$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012028if ${ac_cv_header_time+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012029 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012030else
Matthias Kloseb9621712010-04-24 17:59:49 +000012031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012032/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012033#include <sys/types.h>
12034#include <sys/time.h>
12035#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012036
Martin v. Löwis11437992002-04-12 09:54:03 +000012037int
12038main ()
12039{
12040if ((struct tm *) 0)
12041return 0;
12042 ;
12043 return 0;
12044}
12045_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012046if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012047 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000012048else
Matthias Kloseb9621712010-04-24 17:59:49 +000012049 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000012050fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012052fi
Matthias Kloseb9621712010-04-24 17:59:49 +000012053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12054$as_echo "$ac_cv_header_time" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000012055if test $ac_cv_header_time = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012056
Matthias Kloseb9621712010-04-24 17:59:49 +000012057$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012058
12059fi
12060
Matthias Kloseb9621712010-04-24 17:59:49 +000012061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12062$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012063if ${ac_cv_struct_tm+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012064 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012065else
Matthias Kloseb9621712010-04-24 17:59:49 +000012066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012067/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012068#include <sys/types.h>
12069#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012070
Martin v. Löwis11437992002-04-12 09:54:03 +000012071int
12072main ()
12073{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012074struct tm tm;
12075 int *p = &tm.tm_sec;
Matthias Kloseb9621712010-04-24 17:59:49 +000012076 return !p;
Martin v. Löwis11437992002-04-12 09:54:03 +000012077 ;
12078 return 0;
12079}
12080_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012081if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012082 ac_cv_struct_tm=time.h
12083else
Matthias Kloseb9621712010-04-24 17:59:49 +000012084 ac_cv_struct_tm=sys/time.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012085fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012087fi
Matthias Kloseb9621712010-04-24 17:59:49 +000012088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12089$as_echo "$ac_cv_struct_tm" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000012090if test $ac_cv_struct_tm = sys/time.h; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012091
Matthias Kloseb9621712010-04-24 17:59:49 +000012092$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012093
12094fi
12095
Matthias Kloseb9621712010-04-24 17:59:49 +000012096ac_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:54 +000012097#include <$ac_cv_struct_tm>
Martin v. Löwis11437992002-04-12 09:54:03 +000012098
Matthias Kloseb9621712010-04-24 17:59:49 +000012099"
Victor Stinnere0be4232011-10-25 13:06:09 +020012100if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012101
12102cat >>confdefs.h <<_ACEOF
12103#define HAVE_STRUCT_TM_TM_ZONE 1
12104_ACEOF
12105
12106
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012107fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000012108
Martin v. Löwis11437992002-04-12 09:54:03 +000012109if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12110
Matthias Kloseb9621712010-04-24 17:59:49 +000012111$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012112
12113else
Matthias Kloseb9621712010-04-24 17:59:49 +000012114 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12115"
Victor Stinnere0be4232011-10-25 13:06:09 +020012116if test "x$ac_cv_have_decl_tzname" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012117 ac_have_decl=1
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012118else
Matthias Kloseb9621712010-04-24 17:59:49 +000012119 ac_have_decl=0
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012120fi
12121
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012122cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012123#define HAVE_DECL_TZNAME $ac_have_decl
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012124_ACEOF
12125
Matthias Kloseb9621712010-04-24 17:59:49 +000012126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12127$as_echo_n "checking for tzname... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012128if ${ac_cv_var_tzname+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012129 $as_echo_n "(cached) " >&6
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012130else
Matthias Kloseb9621712010-04-24 17:59:49 +000012131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012132/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000012133#include <time.h>
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012134#if !HAVE_DECL_TZNAME
12135extern char *tzname[];
Guido van Rossum627b2d71993-12-24 10:39:16 +000012136#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000012137
Martin v. Löwis11437992002-04-12 09:54:03 +000012138int
12139main ()
12140{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012141return tzname[0][0];
Martin v. Löwis11437992002-04-12 09:54:03 +000012142 ;
12143 return 0;
12144}
12145_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012146if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012147 ac_cv_var_tzname=yes
12148else
Matthias Kloseb9621712010-04-24 17:59:49 +000012149 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000012150fi
Matthias Kloseb9621712010-04-24 17:59:49 +000012151rm -f core conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
Guido van Rossum627b2d71993-12-24 10:39:16 +000012153fi
Matthias Kloseb9621712010-04-24 17:59:49 +000012154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12155$as_echo "$ac_cv_var_tzname" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000012156 if test $ac_cv_var_tzname = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012157
Matthias Kloseb9621712010-04-24 17:59:49 +000012158$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +000012159
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012160 fi
12161fi
12162
Matthias Kloseb9621712010-04-24 17:59:49 +000012163ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +020012164if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012165
12166cat >>confdefs.h <<_ACEOF
12167#define HAVE_STRUCT_STAT_ST_RDEV 1
12168_ACEOF
12169
12170
Guido van Rossum98bf58f2001-10-18 20:34:25 +000012171fi
12172
Matthias Kloseb9621712010-04-24 17:59:49 +000012173ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +020012174if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:17 +000012175
Martin v. Löwis11437992002-04-12 09:54:03 +000012176cat >>confdefs.h <<_ACEOF
12177#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12178_ACEOF
12179
12180
Guido van Rossum98bf58f2001-10-18 20:34:25 +000012181fi
12182
Matthias Kloseb9621712010-04-24 17:59:49 +000012183ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +020012184if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000012185
12186cat >>confdefs.h <<_ACEOF
12187#define HAVE_STRUCT_STAT_ST_FLAGS 1
12188_ACEOF
12189
12190
12191fi
12192
Matthias Kloseb9621712010-04-24 17:59:49 +000012193ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +020012194if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000012195
12196cat >>confdefs.h <<_ACEOF
12197#define HAVE_STRUCT_STAT_ST_GEN 1
12198_ACEOF
12199
12200
12201fi
12202
Matthias Kloseb9621712010-04-24 17:59:49 +000012203ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +020012204if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000012205
12206cat >>confdefs.h <<_ACEOF
12207#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
12208_ACEOF
12209
12210
12211fi
12212
Matthias Kloseb9621712010-04-24 17:59:49 +000012213ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +020012214if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:17 +000012215
Martin v. Löwis11437992002-04-12 09:54:03 +000012216cat >>confdefs.h <<_ACEOF
12217#define HAVE_STRUCT_STAT_ST_BLOCKS 1
12218_ACEOF
12219
12220
Matthias Kloseb9621712010-04-24 17:59:49 +000012221$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
Guido van Rossum98bf58f2001-10-18 20:34:25 +000012222
12223else
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012224 case " $LIBOBJS " in
Skip Montanarof0d5f792004-08-15 14:08:23 +000012225 *" fileblocks.$ac_objext "* ) ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012226 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12227 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000012228esac
12229
Guido van Rossum98bf58f2001-10-18 20:34:25 +000012230fi
12231
Michael W. Hudson54241132001-12-07 15:38:26 +000012232
Martin v. Löwis11437992002-04-12 09:54:03 +000012233
Matthias Kloseb9621712010-04-24 17:59:49 +000012234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
12235$as_echo_n "checking for time.h that defines altzone... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012236if ${ac_cv_header_time_altzone+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012237 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012238else
Matthias Kloseb159a552010-04-25 21:00:44 +000012239
Matthias Kloseb9621712010-04-24 17:59:49 +000012240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012241/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000012242#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012243int
12244main ()
12245{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012246return altzone;
Martin v. Löwis11437992002-04-12 09:54:03 +000012247 ;
12248 return 0;
12249}
12250_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012251if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012252 ac_cv_header_time_altzone=yes
12253else
Matthias Kloseb9621712010-04-24 17:59:49 +000012254 ac_cv_header_time_altzone=no
Guido van Rossum7f43da71994-08-01 12:15:30 +000012255fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb159a552010-04-25 21:00:44 +000012257
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012258fi
12259
Matthias Kloseb9621712010-04-24 17:59:49 +000012260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
12261$as_echo "$ac_cv_header_time_altzone" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012262if test $ac_cv_header_time_altzone = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012263
Matthias Kloseb9621712010-04-24 17:59:49 +000012264$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012265
12266fi
12267
Guido van Rossumda88dad1995-01-26 00:46:29 +000012268was_it_defined=no
Matthias Kloseb9621712010-04-24 17:59:49 +000012269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12270$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012272/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000012273
12274#include <sys/types.h>
12275#include <sys/select.h>
12276#include <sys/time.h>
12277
Martin v. Löwis11437992002-04-12 09:54:03 +000012278int
12279main ()
12280{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012281;
Martin v. Löwis11437992002-04-12 09:54:03 +000012282 ;
12283 return 0;
12284}
12285_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012286if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012287
12288
Matthias Kloseb9621712010-04-24 17:59:49 +000012289$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +000012290
Martin v. Löwisc45929e2002-04-06 10:10:49 +000012291 was_it_defined=yes
12292
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012293fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000012295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
12296$as_echo "$was_it_defined" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012297
Matthias Kloseb9621712010-04-24 17:59:49 +000012298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
12299$as_echo_n "checking for addrinfo... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012300if ${ac_cv_struct_addrinfo+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012301 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012302else
Matthias Kloseb9621712010-04-24 17:59:49 +000012303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012304/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:44 +000012305#include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012306int
12307main ()
12308{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012309struct addrinfo a
Martin v. Löwis11437992002-04-12 09:54:03 +000012310 ;
12311 return 0;
12312}
12313_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012314if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012315 ac_cv_struct_addrinfo=yes
12316else
Matthias Kloseb9621712010-04-24 17:59:49 +000012317 ac_cv_struct_addrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012318fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320fi
12321
Matthias Kloseb9621712010-04-24 17:59:49 +000012322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
12323$as_echo "$ac_cv_struct_addrinfo" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012324if test $ac_cv_struct_addrinfo = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012325
Matthias Kloseb9621712010-04-24 17:59:49 +000012326$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012327
12328fi
12329
Matthias Kloseb9621712010-04-24 17:59:49 +000012330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
12331$as_echo_n "checking for sockaddr_storage... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012332if ${ac_cv_struct_sockaddr_storage+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012333 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012334else
Matthias Kloseb9621712010-04-24 17:59:49 +000012335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012336/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012337
12338# include <sys/types.h>
12339# include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012340int
12341main ()
12342{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012343struct sockaddr_storage s
Martin v. Löwis11437992002-04-12 09:54:03 +000012344 ;
12345 return 0;
12346}
12347_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012348if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012349 ac_cv_struct_sockaddr_storage=yes
12350else
Matthias Kloseb9621712010-04-24 17:59:49 +000012351 ac_cv_struct_sockaddr_storage=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012352fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354fi
12355
Matthias Kloseb9621712010-04-24 17:59:49 +000012356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
12357$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012358if test $ac_cv_struct_sockaddr_storage = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012359
Matthias Kloseb9621712010-04-24 17:59:49 +000012360$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012361
12362fi
12363
Guido van Rossum627b2d71993-12-24 10:39:16 +000012364# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:30 +000012365
Matthias Kloseb9621712010-04-24 17:59:49 +000012366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
12367$as_echo_n "checking whether char is unsigned... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012368if ${ac_cv_c_char_unsigned+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012369 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:17 +000012370else
Matthias Kloseb9621712010-04-24 17:59:49 +000012371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012372/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012373$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000012374int
12375main ()
12376{
12377static int test_array [1 - 2 * !(((char) -1) < 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000012378test_array [0] = 0;
12379return test_array [0];
Martin v. Löwis11437992002-04-12 09:54:03 +000012380
12381 ;
12382 return 0;
Michael W. Hudson54241132001-12-07 15:38:26 +000012383}
Martin v. Löwis11437992002-04-12 09:54:03 +000012384_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012385if ac_fn_c_try_compile "$LINENO"; then :
Michael W. Hudson54241132001-12-07 15:38:26 +000012386 ac_cv_c_char_unsigned=no
Martin v. Löwis11437992002-04-12 09:54:03 +000012387else
Matthias Kloseb9621712010-04-24 17:59:49 +000012388 ac_cv_c_char_unsigned=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012389fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000012391fi
Matthias Kloseb9621712010-04-24 17:59:49 +000012392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
12393$as_echo "$ac_cv_c_char_unsigned" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012394if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
Matthias Kloseb9621712010-04-24 17:59:49 +000012395 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012396
12397fi
Guido van Rossum7f43da71994-08-01 12:15:30 +000012398
Matthias Kloseb9621712010-04-24 17:59:49 +000012399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12400$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012401if ${ac_cv_c_const+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012402 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000012403else
Matthias Kloseb9621712010-04-24 17:59:49 +000012404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012405/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012406
Martin v. Löwis11437992002-04-12 09:54:03 +000012407int
12408main ()
12409{
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000012410
Martin v. Löwis11437992002-04-12 09:54:03 +000012411#ifndef __cplusplus
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000012412 /* Ultrix mips cc rejects this sort of thing. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012413 typedef int charset[2];
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000012414 const charset cs = { 0, 0 };
Martin v. Löwis11437992002-04-12 09:54:03 +000012415 /* SunOS 4.1.1 cc rejects this. */
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012416 char const *const *pcpcc;
12417 char **ppc;
Martin v. Löwis11437992002-04-12 09:54:03 +000012418 /* NEC SVR4.0.2 mips cc rejects this. */
12419 struct point {int x, y;};
12420 static struct point const zero = {0,0};
12421 /* AIX XL C 1.02.0.0 rejects this.
12422 It does not let you subtract one const X* pointer from another in
12423 an arm of an if-expression whose if-part is not a constant
12424 expression */
12425 const char *g = "string";
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012426 pcpcc = &g + (g ? g-g : 0);
Martin v. Löwis11437992002-04-12 09:54:03 +000012427 /* HPUX 7.0 cc rejects these. */
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012428 ++pcpcc;
12429 ppc = (char**) pcpcc;
12430 pcpcc = (char const *const *) ppc;
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000012431 { /* SCO 3.2v4 cc rejects this sort of thing. */
12432 char tx;
12433 char *t = &tx;
Martin v. Löwis11437992002-04-12 09:54:03 +000012434 char const *s = 0 ? (char *) 0 : (char const *) 0;
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012435
Martin v. Löwis11437992002-04-12 09:54:03 +000012436 *t++ = 0;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012437 if (s) return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012438 }
12439 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12440 int x[] = {25, 17};
12441 const int *foo = &x[0];
12442 ++foo;
12443 }
12444 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12445 typedef const int *iptr;
12446 iptr p = 0;
12447 ++p;
12448 }
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000012449 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Martin v. Löwis11437992002-04-12 09:54:03 +000012450 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000012451 struct s { int j; const int *ap[3]; } bx;
12452 struct s *b = &bx; b->j = 5;
Martin v. Löwis11437992002-04-12 09:54:03 +000012453 }
12454 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12455 const int foo = 10;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012456 if (!foo) return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012457 }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012458 return !cs[0] && !zero.x;
Martin v. Löwis11437992002-04-12 09:54:03 +000012459#endif
Guido van Rossum627b2d71993-12-24 10:39:16 +000012460
Martin v. Löwis11437992002-04-12 09:54:03 +000012461 ;
12462 return 0;
Guido van Rossum627b2d71993-12-24 10:39:16 +000012463}
Martin v. Löwis11437992002-04-12 09:54:03 +000012464_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012465if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012466 ac_cv_c_const=yes
12467else
Matthias Kloseb9621712010-04-24 17:59:49 +000012468 ac_cv_c_const=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012469fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012471fi
Matthias Kloseb9621712010-04-24 17:59:49 +000012472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12473$as_echo "$ac_cv_c_const" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012474if test $ac_cv_c_const = no; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012475
Matthias Kloseb9621712010-04-24 17:59:49 +000012476$as_echo "#define const /**/" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012477
12478fi
12479
Michael W. Hudson54241132001-12-07 15:38:26 +000012480
Guido van Rossumda88dad1995-01-26 00:46:29 +000012481works=no
Matthias Kloseb9621712010-04-24 17:59:49 +000012482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12483$as_echo_n "checking for working volatile... " >&6; }
12484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012485/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000012486
Martin v. Löwis11437992002-04-12 09:54:03 +000012487int
12488main ()
12489{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012490volatile int x; x = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012491 ;
12492 return 0;
12493}
12494_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012495if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumda88dad1995-01-26 00:46:29 +000012496 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000012497else
Skip Montanaro6dead952003-09-25 14:50:04 +000012498
Matthias Kloseb9621712010-04-24 17:59:49 +000012499$as_echo "#define volatile /**/" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +000012500
Martin v. Löwisc45929e2002-04-06 10:10:49 +000012501
Guido van Rossum627b2d71993-12-24 10:39:16 +000012502fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000012504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12505$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000012506
Guido van Rossumda88dad1995-01-26 00:46:29 +000012507works=no
Matthias Kloseb9621712010-04-24 17:59:49 +000012508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
12509$as_echo_n "checking for working signed char... " >&6; }
12510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012511/* end confdefs.h. */
Guido van Rossumdabb11b1994-10-11 15:04:27 +000012512
Martin v. Löwis11437992002-04-12 09:54:03 +000012513int
12514main ()
12515{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012516signed char c;
Martin v. Löwis11437992002-04-12 09:54:03 +000012517 ;
12518 return 0;
12519}
12520_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012521if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumda88dad1995-01-26 00:46:29 +000012522 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:27 +000012523else
Skip Montanaro6dead952003-09-25 14:50:04 +000012524
Matthias Kloseb9621712010-04-24 17:59:49 +000012525$as_echo "#define signed /**/" >>confdefs.h
Guido van Rossum7f43da71994-08-01 12:15:30 +000012526
Martin v. Löwisc45929e2002-04-06 10:10:49 +000012527
Guido van Rossum7f43da71994-08-01 12:15:30 +000012528fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000012530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12531$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000012532
Guido van Rossumda88dad1995-01-26 00:46:29 +000012533have_prototypes=no
Matthias Kloseb9621712010-04-24 17:59:49 +000012534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
12535$as_echo_n "checking for prototypes... " >&6; }
12536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012537/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000012538int foo(int x) { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012539int
12540main ()
12541{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012542return foo(10);
Martin v. Löwis11437992002-04-12 09:54:03 +000012543 ;
12544 return 0;
12545}
12546_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012547if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012548
Matthias Kloseb9621712010-04-24 17:59:49 +000012549$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +000012550
Matthias Kloseb159a552010-04-25 21:00:44 +000012551 have_prototypes=yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000012552fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000012554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
12555$as_echo "$have_prototypes" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012556
Guido van Rossumda88dad1995-01-26 00:46:29 +000012557works=no
Matthias Kloseb9621712010-04-24 17:59:49 +000012558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
12559$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
12560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012561/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000012562
12563#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:57 +000012564int foo(int x, ...) {
12565 va_list va;
12566 va_start(va, x);
12567 va_arg(va, int);
12568 va_arg(va, char *);
12569 va_arg(va, double);
12570 return 0;
12571}
Guido van Rossum7f43da71994-08-01 12:15:30 +000012572
Martin v. Löwis11437992002-04-12 09:54:03 +000012573int
12574main ()
12575{
Guido van Rossum90eea071996-08-30 20:58:57 +000012576return foo(10, "", 3.14);
Martin v. Löwis11437992002-04-12 09:54:03 +000012577 ;
12578 return 0;
12579}
12580_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012581if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012582
12583
Matthias Kloseb9621712010-04-24 17:59:49 +000012584$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +000012585
Martin v. Löwisc45929e2002-04-06 10:10:49 +000012586 works=yes
12587
Guido van Rossum627b2d71993-12-24 10:39:16 +000012588fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000012590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12591$as_echo "$works" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012592
Martin v. Löwisd6320502004-08-12 13:45:08 +000012593# check for socketpair
Matthias Kloseb9621712010-04-24 17:59:49 +000012594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
12595$as_echo_n "checking for socketpair... " >&6; }
12596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:08 +000012597/* end confdefs.h. */
12598
12599#include <sys/types.h>
12600#include <sys/socket.h>
12601
12602int
12603main ()
12604{
12605void *x=socketpair
12606 ;
12607 return 0;
12608}
12609_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012610if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd6320502004-08-12 13:45:08 +000012611
Matthias Kloseb9621712010-04-24 17:59:49 +000012612$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
Martin v. Löwisd6320502004-08-12 13:45:08 +000012613
Matthias Kloseb159a552010-04-25 21:00:44 +000012614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000012615$as_echo "yes" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000012616else
Matthias Kloseb9621712010-04-24 17:59:49 +000012617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000012619
12620fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:08 +000012622
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012623# check if sockaddr has sa_len member
Matthias Kloseb9621712010-04-24 17:59:49 +000012624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
12625$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
12626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012627/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012628#include <sys/types.h>
12629#include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012630int
12631main ()
12632{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012633struct sockaddr x;
12634x.sa_len = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012635 ;
12636 return 0;
12637}
12638_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012639if ac_fn_c_try_compile "$LINENO"; then :
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12641$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012642
Matthias Kloseb9621712010-04-24 17:59:49 +000012643$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012644
12645else
Matthias Kloseb9621712010-04-24 17:59:49 +000012646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:44 +000012648
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012649fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012651
Guido van Rossumda88dad1995-01-26 00:46:29 +000012652va_list_is_array=no
Matthias Kloseb9621712010-04-24 17:59:49 +000012653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
12654$as_echo_n "checking whether va_list is an array... " >&6; }
12655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012656/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012657
12658#ifdef HAVE_STDARG_PROTOTYPES
12659#include <stdarg.h>
12660#else
12661#include <varargs.h>
12662#endif
12663
Martin v. Löwis11437992002-04-12 09:54:03 +000012664int
12665main ()
12666{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012667va_list list1, list2; list1 = list2;
Martin v. Löwis11437992002-04-12 09:54:03 +000012668 ;
12669 return 0;
12670}
12671_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012672if ac_fn_c_try_compile "$LINENO"; then :
12673
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012674else
Skip Montanaro6dead952003-09-25 14:50:04 +000012675
Martin v. Löwis11437992002-04-12 09:54:03 +000012676
Matthias Kloseb9621712010-04-24 17:59:49 +000012677$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +000012678
Guido van Rossumda88dad1995-01-26 00:46:29 +000012679 va_list_is_array=yes
Martin v. Löwisc45929e2002-04-06 10:10:49 +000012680
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012681fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000012683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
12684$as_echo "$va_list_is_array" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012685
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012686# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
Martin v. Löwis11437992002-04-12 09:54:03 +000012687
12688
Matthias Kloseb9621712010-04-24 17:59:49 +000012689ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
Victor Stinnere0be4232011-10-25 13:06:09 +020012690if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012691
Matthias Kloseb9621712010-04-24 17:59:49 +000012692 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000012693
Matthias Kloseb9621712010-04-24 17:59:49 +000012694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
12695$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012696 OLD_CFLAGS=$CFLAGS
12697 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
Matthias Kloseb9621712010-04-24 17:59:49 +000012698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012699/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012700
12701# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012702
Martin v. Löwis11437992002-04-12 09:54:03 +000012703int
12704main ()
12705{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012706
12707 char *name;
12708 struct hostent *he, *res;
12709 char buffer[2048];
12710 int buflen = 2048;
12711 int h_errnop;
12712
12713 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000012714
12715 ;
12716 return 0;
12717}
12718_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012719if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012720
Matthias Kloseb9621712010-04-24 17:59:49 +000012721 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000012722
Martin v. Löwis11437992002-04-12 09:54:03 +000012723
Matthias Kloseb9621712010-04-24 17:59:49 +000012724$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012725
Matthias Kloseb9621712010-04-24 17:59:49 +000012726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012728
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012729else
Skip Montanaro6dead952003-09-25 14:50:04 +000012730
Matthias Kloseb9621712010-04-24 17:59:49 +000012731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732$as_echo "no" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
12734$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012736/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012737
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012738# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012739
Martin v. Löwis11437992002-04-12 09:54:03 +000012740int
12741main ()
12742{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012743
12744 char *name;
12745 struct hostent *he;
Matthias Kloseb159a552010-04-25 21:00:44 +000012746 char buffer[2048];
12747 int buflen = 2048;
12748 int h_errnop;
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012749
Matthias Kloseb159a552010-04-25 21:00:44 +000012750 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000012751
12752 ;
12753 return 0;
12754}
12755_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012756if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012757
Matthias Kloseb9621712010-04-24 17:59:49 +000012758 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000012759
Martin v. Löwis11437992002-04-12 09:54:03 +000012760
Matthias Kloseb159a552010-04-25 21:00:44 +000012761$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012762
Matthias Kloseb9621712010-04-24 17:59:49 +000012763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12764$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012765
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012766else
Skip Montanaro6dead952003-09-25 14:50:04 +000012767
Matthias Kloseb9621712010-04-24 17:59:49 +000012768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:44 +000012770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
12771$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773/* end confdefs.h. */
12774
12775# include <netdb.h>
12776
12777int
12778main ()
12779{
12780
12781 char *name;
12782 struct hostent *he;
12783 struct hostent_data data;
12784
12785 (void) gethostbyname_r(name, he, &data);
12786
12787 ;
12788 return 0;
12789}
12790_ACEOF
12791if ac_fn_c_try_compile "$LINENO"; then :
12792
12793 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12794
12795
12796$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
12797
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12799$as_echo "yes" >&6; }
12800
12801else
12802
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012805
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012806fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012808
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012809fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012811
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012812fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012814 CFLAGS=$OLD_CFLAGS
12815
12816else
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012817
Matthias Kloseb9621712010-04-24 17:59:49 +000012818 for ac_func in gethostbyname
12819do :
12820 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Victor Stinnere0be4232011-10-25 13:06:09 +020012821if test "x$ac_cv_func_gethostbyname" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012822 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012823#define HAVE_GETHOSTBYNAME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012824_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012825
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012826fi
Thomas Wouters3a584202000-08-05 23:28:51 +000012827done
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012828
Michael W. Hudson54241132001-12-07 15:38:26 +000012829
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000012830fi
12831
Michael W. Hudson54241132001-12-07 15:38:26 +000012832
12833
12834
12835
12836
12837
Guido van Rossum627b2d71993-12-24 10:39:16 +000012838# checks for system services
12839# (none yet)
12840
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012841# Linux requires this for correct f.p. operations
Matthias Kloseb9621712010-04-24 17:59:49 +000012842ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
Victor Stinnere0be4232011-10-25 13:06:09 +020012843if test "x$ac_cv_func___fpu_control" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012844
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000012845else
Matthias Kloseb9621712010-04-24 17:59:49 +000012846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
12847$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012848if ${ac_cv_lib_ieee___fpu_control+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000012849 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012850else
Martin v. Löwis11437992002-04-12 09:54:03 +000012851 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000012852LIBS="-lieee $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000012853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000012854/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012855
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012856/* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012859#ifdef __cplusplus
12860extern "C"
12861#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000012862char __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000012863int
12864main ()
12865{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012866return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000012867 ;
12868 return 0;
12869}
12870_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000012871if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012872 ac_cv_lib_ieee___fpu_control=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000012873else
Matthias Kloseb9621712010-04-24 17:59:49 +000012874 ac_cv_lib_ieee___fpu_control=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000012875fi
Matthias Kloseb9621712010-04-24 17:59:49 +000012876rm -f core conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012878LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012879fi
Matthias Kloseb9621712010-04-24 17:59:49 +000012880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
12881$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020012882if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000012883 cat >>confdefs.h <<_ACEOF
12884#define HAVE_LIBIEEE 1
12885_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012886
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000012887 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012888
Guido van Rossum627b2d71993-12-24 10:39:16 +000012889fi
12890
Michael W. Hudson54241132001-12-07 15:38:26 +000012891
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000012892fi
12893
Michael W. Hudson54241132001-12-07 15:38:26 +000012894
Guido van Rossum7f253911997-05-09 02:42:48 +000012895# Check for --with-fpectl
Matthias Kloseb9621712010-04-24 17:59:49 +000012896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
12897$as_echo_n "checking for --with-fpectl... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012898
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012899# Check whether --with-fpectl was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000012900if test "${with_fpectl+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012901 withval=$with_fpectl;
Guido van Rossum7f253911997-05-09 02:42:48 +000012902if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +000012903then
12904
Matthias Kloseb9621712010-04-24 17:59:49 +000012905$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +000012906
Matthias Kloseb9621712010-04-24 17:59:49 +000012907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908$as_echo "yes" >&6; }
12909else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910$as_echo "no" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000012911fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000012912else
Matthias Kloseb9621712010-04-24 17:59:49 +000012913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914$as_echo "no" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012915fi
12916
Guido van Rossum7f253911997-05-09 02:42:48 +000012917
Guido van Rossum7f43da71994-08-01 12:15:30 +000012918# check for --with-libm=...
12919
Guido van Rossum563e7081996-09-10 18:20:48 +000012920case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:06 +000012921Darwin) ;;
Guido van Rossum563e7081996-09-10 18:20:48 +000012922*) LIBM=-lm
12923esac
Matthias Kloseb9621712010-04-24 17:59:49 +000012924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
12925$as_echo_n "checking for --with-libm=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012926
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012927# Check whether --with-libm was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000012928if test "${with_libm+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012929 withval=$with_libm;
Guido van Rossum7f253911997-05-09 02:42:48 +000012930if test "$withval" = no
12931then LIBM=
Matthias Kloseb9621712010-04-24 17:59:49 +000012932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
12933$as_echo "force LIBM empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000012934elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000012935then LIBM=$withval
Matthias Kloseb9621712010-04-24 17:59:49 +000012936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
12937$as_echo "set LIBM=\"$withval\"" >&6; }
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020012938else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:30 +000012939fi
Guido van Rossum7f253911997-05-09 02:42:48 +000012940else
Matthias Kloseb9621712010-04-24 17:59:49 +000012941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
12942$as_echo "default LIBM=\"$LIBM\"" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012943fi
12944
Guido van Rossum7f43da71994-08-01 12:15:30 +000012945
12946# check for --with-libc=...
12947
Matthias Kloseb9621712010-04-24 17:59:49 +000012948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
12949$as_echo_n "checking for --with-libc=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012950
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012951# Check whether --with-libc was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000012952if test "${with_libc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012953 withval=$with_libc;
Guido van Rossum7f253911997-05-09 02:42:48 +000012954if test "$withval" = no
12955then LIBC=
Matthias Kloseb9621712010-04-24 17:59:49 +000012956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
12957$as_echo "force LIBC empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000012958elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000012959then LIBC=$withval
Matthias Kloseb9621712010-04-24 17:59:49 +000012960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
12961$as_echo "set LIBC=\"$withval\"" >&6; }
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020012962else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:30 +000012963fi
Guido van Rossum7f253911997-05-09 02:42:48 +000012964else
Matthias Kloseb9621712010-04-24 17:59:49 +000012965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
12966$as_echo "default LIBC=\"$LIBC\"" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000012967fi
12968
Guido van Rossum7f43da71994-08-01 12:15:30 +000012969
Stefan Krah1919b7e2012-03-21 18:25:23 +010012970# **************************************
12971# * Check for gcc x64 inline assembler *
12972# **************************************
12973
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
12975$as_echo_n "checking for x64 gcc inline assembler... " >&6; }
12976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h. */
12978
12979int
12980main ()
12981{
12982
12983 __asm__ __volatile__ ("movq %rcx, %rax");
12984
12985 ;
12986 return 0;
12987}
12988_ACEOF
12989if ac_fn_c_try_compile "$LINENO"; then :
12990 have_gcc_asm_for_x64=yes
12991else
12992 have_gcc_asm_for_x64=no
12993fi
12994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
12996$as_echo "$have_gcc_asm_for_x64" >&6; }
12997if test "$have_gcc_asm_for_x64" = yes
12998then
12999
13000$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
13001
13002fi
13003
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013004# **************************************************
13005# * Check for various properties of floating point *
13006# **************************************************
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013007
Matthias Kloseb9621712010-04-24 17:59:49 +000013008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
13009$as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013010if ${ac_cv_little_endian_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013011 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013012else
13013
Matthias Kloseb9621712010-04-24 17:59:49 +000013014if test "$cross_compiling" = yes; then :
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013015 ac_cv_little_endian_double=no
13016else
Matthias Kloseb9621712010-04-24 17:59:49 +000013017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013018/* end confdefs.h. */
13019
13020#include <string.h>
13021int main() {
13022 double x = 9006104071832581.0;
13023 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
13024 return 0;
13025 else
13026 return 1;
13027}
13028
13029_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013030if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013031 ac_cv_little_endian_double=yes
13032else
Matthias Kloseb9621712010-04-24 17:59:49 +000013033 ac_cv_little_endian_double=no
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013034fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13036 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013037fi
13038
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013039fi
13040
Matthias Kloseb9621712010-04-24 17:59:49 +000013041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
13042$as_echo "$ac_cv_little_endian_double" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013043if test "$ac_cv_little_endian_double" = yes
13044then
13045
Matthias Kloseb9621712010-04-24 17:59:49 +000013046$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013047
13048fi
13049
Matthias Kloseb9621712010-04-24 17:59:49 +000013050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
13051$as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013052if ${ac_cv_big_endian_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013053 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013054else
13055
Matthias Kloseb9621712010-04-24 17:59:49 +000013056if test "$cross_compiling" = yes; then :
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013057 ac_cv_big_endian_double=no
13058else
Matthias Kloseb9621712010-04-24 17:59:49 +000013059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013060/* end confdefs.h. */
13061
13062#include <string.h>
13063int main() {
13064 double x = 9006104071832581.0;
13065 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
13066 return 0;
13067 else
13068 return 1;
13069}
13070
13071_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013072if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013073 ac_cv_big_endian_double=yes
13074else
Matthias Kloseb9621712010-04-24 17:59:49 +000013075 ac_cv_big_endian_double=no
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013076fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13078 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013079fi
13080
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013081fi
13082
Matthias Kloseb9621712010-04-24 17:59:49 +000013083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
13084$as_echo "$ac_cv_big_endian_double" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013085if test "$ac_cv_big_endian_double" = yes
13086then
13087
Matthias Kloseb9621712010-04-24 17:59:49 +000013088$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013089
13090fi
13091
13092# Some ARM platforms use a mixed-endian representation for doubles.
13093# While Python doesn't currently have full support for these platforms
13094# (see e.g., issue 1762561), we can at least make sure that float <-> string
13095# conversions work.
Matthias Kloseb9621712010-04-24 17:59:49 +000013096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
13097$as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013098if ${ac_cv_mixed_endian_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013099 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013100else
13101
Matthias Kloseb9621712010-04-24 17:59:49 +000013102if test "$cross_compiling" = yes; then :
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013103 ac_cv_mixed_endian_double=no
13104else
Matthias Kloseb9621712010-04-24 17:59:49 +000013105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013106/* end confdefs.h. */
13107
13108#include <string.h>
13109int main() {
13110 double x = 9006104071832581.0;
13111 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
13112 return 0;
13113 else
13114 return 1;
13115}
13116
13117_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013118if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013119 ac_cv_mixed_endian_double=yes
13120else
Matthias Kloseb9621712010-04-24 17:59:49 +000013121 ac_cv_mixed_endian_double=no
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013122fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13124 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013125fi
13126
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013127fi
13128
Matthias Kloseb9621712010-04-24 17:59:49 +000013129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
13130$as_echo "$ac_cv_mixed_endian_double" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013131if test "$ac_cv_mixed_endian_double" = yes
13132then
13133
Matthias Kloseb9621712010-04-24 17:59:49 +000013134$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013135
13136fi
13137
Mark Dickinson7abf8d42009-04-18 20:17:52 +000013138# The short float repr introduced in Python 3.1 requires the
Mark Dickinson10683072009-04-18 21:18:19 +000013139# correctly-rounded string <-> double conversion functions from
Mark Dickinson7abf8d42009-04-18 20:17:52 +000013140# Python/dtoa.c, which in turn require that the FPU uses 53-bit
Mark Dickinson10683072009-04-18 21:18:19 +000013141# rounding; this is a problem on x86, where the x87 FPU has a default
Mark Dickinsonf4243f62009-11-15 13:47:27 +000013142# rounding precision of 64 bits. For gcc/x86, we can fix this by
Mark Dickinson10683072009-04-18 21:18:19 +000013143# using inline assembler to get and set the x87 FPU control word.
Mark Dickinsonf4243f62009-11-15 13:47:27 +000013144
13145# This inline assembler syntax may also work for suncc and icc,
13146# so we try it on all platforms.
13147
Matthias Kloseb9621712010-04-24 17:59:49 +000013148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
13149$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
13150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013151/* end confdefs.h. */
13152
13153int
13154main ()
13155{
13156
Mark Dickinsonf4243f62009-11-15 13:47:27 +000013157 unsigned short cw;
13158 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
13159 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013160
13161 ;
13162 return 0;
13163}
13164_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013165if ac_fn_c_try_compile "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013166 have_gcc_asm_for_x87=yes
13167else
Matthias Kloseb9621712010-04-24 17:59:49 +000013168 have_gcc_asm_for_x87=no
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013169fi
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000013171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
13172$as_echo "$have_gcc_asm_for_x87" >&6; }
Mark Dickinsonf4243f62009-11-15 13:47:27 +000013173if test "$have_gcc_asm_for_x87" = yes
13174then
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013175
Matthias Kloseb9621712010-04-24 17:59:49 +000013176$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013177
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013178fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013179
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013180# Detect whether system arithmetic is subject to x87-style double
13181# rounding issues. The result of this test has little meaning on non
13182# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
13183# mode is round-to-nearest and double rounding issues are present, and
13184# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
Matthias Kloseb9621712010-04-24 17:59:49 +000013185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
13186$as_echo_n "checking for x87-style double rounding... " >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013187# $BASECFLAGS may affect the result
13188ac_save_cc="$CC"
13189CC="$CC $BASECFLAGS"
Matthias Kloseb9621712010-04-24 17:59:49 +000013190if test "$cross_compiling" = yes; then :
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013191 ac_cv_x87_double_rounding=no
13192else
Matthias Kloseb9621712010-04-24 17:59:49 +000013193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013194/* end confdefs.h. */
13195
13196#include <stdlib.h>
13197#include <math.h>
13198int main() {
13199 volatile double x, y, z;
13200 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
13201 x = 0.99999999999999989; /* 1-2**-53 */
13202 y = 1./x;
13203 if (y != 1.)
13204 exit(0);
13205 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
13206 x = 1e16;
13207 y = 2.99999;
13208 z = x + y;
13209 if (z != 1e16+4.)
13210 exit(0);
13211 /* both tests show evidence of double rounding */
13212 exit(1);
13213}
13214
13215_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013216if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013217 ac_cv_x87_double_rounding=no
13218else
Matthias Kloseb9621712010-04-24 17:59:49 +000013219 ac_cv_x87_double_rounding=yes
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013220fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13222 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013223fi
13224
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013225CC="$ac_save_cc"
Matthias Kloseb9621712010-04-24 17:59:49 +000013226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
13227$as_echo "$ac_cv_x87_double_rounding" >&6; }
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013228if test "$ac_cv_x87_double_rounding" = yes
13229then
13230
Matthias Kloseb9621712010-04-24 17:59:49 +000013231$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013232
13233fi
13234
Mark Dickinsonb08a53a2009-04-16 19:52:09 +000013235# ************************************
13236# * Check for mathematical functions *
13237# ************************************
13238
13239LIBS_SAVE=$LIBS
13240LIBS="$LIBS $LIBM"
13241
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013242for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
13243do :
13244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13245ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020013246if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013247 cat >>confdefs.h <<_ACEOF
13248#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13249_ACEOF
13250
13251fi
13252done
13253
Victor Stinner8f9f8d62011-05-09 12:45:41 +020013254for ac_func in hypot lgamma log1p log2 round tgamma
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013255do :
13256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13257ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020013258if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013259 cat >>confdefs.h <<_ACEOF
13260#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13261_ACEOF
13262
13263fi
13264done
13265
13266ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
13267"
Victor Stinnere0be4232011-10-25 13:06:09 +020013268if test "x$ac_cv_have_decl_isinf" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013269 ac_have_decl=1
13270else
13271 ac_have_decl=0
13272fi
13273
13274cat >>confdefs.h <<_ACEOF
13275#define HAVE_DECL_ISINF $ac_have_decl
13276_ACEOF
13277ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
13278"
Victor Stinnere0be4232011-10-25 13:06:09 +020013279if test "x$ac_cv_have_decl_isnan" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013280 ac_have_decl=1
13281else
13282 ac_have_decl=0
13283fi
13284
13285cat >>confdefs.h <<_ACEOF
13286#define HAVE_DECL_ISNAN $ac_have_decl
13287_ACEOF
13288ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
13289"
Victor Stinnere0be4232011-10-25 13:06:09 +020013290if test "x$ac_cv_have_decl_isfinite" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013291 ac_have_decl=1
13292else
13293 ac_have_decl=0
13294fi
13295
13296cat >>confdefs.h <<_ACEOF
13297#define HAVE_DECL_ISFINITE $ac_have_decl
13298_ACEOF
13299
13300
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013301# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
13302# -0. on some architectures.
Matthias Kloseb9621712010-04-24 17:59:49 +000013303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
13304$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013305if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013306 $as_echo_n "(cached) " >&6
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013307else
13308
Matthias Kloseb9621712010-04-24 17:59:49 +000013309if test "$cross_compiling" = yes; then :
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013310 ac_cv_tanh_preserves_zero_sign=no
13311else
Matthias Kloseb9621712010-04-24 17:59:49 +000013312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013313/* end confdefs.h. */
13314
13315#include <math.h>
13316#include <stdlib.h>
13317int main() {
13318 /* return 0 if either negative zeros don't exist
13319 on this platform or if negative zeros exist
13320 and tanh(-0.) == -0. */
13321 if (atan2(0., -1.) == atan2(-0., -1.) ||
13322 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
13323 else exit(1);
13324}
13325
13326_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013327if ac_fn_c_try_run "$LINENO"; then :
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013328 ac_cv_tanh_preserves_zero_sign=yes
13329else
Matthias Kloseb9621712010-04-24 17:59:49 +000013330 ac_cv_tanh_preserves_zero_sign=no
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013331fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13333 conftest.$ac_objext conftest.beam conftest.$ac_ext
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013334fi
13335
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013336fi
13337
Matthias Kloseb9621712010-04-24 17:59:49 +000013338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
13339$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013340if test "$ac_cv_tanh_preserves_zero_sign" = yes
13341then
13342
Matthias Kloseb9621712010-04-24 17:59:49 +000013343$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
Christian Heimes81ee3ef2008-05-04 22:42:01 +000013344
13345fi
13346
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013347if test "$ac_cv_func_log1p" = yes
13348then
13349 # On some versions of AIX, log1p(-0.) returns 0. instead of
13350 # -0. See issue #9920.
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5
13352$as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013353 if ${ac_cv_log1p_drops_zero_sign+:} false; then :
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013354 $as_echo_n "(cached) " >&6
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013355else
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013356
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013357 if test "$cross_compiling" = yes; then :
13358 ac_cv_log1p_drops_zero_sign=no
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013359else
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361/* end confdefs.h. */
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013362
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013363 #include <math.h>
13364 #include <stdlib.h>
13365 int main() {
13366 /* Fail if the signs of log1p(-0.) and -0. can be
13367 distinguished. */
13368 if (atan2(log1p(-0.), -1.) == atan2(-0., -1.))
13369 return 0;
13370 else
13371 return 1;
13372 }
13373
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013374_ACEOF
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013375if ac_fn_c_try_run "$LINENO"; then :
13376 ac_cv_log1p_drops_zero_sign=no
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013377else
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013378 ac_cv_log1p_drops_zero_sign=yes
13379fi
13380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13381 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013382fi
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013383
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013384fi
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013385
Mark Dickinsonec0d3552010-11-20 10:29:12 +000013386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5
13387$as_echo "$ac_cv_log1p_drops_zero_sign" >&6; }
13388fi
13389if test "$ac_cv_log1p_drops_zero_sign" = yes
13390then
13391
13392$as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h
13393
13394fi
Mark Dickinson3dc7c6a2009-01-04 15:09:02 +000013395
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000013396LIBS=$LIBS_SAVE
13397
Mark Dickinsona614f042009-11-28 12:48:43 +000013398# For multiprocessing module, check that sem_open
13399# actually works. For FreeBSD versions <= 7.2,
13400# the kernel module that provides POSIX semaphores
13401# isn't loaded by default, so an attempt to call
13402# sem_open results in a 'Signal 12' error.
Matthias Kloseb9621712010-04-24 17:59:49 +000013403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
13404$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013405if ${ac_cv_posix_semaphores_enabled+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013406 $as_echo_n "(cached) " >&6
Mark Dickinsona614f042009-11-28 12:48:43 +000013407else
Matthias Kloseb9621712010-04-24 17:59:49 +000013408 if test "$cross_compiling" = yes; then :
Mark Dickinsona614f042009-11-28 12:48:43 +000013409 ac_cv_posix_semaphores_enabled=yes
13410else
Matthias Kloseb9621712010-04-24 17:59:49 +000013411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsona614f042009-11-28 12:48:43 +000013412/* end confdefs.h. */
13413
13414#include <unistd.h>
13415#include <fcntl.h>
13416#include <stdio.h>
13417#include <semaphore.h>
13418#include <sys/stat.h>
13419
13420int main(void) {
13421 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
13422 if (a == SEM_FAILED) {
13423 perror("sem_open");
13424 return 1;
13425 }
13426 sem_close(a);
Mark Dickinsonba79b352009-12-13 21:10:57 +000013427 sem_unlink("/autoconf");
Mark Dickinsona614f042009-11-28 12:48:43 +000013428 return 0;
13429}
13430
13431_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013432if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsona614f042009-11-28 12:48:43 +000013433 ac_cv_posix_semaphores_enabled=yes
13434else
Matthias Kloseb9621712010-04-24 17:59:49 +000013435 ac_cv_posix_semaphores_enabled=no
Mark Dickinsona614f042009-11-28 12:48:43 +000013436fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13438 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsona614f042009-11-28 12:48:43 +000013439fi
13440
13441
Mark Dickinsona614f042009-11-28 12:48:43 +000013442fi
13443
Matthias Kloseb9621712010-04-24 17:59:49 +000013444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
13445$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
Mark Dickinsona614f042009-11-28 12:48:43 +000013446if test $ac_cv_posix_semaphores_enabled = no
13447then
13448
Matthias Kloseb9621712010-04-24 17:59:49 +000013449$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
Mark Dickinsona614f042009-11-28 12:48:43 +000013450
13451fi
13452
Mark Dickinson10683072009-04-18 21:18:19 +000013453# Multiprocessing check for broken sem_getvalue
Matthias Kloseb9621712010-04-24 17:59:49 +000013454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
13455$as_echo_n "checking for broken sem_getvalue... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013456if ${ac_cv_broken_sem_getvalue+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013457 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000013458else
Matthias Kloseb9621712010-04-24 17:59:49 +000013459 if test "$cross_compiling" = yes; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000013460 ac_cv_broken_sem_getvalue=yes
Mark Dickinson10683072009-04-18 21:18:19 +000013461else
Matthias Kloseb9621712010-04-24 17:59:49 +000013462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson10683072009-04-18 21:18:19 +000013463/* end confdefs.h. */
13464
13465#include <unistd.h>
13466#include <fcntl.h>
13467#include <stdio.h>
13468#include <semaphore.h>
13469#include <sys/stat.h>
13470
13471int main(void){
Mark Dickinsonba79b352009-12-13 21:10:57 +000013472 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
Mark Dickinson10683072009-04-18 21:18:19 +000013473 int count;
13474 int res;
13475 if(a==SEM_FAILED){
13476 perror("sem_open");
13477 return 1;
13478
13479 }
13480 res = sem_getvalue(a, &count);
13481 sem_close(a);
Mark Dickinsonba79b352009-12-13 21:10:57 +000013482 sem_unlink("/autocftw");
Mark Dickinson10683072009-04-18 21:18:19 +000013483 return res==-1 ? 1 : 0;
13484}
13485
Mark Dickinson10683072009-04-18 21:18:19 +000013486_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013487if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000013488 ac_cv_broken_sem_getvalue=no
Mark Dickinson10683072009-04-18 21:18:19 +000013489else
Matthias Kloseb9621712010-04-24 17:59:49 +000013490 ac_cv_broken_sem_getvalue=yes
Alexandre Vassalotti19142282009-07-17 23:11:52 +000013491fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13493 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +000013494fi
13495
Alexandre Vassalotti19142282009-07-17 23:11:52 +000013496
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000013497fi
13498
Matthias Kloseb9621712010-04-24 17:59:49 +000013499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
13500$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000013501if test $ac_cv_broken_sem_getvalue = yes
13502then
13503
Matthias Kloseb9621712010-04-24 17:59:49 +000013504$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000013505
13506fi
13507
Mark Dickinsonbd792642009-03-18 20:06:12 +000013508# determine what size digit to use for Python's longs
Matthias Kloseb9621712010-04-24 17:59:49 +000013509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
13510$as_echo_n "checking digit size for Python's longs... " >&6; }
Mark Dickinsonbd792642009-03-18 20:06:12 +000013511# Check whether --enable-big-digits was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000013512if test "${enable_big_digits+set}" = set; then :
Mark Dickinsonbd792642009-03-18 20:06:12 +000013513 enableval=$enable_big_digits; case $enable_big_digits in
13514yes)
13515 enable_big_digits=30 ;;
13516no)
13517 enable_big_digits=15 ;;
1351815|30)
13519 ;;
13520*)
Victor Stinnere0be4232011-10-25 13:06:09 +020013521 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:12 +000013522esac
Matthias Kloseb9621712010-04-24 17:59:49 +000013523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
13524$as_echo "$enable_big_digits" >&6; }
Mark Dickinsonbd792642009-03-18 20:06:12 +000013525
13526cat >>confdefs.h <<_ACEOF
13527#define PYLONG_BITS_IN_DIGIT $enable_big_digits
13528_ACEOF
13529
13530
13531else
Matthias Kloseb9621712010-04-24 17:59:49 +000013532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
13533$as_echo "no value specified" >&6; }
Mark Dickinsonbd792642009-03-18 20:06:12 +000013534fi
13535
13536
Guido van Rossumef2255b2000-03-10 22:30:29 +000013537# check for wchar.h
Matthias Kloseb9621712010-04-24 17:59:49 +000013538ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 13:06:09 +020013539if test "x$ac_cv_header_wchar_h" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000013540
13541
Matthias Kloseb9621712010-04-24 17:59:49 +000013542$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +000013543
Martin v. Löwisc45929e2002-04-06 10:10:49 +000013544 wchar_h="yes"
13545
Guido van Rossumef2255b2000-03-10 22:30:29 +000013546else
Martin v. Löwis11437992002-04-12 09:54:03 +000013547 wchar_h="no"
Guido van Rossumef2255b2000-03-10 22:30:29 +000013548
13549fi
13550
Michael W. Hudson54241132001-12-07 15:38:26 +000013551
Martin v. Löwis11437992002-04-12 09:54:03 +000013552
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000013553# determine wchar_t size
13554if test "$wchar_h" = yes
13555then
Matthias Kloseb9621712010-04-24 17:59:49 +000013556 # The cast to long int works around a bug in the HP C Compiler
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13559# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:49 +000013560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13561$as_echo_n "checking size of wchar_t... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013562if ${ac_cv_sizeof_wchar_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013563 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000013564else
Matthias Kloseb9621712010-04-24 17:59:49 +000013565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
13566"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000013567
Martin v. Löwis11437992002-04-12 09:54:03 +000013568else
Matthias Kloseb9621712010-04-24 17:59:49 +000013569 if test "$ac_cv_type_wchar_t" = yes; then
13570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020013572as_fn_error 77 "cannot compute sizeof (wchar_t)
Victor Stinnere0be4232011-10-25 13:06:09 +020013573See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013574 else
13575 ac_cv_sizeof_wchar_t=0
13576 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013577fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013578
Martin v. Löwis11437992002-04-12 09:54:03 +000013579fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13581$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013582
13583
13584
Martin v. Löwis11437992002-04-12 09:54:03 +000013585cat >>confdefs.h <<_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000013586#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
Martin v. Löwis11437992002-04-12 09:54:03 +000013587_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000013588
Michael W. Hudson54241132001-12-07 15:38:26 +000013589
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000013590fi
13591
Matthias Kloseb9621712010-04-24 17:59:49 +000013592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
13593$as_echo_n "checking for UCS-4 tcl... " >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000013594have_ucs4_tcl=no
Matthias Kloseb9621712010-04-24 17:59:49 +000013595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000013596/* end confdefs.h. */
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000013597
13598#include <tcl.h>
13599#if TCL_UTF_MAX != 6
13600# error "NOT UCS4_TCL"
13601#endif
13602int
13603main ()
13604{
13605
13606 ;
13607 return 0;
13608}
13609_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013610if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000013611
13612
Matthias Kloseb9621712010-04-24 17:59:49 +000013613$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000013614
13615 have_ucs4_tcl=yes
13616
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000013617fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000013619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
13620$as_echo "$have_ucs4_tcl" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000013621
Skip Montanaro6dead952003-09-25 14:50:04 +000013622# check whether wchar_t is signed or not
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000013623if test "$wchar_h" = yes
13624then
13625 # check whether wchar_t is signed or not
Matthias Kloseb9621712010-04-24 17:59:49 +000013626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
13627$as_echo_n "checking whether wchar_t is signed... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013628 if ${ac_cv_wchar_t_signed+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013629 $as_echo_n "(cached) " >&6
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000013630else
13631
Matthias Kloseb9621712010-04-24 17:59:49 +000013632 if test "$cross_compiling" = yes; then :
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000013633 ac_cv_wchar_t_signed=yes
13634else
Matthias Kloseb9621712010-04-24 17:59:49 +000013635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000013636/* end confdefs.h. */
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000013637
13638 #include <wchar.h>
13639 int main()
13640 {
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000013641 /* Success: exit code 0 */
13642 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000013643 }
13644
13645_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013646if ac_fn_c_try_run "$LINENO"; then :
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000013647 ac_cv_wchar_t_signed=yes
13648else
Matthias Kloseb9621712010-04-24 17:59:49 +000013649 ac_cv_wchar_t_signed=no
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000013650fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13652 conftest.$ac_objext conftest.beam conftest.$ac_ext
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000013653fi
13654
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000013655fi
13656
Matthias Kloseb9621712010-04-24 17:59:49 +000013657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
13658$as_echo "$ac_cv_wchar_t_signed" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013659fi
13660
Georg Brandl52d168a2008-01-07 18:10:24 +000013661# wchar_t is only usable if it maps to an unsigned type
Martin v. Löwisd63a3b82011-09-28 07:41:54 +020013662if test "$ac_cv_sizeof_wchar_t" -ge 2 \
Matthias Klose7dbeed72004-12-24 08:22:17 +000013663 -a "$ac_cv_wchar_t_signed" = "no"
Georg Brandl52d168a2008-01-07 18:10:24 +000013664then
Martin v. Löwisd63a3b82011-09-28 07:41:54 +020013665 HAVE_USABLE_WCHAR_T="yes"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000013666
Matthias Kloseb9621712010-04-24 17:59:49 +000013667$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +000013668
Georg Brandl52d168a2008-01-07 18:10:24 +000013669else
Martin v. Löwisd63a3b82011-09-28 07:41:54 +020013670 HAVE_USABLE_WCHAR_T="no usable wchar_t found"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000013671fi
Martin v. Löwisd63a3b82011-09-28 07:41:54 +020013672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5
13673$as_echo "$HAVE_USABLE_WCHAR_T" >&6; }
Guido van Rossumef2255b2000-03-10 22:30:29 +000013674
13675# check for endianness
Matthias Kloseb9621712010-04-24 17:59:49 +000013676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13677$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013678if ${ac_cv_c_bigendian+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013679 $as_echo_n "(cached) " >&6
Guido van Rossumef2255b2000-03-10 22:30:29 +000013680else
Matthias Kloseb9621712010-04-24 17:59:49 +000013681 ac_cv_c_bigendian=unknown
13682 # See if we're dealing with a universal compiler.
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684/* end confdefs.h. */
13685#ifndef __APPLE_CC__
13686 not a universal capable compiler
13687 #endif
13688 typedef int dummy;
13689
Skip Montanaro6dead952003-09-25 14:50:04 +000013690_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013691if ac_fn_c_try_compile "$LINENO"; then :
13692
13693 # Check for potential -arch flags. It is not universal unless
13694 # there are at least two -arch flags with different values.
13695 ac_arch=
13696 ac_prev=
13697 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13698 if test -n "$ac_prev"; then
13699 case $ac_word in
13700 i?86 | x86_64 | ppc | ppc64)
13701 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13702 ac_arch=$ac_word
13703 else
13704 ac_cv_c_bigendian=universal
13705 break
13706 fi
13707 ;;
13708 esac
13709 ac_prev=
13710 elif test "x$ac_word" = "x-arch"; then
13711 ac_prev=arch
13712 fi
13713 done
13714fi
13715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 if test $ac_cv_c_bigendian = unknown; then
13717 # See if sys/param.h defines the BYTE_ORDER macro.
13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000013719/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000013720#include <sys/types.h>
Matthias Kloseb9621712010-04-24 17:59:49 +000013721 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000013722
Martin v. Löwis11437992002-04-12 09:54:03 +000013723int
13724main ()
13725{
Matthias Kloseb9621712010-04-24 17:59:49 +000013726#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13727 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13728 && LITTLE_ENDIAN)
13729 bogus endian macros
13730 #endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013731
13732 ;
13733 return 0;
13734}
13735_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013736if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:29 +000013737 # It does; now see whether it defined to BIG_ENDIAN or not.
Matthias Kloseb9621712010-04-24 17:59:49 +000013738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000013739/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000013740#include <sys/types.h>
Matthias Kloseb9621712010-04-24 17:59:49 +000013741 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000013742
Martin v. Löwis11437992002-04-12 09:54:03 +000013743int
13744main ()
13745{
Guido van Rossumef2255b2000-03-10 22:30:29 +000013746#if BYTE_ORDER != BIG_ENDIAN
Matthias Kloseb9621712010-04-24 17:59:49 +000013747 not big endian
13748 #endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013749
13750 ;
13751 return 0;
13752}
13753_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013754if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:29 +000013755 ac_cv_c_bigendian=yes
13756else
Matthias Kloseb9621712010-04-24 17:59:49 +000013757 ac_cv_c_bigendian=no
Guido van Rossumef2255b2000-03-10 22:30:29 +000013758fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:49 +000013760fi
13761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 fi
13763 if test $ac_cv_c_bigendian = unknown; then
13764 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000013766/* end confdefs.h. */
Matthias Kloseb9621712010-04-24 17:59:49 +000013767#include <limits.h>
13768
Martin v. Löwis11437992002-04-12 09:54:03 +000013769int
13770main ()
13771{
Matthias Kloseb9621712010-04-24 17:59:49 +000013772#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13773 bogus endian macros
13774 #endif
13775
Martin v. Löwis11437992002-04-12 09:54:03 +000013776 ;
13777 return 0;
13778}
13779_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013780if ac_fn_c_try_compile "$LINENO"; then :
13781 # It does; now see whether it defined to _BIG_ENDIAN or not.
13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783/* end confdefs.h. */
13784#include <limits.h>
13785
13786int
13787main ()
13788{
13789#ifndef _BIG_ENDIAN
13790 not big endian
13791 #endif
13792
13793 ;
13794 return 0;
13795}
13796_ACEOF
13797if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000013798 ac_cv_c_bigendian=yes
Benjamin Peterson8719ad52009-09-11 22:24:02 +000013799else
Matthias Kloseb9621712010-04-24 17:59:49 +000013800 ac_cv_c_bigendian=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013801fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803fi
13804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13805 fi
13806 if test $ac_cv_c_bigendian = unknown; then
13807 # Compile a test program.
13808 if test "$cross_compiling" = yes; then :
13809 # Try to guess by grepping values from an object file.
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811/* end confdefs.h. */
13812short int ascii_mm[] =
13813 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13814 short int ascii_ii[] =
13815 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13816 int use_ascii (int i) {
13817 return ascii_mm[i] + ascii_ii[i];
13818 }
13819 short int ebcdic_ii[] =
13820 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13821 short int ebcdic_mm[] =
13822 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13823 int use_ebcdic (int i) {
13824 return ebcdic_mm[i] + ebcdic_ii[i];
13825 }
13826 extern int foo;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013827
Matthias Kloseb9621712010-04-24 17:59:49 +000013828int
13829main ()
13830{
13831return use_ascii (foo) == use_ebcdic (foo);
13832 ;
13833 return 0;
13834}
13835_ACEOF
13836if ac_fn_c_try_compile "$LINENO"; then :
13837 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13838 ac_cv_c_bigendian=yes
13839 fi
13840 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13841 if test "$ac_cv_c_bigendian" = unknown; then
13842 ac_cv_c_bigendian=no
13843 else
13844 # finding both strings is unlikely to happen, but who knows?
13845 ac_cv_c_bigendian=unknown
13846 fi
13847 fi
13848fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013850else
Matthias Kloseb9621712010-04-24 17:59:49 +000013851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000013852/* end confdefs.h. */
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013853$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000013854int
13855main ()
13856{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013857
Matthias Kloseb9621712010-04-24 17:59:49 +000013858 /* Are we little or big endian? From Harbison&Steele. */
13859 union
13860 {
13861 long int l;
13862 char c[sizeof (long int)];
13863 } u;
13864 u.l = 1;
13865 return u.c[sizeof (long int) - 1] == 1;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013866
13867 ;
13868 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000013869}
Martin v. Löwis11437992002-04-12 09:54:03 +000013870_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013871if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:29 +000013872 ac_cv_c_bigendian=no
13873else
Matthias Kloseb9621712010-04-24 17:59:49 +000013874 ac_cv_c_bigendian=yes
Guido van Rossumef2255b2000-03-10 22:30:29 +000013875fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13877 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:29 +000013878fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013879
Matthias Kloseb9621712010-04-24 17:59:49 +000013880 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013881fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13883$as_echo "$ac_cv_c_bigendian" >&6; }
13884 case $ac_cv_c_bigendian in #(
13885 yes)
13886 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13887;; #(
13888 no)
13889 ;; #(
13890 universal)
Ronald Oussoren74f29b42009-09-20 20:09:26 +000013891
Matthias Kloseb9621712010-04-24 17:59:49 +000013892$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benjamin Peterson8719ad52009-09-11 22:24:02 +000013893
Matthias Kloseb9621712010-04-24 17:59:49 +000013894 ;; #(
13895 *)
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020013896 as_fn_error $? "unknown endianness
Victor Stinnere0be4232011-10-25 13:06:09 +020013897 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Matthias Kloseb9621712010-04-24 17:59:49 +000013898 esac
Guido van Rossumef2255b2000-03-10 22:30:29 +000013899
Michael W. Hudson54241132001-12-07 15:38:26 +000013900
Barry Warsaw35f3a2c2010-09-03 18:30:30 +000013901# ABI version string for Python extension modules. This appears between the
13902# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
13903# from the following attributes which affect the ABI of this Python build (in
13904# this order):
13905#
13906# * The Python implementation (always 'cpython-' for us)
13907# * The major and minor version numbers
13908# * --with-pydebug (adds a 'd')
13909# * --with-pymalloc (adds a 'm')
13910# * --with-wide-unicode (adds a 'u')
13911#
13912# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
Benjamin Petersond7f73e92010-09-05 00:09:07 +000013913# would get a shared library ABI version tag of 'cpython-32dmu' and shared
13914# libraries would be named 'foo.cpython-32dmu.so'.
Barry Warsaw35f3a2c2010-09-03 18:30:30 +000013915
Barry Warsaw8cf4eae2010-10-16 01:04:07 +000013916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
13917$as_echo_n "checking ABIFLAGS... " >&6; }
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
13919$as_echo "$ABIFLAGS" >&6; }
Barry Warsaw35f3a2c2010-09-03 18:30:30 +000013920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
13921$as_echo_n "checking SOABI... " >&6; }
Barry Warsaw8cf4eae2010-10-16 01:04:07 +000013922SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}
Barry Warsaw35f3a2c2010-09-03 18:30:30 +000013923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
13924$as_echo "$SOABI" >&6; }
13925
doko@ubuntu.comd5537d02013-03-21 13:21:49 -070013926
13927case $ac_sys_system in
13928 Linux*|GNU*)
13929 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
13930 *)
13931 EXT_SUFFIX=${SHLIB_SUFFIX};;
13932esac
13933
Barry Warsaw8cf4eae2010-10-16 01:04:07 +000013934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
13935$as_echo_n "checking LDVERSION... " >&6; }
13936LDVERSION='$(VERSION)$(ABIFLAGS)'
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
13938$as_echo "$LDVERSION" >&6; }
13939
doko@python.org87421192013-01-26 11:39:31 +010013940
13941LIBPL="${prefix}/lib/python${VERSION}/config-${LDVERSION}"
13942
13943
Vladimir Marangozov676aa882000-07-12 03:02:43 +000013944# Check whether right shifting a negative integer extends the sign bit
13945# or fills with zeros (like the Cray J90, according to Tim Peters).
Matthias Kloseb9621712010-04-24 17:59:49 +000013946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
13947$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013948if ${ac_cv_rshift_extends_sign+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013949 $as_echo_n "(cached) " >&6
Vladimir Marangozova6180282000-07-12 05:05:06 +000013950else
Martin v. Löwis11437992002-04-12 09:54:03 +000013951
Matthias Kloseb9621712010-04-24 17:59:49 +000013952if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:14 +000013953 ac_cv_rshift_extends_sign=yes
Vladimir Marangozov676aa882000-07-12 03:02:43 +000013954else
Matthias Kloseb9621712010-04-24 17:59:49 +000013955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000013956/* end confdefs.h. */
Vladimir Marangozov676aa882000-07-12 03:02:43 +000013957
13958int main()
13959{
Vladimir Marangozova6180282000-07-12 05:05:06 +000013960 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:43 +000013961}
13962
Martin v. Löwis11437992002-04-12 09:54:03 +000013963_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000013964if ac_fn_c_try_run "$LINENO"; then :
Vladimir Marangozova6180282000-07-12 05:05:06 +000013965 ac_cv_rshift_extends_sign=yes
13966else
Matthias Kloseb9621712010-04-24 17:59:49 +000013967 ac_cv_rshift_extends_sign=no
Vladimir Marangozova6180282000-07-12 05:05:06 +000013968fi
Matthias Kloseb9621712010-04-24 17:59:49 +000013969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13970 conftest.$ac_objext conftest.beam conftest.$ac_ext
Vladimir Marangozova6180282000-07-12 05:05:06 +000013971fi
13972
Thomas Wouters47b49bf2007-08-30 22:15:33 +000013973fi
13974
Matthias Kloseb9621712010-04-24 17:59:49 +000013975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
13976$as_echo "$ac_cv_rshift_extends_sign" >&6; }
Vladimir Marangozova6180282000-07-12 05:05:06 +000013977if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:43 +000013978then
Martin v. Löwis11437992002-04-12 09:54:03 +000013979
Matthias Kloseb9621712010-04-24 17:59:49 +000013980$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
Vladimir Marangozov676aa882000-07-12 03:02:43 +000013981
Vladimir Marangozov676aa882000-07-12 03:02:43 +000013982fi
13983
Guido van Rossumcadfaec2001-01-05 14:45:49 +000013984# check for getc_unlocked and related locking functions
Matthias Kloseb9621712010-04-24 17:59:49 +000013985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
13986$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020013987if ${ac_cv_have_getc_unlocked+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000013988 $as_echo_n "(cached) " >&6
Guido van Rossumcadfaec2001-01-05 14:45:49 +000013989else
Martin v. Löwis11437992002-04-12 09:54:03 +000013990
Matthias Kloseb9621712010-04-24 17:59:49 +000013991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000013992/* end confdefs.h. */
Guido van Rossumcadfaec2001-01-05 14:45:49 +000013993#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000013994int
13995main ()
13996{
Guido van Rossumcadfaec2001-01-05 14:45:49 +000013997
13998 FILE *f = fopen("/dev/null", "r");
13999 flockfile(f);
14000 getc_unlocked(f);
14001 funlockfile(f);
14002
Martin v. Löwis11437992002-04-12 09:54:03 +000014003 ;
14004 return 0;
14005}
14006_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014007if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossumcadfaec2001-01-05 14:45:49 +000014008 ac_cv_have_getc_unlocked=yes
14009else
Matthias Kloseb9621712010-04-24 17:59:49 +000014010 ac_cv_have_getc_unlocked=no
14011fi
14012rm -f core conftest.err conftest.$ac_objext \
14013 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumcadfaec2001-01-05 14:45:49 +000014014fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014015
Matthias Kloseb9621712010-04-24 17:59:49 +000014016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
14017$as_echo "$ac_cv_have_getc_unlocked" >&6; }
Guido van Rossumcadfaec2001-01-05 14:45:49 +000014018if test "$ac_cv_have_getc_unlocked" = yes
14019then
Martin v. Löwis11437992002-04-12 09:54:03 +000014020
Matthias Kloseb9621712010-04-24 17:59:49 +000014021$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
Guido van Rossumcadfaec2001-01-05 14:45:49 +000014022
14023fi
Vladimir Marangozov676aa882000-07-12 03:02:43 +000014024
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000014025# check where readline lives
Martin v. Löwis82bca632006-02-10 20:49:30 +000014026# save the value of LIBS so we don't actually link Python with readline
14027LIBS_no_readline=$LIBS
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000014028
Gregory P. Smith18820942008-09-07 06:24:49 +000014029# On some systems we need to link readline to a termcap compatible
14030# library. NOTE: Keep the precedence of listed libraries synchronised
14031# with setup.py.
14032py_cv_lib_readline=no
Matthias Kloseb9621712010-04-24 17:59:49 +000014033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
14034$as_echo_n "checking how to link readline libs... " >&6; }
doko@ubuntu.comf2967c72012-06-30 17:32:23 +020014035for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
Gregory P. Smith18820942008-09-07 06:24:49 +000014036 if test -z "$py_libtermcap"; then
14037 READLINE_LIBS="-lreadline"
14038 else
14039 READLINE_LIBS="-lreadline -l$py_libtermcap"
14040 fi
14041 LIBS="$READLINE_LIBS $LIBS_no_readline"
Matthias Kloseb9621712010-04-24 17:59:49 +000014042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000014043/* end confdefs.h. */
14044
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014045/* Override any GCC internal prototype to avoid an error.
14046 Use char because int might match the return type of a GCC
14047 builtin and then its argument prototype would still apply. */
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000014048#ifdef __cplusplus
14049extern "C"
14050#endif
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000014051char readline ();
14052int
14053main ()
14054{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014055return readline ();
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000014056 ;
14057 return 0;
14058}
14059_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014060if ac_fn_c_try_link "$LINENO"; then :
Gregory P. Smith18820942008-09-07 06:24:49 +000014061 py_cv_lib_readline=yes
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000014062fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014063rm -f core conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
Gregory P. Smith18820942008-09-07 06:24:49 +000014065 if test $py_cv_lib_readline = yes; then
14066 break
14067 fi
14068done
14069# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
14070#AC_SUBST([READLINE_LIBS])
Gregory P. Smith3856c372008-09-07 19:24:00 +000014071if test $py_cv_lib_readline = no; then
Matthias Kloseb9621712010-04-24 17:59:49 +000014072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14073$as_echo "none" >&6; }
Gregory P. Smith18820942008-09-07 06:24:49 +000014074else
Matthias Kloseb9621712010-04-24 17:59:49 +000014075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
14076$as_echo "$READLINE_LIBS" >&6; }
Gregory P. Smith18820942008-09-07 06:24:49 +000014077
Matthias Kloseb9621712010-04-24 17:59:49 +000014078$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000014079
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000014080fi
14081
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014082# check for readline 2.1
Matthias Kloseb9621712010-04-24 17:59:49 +000014083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
14084$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014085if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014086 $as_echo_n "(cached) " >&6
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014087else
14088 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:49 +000014089LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000014090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014091/* end confdefs.h. */
14092
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014093/* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014096#ifdef __cplusplus
14097extern "C"
14098#endif
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014099char rl_callback_handler_install ();
14100int
14101main ()
14102{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014103return rl_callback_handler_install ();
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014104 ;
14105 return 0;
14106}
14107_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014108if ac_fn_c_try_link "$LINENO"; then :
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014109 ac_cv_lib_readline_rl_callback_handler_install=yes
14110else
Matthias Kloseb9621712010-04-24 17:59:49 +000014111 ac_cv_lib_readline_rl_callback_handler_install=no
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014112fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014113rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014115LIBS=$ac_check_lib_save_LIBS
14116fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
14118$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014119if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014120
Matthias Kloseb9621712010-04-24 17:59:49 +000014121$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014122
14123fi
14124
14125
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014126# check for readline 2.2
Matthias Kloseb9621712010-04-24 17:59:49 +000014127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000014128/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014129#include <readline/readline.h>
14130_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014131if ac_fn_c_try_cpp "$LINENO"; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014132 have_readline=yes
14133else
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014134 have_readline=no
Matthias Kloseb159a552010-04-25 21:00:44 +000014135
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014136fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020014137rm -f conftest.err conftest.i conftest.$ac_ext
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014138if test $have_readline = yes
14139then
Matthias Kloseb9621712010-04-24 17:59:49 +000014140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000014141/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014142#include <readline/readline.h>
14143
14144_ACEOF
14145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +000014146 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014147
Matthias Kloseb9621712010-04-24 17:59:49 +000014148$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014149
14150fi
Matthias Klosec80c93f2010-04-24 17:04:35 +000014151rm -f conftest*
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014152
Matthias Kloseb9621712010-04-24 17:59:49 +000014153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitroud5131772009-10-26 19:22:14 +000014154/* end confdefs.h. */
14155#include <readline/readline.h>
14156
14157_ACEOF
14158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +000014159 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
Antoine Pitroud5131772009-10-26 19:22:14 +000014160
Matthias Kloseb9621712010-04-24 17:59:49 +000014161$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
Antoine Pitroud5131772009-10-26 19:22:14 +000014162
14163fi
Matthias Klosec80c93f2010-04-24 17:04:35 +000014164rm -f conftest*
Antoine Pitroud5131772009-10-26 19:22:14 +000014165
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000014166fi
14167
Martin v. Löwis0daad592001-09-30 21:09:59 +000014168# check for readline 4.0
Matthias Kloseb9621712010-04-24 17:59:49 +000014169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
14170$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014171if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014172 $as_echo_n "(cached) " >&6
Guido van Rossum353ae582001-07-10 16:45:32 +000014173else
Martin v. Löwis11437992002-04-12 09:54:03 +000014174 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:49 +000014175LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000014176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000014177/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014178
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014179/* Override any GCC internal prototype to avoid an error.
14180 Use char because int might match the return type of a GCC
14181 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014182#ifdef __cplusplus
14183extern "C"
14184#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014185char rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014186int
14187main ()
14188{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014189return rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014190 ;
14191 return 0;
14192}
14193_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014194if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000014195 ac_cv_lib_readline_rl_pre_input_hook=yes
Martin v. Löwis0daad592001-09-30 21:09:59 +000014196else
Matthias Kloseb9621712010-04-24 17:59:49 +000014197 ac_cv_lib_readline_rl_pre_input_hook=no
Martin v. Löwis0daad592001-09-30 21:09:59 +000014198fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014199rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000014201LIBS=$ac_check_lib_save_LIBS
14202fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
14204$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014205if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:26 +000014206
Matthias Kloseb9621712010-04-24 17:59:49 +000014207$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
Martin v. Löwis0daad592001-09-30 21:09:59 +000014208
Martin v. Löwis0daad592001-09-30 21:09:59 +000014209fi
14210
Michael W. Hudson54241132001-12-07 15:38:26 +000014211
Thomas Wouters89d996e2007-09-08 17:39:28 +000014212# also in 4.0
Matthias Kloseb9621712010-04-24 17:59:49 +000014213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
14214$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014215if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014216 $as_echo_n "(cached) " >&6
Thomas Wouters89d996e2007-09-08 17:39:28 +000014217else
14218 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:49 +000014219LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000014220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters89d996e2007-09-08 17:39:28 +000014221/* end confdefs.h. */
14222
14223/* Override any GCC internal prototype to avoid an error.
14224 Use char because int might match the return type of a GCC
14225 builtin and then its argument prototype would still apply. */
14226#ifdef __cplusplus
14227extern "C"
14228#endif
14229char rl_completion_display_matches_hook ();
14230int
14231main ()
14232{
14233return rl_completion_display_matches_hook ();
14234 ;
14235 return 0;
14236}
14237_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014238if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters89d996e2007-09-08 17:39:28 +000014239 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
14240else
Matthias Kloseb9621712010-04-24 17:59:49 +000014241 ac_cv_lib_readline_rl_completion_display_matches_hook=no
Thomas Wouters89d996e2007-09-08 17:39:28 +000014242fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014243rm -f core conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters89d996e2007-09-08 17:39:28 +000014245LIBS=$ac_check_lib_save_LIBS
14246fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
14248$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014249if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
Thomas Wouters89d996e2007-09-08 17:39:28 +000014250
Matthias Kloseb9621712010-04-24 17:59:49 +000014251$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
Thomas Wouters89d996e2007-09-08 17:39:28 +000014252
14253fi
14254
14255
Martin v. Löwis0daad592001-09-30 21:09:59 +000014256# check for readline 4.2
Matthias Kloseb9621712010-04-24 17:59:49 +000014257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
14258$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014259if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014260 $as_echo_n "(cached) " >&6
Martin v. Löwis0daad592001-09-30 21:09:59 +000014261else
Martin v. Löwis11437992002-04-12 09:54:03 +000014262 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:49 +000014263LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:49 +000014264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000014265/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014266
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014267/* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014270#ifdef __cplusplus
14271extern "C"
14272#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014273char rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014274int
14275main ()
14276{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014277return rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014278 ;
14279 return 0;
14280}
14281_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014282if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000014283 ac_cv_lib_readline_rl_completion_matches=yes
Guido van Rossum353ae582001-07-10 16:45:32 +000014284else
Matthias Kloseb9621712010-04-24 17:59:49 +000014285 ac_cv_lib_readline_rl_completion_matches=no
Guido van Rossum353ae582001-07-10 16:45:32 +000014286fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014287rm -f core conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000014289LIBS=$ac_check_lib_save_LIBS
14290fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
14292$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014293if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:26 +000014294
Matthias Kloseb9621712010-04-24 17:59:49 +000014295$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
Guido van Rossum353ae582001-07-10 16:45:32 +000014296
Guido van Rossum353ae582001-07-10 16:45:32 +000014297fi
14298
Jack Jansendd19cf82001-12-06 22:36:17 +000014299
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014300# also in readline 4.2
Matthias Kloseb9621712010-04-24 17:59:49 +000014301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014302/* end confdefs.h. */
14303#include <readline/readline.h>
14304_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014305if ac_fn_c_try_cpp "$LINENO"; then :
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014306 have_readline=yes
14307else
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014308 have_readline=no
Matthias Kloseb159a552010-04-25 21:00:44 +000014309
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014310fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020014311rm -f conftest.err conftest.i conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014312if test $have_readline = yes
14313then
Matthias Kloseb9621712010-04-24 17:59:49 +000014314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014315/* end confdefs.h. */
14316#include <readline/readline.h>
14317
14318_ACEOF
14319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:49 +000014320 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014321
Matthias Kloseb9621712010-04-24 17:59:49 +000014322$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014323
14324fi
Matthias Klosec80c93f2010-04-24 17:04:35 +000014325rm -f conftest*
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014326
14327fi
14328
Martin v. Löwis82bca632006-02-10 20:49:30 +000014329# End of readline checks: restore LIBS
14330LIBS=$LIBS_no_readline
14331
Matthias Kloseb9621712010-04-24 17:59:49 +000014332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
14333$as_echo_n "checking for broken nice()... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014334if ${ac_cv_broken_nice+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014335 $as_echo_n "(cached) " >&6
Michael W. Hudson54241132001-12-07 15:38:26 +000014336else
Martin v. Löwis11437992002-04-12 09:54:03 +000014337
Matthias Kloseb9621712010-04-24 17:59:49 +000014338if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:14 +000014339 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000014340else
Matthias Kloseb9621712010-04-24 17:59:49 +000014341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000014342/* end confdefs.h. */
Thomas Wouterse38b2f12001-07-11 22:35:31 +000014343
14344int main()
14345{
14346 int val1 = nice(1);
14347 if (val1 != -1 && val1 == nice(2))
14348 exit(0);
14349 exit(1);
14350}
14351
Martin v. Löwis11437992002-04-12 09:54:03 +000014352_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014353if ac_fn_c_try_run "$LINENO"; then :
Thomas Wouterse38b2f12001-07-11 22:35:31 +000014354 ac_cv_broken_nice=yes
14355else
Matthias Kloseb9621712010-04-24 17:59:49 +000014356 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000014357fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14359 conftest.$ac_objext conftest.beam conftest.$ac_ext
Thomas Wouterse38b2f12001-07-11 22:35:31 +000014360fi
14361
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014362fi
14363
Matthias Kloseb9621712010-04-24 17:59:49 +000014364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
14365$as_echo "$ac_cv_broken_nice" >&6; }
Thomas Wouterse38b2f12001-07-11 22:35:31 +000014366if test "$ac_cv_broken_nice" = yes
14367then
Martin v. Löwis11437992002-04-12 09:54:03 +000014368
Matthias Kloseb9621712010-04-24 17:59:49 +000014369$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
Thomas Wouterse38b2f12001-07-11 22:35:31 +000014370
14371fi
14372
Matthias Kloseb9621712010-04-24 17:59:49 +000014373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
14374$as_echo_n "checking for broken poll()... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014375if ${ac_cv_broken_poll+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014376 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000014377else
Matthias Kloseb9621712010-04-24 17:59:49 +000014378 if test "$cross_compiling" = yes; then :
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014379 ac_cv_broken_poll=no
14380else
Matthias Kloseb9621712010-04-24 17:59:49 +000014381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014382/* end confdefs.h. */
14383
14384#include <poll.h>
14385
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000014386int main()
14387{
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014388 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000014389 int poll_test;
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014390
14391 close (42);
14392
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000014393 poll_test = poll(&poll_struct, 1, 0);
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014394 if (poll_test < 0)
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000014395 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014396 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000014397 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014398 else
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000014399 return 1;
14400}
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014401
14402_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014403if ac_fn_c_try_run "$LINENO"; then :
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014404 ac_cv_broken_poll=yes
14405else
Matthias Kloseb9621712010-04-24 17:59:49 +000014406 ac_cv_broken_poll=no
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014407fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14409 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014410fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014411
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000014412fi
14413
Matthias Kloseb9621712010-04-24 17:59:49 +000014414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
14415$as_echo "$ac_cv_broken_poll" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014416if test "$ac_cv_broken_poll" = yes
14417then
14418
Matthias Kloseb9621712010-04-24 17:59:49 +000014419$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014420
14421fi
14422
Brett Cannon43802422005-02-10 20:48:03 +000014423# Before we can test tzset, we need to check if struct tm has a tm_zone
Martin v. Löwis1d459062005-03-14 21:23:33 +000014424# (which is not required by ISO C or UNIX spec) and/or if we support
14425# tzname[]
Matthias Kloseb9621712010-04-24 17:59:49 +000014426ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
Brett Cannon43802422005-02-10 20:48:03 +000014427#include <$ac_cv_struct_tm>
14428
Matthias Kloseb9621712010-04-24 17:59:49 +000014429"
Victor Stinnere0be4232011-10-25 13:06:09 +020014430if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
Brett Cannon43802422005-02-10 20:48:03 +000014431
14432cat >>confdefs.h <<_ACEOF
14433#define HAVE_STRUCT_TM_TM_ZONE 1
14434_ACEOF
14435
14436
14437fi
14438
14439if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14440
Matthias Kloseb9621712010-04-24 17:59:49 +000014441$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
Brett Cannon43802422005-02-10 20:48:03 +000014442
14443else
Matthias Kloseb9621712010-04-24 17:59:49 +000014444 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
14445"
Victor Stinnere0be4232011-10-25 13:06:09 +020014446if test "x$ac_cv_have_decl_tzname" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014447 ac_have_decl=1
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014448else
Matthias Kloseb9621712010-04-24 17:59:49 +000014449 ac_have_decl=0
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014450fi
14451
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014452cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014453#define HAVE_DECL_TZNAME $ac_have_decl
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014454_ACEOF
14455
Matthias Kloseb9621712010-04-24 17:59:49 +000014456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14457$as_echo_n "checking for tzname... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014458if ${ac_cv_var_tzname+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014459 $as_echo_n "(cached) " >&6
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014460else
Matthias Kloseb9621712010-04-24 17:59:49 +000014461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Brett Cannon43802422005-02-10 20:48:03 +000014462/* end confdefs.h. */
14463#include <time.h>
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014464#if !HAVE_DECL_TZNAME
14465extern char *tzname[];
Brett Cannon43802422005-02-10 20:48:03 +000014466#endif
14467
14468int
14469main ()
14470{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014471return tzname[0][0];
Brett Cannon43802422005-02-10 20:48:03 +000014472 ;
14473 return 0;
14474}
14475_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014476if ac_fn_c_try_link "$LINENO"; then :
Brett Cannon43802422005-02-10 20:48:03 +000014477 ac_cv_var_tzname=yes
14478else
Matthias Kloseb9621712010-04-24 17:59:49 +000014479 ac_cv_var_tzname=no
Brett Cannon43802422005-02-10 20:48:03 +000014480fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014481rm -f core conftest.err conftest.$ac_objext \
14482 conftest$ac_exeext conftest.$ac_ext
Brett Cannon43802422005-02-10 20:48:03 +000014483fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14485$as_echo "$ac_cv_var_tzname" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000014486 if test $ac_cv_var_tzname = yes; then
14487
Matthias Kloseb9621712010-04-24 17:59:49 +000014488$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
Brett Cannon43802422005-02-10 20:48:03 +000014489
14490 fi
14491fi
14492
Nicholas Bastine62c5c82004-03-21 23:45:42 +000014493
Martin v. Löwis1d459062005-03-14 21:23:33 +000014494# check tzset(3) exists and works like we expect it to
Matthias Kloseb9621712010-04-24 17:59:49 +000014495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
14496$as_echo_n "checking for working tzset()... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014497if ${ac_cv_working_tzset+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014498 $as_echo_n "(cached) " >&6
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014499else
14500
Matthias Kloseb9621712010-04-24 17:59:49 +000014501if test "$cross_compiling" = yes; then :
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014502 ac_cv_working_tzset=no
14503else
Matthias Kloseb9621712010-04-24 17:59:49 +000014504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000014505/* end confdefs.h. */
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014506
14507#include <stdlib.h>
14508#include <time.h>
Brett Cannon18367812003-09-19 00:59:16 +000014509#include <string.h>
Brett Cannon43802422005-02-10 20:48:03 +000014510
14511#if HAVE_TZNAME
14512extern char *tzname[];
14513#endif
14514
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014515int main()
14516{
Brett Cannon18367812003-09-19 00:59:16 +000014517 /* Note that we need to ensure that not only does tzset(3)
14518 do 'something' with localtime, but it works as documented
14519 in the library reference and as expected by the test suite.
Martin v. Löwis1d459062005-03-14 21:23:33 +000014520 This includes making sure that tzname is set properly if
14521 tm->tm_zone does not exist since it is the alternative way
14522 of getting timezone info.
Brett Cannon18367812003-09-19 00:59:16 +000014523
14524 Red Hat 6.2 doesn't understand the southern hemisphere
Martin v. Löwis1d459062005-03-14 21:23:33 +000014525 after New Year's Day.
Brett Cannon18367812003-09-19 00:59:16 +000014526 */
14527
Martin v. Löwis1d459062005-03-14 21:23:33 +000014528 time_t groundhogday = 1044144000; /* GMT-based */
Brett Cannon18367812003-09-19 00:59:16 +000014529 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
14530
Neal Norwitz7f2588c2003-04-11 15:35:53 +000014531 putenv("TZ=UTC+0");
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014532 tzset();
Brett Cannon18367812003-09-19 00:59:16 +000014533 if (localtime(&groundhogday)->tm_hour != 0)
14534 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000014535#if HAVE_TZNAME
14536 /* For UTC, tzname[1] is sometimes "", sometimes " " */
14537 if (strcmp(tzname[0], "UTC") ||
14538 (tzname[1][0] != 0 && tzname[1][0] != ' '))
14539 exit(1);
14540#endif
Brett Cannon18367812003-09-19 00:59:16 +000014541
Neal Norwitz7f2588c2003-04-11 15:35:53 +000014542 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014543 tzset();
Brett Cannon18367812003-09-19 00:59:16 +000014544 if (localtime(&groundhogday)->tm_hour != 19)
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014545 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000014546#if HAVE_TZNAME
14547 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
14548 exit(1);
14549#endif
Brett Cannon18367812003-09-19 00:59:16 +000014550
14551 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
14552 tzset();
14553 if (localtime(&groundhogday)->tm_hour != 11)
14554 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000014555#if HAVE_TZNAME
14556 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
14557 exit(1);
14558#endif
14559
14560#if HAVE_STRUCT_TM_TM_ZONE
Brett Cannon18367812003-09-19 00:59:16 +000014561 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
14562 exit(1);
14563 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
14564 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000014565#endif
Brett Cannon18367812003-09-19 00:59:16 +000014566
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014567 exit(0);
14568}
14569
14570_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014571if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014572 ac_cv_working_tzset=yes
14573else
Matthias Kloseb9621712010-04-24 17:59:49 +000014574 ac_cv_working_tzset=no
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014575fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14577 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014578fi
14579
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014580fi
14581
Matthias Kloseb9621712010-04-24 17:59:49 +000014582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
14583$as_echo "$ac_cv_working_tzset" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014584if test "$ac_cv_working_tzset" = yes
14585then
14586
Matthias Kloseb9621712010-04-24 17:59:49 +000014587$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
Guido van Rossumd11b62e2003-03-14 21:51:36 +000014588
14589fi
14590
Martin v. Löwis94717ed2002-09-09 14:24:16 +000014591# Look for subsecond timestamps in struct stat
Matthias Kloseb9621712010-04-24 17:59:49 +000014592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
14593$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014594if ${ac_cv_stat_tv_nsec+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014595 $as_echo_n "(cached) " >&6
Martin v. Löwis94717ed2002-09-09 14:24:16 +000014596else
Matthias Kloseb9621712010-04-24 17:59:49 +000014597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000014598/* end confdefs.h. */
Martin v. Löwis94717ed2002-09-09 14:24:16 +000014599#include <sys/stat.h>
Martin v. Löwis94717ed2002-09-09 14:24:16 +000014600int
14601main ()
14602{
14603
14604struct stat st;
14605st.st_mtim.tv_nsec = 1;
14606
14607 ;
14608 return 0;
14609}
14610_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014611if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa32c9942002-09-09 16:17:47 +000014612 ac_cv_stat_tv_nsec=yes
Martin v. Löwis94717ed2002-09-09 14:24:16 +000014613else
Matthias Kloseb9621712010-04-24 17:59:49 +000014614 ac_cv_stat_tv_nsec=no
Martin v. Löwis94717ed2002-09-09 14:24:16 +000014615fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617fi
14618
Matthias Kloseb9621712010-04-24 17:59:49 +000014619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
14620$as_echo "$ac_cv_stat_tv_nsec" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:16 +000014621if test "$ac_cv_stat_tv_nsec" = yes
14622then
14623
Matthias Kloseb9621712010-04-24 17:59:49 +000014624$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
Martin v. Löwis94717ed2002-09-09 14:24:16 +000014625
14626fi
14627
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000014628# Look for BSD style subsecond timestamps in struct stat
Matthias Kloseb9621712010-04-24 17:59:49 +000014629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
14630$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014631if ${ac_cv_stat_tv_nsec2+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014632 $as_echo_n "(cached) " >&6
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000014633else
Matthias Kloseb9621712010-04-24 17:59:49 +000014634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000014635/* end confdefs.h. */
14636#include <sys/stat.h>
14637int
14638main ()
14639{
14640
14641struct stat st;
14642st.st_mtimespec.tv_nsec = 1;
14643
14644 ;
14645 return 0;
14646}
14647_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014648if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000014649 ac_cv_stat_tv_nsec2=yes
14650else
Matthias Kloseb9621712010-04-24 17:59:49 +000014651 ac_cv_stat_tv_nsec2=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000014652fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654fi
14655
Matthias Kloseb9621712010-04-24 17:59:49 +000014656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
14657$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000014658if test "$ac_cv_stat_tv_nsec2" = yes
14659then
14660
Matthias Kloseb9621712010-04-24 17:59:49 +000014661$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000014662
14663fi
14664
doko@ubuntu.com9dc823d2012-07-07 03:06:42 +020014665ac_save_cppflags="$CPPFLAGS"
14666CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
Jack Jansen666b1e72001-10-31 12:11:48 +000014667# On HP/UX 11.0, mvwdelch is a block with a return statement
Matthias Kloseb9621712010-04-24 17:59:49 +000014668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
14669$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014670if ${ac_cv_mvwdelch_is_expression+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014671 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000014672else
Matthias Kloseb9621712010-04-24 17:59:49 +000014673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000014674/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:48 +000014675#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014676int
14677main ()
14678{
Jack Jansen666b1e72001-10-31 12:11:48 +000014679
14680 int rtn;
14681 rtn = mvwdelch(0,0,0);
14682
Martin v. Löwis11437992002-04-12 09:54:03 +000014683 ;
14684 return 0;
14685}
14686_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014687if ac_fn_c_try_compile "$LINENO"; then :
Jack Jansen666b1e72001-10-31 12:11:48 +000014688 ac_cv_mvwdelch_is_expression=yes
14689else
Matthias Kloseb9621712010-04-24 17:59:49 +000014690 ac_cv_mvwdelch_is_expression=no
Jack Jansen666b1e72001-10-31 12:11:48 +000014691fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693fi
14694
Matthias Kloseb9621712010-04-24 17:59:49 +000014695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
14696$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
Jack Jansen666b1e72001-10-31 12:11:48 +000014697
14698if test "$ac_cv_mvwdelch_is_expression" = yes
14699then
Martin v. Löwis11437992002-04-12 09:54:03 +000014700
Matthias Kloseb9621712010-04-24 17:59:49 +000014701$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:48 +000014702
14703fi
14704
Matthias Kloseb9621712010-04-24 17:59:49 +000014705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
14706$as_echo_n "checking whether WINDOW has _flags... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014707if ${ac_cv_window_has_flags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014708 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000014709else
Matthias Kloseb9621712010-04-24 17:59:49 +000014710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000014711/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:48 +000014712#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014713int
14714main ()
14715{
Jack Jansen666b1e72001-10-31 12:11:48 +000014716
14717 WINDOW *w;
14718 w->_flags = 0;
14719
Martin v. Löwis11437992002-04-12 09:54:03 +000014720 ;
14721 return 0;
14722}
14723_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014724if ac_fn_c_try_compile "$LINENO"; then :
Jack Jansen666b1e72001-10-31 12:11:48 +000014725 ac_cv_window_has_flags=yes
14726else
Matthias Kloseb9621712010-04-24 17:59:49 +000014727 ac_cv_window_has_flags=no
Jack Jansen666b1e72001-10-31 12:11:48 +000014728fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730fi
14731
Matthias Kloseb9621712010-04-24 17:59:49 +000014732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
14733$as_echo "$ac_cv_window_has_flags" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000014734
Jack Jansen666b1e72001-10-31 12:11:48 +000014735
14736if test "$ac_cv_window_has_flags" = yes
14737then
Martin v. Löwis11437992002-04-12 09:54:03 +000014738
Matthias Kloseb9621712010-04-24 17:59:49 +000014739$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:48 +000014740
14741fi
14742
Matthias Kloseb9621712010-04-24 17:59:49 +000014743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
14744$as_echo_n "checking for is_term_resized... " >&6; }
14745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014746/* end confdefs.h. */
14747#include <curses.h>
14748int
14749main ()
14750{
14751void *x=is_term_resized
14752 ;
14753 return 0;
14754}
14755_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014756if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis24a880b2002-12-31 12:55:15 +000014757
Matthias Kloseb9621712010-04-24 17:59:49 +000014758$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014759
Matthias Kloseb159a552010-04-25 21:00:44 +000014760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000014761$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014762else
Matthias Kloseb9621712010-04-24 17:59:49 +000014763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014765
14766fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14768
Matthias Kloseb9621712010-04-24 17:59:49 +000014769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
14770$as_echo_n "checking for resize_term... " >&6; }
14771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014772/* end confdefs.h. */
14773#include <curses.h>
14774int
14775main ()
14776{
14777void *x=resize_term
14778 ;
14779 return 0;
14780}
14781_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014782if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014783
Matthias Kloseb9621712010-04-24 17:59:49 +000014784$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014785
Matthias Kloseb159a552010-04-25 21:00:44 +000014786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000014787$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014788else
Matthias Kloseb9621712010-04-24 17:59:49 +000014789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014791
14792fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794
Matthias Kloseb9621712010-04-24 17:59:49 +000014795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
14796$as_echo_n "checking for resizeterm... " >&6; }
14797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014798/* end confdefs.h. */
14799#include <curses.h>
14800int
14801main ()
14802{
14803void *x=resizeterm
14804 ;
14805 return 0;
14806}
14807_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014808if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014809
Matthias Kloseb9621712010-04-24 17:59:49 +000014810$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014811
Matthias Kloseb159a552010-04-25 21:00:44 +000014812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000014813$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014814else
Matthias Kloseb9621712010-04-24 17:59:49 +000014815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:12 +000014817
14818fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
doko@ubuntu.com9dc823d2012-07-07 03:06:42 +020014820# last curses configure check
14821CPPFLAGS=$ac_save_cppflags
Thomas Wouters47b49bf2007-08-30 22:15:33 +000014822
doko@ubuntu.comb457b9b2012-06-30 19:28:16 +020014823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
14824$as_echo "$as_me: checking for device files" >&6;}
14825
14826if test "x$cross_compiling" = xyes; then
14827 if test "${ac_cv_file__dev_ptmx+set}" != set; then
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
14829$as_echo_n "checking for /dev/ptmx... " >&6; }
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
14831$as_echo "not set" >&6; }
14832 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
14833 fi
14834 if test "${ac_cv_file__dev_ptc+set}" != set; then
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
14836$as_echo_n "checking for /dev/ptc... " >&6; }
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
14838$as_echo "not set" >&6; }
14839 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
14840 fi
14841fi
14842
Matthias Kloseb9621712010-04-24 17:59:49 +000014843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
14844$as_echo_n "checking for /dev/ptmx... " >&6; }
doko@ubuntu.comb457b9b2012-06-30 19:28:16 +020014845if ${ac_cv_file__dev_ptmx+:} false; then :
14846 $as_echo_n "(cached) " >&6
14847else
14848 test "$cross_compiling" = yes &&
14849 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14850if test -r "/dev/ptmx"; then
14851 ac_cv_file__dev_ptmx=yes
14852else
14853 ac_cv_file__dev_ptmx=no
14854fi
14855fi
14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
14857$as_echo "$ac_cv_file__dev_ptmx" >&6; }
14858if test "x$ac_cv_file__dev_ptmx" = xyes; then :
Thomas Wouters89f507f2006-12-13 04:49:30 +000014859
doko@ubuntu.comb457b9b2012-06-30 19:28:16 +020014860fi
14861
14862if test "x$ac_cv_file__dev_ptmx" = xyes; then
Martin v. Löwis24a880b2002-12-31 12:55:15 +000014863
Matthias Kloseb9621712010-04-24 17:59:49 +000014864$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
Martin v. Löwis24a880b2002-12-31 12:55:15 +000014865
Martin v. Löwis24a880b2002-12-31 12:55:15 +000014866fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
14868$as_echo_n "checking for /dev/ptc... " >&6; }
doko@ubuntu.comb457b9b2012-06-30 19:28:16 +020014869if ${ac_cv_file__dev_ptc+:} false; then :
14870 $as_echo_n "(cached) " >&6
14871else
14872 test "$cross_compiling" = yes &&
14873 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14874if test -r "/dev/ptc"; then
14875 ac_cv_file__dev_ptc=yes
14876else
14877 ac_cv_file__dev_ptc=no
14878fi
14879fi
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
14881$as_echo "$ac_cv_file__dev_ptc" >&6; }
14882if test "x$ac_cv_file__dev_ptc" = xyes; then :
Thomas Wouters89f507f2006-12-13 04:49:30 +000014883
doko@ubuntu.comb457b9b2012-06-30 19:28:16 +020014884fi
14885
14886if test "x$ac_cv_file__dev_ptc" = xyes; then
Neal Norwitz865400f2003-03-21 01:42:58 +000014887
Matthias Kloseb9621712010-04-24 17:59:49 +000014888$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
Neal Norwitz865400f2003-03-21 01:42:58 +000014889
Neal Norwitz865400f2003-03-21 01:42:58 +000014890fi
14891
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014892if test "$have_long_long" = yes
14893then
Matthias Kloseb9621712010-04-24 17:59:49 +000014894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5
14895$as_echo_n "checking for %lld and %llu printf() format support... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014896 if ${ac_cv_have_long_long_format+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014897 $as_echo_n "(cached) " >&6
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014898else
Matthias Kloseb9621712010-04-24 17:59:49 +000014899 if test "$cross_compiling" = yes; then :
Matthias Klose3b739b12012-03-15 19:31:06 +010014900 ac_cv_have_long_long_format="cross -- assuming no"
14901 if test x$GCC = xyes; then
14902 save_CFLAGS=$CFLAGS
14903 CFLAGS="$CFLAGS -Werror -Wformat"
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905/* end confdefs.h. */
14906
14907 #include <stdio.h>
14908 #include <stddef.h>
14909
14910int
14911main ()
14912{
14913
14914 char *buffer;
14915 sprintf(buffer, "%lld", (long long)123);
14916 sprintf(buffer, "%lld", (long long)-123);
14917 sprintf(buffer, "%llu", (unsigned long long)123);
14918
14919 ;
14920 return 0;
14921}
14922_ACEOF
14923if ac_fn_c_try_compile "$LINENO"; then :
14924 ac_cv_have_long_long_format=yes
14925
14926fi
14927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928 CFLAGS=$save_CFLAGS
14929 fi
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014930else
Matthias Kloseb9621712010-04-24 17:59:49 +000014931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014932/* end confdefs.h. */
14933
14934 #include <stdio.h>
14935 #include <stddef.h>
14936 #include <string.h>
14937
14938 #ifdef HAVE_SYS_TYPES_H
14939 #include <sys/types.h>
14940 #endif
14941
14942 int main()
14943 {
14944 char buffer[256];
14945
14946 if (sprintf(buffer, "%lld", (long long)123) < 0)
14947 return 1;
14948 if (strcmp(buffer, "123"))
14949 return 1;
14950
14951 if (sprintf(buffer, "%lld", (long long)-123) < 0)
14952 return 1;
14953 if (strcmp(buffer, "-123"))
14954 return 1;
14955
14956 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
14957 return 1;
14958 if (strcmp(buffer, "123"))
14959 return 1;
14960
14961 return 0;
14962 }
14963
14964_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000014965if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014966 ac_cv_have_long_long_format=yes
14967else
Matthias Kloseb9621712010-04-24 17:59:49 +000014968 ac_cv_have_long_long_format=no
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014969fi
Matthias Kloseb9621712010-04-24 17:59:49 +000014970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14971 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014972fi
14973
14974
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014975fi
14976
Matthias Kloseb9621712010-04-24 17:59:49 +000014977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5
14978$as_echo "$ac_cv_have_long_long_format" >&6; }
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014979fi
14980
Mark Dickinson89d7d412009-12-31 20:50:59 +000014981if test "$ac_cv_have_long_long_format" = yes
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014982then
14983
Matthias Kloseb9621712010-04-24 17:59:49 +000014984$as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014985
14986fi
14987
Ronald Oussoren3c1928a2009-11-19 17:15:31 +000014988if test $ac_sys_system = Darwin
14989then
14990 LIBS="$LIBS -framework CoreFoundation"
14991fi
Mark Dickinson6ce4a9a2009-11-16 17:00:11 +000014992
Matthias Kloseb9621712010-04-24 17:59:49 +000014993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
14994$as_echo_n "checking for %zd printf() format support... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020014995if ${ac_cv_have_size_t_format+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000014996 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000014997else
Matthias Kloseb9621712010-04-24 17:59:49 +000014998 if test "$cross_compiling" = yes; then :
Benjamin Peterson8f326b22009-12-13 02:10:36 +000014999 ac_cv_have_size_t_format="cross -- assuming yes"
15000
Thomas Wouters477c8d52006-05-27 19:21:47 +000015001else
Matthias Kloseb9621712010-04-24 17:59:49 +000015002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters477c8d52006-05-27 19:21:47 +000015003/* end confdefs.h. */
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000015004
Thomas Wouters477c8d52006-05-27 19:21:47 +000015005#include <stdio.h>
15006#include <stddef.h>
15007#include <string.h>
15008
Christian Heimes2c181612007-12-17 20:04:13 +000015009#ifdef HAVE_SYS_TYPES_H
15010#include <sys/types.h>
15011#endif
Thomas Wouters89f507f2006-12-13 04:49:30 +000015012
15013#ifdef HAVE_SSIZE_T
15014typedef ssize_t Py_ssize_t;
15015#elif SIZEOF_VOID_P == SIZEOF_LONG
15016typedef long Py_ssize_t;
15017#else
15018typedef int Py_ssize_t;
15019#endif
Thomas Wouters477c8d52006-05-27 19:21:47 +000015020
Christian Heimes2c181612007-12-17 20:04:13 +000015021int main()
15022{
15023 char buffer[256];
15024
Thomas Wouters477c8d52006-05-27 19:21:47 +000015025 if(sprintf(buffer, "%zd", (size_t)123) < 0)
15026 return 1;
15027
Thomas Wouters89f507f2006-12-13 04:49:30 +000015028 if (strcmp(buffer, "123"))
15029 return 1;
15030
15031 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
15032 return 1;
15033
15034 if (strcmp(buffer, "-123"))
Thomas Wouters477c8d52006-05-27 19:21:47 +000015035 return 1;
15036
15037 return 0;
15038}
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000015039
Thomas Wouters477c8d52006-05-27 19:21:47 +000015040_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000015041if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000015042 ac_cv_have_size_t_format=yes
Alexandre Vassalotti19142282009-07-17 23:11:52 +000015043else
Matthias Kloseb9621712010-04-24 17:59:49 +000015044 ac_cv_have_size_t_format=no
Alexandre Vassalotti19142282009-07-17 23:11:52 +000015045fi
Matthias Kloseb9621712010-04-24 17:59:49 +000015046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15047 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:53 +000015048fi
15049
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000015050fi
Matthias Kloseb9621712010-04-24 17:59:49 +000015051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
15052$as_echo "$ac_cv_have_size_t_format" >&6; }
Benjamin Peterson8f326b22009-12-13 02:10:36 +000015053if test "$ac_cv_have_size_t_format" != no ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000015054
Matthias Kloseb9621712010-04-24 17:59:49 +000015055$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000015056
15057fi
15058
Matthias Kloseb9621712010-04-24 17:59:49 +000015059ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
Martin v. Löwis01c04012002-11-11 14:58:44 +000015060#ifdef HAVE_SYS_TYPES_H
15061#include <sys/types.h>
15062#endif
15063#ifdef HAVE_SYS_SOCKET_H
15064#include <sys/socket.h>
15065#endif
15066
Matthias Kloseb9621712010-04-24 17:59:49 +000015067"
Victor Stinnere0be4232011-10-25 13:06:09 +020015068if test "x$ac_cv_type_socklen_t" = xyes; then :
Martin v. Löwis01c04012002-11-11 14:58:44 +000015069
Martin v. Löwis11437992002-04-12 09:54:03 +000015070else
Guido van Rossum95713eb2000-05-18 20:53:31 +000015071
Matthias Kloseb9621712010-04-24 17:59:49 +000015072$as_echo "#define socklen_t int" >>confdefs.h
Guido van Rossum95713eb2000-05-18 20:53:31 +000015073
15074fi
15075
Michael W. Hudson54241132001-12-07 15:38:26 +000015076
Matthias Kloseb9621712010-04-24 17:59:49 +000015077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
15078$as_echo_n "checking for broken mbstowcs... " >&6; }
Victor Stinnere0be4232011-10-25 13:06:09 +020015079if ${ac_cv_broken_mbstowcs+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:49 +000015080 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000015081else
Matthias Kloseb9621712010-04-24 17:59:49 +000015082 if test "$cross_compiling" = yes; then :
Antoine Pitroufff95302008-09-03 18:58:51 +000015083 ac_cv_broken_mbstowcs=no
15084else
Matthias Kloseb9621712010-04-24 17:59:49 +000015085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitroufff95302008-09-03 18:58:51 +000015086/* end confdefs.h. */
15087
Stefan Krah19c21392012-11-22 23:47:32 +010015088#include <stdio.h>
Antoine Pitroufff95302008-09-03 18:58:51 +000015089#include<stdlib.h>
15090int main() {
15091 size_t len = -1;
15092 const char *str = "text";
15093 len = mbstowcs(NULL, str, 0);
15094 return (len != 4);
15095}
15096
15097_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000015098if ac_fn_c_try_run "$LINENO"; then :
Antoine Pitroufff95302008-09-03 18:58:51 +000015099 ac_cv_broken_mbstowcs=no
15100else
Matthias Kloseb9621712010-04-24 17:59:49 +000015101 ac_cv_broken_mbstowcs=yes
Antoine Pitroufff95302008-09-03 18:58:51 +000015102fi
Matthias Kloseb9621712010-04-24 17:59:49 +000015103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15104 conftest.$ac_objext conftest.beam conftest.$ac_ext
Antoine Pitroufff95302008-09-03 18:58:51 +000015105fi
15106
Alexandre Vassalottib0a61d72009-07-17 23:19:37 +000015107fi
15108
Matthias Kloseb9621712010-04-24 17:59:49 +000015109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
15110$as_echo "$ac_cv_broken_mbstowcs" >&6; }
Antoine Pitroufff95302008-09-03 18:58:51 +000015111if test "$ac_cv_broken_mbstowcs" = yes
15112then
15113
Matthias Kloseb9621712010-04-24 17:59:49 +000015114$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
Antoine Pitroufff95302008-09-03 18:58:51 +000015115
15116fi
15117
Antoine Pitroub52ec782009-01-25 16:34:23 +000015118# Check for --with-computed-gotos
Matthias Kloseb9621712010-04-24 17:59:49 +000015119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
15120$as_echo_n "checking for --with-computed-gotos... " >&6; }
Antoine Pitroub52ec782009-01-25 16:34:23 +000015121
15122# Check whether --with-computed-gotos was given.
Matthias Kloseb9621712010-04-24 17:59:49 +000015123if test "${with_computed_gotos+set}" = set; then :
Antoine Pitroub52ec782009-01-25 16:34:23 +000015124 withval=$with_computed_gotos;
Antoine Pitrou042b1282010-08-13 21:15:58 +000015125if test "$withval" = yes
Antoine Pitroub52ec782009-01-25 16:34:23 +000015126then
15127
Matthias Kloseb9621712010-04-24 17:59:49 +000015128$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
Antoine Pitroub52ec782009-01-25 16:34:23 +000015129
Matthias Kloseb9621712010-04-24 17:59:49 +000015130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15131$as_echo "yes" >&6; }
Antoine Pitroub52ec782009-01-25 16:34:23 +000015132fi
Antoine Pitrou042b1282010-08-13 21:15:58 +000015133if test "$withval" = no
15134then
15135
15136$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
15137
Matthias Kloseb9621712010-04-24 17:59:49 +000015138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15139$as_echo "no" >&6; }
Antoine Pitroub52ec782009-01-25 16:34:23 +000015140fi
15141
Antoine Pitrou042b1282010-08-13 21:15:58 +000015142else
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
15144$as_echo "no value specified" >&6; }
15145fi
15146
Antoine Pitroub52ec782009-01-25 16:34:23 +000015147
Matthias Kloseb17289e2012-03-15 19:51:34 +010015148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
15149$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
15150if ${ac_cv_computed_gotos+:} false; then :
15151 $as_echo_n "(cached) " >&6
15152else
15153 if test "$cross_compiling" = yes; then :
15154 if test "${with_computed_gotos+set}" = set; then
15155 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
15156 else
15157 ac_cv_computed_gotos=no
15158 fi
15159else
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161/* end confdefs.h. */
15162
15163int main(int argc, char **argv)
15164{
15165 static void *targets[1] = { &&LABEL1 };
15166 goto LABEL2;
15167LABEL1:
15168 return 0;
15169LABEL2:
15170 goto *targets[0];
15171 return 1;
15172}
15173
15174_ACEOF
15175if ac_fn_c_try_run "$LINENO"; then :
15176 ac_cv_computed_gotos=yes
15177else
15178 ac_cv_computed_gotos=no
15179fi
15180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15181 conftest.$ac_objext conftest.beam conftest.$ac_ext
15182fi
15183
15184fi
15185
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
15187$as_echo "$ac_cv_computed_gotos" >&6; }
15188case "$ac_cv_computed_gotos" in yes*)
15189
15190$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
15191
15192esac
15193
Benjamin Petersond8d835b2010-10-15 23:14:46 +000015194case $ac_sys_system in
15195AIX*)
15196
15197$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
15198 ;;
15199esac
Antoine Pitroub52ec782009-01-25 16:34:23 +000015200
Michael W. Hudson54241132001-12-07 15:38:26 +000015201
Mark Dickinsonb2153e92010-05-05 22:31:36 +000015202
15203
Martin v. Löwis06f15bb2001-12-02 13:02:32 +000015204for h in `(cd $srcdir;echo Python/thread_*.h)`
15205do
15206 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
15207done
15208
Michael W. Hudson54241132001-12-07 15:38:26 +000015209
Neal Norwitzd24499d2005-12-18 21:36:39 +000015210SRCDIRS="Parser Grammar Objects Python Modules Mac"
Matthias Kloseb9621712010-04-24 17:59:49 +000015211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
15212$as_echo_n "checking for build directories... " >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +000015213for dir in $SRCDIRS; do
15214 if test ! -d $dir; then
15215 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:53 +000015216 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +000015217done
Matthias Kloseb9621712010-04-24 17:59:49 +000015218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15219$as_echo "done" >&6; }
Fred Drake036144d2000-10-26 17:09:35 +000015220
Stefan Krah1919b7e2012-03-21 18:25:23 +010015221# Availability of -O2:
15222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
15223$as_echo_n "checking for -O2... " >&6; }
15224saved_cflags="$CFLAGS"
15225CFLAGS="-O2"
15226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227/* end confdefs.h. */
15228
15229int
15230main ()
15231{
15232
15233
15234 ;
15235 return 0;
15236}
15237_ACEOF
15238if ac_fn_c_try_compile "$LINENO"; then :
15239 have_O2=yes
15240else
15241 have_O2=no
15242fi
15243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
15245$as_echo "$have_O2" >&6; }
15246CFLAGS="$saved_cflags"
15247
15248# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
15249# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
15251$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
15252saved_cflags="$CFLAGS"
15253CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
15254if test "$have_O2" = no; then
15255 CFLAGS=""
15256fi
15257if test "$cross_compiling" = yes; then :
15258 have_glibc_memmove_bug=undefined
15259else
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261/* end confdefs.h. */
15262
15263#include <stdio.h>
15264#include <stdlib.h>
15265#include <string.h>
15266void foo(void *p, void *q) { memmove(p, q, 19); }
15267int main() {
15268 char a[32] = "123456789000000000";
15269 foo(&a[9], a);
15270 if (strcmp(a, "123456789123456789000000000") != 0)
15271 return 1;
15272 foo(a, &a[9]);
15273 if (strcmp(a, "123456789000000000") != 0)
15274 return 1;
15275 return 0;
15276}
15277
15278_ACEOF
15279if ac_fn_c_try_run "$LINENO"; then :
15280 have_glibc_memmove_bug=no
15281else
15282 have_glibc_memmove_bug=yes
15283fi
15284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15285 conftest.$ac_objext conftest.beam conftest.$ac_ext
15286fi
15287
15288CFLAGS="$saved_cflags"
15289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
15290$as_echo "$have_glibc_memmove_bug" >&6; }
15291if test "$have_glibc_memmove_bug" = yes; then
15292
15293$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
15294
15295fi
15296
15297if test "$have_gcc_asm_for_x87" = yes; then
15298 # Some versions of gcc miscompile inline asm:
15299 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
15300 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
15301 case $CC in
15302 *gcc*)
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
15304$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
15305 saved_cflags="$CFLAGS"
15306 CFLAGS="-O2"
15307 if test "$cross_compiling" = yes; then :
15308 have_ipa_pure_const_bug=undefined
15309else
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311/* end confdefs.h. */
15312
15313 __attribute__((noinline)) int
15314 foo(int *p) {
15315 int r;
15316 asm ( "movl \$6, (%1)\n\t"
15317 "xorl %0, %0\n\t"
15318 : "=r" (r) : "r" (p) : "memory"
15319 );
15320 return r;
15321 }
15322 int main() {
15323 int p = 8;
15324 if ((foo(&p) ? : p) != 6)
15325 return 1;
15326 return 0;
15327 }
15328
15329_ACEOF
15330if ac_fn_c_try_run "$LINENO"; then :
15331 have_ipa_pure_const_bug=no
15332else
15333 have_ipa_pure_const_bug=yes
15334fi
15335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15336 conftest.$ac_objext conftest.beam conftest.$ac_ext
15337fi
15338
15339 CFLAGS="$saved_cflags"
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
15341$as_echo "$have_ipa_pure_const_bug" >&6; }
15342 if test "$have_ipa_pure_const_bug" = yes; then
15343
15344$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
15345
15346 fi
15347 ;;
15348 esac
15349fi
15350
Ned Deily322f5ba2013-11-21 23:01:59 -080015351# ensurepip option
15352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
15353$as_echo_n "checking for ensurepip... " >&6; }
15354
15355# Check whether --with-ensurepip was given.
15356if test "${with_ensurepip+set}" = set; then :
15357 withval=$with_ensurepip;
15358else
15359 with_ensurepip=upgrade
15360fi
15361
15362case $with_ensurepip in #(
15363 yes|upgrade) :
15364 ENSUREPIP=upgrade ;; #(
15365 install) :
15366 ENSUREPIP=install ;; #(
15367 no) :
15368 ENSUREPIP=no ;; #(
15369 *) :
15370 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
15371esac
15372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
15373$as_echo "$ENSUREPIP" >&6; }
15374
15375
Guido van Rossum627b2d71993-12-24 10:39:16 +000015376# generate output files
doko@python.org87421192013-01-26 11:39:31 +010015377ac_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:44 +000015378
Antoine Pitrou8e6b4072010-09-10 19:44:44 +000015379ac_config_files="$ac_config_files Modules/ld_so_aix"
15380
Martin v. Löwis11437992002-04-12 09:54:03 +000015381cat >confcache <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015382# This file is a shell script that caches the results of configure
15383# tests run on this system so they can be shared between configure
Martin v. Löwis11437992002-04-12 09:54:03 +000015384# scripts and configure runs, see configure's option --config-cache.
15385# It is not useful on other systems. If it contains results you don't
15386# want to keep, you may remove or edit it.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015387#
Martin v. Löwis11437992002-04-12 09:54:03 +000015388# config.status only pays attention to the cache file if you give it
15389# the --recheck option to rerun configure.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015390#
Skip Montanaro6dead952003-09-25 14:50:04 +000015391# `ac_cv_env_foo' variables (set or unset) will be overridden when
Martin v. Löwis11437992002-04-12 09:54:03 +000015392# loading this file, other *unset* `ac_cv_foo' will be assigned the
15393# following values.
15394
15395_ACEOF
15396
Guido van Rossumf78abae1997-01-21 22:02:36 +000015397# The following way of writing the cache mishandles newlines in values,
15398# but we know of no workaround that is simple, portable, and efficient.
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015399# So, we kill variables containing newlines.
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015400# Ultrix sh set writes to stderr and can't be redirected directly,
15401# and sets the high bit in the cache file unless we assign to the vars.
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015402(
15403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15404 eval ac_val=\$$ac_var
15405 case $ac_val in #(
15406 *${as_nl}*)
15407 case $ac_var in #(
Matthias Kloseb9621712010-04-24 17:59:49 +000015408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15409$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015410 esac
15411 case $ac_var in #(
15412 _ | IFS | as_nl) ;; #(
Matthias Kloseb9621712010-04-24 17:59:49 +000015413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15414 *) { eval $ac_var=; unset $ac_var;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015415 esac ;;
15416 esac
15417 done
15418
Martin v. Löwis11437992002-04-12 09:54:03 +000015419 (set) 2>&1 |
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015420 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15421 *${as_nl}ac_space=\ *)
Matthias Kloseb9621712010-04-24 17:59:49 +000015422 # `set' does not quote correctly, so add quotes: double-quote
15423 # substitution turns \\\\ into \\, and sed turns \\ into \.
Martin v. Löwis11437992002-04-12 09:54:03 +000015424 sed -n \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015425 "s/'/'\\\\''/g;
15426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015427 ;; #(
Martin v. Löwis11437992002-04-12 09:54:03 +000015428 *)
15429 # `set' quotes correctly as required by POSIX, so do not add quotes.
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Martin v. Löwis11437992002-04-12 09:54:03 +000015431 ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015432 esac |
15433 sort
15434) |
Martin v. Löwis11437992002-04-12 09:54:03 +000015435 sed '
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015436 /^ac_cv_env_/b end
Martin v. Löwis11437992002-04-12 09:54:03 +000015437 t clear
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015438 :clear
Martin v. Löwis11437992002-04-12 09:54:03 +000015439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15440 t end
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015441 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15442 :end' >>confcache
15443if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15444 if test -w "$cache_file"; then
Victor Stinnere0be4232011-10-25 13:06:09 +020015445 if test "x$cache_file" != "x/dev/null"; then
Matthias Kloseb9621712010-04-24 17:59:49 +000015446 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15447$as_echo "$as_me: updating cache $cache_file" >&6;}
Victor Stinnere0be4232011-10-25 13:06:09 +020015448 if test ! -f "$cache_file" || test -h "$cache_file"; then
15449 cat confcache >"$cache_file"
15450 else
15451 case $cache_file in #(
15452 */* | ?:*)
15453 mv -f confcache "$cache_file"$$ &&
15454 mv -f "$cache_file"$$ "$cache_file" ;; #(
15455 *)
15456 mv -f confcache "$cache_file" ;;
15457 esac
15458 fi
15459 fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015460 else
Matthias Kloseb9621712010-04-24 17:59:49 +000015461 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15462$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015463 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015464fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015465rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:40 +000015466
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015467test "x$prefix" = xNONE && prefix=$ac_default_prefix
15468# Let make expand exec_prefix.
15469test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:40 +000015470
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015471DEFS=-DHAVE_CONFIG_H
15472
Skip Montanaro6dead952003-09-25 14:50:04 +000015473ac_libobjs=
15474ac_ltlibobjs=
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020015475U=
Skip Montanaro6dead952003-09-25 14:50:04 +000015476for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15477 # 1. Remove the extension, and $U if already installed.
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Matthias Kloseb9621712010-04-24 17:59:49 +000015479 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15481 # will be set to the directory where LIBOBJS objects are built.
Matthias Kloseb9621712010-04-24 17:59:49 +000015482 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15483 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Skip Montanaro6dead952003-09-25 14:50:04 +000015484done
15485LIBOBJS=$ac_libobjs
15486
15487LTLIBOBJS=$ac_ltlibobjs
15488
15489
Martin v. Löwis11437992002-04-12 09:54:03 +000015490
Matthias Kloseb9621712010-04-24 17:59:49 +000015491
Victor Stinnere0be4232011-10-25 13:06:09 +020015492: "${CONFIG_STATUS=./config.status}"
Matthias Kloseb9621712010-04-24 17:59:49 +000015493ac_write_fail=0
Martin v. Löwis11437992002-04-12 09:54:03 +000015494ac_clean_files_save=$ac_clean_files
15495ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Matthias Kloseb9621712010-04-24 17:59:49 +000015496{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15497$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15498as_write_fail=0
15499cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000015500#! $SHELL
15501# Generated by $as_me.
Guido van Rossum627b2d71993-12-24 10:39:16 +000015502# Run this file to recreate the current configuration.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015503# Compiler output produced by configure, useful for debugging
Martin v. Löwis11437992002-04-12 09:54:03 +000015504# configure, is in config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:16 +000015505
Martin v. Löwis11437992002-04-12 09:54:03 +000015506debug=false
Skip Montanaro6dead952003-09-25 14:50:04 +000015507ac_cs_recheck=false
15508ac_cs_silent=false
Jack Jansendd19cf82001-12-06 22:36:17 +000015509
Matthias Kloseb9621712010-04-24 17:59:49 +000015510SHELL=\${CONFIG_SHELL-$SHELL}
15511export SHELL
15512_ASEOF
15513cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15514## -------------------- ##
15515## M4sh Initialization. ##
15516## -------------------- ##
Jack Jansendd19cf82001-12-06 22:36:17 +000015517
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015518# Be more Bourne compatible
15519DUALCASE=1; export DUALCASE # for MKS sh
Matthias Kloseb9621712010-04-24 17:59:49 +000015520if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Martin v. Löwis11437992002-04-12 09:54:03 +000015521 emulate sh
15522 NULLCMD=:
Matthias Kloseb9621712010-04-24 17:59:49 +000015523 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:04 +000015524 # is contrary to our usage. Disable this feature.
15525 alias -g '${1+"$@"}'='"$@"'
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015526 setopt NO_GLOB_SUBST
Skip Montanaroeb33e5a2007-08-17 12:57:41 +000015527else
Matthias Kloseb9621712010-04-24 17:59:49 +000015528 case `(set -o) 2>/dev/null` in #(
15529 *posix*) :
15530 set -o posix ;; #(
15531 *) :
15532 ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015533esac
Michael W. Hudson54241132001-12-07 15:38:26 +000015534fi
Thomas Wouters89f507f2006-12-13 04:49:30 +000015535
15536
Matthias Kloseb9621712010-04-24 17:59:49 +000015537as_nl='
15538'
15539export as_nl
15540# Printing a long string crashes Solaris 7 /usr/bin/printf.
15541as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15542as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15543as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15544# Prefer a ksh shell builtin over an external printf program on Solaris,
15545# but without wasting forks for bash or zsh.
15546if test -z "$BASH_VERSION$ZSH_VERSION" \
15547 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15548 as_echo='print -r --'
15549 as_echo_n='print -rn --'
15550elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15551 as_echo='printf %s\n'
15552 as_echo_n='printf %s'
15553else
15554 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15555 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15556 as_echo_n='/usr/ucb/echo -n'
15557 else
15558 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15559 as_echo_n_body='eval
15560 arg=$1;
15561 case $arg in #(
15562 *"$as_nl"*)
15563 expr "X$arg" : "X\\(.*\\)$as_nl";
15564 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15565 esac;
15566 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15567 '
15568 export as_echo_n_body
15569 as_echo_n='sh -c $as_echo_n_body as_echo'
15570 fi
15571 export as_echo_body
15572 as_echo='sh -c $as_echo_body as_echo'
15573fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015574
15575# The user is always right.
15576if test "${PATH_SEPARATOR+set}" != set; then
Matthias Kloseb9621712010-04-24 17:59:49 +000015577 PATH_SEPARATOR=:
15578 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15579 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15580 PATH_SEPARATOR=';'
15581 }
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015582fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015583
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015584
15585# IFS
15586# We need space, tab and new line, in precisely that order. Quoting is
15587# there to prevent editors from complaining about space-tab.
15588# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15589# splitting by setting IFS to empty value.)
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015590IFS=" "" $as_nl"
15591
15592# Find who we are. Look in the path if we contain no directory separator.
Victor Stinnere0be4232011-10-25 13:06:09 +020015593as_myself=
Matthias Kloseb9621712010-04-24 17:59:49 +000015594case $0 in #((
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015595 *[\\/]* ) as_myself=$0 ;;
15596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:03 +000015597for as_dir in $PATH
15598do
15599 IFS=$as_save_IFS
15600 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49 +000015601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15602 done
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015603IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +000015604
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015605 ;;
15606esac
15607# We did not find ourselves, most probably we were run as `sh COMMAND'
15608# in which case we are not to be found in the path.
15609if test "x$as_myself" = x; then
15610 as_myself=$0
15611fi
15612if test ! -f "$as_myself"; then
Matthias Kloseb9621712010-04-24 17:59:49 +000015613 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15614 exit 1
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015615fi
15616
Matthias Kloseb9621712010-04-24 17:59:49 +000015617# Unset variables that we do not need and which cause bugs (e.g. in
15618# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15619# suppresses any "Segmentation fault" message there. '((' could
15620# trigger a bug in pdksh 5.2.14.
15621for as_var in BASH_ENV ENV MAIL MAILPATH
15622do eval test x\${$as_var+set} = xset \
15623 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015624done
15625PS1='$ '
15626PS2='> '
15627PS4='+ '
15628
15629# NLS nuisances.
Matthias Kloseb9621712010-04-24 17:59:49 +000015630LC_ALL=C
15631export LC_ALL
15632LANGUAGE=C
15633export LANGUAGE
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015634
Matthias Kloseb9621712010-04-24 17:59:49 +000015635# CDPATH.
15636(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15637
15638
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020015639# as_fn_error STATUS ERROR [LINENO LOG_FD]
15640# ----------------------------------------
Matthias Kloseb9621712010-04-24 17:59:49 +000015641# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15642# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020015643# script with STATUS, using 1 if that was 0.
Matthias Kloseb9621712010-04-24 17:59:49 +000015644as_fn_error ()
15645{
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020015646 as_status=$1; test $as_status -eq 0 && as_status=1
15647 if test "$4"; then
15648 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15649 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Matthias Kloseb9621712010-04-24 17:59:49 +000015650 fi
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020015651 $as_echo "$as_me: error: $2" >&2
Matthias Kloseb9621712010-04-24 17:59:49 +000015652 as_fn_exit $as_status
15653} # as_fn_error
15654
15655
15656# as_fn_set_status STATUS
15657# -----------------------
15658# Set $? to STATUS, without forking.
15659as_fn_set_status ()
15660{
15661 return $1
15662} # as_fn_set_status
15663
15664# as_fn_exit STATUS
15665# -----------------
15666# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15667as_fn_exit ()
15668{
15669 set +e
15670 as_fn_set_status $1
15671 exit $1
15672} # as_fn_exit
15673
15674# as_fn_unset VAR
15675# ---------------
15676# Portably unset VAR.
15677as_fn_unset ()
15678{
15679 { eval $1=; unset $1;}
15680}
15681as_unset=as_fn_unset
15682# as_fn_append VAR VALUE
15683# ----------------------
15684# Append the text in VALUE to the end of the definition contained in VAR. Take
15685# advantage of any shell optimizations that allow amortized linear growth over
15686# repeated appends, instead of the typical quadratic growth present in naive
15687# implementations.
15688if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15689 eval 'as_fn_append ()
15690 {
15691 eval $1+=\$2
15692 }'
15693else
15694 as_fn_append ()
15695 {
15696 eval $1=\$$1\$2
15697 }
15698fi # as_fn_append
15699
15700# as_fn_arith ARG...
15701# ------------------
15702# Perform arithmetic evaluation on the ARGs, and store the result in the
15703# global $as_val. Take advantage of shells that can avoid forks. The arguments
15704# must be portable across $(()) and expr.
15705if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15706 eval 'as_fn_arith ()
15707 {
15708 as_val=$(( $* ))
15709 }'
15710else
15711 as_fn_arith ()
15712 {
15713 as_val=`expr "$@" || test $? -eq 1`
15714 }
15715fi # as_fn_arith
15716
15717
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015718if expr a : '\(a\)' >/dev/null 2>&1 &&
15719 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15720 as_expr=expr
15721else
15722 as_expr=false
15723fi
15724
15725if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15726 as_basename=basename
15727else
15728 as_basename=false
15729fi
15730
Matthias Kloseb9621712010-04-24 17:59:49 +000015731if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15732 as_dirname=dirname
15733else
15734 as_dirname=false
15735fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015736
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015737as_me=`$as_basename -- "$0" ||
15738$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15739 X"$0" : 'X\(//\)$' \| \
15740 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:49 +000015741$as_echo X/"$0" |
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015742 sed '/^.*\/\([^/][^/]*\)\/*$/{
15743 s//\1/
15744 q
15745 }
15746 /^X\/\(\/\/\)$/{
15747 s//\1/
15748 q
15749 }
15750 /^X\/\(\/\).*/{
15751 s//\1/
15752 q
15753 }
15754 s/.*/./; q'`
15755
Matthias Kloseb9621712010-04-24 17:59:49 +000015756# Avoid depending upon Character Ranges.
15757as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15758as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15759as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15760as_cr_digits='0123456789'
15761as_cr_alnum=$as_cr_Letters$as_cr_digits
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015762
15763ECHO_C= ECHO_N= ECHO_T=
Matthias Kloseb9621712010-04-24 17:59:49 +000015764case `echo -n x` in #(((((
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015765-n*)
Matthias Kloseb9621712010-04-24 17:59:49 +000015766 case `echo 'xy\c'` in
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015767 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Matthias Kloseb9621712010-04-24 17:59:49 +000015768 xy) ECHO_C='\c';;
15769 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15770 ECHO_T=' ';;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015771 esac;;
15772*)
15773 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03 +000015774esac
Ronald Oussoren74f29b42009-09-20 20:09:26 +000015775
Martin v. Löwis11437992002-04-12 09:54:03 +000015776rm -f conf$$ conf$$.exe conf$$.file
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015777if test -d conf$$.dir; then
15778 rm -f conf$$.dir/conf$$.file
15779else
15780 rm -f conf$$.dir
Matthias Kloseb9621712010-04-24 17:59:49 +000015781 mkdir conf$$.dir 2>/dev/null
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015782fi
Matthias Kloseb9621712010-04-24 17:59:49 +000015783if (echo >conf$$.file) 2>/dev/null; then
15784 if ln -s conf$$.file conf$$ 2>/dev/null; then
15785 as_ln_s='ln -s'
15786 # ... but there are two gotchas:
15787 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15788 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000015789 # In both cases, we have to default to `cp -pR'.
Matthias Kloseb9621712010-04-24 17:59:49 +000015790 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000015791 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:49 +000015792 elif ln conf$$.file conf$$ 2>/dev/null; then
15793 as_ln_s=ln
15794 else
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000015795 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:49 +000015796 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015797else
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000015798 as_ln_s='cp -pR'
Martin v. Löwis11437992002-04-12 09:54:03 +000015799fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015800rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15801rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03 +000015802
Matthias Kloseb9621712010-04-24 17:59:49 +000015803
15804# as_fn_mkdir_p
15805# -------------
15806# Create "$as_dir" as a directory, including parents if necessary.
15807as_fn_mkdir_p ()
15808{
15809
15810 case $as_dir in #(
15811 -*) as_dir=./$as_dir;;
15812 esac
15813 test -d "$as_dir" || eval $as_mkdir_p || {
15814 as_dirs=
15815 while :; do
15816 case $as_dir in #(
15817 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15818 *) as_qdir=$as_dir;;
15819 esac
15820 as_dirs="'$as_qdir' $as_dirs"
15821 as_dir=`$as_dirname -- "$as_dir" ||
15822$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15823 X"$as_dir" : 'X\(//\)[^/]' \| \
15824 X"$as_dir" : 'X\(//\)$' \| \
15825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15826$as_echo X"$as_dir" |
15827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15828 s//\1/
15829 q
15830 }
15831 /^X\(\/\/\)[^/].*/{
15832 s//\1/
15833 q
15834 }
15835 /^X\(\/\/\)$/{
15836 s//\1/
15837 q
15838 }
15839 /^X\(\/\).*/{
15840 s//\1/
15841 q
15842 }
15843 s/.*/./; q'`
15844 test -d "$as_dir" && break
15845 done
15846 test -z "$as_dirs" || eval "mkdir $as_dirs"
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020015847 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Matthias Kloseb9621712010-04-24 17:59:49 +000015848
15849
15850} # as_fn_mkdir_p
Skip Montanaro6dead952003-09-25 14:50:04 +000015851if mkdir -p . 2>/dev/null; then
Matthias Kloseb9621712010-04-24 17:59:49 +000015852 as_mkdir_p='mkdir -p "$as_dir"'
Skip Montanaro6dead952003-09-25 14:50:04 +000015853else
Skip Montanarof0d5f792004-08-15 14:08:23 +000015854 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04 +000015855 as_mkdir_p=false
15856fi
15857
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000015858
15859# as_fn_executable_p FILE
15860# -----------------------
15861# Test if FILE is an executable regular file.
15862as_fn_executable_p ()
15863{
15864 test -f "$1" && test -x "$1"
15865} # as_fn_executable_p
15866as_test_x='test -x'
15867as_executable_p=as_fn_executable_p
Martin v. Löwis11437992002-04-12 09:54:03 +000015868
15869# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23 +000015870as_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:03 +000015871
15872# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23 +000015873as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +000015874
15875
Martin v. Löwis11437992002-04-12 09:54:03 +000015876exec 6>&1
Matthias Kloseb9621712010-04-24 17:59:49 +000015877## ----------------------------------- ##
15878## Main body of $CONFIG_STATUS script. ##
15879## ----------------------------------- ##
15880_ASEOF
15881test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000015882
Matthias Kloseb9621712010-04-24 17:59:49 +000015883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15884# Save the log message, to keep $0 and so on meaningful, and to
Martin v. Löwis11437992002-04-12 09:54:03 +000015885# report actual input values of CONFIG_FILES etc. instead of their
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015886# values after options handling.
15887ac_log="
Georg Brandl08a90122012-09-29 09:34:13 +020015888This file was extended by python $as_me 3.4, which was
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000015889generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:03 +000015890
15891 CONFIG_FILES = $CONFIG_FILES
15892 CONFIG_HEADERS = $CONFIG_HEADERS
15893 CONFIG_LINKS = $CONFIG_LINKS
15894 CONFIG_COMMANDS = $CONFIG_COMMANDS
15895 $ $0 $@
15896
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015897on `(hostname || uname -n) 2>/dev/null | sed 1q`
15898"
15899
Martin v. Löwis11437992002-04-12 09:54:03 +000015900_ACEOF
15901
Matthias Kloseb9621712010-04-24 17:59:49 +000015902case $ac_config_files in *"
15903"*) set x $ac_config_files; shift; ac_config_files=$*;;
15904esac
15905
15906case $ac_config_headers in *"
15907"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15908esac
15909
15910
15911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000015912# Files that config.status was made for.
Charles-François Natali6613c182011-11-27 12:41:06 +010015913config_files="$ac_config_files"
15914config_headers="$ac_config_headers"
Martin v. Löwis11437992002-04-12 09:54:03 +000015915
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015916_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000015917
Matthias Kloseb9621712010-04-24 17:59:49 +000015918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000015919ac_cs_usage="\
Matthias Kloseb9621712010-04-24 17:59:49 +000015920\`$as_me' instantiates files and other configuration actions
15921from templates according to the current configuration. Unless the files
15922and actions are specified as TAGs, all are instantiated by default.
Martin v. Löwis11437992002-04-12 09:54:03 +000015923
Matthias Kloseb9621712010-04-24 17:59:49 +000015924Usage: $0 [OPTION]... [TAG]...
Martin v. Löwis11437992002-04-12 09:54:03 +000015925
15926 -h, --help print this help, then exit
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015927 -V, --version print version number and configuration settings, then exit
Matthias Kloseb9621712010-04-24 17:59:49 +000015928 --config print configuration, then exit
15929 -q, --quiet, --silent
15930 do not print progress messages
Martin v. Löwis11437992002-04-12 09:54:03 +000015931 -d, --debug don't remove temporary files
15932 --recheck update $as_me by reconfiguring in the same conditions
Matthias Kloseb9621712010-04-24 17:59:49 +000015933 --file=FILE[:TEMPLATE]
15934 instantiate the configuration file FILE
15935 --header=FILE[:TEMPLATE]
15936 instantiate the configuration header FILE
Martin v. Löwis11437992002-04-12 09:54:03 +000015937
15938Configuration files:
15939$config_files
15940
15941Configuration headers:
15942$config_headers
15943
Matthias Kloseb9621712010-04-24 17:59:49 +000015944Report bugs to <http://bugs.python.org/>."
Skip Montanaroeb33e5a2007-08-17 12:57:41 +000015945
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015946_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000015947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15948ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Martin v. Löwis11437992002-04-12 09:54:03 +000015949ac_cs_version="\\
Georg Brandl08a90122012-09-29 09:34:13 +020015950python config.status 3.4
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000015951configured by $0, generated by GNU Autoconf 2.69,
Matthias Kloseb9621712010-04-24 17:59:49 +000015952 with options \\"\$ac_cs_config\\"
Martin v. Löwis11437992002-04-12 09:54:03 +000015953
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000015954Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:03 +000015955This config.status script is free software; the Free Software Foundation
15956gives unlimited permission to copy, distribute and modify it."
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015957
15958ac_pwd='$ac_pwd'
15959srcdir='$srcdir'
15960INSTALL='$INSTALL'
Matthias Klose93a0ef12012-03-15 18:08:34 +010015961MKDIR_P='$MKDIR_P'
Matthias Kloseb9621712010-04-24 17:59:49 +000015962test -n "\$AWK" || AWK=awk
Martin v. Löwis11437992002-04-12 09:54:03 +000015963_ACEOF
15964
Matthias Kloseb9621712010-04-24 17:59:49 +000015965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15966# The default lists apply if the user does not specify any file.
Martin v. Löwis11437992002-04-12 09:54:03 +000015967ac_need_defaults=:
15968while test $# != 0
15969do
15970 case $1 in
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020015971 --*=?*)
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15973 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Skip Montanaro6dead952003-09-25 14:50:04 +000015974 ac_shift=:
Martin v. Löwis11437992002-04-12 09:54:03 +000015975 ;;
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020015976 --*=)
15977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15978 ac_optarg=
15979 ac_shift=:
15980 ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015981 *)
Skip Montanaro6dead952003-09-25 14:50:04 +000015982 ac_option=$1
15983 ac_optarg=$2
15984 ac_shift=shift
15985 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000015986 esac
15987
Skip Montanaro6dead952003-09-25 14:50:04 +000015988 case $ac_option in
Martin v. Löwis11437992002-04-12 09:54:03 +000015989 # Handling of the options.
Skip Montanaro6dead952003-09-25 14:50:04 +000015990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15991 ac_cs_recheck=: ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015992 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Matthias Kloseb9621712010-04-24 17:59:49 +000015993 $as_echo "$ac_cs_version"; exit ;;
15994 --config | --confi | --conf | --con | --co | --c )
15995 $as_echo "$ac_cs_config"; exit ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000015996 --debug | --debu | --deb | --de | --d | -d )
Martin v. Löwis11437992002-04-12 09:54:03 +000015997 debug=: ;;
15998 --file | --fil | --fi | --f )
Skip Montanaro6dead952003-09-25 14:50:04 +000015999 $ac_shift
Matthias Kloseb9621712010-04-24 17:59:49 +000016000 case $ac_optarg in
16001 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016002 '') as_fn_error $? "missing file argument" ;;
Matthias Kloseb9621712010-04-24 17:59:49 +000016003 esac
16004 as_fn_append CONFIG_FILES " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:03 +000016005 ac_need_defaults=false;;
16006 --header | --heade | --head | --hea )
Skip Montanaro6dead952003-09-25 14:50:04 +000016007 $ac_shift
Matthias Kloseb9621712010-04-24 17:59:49 +000016008 case $ac_optarg in
16009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16010 esac
16011 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:03 +000016012 ac_need_defaults=false;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016013 --he | --h)
16014 # Conflict between --help and --header
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016015 as_fn_error $? "ambiguous option: \`$1'
Matthias Kloseb9621712010-04-24 17:59:49 +000016016Try \`$0 --help' for more information.";;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016017 --help | --hel | -h )
Matthias Kloseb9621712010-04-24 17:59:49 +000016018 $as_echo "$ac_cs_usage"; exit ;;
Skip Montanaro6dead952003-09-25 14:50:04 +000016019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16020 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16021 ac_cs_silent=: ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000016022
16023 # This is an error.
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016024 -*) as_fn_error $? "unrecognized option: \`$1'
Matthias Kloseb9621712010-04-24 17:59:49 +000016025Try \`$0 --help' for more information." ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000016026
Matthias Kloseb9621712010-04-24 17:59:49 +000016027 *) as_fn_append ac_config_targets " $1"
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016028 ac_need_defaults=false ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000016029
16030 esac
16031 shift
16032done
16033
Skip Montanaro6dead952003-09-25 14:50:04 +000016034ac_configure_extra_args=
16035
16036if $ac_cs_silent; then
16037 exec 6>/dev/null
16038 ac_configure_extra_args="$ac_configure_extra_args --silent"
16039fi
16040
16041_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000016042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Skip Montanaro6dead952003-09-25 14:50:04 +000016043if \$ac_cs_recheck; then
Ross Lagerwall1b863eb2012-10-29 17:31:54 +000016044 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Matthias Kloseb9621712010-04-24 17:59:49 +000016045 shift
16046 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16047 CONFIG_SHELL='$SHELL'
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016048 export CONFIG_SHELL
Matthias Kloseb9621712010-04-24 17:59:49 +000016049 exec "\$@"
Skip Montanaro6dead952003-09-25 14:50:04 +000016050fi
16051
Martin v. Löwis11437992002-04-12 09:54:03 +000016052_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000016053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016054exec 5>>config.log
16055{
16056 echo
16057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16058## Running $as_me. ##
16059_ASBOX
Matthias Kloseb9621712010-04-24 17:59:49 +000016060 $as_echo "$ac_log"
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016061} >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000016062
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016063_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000016064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016065_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000016066
Matthias Kloseb9621712010-04-24 17:59:49 +000016067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016068
16069# Handling of arguments.
Martin v. Löwis11437992002-04-12 09:54:03 +000016070for ac_config_target in $ac_config_targets
16071do
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016072 case $ac_config_target in
16073 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
16074 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
16075 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
Christian Heimes81ee3ef2008-05-04 22:42:01 +000016076 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
16077 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016078 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
16079 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
Antoine Pitrou20327222009-05-24 20:39:11 +000016080 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
doko@python.org87421192013-01-26 11:39:31 +010016081 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
Antoine Pitrou8e6b4072010-09-10 19:44:44 +000016082 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016083
Victor Stinnere0be4232011-10-25 13:06:09 +020016084 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Martin v. Löwis11437992002-04-12 09:54:03 +000016085 esac
16086done
16087
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016088
Martin v. Löwis11437992002-04-12 09:54:03 +000016089# If the user did not use the arguments to specify the items to instantiate,
16090# then the envvar interface is used. Set only those that are not.
16091# We use the long form for the default assignment because of an extremely
16092# bizarre bug on SunOS 4.1.3.
16093if $ac_need_defaults; then
16094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16096fi
16097
Skip Montanaro6dead952003-09-25 14:50:04 +000016098# Have a temporary directory for convenience. Make it in the build tree
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016099# simply because there is no reason against having it here, and in addition,
Skip Montanaro6dead952003-09-25 14:50:04 +000016100# creating and moving files from /tmp can sometimes cause problems.
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016101# Hook for its removal unless debugging.
16102# Note that there is a small window in which the directory will not be cleaned:
16103# after its creation but before its name has been assigned to `$tmp'.
Martin v. Löwis11437992002-04-12 09:54:03 +000016104$debug ||
16105{
Victor Stinnere0be4232011-10-25 13:06:09 +020016106 tmp= ac_tmp=
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016107 trap 'exit_status=$?
Victor Stinnere0be4232011-10-25 13:06:09 +020016108 : "${ac_tmp:=$tmp}"
16109 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016110' 0
Matthias Kloseb9621712010-04-24 17:59:49 +000016111 trap 'as_fn_exit 1' 1 2 13 15
Martin v. Löwis11437992002-04-12 09:54:03 +000016112}
Martin v. Löwis11437992002-04-12 09:54:03 +000016113# Create a (secure) tmp directory for tmp files.
Skip Montanaro6dead952003-09-25 14:50:04 +000016114
Martin v. Löwis11437992002-04-12 09:54:03 +000016115{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016116 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Victor Stinnere0be4232011-10-25 13:06:09 +020016117 test -d "$tmp"
Martin v. Löwis11437992002-04-12 09:54:03 +000016118} ||
16119{
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016120 tmp=./conf$$-$RANDOM
16121 (umask 077 && mkdir "$tmp")
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016122} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Victor Stinnere0be4232011-10-25 13:06:09 +020016123ac_tmp=$tmp
Martin v. Löwis11437992002-04-12 09:54:03 +000016124
Matthias Kloseb9621712010-04-24 17:59:49 +000016125# Set up the scripts for CONFIG_FILES section.
16126# No need to generate them if there are no CONFIG_FILES.
16127# This happens for instance with `./config.status config.h'.
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016128if test -n "$CONFIG_FILES"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016129
Matthias Kloseb9621712010-04-24 17:59:49 +000016130
16131ac_cr=`echo X | tr X '\015'`
16132# On cygwin, bash can eat \r inside `` if the user requested igncr.
16133# But we know of no other shell where ac_cr would be empty at this
16134# point, so we can use a bashism as a fallback.
16135if test "x$ac_cr" = x; then
16136 eval ac_cr=\$\'\\r\'
16137fi
16138ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16139if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016140 ac_cs_awk_cr='\\r'
Matthias Kloseb9621712010-04-24 17:59:49 +000016141else
16142 ac_cs_awk_cr=$ac_cr
16143fi
16144
Victor Stinnere0be4232011-10-25 13:06:09 +020016145echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Martin v. Löwis11437992002-04-12 09:54:03 +000016146_ACEOF
16147
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016148
Matthias Kloseb9621712010-04-24 17:59:49 +000016149{
16150 echo "cat >conf$$subs.awk <<_ACEOF" &&
16151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16152 echo "_ACEOF"
16153} >conf$$subs.sh ||
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16155ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016156ac_delim='%!_!# '
16157for ac_last_try in false false false false false :; do
Matthias Kloseb9621712010-04-24 17:59:49 +000016158 . ./conf$$subs.sh ||
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016159 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016160
Matthias Kloseb9621712010-04-24 17:59:49 +000016161 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16162 if test $ac_delim_n = $ac_delim_num; then
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016163 break
16164 elif $ac_last_try; then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016166 else
16167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Martin v. Löwis11437992002-04-12 09:54:03 +000016168 fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016169done
Matthias Kloseb9621712010-04-24 17:59:49 +000016170rm -f conf$$subs.sh
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016171
Matthias Kloseb9621712010-04-24 17:59:49 +000016172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Victor Stinnere0be4232011-10-25 13:06:09 +020016173cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016174_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000016175sed -n '
16176h
16177s/^/S["/; s/!.*/"]=/
16178p
16179g
16180s/^[^!]*!//
16181:repl
16182t repl
16183s/'"$ac_delim"'$//
16184t delim
16185:nl
16186h
16187s/\(.\{148\}\)..*/\1/
16188t more1
16189s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16190p
16191n
16192b repl
16193:more1
16194s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16195p
16196g
16197s/.\{148\}//
16198t nl
16199:delim
16200h
16201s/\(.\{148\}\)..*/\1/
16202t more2
16203s/["\\]/\\&/g; s/^/"/; s/$/"/
16204p
16205b
16206:more2
16207s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16208p
16209g
16210s/.\{148\}//
16211t delim
16212' <conf$$subs.awk | sed '
16213/^[^""]/{
16214 N
16215 s/\n//
16216}
16217' >>$CONFIG_STATUS || ac_write_fail=1
16218rm -f conf$$subs.awk
16219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16220_ACAWK
Victor Stinnere0be4232011-10-25 13:06:09 +020016221cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Matthias Kloseb9621712010-04-24 17:59:49 +000016222 for (key in S) S_is_set[key] = 1
16223 FS = ""
16224
16225}
16226{
16227 line = $ 0
16228 nfields = split(line, field, "@")
16229 substed = 0
16230 len = length(field[1])
16231 for (i = 2; i < nfields; i++) {
16232 key = field[i]
16233 keylen = length(key)
16234 if (S_is_set[key]) {
16235 value = S[key]
16236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16237 len += length(value) + length(field[++i])
16238 substed = 1
16239 } else
16240 len += 1 + keylen
16241 }
16242
16243 print line
16244}
16245
16246_ACAWK
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016247_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000016248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16249if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16250 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16251else
16252 cat
Victor Stinnere0be4232011-10-25 13:06:09 +020016253fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016254 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Ronald Oussoren74f29b42009-09-20 20:09:26 +000016255_ACEOF
16256
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016257# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16258# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016259# trailing colons and then remove the whole line if VPATH becomes empty
16260# (actually we leave an empty line to preserve line numbers).
16261if test "x$srcdir" = x.; then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016262 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16263h
16264s///
16265s/^/:/
16266s/[ ]*$/:/
16267s/:\$(srcdir):/:/g
16268s/:\${srcdir}:/:/g
16269s/:@srcdir@:/:/g
16270s/^:*//
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016271s/:*$//
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016272x
16273s/\(=[ ]*\).*/\1/
16274G
16275s/\n//
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016276s/^[^=]*=[ ]*$//
16277}'
16278fi
16279
Matthias Kloseb9621712010-04-24 17:59:49 +000016280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000016281fi # test -n "$CONFIG_FILES"
16282
Matthias Kloseb9621712010-04-24 17:59:49 +000016283# Set up the scripts for CONFIG_HEADERS section.
16284# No need to generate them if there are no CONFIG_HEADERS.
16285# This happens for instance with `./config.status Makefile'.
16286if test -n "$CONFIG_HEADERS"; then
Victor Stinnere0be4232011-10-25 13:06:09 +020016287cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Matthias Kloseb9621712010-04-24 17:59:49 +000016288BEGIN {
16289_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016290
Matthias Kloseb9621712010-04-24 17:59:49 +000016291# Transform confdefs.h into an awk script `defines.awk', embedded as
16292# here-document in config.status, that substitutes the proper values into
16293# config.h.in to produce config.h.
16294
16295# Create a delimiter string that does not exist in confdefs.h, to ease
16296# handling of long lines.
16297ac_delim='%!_!# '
16298for ac_last_try in false false :; do
Victor Stinnere0be4232011-10-25 13:06:09 +020016299 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16300 if test -z "$ac_tt"; then
Matthias Kloseb9621712010-04-24 17:59:49 +000016301 break
16302 elif $ac_last_try; then
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016303 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:49 +000016304 else
16305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16306 fi
16307done
16308
16309# For the awk script, D is an array of macro values keyed by name,
16310# likewise P contains macro parameters if any. Preserve backslash
16311# newline sequences.
16312
16313ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16314sed -n '
16315s/.\{148\}/&'"$ac_delim"'/g
16316t rset
16317:rset
16318s/^[ ]*#[ ]*define[ ][ ]*/ /
16319t def
16320d
16321:def
16322s/\\$//
16323t bsnl
16324s/["\\]/\\&/g
16325s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16326D["\1"]=" \3"/p
16327s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16328d
16329:bsnl
16330s/["\\]/\\&/g
16331s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16332D["\1"]=" \3\\\\\\n"\\/p
16333t cont
16334s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16335t cont
16336d
16337:cont
16338n
16339s/.\{148\}/&'"$ac_delim"'/g
16340t clear
16341:clear
16342s/\\$//
16343t bsnlc
16344s/["\\]/\\&/g; s/^/"/; s/$/"/p
16345d
16346:bsnlc
16347s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16348b cont
16349' <confdefs.h | sed '
16350s/'"$ac_delim"'/"\\\
16351"/g' >>$CONFIG_STATUS || ac_write_fail=1
16352
16353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16354 for (key in D) D_is_set[key] = 1
16355 FS = ""
16356}
16357/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16358 line = \$ 0
16359 split(line, arg, " ")
16360 if (arg[1] == "#") {
16361 defundef = arg[2]
16362 mac1 = arg[3]
16363 } else {
16364 defundef = substr(arg[1], 2)
16365 mac1 = arg[2]
16366 }
16367 split(mac1, mac2, "(") #)
16368 macro = mac2[1]
16369 prefix = substr(line, 1, index(line, defundef) - 1)
16370 if (D_is_set[macro]) {
16371 # Preserve the white space surrounding the "#".
16372 print prefix "define", macro P[macro] D[macro]
16373 next
16374 } else {
16375 # Replace #undef with comments. This is necessary, for example,
16376 # in the case of _POSIX_SOURCE, which is predefined and required
16377 # on some systems where configure will not decide to define it.
16378 if (defundef == "undef") {
16379 print "/*", prefix defundef, macro, "*/"
16380 next
16381 }
16382 }
16383}
16384{ print }
16385_ACAWK
16386_ACEOF
16387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016388 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:49 +000016389fi # test -n "$CONFIG_HEADERS"
16390
16391
16392eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16393shift
16394for ac_tag
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016395do
16396 case $ac_tag in
16397 :[FHLC]) ac_mode=$ac_tag; continue;;
16398 esac
16399 case $ac_mode$ac_tag in
16400 :[FHL]*:*);;
Victor Stinnere0be4232011-10-25 13:06:09 +020016401 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016402 :[FH]-) ac_tag=-:-;;
16403 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16404 esac
16405 ac_save_IFS=$IFS
16406 IFS=:
16407 set x $ac_tag
16408 IFS=$ac_save_IFS
16409 shift
16410 ac_file=$1
16411 shift
16412
16413 case $ac_mode in
16414 :L) ac_source=$1;;
16415 :[FH])
16416 ac_file_inputs=
16417 for ac_f
16418 do
16419 case $ac_f in
Victor Stinnere0be4232011-10-25 13:06:09 +020016420 -) ac_f="$ac_tmp/stdin";;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016421 *) # Look for the file first in the build tree, then in the source tree
16422 # (if the path is not absolute). The absolute path cannot be DOS-style,
16423 # because $ac_f cannot contain `:'.
16424 test -f "$ac_f" ||
16425 case $ac_f in
16426 [\\/$]*) false;;
16427 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16428 esac ||
Victor Stinnere0be4232011-10-25 13:06:09 +020016429 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016430 esac
Matthias Kloseb9621712010-04-24 17:59:49 +000016431 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16432 as_fn_append ac_file_inputs " '$ac_f'"
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016433 done
16434
16435 # Let's still pretend it is `configure' which instantiates (i.e., don't
16436 # use $as_me), people would be surprised to read:
16437 # /* config.h. Generated by config.status. */
Matthias Kloseb9621712010-04-24 17:59:49 +000016438 configure_input='Generated from '`
16439 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16440 `' by configure.'
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016441 if test x"$ac_file" != x-; then
16442 configure_input="$ac_file. $configure_input"
Matthias Kloseb9621712010-04-24 17:59:49 +000016443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16444$as_echo "$as_me: creating $ac_file" >&6;}
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016445 fi
Matthias Kloseb9621712010-04-24 17:59:49 +000016446 # Neutralize special characters interpreted by sed in replacement strings.
16447 case $configure_input in #(
16448 *\&* | *\|* | *\\* )
16449 ac_sed_conf_input=`$as_echo "$configure_input" |
16450 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16451 *) ac_sed_conf_input=$configure_input;;
16452 esac
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016453
16454 case $ac_tag in
Victor Stinnere0be4232011-10-25 13:06:09 +020016455 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016457 esac
16458 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000016459 esac
16460
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016461 ac_dir=`$as_dirname -- "$ac_file" ||
Martin v. Löwis11437992002-04-12 09:54:03 +000016462$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016463 X"$ac_file" : 'X\(//\)[^/]' \| \
16464 X"$ac_file" : 'X\(//\)$' \| \
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:49 +000016466$as_echo X"$ac_file" |
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16468 s//\1/
16469 q
16470 }
16471 /^X\(\/\/\)[^/].*/{
16472 s//\1/
16473 q
16474 }
16475 /^X\(\/\/\)$/{
16476 s//\1/
16477 q
16478 }
16479 /^X\(\/\).*/{
16480 s//\1/
16481 q
16482 }
16483 s/.*/./; q'`
Matthias Kloseb9621712010-04-24 17:59:49 +000016484 as_dir="$ac_dir"; as_fn_mkdir_p
Martin v. Löwis11437992002-04-12 09:54:03 +000016485 ac_builddir=.
16486
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016487case "$ac_dir" in
16488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16489*)
Matthias Kloseb9621712010-04-24 17:59:49 +000016490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016491 # A ".." for each directory in $ac_dir_suffix.
Matthias Kloseb9621712010-04-24 17:59:49 +000016492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016493 case $ac_top_builddir_sub in
16494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16496 esac ;;
16497esac
16498ac_abs_top_builddir=$ac_pwd
16499ac_abs_builddir=$ac_pwd$ac_dir_suffix
16500# for backward compatibility:
16501ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:03 +000016502
16503case $srcdir in
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016504 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:03 +000016505 ac_srcdir=.
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016506 ac_top_srcdir=$ac_top_builddir_sub
16507 ac_abs_top_srcdir=$ac_pwd ;;
16508 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:03 +000016509 ac_srcdir=$srcdir$ac_dir_suffix;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016510 ac_top_srcdir=$srcdir
16511 ac_abs_top_srcdir=$srcdir ;;
16512 *) # Relative name.
16513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16514 ac_top_srcdir=$ac_top_build_prefix$srcdir
16515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000016516esac
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:23 +000016518
Martin v. Löwis11437992002-04-12 09:54:03 +000016519
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016520 case $ac_mode in
16521 :F)
16522 #
16523 # CONFIG_FILE
16524 #
Martin v. Löwis11437992002-04-12 09:54:03 +000016525
16526 case $INSTALL in
16527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016528 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000016529 esac
Matthias Klose93a0ef12012-03-15 18:08:34 +010016530 ac_MKDIR_P=$MKDIR_P
16531 case $MKDIR_P in
16532 [\\/$]* | ?:[\\/]* ) ;;
16533 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16534 esac
Thomas Wouters477c8d52006-05-27 19:21:47 +000016535_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016536
Matthias Kloseb9621712010-04-24 17:59:49 +000016537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016538# If the template does not know about datarootdir, expand it.
16539# FIXME: This hack should be removed a few years after 2.60.
16540ac_datarootdir_hack=; ac_datarootdir_seen=
Matthias Kloseb9621712010-04-24 17:59:49 +000016541ac_sed_dataroot='
16542/datarootdir/ {
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016543 p
16544 q
16545}
16546/@datadir@/p
16547/@docdir@/p
16548/@infodir@/p
16549/@localedir@/p
Matthias Kloseb9621712010-04-24 17:59:49 +000016550/@mandir@/p'
16551case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016552*datarootdir*) ac_datarootdir_seen=yes;;
16553*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Matthias Kloseb9621712010-04-24 17:59:49 +000016554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16555$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016556_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000016557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016558 ac_datarootdir_hack='
16559 s&@datadir@&$datadir&g
16560 s&@docdir@&$docdir&g
16561 s&@infodir@&$infodir&g
16562 s&@localedir@&$localedir&g
16563 s&@mandir@&$mandir&g
Matthias Kloseb9621712010-04-24 17:59:49 +000016564 s&\\\${datarootdir}&$datarootdir&g' ;;
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016565esac
16566_ACEOF
16567
16568# Neutralize VPATH when `$srcdir' = `.'.
16569# Shell code in configure.ac might set extrasub.
16570# FIXME: do we really want to maintain this feature?
Matthias Kloseb9621712010-04-24 17:59:49 +000016571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16572ac_sed_extra="$ac_vpsub
Martin v. Löwis11437992002-04-12 09:54:03 +000016573$extrasub
16574_ACEOF
Matthias Kloseb9621712010-04-24 17:59:49 +000016575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000016576:t
16577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Matthias Kloseb9621712010-04-24 17:59:49 +000016578s|@configure_input@|$ac_sed_conf_input|;t t
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016579s&@top_builddir@&$ac_top_builddir_sub&;t t
Matthias Kloseb9621712010-04-24 17:59:49 +000016580s&@top_build_prefix@&$ac_top_build_prefix&;t t
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016581s&@srcdir@&$ac_srcdir&;t t
16582s&@abs_srcdir@&$ac_abs_srcdir&;t t
16583s&@top_srcdir@&$ac_top_srcdir&;t t
16584s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16585s&@builddir@&$ac_builddir&;t t
16586s&@abs_builddir@&$ac_abs_builddir&;t t
16587s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16588s&@INSTALL@&$ac_INSTALL&;t t
Matthias Klose93a0ef12012-03-15 18:08:34 +010016589s&@MKDIR_P@&$ac_MKDIR_P&;t t
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016590$ac_datarootdir_hack
Matthias Kloseb9621712010-04-24 17:59:49 +000016591"
Victor Stinnere0be4232011-10-25 13:06:09 +020016592eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16593 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016594
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016595test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Victor Stinnere0be4232011-10-25 13:06:09 +020016596 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16598 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Matthias Kloseb9621712010-04-24 17:59:49 +000016599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016600which seems to be undefined. Please make sure it is defined" >&5
Matthias Kloseb9621712010-04-24 17:59:49 +000016601$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016602which seems to be undefined. Please make sure it is defined" >&2;}
Thomas Wouters1ba5b3b2006-06-08 14:52:47 +000016603
Victor Stinnere0be4232011-10-25 13:06:09 +020016604 rm -f "$ac_tmp/stdin"
Martin v. Löwis11437992002-04-12 09:54:03 +000016605 case $ac_file in
Victor Stinnere0be4232011-10-25 13:06:09 +020016606 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16607 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Matthias Kloseb9621712010-04-24 17:59:49 +000016608 esac \
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016610 ;;
16611 :H)
16612 #
16613 # CONFIG_HEADER
16614 #
Martin v. Löwis11437992002-04-12 09:54:03 +000016615 if test x"$ac_file" != x-; then
Matthias Kloseb9621712010-04-24 17:59:49 +000016616 {
16617 $as_echo "/* $configure_input */" \
Victor Stinnere0be4232011-10-25 13:06:09 +020016618 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16619 } >"$ac_tmp/config.h" \
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Victor Stinnere0be4232011-10-25 13:06:09 +020016621 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Matthias Kloseb9621712010-04-24 17:59:49 +000016622 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16623$as_echo "$as_me: $ac_file is unchanged" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +000016624 else
Matthias Kloseb9621712010-04-24 17:59:49 +000016625 rm -f "$ac_file"
Victor Stinnere0be4232011-10-25 13:06:09 +020016626 mv "$ac_tmp/config.h" "$ac_file" \
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:03 +000016628 fi
16629 else
Matthias Kloseb9621712010-04-24 17:59:49 +000016630 $as_echo "/* $configure_input */" \
Victor Stinnere0be4232011-10-25 13:06:09 +020016631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016632 || as_fn_error $? "could not create -" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:03 +000016633 fi
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016634 ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +000016635
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016636
16637 esac
16638
Antoine Pitrou8e6b4072010-09-10 19:44:44 +000016639
16640 case $ac_file$ac_mode in
16641 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
16642
16643 esac
Thomas Wouters47b49bf2007-08-30 22:15:33 +000016644done # for ac_tag
16645
Guido van Rossum627b2d71993-12-24 10:39:16 +000016646
Matthias Kloseb9621712010-04-24 17:59:49 +000016647as_fn_exit 0
Martin v. Löwis11437992002-04-12 09:54:03 +000016648_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000016649ac_clean_files=$ac_clean_files_save
16650
Matthias Kloseb9621712010-04-24 17:59:49 +000016651test $ac_write_fail = 0 ||
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016652 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:49 +000016653
Martin v. Löwis11437992002-04-12 09:54:03 +000016654
16655# configure is writing to config.log, and then calls config.status.
16656# config.status does its own redirection, appending to config.log.
16657# Unfortunately, on DOS this fails, as config.log is still kept open
16658# by configure, so config.status won't be able to write to it; its
16659# output is simply discarded. So we exec the FD to /dev/null,
16660# effectively closing config.log, so it can be properly (re)opened and
16661# appended to by config.status. When coming back to configure, we
16662# need to make the FD available again.
16663if test "$no_create" != yes; then
16664 ac_cs_success=:
Skip Montanaro6dead952003-09-25 14:50:04 +000016665 ac_config_status_args=
16666 test "$silent" = yes &&
16667 ac_config_status_args="$ac_config_status_args --quiet"
Martin v. Löwis11437992002-04-12 09:54:03 +000016668 exec 5>/dev/null
Skip Montanaro6dead952003-09-25 14:50:04 +000016669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Martin v. Löwis11437992002-04-12 09:54:03 +000016670 exec 5>>config.log
16671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16672 # would make configure fail if this is the last instruction.
Ross Lagerwallb0ae53d2011-06-10 07:30:30 +020016673 $ac_cs_success || as_fn_exit 1
Matthias Kloseb9621712010-04-24 17:59:49 +000016674fi
16675if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16677$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +000016678fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000016679
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000016680
Christian Heimes75ed8902013-11-20 01:11:18 +010016681echo "creating Modules/Setup" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000016682if test ! -f Modules/Setup
16683then
16684 cp $srcdir/Modules/Setup.dist Modules/Setup
16685fi
16686
Christian Heimes75ed8902013-11-20 01:11:18 +010016687echo "creating Modules/Setup.local" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000016688if test ! -f Modules/Setup.local
16689then
16690 echo "# Edit this file for local setup changes" >Modules/Setup.local
16691fi
16692
Christian Heimes75ed8902013-11-20 01:11:18 +010016693echo "creating Makefile" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000016694$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
16695 -s Modules Modules/Setup.config \
Neil Schemenauerf8b71c52001-04-21 17:41:16 +000016696 Modules/Setup.local Modules/Setup
Neil Schemenauerc761fc82001-02-19 04:50:49 +000016697mv config.c Modules