blob: 1e144016dd8ca9f4ec3c6d3a2a616c036b11f76b [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001#! /bin/sh
Mark Dickinson1de33272009-01-04 20:19:41 +00002# From configure.in Revision: 68299 .
Guido van Rossum627b2d71993-12-24 10:39:16 +00003# Guess values for system-dependent variables and create Makefiles.
Martin v. Löwis174440b2008-10-03 08:59:41 +00004# Generated by GNU Autoconf 2.61 for python 2.7.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005#
Martin v. Löwis1d459062005-03-14 21:23:33 +00006# Report bugs to <http://www.python.org/python-bugs>.
7#
Martin v. Löwiseba40652007-08-30 20:10:57 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
Martin v. Löwis11437992002-04-12 09:54:03 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
Martin v. Löwiseba40652007-08-30 20:10:57 +000016# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
Martin v. Löwis11437992002-04-12 09:54:03 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
Skip Montanaro6dead952003-09-25 14:50:04 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024 setopt NO_GLOB_SUBST
Skip Montanaro89e975f2007-08-22 19:05:21 +000025else
Martin v. Löwiseba40652007-08-30 20:10:57 +000026 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
Martin v. Löwis11437992002-04-12 09:54:03 +000030fi
31
Skip Montanaro6dead952003-09-25 14:50:04 +000032
Martin v. Löwis11437992002-04-12 09:54:03 +000033
34
Martin v. Löwiseba40652007-08-30 20:10:57 +000035# PATH needs CR
Martin v. Löwis11437992002-04-12 09:54:03 +000036# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
Skip Montanaro6dead952003-09-25 14:50:04 +000045 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Martin v. Löwis11437992002-04-12 09:54:03 +000049 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
Skip Montanaro6dead952003-09-25 14:50:04 +000053 rm -f conf$$.sh
Martin v. Löwis11437992002-04-12 09:54:03 +000054fi
55
Martin v. Löwiseba40652007-08-30 20:10:57 +000056# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
Martin v. Löwis11437992002-04-12 09:54:03 +000062
Martin v. Löwiseba40652007-08-30 20:10:57 +000063
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:03 +000077for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
Martin v. Löwiseba40652007-08-30 20:10:57 +000083IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +000084
Martin v. Löwiseba40652007-08-30 20:10:57 +000085 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Martin v. Löwis11437992002-04-12 09:54:03 +0000115 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +0000116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
Martin v. Löwis11437992002-04-12 09:54:03 +0000224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000229 case $as_dir in
Martin v. Löwis11437992002-04-12 09:54:03 +0000230 /*)
Martin v. Löwiseba40652007-08-30 20:10:57 +0000231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
Skip Montanaro89e975f2007-08-22 19:05:21 +0000331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
Skip Montanaro89e975f2007-08-22 19:05:21 +0000333 test "x$as_lineno_1" != "x$as_lineno_2" &&
Martin v. Löwiseba40652007-08-30 20:10:57 +0000334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Martin v. Löwis11437992002-04-12 09:54:03 +0000430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
Martin v. Löwiseba40652007-08-30 20:10:57 +0000433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
Martin v. Löwis11437992002-04-12 09:54:03 +0000438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Martin v. Löwiseba40652007-08-30 20:10:57 +0000439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03 +0000445 sed '
Martin v. Löwiseba40652007-08-30 20:10:57 +0000446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
Martin v. Löwis11437992002-04-12 09:54:03 +0000450 N
Martin v. Löwiseba40652007-08-30 20:10:57 +0000451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03 +0000453 t loop
Martin v. Löwiseba40652007-08-30 20:10:57 +0000454 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03 +0000455 ' >$as_me.lineno &&
Martin v. Löwiseba40652007-08-30 20:10:57 +0000456 chmod +x "$as_me.lineno" ||
Martin v. Löwis11437992002-04-12 09:54:03 +0000457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
Martin v. Löwiseba40652007-08-30 20:10:57 +0000462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03 +0000464 # Exit status is that of the last command.
465 exit
466}
467
468
Martin v. Löwiseba40652007-08-30 20:10:57 +0000469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03 +0000484esac
485
Martin v. Löwiseba40652007-08-30 20:10:57 +0000486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Martin v. Löwis11437992002-04-12 09:54:03 +0000488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
Martin v. Löwiseba40652007-08-30 20:10:57 +0000494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
Martin v. Löwis11437992002-04-12 09:54:03 +0000500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
Martin v. Löwiseba40652007-08-30 20:10:57 +0000502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Martin v. Löwis11437992002-04-12 09:54:03 +0000508 as_ln_s='cp -p'
Martin v. Löwis11437992002-04-12 09:54:03 +0000509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
Martin v. Löwiseba40652007-08-30 20:10:57 +0000514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03 +0000516
Skip Montanaro6dead952003-09-25 14:50:04 +0000517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
Skip Montanarof0d5f792004-08-15 14:08:23 +0000520 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04 +0000521 as_mkdir_p=false
522fi
523
Martin v. Löwiseba40652007-08-30 20:10:57 +0000524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
Martin v. Löwis11437992002-04-12 09:54:03 +0000546
547# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23 +0000548as_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 +0000549
550# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23 +0000551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +0000552
553
Martin v. Löwis11437992002-04-12 09:54:03 +0000554
Martin v. Löwiseba40652007-08-30 20:10:57 +0000555exec 7<&0 </dev/null 6>&1
Martin v. Löwis11437992002-04-12 09:54:03 +0000556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
Martin v. Löwis11437992002-04-12 09:54:03 +0000562#
563# Initializations.
564#
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000565ac_default_prefix=/usr/local
Martin v. Löwiseba40652007-08-30 20:10:57 +0000566ac_clean_files=
Skip Montanaro6dead952003-09-25 14:50:04 +0000567ac_config_libobj_dir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000568LIBOBJS=
Martin v. Löwis11437992002-04-12 09:54:03 +0000569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
Martin v. Löwis11437992002-04-12 09:54:03 +0000575# Identity of this package.
Martin v. Löwis88afe662002-10-26 13:47:44 +0000576PACKAGE_NAME='python'
577PACKAGE_TARNAME='python'
Martin v. Löwis174440b2008-10-03 08:59:41 +0000578PACKAGE_VERSION='2.7'
579PACKAGE_STRING='python 2.7'
Martin v. Löwis1d459062005-03-14 21:23:33 +0000580PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
Martin v. Löwis11437992002-04-12 09:54:03 +0000581
582ac_unique_file="Include/object.h"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +0000586#ifdef HAVE_SYS_TYPES_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000587# include <sys/types.h>
588#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000589#ifdef HAVE_SYS_STAT_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000590# include <sys/stat.h>
591#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000592#ifdef STDC_HEADERS
Martin v. Löwis11437992002-04-12 09:54:03 +0000593# include <stdlib.h>
594# include <stddef.h>
595#else
Martin v. Löwiseba40652007-08-30 20:10:57 +0000596# ifdef HAVE_STDLIB_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000597# include <stdlib.h>
598# endif
599#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000602# include <memory.h>
603# endif
604# include <string.h>
605#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000606#ifdef HAVE_STRINGS_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000607# include <strings.h>
608#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000609#ifdef HAVE_INTTYPES_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000610# include <inttypes.h>
Martin v. Löwis11437992002-04-12 09:54:03 +0000611#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000616# include <unistd.h>
617#endif"
618
Martin v. Löwiseba40652007-08-30 20:10:57 +0000619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656VERSION
657SOVERSION
658CONFIG_ARGS
659UNIVERSALSDK
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +0000660ARCH_RUN_32BIT
Martin v. Löwiseba40652007-08-30 20:10:57 +0000661PYTHONFRAMEWORK
Ronald Oussoren580c7fe2008-05-02 19:45:11 +0000662PYTHONFRAMEWORKIDENTIFIER
Martin v. Löwiseba40652007-08-30 20:10:57 +0000663PYTHONFRAMEWORKDIR
664PYTHONFRAMEWORKPREFIX
665PYTHONFRAMEWORKINSTALLDIR
666FRAMEWORKINSTALLFIRST
667FRAMEWORKINSTALLLAST
668FRAMEWORKALTINSTALLFIRST
669FRAMEWORKALTINSTALLLAST
670FRAMEWORKUNIXTOOLSPREFIX
671MACHDEP
672SGI_ABI
673EXTRAPLATDIR
674EXTRAMACHDEPPATH
675CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676EXPORT_MACOSX_DEPLOYMENT_TARGET
677CC
678CFLAGS
679LDFLAGS
680CPPFLAGS
681ac_ct_CC
682EXEEXT
683OBJEXT
684CXX
685MAINCC
686CPP
687GREP
688EGREP
689BUILDEXEEXT
690LIBRARY
691LDLIBRARY
692DLLLIBRARY
693BLDLIBRARY
694LDLIBRARYDIR
695INSTSONAME
696RUNSHARED
697LINKCC
698RANLIB
699AR
700SVNVERSION
701INSTALL_PROGRAM
702INSTALL_SCRIPT
703INSTALL_DATA
704LN
705OPT
706BASECFLAGS
Ronald Oussoren5640ce22008-06-05 12:58:24 +0000707UNIVERSAL_ARCH_FLAGS
Martin v. Löwiseba40652007-08-30 20:10:57 +0000708OTHER_LIBTOOL_OPT
709LIBTOOL_CRUFT
710SO
711LDSHARED
712BLDSHARED
713CCSHARED
714LINKFORSHARED
715CFLAGSFORSHARED
716SHLIBS
717USE_SIGNAL_MODULE
718SIGNAL_OBJS
719USE_THREAD_MODULE
720LDLAST
721THREADOBJ
722DLINCLDIR
723DYNLOADFILE
724MACHDEP_OBJS
725TRUE
726LIBOBJS
727HAVE_GETHOSTBYNAME_R_6_ARG
728HAVE_GETHOSTBYNAME_R_5_ARG
729HAVE_GETHOSTBYNAME_R_3_ARG
730HAVE_GETHOSTBYNAME_R
731HAVE_GETHOSTBYNAME
732LIBM
733LIBC
734UNICODE_OBJS
735THREADHEADERS
736SRCDIRS
737LTLIBOBJS'
Skip Montanaro6dead952003-09-25 14:50:04 +0000738ac_subst_files=''
Martin v. Löwiseba40652007-08-30 20:10:57 +0000739 ac_precious_vars='build_alias
740host_alias
741target_alias
742CC
743CFLAGS
744LDFLAGS
745LIBS
746CPPFLAGS
747CPP'
748
Guido van Rossum627b2d71993-12-24 10:39:16 +0000749
Guido van Rossum7f43da71994-08-01 12:15:30 +0000750# Initialize some variables set by options.
Martin v. Löwis11437992002-04-12 09:54:03 +0000751ac_init_help=
752ac_init_version=false
Guido van Rossum7f43da71994-08-01 12:15:30 +0000753# The variables have the same names as the options, with
754# dashes changed to underlines.
Martin v. Löwis11437992002-04-12 09:54:03 +0000755cache_file=/dev/null
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000756exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30 +0000757no_create=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000758no_recursion=
759prefix=NONE
760program_prefix=NONE
761program_suffix=NONE
762program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30 +0000763silent=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000764site=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000765srcdir=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000766verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000767x_includes=NONE
768x_libraries=NONE
Martin v. Löwis11437992002-04-12 09:54:03 +0000769
770# Installation directory options.
771# These are left unexpanded so users can "make install exec_prefix=/foo"
772# and all the variables that are supposed to be based on exec_prefix
773# by default will actually change.
774# Use braces instead of parens because sh, perl, etc. also accept them.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000775# (The list follows the same order as the GNU Coding Standards.)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000776bindir='${exec_prefix}/bin'
777sbindir='${exec_prefix}/sbin'
778libexecdir='${exec_prefix}/libexec'
Martin v. Löwiseba40652007-08-30 20:10:57 +0000779datarootdir='${prefix}/share'
780datadir='${datarootdir}'
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000781sysconfdir='${prefix}/etc'
782sharedstatedir='${prefix}/com'
783localstatedir='${prefix}/var'
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000784includedir='${prefix}/include'
785oldincludedir='/usr/include'
Martin v. Löwiseba40652007-08-30 20:10:57 +0000786docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787infodir='${datarootdir}/info'
788htmldir='${docdir}'
789dvidir='${docdir}'
790pdfdir='${docdir}'
791psdir='${docdir}'
792libdir='${exec_prefix}/lib'
793localedir='${datarootdir}/locale'
794mandir='${datarootdir}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000795
Guido van Rossum7f43da71994-08-01 12:15:30 +0000796ac_prev=
Martin v. Löwiseba40652007-08-30 20:10:57 +0000797ac_dashdash=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000798for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +0000799do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +0000802 eval $ac_prev=\$ac_option
Guido van Rossum7f43da71994-08-01 12:15:30 +0000803 ac_prev=
804 continue
Guido van Rossum627b2d71993-12-24 10:39:16 +0000805 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000806
Martin v. Löwiseba40652007-08-30 20:10:57 +0000807 case $ac_option in
808 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *) ac_optarg=yes ;;
810 esac
Guido van Rossum7f43da71994-08-01 12:15:30 +0000811
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000812 # Accept the important Cygnus configure options, so we can diagnose typos.
813
Martin v. Löwiseba40652007-08-30 20:10:57 +0000814 case $ac_dashdash$ac_option in
815 --)
816 ac_dashdash=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000817
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 ac_prev=bindir ;;
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000821 bindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000822
823 -build | --build | --buil | --bui | --bu)
Martin v. Löwis11437992002-04-12 09:54:03 +0000824 ac_prev=build_alias ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000826 build_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000827
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000828 -cache-file | --cache-file | --cache-fil | --cache-fi \
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830 ac_prev=cache_file ;;
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000833 cache_file=$ac_optarg ;;
834
835 --config-cache | -C)
836 cache_file=config.cache ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000837
Martin v. Löwiseba40652007-08-30 20:10:57 +0000838 -datadir | --datadir | --datadi | --datad)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000839 ac_prev=datadir ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +0000840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000841 datadir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000842
Martin v. Löwiseba40652007-08-30 20:10:57 +0000843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844 | --dataroo | --dataro | --datar)
845 ac_prev=datarootdir ;;
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848 datarootdir=$ac_optarg ;;
849
Guido van Rossum7f43da71994-08-01 12:15:30 +0000850 -disable-* | --disable-*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000851 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000852 # Reject names that are not valid shell variable names.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Martin v. Löwis11437992002-04-12 09:54:03 +0000854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +0000856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=no ;;
858
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
863
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000868
869 -enable-* | --enable-*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000870 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000871 # Reject names that are not valid shell variable names.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Martin v. Löwis11437992002-04-12 09:54:03 +0000873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +0000875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000877
Guido van Rossum7f43da71994-08-01 12:15:30 +0000878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000885 exec_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000886
887 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000890
Martin v. Löwis11437992002-04-12 09:54:03 +0000891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000897
898 -host | --host | --hos | --ho)
Martin v. Löwis11437992002-04-12 09:54:03 +0000899 ac_prev=host_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000900 -host=* | --host=* | --hos=* | --ho=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000901 host_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000902
Martin v. Löwiseba40652007-08-30 20:10:57 +0000903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
908
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000914 includedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000915
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000919 infodir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000920
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000924 libdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000925
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000931 libexecdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000932
Martin v. Löwiseba40652007-08-30 20:10:57 +0000933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
937
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000938 -localstatedir | --localstatedir | --localstatedi | --localstated \
Martin v. Löwiseba40652007-08-30 20:10:57 +0000939 | --localstate | --localstat | --localsta | --localst | --locals)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Martin v. Löwiseba40652007-08-30 20:10:57 +0000942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000943 localstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000944
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000948 mandir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000949
Guido van Rossum7f43da71994-08-01 12:15:30 +0000950 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000951 # Obsolete; use --without-fp.
952 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000953
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Martin v. Löwis11437992002-04-12 09:54:03 +0000955 | --no-cr | --no-c | -n)
Guido van Rossum7f43da71994-08-01 12:15:30 +0000956 no_create=yes ;;
957
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000961
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000969 oldincludedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000970
Guido van Rossum7f43da71994-08-01 12:15:30 +0000971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000974 prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000975
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000981 program_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000982
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000988 program_suffix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000989
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001005 program_transform_name=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001006
Martin v. Löwiseba40652007-08-30 20:10:57 +00001007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1011
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1016
Guido van Rossum7f43da71994-08-01 12:15:30 +00001017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1020
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001025 sbindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001026
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001036 sharedstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001037
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001041 site=$ac_optarg ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001042
Guido van Rossum7f43da71994-08-01 12:15:30 +00001043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001046 srcdir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001047
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001053 sysconfdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001054
Guido van Rossum7f43da71994-08-01 12:15:30 +00001055 -target | --target | --targe | --targ | --tar | --ta | --t)
Martin v. Löwis11437992002-04-12 09:54:03 +00001056 ac_prev=target_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001058 target_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001059
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1062
Martin v. Löwis11437992002-04-12 09:54:03 +00001063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001065
1066 -with-* | --with-*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001067 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001068 # Reject names that are not valid shell variable names.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Martin v. Löwis11437992002-04-12 09:54:03 +00001070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001074
1075 -without-* | --without-*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001076 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001077 # Reject names that are not valid shell variable names.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Martin v. Löwis11437992002-04-12 09:54:03 +00001079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001083
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001087
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001093 x_includes=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001094
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001100 x_libraries=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001101
Martin v. Löwis11437992002-04-12 09:54:03 +00001102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001105 ;;
1106
Martin v. Löwis11437992002-04-12 09:54:03 +00001107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001113 eval $ac_envvar=\$ac_optarg
Martin v. Löwis11437992002-04-12 09:54:03 +00001114 export $ac_envvar ;;
1115
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001116 *)
Martin v. Löwis11437992002-04-12 09:54:03 +00001117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Guido van Rossum7f43da71994-08-01 12:15:30 +00001122 ;;
1123
1124 esac
Guido van Rossum627b2d71993-12-24 10:39:16 +00001125done
1126
Guido van Rossum7f43da71994-08-01 12:15:30 +00001127if test -n "$ac_prev"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001131fi
1132
Martin v. Löwiseba40652007-08-30 20:10:57 +00001133# Be sure to have absolute directory names.
1134for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001138do
Martin v. Löwiseba40652007-08-30 20:10:57 +00001139 eval ac_val=\$$ac_var
Martin v. Löwis11437992002-04-12 09:54:03 +00001140 case $ac_val in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001143 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00001144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +00001146done
Guido van Rossum627b2d71993-12-24 10:39:16 +00001147
Martin v. Löwis11437992002-04-12 09:54:03 +00001148# There might be people who depend on the old broken behavior: `$host'
1149# used to hold the argument of --host etc.
1150# FIXME: To remove some day.
1151build=$build_alias
1152host=$host_alias
1153target=$target_alias
Guido van Rossum627b2d71993-12-24 10:39:16 +00001154
Martin v. Löwis11437992002-04-12 09:54:03 +00001155# FIXME: To remove some day.
1156if test "x$host_alias" != x; then
1157 if test "x$build_alias" = x; then
1158 cross_compiling=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1162 cross_compiling=yes
1163 fi
1164fi
1165
1166ac_tool_prefix=
1167test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168
1169test "$silent" = yes && exec 6>/dev/null
1170
Guido van Rossum627b2d71993-12-24 10:39:16 +00001171
Martin v. Löwiseba40652007-08-30 20:10:57 +00001172ac_pwd=`pwd` && test -n "$ac_pwd" &&
1173ac_ls_di=`ls -di .` &&
1174ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1180
1181
Guido van Rossum627b2d71993-12-24 10:39:16 +00001182# Find the source files, if location was not specified.
1183if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001184 ac_srcdir_defaulted=yes
Martin v. Löwiseba40652007-08-30 20:10:57 +00001185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$0" ||
Martin v. Löwis11437992002-04-12 09:54:03 +00001187$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:23 +00001188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
Martin v. Löwiseba40652007-08-30 20:10:57 +00001190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Martin v. Löwis11437992002-04-12 09:54:03 +00001191echo X"$0" |
Martin v. Löwiseba40652007-08-30 20:10:57 +00001192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1194 q
1195 }
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)$/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\).*/{
1205 s//\1/
1206 q
1207 }
1208 s/.*/./; q'`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001209 srcdir=$ac_confdir
Martin v. Löwiseba40652007-08-30 20:10:57 +00001210 if test ! -r "$srcdir/$ac_unique_file"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001211 srcdir=..
1212 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001213else
1214 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001215fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001216if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001219 { (exit 1); exit 1; }; }
Brett Cannon19fab762007-06-02 03:02:29 +00001220fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001221ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222ac_abs_confdir=`(
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Skip Montanaro89e975f2007-08-22 19:05:21 +00001224 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001225 pwd)`
1226# When building in place, set srcdir=.
1227if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1229fi
1230# Remove unnecessary trailing slashes from srcdir.
1231# Double slashes in file names in object file debugging info
1232# mess up M-x gdb in Emacs.
1233case $srcdir in
1234*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235esac
1236for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001242
Martin v. Löwis11437992002-04-12 09:54:03 +00001243#
1244# Report the --help message.
1245#
1246if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
Martin v. Löwis174440b2008-10-03 08:59:41 +00001250\`configure' configures python 2.7 to adapt to many kinds of systems.
Martin v. Löwis11437992002-04-12 09:54:03 +00001251
1252Usage: $0 [OPTION]... [VAR=VALUE]...
1253
1254To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255VAR=VALUE. See below for descriptions of some of the useful variables.
1256
1257Defaults for the options are specified in brackets.
1258
1259Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269
Martin v. Löwis11437992002-04-12 09:54:03 +00001270Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
Skip Montanarof0d5f792004-08-15 14:08:23 +00001272 [$ac_default_prefix]
Martin v. Löwis11437992002-04-12 09:54:03 +00001273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Skip Montanarof0d5f792004-08-15 14:08:23 +00001274 [PREFIX]
Martin v. Löwis11437992002-04-12 09:54:03 +00001275
1276By default, \`make install' will install all the files in
1277\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279for instance \`--prefix=\$HOME'.
1280
1281For better control, use the options below.
1282
1283Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
Martin v. Löwis11437992002-04-12 09:54:03 +00001287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Martin v. Löwiseba40652007-08-30 20:10:57 +00001293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
Martin v. Löwis11437992002-04-12 09:54:03 +00001303_ACEOF
1304
1305 cat <<\_ACEOF
1306_ACEOF
1307fi
1308
1309if test -n "$ac_init_help"; then
Martin v. Löwis88afe662002-10-26 13:47:44 +00001310 case $ac_init_help in
Martin v. Löwis174440b2008-10-03 08:59:41 +00001311 short | recursive ) echo "Configuration of python 2.7:";;
Martin v. Löwis88afe662002-10-26 13:47:44 +00001312 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00001313 cat <<\_ACEOF
1314
1315Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Brett Cannon91a1dec2008-02-13 19:15:44 +00001318 --enable-universalsdk[=SDKDIR]
Brett Cannon9a8bb0e2008-02-03 02:07:55 +00001319 Build against Mac OS X 10.4u SDK (ppc/i386)
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001320 --enable-framework[=INSTALLDIR]
1321 Build (MacOSX|Darwin) framework
1322 --enable-shared disable/enable building shared python library
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00001323 --enable-profiling enable C-level code profiling
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001324 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1325 --enable-ipv6 Enable ipv6 (with ipv4) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-unicode[=ucs[24]]
1328 Enable Unicode strings (default is yes)
Martin v. Löwis11437992002-04-12 09:54:03 +00001329
1330Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001333 --with-universal-archs=ARCH
1334 select architectures for universal build ("32-bit",
1335 "64-bit" or "all")
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00001336 --with-framework-name=FRAMEWORK
1337 specify an alternate name of the framework built
1338 with --enable-framework
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001339 --without-gcc never use gcc
Martin v. Löwis0f48d982006-04-14 14:34:26 +00001340 --with-cxx-main=<compiler>
1341 compile main() and link python executable with C++
1342 compiler
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001343 --with-suffix=.exe set executable suffix
1344 --with-pydebug build with Py_DEBUG defined
1345 --with-libs='lib1 ...' link against additional libs
Martin v. Löwis9176fc12006-04-11 11:12:43 +00001346 --with-system-ffi build _ctypes module using an installed ffi library
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001347 --with-signal-module disable/enable signal module
1348 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1349 --with(out)-threads[=DIRECTORY]
1350 disable/enable thread support
1351 --with(out)-thread[=DIRECTORY]
1352 deprecated; use --with(out)-threads
1353 --with-pth use GNU pth threading libraries
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001354 --with(out)-doc-strings disable/enable documentation strings
Martin v. Löwisf30d60e2004-06-08 08:17:44 +00001355 --with(out)-tsc enable/disable timestamp counter profile
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001356 --with(out)-pymalloc disable/enable specialized mallocs
1357 --with-wctype-functions use wctype.h functions
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001358 --with-fpectl enable SIGFPE catching
1359 --with-libm=STRING math library
1360 --with-libc=STRING C library
Martin v. Löwis11437992002-04-12 09:54:03 +00001361
1362Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
Martin v. Löwiseba40652007-08-30 20:10:57 +00001367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
Martin v. Löwis11437992002-04-12 09:54:03 +00001370 CPP C preprocessor
1371
1372Use these variables to override the choices made by `configure' or to help
1373it to find libraries and programs with nonstandard names/locations.
1374
Martin v. Löwis1d459062005-03-14 21:23:33 +00001375Report bugs to <http://www.python.org/python-bugs>.
Martin v. Löwis11437992002-04-12 09:54:03 +00001376_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00001377ac_status=$?
Martin v. Löwis11437992002-04-12 09:54:03 +00001378fi
1379
1380if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
Martin v. Löwis11437992002-04-12 09:54:03 +00001382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Martin v. Löwiseba40652007-08-30 20:10:57 +00001383 test -d "$ac_dir" || continue
Martin v. Löwis11437992002-04-12 09:54:03 +00001384 ac_builddir=.
1385
Martin v. Löwiseba40652007-08-30 20:10:57 +00001386case "$ac_dir" in
1387.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Martin v. Löwiseba40652007-08-30 20:10:57 +00001390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 esac ;;
1396esac
1397ac_abs_top_builddir=$ac_pwd
1398ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399# for backward compatibility:
1400ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:03 +00001401
1402case $srcdir in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001403 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:03 +00001404 ac_srcdir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:03 +00001408 ac_srcdir=$srcdir$ac_dir_suffix;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1411 *) # Relative name.
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00001415esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00001416ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:23 +00001417
Martin v. Löwiseba40652007-08-30 20:10:57 +00001418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure" --help=recursive
Martin v. Löwis11437992002-04-12 09:54:03 +00001426 else
1427 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Martin v. Löwiseba40652007-08-30 20:10:57 +00001428 fi || ac_status=$?
1429 cd "$ac_pwd" || { ac_status=$?; break; }
Martin v. Löwis11437992002-04-12 09:54:03 +00001430 done
1431fi
1432
Martin v. Löwiseba40652007-08-30 20:10:57 +00001433test -n "$ac_init_help" && exit $ac_status
Martin v. Löwis11437992002-04-12 09:54:03 +00001434if $ac_init_version; then
1435 cat <<\_ACEOF
Martin v. Löwis174440b2008-10-03 08:59:41 +00001436python configure 2.7
Martin v. Löwiseba40652007-08-30 20:10:57 +00001437generated by GNU Autoconf 2.61
Martin v. Löwis11437992002-04-12 09:54:03 +00001438
Martin v. Löwiseba40652007-08-30 20:10:57 +00001439Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:03 +00001441This configure script is free software; the Free Software Foundation
1442gives unlimited permission to copy, distribute and modify it.
1443_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00001444 exit
Martin v. Löwis11437992002-04-12 09:54:03 +00001445fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001446cat >config.log <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +00001447This file contains any messages produced by compilers while
1448running configure, to aid debugging if configure makes a mistake.
1449
Martin v. Löwis174440b2008-10-03 08:59:41 +00001450It was created by python $as_me 2.7, which was
Martin v. Löwiseba40652007-08-30 20:10:57 +00001451generated by GNU Autoconf 2.61. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:03 +00001452
1453 $ $0 $@
1454
1455_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00001456exec 5>>config.log
Martin v. Löwis11437992002-04-12 09:54:03 +00001457{
1458cat <<_ASUNAME
1459## --------- ##
1460## Platform. ##
1461## --------- ##
1462
1463hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1464uname -m = `(uname -m) 2>/dev/null || echo unknown`
1465uname -r = `(uname -r) 2>/dev/null || echo unknown`
1466uname -s = `(uname -s) 2>/dev/null || echo unknown`
1467uname -v = `(uname -v) 2>/dev/null || echo unknown`
1468
1469/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1470/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1471
1472/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1473/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1474/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Martin v. Löwiseba40652007-08-30 20:10:57 +00001475/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Martin v. Löwis11437992002-04-12 09:54:03 +00001476/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1477/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1478/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1479
1480_ASUNAME
1481
1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 echo "PATH: $as_dir"
1488done
Martin v. Löwiseba40652007-08-30 20:10:57 +00001489IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00001490
1491} >&5
1492
1493cat >&5 <<_ACEOF
1494
1495
1496## ----------- ##
1497## Core tests. ##
1498## ----------- ##
1499
1500_ACEOF
1501
1502
1503# Keep a trace of the command line.
1504# Strip out --no-create and --no-recursion so they do not pile up.
Skip Montanaro6dead952003-09-25 14:50:04 +00001505# Strip out --silent because we don't want to record it for future runs.
Martin v. Löwis11437992002-04-12 09:54:03 +00001506# Also quote any args containing shell meta-characters.
Skip Montanaro6dead952003-09-25 14:50:04 +00001507# Make two passes to allow for proper duplicate-argument suppression.
Martin v. Löwis11437992002-04-12 09:54:03 +00001508ac_configure_args=
Skip Montanaro6dead952003-09-25 14:50:04 +00001509ac_configure_args0=
1510ac_configure_args1=
Skip Montanaro6dead952003-09-25 14:50:04 +00001511ac_must_keep_next=false
1512for ac_pass in 1 2
Martin v. Löwis11437992002-04-12 09:54:03 +00001513do
Skip Montanaro6dead952003-09-25 14:50:04 +00001514 for ac_arg
1515 do
1516 case $ac_arg in
1517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1520 continue ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001521 *\'*)
Skip Montanaro6dead952003-09-25 14:50:04 +00001522 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1523 esac
1524 case $ac_pass in
1525 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 2)
1527 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1528 if test $ac_must_keep_next = true; then
Skip Montanarof0d5f792004-08-15 14:08:23 +00001529 ac_must_keep_next=false # Got value, back to normal.
Skip Montanaro6dead952003-09-25 14:50:04 +00001530 else
Skip Montanarof0d5f792004-08-15 14:08:23 +00001531 case $ac_arg in
1532 *=* | --config-cache | -C | -disable-* | --disable-* \
1533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535 | -with-* | --with-* | -without-* | --without-* | --x)
1536 case "$ac_configure_args0 " in
1537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1538 esac
1539 ;;
1540 -* ) ac_must_keep_next=true ;;
1541 esac
Skip Montanaro6dead952003-09-25 14:50:04 +00001542 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001543 ac_configure_args="$ac_configure_args '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:04 +00001544 ;;
1545 esac
1546 done
Martin v. Löwis11437992002-04-12 09:54:03 +00001547done
Skip Montanaro6dead952003-09-25 14:50:04 +00001548$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1549$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Martin v. Löwis11437992002-04-12 09:54:03 +00001550
1551# When interrupted or exit'd, cleanup temporary files, and complete
1552# config.log. We remove comments because anyway the quotes in there
1553# would cause problems or look ugly.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001554# WARNING: Use '\'' to represent an apostrophe within the trap.
1555# 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 +00001556trap 'exit_status=$?
1557 # Save into config.log some information that might help in debugging.
1558 {
1559 echo
Skip Montanaro6dead952003-09-25 14:50:04 +00001560
Martin v. Löwis11437992002-04-12 09:54:03 +00001561 cat <<\_ASBOX
1562## ---------------- ##
1563## Cache variables. ##
1564## ---------------- ##
1565_ASBOX
1566 echo
1567 # The following way of writing the cache mishandles newlines in values,
Martin v. Löwiseba40652007-08-30 20:10:57 +00001568(
1569 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1570 eval ac_val=\$$ac_var
1571 case $ac_val in #(
1572 *${as_nl}*)
1573 case $ac_var in #(
1574 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1575echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1576 esac
1577 case $ac_var in #(
1578 _ | IFS | as_nl) ;; #(
1579 *) $as_unset $ac_var ;;
1580 esac ;;
1581 esac
1582 done
Martin v. Löwis11437992002-04-12 09:54:03 +00001583 (set) 2>&1 |
Martin v. Löwiseba40652007-08-30 20:10:57 +00001584 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1585 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:03 +00001586 sed -n \
Martin v. Löwiseba40652007-08-30 20:10:57 +00001587 "s/'\''/'\''\\\\'\'''\''/g;
1588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1589 ;; #(
Skip Montanaro89e975f2007-08-22 19:05:21 +00001590 *)
Martin v. Löwiseba40652007-08-30 20:10:57 +00001591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Skip Montanaro89e975f2007-08-22 19:05:21 +00001592 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001593 esac |
1594 sort
1595)
Martin v. Löwis11437992002-04-12 09:54:03 +00001596 echo
Skip Montanaro6dead952003-09-25 14:50:04 +00001597
1598 cat <<\_ASBOX
1599## ----------------- ##
1600## Output variables. ##
1601## ----------------- ##
1602_ASBOX
1603 echo
1604 for ac_var in $ac_subst_vars
1605 do
Martin v. Löwiseba40652007-08-30 20:10:57 +00001606 eval ac_val=\$$ac_var
1607 case $ac_val in
1608 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 esac
1610 echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:04 +00001611 done | sort
1612 echo
1613
1614 if test -n "$ac_subst_files"; then
1615 cat <<\_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00001616## ------------------- ##
1617## File substitutions. ##
1618## ------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00001619_ASBOX
1620 echo
1621 for ac_var in $ac_subst_files
1622 do
Martin v. Löwiseba40652007-08-30 20:10:57 +00001623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:04 +00001628 done | sort
1629 echo
1630 fi
1631
Martin v. Löwis11437992002-04-12 09:54:03 +00001632 if test -s confdefs.h; then
1633 cat <<\_ASBOX
1634## ----------- ##
1635## confdefs.h. ##
1636## ----------- ##
1637_ASBOX
1638 echo
Martin v. Löwiseba40652007-08-30 20:10:57 +00001639 cat confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00001640 echo
1641 fi
1642 test "$ac_signal" != 0 &&
1643 echo "$as_me: caught signal $ac_signal"
1644 echo "$as_me: exit $exit_status"
1645 } >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00001646 rm -f core *.core core.conftest.* &&
1647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Martin v. Löwis11437992002-04-12 09:54:03 +00001648 exit $exit_status
Martin v. Löwiseba40652007-08-30 20:10:57 +00001649' 0
Martin v. Löwis11437992002-04-12 09:54:03 +00001650for ac_signal in 1 2 13 15; do
1651 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1652done
1653ac_signal=0
1654
1655# confdefs.h avoids OS command line length limits that DEFS can exceed.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001656rm -f -r conftest* confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00001657
1658# Predefined preprocessor variables.
1659
1660cat >>confdefs.h <<_ACEOF
1661#define PACKAGE_NAME "$PACKAGE_NAME"
1662_ACEOF
1663
1664
1665cat >>confdefs.h <<_ACEOF
1666#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1667_ACEOF
1668
1669
1670cat >>confdefs.h <<_ACEOF
1671#define PACKAGE_VERSION "$PACKAGE_VERSION"
1672_ACEOF
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define PACKAGE_STRING "$PACKAGE_STRING"
1677_ACEOF
1678
1679
1680cat >>confdefs.h <<_ACEOF
1681#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682_ACEOF
1683
1684
1685# Let the site file select an alternate cache file if it wants to.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001686# Prefer explicitly selected file to automatically selected ones.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001687if test -n "$CONFIG_SITE"; then
1688 set x "$CONFIG_SITE"
1689elif test "x$prefix" != xNONE; then
1690 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691else
1692 set x "$ac_default_prefix/share/config.site" \
1693 "$ac_default_prefix/etc/config.site"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001694fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001695shift
1696for ac_site_file
1697do
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001698 if test -r "$ac_site_file"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001699 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001702 . "$ac_site_file"
1703 fi
1704done
1705
1706if test -r "$cache_file"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711echo "$as_me: loading cache $cache_file" >&6;}
1712 case $cache_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
Martin v. Löwis11437992002-04-12 09:54:03 +00001715 esac
1716 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001717else
Martin v. Löwis11437992002-04-12 09:54:03 +00001718 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719echo "$as_me: creating cache $cache_file" >&6;}
1720 >$cache_file
1721fi
1722
1723# Check that the precious variables saved in the cache have kept the same
1724# value.
1725ac_cache_corrupted=false
Martin v. Löwiseba40652007-08-30 20:10:57 +00001726for ac_var in $ac_precious_vars; do
Martin v. Löwis11437992002-04-12 09:54:03 +00001727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
Martin v. Löwiseba40652007-08-30 20:10:57 +00001729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
Martin v. Löwis11437992002-04-12 09:54:03 +00001731 case $ac_old_set,$ac_new_set in
1732 set,)
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1736 ,set)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,);;
1741 *)
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
Skip Montanarof0d5f792004-08-15 14:08:23 +00001743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00001744echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00001745 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00001746echo "$as_me: former value: $ac_old_val" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00001747 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00001748echo "$as_me: current value: $ac_new_val" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00001749 ac_cache_corrupted=:
Martin v. Löwis11437992002-04-12 09:54:03 +00001750 fi;;
1751 esac
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1754 case $ac_new_val in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001755 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00001756 *) ac_arg=$ac_var=$ac_new_val ;;
1757 esac
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1761 esac
1762 fi
1763done
1764if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1766echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1767 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1768echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001770fi
1771
Martin v. Löwiseba40652007-08-30 20:10:57 +00001772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
Guido van Rossum7f43da71994-08-01 12:15:30 +00001796ac_ext=c
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001797ac_cpp='$CPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:03 +00001798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001801
Guido van Rossum627b2d71993-12-24 10:39:16 +00001802
Michael W. Hudson54241132001-12-07 15:38:26 +00001803
Martin v. Löwiseba40652007-08-30 20:10:57 +00001804ac_config_headers="$ac_config_headers pyconfig.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00001805
1806
Martin v. Löwis11437992002-04-12 09:54:03 +00001807
1808
1809
Guido van Rossum1fd74a71997-07-19 19:36:02 +00001810
Martin v. Löwisbddf5a52002-11-11 13:37:28 +00001811
Martin v. Löwis8316feb2003-06-14 07:48:07 +00001812# We don't use PACKAGE_ variables, and they cause conflicts
1813# with other autoconf-based packages that include Python.h
1814grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1815rm confdefs.h
1816mv confdefs.h.new confdefs.h
1817
Martin v. Löwisbddf5a52002-11-11 13:37:28 +00001818
Martin v. Löwis174440b2008-10-03 08:59:41 +00001819VERSION=2.7
Guido van Rossum1fd74a71997-07-19 19:36:02 +00001820
Martin v. Löwis1142de32002-03-29 16:28:31 +00001821
1822SOVERSION=1.0
1823
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00001824# The later defininition of _XOPEN_SOURCE disables certain features
1825# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1826
1827cat >>confdefs.h <<\_ACEOF
1828#define _GNU_SOURCE 1
1829_ACEOF
1830
1831
Martin v. Löwisbcd93962003-05-03 10:32:18 +00001832# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1834# them.
1835
1836cat >>confdefs.h <<\_ACEOF
1837#define _NETBSD_SOURCE 1
1838_ACEOF
1839
1840
Andrew MacIntyreabccf412003-07-02 13:53:25 +00001841# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1843# them.
1844
1845cat >>confdefs.h <<\_ACEOF
1846#define __BSD_VISIBLE 1
1847_ACEOF
1848
1849
Martin v. Löwisd6320502004-08-12 13:45:08 +00001850# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1851# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1852
1853cat >>confdefs.h <<\_ACEOF
1854#define _BSD_TYPES 1
1855_ACEOF
1856
1857
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001858# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1859# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1860# them.
1861
1862cat >>confdefs.h <<\_ACEOF
1863#define _DARWIN_C_SOURCE 1
1864_ACEOF
1865
1866
1867
Martin v. Löwis35195ad2002-11-11 13:26:51 +00001868define_xopen_source=yes
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00001869
Neil Schemenauer4edbc2a2001-03-22 00:34:03 +00001870# Arguments passed to configure.
1871
1872CONFIG_ARGS="$ac_configure_args"
1873
Martin v. Löwiseba40652007-08-30 20:10:57 +00001874# Check whether --enable-universalsdk was given.
Ronald Oussoren988117f2006-04-29 11:31:35 +00001875if test "${enable_universalsdk+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00001876 enableval=$enable_universalsdk;
Ronald Oussoren988117f2006-04-29 11:31:35 +00001877 case $enableval in
1878 yes)
1879 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1880 ;;
1881 esac
1882 case $enableval in
1883 no)
1884 UNIVERSALSDK=
1885 enable_universalsdk=
1886 ;;
1887 *)
1888 UNIVERSALSDK=$enableval
1889 ;;
1890 esac
1891
1892else
1893
1894 UNIVERSALSDK=
1895 enable_universalsdk=
1896
Martin v. Löwiseba40652007-08-30 20:10:57 +00001897fi
Ronald Oussoren988117f2006-04-29 11:31:35 +00001898
1899
Martin v. Löwiseba40652007-08-30 20:10:57 +00001900
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +00001901ARCH_RUN_32BIT=
1902
1903
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001904UNIVERSAL_ARCHS="32-bit"
1905{ echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1906echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1907
1908# Check whether --with-universal-archs was given.
1909if test "${with_universal_archs+set}" = set; then
1910 withval=$with_universal_archs;
1911 { echo "$as_me:$LINENO: result: $withval" >&5
1912echo "${ECHO_T}$withval" >&6; }
1913 UNIVERSAL_ARCHS="$withval"
1914
1915else
1916
1917 { echo "$as_me:$LINENO: result: 32-bit" >&5
1918echo "${ECHO_T}32-bit" >&6; }
1919
1920fi
1921
1922
1923
1924
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00001925
1926# Check whether --with-framework-name was given.
1927if test "${with_framework_name+set}" = set; then
1928 withval=$with_framework_name;
1929 PYTHONFRAMEWORK=${withval}
1930 PYTHONFRAMEWORKDIR=${withval}.framework
1931 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1932
1933else
1934
1935 PYTHONFRAMEWORK=Python
1936 PYTHONFRAMEWORKDIR=Python.framework
1937 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1938
1939fi
1940
Martin v. Löwiseba40652007-08-30 20:10:57 +00001941# Check whether --enable-framework was given.
Jack Jansene578a632001-08-15 01:27:14 +00001942if test "${enable_framework+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00001943 enableval=$enable_framework;
Jack Jansene578a632001-08-15 01:27:14 +00001944 case $enableval in
Martin v. Löwis11437992002-04-12 09:54:03 +00001945 yes)
Jack Jansene578a632001-08-15 01:27:14 +00001946 enableval=/Library/Frameworks
Jack Jansen127e56e2001-09-11 14:41:54 +00001947 esac
1948 case $enableval in
1949 no)
1950 PYTHONFRAMEWORK=
1951 PYTHONFRAMEWORKDIR=no-framework
1952 PYTHONFRAMEWORKPREFIX=
1953 PYTHONFRAMEWORKINSTALLDIR=
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00001954 FRAMEWORKINSTALLFIRST=
1955 FRAMEWORKINSTALLLAST=
Ronald Oussoren5b787322006-06-06 19:50:24 +00001956 FRAMEWORKALTINSTALLFIRST=
1957 FRAMEWORKALTINSTALLLAST=
Ronald Oussoren2db3a8f2006-06-07 19:06:01 +00001958 if test "x${prefix}" = "xNONE"; then
1959 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1960 else
1961 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1962 fi
Jack Jansen127e56e2001-09-11 14:41:54 +00001963 enable_framework=
Jack Jansene578a632001-08-15 01:27:14 +00001964 ;;
1965 *)
1966 PYTHONFRAMEWORKPREFIX=$enableval
Jack Jansen127e56e2001-09-11 14:41:54 +00001967 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00001968 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001969 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1970 if test "$UNIVERSAL_ARCHS" = "all"
1971 then
1972 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1973 else
1974 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1975 fi
1976
Ronald Oussoren2db3a8f2006-06-07 19:06:01 +00001977 if test "x${prefix}" = "xNONE" ; then
1978 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1979 else
1980 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1981 fi
Jack Jansen127e56e2001-09-11 14:41:54 +00001982 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
Ronald Oussoren836b0392006-05-14 19:56:34 +00001983
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00001984 # Add files for Mac specific code to the list of output
Ronald Oussoren836b0392006-05-14 19:56:34 +00001985 # files:
Martin v. Löwiseba40652007-08-30 20:10:57 +00001986 ac_config_files="$ac_config_files Mac/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:34 +00001987
Martin v. Löwiseba40652007-08-30 20:10:57 +00001988 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:34 +00001989
Martin v. Löwiseba40652007-08-30 20:10:57 +00001990 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:34 +00001991
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00001992 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1993
1994 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1995
Jack Jansene578a632001-08-15 01:27:14 +00001996 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00001997
Guido van Rossum563e7081996-09-10 18:20:48 +00001998else
Martin v. Löwis11437992002-04-12 09:54:03 +00001999
Jack Jansene578a632001-08-15 01:27:14 +00002000 PYTHONFRAMEWORK=
Jack Jansen127e56e2001-09-11 14:41:54 +00002001 PYTHONFRAMEWORKDIR=no-framework
Jack Jansene578a632001-08-15 01:27:14 +00002002 PYTHONFRAMEWORKPREFIX=
2003 PYTHONFRAMEWORKINSTALLDIR=
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00002004 FRAMEWORKINSTALLFIRST=
2005 FRAMEWORKINSTALLLAST=
Ronald Oussoren5b787322006-06-06 19:50:24 +00002006 FRAMEWORKALTINSTALLFIRST=
2007 FRAMEWORKALTINSTALLLAST=
Ronald Oussoren2db3a8f2006-06-07 19:06:01 +00002008 if test "x${prefix}" = "xNONE" ; then
2009 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2010 else
2011 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2012 fi
Jack Jansene578a632001-08-15 01:27:14 +00002013 enable_framework=
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002014
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002015 if test "$UNIVERSAL_ARCHS" = "all"
2016 then
2017 FRAMEWORKINSTALLLAST=update4wayuniversal
2018 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2019 fi
2020
Martin v. Löwiseba40652007-08-30 20:10:57 +00002021fi
2022
Michael W. Hudson54241132001-12-07 15:38:26 +00002023
2024
2025
2026
Jack Jansene578a632001-08-15 01:27:14 +00002027
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00002028
2029
Ronald Oussoren5b787322006-06-06 19:50:24 +00002030
2031
2032
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00002033
Jack Jansene578a632001-08-15 01:27:14 +00002034##AC_ARG_WITH(dyld,
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00002035## AC_HELP_STRING(--with-dyld,
2036## Use (OpenStep|Rhapsody) dynamic linker))
Jack Jansene578a632001-08-15 01:27:14 +00002037##
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002038# Set name for machine-dependent library files
2039
Martin v. Löwiseba40652007-08-30 20:10:57 +00002040{ echo "$as_me:$LINENO: checking MACHDEP" >&5
2041echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002042if test -z "$MACHDEP"
2043then
Guido van Rossum563e7081996-09-10 18:20:48 +00002044 ac_sys_system=`uname -s`
Martin v. Löwis21ee4092002-09-30 16:19:48 +00002045 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2046 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
Guido van Rossum563e7081996-09-10 18:20:48 +00002047 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002048 else
Guido van Rossum563e7081996-09-10 18:20:48 +00002049 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002050 fi
Guido van Rossum563e7081996-09-10 18:20:48 +00002051 ac_md_system=`echo $ac_sys_system |
2052 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2053 ac_md_release=`echo $ac_sys_release |
Guido van Rossum67b26592001-10-20 14:21:45 +00002054 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
Guido van Rossumb97ef171997-09-28 05:44:03 +00002055 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:48 +00002056
Guido van Rossum07397971997-04-29 21:49:50 +00002057 case $MACHDEP in
Andrew M. Kuchling5a3e4cb2001-07-20 19:29:04 +00002058 cygwin*) MACHDEP="cygwin";;
Jack Jansen8a97f4a2001-12-05 23:27:32 +00002059 darwin*) MACHDEP="darwin";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00002060 atheos*) MACHDEP="atheos";;
Martin v. Löwisf3322282003-07-13 09:46:13 +00002061 irix646) MACHDEP="irix6";;
Guido van Rossumb97ef171997-09-28 05:44:03 +00002062 '') MACHDEP="unknown";;
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002063 esac
2064fi
Guido van Rossum91922671997-10-09 20:24:13 +00002065
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002066# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2067# disable features if it is defined, without any means to access these
2068# features as extensions. For these systems, we skip the definition of
2069# _XOPEN_SOURCE. Before adding a system to the list to gain access to
2070# some feature, make sure there is no alternative way to access this
2071# feature. Also, when using wildcards, make sure you have verified the
2072# need for not defining _XOPEN_SOURCE on all systems matching the
2073# wildcard, and that the wildcard does not include future systems
2074# (which may remove their limitations).
2075case $ac_sys_system/$ac_sys_release in
2076 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2077 # even though select is a POSIX function. Reported by J. Ribbens.
Martin v. Löwis76bafc62003-10-03 13:47:44 +00002078 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
Gregory P. Smithcc023f12008-09-07 05:15:58 +00002079 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
Martin v. Löwiscb78de62007-12-29 18:49:21 +00002080 define_xopen_source=no
2081 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2082 # also defined. This can be overridden by defining _BSD_SOURCE
2083 # As this has a different meaning on Linux, only define it on OpenBSD
2084
2085cat >>confdefs.h <<\_ACEOF
2086#define _BSD_SOURCE 1
2087_ACEOF
2088
2089 ;;
Martin v. Löwis4d542ec2006-11-25 15:39:19 +00002090 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2091 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2092 # Marc Recht
Benjamin Petersoneac68f42008-11-16 17:54:55 +00002093 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
Martin v. Löwis4d542ec2006-11-25 15:39:19 +00002094 define_xopen_source=no;;
Martin v. Löwisa9d71422003-03-28 18:43:31 +00002095 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2096 # of union __?sigval. Reported by Stuart Bishop.
2097 SunOS/5.6)
2098 define_xopen_source=no;;
Martin v. Löwisc2409b42003-05-11 05:53:41 +00002099 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2100 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
Jack Jansen6b08a402004-06-03 12:41:45 +00002101 # Reconfirmed for 7.1.4 by Martin v. Loewis.
Martin v. Löwis253d1f42004-05-07 19:14:14 +00002102 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
Martin v. Löwisc2409b42003-05-11 05:53:41 +00002103 define_xopen_source=no;;
2104 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
Martin v. Löwis53e73c32003-05-05 05:13:18 +00002105 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
Martin v. Löwisc2409b42003-05-11 05:53:41 +00002106 SCO_SV/3.2)
Martin v. Löwis53e73c32003-05-05 05:13:18 +00002107 define_xopen_source=no;;
Martin v. Löwisbb86d832008-11-04 20:40:09 +00002108 # On FreeBSD 4, the math functions C89 does not cover are never defined
2109 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2110 FreeBSD/4.*)
2111 define_xopen_source=no;;
2112 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2113 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2114 # identifies itself as Darwin/7.*
2115 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2116 # disables platform specific features beyond repair.
2117 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2118 # has no effect, don't bother defining them
2119 Darwin/[6789].*)
Anthony Baxter6169c6b2003-10-04 07:46:23 +00002120 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:39 +00002121 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2122 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2123 # or has another value. By not (re)defining it, the defaults come in place.
Martin v. Löwisc19c5a62003-11-18 20:00:44 +00002124 AIX/4)
2125 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:39 +00002126 AIX/5)
2127 if test `uname -r` -eq 1; then
2128 define_xopen_source=no
2129 fi
2130 ;;
Martin v. Löwis8c255e42008-05-23 15:06:50 +00002131 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2132 # defining NI_NUMERICHOST.
2133 QNX/6.3.2)
2134 define_xopen_source=no
2135 ;;
Martin v. Löwisa0588362006-04-04 06:03:50 +00002136
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002137esac
2138
2139if test $define_xopen_source = yes
2140then
Skip Montanarof0d5f792004-08-15 14:08:23 +00002141 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2142 # defined precisely as g++ defines it
Martin v. Löwis7dece662005-11-26 11:38:24 +00002143 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2144 # compiler
Skip Montanarof0d5f792004-08-15 14:08:23 +00002145 case $ac_sys_system/$ac_sys_release in
Martin v. Löwis7dece662005-11-26 11:38:24 +00002146 SunOS/5.8|SunOS/5.9|SunOS/5.10)
Skip Montanarof0d5f792004-08-15 14:08:23 +00002147
2148cat >>confdefs.h <<\_ACEOF
2149#define _XOPEN_SOURCE 500
2150_ACEOF
2151
2152 ;;
2153 *)
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002154
2155cat >>confdefs.h <<\_ACEOF
2156#define _XOPEN_SOURCE 600
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002157_ACEOF
2158
Skip Montanarof0d5f792004-08-15 14:08:23 +00002159 ;;
2160 esac
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002161
2162 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2163 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2164 # several APIs are not declared. Since this is also needed in some
2165 # cases for HP-UX, we define it globally.
Martin v. Löwis7dece662005-11-26 11:38:24 +00002166 # except for Solaris 10, where it must not be defined,
2167 # as it implies XPG4.2
2168 case $ac_sys_system/$ac_sys_release in
2169 SunOS/5.10)
2170 ;;
2171 *)
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002172
2173cat >>confdefs.h <<\_ACEOF
2174#define _XOPEN_SOURCE_EXTENDED 1
2175_ACEOF
2176
Martin v. Löwis7dece662005-11-26 11:38:24 +00002177 ;;
2178 esac
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002179
Bob Ippolito7026a0a2005-03-28 23:23:47 +00002180
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002181cat >>confdefs.h <<\_ACEOF
2182#define _POSIX_C_SOURCE 200112L
2183_ACEOF
2184
2185
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002186fi
2187
Guido van Rossum91922671997-10-09 20:24:13 +00002188#
2189# SGI compilers allow the specification of the both the ABI and the
2190# ISA on the command line. Depending on the values of these switches,
2191# different and often incompatable code will be generated.
2192#
2193# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2194# thus supply support for various ABI/ISA combinations. The MACHDEP
2195# variable is also adjusted.
2196#
2197
2198if test ! -z "$SGI_ABI"
2199then
2200 CC="cc $SGI_ABI"
2201 LDFLAGS="$SGI_ABI $LDFLAGS"
2202 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2203fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002204{ echo "$as_me:$LINENO: result: $MACHDEP" >&5
2205echo "${ECHO_T}$MACHDEP" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002206
Jack Jansen83f898c2002-12-30 22:23:40 +00002207# And add extra plat-mac for darwin
2208
Jack Jansen7b59b422003-03-17 15:44:10 +00002209
Martin v. Löwiseba40652007-08-30 20:10:57 +00002210{ echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2211echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
Jack Jansen83f898c2002-12-30 22:23:40 +00002212if test -z "$EXTRAPLATDIR"
2213then
2214 case $MACHDEP in
Jack Jansen7b59b422003-03-17 15:44:10 +00002215 darwin)
2216 EXTRAPLATDIR="\$(PLATMACDIRS)"
2217 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2218 ;;
2219 *)
2220 EXTRAPLATDIR=""
2221 EXTRAMACHDEPPATH=""
2222 ;;
Jack Jansen83f898c2002-12-30 22:23:40 +00002223 esac
2224fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002225{ echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2226echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
Jack Jansen83f898c2002-12-30 22:23:40 +00002227
Jack Jansen6b08a402004-06-03 12:41:45 +00002228# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2229# it may influence the way we can build extensions, so distutils
2230# needs to check it
2231
Ronald Oussoren988117f2006-04-29 11:31:35 +00002232
Jack Jansen6b08a402004-06-03 12:41:45 +00002233CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
Ronald Oussoren988117f2006-04-29 11:31:35 +00002234EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
Jack Jansen6b08a402004-06-03 12:41:45 +00002235
Mark Dickinson65134662008-04-25 16:11:04 +00002236{ echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2237echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2238ac_sys_machine=`uname -m`
2239{ echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2240echo "${ECHO_T}$ac_sys_machine" >&6; }
2241
Guido van Rossum627b2d71993-12-24 10:39:16 +00002242# checks for alternative programs
Skip Montanarodecc6a42003-01-01 20:07:49 +00002243
2244# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2245# for debug/optimization stuff. BASECFLAGS is for flags that are required
2246# just to get things to compile and link. Users are free to override OPT
2247# when running configure or make. The build should not break if they do.
2248# BASECFLAGS should generally not be messed with, however.
2249
2250# XXX shouldn't some/most/all of this code be merged with the stuff later
2251# on that fiddles with OPT and BASECFLAGS?
Martin v. Löwiseba40652007-08-30 20:10:57 +00002252{ echo "$as_me:$LINENO: checking for --without-gcc" >&5
2253echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002254
Martin v. Löwiseba40652007-08-30 20:10:57 +00002255# Check whether --with-gcc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002256if test "${with_gcc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002257 withval=$with_gcc;
Guido van Rossum7f43da71994-08-01 12:15:30 +00002258 case $withval in
Mark Dickinson04b27232009-01-04 12:29:36 +00002259 no) CC=${CC:-cc}
Guido van Rossumda88dad1995-01-26 00:46:29 +00002260 without_gcc=yes;;
2261 yes) CC=gcc
2262 without_gcc=no;;
2263 *) CC=$withval
2264 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00002265 esac
Guido van Rossumda88dad1995-01-26 00:46:29 +00002266else
Martin v. Löwis11437992002-04-12 09:54:03 +00002267
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002268 case $ac_sys_system in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002269 AIX*) CC=cc_r
2270 without_gcc=;;
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002271 BeOS*)
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002272 case $BE_HOST_CPU in
2273 ppc)
Fred Drake5790be12000-10-09 17:06:13 +00002274 CC=mwcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002275 without_gcc=yes
Skip Montanarodecc6a42003-01-01 20:07:49 +00002276 BASECFLAGS="$BASECFLAGS -export pragma"
2277 OPT="$OPT -O"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002278 LDFLAGS="$LDFLAGS -nodup"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002279 ;;
2280 x86)
Fred Drake5790be12000-10-09 17:06:13 +00002281 CC=gcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002282 without_gcc=no
Skip Montanarodecc6a42003-01-01 20:07:49 +00002283 OPT="$OPT -O"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002284 ;;
2285 *)
Martin v. Löwis11437992002-04-12 09:54:03 +00002286 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2287echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2288 { (exit 1); exit 1; }; }
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002289 ;;
2290 esac
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002291 AR="\$(srcdir)/Modules/ar_beos"
2292 RANLIB=:
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002293 ;;
Trent Mick635f6fb2000-08-23 21:33:05 +00002294 Monterey*)
2295 RANLIB=:
Martin v. Löwis130fb172001-07-19 11:00:41 +00002296 without_gcc=;;
2297 *) without_gcc=no;;
Guido van Rossume77438c1995-09-13 18:59:59 +00002298 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00002299fi
2300
2301{ echo "$as_me:$LINENO: result: $without_gcc" >&5
2302echo "${ECHO_T}$without_gcc" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002303
Guido van Rossum8b131c51995-03-09 14:10:13 +00002304# If the user switches compilers, we can't believe the cache
2305if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2306then
Martin v. Löwis11437992002-04-12 09:54:03 +00002307 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2308(it is also a good idea to do 'make clean' before compiling)" >&5
2309echo "$as_me: error: cached CC is different -- throw away $cache_file
2310(it is also a good idea to do 'make clean' before compiling)" >&2;}
2311 { (exit 1); exit 1; }; }
Guido van Rossum8b131c51995-03-09 14:10:13 +00002312fi
2313
Martin v. Löwis11437992002-04-12 09:54:03 +00002314ac_ext=c
2315ac_cpp='$CPP $CPPFLAGS'
2316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2321set dummy ${ac_tool_prefix}gcc; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002324if test "${ac_cv_prog_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002326else
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2329else
Martin v. Löwis11437992002-04-12 09:54:03 +00002330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 break 2
2340 fi
2341done
2342done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002343IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002344
Jack Jansendd19cf82001-12-06 22:36:17 +00002345fi
2346fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002347CC=$ac_cv_prog_CC
Jack Jansendd19cf82001-12-06 22:36:17 +00002348if test -n "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002349 { echo "$as_me:$LINENO: result: $CC" >&5
2350echo "${ECHO_T}$CC" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00002351else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002352 { echo "$as_me:$LINENO: result: no" >&5
2353echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002354fi
2355
Martin v. Löwiseba40652007-08-30 20:10:57 +00002356
Martin v. Löwis11437992002-04-12 09:54:03 +00002357fi
2358if test -z "$ac_cv_prog_CC"; then
2359 ac_ct_CC=$CC
2360 # Extract the first word of "gcc", so it can be a program name with args.
2361set dummy gcc; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367 if test -n "$ac_ct_CC"; then
2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2369else
2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371for as_dir in $PATH
2372do
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002377 ac_cv_prog_ac_ct_CC="gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2380 fi
2381done
2382done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002383IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002384
2385fi
2386fi
2387ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388if test -n "$ac_ct_CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390echo "${ECHO_T}$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002391else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002392 { echo "$as_me:$LINENO: result: no" >&5
2393echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002394fi
2395
Martin v. Löwiseba40652007-08-30 20:10:57 +00002396 if test "x$ac_ct_CC" = x; then
2397 CC=""
2398 else
2399 case $cross_compiling:$ac_tool_warned in
2400yes:)
2401{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402whose name does not start with the host triplet. If you think this
2403configuration is useful to you, please write to autoconf@gnu.org." >&5
2404echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405whose name does not start with the host triplet. If you think this
2406configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407ac_tool_warned=yes ;;
2408esac
2409 CC=$ac_ct_CC
2410 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002411else
2412 CC="$ac_cv_prog_CC"
Jack Jansendd19cf82001-12-06 22:36:17 +00002413fi
2414
Jack Jansendd19cf82001-12-06 22:36:17 +00002415if test -z "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002416 if test -n "$ac_tool_prefix"; then
2417 # 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 +00002418set dummy ${ac_tool_prefix}cc; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002421if test "${ac_cv_prog_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansendd19cf82001-12-06 22:36:17 +00002423else
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426else
Martin v. Löwis11437992002-04-12 09:54:03 +00002427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002434 ac_cv_prog_CC="${ac_tool_prefix}cc"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2437 fi
2438done
2439done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002440IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002441
2442fi
2443fi
2444CC=$ac_cv_prog_CC
2445if test -n "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002446 { echo "$as_me:$LINENO: result: $CC" >&5
2447echo "${ECHO_T}$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002448else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002449 { echo "$as_me:$LINENO: result: no" >&5
2450echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002451fi
2452
Martin v. Löwiseba40652007-08-30 20:10:57 +00002453
Martin v. Löwis11437992002-04-12 09:54:03 +00002454 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002455fi
2456if test -z "$CC"; then
2457 # Extract the first word of "cc", so it can be a program name with args.
2458set dummy cc; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002461if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466else
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002467 ac_prog_rejected=no
Martin v. Löwis11437992002-04-12 09:54:03 +00002468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002475 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2476 ac_prog_rejected=yes
2477 continue
2478 fi
2479 ac_cv_prog_CC="cc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483done
2484done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002485IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002486
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002487if test $ac_prog_rejected = yes; then
2488 # We found a bogon in the path, so make sure we never use it.
2489 set dummy $ac_cv_prog_CC
2490 shift
Martin v. Löwis11437992002-04-12 09:54:03 +00002491 if test $# != 0; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002492 # We chose a different compiler from the bogus one.
2493 # However, it has the same basename, so the bogon will be chosen
2494 # first if we set CC to just the basename; use the full file name.
2495 shift
Skip Montanaro6dead952003-09-25 14:50:04 +00002496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002497 fi
2498fi
2499fi
2500fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002501CC=$ac_cv_prog_CC
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002502if test -n "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002503 { echo "$as_me:$LINENO: result: $CC" >&5
2504echo "${ECHO_T}$CC" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002505else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002506 { echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002508fi
2509
Martin v. Löwiseba40652007-08-30 20:10:57 +00002510
Martin v. Löwis11437992002-04-12 09:54:03 +00002511fi
2512if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002514 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:03 +00002515 do
2516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2517set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002520if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002522else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525else
Martin v. Löwis11437992002-04-12 09:54:03 +00002526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
Guido van Rossumf78abae1997-01-21 22:02:36 +00002536 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002537done
2538done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002539IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002540
2541fi
2542fi
2543CC=$ac_cv_prog_CC
2544if test -n "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002545 { echo "$as_me:$LINENO: result: $CC" >&5
2546echo "${ECHO_T}$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002547else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002548 { echo "$as_me:$LINENO: result: no" >&5
2549echo "${ECHO_T}no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00002550fi
2551
Martin v. Löwiseba40652007-08-30 20:10:57 +00002552
Martin v. Löwis11437992002-04-12 09:54:03 +00002553 test -n "$CC" && break
2554 done
2555fi
2556if test -z "$CC"; then
2557 ac_ct_CC=$CC
Martin v. Löwiseba40652007-08-30 20:10:57 +00002558 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:03 +00002559do
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561set dummy $ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002577 ac_cv_prog_ac_ct_CC="$ac_prog"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581done
2582done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002583IFS=$as_save_IFS
Jack Jansendd19cf82001-12-06 22:36:17 +00002584
Martin v. Löwis11437992002-04-12 09:54:03 +00002585fi
2586fi
2587ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588if test -n "$ac_ct_CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590echo "${ECHO_T}$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002591else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002592 { echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002594fi
Michael W. Hudson54241132001-12-07 15:38:26 +00002595
Martin v. Löwiseba40652007-08-30 20:10:57 +00002596
Martin v. Löwis11437992002-04-12 09:54:03 +00002597 test -n "$ac_ct_CC" && break
2598done
Michael W. Hudson54241132001-12-07 15:38:26 +00002599
Martin v. Löwiseba40652007-08-30 20:10:57 +00002600 if test "x$ac_ct_CC" = x; then
2601 CC=""
2602 else
2603 case $cross_compiling:$ac_tool_warned in
2604yes:)
2605{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2606whose name does not start with the host triplet. If you think this
2607configuration is useful to you, please write to autoconf@gnu.org." >&5
2608echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2609whose name does not start with the host triplet. If you think this
2610configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2611ac_tool_warned=yes ;;
2612esac
2613 CC=$ac_ct_CC
2614 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002615fi
2616
2617fi
2618
2619
Skip Montanaro6dead952003-09-25 14:50:04 +00002620test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2621See \`config.log' for more details." >&5
2622echo "$as_me: error: no acceptable C compiler found in \$PATH
2623See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002624 { (exit 1); exit 1; }; }
2625
2626# Provide some information about the compiler.
Martin v. Löwiseba40652007-08-30 20:10:57 +00002627echo "$as_me:$LINENO: checking for C compiler version" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002628ac_compiler=`set X $ac_compile; echo $2`
Martin v. Löwiseba40652007-08-30 20:10:57 +00002629{ (ac_try="$ac_compiler --version >&5"
2630case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633esac
2634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_compiler --version >&5") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }
Martin v. Löwiseba40652007-08-30 20:10:57 +00002639{ (ac_try="$ac_compiler -v >&5"
2640case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643esac
2644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compiler -v >&5") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }
Martin v. Löwiseba40652007-08-30 20:10:57 +00002649{ (ac_try="$ac_compiler -V >&5"
2650case "(($ac_try" in
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2653esac
2654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compiler -V >&5") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }
2659
2660cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002661/* confdefs.h. */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h. */
Jack Jansendd19cf82001-12-06 22:36:17 +00002666
Martin v. Löwis11437992002-04-12 09:54:03 +00002667int
2668main ()
2669{
2670
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675ac_clean_files_save=$ac_clean_files
Skip Montanaro6dead952003-09-25 14:50:04 +00002676ac_clean_files="$ac_clean_files a.out a.exe b.out"
Martin v. Löwis11437992002-04-12 09:54:03 +00002677# Try to create an executable without -o first, disregard a.out.
2678# It will help us diagnose broken compilers, and finding out an intuition
2679# of exeext.
Martin v. Löwiseba40652007-08-30 20:10:57 +00002680{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2681echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002682ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Martin v. Löwiseba40652007-08-30 20:10:57 +00002683#
2684# List of possible output files, starting from the most likely.
2685# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2686# only as a last resort. b.out is created by i960 compilers.
2687ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2688#
2689# The IRIX 6 linker writes into existing files which may not be
2690# executable, retaining their permissions. Remove them first so a
2691# subsequent execution test works.
2692ac_rmfiles=
2693for ac_file in $ac_files
2694do
2695 case $ac_file in
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2697 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2698 esac
2699done
2700rm -f $ac_rmfiles
2701
2702if { (ac_try="$ac_link_default"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_link_default") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002712 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2713# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2714# in a Makefile. We should not override ac_cv_exeext if it was cached,
2715# so that the user can short-circuit this test for compilers unknown to
2716# Autoconf.
2717for ac_file in $ac_files ''
Skip Montanaro6dead952003-09-25 14:50:04 +00002718do
2719 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:03 +00002720 case $ac_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +00002721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Skip Montanarof0d5f792004-08-15 14:08:23 +00002722 ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002723 [ab].out )
Skip Montanarof0d5f792004-08-15 14:08:23 +00002724 # We found the default executable, but exeext='' is most
2725 # certainly right.
2726 break;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002727 *.* )
Martin v. Löwiseba40652007-08-30 20:10:57 +00002728 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2729 then :; else
2730 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2731 fi
2732 # We set ac_cv_exeext here because the later test for it is not
2733 # safe: cross compilers may not add the suffix if given an `-o'
2734 # argument, so we may need to know it at that point already.
2735 # Even if this section looks crufty: it has the advantage of
2736 # actually working.
Skip Montanarof0d5f792004-08-15 14:08:23 +00002737 break;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002738 * )
Skip Montanarof0d5f792004-08-15 14:08:23 +00002739 break;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002740 esac
2741done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002742test "$ac_cv_exeext" = no && ac_cv_exeext=
2743
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002744else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002745 ac_file=''
2746fi
2747
2748{ echo "$as_me:$LINENO: result: $ac_file" >&5
2749echo "${ECHO_T}$ac_file" >&6; }
2750if test -z "$ac_file"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002751 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00002752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2755See \`config.log' for more details." >&5
2756echo "$as_me: error: C compiler cannot create executables
2757See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002758 { (exit 77); exit 77; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002759fi
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002760
Martin v. Löwis11437992002-04-12 09:54:03 +00002761ac_exeext=$ac_cv_exeext
Michael W. Hudson54241132001-12-07 15:38:26 +00002762
Martin v. Löwiseba40652007-08-30 20:10:57 +00002763# Check that the compiler produces executables we can run. If not, either
Martin v. Löwis11437992002-04-12 09:54:03 +00002764# the compiler is broken, or we cross compile.
Martin v. Löwiseba40652007-08-30 20:10:57 +00002765{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2766echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002767# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2768# If not cross compiling, check that we can run a simple program.
2769if test "$cross_compiling" != yes; then
2770 if { ac_try='./$ac_file'
Martin v. Löwiseba40652007-08-30 20:10:57 +00002771 { (case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774esac
2775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 cross_compiling=no
2781 else
2782 if test "$cross_compiling" = maybe; then
2783 cross_compiling=yes
2784 else
2785 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Skip Montanaro6dead952003-09-25 14:50:04 +00002786If you meant to cross compile, use \`--host'.
2787See \`config.log' for more details." >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002788echo "$as_me: error: cannot run C compiled programs.
Skip Montanaro6dead952003-09-25 14:50:04 +00002789If you meant to cross compile, use \`--host'.
2790See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002791 { (exit 1); exit 1; }; }
2792 fi
2793 fi
2794fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002795{ echo "$as_me:$LINENO: result: yes" >&5
2796echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002797
Skip Montanaro6dead952003-09-25 14:50:04 +00002798rm -f a.out a.exe conftest$ac_cv_exeext b.out
Martin v. Löwis11437992002-04-12 09:54:03 +00002799ac_clean_files=$ac_clean_files_save
Martin v. Löwiseba40652007-08-30 20:10:57 +00002800# Check that the compiler produces executables we can run. If not, either
Martin v. Löwis11437992002-04-12 09:54:03 +00002801# the compiler is broken, or we cross compile.
Martin v. Löwiseba40652007-08-30 20:10:57 +00002802{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2803echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2804{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2805echo "${ECHO_T}$cross_compiling" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002806
Martin v. Löwiseba40652007-08-30 20:10:57 +00002807{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2808echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2809if { (ac_try="$ac_link"
2810case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813esac
2814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; then
2819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2820# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2821# work properly (i.e., refer to `conftest.exe'), while it won't with
2822# `rm'.
Skip Montanaro6dead952003-09-25 14:50:04 +00002823for ac_file in conftest.exe conftest conftest.*; do
2824 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:03 +00002825 case $ac_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +00002826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Skip Montanarof0d5f792004-08-15 14:08:23 +00002828 break;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002829 * ) break;;
2830 esac
2831done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002832else
Skip Montanaro6dead952003-09-25 14:50:04 +00002833 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2834See \`config.log' for more details." >&5
2835echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2836See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002837 { (exit 1); exit 1; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002838fi
Jack Jansendd19cf82001-12-06 22:36:17 +00002839
Martin v. Löwis11437992002-04-12 09:54:03 +00002840rm -f conftest$ac_cv_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00002841{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2842echo "${ECHO_T}$ac_cv_exeext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002843
2844rm -f conftest.$ac_ext
2845EXEEXT=$ac_cv_exeext
2846ac_exeext=$EXEEXT
Martin v. Löwiseba40652007-08-30 20:10:57 +00002847{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2848echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002849if test "${ac_cv_objext+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00002851else
Martin v. Löwis11437992002-04-12 09:54:03 +00002852 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002853/* confdefs.h. */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00002858
Martin v. Löwis11437992002-04-12 09:54:03 +00002859int
2860main ()
2861{
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867rm -f conftest.o conftest.obj
Martin v. Löwiseba40652007-08-30 20:10:57 +00002868if { (ac_try="$ac_compile"
2869case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872esac
2873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_compile") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002878 for ac_file in conftest.o conftest.obj conftest.*; do
2879 test -f "$ac_file" || continue;
Martin v. Löwis11437992002-04-12 09:54:03 +00002880 case $ac_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +00002881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002882 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2883 break;;
2884 esac
2885done
2886else
2887 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00002888sed 's/^/| /' conftest.$ac_ext >&5
2889
2890{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2891See \`config.log' for more details." >&5
2892echo "$as_me: error: cannot compute suffix of object files: cannot compile
2893See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002894 { (exit 1); exit 1; }; }
2895fi
2896
2897rm -f conftest.$ac_cv_objext conftest.$ac_ext
2898fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002899{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2900echo "${ECHO_T}$ac_cv_objext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002901OBJEXT=$ac_cv_objext
2902ac_objext=$OBJEXT
Martin v. Löwiseba40652007-08-30 20:10:57 +00002903{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2904echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002905if test "${ac_cv_c_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00002914
Martin v. Löwis11437992002-04-12 09:54:03 +00002915int
2916main ()
2917{
2918#ifndef __GNUC__
2919 choke me
2920#endif
2921
2922 ;
2923 return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00002927if { (ac_try="$ac_compile"
2928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00002934 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00002935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00002939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002943 ac_compiler_gnu=yes
2944else
2945 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00002946sed 's/^/| /' conftest.$ac_ext >&5
2947
Martin v. Löwiseba40652007-08-30 20:10:57 +00002948 ac_compiler_gnu=no
Martin v. Löwis11437992002-04-12 09:54:03 +00002949fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002950
2951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00002952ac_cv_c_compiler_gnu=$ac_compiler_gnu
2953
2954fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002955{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2956echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002957GCC=`test $ac_compiler_gnu = yes && echo yes`
2958ac_test_CFLAGS=${CFLAGS+set}
2959ac_save_CFLAGS=$CFLAGS
Martin v. Löwiseba40652007-08-30 20:10:57 +00002960{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2961echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002962if test "${ac_cv_prog_cc_g+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002965 ac_save_c_werror_flag=$ac_c_werror_flag
2966 ac_c_werror_flag=yes
2967 ac_cv_prog_cc_g=no
2968 CFLAGS="-g"
2969 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002970/* confdefs.h. */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00002975
Martin v. Löwis11437992002-04-12 09:54:03 +00002976int
2977main ()
2978{
2979
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00002985if { (ac_try="$ac_compile"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00002992 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00002993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00002997 (exit $ac_status); } && {
2998 test -z "$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00003001 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003002else
Martin v. Löwis11437992002-04-12 09:54:03 +00003003 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003004sed 's/^/| /' conftest.$ac_ext >&5
3005
Martin v. Löwiseba40652007-08-30 20:10:57 +00003006 CFLAGS=""
3007 cat >conftest.$ac_ext <<_ACEOF
3008/* confdefs.h. */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h. */
3013
3014int
3015main ()
3016{
3017
3018 ;
3019 return 0;
3020}
3021_ACEOF
3022rm -f conftest.$ac_objext
3023if { (ac_try="$ac_compile"
3024case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && {
3036 test -z "$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3038 } && test -s conftest.$ac_objext; then
3039 :
3040else
3041 echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 ac_c_werror_flag=$ac_save_c_werror_flag
3045 CFLAGS="-g"
3046 cat >conftest.$ac_ext <<_ACEOF
3047/* confdefs.h. */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h. */
3052
3053int
3054main ()
3055{
3056
3057 ;
3058 return 0;
3059}
3060_ACEOF
3061rm -f conftest.$ac_objext
3062if { (ac_try="$ac_compile"
3063case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_c_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.$ac_objext; then
3078 ac_cv_prog_cc_g=yes
3079else
3080 echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083
Guido van Rossum627b2d71993-12-24 10:39:16 +00003084fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003085
3086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003087fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003088
3089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090fi
3091
3092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3094fi
3095{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3096echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003097if test "$ac_test_CFLAGS" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003098 CFLAGS=$ac_save_CFLAGS
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003099elif test $ac_cv_prog_cc_g = yes; then
3100 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00003101 CFLAGS="-g -O2"
3102 else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003103 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003104 fi
3105else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003106 if test "$GCC" = yes; then
3107 CFLAGS="-O2"
3108 else
3109 CFLAGS=
3110 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003111fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003112{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3113echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3114if test "${ac_cv_prog_cc_c89+set}" = set; then
Skip Montanaro6dead952003-09-25 14:50:04 +00003115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003117 ac_cv_prog_cc_c89=no
Skip Montanaro6dead952003-09-25 14:50:04 +00003118ac_save_CC=$CC
3119cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125#include <stdarg.h>
3126#include <stdio.h>
3127#include <sys/types.h>
3128#include <sys/stat.h>
3129/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3130struct buf { int x; };
3131FILE * (*rcsopen) (struct buf *, struct stat *, int);
3132static char *e (p, i)
3133 char **p;
3134 int i;
3135{
3136 return p[i];
3137}
3138static char *f (char * (*g) (char **, int), char **p, ...)
3139{
3140 char *s;
3141 va_list v;
3142 va_start (v,p);
3143 s = g (p, va_arg (v,int));
3144 va_end (v);
3145 return s;
3146}
Skip Montanarof0d5f792004-08-15 14:08:23 +00003147
3148/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3149 function prototypes and stuff, but not '\xHH' hex character constants.
3150 These don't provoke an error unfortunately, instead are silently treated
Martin v. Löwiseba40652007-08-30 20:10:57 +00003151 as 'x'. The following induces an error, until -std is added to get
Skip Montanarof0d5f792004-08-15 14:08:23 +00003152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3153 array size at least. It's necessary to write '\x00'==0 to get something
Martin v. Löwiseba40652007-08-30 20:10:57 +00003154 that's true only with -std. */
Skip Montanarof0d5f792004-08-15 14:08:23 +00003155int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3156
Martin v. Löwiseba40652007-08-30 20:10:57 +00003157/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3158 inside strings and character constants. */
3159#define FOO(x) 'x'
3160int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3161
Skip Montanaro6dead952003-09-25 14:50:04 +00003162int test (int i, double x);
3163struct s1 {int (*f) (int a);};
3164struct s2 {int (*f) (double a);};
3165int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166int argc;
3167char **argv;
3168int
3169main ()
3170{
3171return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3172 ;
3173 return 0;
3174}
3175_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003176for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Skip Montanaro6dead952003-09-25 14:50:04 +00003178do
3179 CC="$ac_save_CC $ac_arg"
3180 rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00003181if { (ac_try="$ac_compile"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +00003188 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00003189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3197 ac_cv_prog_cc_c89=$ac_arg
Skip Montanaro6dead952003-09-25 14:50:04 +00003198else
3199 echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
Martin v. Löwiseba40652007-08-30 20:10:57 +00003202
Skip Montanaro6dead952003-09-25 14:50:04 +00003203fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003204
3205rm -f core conftest.err conftest.$ac_objext
3206 test "x$ac_cv_prog_cc_c89" != "xno" && break
Skip Montanaro6dead952003-09-25 14:50:04 +00003207done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003208rm -f conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00003209CC=$ac_save_CC
3210
3211fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003212# AC_CACHE_VAL
3213case "x$ac_cv_prog_cc_c89" in
3214 x)
3215 { echo "$as_me:$LINENO: result: none needed" >&5
3216echo "${ECHO_T}none needed" >&6; } ;;
3217 xno)
3218 { echo "$as_me:$LINENO: result: unsupported" >&5
3219echo "${ECHO_T}unsupported" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00003220 *)
Martin v. Löwiseba40652007-08-30 20:10:57 +00003221 CC="$CC $ac_cv_prog_cc_c89"
3222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3223echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00003224esac
3225
Skip Montanaro6dead952003-09-25 14:50:04 +00003226
Martin v. Löwis11437992002-04-12 09:54:03 +00003227ac_ext=c
3228ac_cpp='$CPP $CPPFLAGS'
3229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003232
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003233
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003234
3235
Martin v. Löwiseba40652007-08-30 20:10:57 +00003236{ echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3237echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003238
Martin v. Löwiseba40652007-08-30 20:10:57 +00003239# Check whether --with-cxx_main was given.
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003240if test "${with_cxx_main+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003241 withval=$with_cxx_main;
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003242
3243 case $withval in
3244 no) with_cxx_main=no
3245 MAINCC='$(CC)';;
3246 yes) with_cxx_main=yes
3247 MAINCC='$(CXX)';;
3248 *) with_cxx_main=yes
3249 MAINCC=$withval
3250 if test -z "$CXX"
3251 then
3252 CXX=$withval
3253 fi;;
3254 esac
3255else
3256
3257 with_cxx_main=no
3258 MAINCC='$(CC)'
3259
Martin v. Löwiseba40652007-08-30 20:10:57 +00003260fi
3261
3262{ echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3263echo "${ECHO_T}$with_cxx_main" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003264
3265preset_cxx="$CXX"
3266if test -z "$CXX"
3267then
3268 case "$CC" in
3269 gcc) # Extract the first word of "g++", so it can be a program name with args.
3270set dummy g++; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00003271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003273if test "${ac_cv_path_CXX+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276 case $CXX in
3277 [\\/]* | ?:[\\/]*)
3278 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3279 ;;
3280 *)
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in notfound
3283do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00003287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003288 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292done
3293done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003294IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003295
3296 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3297 ;;
3298esac
3299fi
3300CXX=$ac_cv_path_CXX
Skip Montanaro89e975f2007-08-22 19:05:21 +00003301if test -n "$CXX"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003302 { echo "$as_me:$LINENO: result: $CXX" >&5
3303echo "${ECHO_T}$CXX" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003304else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003305 { echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003307fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003308
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003309 ;;
3310 cc) # Extract the first word of "c++", so it can be a program name with args.
3311set dummy c++; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00003312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003314if test "${ac_cv_path_CXX+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
3317 case $CXX in
3318 [\\/]* | ?:[\\/]*)
3319 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3320 ;;
3321 *)
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in notfound
3324do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00003328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003329 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333done
3334done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003335IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003336
3337 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3338 ;;
3339esac
3340fi
3341CXX=$ac_cv_path_CXX
Skip Montanaro89e975f2007-08-22 19:05:21 +00003342if test -n "$CXX"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003343 { echo "$as_me:$LINENO: result: $CXX" >&5
3344echo "${ECHO_T}$CXX" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003345else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003346 { echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003348fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003349
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003350 ;;
3351 esac
3352 if test "$CXX" = "notfound"
3353 then
3354 CXX=""
3355 fi
3356fi
3357if test -z "$CXX"
3358then
3359 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3360do
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362set dummy $ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00003363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003365if test "${ac_cv_prog_CXX+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368 if test -n "$CXX"; then
3369 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00003377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003378 ac_cv_prog_CXX="$ac_prog"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382done
3383done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003384IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003385
3386fi
3387fi
3388CXX=$ac_cv_prog_CXX
3389if test -n "$CXX"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003390 { echo "$as_me:$LINENO: result: $CXX" >&5
3391echo "${ECHO_T}$CXX" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003392else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003393 { echo "$as_me:$LINENO: result: no" >&5
3394echo "${ECHO_T}no" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003395fi
3396
Martin v. Löwiseba40652007-08-30 20:10:57 +00003397
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003398 test -n "$CXX" && break
3399done
3400test -n "$CXX" || CXX="notfound"
3401
3402 if test "$CXX" = "notfound"
3403 then
3404 CXX=""
3405 fi
3406fi
3407if test "$preset_cxx" != "$CXX"
3408then
3409 { echo "$as_me:$LINENO: WARNING:
3410
3411 By default, distutils will build C++ extension modules with \"$CXX\".
3412 If this is not intended, then set CXX on the configure command line.
3413 " >&5
3414echo "$as_me: WARNING:
3415
3416 By default, distutils will build C++ extension modules with \"$CXX\".
3417 If this is not intended, then set CXX on the configure command line.
3418 " >&2;}
3419fi
3420
3421
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003422# checks for UNIX variants that set C preprocessor variables
Martin v. Löwis11437992002-04-12 09:54:03 +00003423
3424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
Martin v. Löwiseba40652007-08-30 20:10:57 +00003429{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3430echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003431# On Suns, sometimes $CPP names a directory.
3432if test -n "$CPP" && test -d "$CPP"; then
3433 CPP=
3434fi
3435if test -z "$CPP"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003436 if test "${ac_cv_prog_CPP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003438else
Martin v. Löwis11437992002-04-12 09:54:03 +00003439 # Double quotes because CPP needs to be expanded
3440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3441 do
3442 ac_preproc_ok=false
3443for ac_c_preproc_warn_flag in '' yes
3444do
3445 # Use a header file that comes with gcc, so configuring glibc
3446 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:04 +00003447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3448 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003449 # On the NeXT, cc -E runs the code through the compiler's parser,
Martin v. Löwis11437992002-04-12 09:54:03 +00003450 # not just through cpp. "Syntax error" is here to catch this case.
3451 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003452/* confdefs.h. */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
3456/* end confdefs.h. */
3457#ifdef __STDC__
3458# include <limits.h>
3459#else
3460# include <assert.h>
3461#endif
Skip Montanarof0d5f792004-08-15 14:08:23 +00003462 Syntax error
Martin v. Löwis11437992002-04-12 09:54:03 +00003463_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003464if { (ac_try="$ac_cpp conftest.$ac_ext"
3465case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468esac
3469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003471 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003472 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003476 (exit $ac_status); } >/dev/null && {
3477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 }; then
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003480 :
3481else
Martin v. Löwis11437992002-04-12 09:54:03 +00003482 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003483sed 's/^/| /' conftest.$ac_ext >&5
3484
Martin v. Löwis11437992002-04-12 09:54:03 +00003485 # Broken: fails on valid input.
3486continue
Jack Jansendd19cf82001-12-06 22:36:17 +00003487fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003488
Martin v. Löwis11437992002-04-12 09:54:03 +00003489rm -f conftest.err conftest.$ac_ext
Jack Jansendd19cf82001-12-06 22:36:17 +00003490
Martin v. Löwiseba40652007-08-30 20:10:57 +00003491 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:03 +00003492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003494/* confdefs.h. */
3495_ACEOF
3496cat confdefs.h >>conftest.$ac_ext
3497cat >>conftest.$ac_ext <<_ACEOF
3498/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00003499#include <ac_nonexistent.h>
3500_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003501if { (ac_try="$ac_cpp conftest.$ac_ext"
3502case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003508 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003509 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003513 (exit $ac_status); } >/dev/null && {
3514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003517 # Broken: success on invalid input.
3518continue
3519else
3520 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003521sed 's/^/| /' conftest.$ac_ext >&5
3522
Martin v. Löwis11437992002-04-12 09:54:03 +00003523 # Passes both tests.
3524ac_preproc_ok=:
3525break
3526fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003527
Martin v. Löwis11437992002-04-12 09:54:03 +00003528rm -f conftest.err conftest.$ac_ext
3529
3530done
3531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532rm -f conftest.err conftest.$ac_ext
3533if $ac_preproc_ok; then
3534 break
3535fi
3536
3537 done
3538 ac_cv_prog_CPP=$CPP
3539
3540fi
3541 CPP=$ac_cv_prog_CPP
3542else
3543 ac_cv_prog_CPP=$CPP
3544fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003545{ echo "$as_me:$LINENO: result: $CPP" >&5
3546echo "${ECHO_T}$CPP" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003547ac_preproc_ok=false
3548for ac_c_preproc_warn_flag in '' yes
3549do
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:04 +00003552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis11437992002-04-12 09:54:03 +00003554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
3562#ifdef __STDC__
3563# include <limits.h>
3564#else
3565# include <assert.h>
3566#endif
Skip Montanarof0d5f792004-08-15 14:08:23 +00003567 Syntax error
Martin v. Löwis11437992002-04-12 09:54:03 +00003568_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003569if { (ac_try="$ac_cpp conftest.$ac_ext"
3570case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003576 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003577 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003581 (exit $ac_status); } >/dev/null && {
3582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003585 :
3586else
3587 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003588sed 's/^/| /' conftest.$ac_ext >&5
3589
Martin v. Löwis11437992002-04-12 09:54:03 +00003590 # Broken: fails on valid input.
3591continue
3592fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003593
Martin v. Löwis11437992002-04-12 09:54:03 +00003594rm -f conftest.err conftest.$ac_ext
3595
Martin v. Löwiseba40652007-08-30 20:10:57 +00003596 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:03 +00003597 # can be detected and how.
3598 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003599/* confdefs.h. */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00003604#include <ac_nonexistent.h>
3605_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003606if { (ac_try="$ac_cpp conftest.$ac_ext"
3607case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610esac
3611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003613 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003614 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003618 (exit $ac_status); } >/dev/null && {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003622 # Broken: success on invalid input.
3623continue
3624else
3625 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003626sed 's/^/| /' conftest.$ac_ext >&5
3627
Martin v. Löwis11437992002-04-12 09:54:03 +00003628 # Passes both tests.
3629ac_preproc_ok=:
3630break
3631fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003632
Martin v. Löwis11437992002-04-12 09:54:03 +00003633rm -f conftest.err conftest.$ac_ext
3634
3635done
3636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637rm -f conftest.err conftest.$ac_ext
3638if $ac_preproc_ok; then
3639 :
3640else
Skip Montanaro6dead952003-09-25 14:50:04 +00003641 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3642See \`config.log' for more details." >&5
3643echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3644See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00003645 { (exit 1); exit 1; }; }
3646fi
3647
3648ac_ext=c
3649ac_cpp='$CPP $CPPFLAGS'
3650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653
3654
Martin v. Löwiseba40652007-08-30 20:10:57 +00003655{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3656echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3657if test "${ac_cv_path_GREP+set}" = set; then
Skip Montanaro6dead952003-09-25 14:50:04 +00003658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003660 # Extract the first word of "grep ggrep" to use in msg output
3661if test -z "$GREP"; then
3662set dummy grep ggrep; ac_prog_name=$2
3663if test "${ac_cv_path_GREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 ac_path_GREP_found=false
3667# Loop through the user's path and test for each of PROGNAME-LIST
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_prog in grep ggrep; do
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3676 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3677 # Check for GNU ac_path_GREP and select it if it is found.
3678 # Check for GNU $ac_path_GREP
3679case `"$ac_path_GREP" --version 2>&1` in
3680*GNU*)
3681 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3682*)
3683 ac_count=0
3684 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3685 while :
3686 do
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 echo 'GREP' >> "conftest.nl"
3691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3693 ac_count=`expr $ac_count + 1`
3694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_GREP="$ac_path_GREP"
3697 ac_path_GREP_max=$ac_count
Skip Montanaro6dead952003-09-25 14:50:04 +00003698 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3701 done
3702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703esac
3704
3705
3706 $ac_path_GREP_found && break 3
3707 done
3708done
3709
3710done
3711IFS=$as_save_IFS
3712
3713
Skip Montanaro6dead952003-09-25 14:50:04 +00003714fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003715
3716GREP="$ac_cv_path_GREP"
3717if test -z "$GREP"; then
3718 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3719echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3720 { (exit 1); exit 1; }; }
3721fi
3722
3723else
3724 ac_cv_path_GREP=$GREP
3725fi
3726
3727
3728fi
3729{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3730echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3731 GREP="$ac_cv_path_GREP"
3732
3733
3734{ echo "$as_me:$LINENO: checking for egrep" >&5
3735echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3736if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3740 then ac_cv_path_EGREP="$GREP -E"
3741 else
3742 # Extract the first word of "egrep" to use in msg output
3743if test -z "$EGREP"; then
3744set dummy egrep; ac_prog_name=$2
3745if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748 ac_path_EGREP_found=false
3749# Loop through the user's path and test for each of PROGNAME-LIST
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3752do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_prog in egrep; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3758 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3759 # Check for GNU ac_path_EGREP and select it if it is found.
3760 # Check for GNU $ac_path_EGREP
3761case `"$ac_path_EGREP" --version 2>&1` in
3762*GNU*)
3763 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3764*)
3765 ac_count=0
3766 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3767 while :
3768 do
3769 cat "conftest.in" "conftest.in" >"conftest.tmp"
3770 mv "conftest.tmp" "conftest.in"
3771 cp "conftest.in" "conftest.nl"
3772 echo 'EGREP' >> "conftest.nl"
3773 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3775 ac_count=`expr $ac_count + 1`
3776 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3777 # Best one so far, save it but keep looking for a better one
3778 ac_cv_path_EGREP="$ac_path_EGREP"
3779 ac_path_EGREP_max=$ac_count
3780 fi
3781 # 10*(2^10) chars as input seems more than enough
3782 test $ac_count -gt 10 && break
3783 done
3784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785esac
3786
3787
3788 $ac_path_EGREP_found && break 3
3789 done
3790done
3791
3792done
3793IFS=$as_save_IFS
3794
3795
3796fi
3797
3798EGREP="$ac_cv_path_EGREP"
3799if test -z "$EGREP"; then
3800 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3801echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3802 { (exit 1); exit 1; }; }
3803fi
3804
3805else
3806 ac_cv_path_EGREP=$EGREP
3807fi
3808
3809
3810 fi
3811fi
3812{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3813echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3814 EGREP="$ac_cv_path_EGREP"
Skip Montanaro6dead952003-09-25 14:50:04 +00003815
3816
Martin v. Löwis11437992002-04-12 09:54:03 +00003817
Martin v. Löwiseba40652007-08-30 20:10:57 +00003818{ echo "$as_me:$LINENO: checking for AIX" >&5
3819echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003820cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003821/* confdefs.h. */
3822_ACEOF
3823cat confdefs.h >>conftest.$ac_ext
3824cat >>conftest.$ac_ext <<_ACEOF
3825/* end confdefs.h. */
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003826#ifdef _AIX
3827 yes
3828#endif
3829
Martin v. Löwis11437992002-04-12 09:54:03 +00003830_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00003832 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003833 { echo "$as_me:$LINENO: result: yes" >&5
3834echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003835cat >>confdefs.h <<\_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003836#define _ALL_SOURCE 1
Martin v. Löwis11437992002-04-12 09:54:03 +00003837_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003838
3839else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003840 { echo "$as_me:$LINENO: result: no" >&5
3841echo "${ECHO_T}no" >&6; }
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003842fi
3843rm -f conftest*
3844
Michael W. Hudson54241132001-12-07 15:38:26 +00003845
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003846
Martin v. Löwis779ffc02002-12-02 22:17:01 +00003847# Check for unsupported systems
3848case $ac_sys_system/$ac_sys_release in
Brett Cannon19fab762007-06-02 03:02:29 +00003849atheos*|Linux*/1*)
Martin v. Löwis779ffc02002-12-02 22:17:01 +00003850 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3851 echo See README for details.
3852 exit 1;;
3853esac
3854
Michael W. Hudson54241132001-12-07 15:38:26 +00003855
Martin v. Löwiseba40652007-08-30 20:10:57 +00003856{ echo "$as_me:$LINENO: checking for --with-suffix" >&5
3857echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00003858
Martin v. Löwiseba40652007-08-30 20:10:57 +00003859# Check whether --with-suffix was given.
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00003860if test "${with_suffix+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003861 withval=$with_suffix;
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00003862 case $withval in
3863 no) EXEEXT=;;
3864 yes) EXEEXT=.exe;;
3865 *) EXEEXT=$withval;;
3866 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00003867fi
3868
3869{ echo "$as_me:$LINENO: result: $EXEEXT" >&5
3870echo "${ECHO_T}$EXEEXT" >&6; }
Jack Jansen1999ef42001-12-06 21:47:20 +00003871
Jack Jansen9a66b6d2001-08-08 13:56:14 +00003872# Test whether we're running on a non-case-sensitive system, in which
3873# case we give a warning if no ext is given
Jack Jansen1999ef42001-12-06 21:47:20 +00003874
Martin v. Löwiseba40652007-08-30 20:10:57 +00003875{ echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3876echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
Jack Jansen3c2c4332002-11-06 13:33:32 +00003877if test ! -d CaseSensitiveTestDir; then
3878mkdir CaseSensitiveTestDir
3879fi
3880
3881if test -d casesensitivetestdir
Jack Jansen9a66b6d2001-08-08 13:56:14 +00003882then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003883 { echo "$as_me:$LINENO: result: yes" >&5
3884echo "${ECHO_T}yes" >&6; }
Jack Jansen1999ef42001-12-06 21:47:20 +00003885 BUILDEXEEXT=.exe
3886else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003887 { echo "$as_me:$LINENO: result: no" >&5
3888echo "${ECHO_T}no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00003889 BUILDEXEEXT=$EXEEXT
Jack Jansen9a66b6d2001-08-08 13:56:14 +00003890fi
Jack Jansen3c2c4332002-11-06 13:33:32 +00003891rmdir CaseSensitiveTestDir
Guido van Rossumff555e32000-09-22 15:38:21 +00003892
Guido van Rossumdd997f71998-10-07 19:58:26 +00003893case $MACHDEP in
3894bsdos*)
3895 case $CC in
3896 gcc) CC="$CC -D_HAVE_BSDI";;
3897 esac;;
3898esac
3899
Guido van Rossum24b1e751997-08-21 02:29:16 +00003900case $ac_sys_system in
3901hp*|HP*)
3902 case $CC in
Guido van Rossumcd5ff9f2000-09-22 16:15:54 +00003903 cc|*/cc) CC="$CC -Ae";;
Guido van Rossum24b1e751997-08-21 02:29:16 +00003904 esac;;
Trent Mick635f6fb2000-08-23 21:33:05 +00003905Monterey*)
3906 case $CC in
3907 cc) CC="$CC -Wl,-Bexport";;
3908 esac;;
Martin v. Löwisa30c1002001-03-06 12:10:20 +00003909SunOS*)
3910 # Some functions have a prototype only with that define, e.g. confstr
Martin v. Löwis11437992002-04-12 09:54:03 +00003911
3912cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa30c1002001-03-06 12:10:20 +00003913#define __EXTENSIONS__ 1
Martin v. Löwis11437992002-04-12 09:54:03 +00003914_ACEOF
Martin v. Löwisa30c1002001-03-06 12:10:20 +00003915
3916 ;;
Guido van Rossum24b1e751997-08-21 02:29:16 +00003917esac
3918
Michael W. Hudson54241132001-12-07 15:38:26 +00003919
3920
Martin v. Löwiseba40652007-08-30 20:10:57 +00003921{ echo "$as_me:$LINENO: checking LIBRARY" >&5
3922echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003923if test -z "$LIBRARY"
3924then
3925 LIBRARY='libpython$(VERSION).a'
3926fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003927{ echo "$as_me:$LINENO: result: $LIBRARY" >&5
3928echo "${ECHO_T}$LIBRARY" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003929
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003930# LDLIBRARY is the name of the library to link against (as opposed to the
Jack Jansene578a632001-08-15 01:27:14 +00003931# name of the library into which to insert object files). BLDLIBRARY is also
3932# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3933# is blank as the main program is not linked directly against LDLIBRARY.
3934# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3935# systems without shared libraries, LDLIBRARY is the same as LIBRARY
3936# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3937# DLLLIBRARY is the shared (i.e., DLL) library.
Martin v. Löwis11437992002-04-12 09:54:03 +00003938#
Martin v. Löwis1142de32002-03-29 16:28:31 +00003939# RUNSHARED is used to run shared python without installed libraries
3940#
3941# INSTSONAME is the name of the shared library that will be use to install
3942# on the system - some systems like version suffix, others don't
3943
3944
Michael W. Hudson54241132001-12-07 15:38:26 +00003945
3946
3947
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003948
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003949LDLIBRARY="$LIBRARY"
Jack Jansene578a632001-08-15 01:27:14 +00003950BLDLIBRARY='$(LDLIBRARY)'
Martin v. Löwis09bdf722002-05-08 08:51:29 +00003951INSTSONAME='$(LDLIBRARY)'
Guido van Rossumca563f22001-01-23 01:52:44 +00003952DLLLIBRARY=''
Jack Jansene578a632001-08-15 01:27:14 +00003953LDLIBRARYDIR=''
Martin v. Löwis1142de32002-03-29 16:28:31 +00003954RUNSHARED=''
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003955
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003956# LINKCC is the command that links the python executable -- default is $(CC).
Martin v. Löwisb7da67a2001-10-18 15:35:38 +00003957# If CXX is set, and if it is needed to link a main function that was
3958# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3959# python might then depend on the C++ runtime
Martin v. Löwis11437992002-04-12 09:54:03 +00003960# This is altered for AIX in order to build the export list before
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003961# linking.
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003962
Martin v. Löwiseba40652007-08-30 20:10:57 +00003963{ echo "$as_me:$LINENO: checking LINKCC" >&5
3964echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003965if test -z "$LINKCC"
3966then
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003967 LINKCC='$(PURIFY) $(MAINCC)'
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003968 case $ac_sys_system in
3969 AIX*)
Neal Norwitz0b27ff92003-03-31 15:53:49 +00003970 exp_extra="\"\""
3971 if test $ac_sys_release -ge 5 -o \
3972 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3973 exp_extra="."
3974 fi
3975 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
Trent Mick635f6fb2000-08-23 21:33:05 +00003976 Monterey64*)
Martin v. Löwis4e732dc2002-03-19 15:15:32 +00003977 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
Martin v. Löwis8c255e42008-05-23 15:06:50 +00003978 QNX*)
3979 # qcc must be used because the other compilers do not
3980 # support -N.
3981 LINKCC=qcc;;
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003982 esac
3983fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003984{ echo "$as_me:$LINENO: result: $LINKCC" >&5
3985echo "${ECHO_T}$LINKCC" >&6; }
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003986
Martin v. Löwiseba40652007-08-30 20:10:57 +00003987{ echo "$as_me:$LINENO: checking for --enable-shared" >&5
3988echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3989# Check whether --enable-shared was given.
Martin v. Löwis1142de32002-03-29 16:28:31 +00003990if test "${enable_shared+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003991 enableval=$enable_shared;
3992fi
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003993
Martin v. Löwis1142de32002-03-29 16:28:31 +00003994
3995if test -z "$enable_shared"
Martin v. Löwis11437992002-04-12 09:54:03 +00003996then
Martin v. Löwisb51033d2002-05-03 05:53:15 +00003997 case $ac_sys_system in
Martin v. Löwisf90ae202002-06-11 06:22:31 +00003998 CYGWIN* | atheos*)
Martin v. Löwisb51033d2002-05-03 05:53:15 +00003999 enable_shared="yes";;
4000 *)
4001 enable_shared="no";;
4002 esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004003fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004004{ echo "$as_me:$LINENO: result: $enable_shared" >&5
4005echo "${ECHO_T}$enable_shared" >&6; }
Martin v. Löwis1142de32002-03-29 16:28:31 +00004006
Martin v. Löwiseba40652007-08-30 20:10:57 +00004007{ echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4008echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4009# Check whether --enable-profiling was given.
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004010if test "${enable_profiling+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004011 enableval=$enable_profiling; ac_save_cc="$CC"
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004012 CC="$CC -pg"
4013 if test "$cross_compiling" = yes; then
4014 ac_enable_profiling="no"
4015else
4016 cat >conftest.$ac_ext <<_ACEOF
4017/* confdefs.h. */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h. */
4022int main() { return 0; }
4023_ACEOF
4024rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004025if { (ac_try="$ac_link"
4026case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029esac
4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_link") 2>&5
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004035 { (case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_try") 2>&5
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_enable_profiling="yes"
4045else
4046 echo "$as_me: program exited with status $ac_status" >&5
4047echo "$as_me: failed program was:" >&5
4048sed 's/^/| /' conftest.$ac_ext >&5
4049
4050( exit $ac_status )
4051ac_enable_profiling="no"
4052fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004054fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004055
4056
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004057 CC="$ac_save_cc"
Martin v. Löwiseba40652007-08-30 20:10:57 +00004058fi
4059
4060{ echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4061echo "${ECHO_T}$ac_enable_profiling" >&6; }
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004062
4063case "$ac_enable_profiling" in
4064 "yes")
4065 BASECFLAGS="-pg $BASECFLAGS"
4066 LDFLAGS="-pg $LDFLAGS"
4067 ;;
4068esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004069
Martin v. Löwiseba40652007-08-30 20:10:57 +00004070{ echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4071echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
Jack Jansene578a632001-08-15 01:27:14 +00004072
Guido van Rossumb8552162001-09-05 14:58:11 +00004073# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4074# library that we build, but we do not want to link against it (we
4075# will find it with a -framework option). For this reason there is an
4076# extra variable BLDLIBRARY against which Python and the extension
4077# modules are linked, BLDLIBRARY. This is normally the same as
4078# LDLIBRARY, but empty for MacOSX framework builds.
Jack Jansene578a632001-08-15 01:27:14 +00004079if test "$enable_framework"
4080then
4081 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen66b84832003-07-04 12:14:39 +00004082 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
Jack Jansene578a632001-08-15 01:27:14 +00004083 BLDLIBRARY=''
4084else
4085 BLDLIBRARY='$(LDLIBRARY)'
Martin v. Löwis11437992002-04-12 09:54:03 +00004086fi
Jack Jansene578a632001-08-15 01:27:14 +00004087
Martin v. Löwis1142de32002-03-29 16:28:31 +00004088# Other platforms follow
4089if test $enable_shared = "yes"; then
Mark Hammond8235ea12002-07-19 06:55:41 +00004090
4091cat >>confdefs.h <<\_ACEOF
4092#define Py_ENABLE_SHARED 1
4093_ACEOF
4094
Martin v. Löwis1142de32002-03-29 16:28:31 +00004095 case $ac_sys_system in
4096 BeOS*)
4097 LDLIBRARY='libpython$(VERSION).so'
4098 ;;
4099 CYGWIN*)
4100 LDLIBRARY='libpython$(VERSION).dll.a'
4101 DLLLIBRARY='libpython$(VERSION).dll'
4102 ;;
4103 SunOS*)
4104 LDLIBRARY='libpython$(VERSION).so'
Martin v. Löwisd141a8c2003-06-14 15:20:28 +00004105 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
Martin v. Löwisfc9b75f2003-08-09 09:06:52 +00004106 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
Martin v. Löwis2389c412003-10-31 15:42:07 +00004107 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis1142de32002-03-29 16:28:31 +00004108 ;;
Martin v. Löwis86d66262006-02-17 08:40:11 +00004109 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
Martin v. Löwis1142de32002-03-29 16:28:31 +00004110 LDLIBRARY='libpython$(VERSION).so'
4111 BLDLIBRARY='-L. -lpython$(VERSION)'
Martin v. Löwisfc9b75f2003-08-09 09:06:52 +00004112 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
Hye-Shik Chang33761492004-10-26 09:53:46 +00004113 case $ac_sys_system in
4114 FreeBSD*)
4115 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4116 ;;
4117 esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004118 INSTSONAME="$LDLIBRARY".$SOVERSION
4119 ;;
4120 hp*|HP*)
Neal Norwitz58e28882006-05-19 07:00:58 +00004121 case `uname -m` in
4122 ia64)
4123 LDLIBRARY='libpython$(VERSION).so'
4124 ;;
4125 *)
4126 LDLIBRARY='libpython$(VERSION).sl'
4127 ;;
4128 esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004129 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
Martin v. Löwisfc9b75f2003-08-09 09:06:52 +00004130 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
Martin v. Löwis1142de32002-03-29 16:28:31 +00004131 ;;
4132 OSF*)
4133 LDLIBRARY='libpython$(VERSION).so'
Neal Norwitz671b9e32006-01-09 07:07:12 +00004134 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
Martin v. Löwisfc9b75f2003-08-09 09:06:52 +00004135 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
Martin v. Löwis1142de32002-03-29 16:28:31 +00004136 ;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00004137 atheos*)
4138 LDLIBRARY='libpython$(VERSION).so'
4139 BLDLIBRARY='-L. -lpython$(VERSION)'
4140 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4141 ;;
Ronald Oussoren79f90492009-01-02 10:44:46 +00004142 Darwin*)
4143 LDLIBRARY='libpython$(VERSION).dylib'
4144 BLDLIBRARY='-L. -lpython$(VERSION)'
4145 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4146 ;;
4147
Martin v. Löwis1142de32002-03-29 16:28:31 +00004148 esac
Jason Tishler30765592003-09-04 11:04:06 +00004149else # shared is disabled
4150 case $ac_sys_system in
4151 CYGWIN*)
4152 BLDLIBRARY='$(LIBRARY)'
4153 LDLIBRARY='libpython$(VERSION).dll.a'
4154 ;;
4155 esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004156fi
4157
Martin v. Löwiseba40652007-08-30 20:10:57 +00004158{ echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4159echo "${ECHO_T}$LDLIBRARY" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00004160
Martin v. Löwis11437992002-04-12 09:54:03 +00004161if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4163set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00004164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004166if test "${ac_cv_prog_RANLIB+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004168else
4169 if test -n "$RANLIB"; then
4170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4171else
Martin v. Löwis11437992002-04-12 09:54:03 +00004172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4182 fi
4183done
4184done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004185IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00004186
Guido van Rossum627b2d71993-12-24 10:39:16 +00004187fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004188fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004189RANLIB=$ac_cv_prog_RANLIB
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004190if test -n "$RANLIB"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004191 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4192echo "${ECHO_T}$RANLIB" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004193else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004194 { echo "$as_me:$LINENO: result: no" >&5
4195echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004196fi
4197
Martin v. Löwiseba40652007-08-30 20:10:57 +00004198
Martin v. Löwis11437992002-04-12 09:54:03 +00004199fi
4200if test -z "$ac_cv_prog_RANLIB"; then
4201 ac_ct_RANLIB=$RANLIB
4202 # Extract the first word of "ranlib", so it can be a program name with args.
4203set dummy ranlib; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00004204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004206if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209 if test -n "$ac_ct_RANLIB"; then
4210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004219 ac_cv_prog_ac_ct_RANLIB="ranlib"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223done
4224done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004225IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00004226
Martin v. Löwis11437992002-04-12 09:54:03 +00004227fi
4228fi
4229ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4230if test -n "$ac_ct_RANLIB"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004231 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4232echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004233else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004234 { echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004236fi
4237
Martin v. Löwiseba40652007-08-30 20:10:57 +00004238 if test "x$ac_ct_RANLIB" = x; then
4239 RANLIB=":"
4240 else
4241 case $cross_compiling:$ac_tool_warned in
4242yes:)
4243{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4244whose name does not start with the host triplet. If you think this
4245configuration is useful to you, please write to autoconf@gnu.org." >&5
4246echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4247whose name does not start with the host triplet. If you think this
4248configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4249ac_tool_warned=yes ;;
4250esac
4251 RANLIB=$ac_ct_RANLIB
4252 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004253else
4254 RANLIB="$ac_cv_prog_RANLIB"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004255fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00004256
4257
Guido van Rossum7f43da71994-08-01 12:15:30 +00004258for ac_prog in ar aal
4259do
Martin v. Löwis11437992002-04-12 09:54:03 +00004260 # Extract the first word of "$ac_prog", so it can be a program name with args.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004261set dummy $ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00004262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004264if test "${ac_cv_prog_AR+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004266else
4267 if test -n "$AR"; then
4268 ac_cv_prog_AR="$AR" # Let the user override the test.
4269else
Martin v. Löwis11437992002-04-12 09:54:03 +00004270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004277 ac_cv_prog_AR="$ac_prog"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281done
4282done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004283IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00004284
Guido van Rossum7f43da71994-08-01 12:15:30 +00004285fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004286fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004287AR=$ac_cv_prog_AR
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004288if test -n "$AR"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004289 { echo "$as_me:$LINENO: result: $AR" >&5
4290echo "${ECHO_T}$AR" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004291else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004292 { echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004294fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00004295
Martin v. Löwiseba40652007-08-30 20:10:57 +00004296
Martin v. Löwis11437992002-04-12 09:54:03 +00004297 test -n "$AR" && break
Guido van Rossum7f43da71994-08-01 12:15:30 +00004298done
4299test -n "$AR" || AR="ar"
4300
Michael W. Hudson54241132001-12-07 15:38:26 +00004301
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004302
Martin v. Löwisc5bf5a02006-01-05 10:33:59 +00004303# Extract the first word of "svnversion", so it can be a program name with args.
4304set dummy svnversion; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00004305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004307if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310 if test -n "$SVNVERSION"; then
4311 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwisc5bf5a02006-01-05 10:33:59 +00004320 ac_cv_prog_SVNVERSION="found"
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004326IFS=$as_save_IFS
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004327
Martin v. Löwisff600232006-04-03 19:12:32 +00004328 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004329fi
4330fi
4331SVNVERSION=$ac_cv_prog_SVNVERSION
4332if test -n "$SVNVERSION"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004333 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4334echo "${ECHO_T}$SVNVERSION" >&6; }
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004335else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004336 { echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6; }
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004338fi
4339
Martin v. Löwiseba40652007-08-30 20:10:57 +00004340
Martin v. Löwisc5bf5a02006-01-05 10:33:59 +00004341if test $SVNVERSION = found
4342then
4343 SVNVERSION="svnversion \$(srcdir)"
4344else
4345 SVNVERSION="echo exported"
4346fi
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004347
Neil Schemenauera42c8272001-03-31 00:01:55 +00004348case $MACHDEP in
Neil Schemenaueraf5567f2001-10-21 22:32:04 +00004349bsdos*|hp*|HP*)
4350 # install -d does not work on BSDI or HP-UX
Neil Schemenauera42c8272001-03-31 00:01:55 +00004351 if test -z "$INSTALL"
4352 then
4353 INSTALL="${srcdir}/install-sh -c"
4354 fi
4355esac
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004356ac_aux_dir=
Martin v. Löwiseba40652007-08-30 20:10:57 +00004357for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4358 if test -f "$ac_dir/install-sh"; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004359 ac_aux_dir=$ac_dir
4360 ac_install_sh="$ac_aux_dir/install-sh -c"
4361 break
Martin v. Löwiseba40652007-08-30 20:10:57 +00004362 elif test -f "$ac_dir/install.sh"; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004363 ac_aux_dir=$ac_dir
4364 ac_install_sh="$ac_aux_dir/install.sh -c"
4365 break
Martin v. Löwiseba40652007-08-30 20:10:57 +00004366 elif test -f "$ac_dir/shtool"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004367 ac_aux_dir=$ac_dir
4368 ac_install_sh="$ac_aux_dir/shtool install -c"
4369 break
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004370 fi
4371done
4372if test -z "$ac_aux_dir"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004373 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4374echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00004375 { (exit 1); exit 1; }; }
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00004376fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004377
4378# These three variables are undocumented and unsupported,
4379# and are intended to be withdrawn in a future Autoconf release.
4380# They can cause serious problems if a builder's source tree is in a directory
4381# whose full name contains unusual characters.
4382ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4383ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4384ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4385
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004386
4387# Find a good install program. We prefer a C program (faster),
4388# so one script is as good as another. But avoid the broken or
4389# incompatible versions:
4390# SysV /etc/install, /usr/sbin/install
4391# SunOS /usr/etc/install
4392# IRIX /sbin/install
4393# AIX /bin/install
Martin v. Löwis11437992002-04-12 09:54:03 +00004394# AmigaOS /C/install, which installs bootblocks on floppy discs
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004395# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4396# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4397# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Skip Montanarof0d5f792004-08-15 14:08:23 +00004398# OS/2's system install, which has a completely different semantic
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004399# ./install, which can be erroneously created by make from ./install.sh.
Martin v. Löwiseba40652007-08-30 20:10:57 +00004400{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4401echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004402if test -z "$INSTALL"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004403if test "${ac_cv_path_install+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004405else
Martin v. Löwis11437992002-04-12 09:54:03 +00004406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 # Account for people who put trailing slashes in PATH elements.
4412case $as_dir/ in
4413 ./ | .// | /cC/* | \
4414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Skip Montanarof0d5f792004-08-15 14:08:23 +00004415 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Martin v. Löwis11437992002-04-12 09:54:03 +00004416 /usr/ucb/* ) ;;
4417 *)
4418 # OSF1 and SCO ODT 3.0 have their own names for install.
4419 # Don't use installbsd from OSF since it installs stuff as root
4420 # by default.
4421 for ac_prog in ginstall scoinst install; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004423 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Skip Montanarof0d5f792004-08-15 14:08:23 +00004424 if test $ac_prog = install &&
4425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4426 # AIX install. It has an incompatible calling convention.
4427 :
4428 elif test $ac_prog = install &&
4429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4430 # program-specific install script used by HP pwplus--don't use.
4431 :
4432 else
4433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4434 break 3
4435 fi
4436 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004437 done
Martin v. Löwis11437992002-04-12 09:54:03 +00004438 done
4439 ;;
4440esac
4441done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004442IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00004443
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004444
4445fi
4446 if test "${ac_cv_path_install+set}" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004447 INSTALL=$ac_cv_path_install
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004448 else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004449 # As a last resort, use the slow shell script. Don't cache a
4450 # value for INSTALL within a source directory, because that will
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004451 # break other packages using the cache if that directory is
Martin v. Löwiseba40652007-08-30 20:10:57 +00004452 # removed, or if the value is a relative name.
Martin v. Löwis11437992002-04-12 09:54:03 +00004453 INSTALL=$ac_install_sh
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004454 fi
4455fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004456{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4457echo "${ECHO_T}$INSTALL" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004458
4459# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4460# It thinks the first close brace ends the variable substitution.
4461test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4462
Martin v. Löwis11437992002-04-12 09:54:03 +00004463test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004464
4465test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4466
Michael W. Hudson54241132001-12-07 15:38:26 +00004467
Guido van Rossumec95c7b1998-08-04 17:59:56 +00004468# Not every filesystem supports hard links
4469
4470if test -z "$LN" ; then
4471 case $ac_sys_system in
4472 BeOS*) LN="ln -s";;
Guido van Rossumaef734b2001-01-10 21:09:12 +00004473 CYGWIN*) LN="ln -s";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00004474 atheos*) LN="ln -s";;
Guido van Rossumec95c7b1998-08-04 17:59:56 +00004475 *) LN=ln;;
4476 esac
4477fi
4478
Fred Drake109d9862001-07-11 06:27:56 +00004479# Check for --with-pydebug
Martin v. Löwiseba40652007-08-30 20:10:57 +00004480{ echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4481echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004482
Martin v. Löwiseba40652007-08-30 20:10:57 +00004483# Check whether --with-pydebug was given.
Fred Drake109d9862001-07-11 06:27:56 +00004484if test "${with_pydebug+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004485 withval=$with_pydebug;
Fred Drake109d9862001-07-11 06:27:56 +00004486if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +00004487then
4488
4489cat >>confdefs.h <<\_ACEOF
Fred Drake109d9862001-07-11 06:27:56 +00004490#define Py_DEBUG 1
Martin v. Löwis11437992002-04-12 09:54:03 +00004491_ACEOF
4492
Martin v. Löwiseba40652007-08-30 20:10:57 +00004493 { echo "$as_me:$LINENO: result: yes" >&5
4494echo "${ECHO_T}yes" >&6; };
Martin v. Löwisc45929e2002-04-06 10:10:49 +00004495 Py_DEBUG='true'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004496else { echo "$as_me:$LINENO: result: no" >&5
4497echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
Fred Drake109d9862001-07-11 06:27:56 +00004498fi
4499else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004500 { echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6; }
4502fi
4503
Fred Drake109d9862001-07-11 06:27:56 +00004504
Skip Montanarodecc6a42003-01-01 20:07:49 +00004505# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4506# merged with this chunk of code?
4507
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004508# Optimizer/debugger flags
Skip Montanarodecc6a42003-01-01 20:07:49 +00004509# ------------------------
4510# (The following bit of code is complicated enough - please keep things
4511# indented properly. Just pretend you're editing Python code. ;-)
4512
4513# There are two parallel sets of case statements below, one that checks to
4514# see if OPT was set and one that does BASECFLAGS setting based upon
4515# compiler and platform. BASECFLAGS tweaks need to be made even if the
4516# user set OPT.
4517
4518# tweak OPT based on compiler and platform, only if the user didn't set
4519# it on the command line
Guido van Rossum7b3853f1996-07-30 18:09:35 +00004520
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00004521if test -z "$OPT"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00004522then
Skip Montanarodecc6a42003-01-01 20:07:49 +00004523 case $GCC in
4524 yes)
Skip Montanaro288a5be2006-04-13 02:00:56 +00004525 if test "$CC" != 'g++' ; then
4526 STRICT_PROTO="-Wstrict-prototypes"
4527 fi
Thomas Hellere5529592007-12-13 21:20:29 +00004528 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4529 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4530 WRAP="-fwrapv"
4531 fi
Skip Montanarodecc6a42003-01-01 20:07:49 +00004532 case $ac_cv_prog_cc_g in
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004533 yes)
Fred Drake109d9862001-07-11 06:27:56 +00004534 if test "$Py_DEBUG" = 'true' ; then
4535 # Optimization messes up debuggers, so turn it off for
4536 # debug builds.
Skip Montanaro288a5be2006-04-13 02:00:56 +00004537 OPT="-g -Wall $STRICT_PROTO"
Fred Drake109d9862001-07-11 06:27:56 +00004538 else
Thomas Hellere5529592007-12-13 21:20:29 +00004539 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
Skip Montanarodecc6a42003-01-01 20:07:49 +00004540 fi
4541 ;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004542 *)
Skip Montanaro288a5be2006-04-13 02:00:56 +00004543 OPT="-O3 -Wall $STRICT_PROTO"
Skip Montanarodecc6a42003-01-01 20:07:49 +00004544 ;;
Fred Drake109d9862001-07-11 06:27:56 +00004545 esac
Martin v. Löwis21ee4092002-09-30 16:19:48 +00004546 case $ac_sys_system in
Skip Montanarodecc6a42003-01-01 20:07:49 +00004547 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4548 ;;
4549 esac
Fred Drake109d9862001-07-11 06:27:56 +00004550 ;;
Skip Montanarodecc6a42003-01-01 20:07:49 +00004551
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004552 *)
Skip Montanarodecc6a42003-01-01 20:07:49 +00004553 OPT="-O"
4554 ;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004555 esac
Skip Montanarodecc6a42003-01-01 20:07:49 +00004556
4557 # The current (beta) Monterey compiler dies with optimizations
4558 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
Jack Jansenca06bc62001-08-03 15:32:23 +00004559 case $ac_sys_system in
Skip Montanarodecc6a42003-01-01 20:07:49 +00004560 Monterey*)
4561 OPT=""
4562 ;;
Jack Jansenca06bc62001-08-03 15:32:23 +00004563 esac
Skip Montanarodecc6a42003-01-01 20:07:49 +00004564
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00004565fi
4566
Skip Montanarodecc6a42003-01-01 20:07:49 +00004567
Ronald Oussoren5640ce22008-06-05 12:58:24 +00004568
4569# The -arch flags for universal builds on OSX
4570UNIVERSAL_ARCH_FLAGS=
4571
4572
Skip Montanarodecc6a42003-01-01 20:07:49 +00004573# tweak BASECFLAGS based on compiler and platform
4574case $GCC in
4575yes)
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004576 # Python violates C99 rules, by casting between incompatible
4577 # pointer types. GCC may generate bad code as a result of that,
4578 # so use -fno-strict-aliasing if supported.
Martin v. Löwiseba40652007-08-30 20:10:57 +00004579 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4580echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004581 ac_save_cc="$CC"
4582 CC="$CC -fno-strict-aliasing"
4583 if test "$cross_compiling" = yes; then
4584 ac_cv_no_strict_aliasing_ok=no
4585else
4586 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00004587/* confdefs.h. */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h. */
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004592int main() { return 0; }
4593_ACEOF
4594rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004595if { (ac_try="$ac_link"
4596case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599esac
4600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_link") 2>&5
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608esac
4609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_no_strict_aliasing_ok=yes
4615else
4616 echo "$as_me: program exited with status $ac_status" >&5
4617echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00004618sed 's/^/| /' conftest.$ac_ext >&5
4619
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004620( exit $ac_status )
4621ac_cv_no_strict_aliasing_ok=no
4622fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004624fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004625
4626
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004627 CC="$ac_save_cc"
Martin v. Löwiseba40652007-08-30 20:10:57 +00004628 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4629echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004630 if test $ac_cv_no_strict_aliasing_ok = yes
4631 then
4632 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4633 fi
Mark Dickinson65134662008-04-25 16:11:04 +00004634
4635 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4636 # support. Without this, treatment of subnormals doesn't follow
4637 # the standard.
4638 case $ac_sys_machine in
4639 alpha*)
4640 BASECFLAGS="$BASECFLAGS -mieee"
4641 ;;
4642 esac
4643
Skip Montanarodecc6a42003-01-01 20:07:49 +00004644 case $ac_sys_system in
4645 SCO_SV*)
4646 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4647 ;;
4648 # is there any other compiler on Darwin besides gcc?
4649 Darwin*)
Jeffrey Yasskin1b4e45b2008-03-17 14:40:53 +00004650 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4651 # used to be here, but non-Apple gcc doesn't accept them.
Benjamin Peterson4347c442008-07-17 15:59:24 +00004652
4653
Ronald Oussoren988117f2006-04-29 11:31:35 +00004654 if test "${enable_universalsdk}"; then
Ronald Oussoren5640ce22008-06-05 12:58:24 +00004655 UNIVERSAL_ARCH_FLAGS=""
4656 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4657 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +00004658 ARCH_RUN_32BIT=""
Ronald Oussoren5640ce22008-06-05 12:58:24 +00004659
4660 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4661 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4662
4663 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4664 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
Ronald Oussorena4cb4722008-08-12 12:29:13 +00004665 ARCH_RUN_32BIT="arch -i386 -ppc"
Ronald Oussoren5640ce22008-06-05 12:58:24 +00004666
4667 else
4668 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4669echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4670 { (exit 1); exit 1; }; }
4671
4672 fi
4673
4674
4675 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
Ronald Oussoren5a849d42008-07-22 07:06:00 +00004676 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
Benjamin Peterson4347c442008-07-17 15:59:24 +00004677 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4678 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4679 fi
Ronald Oussoren988117f2006-04-29 11:31:35 +00004680 fi
4681
Benjamin Peterson4347c442008-07-17 15:59:24 +00004682 # Calculate the right deployment target for this build.
4683 #
4684 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4685 if test ${cur_target} '>' 10.2; then
4686 cur_target=10.3
4687 fi
4688 if test "${UNIVERSAL_ARCHS}" = "all"; then
4689 # Ensure that the default platform for a 4-way
4690 # universal build is OSX 10.5, that's the first
4691 # OS release where 4-way builds make sense.
4692 cur_target='10.5'
4693 fi
4694 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4695
4696 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4697 # environment with a value that is the same as what we'll use
4698 # in the Makefile to ensure that we'll get the same compiler
4699 # environment during configure and build time.
4700 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4701 export MACOSX_DEPLOYMENT_TARGET
4702 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4703
Skip Montanarodecc6a42003-01-01 20:07:49 +00004704 ;;
Neal Norwitzdedeeaa2006-03-31 06:54:45 +00004705 OSF*)
4706 BASECFLAGS="$BASECFLAGS -mieee"
4707 ;;
Skip Montanarodecc6a42003-01-01 20:07:49 +00004708 esac
4709 ;;
4710
4711*)
4712 case $ac_sys_system in
4713 OpenUNIX*|UnixWare*)
4714 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4715 ;;
Neal Norwitzb44f1652003-05-26 14:11:55 +00004716 OSF*)
4717 BASECFLAGS="$BASECFLAGS -ieee -std"
4718 ;;
Skip Montanarodecc6a42003-01-01 20:07:49 +00004719 SCO_SV*)
4720 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4721 ;;
4722 esac
4723 ;;
4724esac
4725
Fred Drakee1ceaa02001-12-04 20:55:47 +00004726if test "$Py_DEBUG" = 'true'; then
4727 :
4728else
4729 OPT="-DNDEBUG $OPT"
4730fi
4731
Guido van Rossum563e7081996-09-10 18:20:48 +00004732if test "$ac_arch_flags"
Guido van Rossuma68acba1996-07-31 17:36:39 +00004733then
Skip Montanarodecc6a42003-01-01 20:07:49 +00004734 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
Guido van Rossuma68acba1996-07-31 17:36:39 +00004735fi
Guido van Rossumda88dad1995-01-26 00:46:29 +00004736
Neal Norwitz020c46a2006-01-07 21:39:28 +00004737# disable check for icc since it seems to pass, but generates a warning
4738if test "$CC" = icc
4739then
4740 ac_cv_opt_olimit_ok=no
4741fi
4742
Martin v. Löwiseba40652007-08-30 20:10:57 +00004743{ echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4744echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004745if test "${ac_cv_opt_olimit_ok+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum91922671997-10-09 20:24:13 +00004747else
4748 ac_save_cc="$CC"
4749CC="$CC -OPT:Olimit=0"
4750if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +00004751 ac_cv_opt_olimit_ok=no
Guido van Rossum91922671997-10-09 20:24:13 +00004752else
Martin v. Löwis11437992002-04-12 09:54:03 +00004753 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00004754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
Guido van Rossum91922671997-10-09 20:24:13 +00004759int main() { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004760_ACEOF
4761rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004762if { (ac_try="$ac_link"
4763case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766esac
4767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004772 { (case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
Guido van Rossum91922671997-10-09 20:24:13 +00004781 ac_cv_opt_olimit_ok=yes
4782else
Martin v. Löwis11437992002-04-12 09:54:03 +00004783 echo "$as_me: program exited with status $ac_status" >&5
4784echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00004785sed 's/^/| /' conftest.$ac_ext >&5
4786
Martin v. Löwis11437992002-04-12 09:54:03 +00004787( exit $ac_status )
4788ac_cv_opt_olimit_ok=no
Guido van Rossum91922671997-10-09 20:24:13 +00004789fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossum91922671997-10-09 20:24:13 +00004791fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004792
4793
Guido van Rossum91922671997-10-09 20:24:13 +00004794CC="$ac_save_cc"
4795fi
4796
Martin v. Löwiseba40652007-08-30 20:10:57 +00004797{ echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4798echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
Guido van Rossum2efa34b1997-10-23 17:43:11 +00004799if test $ac_cv_opt_olimit_ok = yes; then
Guido van Rossum5839e582000-10-09 19:52:35 +00004800 case $ac_sys_system in
Skip Montanarodecc6a42003-01-01 20:07:49 +00004801 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4802 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4803 # environment?
4804 Darwin*)
4805 ;;
4806 *)
4807 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4808 ;;
Guido van Rossum5839e582000-10-09 19:52:35 +00004809 esac
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004810else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004811 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4812echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004813 if test "${ac_cv_olimit_ok+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004815else
4816 ac_save_cc="$CC"
4817 CC="$CC -Olimit 1500"
4818 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +00004819 ac_cv_olimit_ok=no
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004820else
Martin v. Löwis11437992002-04-12 09:54:03 +00004821 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00004822/* confdefs.h. */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h. */
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004827int main() { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004828_ACEOF
4829rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004830if { (ac_try="$ac_link"
4831case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834esac
4835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004840 { (case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
4844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004849 ac_cv_olimit_ok=yes
4850else
Martin v. Löwis11437992002-04-12 09:54:03 +00004851 echo "$as_me: program exited with status $ac_status" >&5
4852echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00004853sed 's/^/| /' conftest.$ac_ext >&5
4854
Martin v. Löwis11437992002-04-12 09:54:03 +00004855( exit $ac_status )
4856ac_cv_olimit_ok=no
Guido van Rossum201afe51997-05-14 21:14:44 +00004857fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004859fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004860
4861
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004862 CC="$ac_save_cc"
4863fi
4864
Martin v. Löwiseba40652007-08-30 20:10:57 +00004865 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4866echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004867 if test $ac_cv_olimit_ok = yes; then
Skip Montanarodecc6a42003-01-01 20:07:49 +00004868 BASECFLAGS="$BASECFLAGS -Olimit 1500"
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004869 fi
4870fi
4871
Martin v. Löwisaac13162006-10-19 10:58:46 +00004872# Check whether GCC supports PyArg_ParseTuple format
4873if test "$GCC" = "yes"
4874then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004875 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4876echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
Martin v. Löwisaac13162006-10-19 10:58:46 +00004877 save_CFLAGS=$CFLAGS
4878 CFLAGS="$CFLAGS -Werror"
4879 cat >conftest.$ac_ext <<_ACEOF
4880/* confdefs.h. */
4881_ACEOF
4882cat confdefs.h >>conftest.$ac_ext
4883cat >>conftest.$ac_ext <<_ACEOF
4884/* end confdefs.h. */
4885
4886 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4887
4888int
4889main ()
4890{
4891
4892 ;
4893 return 0;
4894}
4895_ACEOF
4896rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004897if { (ac_try="$ac_compile"
4898case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901esac
4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaac13162006-10-19 10:58:46 +00004904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00004909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest.$ac_objext; then
Martin v. Löwisaac13162006-10-19 10:58:46 +00004913
4914cat >>confdefs.h <<\_ACEOF
4915#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4916_ACEOF
4917
Martin v. Löwiseba40652007-08-30 20:10:57 +00004918 { echo "$as_me:$LINENO: result: yes" >&5
4919echo "${ECHO_T}yes" >&6; }
Martin v. Löwisaac13162006-10-19 10:58:46 +00004920else
4921 echo "$as_me: failed program was:" >&5
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
Martin v. Löwiseba40652007-08-30 20:10:57 +00004924 { echo "$as_me:$LINENO: result: no" >&5
4925echo "${ECHO_T}no" >&6; }
Martin v. Löwisaac13162006-10-19 10:58:46 +00004926
4927fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004928
4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc1d75972006-10-19 16:01:37 +00004930 CFLAGS=$save_CFLAGS
Martin v. Löwisaac13162006-10-19 10:58:46 +00004931fi
4932
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00004933# On some compilers, pthreads are available without further options
4934# (e.g. MacOS X). On some of these systems, the compiler will not
4935# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4936# So we have to see first whether pthreads are available without
4937# options before we can check whether -Kpthread improves anything.
Martin v. Löwiseba40652007-08-30 20:10:57 +00004938{ echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4939echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004940if test "${ac_cv_pthread_is_default+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis130fb172001-07-19 11:00:41 +00004942else
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00004943 if test "$cross_compiling" = yes; then
4944 ac_cv_pthread_is_default=no
Martin v. Löwis260aecc2001-10-07 08:14:41 +00004945else
Martin v. Löwis11437992002-04-12 09:54:03 +00004946 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00004947/* confdefs.h. */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h. */
Martin v. Löwis260aecc2001-10-07 08:14:41 +00004952
Martin v. Löwis130fb172001-07-19 11:00:41 +00004953#include <pthread.h>
Martin v. Löwis260aecc2001-10-07 08:14:41 +00004954
4955void* routine(void* p){return NULL;}
4956
4957int main(){
4958 pthread_t p;
4959 if(pthread_create(&p,NULL,routine,NULL)!=0)
4960 return 1;
Jack Jansen4f8d0542002-03-08 13:43:01 +00004961 (void)pthread_detach(p);
Martin v. Löwis260aecc2001-10-07 08:14:41 +00004962 return 0;
4963}
4964
Martin v. Löwis11437992002-04-12 09:54:03 +00004965_ACEOF
4966rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004967if { (ac_try="$ac_link"
4968case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971esac
4972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004977 { (case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980esac
4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
Skip Montanarod8d39a02003-07-10 20:44:10 +00004986
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00004987 ac_cv_pthread_is_default=yes
Skip Montanarod8d39a02003-07-10 20:44:10 +00004988 ac_cv_kthread=no
4989 ac_cv_pthread=no
4990
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00004991else
Martin v. Löwis11437992002-04-12 09:54:03 +00004992 echo "$as_me: program exited with status $ac_status" >&5
4993echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00004994sed 's/^/| /' conftest.$ac_ext >&5
4995
Martin v. Löwis11437992002-04-12 09:54:03 +00004996( exit $ac_status )
4997ac_cv_pthread_is_default=no
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00004998fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005000fi
5001
Martin v. Löwiseba40652007-08-30 20:10:57 +00005002
5003
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005004fi
5005
Martin v. Löwiseba40652007-08-30 20:10:57 +00005006{ echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5007echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005008
Michael W. Hudson54241132001-12-07 15:38:26 +00005009
Martin v. Löwis11437992002-04-12 09:54:03 +00005010if test $ac_cv_pthread_is_default = yes
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005011then
5012 ac_cv_kpthread=no
5013else
5014# -Kpthread, if available, provides the right #defines
5015# and linker options to make pthread_create available
5016# Some compilers won't report that they do not support -Kpthread,
5017# so we need to run a program to see whether it really made the
5018# function available.
Martin v. Löwiseba40652007-08-30 20:10:57 +00005019{ echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5020echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005021if test "${ac_cv_kpthread+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005023else
5024 ac_save_cc="$CC"
5025CC="$CC -Kpthread"
5026if test "$cross_compiling" = yes; then
5027 ac_cv_kpthread=no
5028else
Martin v. Löwis11437992002-04-12 09:54:03 +00005029 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005035
5036#include <pthread.h>
5037
5038void* routine(void* p){return NULL;}
5039
5040int main(){
5041 pthread_t p;
5042 if(pthread_create(&p,NULL,routine,NULL)!=0)
5043 return 1;
Jack Jansen4f8d0542002-03-08 13:43:01 +00005044 (void)pthread_detach(p);
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005045 return 0;
5046}
5047
Martin v. Löwis11437992002-04-12 09:54:03 +00005048_ACEOF
5049rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005050if { (ac_try="$ac_link"
5051case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00005060 { (case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063esac
5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
Martin v. Löwis130fb172001-07-19 11:00:41 +00005069 ac_cv_kpthread=yes
5070else
Martin v. Löwis11437992002-04-12 09:54:03 +00005071 echo "$as_me: program exited with status $ac_status" >&5
5072echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005073sed 's/^/| /' conftest.$ac_ext >&5
5074
Martin v. Löwis11437992002-04-12 09:54:03 +00005075( exit $ac_status )
5076ac_cv_kpthread=no
Martin v. Löwis130fb172001-07-19 11:00:41 +00005077fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis260aecc2001-10-07 08:14:41 +00005079fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005080
5081
Martin v. Löwis130fb172001-07-19 11:00:41 +00005082CC="$ac_save_cc"
5083fi
5084
Martin v. Löwiseba40652007-08-30 20:10:57 +00005085{ echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5086echo "${ECHO_T}$ac_cv_kpthread" >&6; }
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005087fi
Martin v. Löwis130fb172001-07-19 11:00:41 +00005088
Skip Montanarod8d39a02003-07-10 20:44:10 +00005089if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005090then
5091# -Kthread, if available, provides the right #defines
5092# and linker options to make pthread_create available
5093# Some compilers won't report that they do not support -Kthread,
5094# so we need to run a program to see whether it really made the
5095# function available.
Martin v. Löwiseba40652007-08-30 20:10:57 +00005096{ echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5097echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005098if test "${ac_cv_kthread+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101 ac_save_cc="$CC"
5102CC="$CC -Kthread"
5103if test "$cross_compiling" = yes; then
5104 ac_cv_kthread=no
5105else
5106 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005112
5113#include <pthread.h>
5114
5115void* routine(void* p){return NULL;}
5116
5117int main(){
5118 pthread_t p;
5119 if(pthread_create(&p,NULL,routine,NULL)!=0)
5120 return 1;
5121 (void)pthread_detach(p);
5122 return 0;
5123}
5124
5125_ACEOF
5126rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005127if { (ac_try="$ac_link"
5128case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131esac
5132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_link") 2>&5
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00005137 { (case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140esac
5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_try") 2>&5
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_kthread=yes
5147else
5148 echo "$as_me: program exited with status $ac_status" >&5
5149echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005150sed 's/^/| /' conftest.$ac_ext >&5
5151
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005152( exit $ac_status )
5153ac_cv_kthread=no
5154fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005156fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005157
5158
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005159CC="$ac_save_cc"
5160fi
5161
Martin v. Löwiseba40652007-08-30 20:10:57 +00005162{ echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5163echo "${ECHO_T}$ac_cv_kthread" >&6; }
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005164fi
5165
Skip Montanarod8d39a02003-07-10 20:44:10 +00005166if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005167then
5168# -pthread, if available, provides the right #defines
5169# and linker options to make pthread_create available
5170# Some compilers won't report that they do not support -pthread,
5171# so we need to run a program to see whether it really made the
5172# function available.
Martin v. Löwiseba40652007-08-30 20:10:57 +00005173{ echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5174echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005175if test "${ac_cv_thread+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178 ac_save_cc="$CC"
5179CC="$CC -pthread"
5180if test "$cross_compiling" = yes; then
5181 ac_cv_pthread=no
5182else
5183 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005184/* confdefs.h. */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h. */
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005189
5190#include <pthread.h>
5191
5192void* routine(void* p){return NULL;}
5193
5194int main(){
5195 pthread_t p;
5196 if(pthread_create(&p,NULL,routine,NULL)!=0)
5197 return 1;
5198 (void)pthread_detach(p);
5199 return 0;
5200}
5201
5202_ACEOF
5203rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005204if { (ac_try="$ac_link"
5205case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208esac
5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_link") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00005214 { (case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217esac
5218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_try") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_pthread=yes
5224else
5225 echo "$as_me: program exited with status $ac_status" >&5
5226echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005227sed 's/^/| /' conftest.$ac_ext >&5
5228
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005229( exit $ac_status )
5230ac_cv_pthread=no
5231fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005233fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005234
5235
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005236CC="$ac_save_cc"
5237fi
5238
Martin v. Löwiseba40652007-08-30 20:10:57 +00005239{ echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5240echo "${ECHO_T}$ac_cv_pthread" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005241fi
5242
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005243# If we have set a CC compiler flag for thread support then
5244# check if it works for CXX, too.
5245ac_cv_cxx_thread=no
5246if test ! -z "$CXX"
5247then
Martin v. Löwiseba40652007-08-30 20:10:57 +00005248{ echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5249echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005250ac_save_cxx="$CXX"
5251
5252if test "$ac_cv_kpthread" = "yes"
5253then
5254 CXX="$CXX -Kpthread"
5255 ac_cv_cxx_thread=yes
5256elif test "$ac_cv_kthread" = "yes"
5257then
5258 CXX="$CXX -Kthread"
5259 ac_cv_cxx_thread=yes
5260elif test "$ac_cv_pthread" = "yes"
5261then
5262 CXX="$CXX -pthread"
5263 ac_cv_cxx_thread=yes
5264fi
5265
5266if test $ac_cv_cxx_thread = yes
5267then
5268 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5269 $CXX -c conftest.$ac_ext 2>&5
5270 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5271 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5272 then
5273 ac_cv_cxx_thread=yes
5274 else
5275 ac_cv_cxx_thread=no
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005276 fi
5277 rm -fr conftest*
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005278fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005279{ echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5280echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
Brett Cannonc601e0f2004-11-07 01:24:12 +00005281fi
5282CXX="$ac_save_cxx"
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005283
Michael W. Hudson54241132001-12-07 15:38:26 +00005284
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005285# checks for header files
Martin v. Löwiseba40652007-08-30 20:10:57 +00005286{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5287echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005288if test "${ac_cv_header_stdc+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005290else
Martin v. Löwis11437992002-04-12 09:54:03 +00005291 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00005297#include <stdlib.h>
5298#include <stdarg.h>
5299#include <string.h>
5300#include <float.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005301
Skip Montanaro6dead952003-09-25 14:50:04 +00005302int
5303main ()
5304{
5305
5306 ;
5307 return 0;
5308}
Martin v. Löwis11437992002-04-12 09:54:03 +00005309_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005310rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005311if { (ac_try="$ac_compile"
5312case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5315esac
5316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00005318 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005327 ac_cv_header_stdc=yes
5328else
Martin v. Löwis11437992002-04-12 09:54:03 +00005329 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005330sed 's/^/| /' conftest.$ac_ext >&5
5331
Martin v. Löwiseba40652007-08-30 20:10:57 +00005332 ac_cv_header_stdc=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005333fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005334
5335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005336
5337if test $ac_cv_header_stdc = yes; then
5338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Martin v. Löwis11437992002-04-12 09:54:03 +00005339 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005340/* confdefs.h. */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005345#include <string.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005346
5347_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00005349 $EGREP "memchr" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005350 :
5351else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005352 ac_cv_header_stdc=no
5353fi
5354rm -f conftest*
5355
5356fi
5357
5358if test $ac_cv_header_stdc = yes; then
5359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Martin v. Löwis11437992002-04-12 09:54:03 +00005360 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005361/* confdefs.h. */
5362_ACEOF
5363cat confdefs.h >>conftest.$ac_ext
5364cat >>conftest.$ac_ext <<_ACEOF
5365/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005366#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005367
5368_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00005370 $EGREP "free" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005371 :
5372else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005373 ac_cv_header_stdc=no
5374fi
5375rm -f conftest*
5376
5377fi
5378
5379if test $ac_cv_header_stdc = yes; then
5380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Martin v. Löwis11437992002-04-12 09:54:03 +00005381 if test "$cross_compiling" = yes; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005382 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005383else
Martin v. Löwis11437992002-04-12 09:54:03 +00005384 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005385/* confdefs.h. */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00005390#include <ctype.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +00005391#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005392#if ((' ' & 0x0FF) == 0x020)
5393# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5394# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5395#else
Skip Montanaro6dead952003-09-25 14:50:04 +00005396# define ISLOWER(c) \
Skip Montanarof0d5f792004-08-15 14:08:23 +00005397 (('a' <= (c) && (c) <= 'i') \
5398 || ('j' <= (c) && (c) <= 'r') \
5399 || ('s' <= (c) && (c) <= 'z'))
Martin v. Löwis11437992002-04-12 09:54:03 +00005400# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5401#endif
Michael W. Hudson54241132001-12-07 15:38:26 +00005402
Martin v. Löwis11437992002-04-12 09:54:03 +00005403#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5404int
5405main ()
5406{
5407 int i;
5408 for (i = 0; i < 256; i++)
5409 if (XOR (islower (i), ISLOWER (i))
Skip Montanarof0d5f792004-08-15 14:08:23 +00005410 || toupper (i) != TOUPPER (i))
Martin v. Löwiseba40652007-08-30 20:10:57 +00005411 return 2;
5412 return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00005413}
5414_ACEOF
5415rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005416if { (ac_try="$ac_link"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00005426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005435 :
5436else
Martin v. Löwis11437992002-04-12 09:54:03 +00005437 echo "$as_me: program exited with status $ac_status" >&5
5438echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005439sed 's/^/| /' conftest.$ac_ext >&5
5440
Martin v. Löwis11437992002-04-12 09:54:03 +00005441( exit $ac_status )
5442ac_cv_header_stdc=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00005443fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5445fi
5446
5447
Michael W. Hudson54241132001-12-07 15:38:26 +00005448fi
5449fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005450{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5451echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00005452if test $ac_cv_header_stdc = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005453
5454cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005455#define STDC_HEADERS 1
Martin v. Löwis11437992002-04-12 09:54:03 +00005456_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00005457
5458fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00005459
Skip Montanarob9820a32004-01-17 00:16:12 +00005460# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Skip Montanarof0d5f792004-08-15 14:08:23 +00005471 inttypes.h stdint.h unistd.h
Skip Montanarob9820a32004-01-17 00:16:12 +00005472do
5473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00005474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Skip Montanarob9820a32004-01-17 00:16:12 +00005477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 cat >conftest.$ac_ext <<_ACEOF
Skip Montanarob9820a32004-01-17 00:16:12 +00005480/* confdefs.h. */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h. */
5485$ac_includes_default
5486
5487#include <$ac_header>
5488_ACEOF
5489rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005490if { (ac_try="$ac_compile"
5491case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494esac
5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
Skip Montanarob9820a32004-01-17 00:16:12 +00005497 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
Skip Montanarob9820a32004-01-17 00:16:12 +00005501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
Skip Montanarob9820a32004-01-17 00:16:12 +00005506 eval "$as_ac_Header=yes"
5507else
5508 echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
Martin v. Löwiseba40652007-08-30 20:10:57 +00005511 eval "$as_ac_Header=no"
Skip Montanarob9820a32004-01-17 00:16:12 +00005512fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005513
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanarob9820a32004-01-17 00:16:12 +00005515fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005516ac_res=`eval echo '${'$as_ac_Header'}'`
5517 { echo "$as_me:$LINENO: result: $ac_res" >&5
5518echo "${ECHO_T}$ac_res" >&6; }
Skip Montanarob9820a32004-01-17 00:16:12 +00005519if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h <<_ACEOF
5521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522_ACEOF
5523
5524fi
5525
5526done
5527
5528
Martin v. Löwis11437992002-04-12 09:54:03 +00005529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
Anthony Baxter8a560de2004-10-13 15:30:56 +00005565
Martin v. Löwisc3001752005-01-23 09:27:24 +00005566
Martin v. Löwis11017b12006-01-14 18:12:57 +00005567
Martin v. Löwis5f5d99c2006-05-16 07:05:37 +00005568
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00005569
5570
5571
5572
5573
5574
5575
5576
Martin v. Löwis40e9aed2006-10-02 15:20:37 +00005577
Christian Heimesfb2d25a2008-01-07 16:12:44 +00005578
Christian Heimes0e9ab5f2008-03-21 23:49:44 +00005579
5580
Neal Norwitz9fdfaaf2008-03-28 05:34:59 +00005581
Martin v. Löwis8c255e42008-05-23 15:06:50 +00005582
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00005583for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5584fcntl.h grp.h \
Neal Norwitz9fdfaaf2008-03-28 05:34:59 +00005585ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
Martin v. Löwis40e9aed2006-10-02 15:20:37 +00005586shadow.h signal.h stdint.h stropts.h termios.h thread.h \
Martin v. Löwis14e73b12003-01-01 09:51:12 +00005587unistd.h utime.h \
Christian Heimes0e9ab5f2008-03-21 23:49:44 +00005588sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5589sys/lock.h sys/mkdev.h sys/modem.h \
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00005590sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
Martin v. Löwis8c255e42008-05-23 15:06:50 +00005591sys/termio.h sys/time.h \
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00005592sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
Martin v. Löwis0347a9a2006-10-27 07:06:52 +00005593sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
Christian Heimesfb2d25a2008-01-07 16:12:44 +00005594bluetooth/bluetooth.h linux/tipc.h
Guido van Rossum627b2d71993-12-24 10:39:16 +00005595do
Martin v. Löwis11437992002-04-12 09:54:03 +00005596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00005597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005603ac_res=`eval echo '${'$as_ac_Header'}'`
5604 { echo "$as_me:$LINENO: result: $ac_res" >&5
5605echo "${ECHO_T}$ac_res" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005606else
Martin v. Löwis11437992002-04-12 09:54:03 +00005607 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +00005608{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005610cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005616$ac_includes_default
5617#include <$ac_header>
5618_ACEOF
5619rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005620if { (ac_try="$ac_compile"
5621case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624esac
5625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00005627 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005636 ac_header_compiler=yes
Michael W. Hudson54241132001-12-07 15:38:26 +00005637else
Martin v. Löwis11437992002-04-12 09:54:03 +00005638 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005639sed 's/^/| /' conftest.$ac_ext >&5
5640
Martin v. Löwiseba40652007-08-30 20:10:57 +00005641 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +00005642fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005643
5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005647
5648# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +00005649{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005651cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005652/* confdefs.h. */
5653_ACEOF
5654cat confdefs.h >>conftest.$ac_ext
5655cat >>conftest.$ac_ext <<_ACEOF
5656/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005657#include <$ac_header>
5658_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00005659if { (ac_try="$ac_cpp conftest.$ac_ext"
5660case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663esac
5664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00005666 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00005667 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00005668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005671 (exit $ac_status); } >/dev/null && {
5672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5673 test ! -s conftest.err
5674 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005675 ac_header_preproc=yes
5676else
5677 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005678sed 's/^/| /' conftest.$ac_ext >&5
5679
Martin v. Löwis11437992002-04-12 09:54:03 +00005680 ac_header_preproc=no
Michael W. Hudson54241132001-12-07 15:38:26 +00005681fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005682
Martin v. Löwis11437992002-04-12 09:54:03 +00005683rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005684{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5685echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005686
5687# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5689 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +00005690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00005692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5694 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00005695 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +00005696 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00005697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00005699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00005705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00005707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00005709 ( cat <<\_ASBOX
Martin v. Löwis1d459062005-03-14 21:23:33 +00005710## ------------------------------------------------ ##
5711## Report this to http://www.python.org/python-bugs ##
5712## ------------------------------------------------ ##
Skip Montanaro6dead952003-09-25 14:50:04 +00005713_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00005714 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +00005715 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00005716esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00005717{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005720 echo $ECHO_N "(cached) $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00005721else
Skip Montanarof0d5f792004-08-15 14:08:23 +00005722 eval "$as_ac_Header=\$ac_header_preproc"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005723fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005724ac_res=`eval echo '${'$as_ac_Header'}'`
5725 { echo "$as_me:$LINENO: result: $ac_res" >&5
5726echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005727
5728fi
5729if test `eval echo '${'$as_ac_Header'}'` = yes; then
5730 cat >>confdefs.h <<_ACEOF
5731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5732_ACEOF
5733
5734fi
5735
Guido van Rossum627b2d71993-12-24 10:39:16 +00005736done
5737
Martin v. Löwis11437992002-04-12 09:54:03 +00005738
5739
5740
5741
5742
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005743ac_header_dirent=no
Martin v. Löwis11437992002-04-12 09:54:03 +00005744for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5745 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00005746{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5747echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005749 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00005750else
Martin v. Löwis11437992002-04-12 09:54:03 +00005751 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005752/* confdefs.h. */
5753_ACEOF
5754cat confdefs.h >>conftest.$ac_ext
5755cat >>conftest.$ac_ext <<_ACEOF
5756/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005757#include <sys/types.h>
5758#include <$ac_hdr>
Martin v. Löwis11437992002-04-12 09:54:03 +00005759
Martin v. Löwis11437992002-04-12 09:54:03 +00005760int
5761main ()
5762{
5763if ((DIR *) 0)
5764return 0;
5765 ;
5766 return 0;
5767}
5768_ACEOF
5769rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005770if { (ac_try="$ac_compile"
5771case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774esac
5775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00005777 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005786 eval "$as_ac_Header=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +00005787else
Martin v. Löwis11437992002-04-12 09:54:03 +00005788 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005789sed 's/^/| /' conftest.$ac_ext >&5
5790
Martin v. Löwiseba40652007-08-30 20:10:57 +00005791 eval "$as_ac_Header=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005792fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005793
5794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00005795fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005796ac_res=`eval echo '${'$as_ac_Header'}'`
5797 { echo "$as_me:$LINENO: result: $ac_res" >&5
5798echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005799if test `eval echo '${'$as_ac_Header'}'` = yes; then
5800 cat >>confdefs.h <<_ACEOF
5801#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5802_ACEOF
5803
5804ac_header_dirent=$ac_hdr; break
Michael W. Hudson54241132001-12-07 15:38:26 +00005805fi
Martin v. Löwis11437992002-04-12 09:54:03 +00005806
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005807done
5808# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5809if test $ac_header_dirent = dirent.h; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00005810 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5811echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005812if test "${ac_cv_search_opendir+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005814else
Martin v. Löwis11437992002-04-12 09:54:03 +00005815 ac_func_search_save_LIBS=$LIBS
Martin v. Löwis11437992002-04-12 09:54:03 +00005816cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005817/* confdefs.h. */
5818_ACEOF
5819cat confdefs.h >>conftest.$ac_ext
5820cat >>conftest.$ac_ext <<_ACEOF
5821/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005822
Martin v. Löwiseba40652007-08-30 20:10:57 +00005823/* Override any GCC internal prototype to avoid an error.
5824 Use char because int might match the return type of a GCC
5825 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005826#ifdef __cplusplus
5827extern "C"
5828#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00005829char opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00005830int
5831main ()
5832{
Martin v. Löwiseba40652007-08-30 20:10:57 +00005833return opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00005834 ;
5835 return 0;
5836}
5837_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00005838for ac_lib in '' dir; do
5839 if test -z "$ac_lib"; then
5840 ac_res="none required"
5841 else
5842 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:21 +00005843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:57 +00005844 fi
5845 rm -f conftest.$ac_objext conftest$ac_exeext
5846if { (ac_try="$ac_link"
5847case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_link") 2>conftest.er1
Skip Montanaro89e975f2007-08-22 19:05:21 +00005853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005858 (exit $ac_status); } && {
5859 test -z "$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 } && test -s conftest$ac_exeext &&
5862 $as_test_x conftest$ac_exeext; then
5863 ac_cv_search_opendir=$ac_res
Brett Cannon19fab762007-06-02 03:02:29 +00005864else
Skip Montanaro89e975f2007-08-22 19:05:21 +00005865 echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
Martin v. Löwiseba40652007-08-30 20:10:57 +00005868
Brett Cannon19fab762007-06-02 03:02:29 +00005869fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005870
5871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5872 conftest$ac_exeext
5873 if test "${ac_cv_search_opendir+set}" = set; then
5874 break
Skip Montanaro89e975f2007-08-22 19:05:21 +00005875fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005876done
5877if test "${ac_cv_search_opendir+set}" = set; then
5878 :
5879else
5880 ac_cv_search_opendir=no
5881fi
5882rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00005883LIBS=$ac_func_search_save_LIBS
5884fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005885{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5886echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5887ac_res=$ac_cv_search_opendir
5888if test "$ac_res" != no; then
5889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Michael W. Hudson54241132001-12-07 15:38:26 +00005890
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005891fi
Martin v. Löwis11437992002-04-12 09:54:03 +00005892
Michael W. Hudson54241132001-12-07 15:38:26 +00005893else
Martin v. Löwiseba40652007-08-30 20:10:57 +00005894 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5895echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005896if test "${ac_cv_search_opendir+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898else
5899 ac_func_search_save_LIBS=$LIBS
Martin v. Löwis11437992002-04-12 09:54:03 +00005900cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005906
Martin v. Löwiseba40652007-08-30 20:10:57 +00005907/* Override any GCC internal prototype to avoid an error.
5908 Use char because int might match the return type of a GCC
5909 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005910#ifdef __cplusplus
5911extern "C"
5912#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00005913char opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00005914int
5915main ()
5916{
Martin v. Löwiseba40652007-08-30 20:10:57 +00005917return opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00005918 ;
5919 return 0;
5920}
5921_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00005922for ac_lib in '' x; do
5923 if test -z "$ac_lib"; then
5924 ac_res="none required"
5925 else
5926 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:21 +00005927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:57 +00005928 fi
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930if { (ac_try="$ac_link"
5931case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_link") 2>conftest.er1
Skip Montanaro89e975f2007-08-22 19:05:21 +00005937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005942 (exit $ac_status); } && {
5943 test -z "$ac_c_werror_flag" ||
5944 test ! -s conftest.err
5945 } && test -s conftest$ac_exeext &&
5946 $as_test_x conftest$ac_exeext; then
5947 ac_cv_search_opendir=$ac_res
Brett Cannon19fab762007-06-02 03:02:29 +00005948else
Skip Montanaro89e975f2007-08-22 19:05:21 +00005949 echo "$as_me: failed program was:" >&5
5950sed 's/^/| /' conftest.$ac_ext >&5
5951
Martin v. Löwiseba40652007-08-30 20:10:57 +00005952
Brett Cannon19fab762007-06-02 03:02:29 +00005953fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005954
5955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5956 conftest$ac_exeext
5957 if test "${ac_cv_search_opendir+set}" = set; then
5958 break
Skip Montanaro89e975f2007-08-22 19:05:21 +00005959fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005960done
5961if test "${ac_cv_search_opendir+set}" = set; then
5962 :
5963else
5964 ac_cv_search_opendir=no
5965fi
5966rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00005967LIBS=$ac_func_search_save_LIBS
5968fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005969{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5970echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5971ac_res=$ac_cv_search_opendir
5972if test "$ac_res" != no; then
5973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +00005974
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005975fi
5976
5977fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00005978
Martin v. Löwiseba40652007-08-30 20:10:57 +00005979{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5980echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00005981if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00005990#include <sys/types.h>
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00005991int
5992main ()
5993{
5994return makedev(0, 0);
5995 ;
5996 return 0;
5997}
5998_ACEOF
5999rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006000if { (ac_try="$ac_link"
6001case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004esac
6005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006007 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006012 (exit $ac_status); } && {
6013 test -z "$ac_c_werror_flag" ||
6014 test ! -s conftest.err
6015 } && test -s conftest$ac_exeext &&
6016 $as_test_x conftest$ac_exeext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006017 ac_cv_header_sys_types_h_makedev=yes
6018else
6019 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006020sed 's/^/| /' conftest.$ac_ext >&5
6021
Martin v. Löwiseba40652007-08-30 20:10:57 +00006022 ac_cv_header_sys_types_h_makedev=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006023fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006024
6025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +00006026 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006027
6028fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006029{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6030echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006031
6032if test $ac_cv_header_sys_types_h_makedev = no; then
6033if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00006034 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6035echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006036if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006039{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6040echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006041else
6042 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +00006043{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6044echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006045cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006046/* confdefs.h. */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006051$ac_includes_default
6052#include <sys/mkdev.h>
6053_ACEOF
6054rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006055if { (ac_try="$ac_compile"
6056case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006062 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest.$ac_objext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006071 ac_header_compiler=yes
6072else
6073 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006074sed 's/^/| /' conftest.$ac_ext >&5
6075
Martin v. Löwiseba40652007-08-30 20:10:57 +00006076 ac_header_compiler=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006077fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006078
6079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6081echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006082
6083# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +00006084{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6085echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006086cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006087/* confdefs.h. */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006092#include <sys/mkdev.h>
6093_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006094if { (ac_try="$ac_cpp conftest.$ac_ext"
6095case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098esac
6099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006101 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00006102 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006106 (exit $ac_status); } >/dev/null && {
6107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 }; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006110 ac_header_preproc=yes
6111else
6112 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006113sed 's/^/| /' conftest.$ac_ext >&5
6114
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006115 ac_header_preproc=no
6116fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006117
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006118rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006119{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6120echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006121
6122# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6124 yes:no: )
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006125 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6126echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006127 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6128echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6129 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006130 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +00006131 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006132 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6133echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6135echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6137echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6139echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6141echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006142 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6143echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00006144 ( cat <<\_ASBOX
Martin v. Löwis1d459062005-03-14 21:23:33 +00006145## ------------------------------------------------ ##
6146## Report this to http://www.python.org/python-bugs ##
6147## ------------------------------------------------ ##
Skip Montanaro6dead952003-09-25 14:50:04 +00006148_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00006149 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +00006150 ;;
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006151esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00006152{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6153echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006154if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156else
6157 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6158fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006159{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6160echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006161
6162fi
6163if test $ac_cv_header_sys_mkdev_h = yes; then
6164
6165cat >>confdefs.h <<\_ACEOF
6166#define MAJOR_IN_MKDEV 1
6167_ACEOF
6168
6169fi
6170
6171
6172
6173 if test $ac_cv_header_sys_mkdev_h = no; then
6174 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00006175 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6176echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006177if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006180{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6181echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006182else
6183 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +00006184{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6185echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006186cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006187/* confdefs.h. */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006192$ac_includes_default
6193#include <sys/sysmacros.h>
6194_ACEOF
6195rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006196if { (ac_try="$ac_compile"
6197case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200esac
6201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006203 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006208 (exit $ac_status); } && {
6209 test -z "$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 } && test -s conftest.$ac_objext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006212 ac_header_compiler=yes
6213else
6214 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006215sed 's/^/| /' conftest.$ac_ext >&5
6216
Martin v. Löwiseba40652007-08-30 20:10:57 +00006217 ac_header_compiler=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006218fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006219
6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6222echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006223
6224# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +00006225{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6226echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006227cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006228/* confdefs.h. */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006233#include <sys/sysmacros.h>
6234_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006235if { (ac_try="$ac_cpp conftest.$ac_ext"
6236case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006242 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00006243 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006247 (exit $ac_status); } >/dev/null && {
6248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 }; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006251 ac_header_preproc=yes
6252else
6253 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006254sed 's/^/| /' conftest.$ac_ext >&5
6255
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006256 ac_header_preproc=no
6257fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006258
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006259rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006260{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6261echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006262
6263# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6265 yes:no: )
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006266 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6267echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006268 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6269echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6270 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006271 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +00006272 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6274echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6276echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6278echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6280echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006281 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6282echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006283 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6284echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00006285 ( cat <<\_ASBOX
Martin v. Löwis1d459062005-03-14 21:23:33 +00006286## ------------------------------------------------ ##
6287## Report this to http://www.python.org/python-bugs ##
6288## ------------------------------------------------ ##
Skip Montanaro6dead952003-09-25 14:50:04 +00006289_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00006290 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +00006291 ;;
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006292esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00006293{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6294echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006295if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6299fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006300{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6301echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006302
6303fi
6304if test $ac_cv_header_sys_sysmacros_h = yes; then
6305
6306cat >>confdefs.h <<\_ACEOF
6307#define MAJOR_IN_SYSMACROS 1
6308_ACEOF
6309
6310fi
6311
6312
6313 fi
6314fi
6315
Michael W. Hudson54241132001-12-07 15:38:26 +00006316
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006317# On Solaris, term.h requires curses.h
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006318
6319for ac_header in term.h
6320do
6321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00006322{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327 cat >conftest.$ac_ext <<_ACEOF
6328/* confdefs.h. */
6329_ACEOF
6330cat confdefs.h >>conftest.$ac_ext
6331cat >>conftest.$ac_ext <<_ACEOF
6332/* end confdefs.h. */
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006333
Martin v. Löwis5d52e782004-09-18 10:07:03 +00006334#ifdef HAVE_CURSES_H
6335#include <curses.h>
6336#endif
6337
6338
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006339#include <$ac_header>
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006340_ACEOF
6341rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006342if { (ac_try="$ac_compile"
6343case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346esac
6347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006354 (exit $ac_status); } && {
6355 test -z "$ac_c_werror_flag" ||
6356 test ! -s conftest.err
6357 } && test -s conftest.$ac_objext; then
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006358 eval "$as_ac_Header=yes"
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006359else
6360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
Martin v. Löwiseba40652007-08-30 20:10:57 +00006363 eval "$as_ac_Header=no"
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006364fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006365
6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006367fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006368ac_res=`eval echo '${'$as_ac_Header'}'`
6369 { echo "$as_me:$LINENO: result: $ac_res" >&5
6370echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006371if test `eval echo '${'$as_ac_Header'}'` = yes; then
6372 cat >>confdefs.h <<_ACEOF
6373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6374_ACEOF
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006375
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006376fi
6377
6378done
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006379
6380
Martin v. Löwis11017b12006-01-14 18:12:57 +00006381# On Linux, netlink.h requires asm/types.h
6382
6383for ac_header in linux/netlink.h
6384do
6385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00006386{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11017b12006-01-14 18:12:57 +00006389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h. */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h. */
6397
6398#ifdef HAVE_ASM_TYPES_H
6399#include <asm/types.h>
6400#endif
6401#ifdef HAVE_SYS_SOCKET_H
6402#include <sys/socket.h>
6403#endif
6404
6405
6406#include <$ac_header>
6407_ACEOF
6408rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006409if { (ac_try="$ac_compile"
6410case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
6414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11017b12006-01-14 18:12:57 +00006416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006421 (exit $ac_status); } && {
6422 test -z "$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 } && test -s conftest.$ac_objext; then
Martin v. Löwis11017b12006-01-14 18:12:57 +00006425 eval "$as_ac_Header=yes"
6426else
6427 echo "$as_me: failed program was:" >&5
6428sed 's/^/| /' conftest.$ac_ext >&5
6429
Martin v. Löwiseba40652007-08-30 20:10:57 +00006430 eval "$as_ac_Header=no"
Martin v. Löwis11017b12006-01-14 18:12:57 +00006431fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006432
6433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11017b12006-01-14 18:12:57 +00006434fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006435ac_res=`eval echo '${'$as_ac_Header'}'`
6436 { echo "$as_me:$LINENO: result: $ac_res" >&5
6437echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11017b12006-01-14 18:12:57 +00006438if test `eval echo '${'$as_ac_Header'}'` = yes; then
6439 cat >>confdefs.h <<_ACEOF
6440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6441_ACEOF
6442
6443fi
6444
6445done
6446
6447
Guido van Rossum627b2d71993-12-24 10:39:16 +00006448# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:29 +00006449was_it_defined=no
Martin v. Löwiseba40652007-08-30 20:10:57 +00006450{ echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6451echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006452cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006453/* confdefs.h. */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006458#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00006459
6460_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00006462 $EGREP "clock_t" >/dev/null 2>&1; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00006463 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00006464else
Martin v. Löwis11437992002-04-12 09:54:03 +00006465
6466
6467cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006468#define clock_t long
Martin v. Löwis11437992002-04-12 09:54:03 +00006469_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00006470
Martin v. Löwisc45929e2002-04-06 10:10:49 +00006471
Guido van Rossum627b2d71993-12-24 10:39:16 +00006472fi
6473rm -f conftest*
6474
Martin v. Löwiseba40652007-08-30 20:10:57 +00006475{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
6476echo "${ECHO_T}$was_it_defined" >&6; }
Guido van Rossumda88dad1995-01-26 00:46:29 +00006477
Neal Norwitz11690112002-07-30 01:08:28 +00006478# Check whether using makedev requires defining _OSF_SOURCE
Martin v. Löwiseba40652007-08-30 20:10:57 +00006479{ echo "$as_me:$LINENO: checking for makedev" >&5
6480echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
Neal Norwitz11690112002-07-30 01:08:28 +00006481cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006482/* confdefs.h. */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:15 +00006487#include <sys/types.h>
Neal Norwitz11690112002-07-30 01:08:28 +00006488int
6489main ()
6490{
6491 makedev(0, 0)
6492 ;
6493 return 0;
6494}
6495_ACEOF
6496rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006497if { (ac_try="$ac_link"
6498case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501esac
6502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_link") 2>conftest.er1
Neal Norwitz11690112002-07-30 01:08:28 +00006504 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
Neal Norwitz11690112002-07-30 01:08:28 +00006508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
6512 } && test -s conftest$ac_exeext &&
6513 $as_test_x conftest$ac_exeext; then
Neal Norwitz11690112002-07-30 01:08:28 +00006514 ac_cv_has_makedev=yes
6515else
6516 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006517sed 's/^/| /' conftest.$ac_ext >&5
6518
Martin v. Löwiseba40652007-08-30 20:10:57 +00006519 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:28 +00006520fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006521
6522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +00006523 conftest$ac_exeext conftest.$ac_ext
Neal Norwitz11690112002-07-30 01:08:28 +00006524if test "$ac_cv_has_makedev" = "no"; then
6525 # we didn't link, try if _OSF_SOURCE will allow us to link
6526 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006527/* confdefs.h. */
6528_ACEOF
6529cat confdefs.h >>conftest.$ac_ext
6530cat >>conftest.$ac_ext <<_ACEOF
6531/* end confdefs.h. */
Neal Norwitz11690112002-07-30 01:08:28 +00006532
Neal Norwitz6eb37f02003-02-23 23:28:15 +00006533#define _OSF_SOURCE 1
6534#include <sys/types.h>
Neal Norwitz11690112002-07-30 01:08:28 +00006535
Neal Norwitz11690112002-07-30 01:08:28 +00006536int
6537main ()
6538{
6539 makedev(0, 0)
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006545if { (ac_try="$ac_link"
6546case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549esac
6550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_link") 2>conftest.er1
Neal Norwitz11690112002-07-30 01:08:28 +00006552 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
Neal Norwitz11690112002-07-30 01:08:28 +00006556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest$ac_exeext &&
6561 $as_test_x conftest$ac_exeext; then
Neal Norwitz11690112002-07-30 01:08:28 +00006562 ac_cv_has_makedev=yes
6563else
6564 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006565sed 's/^/| /' conftest.$ac_ext >&5
6566
Martin v. Löwiseba40652007-08-30 20:10:57 +00006567 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:28 +00006568fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006569
6570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +00006571 conftest$ac_exeext conftest.$ac_ext
Neal Norwitz11690112002-07-30 01:08:28 +00006572 if test "$ac_cv_has_makedev" = "yes"; then
6573
6574cat >>confdefs.h <<\_ACEOF
6575#define _OSF_SOURCE 1
6576_ACEOF
6577
6578 fi
6579fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006580{ echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6581echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
Neal Norwitz11690112002-07-30 01:08:28 +00006582if test "$ac_cv_has_makedev" = "yes"; then
6583
6584cat >>confdefs.h <<\_ACEOF
6585#define HAVE_MAKEDEV 1
6586_ACEOF
6587
6588fi
6589
Martin v. Löwis399a6892002-10-04 10:22:02 +00006590# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6591# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6592# defined, but the compiler does not support pragma redefine_extname,
6593# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6594# structures (such as rlimit64) without declaring them. As a
6595# work-around, disable LFS on such configurations
6596
6597use_lfs=yes
Martin v. Löwiseba40652007-08-30 20:10:57 +00006598{ echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6599echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
Martin v. Löwis399a6892002-10-04 10:22:02 +00006600cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006601/* confdefs.h. */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h. */
Martin v. Löwis399a6892002-10-04 10:22:02 +00006606
6607#define _LARGEFILE_SOURCE 1
6608#define _FILE_OFFSET_BITS 64
6609#include <sys/resource.h>
6610
Martin v. Löwis399a6892002-10-04 10:22:02 +00006611int
6612main ()
6613{
6614struct rlimit foo;
6615 ;
6616 return 0;
6617}
6618_ACEOF
6619rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006620if { (ac_try="$ac_compile"
6621case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6624esac
6625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis399a6892002-10-04 10:22:02 +00006627 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
Martin v. Löwis399a6892002-10-04 10:22:02 +00006631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
Martin v. Löwis399a6892002-10-04 10:22:02 +00006636 sol_lfs_bug=no
6637else
6638 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006639sed 's/^/| /' conftest.$ac_ext >&5
6640
Martin v. Löwiseba40652007-08-30 20:10:57 +00006641 sol_lfs_bug=yes
Martin v. Löwis399a6892002-10-04 10:22:02 +00006642fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006643
6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645{ echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6646echo "${ECHO_T}$sol_lfs_bug" >&6; }
Martin v. Löwis399a6892002-10-04 10:22:02 +00006647if test "$sol_lfs_bug" = "yes"; then
6648 use_lfs=no
6649fi
6650
6651if test "$use_lfs" = "yes"; then
Guido van Rossum810cc512001-09-09 23:51:39 +00006652# Two defines needed to enable largefile support on various platforms
6653# These may affect some typedefs
Guido van Rossum810cc512001-09-09 23:51:39 +00006654
Martin v. Löwis11437992002-04-12 09:54:03 +00006655cat >>confdefs.h <<\_ACEOF
6656#define _LARGEFILE_SOURCE 1
6657_ACEOF
6658
6659
6660cat >>confdefs.h <<\_ACEOF
Guido van Rossum810cc512001-09-09 23:51:39 +00006661#define _FILE_OFFSET_BITS 64
Martin v. Löwis11437992002-04-12 09:54:03 +00006662_ACEOF
Guido van Rossum810cc512001-09-09 23:51:39 +00006663
Martin v. Löwis399a6892002-10-04 10:22:02 +00006664fi
Michael W. Hudson54241132001-12-07 15:38:26 +00006665
Guido van Rossum84e7b241996-08-19 21:59:00 +00006666# Add some code to confdefs.h so that the test for off_t works on SCO
6667cat >> confdefs.h <<\EOF
6668#if defined(SCO_DS)
6669#undef _OFF_T
6670#endif
6671EOF
6672
Guido van Rossumef2255b2000-03-10 22:30:29 +00006673# Type availability checks
Martin v. Löwiseba40652007-08-30 20:10:57 +00006674{ echo "$as_me:$LINENO: checking for mode_t" >&5
6675echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006676if test "${ac_cv_type_mode_t+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006678else
Martin v. Löwis11437992002-04-12 09:54:03 +00006679 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006680/* confdefs.h. */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006685$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00006686typedef mode_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00006687int
6688main ()
6689{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006690if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00006691 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00006692if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00006693 return 0;
6694 ;
6695 return 0;
6696}
6697_ACEOF
6698rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006699if { (ac_try="$ac_compile"
6700case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703esac
6704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006706 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
Jack Jansendd19cf82001-12-06 22:36:17 +00006715 ac_cv_type_mode_t=yes
6716else
Martin v. Löwis11437992002-04-12 09:54:03 +00006717 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006718sed 's/^/| /' conftest.$ac_ext >&5
6719
Martin v. Löwiseba40652007-08-30 20:10:57 +00006720 ac_cv_type_mode_t=no
Jack Jansendd19cf82001-12-06 22:36:17 +00006721fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006722
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00006724fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006725{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6726echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006727if test $ac_cv_type_mode_t = yes; then
6728 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006729else
Martin v. Löwis11437992002-04-12 09:54:03 +00006730
6731cat >>confdefs.h <<_ACEOF
6732#define mode_t int
6733_ACEOF
6734
6735fi
6736
Martin v. Löwiseba40652007-08-30 20:10:57 +00006737{ echo "$as_me:$LINENO: checking for off_t" >&5
6738echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006739if test "${ac_cv_type_off_t+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741else
6742 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006743/* confdefs.h. */
6744_ACEOF
6745cat confdefs.h >>conftest.$ac_ext
6746cat >>conftest.$ac_ext <<_ACEOF
6747/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006748$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00006749typedef off_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00006750int
6751main ()
6752{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006753if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00006754 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00006755if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00006756 return 0;
6757 ;
6758 return 0;
6759}
6760_ACEOF
6761rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006762if { (ac_try="$ac_compile"
6763case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766esac
6767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006769 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006770 grep -v '^ *+' conftest.er1 >conftest.err
6771 rm -f conftest.er1
6772 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006774 (exit $ac_status); } && {
6775 test -z "$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6777 } && test -s conftest.$ac_objext; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006778 ac_cv_type_off_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00006779else
Martin v. Löwis11437992002-04-12 09:54:03 +00006780 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006781sed 's/^/| /' conftest.$ac_ext >&5
6782
Martin v. Löwiseba40652007-08-30 20:10:57 +00006783 ac_cv_type_off_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00006784fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006785
6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00006787fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006788{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6789echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006790if test $ac_cv_type_off_t = yes; then
6791 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006792else
Martin v. Löwis11437992002-04-12 09:54:03 +00006793
6794cat >>confdefs.h <<_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006795#define off_t long int
Martin v. Löwis11437992002-04-12 09:54:03 +00006796_ACEOF
6797
6798fi
6799
Martin v. Löwiseba40652007-08-30 20:10:57 +00006800{ echo "$as_me:$LINENO: checking for pid_t" >&5
6801echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006802if test "${ac_cv_type_pid_t+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006806/* confdefs.h. */
6807_ACEOF
6808cat confdefs.h >>conftest.$ac_ext
6809cat >>conftest.$ac_ext <<_ACEOF
6810/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006811$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00006812typedef pid_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00006813int
6814main ()
6815{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006816if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00006817 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00006818if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00006819 return 0;
6820 ;
6821 return 0;
6822}
6823_ACEOF
6824rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006825if { (ac_try="$ac_compile"
6826case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829esac
6830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006832 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006841 ac_cv_type_pid_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00006842else
Martin v. Löwis11437992002-04-12 09:54:03 +00006843 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006844sed 's/^/| /' conftest.$ac_ext >&5
6845
Martin v. Löwiseba40652007-08-30 20:10:57 +00006846 ac_cv_type_pid_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00006847fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006848
6849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00006850fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006851{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6852echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006853if test $ac_cv_type_pid_t = yes; then
6854 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006855else
Martin v. Löwis11437992002-04-12 09:54:03 +00006856
6857cat >>confdefs.h <<_ACEOF
6858#define pid_t int
6859_ACEOF
6860
6861fi
6862
Martin v. Löwiseba40652007-08-30 20:10:57 +00006863{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6864echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006865if test "${ac_cv_type_signal+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00006874#include <sys/types.h>
6875#include <signal.h>
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006876
Martin v. Löwis11437992002-04-12 09:54:03 +00006877int
6878main ()
6879{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006880return *(signal (0, 0)) (0) == 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00006881 ;
6882 return 0;
6883}
6884_ACEOF
6885rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006886if { (ac_try="$ac_compile"
6887case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890esac
6891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006893 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.$ac_objext; then
6902 ac_cv_type_signal=int
Guido van Rossum627b2d71993-12-24 10:39:16 +00006903else
Martin v. Löwis11437992002-04-12 09:54:03 +00006904 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006905sed 's/^/| /' conftest.$ac_ext >&5
6906
Martin v. Löwiseba40652007-08-30 20:10:57 +00006907 ac_cv_type_signal=void
Guido van Rossum627b2d71993-12-24 10:39:16 +00006908fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006909
6910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006911fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006912{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6913echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006914
Martin v. Löwis11437992002-04-12 09:54:03 +00006915cat >>confdefs.h <<_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006916#define RETSIGTYPE $ac_cv_type_signal
Martin v. Löwis11437992002-04-12 09:54:03 +00006917_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00006918
Michael W. Hudson54241132001-12-07 15:38:26 +00006919
Martin v. Löwiseba40652007-08-30 20:10:57 +00006920{ echo "$as_me:$LINENO: checking for size_t" >&5
6921echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006922if test "${ac_cv_type_size_t+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006924else
Martin v. Löwis11437992002-04-12 09:54:03 +00006925 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006926/* confdefs.h. */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006931$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00006932typedef size_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00006933int
6934main ()
6935{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006936if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00006937 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00006938if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00006939 return 0;
6940 ;
6941 return 0;
6942}
6943_ACEOF
6944rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006945if { (ac_try="$ac_compile"
6946case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949esac
6950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006952 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006961 ac_cv_type_size_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00006962else
Martin v. Löwis11437992002-04-12 09:54:03 +00006963 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006964sed 's/^/| /' conftest.$ac_ext >&5
6965
Martin v. Löwiseba40652007-08-30 20:10:57 +00006966 ac_cv_type_size_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00006967fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006968
6969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00006970fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006971{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6972echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006973if test $ac_cv_type_size_t = yes; then
6974 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006975else
Martin v. Löwis11437992002-04-12 09:54:03 +00006976
6977cat >>confdefs.h <<_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006978#define size_t unsigned int
Martin v. Löwis11437992002-04-12 09:54:03 +00006979_ACEOF
6980
6981fi
6982
Martin v. Löwiseba40652007-08-30 20:10:57 +00006983{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6984echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006985if test "${ac_cv_type_uid_t+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006994#include <sys/types.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00006995
6996_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00006998 $EGREP "uid_t" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006999 ac_cv_type_uid_t=yes
7000else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007001 ac_cv_type_uid_t=no
7002fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00007003rm -f conftest*
7004
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007005fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007006{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7007echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00007008if test $ac_cv_type_uid_t = no; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007009
Martin v. Löwis11437992002-04-12 09:54:03 +00007010cat >>confdefs.h <<\_ACEOF
7011#define uid_t int
7012_ACEOF
7013
7014
7015cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007016#define gid_t int
Martin v. Löwis11437992002-04-12 09:54:03 +00007017_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007018
7019fi
7020
Martin v. Löwiseba40652007-08-30 20:10:57 +00007021{ echo "$as_me:$LINENO: checking for ssize_t" >&5
7022echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +00007023if test "${ac_cv_type_ssize_t+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026 cat >conftest.$ac_ext <<_ACEOF
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007033typedef ssize_t ac__type_new_;
Martin v. Löwis18e16552006-02-15 17:27:45 +00007034int
7035main ()
7036{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007037if ((ac__type_new_ *) 0)
Martin v. Löwis18e16552006-02-15 17:27:45 +00007038 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007039if (sizeof (ac__type_new_))
Martin v. Löwis18e16552006-02-15 17:27:45 +00007040 return 0;
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007046if { (ac_try="$ac_compile"
7047case "(($ac_try" in
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7050esac
7051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +00007053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007058 (exit $ac_status); } && {
7059 test -z "$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7061 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +00007062 ac_cv_type_ssize_t=yes
7063else
7064 echo "$as_me: failed program was:" >&5
7065sed 's/^/| /' conftest.$ac_ext >&5
7066
Martin v. Löwiseba40652007-08-30 20:10:57 +00007067 ac_cv_type_ssize_t=no
Martin v. Löwis18e16552006-02-15 17:27:45 +00007068fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007069
7070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +00007071fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007072{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7073echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +00007074if test $ac_cv_type_ssize_t = yes; then
7075
7076cat >>confdefs.h <<\_ACEOF
7077#define HAVE_SSIZE_T 1
7078_ACEOF
7079
7080fi
7081
Jack Jansendd19cf82001-12-06 22:36:17 +00007082
Michael W. Hudson54241132001-12-07 15:38:26 +00007083# Sizes of various common basic types
Skip Montanarob9820a32004-01-17 00:16:12 +00007084# ANSI C requires sizeof(char) == 1, so no need to check it
Martin v. Löwiseba40652007-08-30 20:10:57 +00007085{ echo "$as_me:$LINENO: checking for int" >&5
7086echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007087if test "${ac_cv_type_int+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007091/* confdefs.h. */
7092_ACEOF
7093cat confdefs.h >>conftest.$ac_ext
7094cat >>conftest.$ac_ext <<_ACEOF
7095/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007096$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007097typedef int ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007098int
7099main ()
7100{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007101if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00007102 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007103if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00007104 return 0;
7105 ;
7106 return 0;
7107}
7108_ACEOF
7109rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007110if { (ac_try="$ac_compile"
7111case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114esac
7115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007117 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007126 ac_cv_type_int=yes
7127else
7128 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007129sed 's/^/| /' conftest.$ac_ext >&5
7130
Martin v. Löwiseba40652007-08-30 20:10:57 +00007131 ac_cv_type_int=no
Martin v. Löwis11437992002-04-12 09:54:03 +00007132fi
Brett Cannon19fab762007-06-02 03:02:29 +00007133
Martin v. Löwiseba40652007-08-30 20:10:57 +00007134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135fi
7136{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7137echo "${ECHO_T}$ac_cv_type_int" >&6; }
7138
7139# The cast to long int works around a bug in the HP C Compiler
7140# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7141# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7142# This bug is HP SR number 8606223364.
7143{ echo "$as_me:$LINENO: checking size of int" >&5
7144echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007145if test "${ac_cv_sizeof_int+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
Martin v. Löwis11437992002-04-12 09:54:03 +00007148 if test "$cross_compiling" = yes; then
7149 # Depending upon the size, compute the lo and hi bounds.
7150cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007151/* confdefs.h. */
7152_ACEOF
7153cat confdefs.h >>conftest.$ac_ext
7154cat >>conftest.$ac_ext <<_ACEOF
7155/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007156$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007157 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007158int
7159main ()
7160{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007161static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007162test_array [0] = 0
7163
7164 ;
7165 return 0;
7166}
7167_ACEOF
7168rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007169if { (ac_try="$ac_compile"
7170case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7173esac
7174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007176 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007181 (exit $ac_status); } && {
7182 test -z "$ac_c_werror_flag" ||
7183 test ! -s conftest.err
7184 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007185 ac_lo=0 ac_mid=0
7186 while :; do
7187 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007188/* confdefs.h. */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007193$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007194 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007195int
7196main ()
7197{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007198static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007199test_array [0] = 0
7200
7201 ;
7202 return 0;
7203}
7204_ACEOF
7205rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007206if { (ac_try="$ac_compile"
7207case "(($ac_try" in
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7210esac
7211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007213 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007218 (exit $ac_status); } && {
7219 test -z "$ac_c_werror_flag" ||
7220 test ! -s conftest.err
7221 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007222 ac_hi=$ac_mid; break
7223else
7224 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007225sed 's/^/| /' conftest.$ac_ext >&5
7226
Martin v. Löwiseba40652007-08-30 20:10:57 +00007227 ac_lo=`expr $ac_mid + 1`
7228 if test $ac_lo -le $ac_mid; then
7229 ac_lo= ac_hi=
7230 break
7231 fi
7232 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00007233fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007234
7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007236 done
7237else
7238 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007239sed 's/^/| /' conftest.$ac_ext >&5
7240
Martin v. Löwiseba40652007-08-30 20:10:57 +00007241 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007242/* confdefs.h. */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007247$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007248 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007249int
7250main ()
7251{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007252static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007253test_array [0] = 0
7254
7255 ;
7256 return 0;
7257}
7258_ACEOF
7259rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007260if { (ac_try="$ac_compile"
7261case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264esac
7265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007267 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007276 ac_hi=-1 ac_mid=-1
7277 while :; do
7278 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007279/* confdefs.h. */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
7283/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007284$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007285 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007286int
7287main ()
7288{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007289static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007290test_array [0] = 0
7291
7292 ;
7293 return 0;
7294}
7295_ACEOF
7296rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007297if { (ac_try="$ac_compile"
7298case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301esac
7302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007304 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007313 ac_lo=$ac_mid; break
7314else
7315 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007316sed 's/^/| /' conftest.$ac_ext >&5
7317
Martin v. Löwiseba40652007-08-30 20:10:57 +00007318 ac_hi=`expr '(' $ac_mid ')' - 1`
7319 if test $ac_mid -le $ac_hi; then
7320 ac_lo= ac_hi=
7321 break
7322 fi
7323 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00007324fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007325
7326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007327 done
7328else
7329 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007330sed 's/^/| /' conftest.$ac_ext >&5
7331
Martin v. Löwiseba40652007-08-30 20:10:57 +00007332 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00007333fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007334
7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007336fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007337
7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007339# Binary search between lo and hi bounds.
7340while test "x$ac_lo" != "x$ac_hi"; do
7341 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7342 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007343/* confdefs.h. */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007348$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007349 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007350int
7351main ()
7352{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007353static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007354test_array [0] = 0
7355
7356 ;
7357 return 0;
7358}
7359_ACEOF
7360rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007361if { (ac_try="$ac_compile"
7362case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365esac
7366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007368 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007373 (exit $ac_status); } && {
7374 test -z "$ac_c_werror_flag" ||
7375 test ! -s conftest.err
7376 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007377 ac_hi=$ac_mid
7378else
7379 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007380sed 's/^/| /' conftest.$ac_ext >&5
7381
Martin v. Löwiseba40652007-08-30 20:10:57 +00007382 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00007383fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007384
7385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007386done
7387case $ac_lo in
7388?*) ac_cv_sizeof_int=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007389'') if test "$ac_cv_type_int" = yes; then
7390 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00007391See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007392echo "$as_me: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00007393See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00007394 { (exit 77); exit 77; }; }
7395 else
7396 ac_cv_sizeof_int=0
7397 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00007398esac
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007399else
Martin v. Löwis11437992002-04-12 09:54:03 +00007400 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007401/* confdefs.h. */
7402_ACEOF
7403cat confdefs.h >>conftest.$ac_ext
7404cat >>conftest.$ac_ext <<_ACEOF
7405/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007406$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007407 typedef int ac__type_sizeof_;
7408static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7409static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00007410#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007411#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007412int
7413main ()
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007414{
Martin v. Löwis11437992002-04-12 09:54:03 +00007415
7416 FILE *f = fopen ("conftest.val", "w");
7417 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00007418 return 1;
7419 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00007420 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00007421 long int i = longval ();
7422 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7423 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00007424 fprintf (f, "%ld\n", i);
7425 }
7426 else
7427 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00007428 unsigned long int i = ulongval ();
7429 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7430 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00007431 fprintf (f, "%lu\n", i);
7432 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00007433 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00007434
7435 ;
7436 return 0;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007437}
Martin v. Löwis11437992002-04-12 09:54:03 +00007438_ACEOF
7439rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007440if { (ac_try="$ac_link"
7441case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444esac
7445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00007450 { (case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453esac
7454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_sizeof_int=`cat conftest.val`
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007460else
Martin v. Löwis11437992002-04-12 09:54:03 +00007461 echo "$as_me: program exited with status $ac_status" >&5
7462echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007463sed 's/^/| /' conftest.$ac_ext >&5
7464
Martin v. Löwis11437992002-04-12 09:54:03 +00007465( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00007466if test "$ac_cv_type_int" = yes; then
7467 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00007468See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007469echo "$as_me: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00007470See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00007471 { (exit 77); exit 77; }; }
7472 else
7473 ac_cv_sizeof_int=0
7474 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007475fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007477fi
7478rm -f conftest.val
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007479fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007480{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7481echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7482
7483
7484
Martin v. Löwis11437992002-04-12 09:54:03 +00007485cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007486#define SIZEOF_INT $ac_cv_sizeof_int
Martin v. Löwis11437992002-04-12 09:54:03 +00007487_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007488
7489
Martin v. Löwiseba40652007-08-30 20:10:57 +00007490{ echo "$as_me:$LINENO: checking for long" >&5
7491echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007492if test "${ac_cv_type_long+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494else
7495 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007496/* confdefs.h. */
7497_ACEOF
7498cat confdefs.h >>conftest.$ac_ext
7499cat >>conftest.$ac_ext <<_ACEOF
7500/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007501$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007502typedef long ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007503int
7504main ()
7505{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007506if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00007507 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007508if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00007509 return 0;
7510 ;
7511 return 0;
7512}
7513_ACEOF
7514rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007515if { (ac_try="$ac_compile"
7516case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519esac
7520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007522 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007527 (exit $ac_status); } && {
7528 test -z "$ac_c_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007531 ac_cv_type_long=yes
7532else
7533 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007534sed 's/^/| /' conftest.$ac_ext >&5
7535
Martin v. Löwiseba40652007-08-30 20:10:57 +00007536 ac_cv_type_long=no
Martin v. Löwis11437992002-04-12 09:54:03 +00007537fi
Brett Cannon19fab762007-06-02 03:02:29 +00007538
Martin v. Löwiseba40652007-08-30 20:10:57 +00007539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540fi
7541{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7542echo "${ECHO_T}$ac_cv_type_long" >&6; }
7543
7544# The cast to long int works around a bug in the HP C Compiler
7545# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7546# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7547# This bug is HP SR number 8606223364.
7548{ echo "$as_me:$LINENO: checking size of long" >&5
7549echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007550if test "${ac_cv_sizeof_long+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
Martin v. Löwis11437992002-04-12 09:54:03 +00007553 if test "$cross_compiling" = yes; then
7554 # Depending upon the size, compute the lo and hi bounds.
7555cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007556/* confdefs.h. */
7557_ACEOF
7558cat confdefs.h >>conftest.$ac_ext
7559cat >>conftest.$ac_ext <<_ACEOF
7560/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007561$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007562 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007563int
7564main ()
7565{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007566static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007567test_array [0] = 0
7568
7569 ;
7570 return 0;
7571}
7572_ACEOF
7573rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007574if { (ac_try="$ac_compile"
7575case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578esac
7579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007581 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007590 ac_lo=0 ac_mid=0
7591 while :; do
7592 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007593/* confdefs.h. */
7594_ACEOF
7595cat confdefs.h >>conftest.$ac_ext
7596cat >>conftest.$ac_ext <<_ACEOF
7597/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007598$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007599 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007600int
7601main ()
7602{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007603static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007604test_array [0] = 0
7605
7606 ;
7607 return 0;
7608}
7609_ACEOF
7610rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007611if { (ac_try="$ac_compile"
7612case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7615esac
7616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007618 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007623 (exit $ac_status); } && {
7624 test -z "$ac_c_werror_flag" ||
7625 test ! -s conftest.err
7626 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007627 ac_hi=$ac_mid; break
7628else
7629 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007630sed 's/^/| /' conftest.$ac_ext >&5
7631
Martin v. Löwiseba40652007-08-30 20:10:57 +00007632 ac_lo=`expr $ac_mid + 1`
7633 if test $ac_lo -le $ac_mid; then
7634 ac_lo= ac_hi=
7635 break
7636 fi
7637 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00007638fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007639
7640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007641 done
7642else
7643 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007644sed 's/^/| /' conftest.$ac_ext >&5
7645
Martin v. Löwiseba40652007-08-30 20:10:57 +00007646 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007647/* confdefs.h. */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007652$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007653 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007654int
7655main ()
7656{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007657static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007658test_array [0] = 0
7659
7660 ;
7661 return 0;
7662}
7663_ACEOF
7664rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007665if { (ac_try="$ac_compile"
7666case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7669esac
7670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007672 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007673 grep -v '^ *+' conftest.er1 >conftest.err
7674 rm -f conftest.er1
7675 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007677 (exit $ac_status); } && {
7678 test -z "$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007681 ac_hi=-1 ac_mid=-1
7682 while :; do
7683 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007684/* confdefs.h. */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007689$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007690 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007691int
7692main ()
7693{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007694static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007695test_array [0] = 0
7696
7697 ;
7698 return 0;
7699}
7700_ACEOF
7701rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007702if { (ac_try="$ac_compile"
7703case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706esac
7707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007709 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007718 ac_lo=$ac_mid; break
7719else
7720 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007721sed 's/^/| /' conftest.$ac_ext >&5
7722
Martin v. Löwiseba40652007-08-30 20:10:57 +00007723 ac_hi=`expr '(' $ac_mid ')' - 1`
7724 if test $ac_mid -le $ac_hi; then
7725 ac_lo= ac_hi=
7726 break
7727 fi
7728 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00007729fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007730
7731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007732 done
7733else
7734 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007735sed 's/^/| /' conftest.$ac_ext >&5
7736
Martin v. Löwiseba40652007-08-30 20:10:57 +00007737 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00007738fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007739
7740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007741fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007742
7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007744# Binary search between lo and hi bounds.
7745while test "x$ac_lo" != "x$ac_hi"; do
7746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7747 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007748/* confdefs.h. */
7749_ACEOF
7750cat confdefs.h >>conftest.$ac_ext
7751cat >>conftest.$ac_ext <<_ACEOF
7752/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007753$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007754 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007755int
7756main ()
7757{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007758static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007759test_array [0] = 0
7760
7761 ;
7762 return 0;
7763}
7764_ACEOF
7765rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007766if { (ac_try="$ac_compile"
7767case "(($ac_try" in
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7770esac
7771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007773 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007778 (exit $ac_status); } && {
7779 test -z "$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7781 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007782 ac_hi=$ac_mid
7783else
7784 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007785sed 's/^/| /' conftest.$ac_ext >&5
7786
Martin v. Löwiseba40652007-08-30 20:10:57 +00007787 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00007788fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007789
7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007791done
7792case $ac_lo in
7793?*) ac_cv_sizeof_long=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007794'') if test "$ac_cv_type_long" = yes; then
7795 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00007796See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007797echo "$as_me: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00007798See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00007799 { (exit 77); exit 77; }; }
7800 else
7801 ac_cv_sizeof_long=0
7802 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00007803esac
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007804else
Martin v. Löwis11437992002-04-12 09:54:03 +00007805 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007811$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007812 typedef long ac__type_sizeof_;
7813static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7814static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00007815#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007816#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007817int
7818main ()
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007819{
Martin v. Löwis11437992002-04-12 09:54:03 +00007820
7821 FILE *f = fopen ("conftest.val", "w");
7822 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00007823 return 1;
7824 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00007825 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00007826 long int i = longval ();
7827 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7828 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00007829 fprintf (f, "%ld\n", i);
7830 }
7831 else
7832 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00007833 unsigned long int i = ulongval ();
7834 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7835 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00007836 fprintf (f, "%lu\n", i);
7837 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00007838 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00007839
7840 ;
7841 return 0;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007842}
Martin v. Löwis11437992002-04-12 09:54:03 +00007843_ACEOF
7844rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007845if { (ac_try="$ac_link"
7846case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849esac
7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00007855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_cv_sizeof_long=`cat conftest.val`
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007865else
Martin v. Löwis11437992002-04-12 09:54:03 +00007866 echo "$as_me: program exited with status $ac_status" >&5
7867echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007868sed 's/^/| /' conftest.$ac_ext >&5
7869
Martin v. Löwis11437992002-04-12 09:54:03 +00007870( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00007871if test "$ac_cv_type_long" = yes; then
7872 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00007873See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007874echo "$as_me: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00007875See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00007876 { (exit 77); exit 77; }; }
7877 else
7878 ac_cv_sizeof_long=0
7879 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007880fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007882fi
7883rm -f conftest.val
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007884fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007885{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7886echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7887
7888
7889
Martin v. Löwis11437992002-04-12 09:54:03 +00007890cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007891#define SIZEOF_LONG $ac_cv_sizeof_long
Martin v. Löwis11437992002-04-12 09:54:03 +00007892_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007893
7894
Martin v. Löwiseba40652007-08-30 20:10:57 +00007895{ echo "$as_me:$LINENO: checking for void *" >&5
7896echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007897if test "${ac_cv_type_void_p+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007901/* confdefs.h. */
7902_ACEOF
7903cat confdefs.h >>conftest.$ac_ext
7904cat >>conftest.$ac_ext <<_ACEOF
7905/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007906$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007907typedef void * ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007908int
7909main ()
7910{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007911if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00007912 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007913if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00007914 return 0;
7915 ;
7916 return 0;
7917}
7918_ACEOF
7919rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007920if { (ac_try="$ac_compile"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007927 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007936 ac_cv_type_void_p=yes
7937else
7938 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007939sed 's/^/| /' conftest.$ac_ext >&5
7940
Martin v. Löwiseba40652007-08-30 20:10:57 +00007941 ac_cv_type_void_p=no
Martin v. Löwis11437992002-04-12 09:54:03 +00007942fi
Brett Cannon19fab762007-06-02 03:02:29 +00007943
Martin v. Löwiseba40652007-08-30 20:10:57 +00007944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945fi
7946{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7947echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7948
7949# The cast to long int works around a bug in the HP C Compiler
7950# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7951# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7952# This bug is HP SR number 8606223364.
7953{ echo "$as_me:$LINENO: checking size of void *" >&5
7954echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007955if test "${ac_cv_sizeof_void_p+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
Martin v. Löwis11437992002-04-12 09:54:03 +00007958 if test "$cross_compiling" = yes; then
7959 # Depending upon the size, compute the lo and hi bounds.
7960cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007961/* confdefs.h. */
7962_ACEOF
7963cat confdefs.h >>conftest.$ac_ext
7964cat >>conftest.$ac_ext <<_ACEOF
7965/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007966$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007967 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007968int
7969main ()
7970{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007971static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007972test_array [0] = 0
7973
7974 ;
7975 return 0;
7976}
7977_ACEOF
7978rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007979if { (ac_try="$ac_compile"
7980case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983esac
7984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007986 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007995 ac_lo=0 ac_mid=0
7996 while :; do
7997 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007998/* confdefs.h. */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008003$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008004 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008005int
8006main ()
8007{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008008static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008009test_array [0] = 0
8010
8011 ;
8012 return 0;
8013}
8014_ACEOF
8015rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008016if { (ac_try="$ac_compile"
8017case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020esac
8021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008023 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008032 ac_hi=$ac_mid; break
8033else
8034 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008035sed 's/^/| /' conftest.$ac_ext >&5
8036
Martin v. Löwiseba40652007-08-30 20:10:57 +00008037 ac_lo=`expr $ac_mid + 1`
8038 if test $ac_lo -le $ac_mid; then
8039 ac_lo= ac_hi=
8040 break
8041 fi
8042 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008043fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008044
8045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008046 done
8047else
8048 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008049sed 's/^/| /' conftest.$ac_ext >&5
8050
Martin v. Löwiseba40652007-08-30 20:10:57 +00008051 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008057$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008058 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008059int
8060main ()
8061{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008062static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008063test_array [0] = 0
8064
8065 ;
8066 return 0;
8067}
8068_ACEOF
8069rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008070if { (ac_try="$ac_compile"
8071case "(($ac_try" in
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8074esac
8075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008077 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008086 ac_hi=-1 ac_mid=-1
8087 while :; do
8088 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
8093/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008094$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008095 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008096int
8097main ()
8098{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008099static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008100test_array [0] = 0
8101
8102 ;
8103 return 0;
8104}
8105_ACEOF
8106rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008107if { (ac_try="$ac_compile"
8108case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111esac
8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008114 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008123 ac_lo=$ac_mid; break
8124else
8125 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008126sed 's/^/| /' conftest.$ac_ext >&5
8127
Martin v. Löwiseba40652007-08-30 20:10:57 +00008128 ac_hi=`expr '(' $ac_mid ')' - 1`
8129 if test $ac_mid -le $ac_hi; then
8130 ac_lo= ac_hi=
8131 break
8132 fi
8133 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00008134fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008137 done
8138else
8139 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008140sed 's/^/| /' conftest.$ac_ext >&5
8141
Martin v. Löwiseba40652007-08-30 20:10:57 +00008142 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00008143fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008144
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008146fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008147
8148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008149# Binary search between lo and hi bounds.
8150while test "x$ac_lo" != "x$ac_hi"; do
8151 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8152 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008153/* confdefs.h. */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008158$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008159 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008160int
8161main ()
8162{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008163static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008164test_array [0] = 0
8165
8166 ;
8167 return 0;
8168}
8169_ACEOF
8170rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008171if { (ac_try="$ac_compile"
8172case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175esac
8176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008178 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008187 ac_hi=$ac_mid
8188else
8189 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008190sed 's/^/| /' conftest.$ac_ext >&5
8191
Martin v. Löwiseba40652007-08-30 20:10:57 +00008192 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008193fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008194
8195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008196done
8197case $ac_lo in
8198?*) ac_cv_sizeof_void_p=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008199'') if test "$ac_cv_type_void_p" = yes; then
8200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00008201See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008202echo "$as_me: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00008203See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00008204 { (exit 77); exit 77; }; }
8205 else
8206 ac_cv_sizeof_void_p=0
8207 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00008208esac
Guido van Rossumad678af1998-10-02 14:42:15 +00008209else
Martin v. Löwis11437992002-04-12 09:54:03 +00008210 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008211/* confdefs.h. */
8212_ACEOF
8213cat confdefs.h >>conftest.$ac_ext
8214cat >>conftest.$ac_ext <<_ACEOF
8215/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008216$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008217 typedef void * ac__type_sizeof_;
8218static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8219static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00008220#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008221#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008222int
8223main ()
Guido van Rossumad678af1998-10-02 14:42:15 +00008224{
Martin v. Löwis11437992002-04-12 09:54:03 +00008225
8226 FILE *f = fopen ("conftest.val", "w");
8227 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00008228 return 1;
8229 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008230 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008231 long int i = longval ();
8232 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8233 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00008234 fprintf (f, "%ld\n", i);
8235 }
8236 else
8237 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008238 unsigned long int i = ulongval ();
8239 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8240 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00008241 fprintf (f, "%lu\n", i);
8242 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00008243 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00008244
8245 ;
8246 return 0;
Guido van Rossumad678af1998-10-02 14:42:15 +00008247}
Martin v. Löwis11437992002-04-12 09:54:03 +00008248_ACEOF
8249rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008250if { (ac_try="$ac_link"
8251case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00008260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263esac
8264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_sizeof_void_p=`cat conftest.val`
Guido van Rossumad678af1998-10-02 14:42:15 +00008270else
Martin v. Löwis11437992002-04-12 09:54:03 +00008271 echo "$as_me: program exited with status $ac_status" >&5
8272echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008273sed 's/^/| /' conftest.$ac_ext >&5
8274
Martin v. Löwis11437992002-04-12 09:54:03 +00008275( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00008276if test "$ac_cv_type_void_p" = yes; then
8277 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00008278See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008279echo "$as_me: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00008280See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00008281 { (exit 77); exit 77; }; }
8282 else
8283 ac_cv_sizeof_void_p=0
8284 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008285fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008287fi
8288rm -f conftest.val
Guido van Rossumad678af1998-10-02 14:42:15 +00008289fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008290{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8291echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8292
8293
8294
Martin v. Löwis11437992002-04-12 09:54:03 +00008295cat >>confdefs.h <<_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00008296#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Martin v. Löwis11437992002-04-12 09:54:03 +00008297_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00008298
8299
Martin v. Löwiseba40652007-08-30 20:10:57 +00008300{ echo "$as_me:$LINENO: checking for short" >&5
8301echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008302if test "${ac_cv_type_short+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304else
8305 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008306/* confdefs.h. */
8307_ACEOF
8308cat confdefs.h >>conftest.$ac_ext
8309cat >>conftest.$ac_ext <<_ACEOF
8310/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008311$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008312typedef short ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008313int
8314main ()
8315{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008316if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008317 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008318if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00008319 return 0;
8320 ;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008325if { (ac_try="$ac_compile"
8326case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329esac
8330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008332 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008337 (exit $ac_status); } && {
8338 test -z "$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008341 ac_cv_type_short=yes
8342else
8343 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008344sed 's/^/| /' conftest.$ac_ext >&5
8345
Martin v. Löwiseba40652007-08-30 20:10:57 +00008346 ac_cv_type_short=no
Martin v. Löwis11437992002-04-12 09:54:03 +00008347fi
Brett Cannon19fab762007-06-02 03:02:29 +00008348
Martin v. Löwiseba40652007-08-30 20:10:57 +00008349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350fi
8351{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8352echo "${ECHO_T}$ac_cv_type_short" >&6; }
8353
8354# The cast to long int works around a bug in the HP C Compiler
8355# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8356# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8357# This bug is HP SR number 8606223364.
8358{ echo "$as_me:$LINENO: checking size of short" >&5
8359echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008360if test "${ac_cv_sizeof_short+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362else
Martin v. Löwis11437992002-04-12 09:54:03 +00008363 if test "$cross_compiling" = yes; then
8364 # Depending upon the size, compute the lo and hi bounds.
8365cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008371$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008372 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008373int
8374main ()
8375{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008376static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008377test_array [0] = 0
8378
8379 ;
8380 return 0;
8381}
8382_ACEOF
8383rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008384if { (ac_try="$ac_compile"
8385case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388esac
8389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008391 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008400 ac_lo=0 ac_mid=0
8401 while :; do
8402 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008403/* confdefs.h. */
8404_ACEOF
8405cat confdefs.h >>conftest.$ac_ext
8406cat >>conftest.$ac_ext <<_ACEOF
8407/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008408$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008409 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008410int
8411main ()
8412{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008413static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008414test_array [0] = 0
8415
8416 ;
8417 return 0;
8418}
8419_ACEOF
8420rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008421if { (ac_try="$ac_compile"
8422case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425esac
8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008428 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008437 ac_hi=$ac_mid; break
8438else
8439 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008440sed 's/^/| /' conftest.$ac_ext >&5
8441
Martin v. Löwiseba40652007-08-30 20:10:57 +00008442 ac_lo=`expr $ac_mid + 1`
8443 if test $ac_lo -le $ac_mid; then
8444 ac_lo= ac_hi=
8445 break
8446 fi
8447 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008448fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008449
8450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008451 done
8452else
8453 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008454sed 's/^/| /' conftest.$ac_ext >&5
8455
Martin v. Löwiseba40652007-08-30 20:10:57 +00008456 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008457/* confdefs.h. */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
8461/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008462$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008463 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008464int
8465main ()
8466{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008467static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008468test_array [0] = 0
8469
8470 ;
8471 return 0;
8472}
8473_ACEOF
8474rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008475if { (ac_try="$ac_compile"
8476case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008482 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008491 ac_hi=-1 ac_mid=-1
8492 while :; do
8493 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008494/* confdefs.h. */
8495_ACEOF
8496cat confdefs.h >>conftest.$ac_ext
8497cat >>conftest.$ac_ext <<_ACEOF
8498/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008499$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008500 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008501int
8502main ()
8503{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008504static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008505test_array [0] = 0
8506
8507 ;
8508 return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008512if { (ac_try="$ac_compile"
8513case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516esac
8517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008519 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008524 (exit $ac_status); } && {
8525 test -z "$ac_c_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008528 ac_lo=$ac_mid; break
8529else
8530 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008531sed 's/^/| /' conftest.$ac_ext >&5
8532
Martin v. Löwiseba40652007-08-30 20:10:57 +00008533 ac_hi=`expr '(' $ac_mid ')' - 1`
8534 if test $ac_mid -le $ac_hi; then
8535 ac_lo= ac_hi=
8536 break
8537 fi
8538 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00008539fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008540
8541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008542 done
8543else
8544 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008545sed 's/^/| /' conftest.$ac_ext >&5
8546
Martin v. Löwiseba40652007-08-30 20:10:57 +00008547 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00008548fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008549
8550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008551fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008552
8553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008554# Binary search between lo and hi bounds.
8555while test "x$ac_lo" != "x$ac_hi"; do
8556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8557 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008558/* confdefs.h. */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008563$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008564 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008565int
8566main ()
8567{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008568static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008569test_array [0] = 0
8570
8571 ;
8572 return 0;
8573}
8574_ACEOF
8575rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008576if { (ac_try="$ac_compile"
8577case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580esac
8581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008583 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008592 ac_hi=$ac_mid
8593else
8594 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008595sed 's/^/| /' conftest.$ac_ext >&5
8596
Martin v. Löwiseba40652007-08-30 20:10:57 +00008597 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008598fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008599
8600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008601done
8602case $ac_lo in
8603?*) ac_cv_sizeof_short=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008604'') if test "$ac_cv_type_short" = yes; then
8605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00008606See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008607echo "$as_me: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00008608See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00008609 { (exit 77); exit 77; }; }
8610 else
8611 ac_cv_sizeof_short=0
8612 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00008613esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00008614else
Martin v. Löwis11437992002-04-12 09:54:03 +00008615 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008616/* confdefs.h. */
8617_ACEOF
8618cat confdefs.h >>conftest.$ac_ext
8619cat >>conftest.$ac_ext <<_ACEOF
8620/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008621$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008622 typedef short ac__type_sizeof_;
8623static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8624static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00008625#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008626#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008627int
8628main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00008629{
Martin v. Löwis11437992002-04-12 09:54:03 +00008630
8631 FILE *f = fopen ("conftest.val", "w");
8632 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00008633 return 1;
8634 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008635 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008636 long int i = longval ();
8637 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8638 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00008639 fprintf (f, "%ld\n", i);
8640 }
8641 else
8642 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008643 unsigned long int i = ulongval ();
8644 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8645 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00008646 fprintf (f, "%lu\n", i);
8647 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00008648 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00008649
8650 ;
8651 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00008652}
Martin v. Löwis11437992002-04-12 09:54:03 +00008653_ACEOF
8654rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008655if { (ac_try="$ac_link"
8656case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659esac
8660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00008665 { (case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668esac
8669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_sizeof_short=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00008675else
Martin v. Löwis11437992002-04-12 09:54:03 +00008676 echo "$as_me: program exited with status $ac_status" >&5
8677echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008678sed 's/^/| /' conftest.$ac_ext >&5
8679
Martin v. Löwis11437992002-04-12 09:54:03 +00008680( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00008681if test "$ac_cv_type_short" = yes; then
8682 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00008683See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008684echo "$as_me: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00008685See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00008686 { (exit 77); exit 77; }; }
8687 else
8688 ac_cv_sizeof_short=0
8689 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008690fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008692fi
8693rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +00008694fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008695{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8696echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8697
8698
8699
Martin v. Löwis11437992002-04-12 09:54:03 +00008700cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00008701#define SIZEOF_SHORT $ac_cv_sizeof_short
Martin v. Löwis11437992002-04-12 09:54:03 +00008702_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00008703
8704
Martin v. Löwiseba40652007-08-30 20:10:57 +00008705{ echo "$as_me:$LINENO: checking for float" >&5
8706echo $ECHO_N "checking for float... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008707if test "${ac_cv_type_float+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709else
8710 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008711/* confdefs.h. */
8712_ACEOF
8713cat confdefs.h >>conftest.$ac_ext
8714cat >>conftest.$ac_ext <<_ACEOF
8715/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008716$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008717typedef float ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008718int
8719main ()
8720{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008721if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008722 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008723if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00008724 return 0;
8725 ;
8726 return 0;
8727}
8728_ACEOF
8729rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008730if { (ac_try="$ac_compile"
8731case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008737 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008738 grep -v '^ *+' conftest.er1 >conftest.err
8739 rm -f conftest.er1
8740 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008746 ac_cv_type_float=yes
8747else
8748 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008749sed 's/^/| /' conftest.$ac_ext >&5
8750
Martin v. Löwiseba40652007-08-30 20:10:57 +00008751 ac_cv_type_float=no
Martin v. Löwis11437992002-04-12 09:54:03 +00008752fi
Brett Cannon19fab762007-06-02 03:02:29 +00008753
Martin v. Löwiseba40652007-08-30 20:10:57 +00008754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755fi
8756{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8757echo "${ECHO_T}$ac_cv_type_float" >&6; }
8758
8759# The cast to long int works around a bug in the HP C Compiler
8760# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8761# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8762# This bug is HP SR number 8606223364.
8763{ echo "$as_me:$LINENO: checking size of float" >&5
8764echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008765if test "${ac_cv_sizeof_float+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767else
Martin v. Löwis11437992002-04-12 09:54:03 +00008768 if test "$cross_compiling" = yes; then
8769 # Depending upon the size, compute the lo and hi bounds.
8770cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008771/* confdefs.h. */
8772_ACEOF
8773cat confdefs.h >>conftest.$ac_ext
8774cat >>conftest.$ac_ext <<_ACEOF
8775/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008776$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008777 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008778int
8779main ()
8780{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008781static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008782test_array [0] = 0
8783
8784 ;
8785 return 0;
8786}
8787_ACEOF
8788rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008789if { (ac_try="$ac_compile"
8790case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793esac
8794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008796 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008805 ac_lo=0 ac_mid=0
8806 while :; do
8807 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008808/* confdefs.h. */
8809_ACEOF
8810cat confdefs.h >>conftest.$ac_ext
8811cat >>conftest.$ac_ext <<_ACEOF
8812/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008813$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008814 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008815int
8816main ()
8817{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008818static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008819test_array [0] = 0
8820
8821 ;
8822 return 0;
8823}
8824_ACEOF
8825rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008826if { (ac_try="$ac_compile"
8827case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830esac
8831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008833 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008842 ac_hi=$ac_mid; break
8843else
8844 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008845sed 's/^/| /' conftest.$ac_ext >&5
8846
Martin v. Löwiseba40652007-08-30 20:10:57 +00008847 ac_lo=`expr $ac_mid + 1`
8848 if test $ac_lo -le $ac_mid; then
8849 ac_lo= ac_hi=
8850 break
8851 fi
8852 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008853fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008854
8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008856 done
8857else
8858 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008859sed 's/^/| /' conftest.$ac_ext >&5
8860
Martin v. Löwiseba40652007-08-30 20:10:57 +00008861 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008862/* confdefs.h. */
8863_ACEOF
8864cat confdefs.h >>conftest.$ac_ext
8865cat >>conftest.$ac_ext <<_ACEOF
8866/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008867$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008868 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008869int
8870main ()
8871{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008872static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008873test_array [0] = 0
8874
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008880if { (ac_try="$ac_compile"
8881case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008887 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008896 ac_hi=-1 ac_mid=-1
8897 while :; do
8898 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008899/* confdefs.h. */
8900_ACEOF
8901cat confdefs.h >>conftest.$ac_ext
8902cat >>conftest.$ac_ext <<_ACEOF
8903/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008904$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008905 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008906int
8907main ()
8908{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008909static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008910test_array [0] = 0
8911
8912 ;
8913 return 0;
8914}
8915_ACEOF
8916rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008917if { (ac_try="$ac_compile"
8918case "(($ac_try" in
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8921esac
8922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008924 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008933 ac_lo=$ac_mid; break
8934else
8935 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008936sed 's/^/| /' conftest.$ac_ext >&5
8937
Martin v. Löwiseba40652007-08-30 20:10:57 +00008938 ac_hi=`expr '(' $ac_mid ')' - 1`
8939 if test $ac_mid -le $ac_hi; then
8940 ac_lo= ac_hi=
8941 break
8942 fi
8943 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00008944fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008945
8946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008947 done
8948else
8949 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008950sed 's/^/| /' conftest.$ac_ext >&5
8951
Martin v. Löwiseba40652007-08-30 20:10:57 +00008952 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00008953fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008954
8955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008956fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008957
8958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008959# Binary search between lo and hi bounds.
8960while test "x$ac_lo" != "x$ac_hi"; do
8961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8962 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008968$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008969 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008970int
8971main ()
8972{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008973static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008974test_array [0] = 0
8975
8976 ;
8977 return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008981if { (ac_try="$ac_compile"
8982case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8985esac
8986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008988 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008993 (exit $ac_status); } && {
8994 test -z "$ac_c_werror_flag" ||
8995 test ! -s conftest.err
8996 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008997 ac_hi=$ac_mid
8998else
8999 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009000sed 's/^/| /' conftest.$ac_ext >&5
9001
Martin v. Löwiseba40652007-08-30 20:10:57 +00009002 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009003fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009004
9005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009006done
9007case $ac_lo in
9008?*) ac_cv_sizeof_float=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009009'') if test "$ac_cv_type_float" = yes; then
9010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009011See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009012echo "$as_me: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009013See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009014 { (exit 77); exit 77; }; }
9015 else
9016 ac_cv_sizeof_float=0
9017 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00009018esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00009019else
Martin v. Löwis11437992002-04-12 09:54:03 +00009020 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009021/* confdefs.h. */
9022_ACEOF
9023cat confdefs.h >>conftest.$ac_ext
9024cat >>conftest.$ac_ext <<_ACEOF
9025/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009026$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009027 typedef float ac__type_sizeof_;
9028static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9029static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00009030#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009031#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009032int
9033main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00009034{
Martin v. Löwis11437992002-04-12 09:54:03 +00009035
9036 FILE *f = fopen ("conftest.val", "w");
9037 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00009038 return 1;
9039 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009040 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009041 long int i = longval ();
9042 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9043 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009044 fprintf (f, "%ld\n", i);
9045 }
9046 else
9047 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009048 unsigned long int i = ulongval ();
9049 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9050 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009051 fprintf (f, "%lu\n", i);
9052 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009053 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00009054
9055 ;
9056 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00009057}
Martin v. Löwis11437992002-04-12 09:54:03 +00009058_ACEOF
9059rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009060if { (ac_try="$ac_link"
9061case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064esac
9065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00009070 { (case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9073esac
9074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_cv_sizeof_float=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00009080else
Martin v. Löwis11437992002-04-12 09:54:03 +00009081 echo "$as_me: program exited with status $ac_status" >&5
9082echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009083sed 's/^/| /' conftest.$ac_ext >&5
9084
Martin v. Löwis11437992002-04-12 09:54:03 +00009085( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00009086if test "$ac_cv_type_float" = yes; then
9087 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009088See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009089echo "$as_me: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009090See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009091 { (exit 77); exit 77; }; }
9092 else
9093 ac_cv_sizeof_float=0
9094 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009095fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009097fi
9098rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +00009099fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009100{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9101echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9102
9103
9104
Martin v. Löwis11437992002-04-12 09:54:03 +00009105cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009106#define SIZEOF_FLOAT $ac_cv_sizeof_float
Martin v. Löwis11437992002-04-12 09:54:03 +00009107_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009108
9109
Martin v. Löwiseba40652007-08-30 20:10:57 +00009110{ echo "$as_me:$LINENO: checking for double" >&5
9111echo $ECHO_N "checking for double... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009112if test "${ac_cv_type_double+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114else
9115 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009116/* confdefs.h. */
9117_ACEOF
9118cat confdefs.h >>conftest.$ac_ext
9119cat >>conftest.$ac_ext <<_ACEOF
9120/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009121$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009122typedef double ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009123int
9124main ()
9125{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009126if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009127 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009128if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00009129 return 0;
9130 ;
9131 return 0;
9132}
9133_ACEOF
9134rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009135if { (ac_try="$ac_compile"
9136case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139esac
9140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009142 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009147 (exit $ac_status); } && {
9148 test -z "$ac_c_werror_flag" ||
9149 test ! -s conftest.err
9150 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009151 ac_cv_type_double=yes
9152else
9153 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009154sed 's/^/| /' conftest.$ac_ext >&5
9155
Martin v. Löwiseba40652007-08-30 20:10:57 +00009156 ac_cv_type_double=no
Martin v. Löwis11437992002-04-12 09:54:03 +00009157fi
Brett Cannon19fab762007-06-02 03:02:29 +00009158
Martin v. Löwiseba40652007-08-30 20:10:57 +00009159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160fi
9161{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9162echo "${ECHO_T}$ac_cv_type_double" >&6; }
9163
9164# The cast to long int works around a bug in the HP C Compiler
9165# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9166# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9167# This bug is HP SR number 8606223364.
9168{ echo "$as_me:$LINENO: checking size of double" >&5
9169echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009170if test "${ac_cv_sizeof_double+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172else
Martin v. Löwis11437992002-04-12 09:54:03 +00009173 if test "$cross_compiling" = yes; then
9174 # Depending upon the size, compute the lo and hi bounds.
9175cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009176/* confdefs.h. */
9177_ACEOF
9178cat confdefs.h >>conftest.$ac_ext
9179cat >>conftest.$ac_ext <<_ACEOF
9180/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009181$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009182 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009183int
9184main ()
9185{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009186static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009187test_array [0] = 0
9188
9189 ;
9190 return 0;
9191}
9192_ACEOF
9193rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009194if { (ac_try="$ac_compile"
9195case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198esac
9199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009201 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009210 ac_lo=0 ac_mid=0
9211 while :; do
9212 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009213/* confdefs.h. */
9214_ACEOF
9215cat confdefs.h >>conftest.$ac_ext
9216cat >>conftest.$ac_ext <<_ACEOF
9217/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009218$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009219 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009220int
9221main ()
9222{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009223static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009224test_array [0] = 0
9225
9226 ;
9227 return 0;
9228}
9229_ACEOF
9230rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009231if { (ac_try="$ac_compile"
9232case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9235esac
9236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009238 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009247 ac_hi=$ac_mid; break
9248else
9249 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009250sed 's/^/| /' conftest.$ac_ext >&5
9251
Martin v. Löwiseba40652007-08-30 20:10:57 +00009252 ac_lo=`expr $ac_mid + 1`
9253 if test $ac_lo -le $ac_mid; then
9254 ac_lo= ac_hi=
9255 break
9256 fi
9257 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009258fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009259
9260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009261 done
9262else
9263 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009264sed 's/^/| /' conftest.$ac_ext >&5
9265
Martin v. Löwiseba40652007-08-30 20:10:57 +00009266 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009267/* confdefs.h. */
9268_ACEOF
9269cat confdefs.h >>conftest.$ac_ext
9270cat >>conftest.$ac_ext <<_ACEOF
9271/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009272$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009273 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009274int
9275main ()
9276{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009277static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009278test_array [0] = 0
9279
9280 ;
9281 return 0;
9282}
9283_ACEOF
9284rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009285if { (ac_try="$ac_compile"
9286case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9289esac
9290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009292 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009293 grep -v '^ *+' conftest.er1 >conftest.err
9294 rm -f conftest.er1
9295 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009301 ac_hi=-1 ac_mid=-1
9302 while :; do
9303 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009304/* confdefs.h. */
9305_ACEOF
9306cat confdefs.h >>conftest.$ac_ext
9307cat >>conftest.$ac_ext <<_ACEOF
9308/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009309$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009310 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009311int
9312main ()
9313{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009314static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009315test_array [0] = 0
9316
9317 ;
9318 return 0;
9319}
9320_ACEOF
9321rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009322if { (ac_try="$ac_compile"
9323case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326esac
9327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009329 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009338 ac_lo=$ac_mid; break
9339else
9340 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009341sed 's/^/| /' conftest.$ac_ext >&5
9342
Martin v. Löwiseba40652007-08-30 20:10:57 +00009343 ac_hi=`expr '(' $ac_mid ')' - 1`
9344 if test $ac_mid -le $ac_hi; then
9345 ac_lo= ac_hi=
9346 break
9347 fi
9348 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00009349fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009350
9351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009352 done
9353else
9354 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009355sed 's/^/| /' conftest.$ac_ext >&5
9356
Martin v. Löwiseba40652007-08-30 20:10:57 +00009357 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00009358fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009359
9360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009361fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009362
9363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009364# Binary search between lo and hi bounds.
9365while test "x$ac_lo" != "x$ac_hi"; do
9366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9367 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009368/* confdefs.h. */
9369_ACEOF
9370cat confdefs.h >>conftest.$ac_ext
9371cat >>conftest.$ac_ext <<_ACEOF
9372/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009373$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009374 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009375int
9376main ()
9377{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009378static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009379test_array [0] = 0
9380
9381 ;
9382 return 0;
9383}
9384_ACEOF
9385rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009386if { (ac_try="$ac_compile"
9387case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9390esac
9391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009393 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009402 ac_hi=$ac_mid
9403else
9404 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009405sed 's/^/| /' conftest.$ac_ext >&5
9406
Martin v. Löwiseba40652007-08-30 20:10:57 +00009407 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009408fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009409
9410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009411done
9412case $ac_lo in
9413?*) ac_cv_sizeof_double=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009414'') if test "$ac_cv_type_double" = yes; then
9415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +00009416See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009417echo "$as_me: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +00009418See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009419 { (exit 77); exit 77; }; }
9420 else
9421 ac_cv_sizeof_double=0
9422 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00009423esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00009424else
Martin v. Löwis11437992002-04-12 09:54:03 +00009425 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009426/* confdefs.h. */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009431$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009432 typedef double ac__type_sizeof_;
9433static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9434static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00009435#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009436#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009437int
9438main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00009439{
Martin v. Löwis11437992002-04-12 09:54:03 +00009440
9441 FILE *f = fopen ("conftest.val", "w");
9442 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00009443 return 1;
9444 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009445 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009446 long int i = longval ();
9447 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9448 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009449 fprintf (f, "%ld\n", i);
9450 }
9451 else
9452 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009453 unsigned long int i = ulongval ();
9454 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9455 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009456 fprintf (f, "%lu\n", i);
9457 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009458 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00009459
9460 ;
9461 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00009462}
Martin v. Löwis11437992002-04-12 09:54:03 +00009463_ACEOF
9464rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009465if { (ac_try="$ac_link"
9466case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469esac
9470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00009475 { (case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478esac
9479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_sizeof_double=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00009485else
Martin v. Löwis11437992002-04-12 09:54:03 +00009486 echo "$as_me: program exited with status $ac_status" >&5
9487echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009488sed 's/^/| /' conftest.$ac_ext >&5
9489
Martin v. Löwis11437992002-04-12 09:54:03 +00009490( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00009491if test "$ac_cv_type_double" = yes; then
9492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +00009493See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009494echo "$as_me: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +00009495See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009496 { (exit 77); exit 77; }; }
9497 else
9498 ac_cv_sizeof_double=0
9499 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009500fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009502fi
9503rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +00009504fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009505{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9506echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9507
9508
9509
Martin v. Löwis11437992002-04-12 09:54:03 +00009510cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009511#define SIZEOF_DOUBLE $ac_cv_sizeof_double
Martin v. Löwis11437992002-04-12 09:54:03 +00009512_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009513
9514
Martin v. Löwiseba40652007-08-30 20:10:57 +00009515{ echo "$as_me:$LINENO: checking for fpos_t" >&5
9516echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009517if test "${ac_cv_type_fpos_t+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519else
9520 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009521/* confdefs.h. */
9522_ACEOF
9523cat confdefs.h >>conftest.$ac_ext
9524cat >>conftest.$ac_ext <<_ACEOF
9525/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009526$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009527typedef fpos_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009528int
9529main ()
9530{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009531if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009532 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009533if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00009534 return 0;
9535 ;
9536 return 0;
9537}
9538_ACEOF
9539rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009540if { (ac_try="$ac_compile"
9541case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544esac
9545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009547 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009556 ac_cv_type_fpos_t=yes
9557else
9558 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009559sed 's/^/| /' conftest.$ac_ext >&5
9560
Martin v. Löwiseba40652007-08-30 20:10:57 +00009561 ac_cv_type_fpos_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +00009562fi
Brett Cannon19fab762007-06-02 03:02:29 +00009563
Martin v. Löwiseba40652007-08-30 20:10:57 +00009564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565fi
9566{ echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9567echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9568
9569# The cast to long int works around a bug in the HP C Compiler
9570# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9571# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9572# This bug is HP SR number 8606223364.
9573{ echo "$as_me:$LINENO: checking size of fpos_t" >&5
9574echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009575if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577else
Martin v. Löwis11437992002-04-12 09:54:03 +00009578 if test "$cross_compiling" = yes; then
9579 # Depending upon the size, compute the lo and hi bounds.
9580cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009586$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009587 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009588int
9589main ()
9590{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009591static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009592test_array [0] = 0
9593
9594 ;
9595 return 0;
9596}
9597_ACEOF
9598rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009599if { (ac_try="$ac_compile"
9600case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603esac
9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009606 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009615 ac_lo=0 ac_mid=0
9616 while :; do
9617 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009618/* confdefs.h. */
9619_ACEOF
9620cat confdefs.h >>conftest.$ac_ext
9621cat >>conftest.$ac_ext <<_ACEOF
9622/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009623$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009624 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009625int
9626main ()
9627{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009628static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009629test_array [0] = 0
9630
9631 ;
9632 return 0;
9633}
9634_ACEOF
9635rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009636if { (ac_try="$ac_compile"
9637case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640esac
9641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009643 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009652 ac_hi=$ac_mid; break
9653else
9654 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009655sed 's/^/| /' conftest.$ac_ext >&5
9656
Martin v. Löwiseba40652007-08-30 20:10:57 +00009657 ac_lo=`expr $ac_mid + 1`
9658 if test $ac_lo -le $ac_mid; then
9659 ac_lo= ac_hi=
9660 break
9661 fi
9662 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009663fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009664
9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009666 done
9667else
9668 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009669sed 's/^/| /' conftest.$ac_ext >&5
9670
Martin v. Löwiseba40652007-08-30 20:10:57 +00009671 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009672/* confdefs.h. */
9673_ACEOF
9674cat confdefs.h >>conftest.$ac_ext
9675cat >>conftest.$ac_ext <<_ACEOF
9676/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009677$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009678 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009679int
9680main ()
9681{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009682static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009683test_array [0] = 0
9684
9685 ;
9686 return 0;
9687}
9688_ACEOF
9689rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009690if { (ac_try="$ac_compile"
9691case "(($ac_try" in
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9694esac
9695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009697 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009698 grep -v '^ *+' conftest.er1 >conftest.err
9699 rm -f conftest.er1
9700 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009702 (exit $ac_status); } && {
9703 test -z "$ac_c_werror_flag" ||
9704 test ! -s conftest.err
9705 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009706 ac_hi=-1 ac_mid=-1
9707 while :; do
9708 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009714$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009715 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009716int
9717main ()
9718{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009719static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009720test_array [0] = 0
9721
9722 ;
9723 return 0;
9724}
9725_ACEOF
9726rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009727if { (ac_try="$ac_compile"
9728case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731esac
9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009734 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009739 (exit $ac_status); } && {
9740 test -z "$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9742 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009743 ac_lo=$ac_mid; break
9744else
9745 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009746sed 's/^/| /' conftest.$ac_ext >&5
9747
Martin v. Löwiseba40652007-08-30 20:10:57 +00009748 ac_hi=`expr '(' $ac_mid ')' - 1`
9749 if test $ac_mid -le $ac_hi; then
9750 ac_lo= ac_hi=
9751 break
9752 fi
9753 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00009754fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009755
9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009757 done
9758else
9759 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009760sed 's/^/| /' conftest.$ac_ext >&5
9761
Martin v. Löwiseba40652007-08-30 20:10:57 +00009762 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00009763fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009764
9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009766fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009767
9768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009769# Binary search between lo and hi bounds.
9770while test "x$ac_lo" != "x$ac_hi"; do
9771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9772 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009773/* confdefs.h. */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
9777/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009778$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009779 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009780int
9781main ()
9782{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009783static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009784test_array [0] = 0
9785
9786 ;
9787 return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009791if { (ac_try="$ac_compile"
9792case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795esac
9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009798 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009807 ac_hi=$ac_mid
9808else
9809 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009810sed 's/^/| /' conftest.$ac_ext >&5
9811
Martin v. Löwiseba40652007-08-30 20:10:57 +00009812 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009813fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009814
9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009816done
9817case $ac_lo in
9818?*) ac_cv_sizeof_fpos_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009819'') if test "$ac_cv_type_fpos_t" = yes; then
9820 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +00009821See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009822echo "$as_me: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +00009823See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009824 { (exit 77); exit 77; }; }
9825 else
9826 ac_cv_sizeof_fpos_t=0
9827 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00009828esac
Guido van Rossumb9a22a12000-06-30 02:48:53 +00009829else
Martin v. Löwis11437992002-04-12 09:54:03 +00009830 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009831/* confdefs.h. */
9832_ACEOF
9833cat confdefs.h >>conftest.$ac_ext
9834cat >>conftest.$ac_ext <<_ACEOF
9835/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009836$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009837 typedef fpos_t ac__type_sizeof_;
9838static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9839static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00009840#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009841#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009842int
9843main ()
Guido van Rossumb9a22a12000-06-30 02:48:53 +00009844{
Martin v. Löwis11437992002-04-12 09:54:03 +00009845
9846 FILE *f = fopen ("conftest.val", "w");
9847 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00009848 return 1;
9849 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009850 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009851 long int i = longval ();
9852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9853 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009854 fprintf (f, "%ld\n", i);
9855 }
9856 else
9857 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009858 unsigned long int i = ulongval ();
9859 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9860 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009861 fprintf (f, "%lu\n", i);
9862 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009863 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00009864
9865 ;
9866 return 0;
Guido van Rossumb9a22a12000-06-30 02:48:53 +00009867}
Martin v. Löwis11437992002-04-12 09:54:03 +00009868_ACEOF
9869rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009870if { (ac_try="$ac_link"
9871case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00009880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_sizeof_fpos_t=`cat conftest.val`
Guido van Rossumb9a22a12000-06-30 02:48:53 +00009890else
Martin v. Löwis11437992002-04-12 09:54:03 +00009891 echo "$as_me: program exited with status $ac_status" >&5
9892echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009893sed 's/^/| /' conftest.$ac_ext >&5
9894
Martin v. Löwis11437992002-04-12 09:54:03 +00009895( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00009896if test "$ac_cv_type_fpos_t" = yes; then
9897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +00009898See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009899echo "$as_me: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +00009900See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009901 { (exit 77); exit 77; }; }
9902 else
9903 ac_cv_sizeof_fpos_t=0
9904 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009905fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009907fi
9908rm -f conftest.val
Guido van Rossumb9a22a12000-06-30 02:48:53 +00009909fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009910{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9911echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9912
9913
9914
Martin v. Löwis11437992002-04-12 09:54:03 +00009915cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00009916#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
Martin v. Löwis11437992002-04-12 09:54:03 +00009917_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00009918
Michael W. Hudson54241132001-12-07 15:38:26 +00009919
Martin v. Löwiseba40652007-08-30 20:10:57 +00009920{ echo "$as_me:$LINENO: checking for size_t" >&5
9921echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +00009922if test "${ac_cv_type_size_t+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924else
9925 cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
9931$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009932typedef size_t ac__type_new_;
Martin v. Löwis18e16552006-02-15 17:27:45 +00009933int
9934main ()
9935{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009936if ((ac__type_new_ *) 0)
Martin v. Löwis18e16552006-02-15 17:27:45 +00009937 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009938if (sizeof (ac__type_new_))
Martin v. Löwis18e16552006-02-15 17:27:45 +00009939 return 0;
9940 ;
9941 return 0;
9942}
9943_ACEOF
9944rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009945if { (ac_try="$ac_compile"
9946case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9949esac
9950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +00009952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009957 (exit $ac_status); } && {
9958 test -z "$ac_c_werror_flag" ||
9959 test ! -s conftest.err
9960 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +00009961 ac_cv_type_size_t=yes
9962else
9963 echo "$as_me: failed program was:" >&5
9964sed 's/^/| /' conftest.$ac_ext >&5
9965
Martin v. Löwiseba40652007-08-30 20:10:57 +00009966 ac_cv_type_size_t=no
Martin v. Löwis18e16552006-02-15 17:27:45 +00009967fi
Brett Cannon19fab762007-06-02 03:02:29 +00009968
Martin v. Löwiseba40652007-08-30 20:10:57 +00009969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970fi
9971{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9972echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9973
9974# The cast to long int works around a bug in the HP C Compiler
9975# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9976# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9977# This bug is HP SR number 8606223364.
9978{ echo "$as_me:$LINENO: checking size of size_t" >&5
9979echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +00009980if test "${ac_cv_sizeof_size_t+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982else
Martin v. Löwis18e16552006-02-15 17:27:45 +00009983 if test "$cross_compiling" = yes; then
9984 # Depending upon the size, compute the lo and hi bounds.
9985cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h. */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h. */
9991$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009992 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +00009993int
9994main ()
9995{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009996static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis18e16552006-02-15 17:27:45 +00009997test_array [0] = 0
9998
9999 ;
10000 return 0;
10001}
10002_ACEOF
10003rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010004if { (ac_try="$ac_compile"
10005case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008esac
10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010020 ac_lo=0 ac_mid=0
10021 while :; do
10022 cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
10028$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010029 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010030int
10031main ()
10032{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010033static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010034test_array [0] = 0
10035
10036 ;
10037 return 0;
10038}
10039_ACEOF
10040rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010041if { (ac_try="$ac_compile"
10042case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045esac
10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010057 ac_hi=$ac_mid; break
10058else
10059 echo "$as_me: failed program was:" >&5
10060sed 's/^/| /' conftest.$ac_ext >&5
10061
Martin v. Löwiseba40652007-08-30 20:10:57 +000010062 ac_lo=`expr $ac_mid + 1`
10063 if test $ac_lo -le $ac_mid; then
10064 ac_lo= ac_hi=
10065 break
10066 fi
10067 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis18e16552006-02-15 17:27:45 +000010068fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010069
10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010071 done
10072else
10073 echo "$as_me: failed program was:" >&5
10074sed 's/^/| /' conftest.$ac_ext >&5
10075
Martin v. Löwiseba40652007-08-30 20:10:57 +000010076 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwis18e16552006-02-15 17:27:45 +000010077/* confdefs.h. */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
10081/* end confdefs.h. */
10082$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010083 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010084int
10085main ()
10086{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010087static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010088test_array [0] = 0
10089
10090 ;
10091 return 0;
10092}
10093_ACEOF
10094rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010095if { (ac_try="$ac_compile"
10096case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010111 ac_hi=-1 ac_mid=-1
10112 while :; do
10113 cat >conftest.$ac_ext <<_ACEOF
10114/* confdefs.h. */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
10118/* end confdefs.h. */
10119$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010120 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010121int
10122main ()
10123{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010124static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010125test_array [0] = 0
10126
10127 ;
10128 return 0;
10129}
10130_ACEOF
10131rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010132if { (ac_try="$ac_compile"
10133case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136esac
10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010148 ac_lo=$ac_mid; break
10149else
10150 echo "$as_me: failed program was:" >&5
10151sed 's/^/| /' conftest.$ac_ext >&5
10152
Martin v. Löwiseba40652007-08-30 20:10:57 +000010153 ac_hi=`expr '(' $ac_mid ')' - 1`
10154 if test $ac_mid -le $ac_hi; then
10155 ac_lo= ac_hi=
10156 break
10157 fi
10158 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis18e16552006-02-15 17:27:45 +000010159fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010160
10161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010162 done
10163else
10164 echo "$as_me: failed program was:" >&5
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
Martin v. Löwiseba40652007-08-30 20:10:57 +000010167 ac_lo= ac_hi=
Martin v. Löwis18e16552006-02-15 17:27:45 +000010168fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010169
10170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010171fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010172
10173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010174# Binary search between lo and hi bounds.
10175while test "x$ac_lo" != "x$ac_hi"; do
10176 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10177 cat >conftest.$ac_ext <<_ACEOF
10178/* confdefs.h. */
10179_ACEOF
10180cat confdefs.h >>conftest.$ac_ext
10181cat >>conftest.$ac_ext <<_ACEOF
10182/* end confdefs.h. */
10183$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010184 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010185int
10186main ()
10187{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010188static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010189test_array [0] = 0
10190
10191 ;
10192 return 0;
10193}
10194_ACEOF
10195rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010196if { (ac_try="$ac_compile"
10197case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010208 (exit $ac_status); } && {
10209 test -z "$ac_c_werror_flag" ||
10210 test ! -s conftest.err
10211 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010212 ac_hi=$ac_mid
10213else
10214 echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
Martin v. Löwiseba40652007-08-30 20:10:57 +000010217 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis18e16552006-02-15 17:27:45 +000010218fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010219
10220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010221done
10222case $ac_lo in
10223?*) ac_cv_sizeof_size_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000010224'') if test "$ac_cv_type_size_t" = yes; then
10225 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010226See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010227echo "$as_me: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010228See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000010229 { (exit 77); exit 77; }; }
10230 else
10231 ac_cv_sizeof_size_t=0
10232 fi ;;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010233esac
10234else
Martin v. Löwis18e16552006-02-15 17:27:45 +000010235 cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010242 typedef size_t ac__type_sizeof_;
10243static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10244static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Martin v. Löwis18e16552006-02-15 17:27:45 +000010245#include <stdio.h>
10246#include <stdlib.h>
10247int
10248main ()
10249{
10250
10251 FILE *f = fopen ("conftest.val", "w");
10252 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000010253 return 1;
10254 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010255 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010256 long int i = longval ();
10257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10258 return 1;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010259 fprintf (f, "%ld\n", i);
10260 }
10261 else
10262 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010263 unsigned long int i = ulongval ();
10264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10265 return 1;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010266 fprintf (f, "%lu\n", i);
10267 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010268 return ferror (f) || fclose (f) != 0;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010269
10270 ;
10271 return 0;
10272}
10273_ACEOF
10274rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010275if { (ac_try="$ac_link"
10276case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279esac
10280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10281 (eval "$ac_link") 2>&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000010282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000010285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000010291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; }; then
10294 ac_cv_sizeof_size_t=`cat conftest.val`
10295else
10296 echo "$as_me: program exited with status $ac_status" >&5
10297echo "$as_me: failed program was:" >&5
10298sed 's/^/| /' conftest.$ac_ext >&5
10299
10300( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000010301if test "$ac_cv_type_size_t" = yes; then
10302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010303See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010304echo "$as_me: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010305See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000010306 { (exit 77); exit 77; }; }
10307 else
10308 ac_cv_sizeof_size_t=0
10309 fi
Martin v. Löwis18e16552006-02-15 17:27:45 +000010310fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010312fi
10313rm -f conftest.val
Martin v. Löwis18e16552006-02-15 17:27:45 +000010314fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010315{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10316echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10317
10318
10319
Martin v. Löwis18e16552006-02-15 17:27:45 +000010320cat >>confdefs.h <<_ACEOF
10321#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10322_ACEOF
10323
10324
Christian Heimes951cc0f2008-01-31 23:08:23 +000010325{ echo "$as_me:$LINENO: checking for pid_t" >&5
10326echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10327if test "${ac_cv_type_pid_t+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329else
10330 cat >conftest.$ac_ext <<_ACEOF
10331/* confdefs.h. */
10332_ACEOF
10333cat confdefs.h >>conftest.$ac_ext
10334cat >>conftest.$ac_ext <<_ACEOF
10335/* end confdefs.h. */
10336$ac_includes_default
10337typedef pid_t ac__type_new_;
10338int
10339main ()
10340{
10341if ((ac__type_new_ *) 0)
10342 return 0;
10343if (sizeof (ac__type_new_))
10344 return 0;
10345 ;
10346 return 0;
10347}
10348_ACEOF
10349rm -f conftest.$ac_objext
10350if { (ac_try="$ac_compile"
10351case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354esac
10355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_compile") 2>conftest.er1
10357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && {
10363 test -z "$ac_c_werror_flag" ||
10364 test ! -s conftest.err
10365 } && test -s conftest.$ac_objext; then
10366 ac_cv_type_pid_t=yes
10367else
10368 echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371 ac_cv_type_pid_t=no
10372fi
10373
10374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375fi
10376{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10377echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10378
10379# The cast to long int works around a bug in the HP C Compiler
10380# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10381# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10382# This bug is HP SR number 8606223364.
10383{ echo "$as_me:$LINENO: checking size of pid_t" >&5
10384echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10385if test "${ac_cv_sizeof_pid_t+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387else
10388 if test "$cross_compiling" = yes; then
10389 # Depending upon the size, compute the lo and hi bounds.
10390cat >conftest.$ac_ext <<_ACEOF
10391/* confdefs.h. */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h. */
10396$ac_includes_default
10397 typedef pid_t ac__type_sizeof_;
10398int
10399main ()
10400{
10401static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10402test_array [0] = 0
10403
10404 ;
10405 return 0;
10406}
10407_ACEOF
10408rm -f conftest.$ac_objext
10409if { (ac_try="$ac_compile"
10410case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413esac
10414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_compile") 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest.$ac_objext; then
10425 ac_lo=0 ac_mid=0
10426 while :; do
10427 cat >conftest.$ac_ext <<_ACEOF
10428/* confdefs.h. */
10429_ACEOF
10430cat confdefs.h >>conftest.$ac_ext
10431cat >>conftest.$ac_ext <<_ACEOF
10432/* end confdefs.h. */
10433$ac_includes_default
10434 typedef pid_t ac__type_sizeof_;
10435int
10436main ()
10437{
10438static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10439test_array [0] = 0
10440
10441 ;
10442 return 0;
10443}
10444_ACEOF
10445rm -f conftest.$ac_objext
10446if { (ac_try="$ac_compile"
10447case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10450esac
10451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_compile") 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && {
10459 test -z "$ac_c_werror_flag" ||
10460 test ! -s conftest.err
10461 } && test -s conftest.$ac_objext; then
10462 ac_hi=$ac_mid; break
10463else
10464 echo "$as_me: failed program was:" >&5
10465sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 ac_lo=`expr $ac_mid + 1`
10468 if test $ac_lo -le $ac_mid; then
10469 ac_lo= ac_hi=
10470 break
10471 fi
10472 ac_mid=`expr 2 '*' $ac_mid + 1`
10473fi
10474
10475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 done
10477else
10478 echo "$as_me: failed program was:" >&5
10479sed 's/^/| /' conftest.$ac_ext >&5
10480
10481 cat >conftest.$ac_ext <<_ACEOF
10482/* confdefs.h. */
10483_ACEOF
10484cat confdefs.h >>conftest.$ac_ext
10485cat >>conftest.$ac_ext <<_ACEOF
10486/* end confdefs.h. */
10487$ac_includes_default
10488 typedef pid_t ac__type_sizeof_;
10489int
10490main ()
10491{
10492static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10493test_array [0] = 0
10494
10495 ;
10496 return 0;
10497}
10498_ACEOF
10499rm -f conftest.$ac_objext
10500if { (ac_try="$ac_compile"
10501case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10504esac
10505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506 (eval "$ac_compile") 2>conftest.er1
10507 ac_status=$?
10508 grep -v '^ *+' conftest.er1 >conftest.err
10509 rm -f conftest.er1
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && {
10513 test -z "$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10515 } && test -s conftest.$ac_objext; then
10516 ac_hi=-1 ac_mid=-1
10517 while :; do
10518 cat >conftest.$ac_ext <<_ACEOF
10519/* confdefs.h. */
10520_ACEOF
10521cat confdefs.h >>conftest.$ac_ext
10522cat >>conftest.$ac_ext <<_ACEOF
10523/* end confdefs.h. */
10524$ac_includes_default
10525 typedef pid_t ac__type_sizeof_;
10526int
10527main ()
10528{
10529static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10530test_array [0] = 0
10531
10532 ;
10533 return 0;
10534}
10535_ACEOF
10536rm -f conftest.$ac_objext
10537if { (ac_try="$ac_compile"
10538case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541esac
10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_compile") 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest.$ac_objext; then
10553 ac_lo=$ac_mid; break
10554else
10555 echo "$as_me: failed program was:" >&5
10556sed 's/^/| /' conftest.$ac_ext >&5
10557
10558 ac_hi=`expr '(' $ac_mid ')' - 1`
10559 if test $ac_mid -le $ac_hi; then
10560 ac_lo= ac_hi=
10561 break
10562 fi
10563 ac_mid=`expr 2 '*' $ac_mid`
10564fi
10565
10566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567 done
10568else
10569 echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 ac_lo= ac_hi=
10573fi
10574
10575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576fi
10577
10578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579# Binary search between lo and hi bounds.
10580while test "x$ac_lo" != "x$ac_hi"; do
10581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10582 cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
10588$ac_includes_default
10589 typedef pid_t ac__type_sizeof_;
10590int
10591main ()
10592{
10593static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10594test_array [0] = 0
10595
10596 ;
10597 return 0;
10598}
10599_ACEOF
10600rm -f conftest.$ac_objext
10601if { (ac_try="$ac_compile"
10602case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605esac
10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest.$ac_objext; then
10617 ac_hi=$ac_mid
10618else
10619 echo "$as_me: failed program was:" >&5
10620sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_lo=`expr '(' $ac_mid ')' + 1`
10623fi
10624
10625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626done
10627case $ac_lo in
10628?*) ac_cv_sizeof_pid_t=$ac_lo;;
10629'') if test "$ac_cv_type_pid_t" = yes; then
10630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10631See \`config.log' for more details." >&5
10632echo "$as_me: error: cannot compute sizeof (pid_t)
10633See \`config.log' for more details." >&2;}
10634 { (exit 77); exit 77; }; }
10635 else
10636 ac_cv_sizeof_pid_t=0
10637 fi ;;
10638esac
10639else
10640 cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h. */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h. */
10646$ac_includes_default
10647 typedef pid_t ac__type_sizeof_;
10648static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10649static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10650#include <stdio.h>
10651#include <stdlib.h>
10652int
10653main ()
10654{
10655
10656 FILE *f = fopen ("conftest.val", "w");
10657 if (! f)
10658 return 1;
10659 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10660 {
10661 long int i = longval ();
10662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10663 return 1;
10664 fprintf (f, "%ld\n", i);
10665 }
10666 else
10667 {
10668 unsigned long int i = ulongval ();
10669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10670 return 1;
10671 fprintf (f, "%lu\n", i);
10672 }
10673 return ferror (f) || fclose (f) != 0;
10674
10675 ;
10676 return 0;
10677}
10678_ACEOF
10679rm -f conftest$ac_exeext
10680if { (ac_try="$ac_link"
10681case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684esac
10685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_link") 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10690 { (case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693esac
10694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_try") 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ac_cv_sizeof_pid_t=`cat conftest.val`
10700else
10701 echo "$as_me: program exited with status $ac_status" >&5
10702echo "$as_me: failed program was:" >&5
10703sed 's/^/| /' conftest.$ac_ext >&5
10704
10705( exit $ac_status )
10706if test "$ac_cv_type_pid_t" = yes; then
10707 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10708See \`config.log' for more details." >&5
10709echo "$as_me: error: cannot compute sizeof (pid_t)
10710See \`config.log' for more details." >&2;}
10711 { (exit 77); exit 77; }; }
10712 else
10713 ac_cv_sizeof_pid_t=0
10714 fi
10715fi
10716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10717fi
10718rm -f conftest.val
10719fi
10720{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10721echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10722
10723
10724
10725cat >>confdefs.h <<_ACEOF
10726#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10727_ACEOF
10728
10729
Michael W. Hudson54241132001-12-07 15:38:26 +000010730
Martin v. Löwiseba40652007-08-30 20:10:57 +000010731{ echo "$as_me:$LINENO: checking for long long support" >&5
10732echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010733have_long_long=no
Martin v. Löwis11437992002-04-12 09:54:03 +000010734cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010735/* confdefs.h. */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h. */
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010740
Martin v. Löwis11437992002-04-12 09:54:03 +000010741int
10742main ()
10743{
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010744long long x; x = (long long)0;
Martin v. Löwis11437992002-04-12 09:54:03 +000010745 ;
10746 return 0;
10747}
10748_ACEOF
10749rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010750if { (ac_try="$ac_compile"
10751case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754esac
10755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010757 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010766
10767
10768cat >>confdefs.h <<\_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010769#define HAVE_LONG_LONG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010770_ACEOF
10771
Martin v. Löwisc45929e2002-04-06 10:10:49 +000010772 have_long_long=yes
10773
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010774else
Martin v. Löwis11437992002-04-12 09:54:03 +000010775 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010776sed 's/^/| /' conftest.$ac_ext >&5
10777
Martin v. Löwiseba40652007-08-30 20:10:57 +000010778
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010779fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010780
10781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782{ echo "$as_me:$LINENO: result: $have_long_long" >&5
10783echo "${ECHO_T}$have_long_long" >&6; }
Guido van Rossum96f2eb91999-04-10 16:02:18 +000010784if test "$have_long_long" = yes ; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000010785{ echo "$as_me:$LINENO: checking for long long" >&5
10786echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000010787if test "${ac_cv_type_long_long+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789else
10790 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010791/* confdefs.h. */
10792_ACEOF
10793cat confdefs.h >>conftest.$ac_ext
10794cat >>conftest.$ac_ext <<_ACEOF
10795/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010796$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010797typedef long long ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010798int
10799main ()
10800{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010801if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000010802 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000010803if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +000010804 return 0;
10805 ;
10806 return 0;
10807}
10808_ACEOF
10809rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010810if { (ac_try="$ac_compile"
10811case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814esac
10815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010817 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010826 ac_cv_type_long_long=yes
10827else
10828 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010829sed 's/^/| /' conftest.$ac_ext >&5
10830
Martin v. Löwiseba40652007-08-30 20:10:57 +000010831 ac_cv_type_long_long=no
Martin v. Löwis11437992002-04-12 09:54:03 +000010832fi
Brett Cannon19fab762007-06-02 03:02:29 +000010833
Martin v. Löwiseba40652007-08-30 20:10:57 +000010834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835fi
10836{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10837echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10838
10839# The cast to long int works around a bug in the HP C Compiler
10840# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10841# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10842# This bug is HP SR number 8606223364.
10843{ echo "$as_me:$LINENO: checking size of long long" >&5
10844echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000010845if test "${ac_cv_sizeof_long_long+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847else
Martin v. Löwis11437992002-04-12 09:54:03 +000010848 if test "$cross_compiling" = yes; then
10849 # Depending upon the size, compute the lo and hi bounds.
10850cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010856$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010857 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010858int
10859main ()
10860{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010861static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010862test_array [0] = 0
10863
10864 ;
10865 return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010869if { (ac_try="$ac_compile"
10870case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010876 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010885 ac_lo=0 ac_mid=0
10886 while :; do
10887 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010888/* confdefs.h. */
10889_ACEOF
10890cat confdefs.h >>conftest.$ac_ext
10891cat >>conftest.$ac_ext <<_ACEOF
10892/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010893$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010894 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010895int
10896main ()
10897{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010898static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010899test_array [0] = 0
10900
10901 ;
10902 return 0;
10903}
10904_ACEOF
10905rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010906if { (ac_try="$ac_compile"
10907case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910esac
10911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010913 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010918 (exit $ac_status); } && {
10919 test -z "$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010922 ac_hi=$ac_mid; break
10923else
10924 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010925sed 's/^/| /' conftest.$ac_ext >&5
10926
Martin v. Löwiseba40652007-08-30 20:10:57 +000010927 ac_lo=`expr $ac_mid + 1`
10928 if test $ac_lo -le $ac_mid; then
10929 ac_lo= ac_hi=
10930 break
10931 fi
10932 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000010933fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010934
10935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010936 done
10937else
10938 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010939sed 's/^/| /' conftest.$ac_ext >&5
10940
Martin v. Löwiseba40652007-08-30 20:10:57 +000010941 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010942/* confdefs.h. */
10943_ACEOF
10944cat confdefs.h >>conftest.$ac_ext
10945cat >>conftest.$ac_ext <<_ACEOF
10946/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010947$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010948 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010949int
10950main ()
10951{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010952static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010953test_array [0] = 0
10954
10955 ;
10956 return 0;
10957}
10958_ACEOF
10959rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010960if { (ac_try="$ac_compile"
10961case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010967 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010976 ac_hi=-1 ac_mid=-1
10977 while :; do
10978 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010979/* confdefs.h. */
10980_ACEOF
10981cat confdefs.h >>conftest.$ac_ext
10982cat >>conftest.$ac_ext <<_ACEOF
10983/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010984$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010985 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010986int
10987main ()
10988{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010989static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010990test_array [0] = 0
10991
10992 ;
10993 return 0;
10994}
10995_ACEOF
10996rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010997if { (ac_try="$ac_compile"
10998case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001esac
11002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011004 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011013 ac_lo=$ac_mid; break
11014else
11015 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011016sed 's/^/| /' conftest.$ac_ext >&5
11017
Martin v. Löwiseba40652007-08-30 20:10:57 +000011018 ac_hi=`expr '(' $ac_mid ')' - 1`
11019 if test $ac_mid -le $ac_hi; then
11020 ac_lo= ac_hi=
11021 break
11022 fi
11023 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000011024fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011025
11026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011027 done
11028else
11029 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011030sed 's/^/| /' conftest.$ac_ext >&5
11031
Martin v. Löwiseba40652007-08-30 20:10:57 +000011032 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000011033fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011034
11035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011036fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011037
11038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011039# Binary search between lo and hi bounds.
11040while test "x$ac_lo" != "x$ac_hi"; do
11041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11042 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011048$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011049 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000011050int
11051main ()
11052{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011053static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011054test_array [0] = 0
11055
11056 ;
11057 return 0;
11058}
11059_ACEOF
11060rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011061if { (ac_try="$ac_compile"
11062case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011068 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011077 ac_hi=$ac_mid
11078else
11079 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011080sed 's/^/| /' conftest.$ac_ext >&5
11081
Martin v. Löwiseba40652007-08-30 20:10:57 +000011082 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000011083fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011084
11085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011086done
11087case $ac_lo in
11088?*) ac_cv_sizeof_long_long=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000011089'') if test "$ac_cv_type_long_long" = yes; then
11090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011091See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011092echo "$as_me: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011093See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000011094 { (exit 77); exit 77; }; }
11095 else
11096 ac_cv_sizeof_long_long=0
11097 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000011098esac
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011099else
Martin v. Löwis11437992002-04-12 09:54:03 +000011100 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011101/* confdefs.h. */
11102_ACEOF
11103cat confdefs.h >>conftest.$ac_ext
11104cat >>conftest.$ac_ext <<_ACEOF
11105/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011106$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011107 typedef long long ac__type_sizeof_;
11108static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11109static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000011110#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000011111#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000011112int
11113main ()
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011114{
Martin v. Löwis11437992002-04-12 09:54:03 +000011115
11116 FILE *f = fopen ("conftest.val", "w");
11117 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000011118 return 1;
11119 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000011120 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000011121 long int i = longval ();
11122 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11123 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000011124 fprintf (f, "%ld\n", i);
11125 }
11126 else
11127 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000011128 unsigned long int i = ulongval ();
11129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11130 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000011131 fprintf (f, "%lu\n", i);
11132 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000011133 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000011134
11135 ;
11136 return 0;
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011137}
Martin v. Löwis11437992002-04-12 09:54:03 +000011138_ACEOF
11139rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011140if { (ac_try="$ac_link"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000011150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_sizeof_long_long=`cat conftest.val`
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011160else
Martin v. Löwis11437992002-04-12 09:54:03 +000011161 echo "$as_me: program exited with status $ac_status" >&5
11162echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011163sed 's/^/| /' conftest.$ac_ext >&5
11164
Martin v. Löwis11437992002-04-12 09:54:03 +000011165( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000011166if test "$ac_cv_type_long_long" = yes; then
11167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011168See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011169echo "$as_me: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011170See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000011171 { (exit 77); exit 77; }; }
11172 else
11173 ac_cv_sizeof_long_long=0
11174 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011175fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011177fi
11178rm -f conftest.val
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011179fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011180{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11181echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11182
11183
11184
Martin v. Löwis11437992002-04-12 09:54:03 +000011185cat >>confdefs.h <<_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011186#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Martin v. Löwis11437992002-04-12 09:54:03 +000011187_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011188
Michael W. Hudson54241132001-12-07 15:38:26 +000011189
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011190fi
11191
Mark Dickinsondc1688a2008-06-27 22:20:14 +000011192{ echo "$as_me:$LINENO: checking for long double support" >&5
11193echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11194have_long_double=no
11195cat >conftest.$ac_ext <<_ACEOF
11196/* confdefs.h. */
11197_ACEOF
11198cat confdefs.h >>conftest.$ac_ext
11199cat >>conftest.$ac_ext <<_ACEOF
11200/* end confdefs.h. */
11201
11202int
11203main ()
11204{
11205long double x; x = (long double)0.;
11206 ;
11207 return 0;
11208}
11209_ACEOF
11210rm -f conftest.$ac_objext
11211if { (ac_try="$ac_compile"
11212case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11215esac
11216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_compile") 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && {
11224 test -z "$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11226 } && test -s conftest.$ac_objext; then
11227
11228
11229cat >>confdefs.h <<\_ACEOF
11230#define HAVE_LONG_DOUBLE 1
11231_ACEOF
11232
11233 have_long_double=yes
11234
11235else
11236 echo "$as_me: failed program was:" >&5
11237sed 's/^/| /' conftest.$ac_ext >&5
11238
11239
11240fi
11241
11242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243{ echo "$as_me:$LINENO: result: $have_long_double" >&5
11244echo "${ECHO_T}$have_long_double" >&6; }
11245if test "$have_long_double" = yes ; then
11246{ echo "$as_me:$LINENO: checking for long double" >&5
11247echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11248if test "${ac_cv_type_long_double+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250else
11251 cat >conftest.$ac_ext <<_ACEOF
11252/* confdefs.h. */
11253_ACEOF
11254cat confdefs.h >>conftest.$ac_ext
11255cat >>conftest.$ac_ext <<_ACEOF
11256/* end confdefs.h. */
11257$ac_includes_default
11258typedef long double ac__type_new_;
11259int
11260main ()
11261{
11262if ((ac__type_new_ *) 0)
11263 return 0;
11264if (sizeof (ac__type_new_))
11265 return 0;
11266 ;
11267 return 0;
11268}
11269_ACEOF
11270rm -f conftest.$ac_objext
11271if { (ac_try="$ac_compile"
11272case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11275esac
11276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_compile") 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } && {
11284 test -z "$ac_c_werror_flag" ||
11285 test ! -s conftest.err
11286 } && test -s conftest.$ac_objext; then
11287 ac_cv_type_long_double=yes
11288else
11289 echo "$as_me: failed program was:" >&5
11290sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 ac_cv_type_long_double=no
11293fi
11294
11295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296fi
11297{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11298echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11299
11300# The cast to long int works around a bug in the HP C Compiler
11301# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11302# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11303# This bug is HP SR number 8606223364.
11304{ echo "$as_me:$LINENO: checking size of long double" >&5
11305echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11306if test "${ac_cv_sizeof_long_double+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308else
11309 if test "$cross_compiling" = yes; then
11310 # Depending upon the size, compute the lo and hi bounds.
11311cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317$ac_includes_default
11318 typedef long double ac__type_sizeof_;
11319int
11320main ()
11321{
11322static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11323test_array [0] = 0
11324
11325 ;
11326 return 0;
11327}
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (ac_try="$ac_compile"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.$ac_objext; then
11346 ac_lo=0 ac_mid=0
11347 while :; do
11348 cat >conftest.$ac_ext <<_ACEOF
11349/* confdefs.h. */
11350_ACEOF
11351cat confdefs.h >>conftest.$ac_ext
11352cat >>conftest.$ac_ext <<_ACEOF
11353/* end confdefs.h. */
11354$ac_includes_default
11355 typedef long double ac__type_sizeof_;
11356int
11357main ()
11358{
11359static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11360test_array [0] = 0
11361
11362 ;
11363 return 0;
11364}
11365_ACEOF
11366rm -f conftest.$ac_objext
11367if { (ac_try="$ac_compile"
11368case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371esac
11372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest.$ac_objext; then
11383 ac_hi=$ac_mid; break
11384else
11385 echo "$as_me: failed program was:" >&5
11386sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 ac_lo=`expr $ac_mid + 1`
11389 if test $ac_lo -le $ac_mid; then
11390 ac_lo= ac_hi=
11391 break
11392 fi
11393 ac_mid=`expr 2 '*' $ac_mid + 1`
11394fi
11395
11396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 done
11398else
11399 echo "$as_me: failed program was:" >&5
11400sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408$ac_includes_default
11409 typedef long double ac__type_sizeof_;
11410int
11411main ()
11412{
11413static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11414test_array [0] = 0
11415
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420rm -f conftest.$ac_objext
11421if { (ac_try="$ac_compile"
11422case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425esac
11426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest.$ac_objext; then
11437 ac_hi=-1 ac_mid=-1
11438 while :; do
11439 cat >conftest.$ac_ext <<_ACEOF
11440/* confdefs.h. */
11441_ACEOF
11442cat confdefs.h >>conftest.$ac_ext
11443cat >>conftest.$ac_ext <<_ACEOF
11444/* end confdefs.h. */
11445$ac_includes_default
11446 typedef long double ac__type_sizeof_;
11447int
11448main ()
11449{
11450static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11451test_array [0] = 0
11452
11453 ;
11454 return 0;
11455}
11456_ACEOF
11457rm -f conftest.$ac_objext
11458if { (ac_try="$ac_compile"
11459case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462esac
11463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_compile") 2>conftest.er1
11465 ac_status=$?
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.$ac_objext; then
11474 ac_lo=$ac_mid; break
11475else
11476 echo "$as_me: failed program was:" >&5
11477sed 's/^/| /' conftest.$ac_ext >&5
11478
11479 ac_hi=`expr '(' $ac_mid ')' - 1`
11480 if test $ac_mid -le $ac_hi; then
11481 ac_lo= ac_hi=
11482 break
11483 fi
11484 ac_mid=`expr 2 '*' $ac_mid`
11485fi
11486
11487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488 done
11489else
11490 echo "$as_me: failed program was:" >&5
11491sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 ac_lo= ac_hi=
11494fi
11495
11496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497fi
11498
11499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500# Binary search between lo and hi bounds.
11501while test "x$ac_lo" != "x$ac_hi"; do
11502 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11503 cat >conftest.$ac_ext <<_ACEOF
11504/* confdefs.h. */
11505_ACEOF
11506cat confdefs.h >>conftest.$ac_ext
11507cat >>conftest.$ac_ext <<_ACEOF
11508/* end confdefs.h. */
11509$ac_includes_default
11510 typedef long double ac__type_sizeof_;
11511int
11512main ()
11513{
11514static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11515test_array [0] = 0
11516
11517 ;
11518 return 0;
11519}
11520_ACEOF
11521rm -f conftest.$ac_objext
11522if { (ac_try="$ac_compile"
11523case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526esac
11527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 ac_hi=$ac_mid
11539else
11540 echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
11543 ac_lo=`expr '(' $ac_mid ')' + 1`
11544fi
11545
11546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547done
11548case $ac_lo in
11549?*) ac_cv_sizeof_long_double=$ac_lo;;
11550'') if test "$ac_cv_type_long_double" = yes; then
11551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11552See \`config.log' for more details." >&5
11553echo "$as_me: error: cannot compute sizeof (long double)
11554See \`config.log' for more details." >&2;}
11555 { (exit 77); exit 77; }; }
11556 else
11557 ac_cv_sizeof_long_double=0
11558 fi ;;
11559esac
11560else
11561 cat >conftest.$ac_ext <<_ACEOF
11562/* confdefs.h. */
11563_ACEOF
11564cat confdefs.h >>conftest.$ac_ext
11565cat >>conftest.$ac_ext <<_ACEOF
11566/* end confdefs.h. */
11567$ac_includes_default
11568 typedef long double ac__type_sizeof_;
11569static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11570static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11571#include <stdio.h>
11572#include <stdlib.h>
11573int
11574main ()
11575{
11576
11577 FILE *f = fopen ("conftest.val", "w");
11578 if (! f)
11579 return 1;
11580 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11581 {
11582 long int i = longval ();
11583 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11584 return 1;
11585 fprintf (f, "%ld\n", i);
11586 }
11587 else
11588 {
11589 unsigned long int i = ulongval ();
11590 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11591 return 1;
11592 fprintf (f, "%lu\n", i);
11593 }
11594 return ferror (f) || fclose (f) != 0;
11595
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600rm -f conftest$ac_exeext
11601if { (ac_try="$ac_link"
11602case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605esac
11606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_link") 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11611 { (case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614esac
11615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_try") 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 ac_cv_sizeof_long_double=`cat conftest.val`
11621else
11622 echo "$as_me: program exited with status $ac_status" >&5
11623echo "$as_me: failed program was:" >&5
11624sed 's/^/| /' conftest.$ac_ext >&5
11625
11626( exit $ac_status )
11627if test "$ac_cv_type_long_double" = yes; then
11628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11629See \`config.log' for more details." >&5
11630echo "$as_me: error: cannot compute sizeof (long double)
11631See \`config.log' for more details." >&2;}
11632 { (exit 77); exit 77; }; }
11633 else
11634 ac_cv_sizeof_long_double=0
11635 fi
11636fi
11637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11638fi
11639rm -f conftest.val
11640fi
11641{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11642echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11643
11644
11645
11646cat >>confdefs.h <<_ACEOF
11647#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11648_ACEOF
11649
11650
11651fi
11652
Martin v. Löwiseba40652007-08-30 20:10:57 +000011653{ echo "$as_me:$LINENO: checking for _Bool support" >&5
11654echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011655have_c99_bool=no
11656cat >conftest.$ac_ext <<_ACEOF
11657/* confdefs.h. */
11658_ACEOF
11659cat confdefs.h >>conftest.$ac_ext
11660cat >>conftest.$ac_ext <<_ACEOF
11661/* end confdefs.h. */
11662
11663int
11664main ()
11665{
11666_Bool x; x = (_Bool)0;
11667 ;
11668 return 0;
11669}
11670_ACEOF
11671rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011672if { (ac_try="$ac_compile"
11673case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676esac
11677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011688
11689
11690cat >>confdefs.h <<\_ACEOF
11691#define HAVE_C99_BOOL 1
11692_ACEOF
11693
11694 have_c99_bool=yes
11695
11696else
11697 echo "$as_me: failed program was:" >&5
11698sed 's/^/| /' conftest.$ac_ext >&5
11699
Martin v. Löwiseba40652007-08-30 20:10:57 +000011700
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011701fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011702
11703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11704{ echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11705echo "${ECHO_T}$have_c99_bool" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011706if test "$have_c99_bool" = yes ; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000011707{ echo "$as_me:$LINENO: checking for _Bool" >&5
11708echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011709if test "${ac_cv_type__Bool+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711else
11712 cat >conftest.$ac_ext <<_ACEOF
11713/* confdefs.h. */
11714_ACEOF
11715cat confdefs.h >>conftest.$ac_ext
11716cat >>conftest.$ac_ext <<_ACEOF
11717/* end confdefs.h. */
11718$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011719typedef _Bool ac__type_new_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011720int
11721main ()
11722{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011723if ((ac__type_new_ *) 0)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011724 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000011725if (sizeof (ac__type_new_))
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011726 return 0;
11727 ;
11728 return 0;
11729}
11730_ACEOF
11731rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011732if { (ac_try="$ac_compile"
11733case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736esac
11737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011748 ac_cv_type__Bool=yes
11749else
11750 echo "$as_me: failed program was:" >&5
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
Martin v. Löwiseba40652007-08-30 20:10:57 +000011753 ac_cv_type__Bool=no
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011754fi
Brett Cannon19fab762007-06-02 03:02:29 +000011755
Martin v. Löwiseba40652007-08-30 20:10:57 +000011756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757fi
11758{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11759echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11760
11761# The cast to long int works around a bug in the HP C Compiler
11762# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11763# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11764# This bug is HP SR number 8606223364.
11765{ echo "$as_me:$LINENO: checking size of _Bool" >&5
11766echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011767if test "${ac_cv_sizeof__Bool+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769else
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011770 if test "$cross_compiling" = yes; then
11771 # Depending upon the size, compute the lo and hi bounds.
11772cat >conftest.$ac_ext <<_ACEOF
11773/* confdefs.h. */
11774_ACEOF
11775cat confdefs.h >>conftest.$ac_ext
11776cat >>conftest.$ac_ext <<_ACEOF
11777/* end confdefs.h. */
11778$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011779 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011780int
11781main ()
11782{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011783static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011784test_array [0] = 0
11785
11786 ;
11787 return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011791if { (ac_try="$ac_compile"
11792case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011807 ac_lo=0 ac_mid=0
11808 while :; do
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011816 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011817int
11818main ()
11819{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011820static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011821test_array [0] = 0
11822
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011828if { (ac_try="$ac_compile"
11829case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832esac
11833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011844 ac_hi=$ac_mid; break
11845else
11846 echo "$as_me: failed program was:" >&5
11847sed 's/^/| /' conftest.$ac_ext >&5
11848
Martin v. Löwiseba40652007-08-30 20:10:57 +000011849 ac_lo=`expr $ac_mid + 1`
11850 if test $ac_lo -le $ac_mid; then
11851 ac_lo= ac_hi=
11852 break
11853 fi
11854 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011855fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011856
11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011858 done
11859else
11860 echo "$as_me: failed program was:" >&5
11861sed 's/^/| /' conftest.$ac_ext >&5
11862
Martin v. Löwiseba40652007-08-30 20:10:57 +000011863 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011864/* confdefs.h. */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h. */
11869$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011870 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011871int
11872main ()
11873{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011874static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011875test_array [0] = 0
11876
11877 ;
11878 return 0;
11879}
11880_ACEOF
11881rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011882if { (ac_try="$ac_compile"
11883case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886esac
11887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011898 ac_hi=-1 ac_mid=-1
11899 while :; do
11900 cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011907 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011908int
11909main ()
11910{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011911static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011912test_array [0] = 0
11913
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011919if { (ac_try="$ac_compile"
11920case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923esac
11924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011935 ac_lo=$ac_mid; break
11936else
11937 echo "$as_me: failed program was:" >&5
11938sed 's/^/| /' conftest.$ac_ext >&5
11939
Martin v. Löwiseba40652007-08-30 20:10:57 +000011940 ac_hi=`expr '(' $ac_mid ')' - 1`
11941 if test $ac_mid -le $ac_hi; then
11942 ac_lo= ac_hi=
11943 break
11944 fi
11945 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011946fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011947
11948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011949 done
11950else
11951 echo "$as_me: failed program was:" >&5
11952sed 's/^/| /' conftest.$ac_ext >&5
11953
Martin v. Löwiseba40652007-08-30 20:10:57 +000011954 ac_lo= ac_hi=
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011955fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011956
11957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011958fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011959
11960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011961# Binary search between lo and hi bounds.
11962while test "x$ac_lo" != "x$ac_hi"; do
11963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11964 cat >conftest.$ac_ext <<_ACEOF
11965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
11970$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011971 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011972int
11973main ()
11974{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011975static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011976test_array [0] = 0
11977
11978 ;
11979 return 0;
11980}
11981_ACEOF
11982rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011983if { (ac_try="$ac_compile"
11984case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000011999 ac_hi=$ac_mid
12000else
12001 echo "$as_me: failed program was:" >&5
12002sed 's/^/| /' conftest.$ac_ext >&5
12003
Martin v. Löwiseba40652007-08-30 20:10:57 +000012004 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012005fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012006
12007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012008done
12009case $ac_lo in
12010?*) ac_cv_sizeof__Bool=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012011'') if test "$ac_cv_type__Bool" = yes; then
12012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012013See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012014echo "$as_me: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012015See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000012016 { (exit 77); exit 77; }; }
12017 else
12018 ac_cv_sizeof__Bool=0
12019 fi ;;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012020esac
12021else
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012022 cat >conftest.$ac_ext <<_ACEOF
12023/* confdefs.h. */
12024_ACEOF
12025cat confdefs.h >>conftest.$ac_ext
12026cat >>conftest.$ac_ext <<_ACEOF
12027/* end confdefs.h. */
12028$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012029 typedef _Bool ac__type_sizeof_;
12030static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12031static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012032#include <stdio.h>
12033#include <stdlib.h>
12034int
12035main ()
12036{
12037
12038 FILE *f = fopen ("conftest.val", "w");
12039 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000012040 return 1;
12041 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012042 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012043 long int i = longval ();
12044 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12045 return 1;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012046 fprintf (f, "%ld\n", i);
12047 }
12048 else
12049 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012050 unsigned long int i = ulongval ();
12051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12052 return 1;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012053 fprintf (f, "%lu\n", i);
12054 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000012055 return ferror (f) || fclose (f) != 0;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012056
12057 ;
12058 return 0;
12059}
12060_ACEOF
12061rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012062if { (ac_try="$ac_link"
12063case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
12067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_link") 2>&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000012072 { (case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075esac
12076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_try") 2>&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_sizeof__Bool=`cat conftest.val`
12082else
12083 echo "$as_me: program exited with status $ac_status" >&5
12084echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000012088if test "$ac_cv_type__Bool" = yes; then
12089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012090See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012091echo "$as_me: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012092See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000012093 { (exit 77); exit 77; }; }
12094 else
12095 ac_cv_sizeof__Bool=0
12096 fi
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012097fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012099fi
12100rm -f conftest.val
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012101fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012102{ echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12103echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12104
12105
12106
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012107cat >>confdefs.h <<_ACEOF
12108#define SIZEOF__BOOL $ac_cv_sizeof__Bool
12109_ACEOF
12110
12111
12112fi
12113
Martin v. Löwiseba40652007-08-30 20:10:57 +000012114{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
12115echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
Martin v. Löwisebe26702006-10-02 14:55:51 +000012116if test "${ac_cv_type_uintptr_t+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h. */
Martin v. Löwis40e9aed2006-10-02 15:20:37 +000012125#ifdef HAVE_STDINT_H
12126 #include <stdint.h>
12127 #endif
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012128
Martin v. Löwiseba40652007-08-30 20:10:57 +000012129typedef uintptr_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012130int
12131main ()
12132{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012133if ((ac__type_new_ *) 0)
Martin v. Löwisebe26702006-10-02 14:55:51 +000012134 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012135if (sizeof (ac__type_new_))
Martin v. Löwisebe26702006-10-02 14:55:51 +000012136 return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012137 ;
12138 return 0;
12139}
12140_ACEOF
12141rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012142if { (ac_try="$ac_compile"
12143case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12146esac
12147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012149 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012154 (exit $ac_status); } && {
12155 test -z "$ac_c_werror_flag" ||
12156 test ! -s conftest.err
12157 } && test -s conftest.$ac_objext; then
Martin v. Löwisebe26702006-10-02 14:55:51 +000012158 ac_cv_type_uintptr_t=yes
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012159else
Martin v. Löwis11437992002-04-12 09:54:03 +000012160 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012161sed 's/^/| /' conftest.$ac_ext >&5
12162
Martin v. Löwiseba40652007-08-30 20:10:57 +000012163 ac_cv_type_uintptr_t=no
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012164fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012165
12166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebe26702006-10-02 14:55:51 +000012167fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012168{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12169echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
Martin v. Löwisebe26702006-10-02 14:55:51 +000012170if test $ac_cv_type_uintptr_t = yes; then
12171
12172cat >>confdefs.h <<_ACEOF
12173#define HAVE_UINTPTR_T 1
12174_ACEOF
12175
Martin v. Löwiseba40652007-08-30 20:10:57 +000012176{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
12177echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012178if test "${ac_cv_type_uintptr_t+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012182/* confdefs.h. */
12183_ACEOF
12184cat confdefs.h >>conftest.$ac_ext
12185cat >>conftest.$ac_ext <<_ACEOF
12186/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012187$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012188typedef uintptr_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012189int
12190main ()
12191{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012192if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000012193 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012194if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +000012195 return 0;
12196 ;
12197 return 0;
12198}
12199_ACEOF
12200rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012201if { (ac_try="$ac_compile"
12202case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205esac
12206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012208 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012217 ac_cv_type_uintptr_t=yes
12218else
12219 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012220sed 's/^/| /' conftest.$ac_ext >&5
12221
Martin v. Löwiseba40652007-08-30 20:10:57 +000012222 ac_cv_type_uintptr_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +000012223fi
Brett Cannon19fab762007-06-02 03:02:29 +000012224
Martin v. Löwiseba40652007-08-30 20:10:57 +000012225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226fi
12227{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12228echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12229
12230# The cast to long int works around a bug in the HP C Compiler
12231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12233# This bug is HP SR number 8606223364.
12234{ echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12235echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012236if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238else
Martin v. Löwis11437992002-04-12 09:54:03 +000012239 if test "$cross_compiling" = yes; then
12240 # Depending upon the size, compute the lo and hi bounds.
12241cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012247$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012248 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012249int
12250main ()
12251{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012252static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012253test_array [0] = 0
12254
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012260if { (ac_try="$ac_compile"
12261case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264esac
12265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012267 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012272 (exit $ac_status); } && {
12273 test -z "$ac_c_werror_flag" ||
12274 test ! -s conftest.err
12275 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012276 ac_lo=0 ac_mid=0
12277 while :; do
12278 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012284$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012285 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012286int
12287main ()
12288{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012289static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012290test_array [0] = 0
12291
12292 ;
12293 return 0;
12294}
12295_ACEOF
12296rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012297if { (ac_try="$ac_compile"
12298case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301esac
12302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012304 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012313 ac_hi=$ac_mid; break
12314else
12315 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012316sed 's/^/| /' conftest.$ac_ext >&5
12317
Martin v. Löwiseba40652007-08-30 20:10:57 +000012318 ac_lo=`expr $ac_mid + 1`
12319 if test $ac_lo -le $ac_mid; then
12320 ac_lo= ac_hi=
12321 break
12322 fi
12323 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000012324fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012325
12326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012327 done
12328else
12329 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012330sed 's/^/| /' conftest.$ac_ext >&5
12331
Martin v. Löwiseba40652007-08-30 20:10:57 +000012332 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012333/* confdefs.h. */
12334_ACEOF
12335cat confdefs.h >>conftest.$ac_ext
12336cat >>conftest.$ac_ext <<_ACEOF
12337/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012338$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012339 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012340int
12341main ()
12342{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012343static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012344test_array [0] = 0
12345
12346 ;
12347 return 0;
12348}
12349_ACEOF
12350rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012351if { (ac_try="$ac_compile"
12352case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12355esac
12356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012358 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012367 ac_hi=-1 ac_mid=-1
12368 while :; do
12369 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012375$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012376 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012377int
12378main ()
12379{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012380static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012381test_array [0] = 0
12382
12383 ;
12384 return 0;
12385}
12386_ACEOF
12387rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012388if { (ac_try="$ac_compile"
12389case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392esac
12393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012395 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012404 ac_lo=$ac_mid; break
12405else
12406 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012407sed 's/^/| /' conftest.$ac_ext >&5
12408
Martin v. Löwiseba40652007-08-30 20:10:57 +000012409 ac_hi=`expr '(' $ac_mid ')' - 1`
12410 if test $ac_mid -le $ac_hi; then
12411 ac_lo= ac_hi=
12412 break
12413 fi
12414 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000012415fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012416
12417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012418 done
12419else
12420 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012421sed 's/^/| /' conftest.$ac_ext >&5
12422
Martin v. Löwiseba40652007-08-30 20:10:57 +000012423 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000012424fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012425
12426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012427fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012428
12429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012430# Binary search between lo and hi bounds.
12431while test "x$ac_lo" != "x$ac_hi"; do
12432 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12433 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012434/* confdefs.h. */
12435_ACEOF
12436cat confdefs.h >>conftest.$ac_ext
12437cat >>conftest.$ac_ext <<_ACEOF
12438/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012439$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012440 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012441int
12442main ()
12443{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012444static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012445test_array [0] = 0
12446
12447 ;
12448 return 0;
12449}
12450_ACEOF
12451rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012452if { (ac_try="$ac_compile"
12453case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456esac
12457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012459 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012464 (exit $ac_status); } && {
12465 test -z "$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012468 ac_hi=$ac_mid
12469else
12470 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012471sed 's/^/| /' conftest.$ac_ext >&5
12472
Martin v. Löwiseba40652007-08-30 20:10:57 +000012473 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000012474fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012475
12476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012477done
12478case $ac_lo in
12479?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012480'') if test "$ac_cv_type_uintptr_t" = yes; then
12481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000012482See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012483echo "$as_me: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000012484See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000012485 { (exit 77); exit 77; }; }
12486 else
12487 ac_cv_sizeof_uintptr_t=0
12488 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000012489esac
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012490else
Martin v. Löwis11437992002-04-12 09:54:03 +000012491 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012492/* confdefs.h. */
12493_ACEOF
12494cat confdefs.h >>conftest.$ac_ext
12495cat >>conftest.$ac_ext <<_ACEOF
12496/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012497$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012498 typedef uintptr_t ac__type_sizeof_;
12499static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12500static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000012501#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012502#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012503int
12504main ()
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012505{
Martin v. Löwis11437992002-04-12 09:54:03 +000012506
12507 FILE *f = fopen ("conftest.val", "w");
12508 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000012509 return 1;
12510 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000012511 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012512 long int i = longval ();
12513 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12514 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000012515 fprintf (f, "%ld\n", i);
12516 }
12517 else
12518 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012519 unsigned long int i = ulongval ();
12520 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12521 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000012522 fprintf (f, "%lu\n", i);
12523 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000012524 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012525
12526 ;
12527 return 0;
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012528}
Martin v. Löwis11437992002-04-12 09:54:03 +000012529_ACEOF
12530rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012531if { (ac_try="$ac_link"
12532case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535esac
12536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000012541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_sizeof_uintptr_t=`cat conftest.val`
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012551else
Martin v. Löwis11437992002-04-12 09:54:03 +000012552 echo "$as_me: program exited with status $ac_status" >&5
12553echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012554sed 's/^/| /' conftest.$ac_ext >&5
12555
Martin v. Löwis11437992002-04-12 09:54:03 +000012556( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000012557if test "$ac_cv_type_uintptr_t" = yes; then
12558 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000012559See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012560echo "$as_me: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000012561See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000012562 { (exit 77); exit 77; }; }
12563 else
12564 ac_cv_sizeof_uintptr_t=0
12565 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012566fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012568fi
12569rm -f conftest.val
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012570fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012571{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12572echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12573
12574
12575
Martin v. Löwis11437992002-04-12 09:54:03 +000012576cat >>confdefs.h <<_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012577#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
Martin v. Löwis11437992002-04-12 09:54:03 +000012578_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012579
Michael W. Hudson54241132001-12-07 15:38:26 +000012580
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012581fi
12582
Martin v. Löwisebe26702006-10-02 14:55:51 +000012583
12584
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012585# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
Martin v. Löwiseba40652007-08-30 20:10:57 +000012586{ echo "$as_me:$LINENO: checking size of off_t" >&5
12587echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012588if test "${ac_cv_sizeof_off_t+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012590else
12591 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000012592 ac_cv_sizeof_off_t=4
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012593else
Martin v. Löwis11437992002-04-12 09:54:03 +000012594 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012595/* confdefs.h. */
12596_ACEOF
12597cat confdefs.h >>conftest.$ac_ext
12598cat >>conftest.$ac_ext <<_ACEOF
12599/* end confdefs.h. */
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012600#include <stdio.h>
12601#include <sys/types.h>
12602main()
12603{
12604 FILE *f=fopen("conftestval", "w");
12605 if (!f) exit(1);
12606 fprintf(f, "%d\n", sizeof(off_t));
12607 exit(0);
12608}
Martin v. Löwis11437992002-04-12 09:54:03 +000012609_ACEOF
12610rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012611if { (ac_try="$ac_link"
12612case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615esac
12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000012621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624esac
12625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012630 ac_cv_sizeof_off_t=`cat conftestval`
12631else
Martin v. Löwis11437992002-04-12 09:54:03 +000012632 echo "$as_me: program exited with status $ac_status" >&5
12633echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012634sed 's/^/| /' conftest.$ac_ext >&5
12635
Martin v. Löwis11437992002-04-12 09:54:03 +000012636( exit $ac_status )
12637ac_cv_sizeof_off_t=0
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012638fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012640fi
12641
Martin v. Löwiseba40652007-08-30 20:10:57 +000012642
12643
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012644fi
12645
Martin v. Löwiseba40652007-08-30 20:10:57 +000012646{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12647echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012648
12649cat >>confdefs.h <<_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012650#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
Martin v. Löwis11437992002-04-12 09:54:03 +000012651_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012652
Michael W. Hudson54241132001-12-07 15:38:26 +000012653
Martin v. Löwiseba40652007-08-30 20:10:57 +000012654{ echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12655echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
Guido van Rossum96f2eb91999-04-10 16:02:18 +000012656if test "$have_long_long" = yes -a \
12657 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12658 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012659
Martin v. Löwis11437992002-04-12 09:54:03 +000012660cat >>confdefs.h <<\_ACEOF
12661#define HAVE_LARGEFILE_SUPPORT 1
12662_ACEOF
12663
Martin v. Löwiseba40652007-08-30 20:10:57 +000012664 { echo "$as_me:$LINENO: result: yes" >&5
12665echo "${ECHO_T}yes" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012666else
Martin v. Löwiseba40652007-08-30 20:10:57 +000012667 { echo "$as_me:$LINENO: result: no" >&5
12668echo "${ECHO_T}no" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012669fi
12670
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012671# AC_CHECK_SIZEOF() doesn't include <time.h>.
Martin v. Löwiseba40652007-08-30 20:10:57 +000012672{ echo "$as_me:$LINENO: checking size of time_t" >&5
12673echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012674if test "${ac_cv_sizeof_time_t+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012676else
12677 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000012678 ac_cv_sizeof_time_t=4
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012679else
Martin v. Löwis11437992002-04-12 09:54:03 +000012680 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012681/* confdefs.h. */
12682_ACEOF
12683cat confdefs.h >>conftest.$ac_ext
12684cat >>conftest.$ac_ext <<_ACEOF
12685/* end confdefs.h. */
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012686#include <stdio.h>
12687#include <time.h>
12688main()
12689{
12690 FILE *f=fopen("conftestval", "w");
12691 if (!f) exit(1);
12692 fprintf(f, "%d\n", sizeof(time_t));
12693 exit(0);
12694}
Martin v. Löwis11437992002-04-12 09:54:03 +000012695_ACEOF
12696rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012697if { (ac_try="$ac_link"
12698case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701esac
12702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000012707 { (case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710esac
12711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012716 ac_cv_sizeof_time_t=`cat conftestval`
12717else
Martin v. Löwis11437992002-04-12 09:54:03 +000012718 echo "$as_me: program exited with status $ac_status" >&5
12719echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012720sed 's/^/| /' conftest.$ac_ext >&5
12721
Martin v. Löwis11437992002-04-12 09:54:03 +000012722( exit $ac_status )
12723ac_cv_sizeof_time_t=0
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012724fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012726fi
12727
Martin v. Löwiseba40652007-08-30 20:10:57 +000012728
12729
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012730fi
12731
Martin v. Löwiseba40652007-08-30 20:10:57 +000012732{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12733echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012734
12735cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012736#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
Martin v. Löwis11437992002-04-12 09:54:03 +000012737_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000012738
Michael W. Hudson54241132001-12-07 15:38:26 +000012739
12740
Trent Mick635f6fb2000-08-23 21:33:05 +000012741# if have pthread_t then define SIZEOF_PTHREAD_T
Martin v. Löwis123cbd22001-07-19 14:21:10 +000012742ac_save_cc="$CC"
12743if test "$ac_cv_kpthread" = "yes"
12744then CC="$CC -Kpthread"
Martin v. Löwis5f433f02003-05-05 05:05:30 +000012745elif test "$ac_cv_kthread" = "yes"
12746then CC="$CC -Kthread"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000012747elif test "$ac_cv_pthread" = "yes"
12748then CC="$CC -pthread"
Martin v. Löwis123cbd22001-07-19 14:21:10 +000012749fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012750{ echo "$as_me:$LINENO: checking for pthread_t" >&5
12751echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
Trent Mick635f6fb2000-08-23 21:33:05 +000012752have_pthread_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +000012753cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012754/* confdefs.h. */
12755_ACEOF
12756cat confdefs.h >>conftest.$ac_ext
12757cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */
Trent Mick635f6fb2000-08-23 21:33:05 +000012759#include <pthread.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012760int
12761main ()
12762{
Guido van Rossum12580492000-09-24 16:47:19 +000012763pthread_t x; x = *(pthread_t*)0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012764 ;
12765 return 0;
12766}
12767_ACEOF
12768rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012769if { (ac_try="$ac_compile"
12770case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773esac
12774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012776 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012781 (exit $ac_status); } && {
12782 test -z "$ac_c_werror_flag" ||
12783 test ! -s conftest.err
12784 } && test -s conftest.$ac_objext; then
Trent Mick635f6fb2000-08-23 21:33:05 +000012785 have_pthread_t=yes
12786else
Martin v. Löwis11437992002-04-12 09:54:03 +000012787 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012788sed 's/^/| /' conftest.$ac_ext >&5
12789
Martin v. Löwiseba40652007-08-30 20:10:57 +000012790
Trent Mick635f6fb2000-08-23 21:33:05 +000012791fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012792
12793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794{ echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12795echo "${ECHO_T}$have_pthread_t" >&6; }
Trent Mick635f6fb2000-08-23 21:33:05 +000012796if test "$have_pthread_t" = yes ; then
12797 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
Martin v. Löwiseba40652007-08-30 20:10:57 +000012798 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12799echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012800 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
Trent Mick635f6fb2000-08-23 21:33:05 +000012802else
12803 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000012804 ac_cv_sizeof_pthread_t=4
Trent Mick635f6fb2000-08-23 21:33:05 +000012805else
Martin v. Löwis11437992002-04-12 09:54:03 +000012806 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
Trent Mick635f6fb2000-08-23 21:33:05 +000012812#include <stdio.h>
Neal Norwitz6eb37f02003-02-23 23:28:15 +000012813#include <pthread.h>
Trent Mick635f6fb2000-08-23 21:33:05 +000012814 main()
12815 {
12816 FILE *f=fopen("conftestval", "w");
12817 if (!f) exit(1);
12818 fprintf(f, "%d\n", sizeof(pthread_t));
12819 exit(0);
12820 }
Martin v. Löwis11437992002-04-12 09:54:03 +000012821_ACEOF
12822rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012823if { (ac_try="$ac_link"
12824case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827esac
12828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000012833 { (case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836esac
12837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
Trent Mick635f6fb2000-08-23 21:33:05 +000012842 ac_cv_sizeof_pthread_t=`cat conftestval`
12843else
Martin v. Löwis11437992002-04-12 09:54:03 +000012844 echo "$as_me: program exited with status $ac_status" >&5
12845echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012846sed 's/^/| /' conftest.$ac_ext >&5
12847
Martin v. Löwis11437992002-04-12 09:54:03 +000012848( exit $ac_status )
12849ac_cv_sizeof_pthread_t=0
Trent Mick635f6fb2000-08-23 21:33:05 +000012850fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Trent Mick635f6fb2000-08-23 21:33:05 +000012852fi
12853
Martin v. Löwiseba40652007-08-30 20:10:57 +000012854
12855
Trent Mick635f6fb2000-08-23 21:33:05 +000012856fi
12857
Martin v. Löwiseba40652007-08-30 20:10:57 +000012858 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12859echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012860
12861cat >>confdefs.h <<_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +000012862#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
Martin v. Löwis11437992002-04-12 09:54:03 +000012863_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +000012864
12865fi
Martin v. Löwis123cbd22001-07-19 14:21:10 +000012866CC="$ac_save_cc"
Trent Mick635f6fb2000-08-23 21:33:05 +000012867
Martin v. Löwiseba40652007-08-30 20:10:57 +000012868{ echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12869echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12870# Check whether --enable-toolbox-glue was given.
Jack Jansene578a632001-08-15 01:27:14 +000012871if test "${enable_toolbox_glue+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000012872 enableval=$enable_toolbox_glue;
12873fi
Jack Jansene578a632001-08-15 01:27:14 +000012874
12875
12876if test -z "$enable_toolbox_glue"
Martin v. Löwis11437992002-04-12 09:54:03 +000012877then
Jack Jansene578a632001-08-15 01:27:14 +000012878 case $ac_sys_system/$ac_sys_release in
12879 Darwin/*)
12880 enable_toolbox_glue="yes";;
12881 *)
12882 enable_toolbox_glue="no";;
12883 esac
12884fi
12885case "$enable_toolbox_glue" in
12886yes)
Jack Jansene578a632001-08-15 01:27:14 +000012887 extra_machdep_objs="Python/mactoolboxglue.o"
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000012888 extra_undefs="-u _PyMac_Error"
Martin v. Löwis11437992002-04-12 09:54:03 +000012889
12890cat >>confdefs.h <<\_ACEOF
Jack Jansene578a632001-08-15 01:27:14 +000012891#define USE_TOOLBOX_OBJECT_GLUE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012892_ACEOF
Jack Jansene578a632001-08-15 01:27:14 +000012893
12894 ;;
12895*)
Jack Jansene578a632001-08-15 01:27:14 +000012896 extra_machdep_objs=""
Jack Jansen591cbed2001-08-15 13:55:15 +000012897 extra_undefs=""
Jack Jansene578a632001-08-15 01:27:14 +000012898 ;;
12899esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000012900{ echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12901echo "${ECHO_T}$enable_toolbox_glue" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000012902
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000012903
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000012904
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000012905case $ac_sys_system/$ac_sys_release in
Anthony Baxter82201742006-04-09 15:07:40 +000012906 Darwin/[01567]\..*)
Bob Ippolito7026a0a2005-03-28 23:23:47 +000012907 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12908 ;;
12909 Darwin/*)
12910 OTHER_LIBTOOL_OPT=""
12911 ;;
12912esac
12913
12914
12915case $ac_sys_system/$ac_sys_release in
Anthony Baxter82201742006-04-09 15:07:40 +000012916 Darwin/[01567]\..*)
Ronald Oussoren988117f2006-04-29 11:31:35 +000012917 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12918 if test "${enable_universalsdk}"; then
12919 :
12920 else
12921 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12922 fi
Jack Jansenb36687a2004-07-16 08:43:47 +000012923 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:12 +000012924 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum5839e582000-10-09 19:52:35 +000012925 Darwin/*)
Bob Ippolito7026a0a2005-03-28 23:23:47 +000012926 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12927 if test ${gcc_version} '<' 4.0
12928 then
12929 LIBTOOL_CRUFT="-lcc_dynamic"
12930 else
12931 LIBTOOL_CRUFT=""
12932 fi
Jack Jansen39fd2312006-02-23 15:12:19 +000012933 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
Jack Jansenb36687a2004-07-16 08:43:47 +000012934 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +000012935 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000012936esac
12937
Martin v. Löwiseba40652007-08-30 20:10:57 +000012938{ echo "$as_me:$LINENO: checking for --enable-framework" >&5
12939echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
Jack Jansene578a632001-08-15 01:27:14 +000012940if test "$enable_framework"
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000012941then
Skip Montanarodecc6a42003-01-01 20:07:49 +000012942 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
Martin v. Löwis11437992002-04-12 09:54:03 +000012943 # -F. is needed to allow linking to the framework while
Jack Jansene578a632001-08-15 01:27:14 +000012944 # in the build location.
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000012945
Martin v. Löwis11437992002-04-12 09:54:03 +000012946cat >>confdefs.h <<\_ACEOF
12947#define WITH_NEXT_FRAMEWORK 1
12948_ACEOF
12949
Martin v. Löwiseba40652007-08-30 20:10:57 +000012950 { echo "$as_me:$LINENO: result: yes" >&5
12951echo "${ECHO_T}yes" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000012952else
Martin v. Löwiseba40652007-08-30 20:10:57 +000012953 { echo "$as_me:$LINENO: result: no" >&5
12954echo "${ECHO_T}no" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000012955fi
12956
Martin v. Löwiseba40652007-08-30 20:10:57 +000012957{ echo "$as_me:$LINENO: checking for dyld" >&5
12958echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:14 +000012959case $ac_sys_system/$ac_sys_release in
12960 Darwin/*)
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000012961
Martin v. Löwis11437992002-04-12 09:54:03 +000012962cat >>confdefs.h <<\_ACEOF
12963#define WITH_DYLD 1
12964_ACEOF
12965
Martin v. Löwiseba40652007-08-30 20:10:57 +000012966 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12967echo "${ECHO_T}always on for Darwin" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:14 +000012968 ;;
12969 *)
Martin v. Löwiseba40652007-08-30 20:10:57 +000012970 { echo "$as_me:$LINENO: result: no" >&5
12971echo "${ECHO_T}no" >&6; }
Jack Jansene578a632001-08-15 01:27:14 +000012972 ;;
Jack Jansen9a66b6d2001-08-08 13:56:14 +000012973esac
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000012974
Guido van Rossum0a516c91994-09-12 10:58:40 +000012975# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:40 +000012976
Michael W. Hudson54241132001-12-07 15:38:26 +000012977
12978
12979
12980
Guido van Rossum0a516c91994-09-12 10:58:40 +000012981# SO is the extension of shared libraries `(including the dot!)
Guido van Rossumaef734b2001-01-10 21:09:12 +000012982# -- usually .so, .sl on HP-UX, .dll on Cygwin
Martin v. Löwiseba40652007-08-30 20:10:57 +000012983{ echo "$as_me:$LINENO: checking SO" >&5
12984echo $ECHO_N "checking SO... $ECHO_C" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000012985if test -z "$SO"
12986then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012987 case $ac_sys_system in
Neal Norwitz58e28882006-05-19 07:00:58 +000012988 hp*|HP*)
12989 case `uname -m` in
12990 ia64) SO=.so;;
12991 *) SO=.sl;;
12992 esac
12993 ;;
Guido van Rossumaef734b2001-01-10 21:09:12 +000012994 CYGWIN*) SO=.dll;;
Guido van Rossum563e7081996-09-10 18:20:48 +000012995 *) SO=.so;;
Guido van Rossum0a516c91994-09-12 10:58:40 +000012996 esac
Martin v. Löwis368de8f2003-06-14 14:46:38 +000012997else
12998 # this might also be a termcap variable, see #610332
12999 echo
13000 echo '====================================================================='
13001 echo '+ +'
13002 echo '+ WARNING: You have set SO in your environment. +'
13003 echo '+ Do you really mean to change the extension for shared libraries? +'
13004 echo '+ Continuing in 10 seconds to let you to ponder. +'
13005 echo '+ +'
13006 echo '====================================================================='
13007 sleep 10
Guido van Rossum0a516c91994-09-12 10:58:40 +000013008fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013009{ echo "$as_me:$LINENO: result: $SO" >&5
13010echo "${ECHO_T}$SO" >&6; }
Neal Norwitz58e28882006-05-19 07:00:58 +000013011
Ronald Oussoren79f90492009-01-02 10:44:46 +000013012
Neal Norwitz58e28882006-05-19 07:00:58 +000013013cat >>confdefs.h <<_ACEOF
13014#define SHLIB_EXT "$SO"
13015_ACEOF
13016
Guido van Rossum0a516c91994-09-12 10:58:40 +000013017# LDSHARED is the ld *command* used to create shared library
Martin v. Löwis12af0482004-01-31 12:34:17 +000013018# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013019# (Shared libraries in this instance are shared modules to be loaded into
13020# Python, as opposed to building Python itself as a shared library.)
Martin v. Löwiseba40652007-08-30 20:10:57 +000013021{ echo "$as_me:$LINENO: checking LDSHARED" >&5
13022echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013023if test -z "$LDSHARED"
13024then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013025 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013026 AIX*)
13027 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
Guido van Rossumce608b02001-09-28 15:59:38 +000013028 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013029 ;;
13030 BeOS*)
13031 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
Guido van Rossumce608b02001-09-28 15:59:38 +000013032 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013033 ;;
Guido van Rossum07397971997-04-29 21:49:50 +000013034 IRIX/5*) LDSHARED="ld -shared";;
Guido van Rossum91922671997-10-09 20:24:13 +000013035 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
Martin v. Löwis11437992002-04-12 09:54:03 +000013036 SunOS/5*)
Greg Ward57c9a662000-05-26 12:22:54 +000013037 if test "$GCC" = "yes"
Neil Schemenauer8ba94452001-02-19 18:18:48 +000013038 then LDSHARED='$(CC) -shared'
Martin v. Löwisaa5afe12002-10-07 06:21:41 +000013039 else LDSHARED='$(CC) -G';
Greg Ward57c9a662000-05-26 12:22:54 +000013040 fi ;;
Thomas Hellerdc96a772008-04-04 10:07:55 +000013041 hp*|HP*)
13042 if test "$GCC" = "yes"
13043 then LDSHARED='$(CC) -shared'
13044 else LDSHARED='ld -b';
13045 fi ;;
Guido van Rossumda88dad1995-01-26 00:46:29 +000013046 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
Jack Jansen418c3b12001-11-14 10:59:57 +000013047 Darwin/1.3*)
Jack Jansena3891ea2001-09-07 14:25:12 +000013048 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13049 if test "$enable_framework" ; then
13050 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +000013051 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13052 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:12 +000013053 else
13054 # No framework. Ignore undefined symbols, assuming they come from Python
Jack Jansen418c3b12001-11-14 10:59:57 +000013055 LDSHARED="$LDSHARED -undefined suppress"
Jack Jansena3891ea2001-09-07 14:25:12 +000013056 fi ;;
Jack Jansen6b08a402004-06-03 12:41:45 +000013057 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
Jack Jansene578a632001-08-15 01:27:14 +000013058 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13059 if test "$enable_framework" ; then
13060 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +000013061 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13062 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +000013063 else
Michael W. Hudson594bc802002-03-07 09:59:15 +000013064 # No framework, use the Python app as bundle-loader
13065 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
Jack Jansenc28fc372003-02-25 13:14:43 +000013066 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013067 fi ;;
Jack Jansen6b08a402004-06-03 12:41:45 +000013068 Darwin/*)
13069 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13070 # This allows an extension to be used in any Python
Ronald Oussoren38f1b982007-09-02 09:46:07 +000013071
Ronald Oussoren5640ce22008-06-05 12:58:24 +000013072 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
Jack Jansen6b08a402004-06-03 12:41:45 +000013073 then
Ronald Oussoren988117f2006-04-29 11:31:35 +000013074 if test "${enable_universalsdk}"; then
Ronald Oussoren5640ce22008-06-05 12:58:24 +000013075 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
Ronald Oussoren988117f2006-04-29 11:31:35 +000013076 fi
Jack Jansen6b08a402004-06-03 12:41:45 +000013077 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13078 BLDSHARED="$LDSHARED"
Jack Jansen6b08a402004-06-03 12:41:45 +000013079 else
13080 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13081 if test "$enable_framework" ; then
13082 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +000013083 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13084 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen6b08a402004-06-03 12:41:45 +000013085 else
13086 # No framework, use the Python app as bundle-loader
13087 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13088 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13089 fi
13090 fi
13091 ;;
Martin v. Löwis8c255e42008-05-23 15:06:50 +000013092 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
Guido van Rossum458e7fa1999-09-17 15:40:40 +000013093 BSD/OS*/4*) LDSHARED="gcc -shared";;
Martin v. Löwis222c5152006-06-03 07:37:13 +000013094 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:35 +000013095 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:49 +000013096 then
Hye-Shik Chang33761492004-10-26 09:53:46 +000013097 LDSHARED="$CC -shared ${LDFLAGS}"
Guido van Rossum0286ae82000-08-29 15:06:49 +000013098 else
13099 LDSHARED="ld -Bshareable ${LDFLAGS}"
13100 fi;;
Martin v. Löwis222c5152006-06-03 07:37:13 +000013101 OpenBSD*)
13102 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13103 then
13104 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13105 else
13106 case `uname -r` in
13107 [01].* | 2.[0-7] | 2.[0-7].*)
13108 LDSHARED="ld -Bshareable ${LDFLAGS}"
13109 ;;
13110 *)
13111 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13112 ;;
13113 esac
13114 fi;;
Martin v. Löwis86d66262006-02-17 08:40:11 +000013115 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +000013116 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:54 +000013117 if test "$GCC" = "yes"
Martin v. Löwis79f3c532002-12-11 12:51:58 +000013118 then LDSHARED='$(CC) -shared'
13119 else LDSHARED='$(CC) -G'
Martin v. Löwisbec19582001-03-21 15:57:54 +000013120 fi;;
Martin v. Löwis79f3c532002-12-11 12:51:58 +000013121 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
Trent Mick635f6fb2000-08-23 21:33:05 +000013122 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
Guido van Rossumaef734b2001-01-10 21:09:12 +000013123 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013124 atheos*) LDSHARED="gcc -shared";;
Guido van Rossum0a516c91994-09-12 10:58:40 +000013125 *) LDSHARED="ld";;
13126 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +000013127fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013128{ echo "$as_me:$LINENO: result: $LDSHARED" >&5
13129echo "${ECHO_T}$LDSHARED" >&6; }
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013130BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:40 +000013131# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013132# library (module) -- this is only needed for a few systems
Martin v. Löwiseba40652007-08-30 20:10:57 +000013133{ echo "$as_me:$LINENO: checking CCSHARED" >&5
13134echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013135if test -z "$CCSHARED"
13136then
Guido van Rossum07397971997-04-29 21:49:50 +000013137 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:49 +000013138 SunOS*) if test "$GCC" = yes;
Martin v. Löwiseb623572007-03-12 10:50:39 +000013139 then CCSHARED="-fPIC";
13140 elif test `uname -p` = sparc;
13141 then CCSHARED="-xcode=pic32";
13142 else CCSHARED="-Kpic";
13143 fi;;
Guido van Rossumaf07a441995-02-13 19:45:27 +000013144 hp*|HP*) if test "$GCC" = yes;
Martin v. Löwis703ad702001-09-05 08:36:52 +000013145 then CCSHARED="-fPIC";
Guido van Rossumaf07a441995-02-13 19:45:27 +000013146 else CCSHARED="+z";
13147 fi;;
Martin v. Löwisa6e97582002-01-01 18:41:33 +000013148 Linux*|GNU*) CCSHARED="-fPIC";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +000013149 BSD/OS*/4*) CCSHARED="-fpic";;
Martin v. Löwis86d66262006-02-17 08:40:11 +000013150 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +000013151 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:54 +000013152 if test "$GCC" = "yes"
13153 then CCSHARED="-fPIC"
Martin v. Löwis130fb172001-07-19 11:00:41 +000013154 else CCSHARED="-KPIC"
Martin v. Löwisbec19582001-03-21 15:57:54 +000013155 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:48 +000013156 SCO_SV*)
13157 if test "$GCC" = "yes"
13158 then CCSHARED="-fPIC"
13159 else CCSHARED="-Kpic -belf"
13160 fi;;
Trent Mick635f6fb2000-08-23 21:33:05 +000013161 Monterey*) CCSHARED="-G";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +000013162 IRIX*/6*) case $CC in
13163 *gcc*) CCSHARED="-shared";;
Guido van Rossumee21f411998-04-20 18:51:54 +000013164 *) CCSHARED="";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +000013165 esac;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013166 atheos*) CCSHARED="-fPIC";;
Guido van Rossum0a516c91994-09-12 10:58:40 +000013167 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +000013168fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013169{ echo "$as_me:$LINENO: result: $CCSHARED" >&5
13170echo "${ECHO_T}$CCSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013171# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013172# the python executable -- this is only needed for a few systems
Martin v. Löwiseba40652007-08-30 20:10:57 +000013173{ echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13174echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013175if test -z "$LINKFORSHARED"
13176then
Guido van Rossum07397971997-04-29 21:49:50 +000013177 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013178 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:16 +000013179 hp*|HP*)
Martin v. Löwis1142de32002-03-29 16:28:31 +000013180 LINKFORSHARED="-Wl,-E -Wl,+s";;
13181# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +000013182 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Martin v. Löwisa6e97582002-01-01 18:41:33 +000013183 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013184 # -u libsys_s pulls in all symbols in libsys
Martin v. Löwis11437992002-04-12 09:54:03 +000013185 Darwin/*)
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000013186 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13187 # which is
Jack Jansene578a632001-08-15 01:27:14 +000013188 # not used by the core itself but which needs to be in the core so
13189 # that dynamically loaded extension modules have access to it.
Jack Jansen97e3f002003-02-23 22:59:01 +000013190 # -prebind is no longer used, because it actually seems to give a
13191 # slowdown in stead of a speedup, maybe due to the large number of
13192 # dynamic loads Python does.
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000013193
13194 LINKFORSHARED="$extra_undefs"
Jack Jansene578a632001-08-15 01:27:14 +000013195 if test "$enable_framework"
13196 then
Jack Jansenda49e192005-01-07 13:08:22 +000013197 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +000013198 fi
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000013199 LINKFORSHARED="$LINKFORSHARED";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +000013200 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
Martin v. Löwis21ee4092002-09-30 16:19:48 +000013201 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:46 +000013202 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Martin v. Löwis86d66262006-02-17 08:40:11 +000013203 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
Guido van Rossumdf693651999-01-07 21:50:41 +000013204 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13205 then
13206 LINKFORSHARED="-Wl,--export-dynamic"
13207 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:09 +000013208 SunOS/5*) case $CC in
13209 *gcc*)
Martin v. Löwisa4548572002-04-18 14:51:36 +000013210 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:19 +000013211 then
13212 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:09 +000013213 fi;;
13214 esac;;
Jason Tishler30765592003-09-04 11:04:06 +000013215 CYGWIN*)
13216 if test $enable_shared = "no"
13217 then
13218 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13219 fi;;
Martin v. Löwis8c255e42008-05-23 15:06:50 +000013220 QNX*)
13221 # -Wl,-E causes the symbols to be added to the dynamic
13222 # symbol table so that they can be found when a module
13223 # is loaded. -N 2048K causes the stack size to be set
13224 # to 2048 kilobytes so that the stack doesn't overflow
13225 # when running test_compile.py.
13226 LINKFORSHARED='-Wl,-E -N 2048K';;
Guido van Rossum0a516c91994-09-12 10:58:40 +000013227 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +000013228fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013229{ echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13230echo "${ECHO_T}$LINKFORSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013231
Michael W. Hudson54241132001-12-07 15:38:26 +000013232
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000013233
Martin v. Löwiseba40652007-08-30 20:10:57 +000013234{ echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13235echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000013236if test ! "$LIBRARY" = "$LDLIBRARY"
13237then
Neil Schemenauer0c6141f2001-01-27 21:40:54 +000013238 case $ac_sys_system in
13239 CYGWIN*)
13240 # Cygwin needs CCSHARED when building extension DLLs
13241 # but not when building the interpreter DLL.
13242 CFLAGSFORSHARED='';;
13243 *)
13244 CFLAGSFORSHARED='$(CCSHARED)'
13245 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000013246fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013247{ echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13248echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000013249
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013250# SHLIBS are libraries (except -lc and -lm) to link to the python shared
13251# library (with --enable-shared).
13252# For platforms on which shared libraries are not allowed to have unresolved
Martin v. Löwisd6359c52002-08-04 12:38:50 +000013253# symbols, this must be set to $(LIBS) (expanded by make). We do this even
13254# if it is not required, since it creates a dependency of the shared library
13255# to LIBS. This, in turn, means that applications linking the shared libpython
13256# don't need to link LIBS explicitly. The default should be only changed
13257# on systems where this approach causes problems.
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013258
Martin v. Löwiseba40652007-08-30 20:10:57 +000013259{ echo "$as_me:$LINENO: checking SHLIBS" >&5
13260echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013261case "$ac_sys_system" in
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013262 *)
Martin v. Löwisd6359c52002-08-04 12:38:50 +000013263 SHLIBS='$(LIBS)';;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013264esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000013265{ echo "$as_me:$LINENO: result: $SHLIBS" >&5
13266echo "${ECHO_T}$SHLIBS" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013267
13268
Guido van Rossum627b2d71993-12-24 10:39:16 +000013269# checks for libraries
Martin v. Löwis11437992002-04-12 09:54:03 +000013270
Martin v. Löwiseba40652007-08-30 20:10:57 +000013271{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13272echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013273if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013275else
Martin v. Löwis11437992002-04-12 09:54:03 +000013276 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013277LIBS="-ldl $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000013278cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013279/* confdefs.h. */
13280_ACEOF
13281cat confdefs.h >>conftest.$ac_ext
13282cat >>conftest.$ac_ext <<_ACEOF
13283/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013284
Martin v. Löwiseba40652007-08-30 20:10:57 +000013285/* Override any GCC internal prototype to avoid an error.
13286 Use char because int might match the return type of a GCC
13287 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013288#ifdef __cplusplus
13289extern "C"
13290#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013291char dlopen ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013292int
13293main ()
13294{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013295return dlopen ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013296 ;
13297 return 0;
13298}
13299_ACEOF
13300rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013301if { (ac_try="$ac_link"
13302case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13305esac
13306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013308 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013313 (exit $ac_status); } && {
13314 test -z "$ac_c_werror_flag" ||
13315 test ! -s conftest.err
13316 } && test -s conftest$ac_exeext &&
13317 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013318 ac_cv_lib_dl_dlopen=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013319else
Martin v. Löwis11437992002-04-12 09:54:03 +000013320 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013321sed 's/^/| /' conftest.$ac_ext >&5
13322
Martin v. Löwiseba40652007-08-30 20:10:57 +000013323 ac_cv_lib_dl_dlopen=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000013324fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013325
13326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013327 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013328LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +000013329fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013330{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13331echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013332if test $ac_cv_lib_dl_dlopen = yes; then
13333 cat >>confdefs.h <<_ACEOF
13334#define HAVE_LIBDL 1
13335_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000013336
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013337 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +000013338
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013339fi
13340 # Dynamic linking for SunOS/Solaris and SYSV
Martin v. Löwis11437992002-04-12 09:54:03 +000013341
Martin v. Löwiseba40652007-08-30 20:10:57 +000013342{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13343echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013344if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013346else
Martin v. Löwis11437992002-04-12 09:54:03 +000013347 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013348LIBS="-ldld $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000013349cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013350/* confdefs.h. */
13351_ACEOF
13352cat confdefs.h >>conftest.$ac_ext
13353cat >>conftest.$ac_ext <<_ACEOF
13354/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013355
Martin v. Löwiseba40652007-08-30 20:10:57 +000013356/* Override any GCC internal prototype to avoid an error.
13357 Use char because int might match the return type of a GCC
13358 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013359#ifdef __cplusplus
13360extern "C"
13361#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013362char shl_load ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013363int
13364main ()
13365{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013366return shl_load ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013367 ;
13368 return 0;
13369}
13370_ACEOF
13371rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013372if { (ac_try="$ac_link"
13373case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376esac
13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013379 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest$ac_exeext &&
13388 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013389 ac_cv_lib_dld_shl_load=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013390else
Martin v. Löwis11437992002-04-12 09:54:03 +000013391 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013392sed 's/^/| /' conftest.$ac_ext >&5
13393
Martin v. Löwiseba40652007-08-30 20:10:57 +000013394 ac_cv_lib_dld_shl_load=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000013395fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013396
13397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013398 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013399LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +000013400fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013401{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13402echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013403if test $ac_cv_lib_dld_shl_load = yes; then
13404 cat >>confdefs.h <<_ACEOF
13405#define HAVE_LIBDLD 1
13406_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000013407
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013408 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013409
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013410fi
13411 # Dynamic linking for HP-UX
Martin v. Löwis519adae2003-09-20 10:47:47 +000013412
Ronald Oussoren79f90492009-01-02 10:44:46 +000013413# only check for sem_init if thread support is requested
Martin v. Löwis519adae2003-09-20 10:47:47 +000013414if test "$with_threads" = "yes" -o -z "$with_threads"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000013415 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13416echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
Martin v. Löwis82c19a72002-10-06 11:48:09 +000013417if test "${ac_cv_search_sem_init+set}" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013418 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis41933dd2002-03-21 15:10:58 +000013419else
Martin v. Löwis82c19a72002-10-06 11:48:09 +000013420 ac_func_search_save_LIBS=$LIBS
Martin v. Löwis11437992002-04-12 09:54:03 +000013421cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013422/* confdefs.h. */
13423_ACEOF
13424cat confdefs.h >>conftest.$ac_ext
13425cat >>conftest.$ac_ext <<_ACEOF
13426/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013427
Martin v. Löwiseba40652007-08-30 20:10:57 +000013428/* Override any GCC internal prototype to avoid an error.
13429 Use char because int might match the return type of a GCC
13430 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013431#ifdef __cplusplus
13432extern "C"
13433#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013434char sem_init ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013435int
13436main ()
13437{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013438return sem_init ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013439 ;
13440 return 0;
13441}
13442_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000013443for ac_lib in '' pthread rt posix4; do
13444 if test -z "$ac_lib"; then
13445 ac_res="none required"
13446 else
13447 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:21 +000013448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:57 +000013449 fi
13450 rm -f conftest.$ac_objext conftest$ac_exeext
13451if { (ac_try="$ac_link"
13452case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455esac
13456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_link") 2>conftest.er1
Skip Montanaro89e975f2007-08-22 19:05:21 +000013458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 } && test -s conftest$ac_exeext &&
13467 $as_test_x conftest$ac_exeext; then
13468 ac_cv_search_sem_init=$ac_res
Brett Cannon19fab762007-06-02 03:02:29 +000013469else
Skip Montanaro89e975f2007-08-22 19:05:21 +000013470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
Martin v. Löwiseba40652007-08-30 20:10:57 +000013473
Brett Cannon19fab762007-06-02 03:02:29 +000013474fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013475
13476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13477 conftest$ac_exeext
13478 if test "${ac_cv_search_sem_init+set}" = set; then
13479 break
Skip Montanaro89e975f2007-08-22 19:05:21 +000013480fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013481done
13482if test "${ac_cv_search_sem_init+set}" = set; then
13483 :
13484else
13485 ac_cv_search_sem_init=no
13486fi
13487rm conftest.$ac_ext
Martin v. Löwis82c19a72002-10-06 11:48:09 +000013488LIBS=$ac_func_search_save_LIBS
13489fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013490{ echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13491echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13492ac_res=$ac_cv_search_sem_init
13493if test "$ac_res" != no; then
13494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis41933dd2002-03-21 15:10:58 +000013495
Martin v. Löwis41933dd2002-03-21 15:10:58 +000013496fi
Martin v. Löwisd3545ec2003-05-03 11:25:43 +000013497 # 'Real Time' functions on Solaris
Martin v. Löwis519adae2003-09-20 10:47:47 +000013498 # posix4 on Solaris 2.6
13499 # pthread (first!) on Linux
13500fi
13501
Martin v. Löwis19d17342003-06-14 21:03:05 +000013502# check if we need libintl for locale functions
Martin v. Löwiseba40652007-08-30 20:10:57 +000013503{ echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13504echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
Martin v. Löwis19d17342003-06-14 21:03:05 +000013505if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13507else
13508 ac_check_lib_save_LIBS=$LIBS
13509LIBS="-lintl $LIBS"
13510cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
Martin v. Löwis19d17342003-06-14 21:03:05 +000013516
Martin v. Löwiseba40652007-08-30 20:10:57 +000013517/* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
Martin v. Löwis19d17342003-06-14 21:03:05 +000013520#ifdef __cplusplus
13521extern "C"
13522#endif
Martin v. Löwis19d17342003-06-14 21:03:05 +000013523char textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:05 +000013524int
13525main ()
13526{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013527return textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:05 +000013528 ;
13529 return 0;
13530}
13531_ACEOF
13532rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013533if { (ac_try="$ac_link"
13534case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537esac
13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis19d17342003-06-14 21:03:05 +000013540 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
Martin v. Löwis19d17342003-06-14 21:03:05 +000013544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013545 (exit $ac_status); } && {
13546 test -z "$ac_c_werror_flag" ||
13547 test ! -s conftest.err
13548 } && test -s conftest$ac_exeext &&
13549 $as_test_x conftest$ac_exeext; then
Martin v. Löwis19d17342003-06-14 21:03:05 +000013550 ac_cv_lib_intl_textdomain=yes
13551else
13552 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013553sed 's/^/| /' conftest.$ac_ext >&5
13554
Martin v. Löwiseba40652007-08-30 20:10:57 +000013555 ac_cv_lib_intl_textdomain=no
Martin v. Löwis19d17342003-06-14 21:03:05 +000013556fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013557
13558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013559 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis19d17342003-06-14 21:03:05 +000013560LIBS=$ac_check_lib_save_LIBS
13561fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013562{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13563echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
Martin v. Löwis19d17342003-06-14 21:03:05 +000013564if test $ac_cv_lib_intl_textdomain = yes; then
13565
13566cat >>confdefs.h <<\_ACEOF
13567#define WITH_LIBINTL 1
13568_ACEOF
13569
13570fi
13571
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000013572
13573# checks for system dependent C++ extensions support
13574case "$ac_sys_system" in
Martin v. Löwiseba40652007-08-30 20:10:57 +000013575 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13576echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013577 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013578/* confdefs.h. */
13579_ACEOF
13580cat confdefs.h >>conftest.$ac_ext
13581cat >>conftest.$ac_ext <<_ACEOF
13582/* end confdefs.h. */
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000013583#include "/usr/lpp/xlC/include/load.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000013584int
13585main ()
13586{
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000013587loadAndInit("", 0, "")
Martin v. Löwis11437992002-04-12 09:54:03 +000013588 ;
13589 return 0;
13590}
13591_ACEOF
13592rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013593if { (ac_try="$ac_link"
13594case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597esac
13598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013600 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013605 (exit $ac_status); } && {
13606 test -z "$ac_c_werror_flag" ||
13607 test ! -s conftest.err
13608 } && test -s conftest$ac_exeext &&
13609 $as_test_x conftest$ac_exeext; then
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000013610
Martin v. Löwis11437992002-04-12 09:54:03 +000013611cat >>confdefs.h <<\_ACEOF
13612#define AIX_GENUINE_CPLUSPLUS 1
13613_ACEOF
13614
Martin v. Löwiseba40652007-08-30 20:10:57 +000013615 { echo "$as_me:$LINENO: result: yes" >&5
13616echo "${ECHO_T}yes" >&6; }
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000013617else
Martin v. Löwis11437992002-04-12 09:54:03 +000013618 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013619sed 's/^/| /' conftest.$ac_ext >&5
13620
Martin v. Löwiseba40652007-08-30 20:10:57 +000013621 { echo "$as_me:$LINENO: result: no" >&5
13622echo "${ECHO_T}no" >&6; }
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000013623fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013624
13625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013626 conftest$ac_exeext conftest.$ac_ext;;
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000013627 *) ;;
13628esac
13629
Guido van Rossum70c7f481998-03-26 18:44:10 +000013630# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
Guido van Rossumec95c7b1998-08-04 17:59:56 +000013631# BeOS' sockets are stashed in libnet.
Martin v. Löwiseba40652007-08-30 20:10:57 +000013632{ echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13633echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013634if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +000013636else
Martin v. Löwis11437992002-04-12 09:54:03 +000013637 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013638LIBS="-lnsl $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000013639cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013640/* confdefs.h. */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
13644/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013645
Martin v. Löwiseba40652007-08-30 20:10:57 +000013646/* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013649#ifdef __cplusplus
13650extern "C"
13651#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013652char t_open ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013653int
13654main ()
13655{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013656return t_open ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013657 ;
13658 return 0;
13659}
13660_ACEOF
13661rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013662if { (ac_try="$ac_link"
13663case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13666esac
13667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013669 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013674 (exit $ac_status); } && {
13675 test -z "$ac_c_werror_flag" ||
13676 test ! -s conftest.err
13677 } && test -s conftest$ac_exeext &&
13678 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013679 ac_cv_lib_nsl_t_open=yes
Guido van Rossum79dddcb1995-01-12 12:25:42 +000013680else
Martin v. Löwis11437992002-04-12 09:54:03 +000013681 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013682sed 's/^/| /' conftest.$ac_ext >&5
13683
Martin v. Löwiseba40652007-08-30 20:10:57 +000013684 ac_cv_lib_nsl_t_open=no
Guido van Rossum79dddcb1995-01-12 12:25:42 +000013685fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013686
13687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013688 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013689LIBS=$ac_check_lib_save_LIBS
Guido van Rossum79dddcb1995-01-12 12:25:42 +000013690fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013691{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13692echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013693if test $ac_cv_lib_nsl_t_open = yes; then
Guido van Rossum79dddcb1995-01-12 12:25:42 +000013694 LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:42 +000013695fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +000013696 # SVR4
Martin v. Löwiseba40652007-08-30 20:10:57 +000013697{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13698echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013699if test "${ac_cv_lib_socket_socket+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013701else
Martin v. Löwis11437992002-04-12 09:54:03 +000013702 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013703LIBS="-lsocket $LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000013704cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013705/* confdefs.h. */
13706_ACEOF
13707cat confdefs.h >>conftest.$ac_ext
13708cat >>conftest.$ac_ext <<_ACEOF
13709/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013710
Martin v. Löwiseba40652007-08-30 20:10:57 +000013711/* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013714#ifdef __cplusplus
13715extern "C"
13716#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013717char socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013718int
13719main ()
13720{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013721return socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013722 ;
13723 return 0;
13724}
13725_ACEOF
13726rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013727if { (ac_try="$ac_link"
13728case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731esac
13732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013734 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013739 (exit $ac_status); } && {
13740 test -z "$ac_c_werror_flag" ||
13741 test ! -s conftest.err
13742 } && test -s conftest$ac_exeext &&
13743 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013744 ac_cv_lib_socket_socket=yes
Guido van Rossumec95c7b1998-08-04 17:59:56 +000013745else
Martin v. Löwis11437992002-04-12 09:54:03 +000013746 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013747sed 's/^/| /' conftest.$ac_ext >&5
13748
Martin v. Löwiseba40652007-08-30 20:10:57 +000013749 ac_cv_lib_socket_socket=no
Guido van Rossumec95c7b1998-08-04 17:59:56 +000013750fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013751
13752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013753 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013754LIBS=$ac_check_lib_save_LIBS
Guido van Rossumec95c7b1998-08-04 17:59:56 +000013755fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013756{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13757echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013758if test $ac_cv_lib_socket_socket = yes; then
Guido van Rossumad678af1998-10-02 14:42:15 +000013759 LIBS="-lsocket $LIBS"
Guido van Rossumad678af1998-10-02 14:42:15 +000013760fi
13761 # SVR4 sockets
Skip Montanarob9949db2004-01-17 04:04:13 +000013762
Jeremy Hyltoncb25d5e2000-07-27 21:23:28 +000013763case "$ac_sys_system" in
13764BeOS*)
Martin v. Löwiseba40652007-08-30 20:10:57 +000013765{ echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13766echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013767if test "${ac_cv_lib_net_socket+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumad678af1998-10-02 14:42:15 +000013769else
Martin v. Löwis11437992002-04-12 09:54:03 +000013770 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumad678af1998-10-02 14:42:15 +000013771LIBS="-lnet $LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000013772cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013773/* confdefs.h. */
13774_ACEOF
13775cat confdefs.h >>conftest.$ac_ext
13776cat >>conftest.$ac_ext <<_ACEOF
13777/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013778
Martin v. Löwiseba40652007-08-30 20:10:57 +000013779/* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013782#ifdef __cplusplus
13783extern "C"
13784#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013785char socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013786int
13787main ()
13788{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013789return socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013790 ;
13791 return 0;
13792}
13793_ACEOF
13794rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013795if { (ac_try="$ac_link"
13796case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799esac
13800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013802 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest$ac_exeext &&
13811 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013812 ac_cv_lib_net_socket=yes
Guido van Rossumad678af1998-10-02 14:42:15 +000013813else
Martin v. Löwis11437992002-04-12 09:54:03 +000013814 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013815sed 's/^/| /' conftest.$ac_ext >&5
13816
Martin v. Löwiseba40652007-08-30 20:10:57 +000013817 ac_cv_lib_net_socket=no
Guido van Rossumad678af1998-10-02 14:42:15 +000013818fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013819
13820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013821 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013822LIBS=$ac_check_lib_save_LIBS
Guido van Rossumad678af1998-10-02 14:42:15 +000013823fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013824{ echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13825echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013826if test $ac_cv_lib_net_socket = yes; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +000013827 LIBS="-lnet $LIBS"
Guido van Rossumec95c7b1998-08-04 17:59:56 +000013828fi
13829 # BeOS
13830;;
13831esac
Guido van Rossum70c7f481998-03-26 18:44:10 +000013832
Martin v. Löwiseba40652007-08-30 20:10:57 +000013833{ echo "$as_me:$LINENO: checking for --with-libs" >&5
13834echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013835
Martin v. Löwiseba40652007-08-30 20:10:57 +000013836# Check whether --with-libs was given.
Guido van Rossuma68acba1996-07-31 17:36:39 +000013837if test "${with_libs+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000013838 withval=$with_libs;
13839{ echo "$as_me:$LINENO: result: $withval" >&5
13840echo "${ECHO_T}$withval" >&6; }
Guido van Rossuma68acba1996-07-31 17:36:39 +000013841LIBS="$withval $LIBS"
13842
13843else
Martin v. Löwiseba40652007-08-30 20:10:57 +000013844 { echo "$as_me:$LINENO: result: no" >&5
13845echo "${ECHO_T}no" >&6; }
13846fi
13847
Guido van Rossum7f43da71994-08-01 12:15:30 +000013848
Martin v. Löwis9176fc12006-04-11 11:12:43 +000013849# Check for use of the system libffi library
Martin v. Löwiseba40652007-08-30 20:10:57 +000013850{ echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13851echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
Martin v. Löwis9176fc12006-04-11 11:12:43 +000013852
Martin v. Löwiseba40652007-08-30 20:10:57 +000013853# Check whether --with-system_ffi was given.
Martin v. Löwis9176fc12006-04-11 11:12:43 +000013854if test "${with_system_ffi+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000013855 withval=$with_system_ffi;
13856fi
Martin v. Löwis9176fc12006-04-11 11:12:43 +000013857
Martin v. Löwis9176fc12006-04-11 11:12:43 +000013858
Martin v. Löwiseba40652007-08-30 20:10:57 +000013859{ echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13860echo "${ECHO_T}$with_system_ffi" >&6; }
Martin v. Löwis9176fc12006-04-11 11:12:43 +000013861
Martin v. Löwis3e2c6322002-10-29 10:07:43 +000013862# Determine if signalmodule should be used.
Neil Schemenauerd32c2492001-01-24 17:25:28 +000013863
13864
Martin v. Löwiseba40652007-08-30 20:10:57 +000013865{ echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13866echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013867
Martin v. Löwiseba40652007-08-30 20:10:57 +000013868# Check whether --with-signal-module was given.
Neil Schemenauerd32c2492001-01-24 17:25:28 +000013869if test "${with_signal_module+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000013870 withval=$with_signal_module;
13871fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +000013872
13873
13874if test -z "$with_signal_module"
13875then with_signal_module="yes"
13876fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013877{ echo "$as_me:$LINENO: result: $with_signal_module" >&5
13878echo "${ECHO_T}$with_signal_module" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +000013879
13880if test "${with_signal_module}" = "yes"; then
13881 USE_SIGNAL_MODULE=""
13882 SIGNAL_OBJS=""
13883else
13884 USE_SIGNAL_MODULE="#"
13885 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13886fi
13887
Guido van Rossum3d15bd82001-01-10 18:53:48 +000013888# This is used to generate Setup.config
Guido van Rossum009f7871997-12-04 00:51:42 +000013889
Barry Warsawc0d24d82000-06-29 16:12:00 +000013890USE_THREAD_MODULE=""
Guido van Rossum009f7871997-12-04 00:51:42 +000013891
Martin v. Löwiseba40652007-08-30 20:10:57 +000013892{ echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13893echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013894
Guido van Rossumec2f0731997-01-22 20:54:01 +000013895
Martin v. Löwiseba40652007-08-30 20:10:57 +000013896# Check whether --with-dec-threads was given.
Guido van Rossumec2f0731997-01-22 20:54:01 +000013897if test "${with_dec_threads+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000013898 withval=$with_dec_threads;
13899{ echo "$as_me:$LINENO: result: $withval" >&5
13900echo "${ECHO_T}$withval" >&6; }
Guido van Rossumec2f0731997-01-22 20:54:01 +000013901LDLAST=-threads
Guido van Rossumf78abae1997-01-21 22:02:36 +000013902if test "${with_thread+set}" != set; then
Guido van Rossumec2f0731997-01-22 20:54:01 +000013903 with_thread="$withval";
Guido van Rossumf78abae1997-01-21 22:02:36 +000013904fi
Guido van Rossumec2f0731997-01-22 20:54:01 +000013905else
Martin v. Löwiseba40652007-08-30 20:10:57 +000013906 { echo "$as_me:$LINENO: result: no" >&5
13907echo "${ECHO_T}no" >&6; }
13908fi
13909
Martin v. Löwis11437992002-04-12 09:54:03 +000013910
13911# Templates for things AC_DEFINEd more than once.
13912# For a single AC_DEFINE, no template is needed.
Guido van Rossumec2f0731997-01-22 20:54:01 +000013913
13914
Martin v. Löwis11437992002-04-12 09:54:03 +000013915
13916
13917
13918
13919
Martin v. Löwiseba40652007-08-30 20:10:57 +000013920{ echo "$as_me:$LINENO: checking for --with-threads" >&5
13921echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013922
Martin v. Löwiseba40652007-08-30 20:10:57 +000013923# Check whether --with-threads was given.
Guido van Rossumec2f0731997-01-22 20:54:01 +000013924if test "${with_threads+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000013925 withval=$with_threads;
13926fi
Guido van Rossumec2f0731997-01-22 20:54:01 +000013927
13928
Barry Warsawc0d24d82000-06-29 16:12:00 +000013929# --with-thread is deprecated, but check for it anyway
Martin v. Löwis11437992002-04-12 09:54:03 +000013930
Martin v. Löwiseba40652007-08-30 20:10:57 +000013931# Check whether --with-thread was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000013932if test "${with_thread+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000013933 withval=$with_thread; with_threads=$with_thread
13934fi
13935
Barry Warsawc0d24d82000-06-29 16:12:00 +000013936
13937if test -z "$with_threads"
13938then with_threads="yes"
13939fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013940{ echo "$as_me:$LINENO: result: $with_threads" >&5
13941echo "${ECHO_T}$with_threads" >&6; }
Barry Warsawc0d24d82000-06-29 16:12:00 +000013942
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000013943
Barry Warsawc0d24d82000-06-29 16:12:00 +000013944if test "$with_threads" = "no"
13945then
13946 USE_THREAD_MODULE="#"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000013947elif test "$ac_cv_pthread_is_default" = yes
13948then
Martin v. Löwis11437992002-04-12 09:54:03 +000013949 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000013950#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013951_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000013952
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000013953 # Defining _REENTRANT on system with POSIX threads should not hurt.
Martin v. Löwis11437992002-04-12 09:54:03 +000013954 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000013955#define _REENTRANT 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013956_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000013957
13958 posix_threads=yes
Martin v. Löwis11437992002-04-12 09:54:03 +000013959 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000013960elif test "$ac_cv_kpthread" = "yes"
13961then
13962 CC="$CC -Kpthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +000013963 if test "$ac_cv_cxx_thread" = "yes"; then
13964 CXX="$CXX -Kpthread"
13965 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013966 cat >>confdefs.h <<\_ACEOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +000013967#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013968_ACEOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +000013969
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000013970 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000013971 THREADOBJ="Python/thread.o"
Martin v. Löwis5f433f02003-05-05 05:05:30 +000013972elif test "$ac_cv_kthread" = "yes"
13973then
13974 CC="$CC -Kthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +000013975 if test "$ac_cv_cxx_thread" = "yes"; then
13976 CXX="$CXX -Kthread"
13977 fi
Martin v. Löwis5f433f02003-05-05 05:05:30 +000013978 cat >>confdefs.h <<\_ACEOF
13979#define WITH_THREAD 1
13980_ACEOF
13981
13982 posix_threads=yes
13983 THREADOBJ="Python/thread.o"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000013984elif test "$ac_cv_pthread" = "yes"
13985then
13986 CC="$CC -pthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +000013987 if test "$ac_cv_cxx_thread" = "yes"; then
13988 CXX="$CXX -pthread"
13989 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000013990 cat >>confdefs.h <<\_ACEOF
13991#define WITH_THREAD 1
13992_ACEOF
13993
13994 posix_threads=yes
13995 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000013996else
13997 if test ! -z "$with_threads" -a -d "$with_threads"
13998 then LDFLAGS="$LDFLAGS -L$with_threads"
13999 fi
14000 if test ! -z "$withval" -a -d "$withval"
14001 then LDFLAGS="$LDFLAGS -L$withval"
14002 fi
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014003
14004 # According to the POSIX spec, a pthreads implementation must
Matthias Klosea2542be2004-08-16 11:35:51 +000014005 # define _POSIX_THREADS in unistd.h. Some apparently don't
14006 # (e.g. gnu pth with pthread emulation)
Martin v. Löwiseba40652007-08-30 20:10:57 +000014007 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14008echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014009 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014010/* confdefs.h. */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:15 +000014015
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014016#include <unistd.h>
Neal Norwitz6eb37f02003-02-23 23:28:15 +000014017#ifdef _POSIX_THREADS
14018yes
14019#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014020
14021_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000014023 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014024 unistd_defines_pthreads=yes
14025else
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014026 unistd_defines_pthreads=no
14027fi
14028rm -f conftest*
14029
Martin v. Löwiseba40652007-08-30 20:10:57 +000014030 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14031echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014032
Martin v. Löwis11437992002-04-12 09:54:03 +000014033 cat >>confdefs.h <<\_ACEOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +000014034#define _REENTRANT 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014035_ACEOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +000014036
Martin v. Löwis11437992002-04-12 09:54:03 +000014037 if test "${ac_cv_header_cthreads_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014038 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14039echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014040if test "${ac_cv_header_cthreads_h+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014043{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14044echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014045else
Martin v. Löwis11437992002-04-12 09:54:03 +000014046 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014047{ echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14048echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014049cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014055$ac_includes_default
14056#include <cthreads.h>
14057_ACEOF
14058rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014059if { (ac_try="$ac_compile"
14060case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014066 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014067 grep -v '^ *+' conftest.er1 >conftest.err
14068 rm -f conftest.er1
14069 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014071 (exit $ac_status); } && {
14072 test -z "$ac_c_werror_flag" ||
14073 test ! -s conftest.err
14074 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014075 ac_header_compiler=yes
14076else
14077 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014078sed 's/^/| /' conftest.$ac_ext >&5
14079
Martin v. Löwiseba40652007-08-30 20:10:57 +000014080 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000014081fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014082
14083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14085echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014086
14087# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014088{ echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14089echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014090cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014096#include <cthreads.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014097_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000014098if { (ac_try="$ac_cpp conftest.$ac_ext"
14099case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102esac
14103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014105 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000014106 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000014107 rm -f conftest.er1
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014110 (exit $ac_status); } >/dev/null && {
14111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14112 test ! -s conftest.err
14113 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014114 ac_header_preproc=yes
14115else
14116 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014117sed 's/^/| /' conftest.$ac_ext >&5
14118
Martin v. Löwis11437992002-04-12 09:54:03 +000014119 ac_header_preproc=no
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014120fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014121
Martin v. Löwis11437992002-04-12 09:54:03 +000014122rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014123{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14124echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014125
14126# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14128 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +000014129 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14130echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014131 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14132echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14133 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014134 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000014135 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014136 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14137echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014138 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14139echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14141echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14143echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014144 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14145echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014146 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14147echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000014148 ( cat <<\_ASBOX
Martin v. Löwis1d459062005-03-14 21:23:33 +000014149## ------------------------------------------------ ##
14150## Report this to http://www.python.org/python-bugs ##
14151## ------------------------------------------------ ##
Skip Montanaro6dead952003-09-25 14:50:04 +000014152_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000014153 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000014154 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000014155esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000014156{ echo "$as_me:$LINENO: checking for cthreads.h" >&5
14157echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014158if test "${ac_cv_header_cthreads_h+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160else
14161 ac_cv_header_cthreads_h=$ac_header_preproc
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014162fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014163{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14164echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014165
14166fi
14167if test $ac_cv_header_cthreads_h = yes; then
14168 cat >>confdefs.h <<\_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014169#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014170_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014171
Martin v. Löwis11437992002-04-12 09:54:03 +000014172 cat >>confdefs.h <<\_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014173#define C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014174_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014175
Martin v. Löwis11437992002-04-12 09:54:03 +000014176
14177cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014178#define HURD_C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014179_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014180
14181 LIBS="$LIBS -lthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014182 THREADOBJ="Python/thread.o"
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014183else
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014184
Martin v. Löwis11437992002-04-12 09:54:03 +000014185 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014186 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14187echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014188if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014191{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14192echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014193else
Martin v. Löwis11437992002-04-12 09:54:03 +000014194 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014195{ echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14196echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014197cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014198/* confdefs.h. */
14199_ACEOF
14200cat confdefs.h >>conftest.$ac_ext
14201cat >>conftest.$ac_ext <<_ACEOF
14202/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014203$ac_includes_default
14204#include <mach/cthreads.h>
14205_ACEOF
14206rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014207if { (ac_try="$ac_compile"
14208case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014214 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014223 ac_header_compiler=yes
14224else
14225 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014226sed 's/^/| /' conftest.$ac_ext >&5
14227
Martin v. Löwiseba40652007-08-30 20:10:57 +000014228 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000014229fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014230
14231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14233echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014234
14235# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014236{ echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14237echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014238cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014239/* confdefs.h. */
14240_ACEOF
14241cat confdefs.h >>conftest.$ac_ext
14242cat >>conftest.$ac_ext <<_ACEOF
14243/* end confdefs.h. */
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014244#include <mach/cthreads.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014245_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000014246if { (ac_try="$ac_cpp conftest.$ac_ext"
14247case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14250esac
14251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014253 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000014254 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000014255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014258 (exit $ac_status); } >/dev/null && {
14259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014262 ac_header_preproc=yes
14263else
14264 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014265sed 's/^/| /' conftest.$ac_ext >&5
14266
Martin v. Löwis11437992002-04-12 09:54:03 +000014267 ac_header_preproc=no
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014268fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014269
Martin v. Löwis11437992002-04-12 09:54:03 +000014270rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014271{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14272echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014273
14274# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14276 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +000014277 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14278echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14280echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14281 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014282 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000014283 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014284 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14285echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014286 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14287echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14289echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14291echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014292 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14293echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014294 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14295echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000014296 ( cat <<\_ASBOX
Martin v. Löwis1d459062005-03-14 21:23:33 +000014297## ------------------------------------------------ ##
14298## Report this to http://www.python.org/python-bugs ##
14299## ------------------------------------------------ ##
Skip Montanaro6dead952003-09-25 14:50:04 +000014300_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000014301 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000014302 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000014303esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000014304{ echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14305echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014306if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14308else
14309 ac_cv_header_mach_cthreads_h=$ac_header_preproc
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014310fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014311{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14312echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014313
14314fi
14315if test $ac_cv_header_mach_cthreads_h = yes; then
14316 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014317#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014318_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014319
Martin v. Löwis11437992002-04-12 09:54:03 +000014320 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014321#define C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014322_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014323
Martin v. Löwis11437992002-04-12 09:54:03 +000014324
14325cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014326#define MACH_C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014327_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014328
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014329 THREADOBJ="Python/thread.o"
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014330else
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014331
Martin v. Löwiseba40652007-08-30 20:10:57 +000014332 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14333echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014334
Martin v. Löwiseba40652007-08-30 20:10:57 +000014335# Check whether --with-pth was given.
Guido van Rossum9e8181b2000-09-19 00:46:46 +000014336if test "${with_pth+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014337 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14338echo "${ECHO_T}$withval" >&6; }
Martin v. Löwis3e2c6322002-10-29 10:07:43 +000014339 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000014340#define WITH_THREAD 1
14341_ACEOF
14342
14343
14344cat >>confdefs.h <<\_ACEOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +000014345#define HAVE_PTH 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014346_ACEOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +000014347
Martin v. Löwis3e2c6322002-10-29 10:07:43 +000014348 LIBS="-lpth $LIBS"
14349 THREADOBJ="Python/thread.o"
Guido van Rossum9e8181b2000-09-19 00:46:46 +000014350else
Martin v. Löwiseba40652007-08-30 20:10:57 +000014351 { echo "$as_me:$LINENO: result: no" >&5
14352echo "${ECHO_T}no" >&6; }
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014353
14354 # Just looking for pthread_create in libpthread is not enough:
14355 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14356 # So we really have to include pthread.h, and then link.
14357 _libs=$LIBS
14358 LIBS="$LIBS -lpthread"
Martin v. Löwiseba40652007-08-30 20:10:57 +000014359 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14360echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014361 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014362/* confdefs.h. */
14363_ACEOF
14364cat confdefs.h >>conftest.$ac_ext
14365cat >>conftest.$ac_ext <<_ACEOF
14366/* end confdefs.h. */
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014367#include <pthread.h>
Guido van Rossum02a1c402000-02-25 19:26:31 +000014368
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014369void * start_routine (void *arg) { exit (0); }
Martin v. Löwis11437992002-04-12 09:54:03 +000014370int
14371main ()
14372{
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014373
14374pthread_create (NULL, NULL, start_routine, NULL)
Martin v. Löwis11437992002-04-12 09:54:03 +000014375 ;
14376 return 0;
14377}
14378_ACEOF
14379rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014380if { (ac_try="$ac_link"
14381case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14384esac
14385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014387 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest$ac_exeext &&
14396 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014397
Martin v. Löwiseba40652007-08-30 20:10:57 +000014398 { echo "$as_me:$LINENO: result: yes" >&5
14399echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014400 cat >>confdefs.h <<\_ACEOF
Guido van Rossum02a1c402000-02-25 19:26:31 +000014401#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014402_ACEOF
Guido van Rossum02a1c402000-02-25 19:26:31 +000014403
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014404 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014405 THREADOBJ="Python/thread.o"
Guido van Rossum02a1c402000-02-25 19:26:31 +000014406else
Martin v. Löwis11437992002-04-12 09:54:03 +000014407 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014408sed 's/^/| /' conftest.$ac_ext >&5
14409
Martin v. Löwis11437992002-04-12 09:54:03 +000014410
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014411 LIBS=$_libs
Martin v. Löwiseba40652007-08-30 20:10:57 +000014412 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14413echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014414if test "${ac_cv_func_pthread_detach+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumad678af1998-10-02 14:42:15 +000014416else
Martin v. Löwis11437992002-04-12 09:54:03 +000014417 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014418/* confdefs.h. */
14419_ACEOF
14420cat confdefs.h >>conftest.$ac_ext
14421cat >>conftest.$ac_ext <<_ACEOF
14422/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000014423/* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14425#define pthread_detach innocuous_pthread_detach
14426
Guido van Rossumad678af1998-10-02 14:42:15 +000014427/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000014428 which can conflict with char pthread_detach (); below.
14429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000014430 <limits.h> exists even on freestanding compilers. */
14431
14432#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000014433# include <limits.h>
14434#else
14435# include <assert.h>
14436#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000014437
14438#undef pthread_detach
14439
Martin v. Löwiseba40652007-08-30 20:10:57 +000014440/* Override any GCC internal prototype to avoid an error.
14441 Use char because int might match the return type of a GCC
14442 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014443#ifdef __cplusplus
14444extern "C"
14445#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014446char pthread_detach ();
Guido van Rossumad678af1998-10-02 14:42:15 +000014447/* The GNU C library defines this for functions which it implements
14448 to always fail with ENOSYS. Some functions are actually named
14449 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000014450#if defined __stub_pthread_detach || defined __stub___pthread_detach
Guido van Rossumad678af1998-10-02 14:42:15 +000014451choke me
Guido van Rossumad678af1998-10-02 14:42:15 +000014452#endif
14453
Skip Montanaro6dead952003-09-25 14:50:04 +000014454int
14455main ()
14456{
Martin v. Löwiseba40652007-08-30 20:10:57 +000014457return pthread_detach ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014458 ;
14459 return 0;
14460}
14461_ACEOF
14462rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014463if { (ac_try="$ac_link"
14464case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467esac
14468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014470 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014471 grep -v '^ *+' conftest.er1 >conftest.err
14472 rm -f conftest.er1
14473 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014475 (exit $ac_status); } && {
14476 test -z "$ac_c_werror_flag" ||
14477 test ! -s conftest.err
14478 } && test -s conftest$ac_exeext &&
14479 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014480 ac_cv_func_pthread_detach=yes
Guido van Rossumad678af1998-10-02 14:42:15 +000014481else
Martin v. Löwis11437992002-04-12 09:54:03 +000014482 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014483sed 's/^/| /' conftest.$ac_ext >&5
14484
Martin v. Löwiseba40652007-08-30 20:10:57 +000014485 ac_cv_func_pthread_detach=no
Guido van Rossumad678af1998-10-02 14:42:15 +000014486fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014487
14488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014489 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumad678af1998-10-02 14:42:15 +000014490fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014491{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14492echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014493if test $ac_cv_func_pthread_detach = yes; then
14494 cat >>confdefs.h <<\_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +000014495#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014496_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +000014497
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014498 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014499 THREADOBJ="Python/thread.o"
Guido van Rossumad678af1998-10-02 14:42:15 +000014500else
Guido van Rossumad678af1998-10-02 14:42:15 +000014501
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014502 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014503 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14504echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014505if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14507fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014508{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14509echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014510else
14511 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014512{ echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14513echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014514cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h. */
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014520$ac_includes_default
14521#include <atheos/threads.h>
14522_ACEOF
14523rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014524if { (ac_try="$ac_compile"
14525case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528esac
14529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014531 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest.$ac_objext; then
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014540 ac_header_compiler=yes
14541else
14542 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014543sed 's/^/| /' conftest.$ac_ext >&5
14544
Martin v. Löwiseba40652007-08-30 20:10:57 +000014545 ac_header_compiler=no
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014546fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014547
14548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14550echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014551
14552# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014553{ echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14554echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014555cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014556/* confdefs.h. */
14557_ACEOF
14558cat confdefs.h >>conftest.$ac_ext
14559cat >>conftest.$ac_ext <<_ACEOF
14560/* end confdefs.h. */
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014561#include <atheos/threads.h>
14562_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000014563if { (ac_try="$ac_cpp conftest.$ac_ext"
14564case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567esac
14568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014570 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000014571 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014575 (exit $ac_status); } >/dev/null && {
14576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14577 test ! -s conftest.err
14578 }; then
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014579 ac_header_preproc=yes
14580else
14581 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014582sed 's/^/| /' conftest.$ac_ext >&5
14583
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014584 ac_header_preproc=no
14585fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014586
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014587rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014588{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14589echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014590
14591# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14593 yes:no: )
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014594 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14595echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014596 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14597echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14598 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014599 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000014600 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014601 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14602echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014603 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14604echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14605 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14606echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14607 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14608echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014609 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14610echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014611 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14612echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000014613 ( cat <<\_ASBOX
Martin v. Löwis1d459062005-03-14 21:23:33 +000014614## ------------------------------------------------ ##
14615## Report this to http://www.python.org/python-bugs ##
14616## ------------------------------------------------ ##
Skip Montanaro6dead952003-09-25 14:50:04 +000014617_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000014618 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000014619 ;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014620esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000014621{ echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14622echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014623if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625else
14626 ac_cv_header_atheos_threads_h=$ac_header_preproc
14627fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014628{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14629echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014630
14631fi
14632if test $ac_cv_header_atheos_threads_h = yes; then
14633 cat >>confdefs.h <<\_ACEOF
14634#define WITH_THREAD 1
14635_ACEOF
14636
14637
14638cat >>confdefs.h <<\_ACEOF
14639#define ATHEOS_THREADS 1
14640_ACEOF
14641
14642 THREADOBJ="Python/thread.o"
14643else
14644
Martin v. Löwis11437992002-04-12 09:54:03 +000014645 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014646 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14647echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014648if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14650fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014651{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14652echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014653else
Martin v. Löwis11437992002-04-12 09:54:03 +000014654 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014655{ echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14656echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014657cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014658/* confdefs.h. */
14659_ACEOF
14660cat confdefs.h >>conftest.$ac_ext
14661cat >>conftest.$ac_ext <<_ACEOF
14662/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014663$ac_includes_default
14664#include <kernel/OS.h>
14665_ACEOF
14666rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014667if { (ac_try="$ac_compile"
14668case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671esac
14672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014674 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014683 ac_header_compiler=yes
14684else
14685 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014686sed 's/^/| /' conftest.$ac_ext >&5
14687
Martin v. Löwiseba40652007-08-30 20:10:57 +000014688 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000014689fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014690
14691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14693echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014694
14695# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014696{ echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14697echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014698cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014699/* confdefs.h. */
14700_ACEOF
14701cat confdefs.h >>conftest.$ac_ext
14702cat >>conftest.$ac_ext <<_ACEOF
14703/* end confdefs.h. */
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014704#include <kernel/OS.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014705_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000014706if { (ac_try="$ac_cpp conftest.$ac_ext"
14707case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14710esac
14711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014713 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000014714 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000014715 rm -f conftest.er1
14716 cat conftest.err >&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014718 (exit $ac_status); } >/dev/null && {
14719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14720 test ! -s conftest.err
14721 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014722 ac_header_preproc=yes
14723else
14724 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014725sed 's/^/| /' conftest.$ac_ext >&5
14726
Martin v. Löwis11437992002-04-12 09:54:03 +000014727 ac_header_preproc=no
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014728fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014729
Martin v. Löwis11437992002-04-12 09:54:03 +000014730rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014731{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14732echo "${ECHO_T}$ac_header_preproc" >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014733
Martin v. Löwis11437992002-04-12 09:54:03 +000014734# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14736 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +000014737 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14738echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014739 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14740echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14741 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014742 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000014743 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014744 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14745echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014746 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14747echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14749echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14751echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014752 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14753echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014754 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14755echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000014756 ( cat <<\_ASBOX
Martin v. Löwis1d459062005-03-14 21:23:33 +000014757## ------------------------------------------------ ##
14758## Report this to http://www.python.org/python-bugs ##
14759## ------------------------------------------------ ##
Skip Montanaro6dead952003-09-25 14:50:04 +000014760_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000014761 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000014762 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000014763esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000014764{ echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14765echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014766if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768else
14769 ac_cv_header_kernel_OS_h=$ac_header_preproc
14770fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014771{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14772echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014773
14774fi
14775if test $ac_cv_header_kernel_OS_h = yes; then
14776 cat >>confdefs.h <<\_ACEOF
14777#define WITH_THREAD 1
14778_ACEOF
14779
14780
14781cat >>confdefs.h <<\_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014782#define BEOS_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014783_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014784
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014785 THREADOBJ="Python/thread.o"
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014786else
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014787
Martin v. Löwiseba40652007-08-30 20:10:57 +000014788 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14789echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014790if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014792else
Martin v. Löwis11437992002-04-12 09:54:03 +000014793 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014794LIBS="-lpthreads $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000014795cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014796/* confdefs.h. */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
14800/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014801
Martin v. Löwiseba40652007-08-30 20:10:57 +000014802/* Override any GCC internal prototype to avoid an error.
14803 Use char because int might match the return type of a GCC
14804 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014805#ifdef __cplusplus
14806extern "C"
14807#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014808char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014809int
14810main ()
14811{
Martin v. Löwiseba40652007-08-30 20:10:57 +000014812return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014813 ;
14814 return 0;
14815}
14816_ACEOF
14817rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014818if { (ac_try="$ac_link"
14819case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14822esac
14823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014825 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014830 (exit $ac_status); } && {
14831 test -z "$ac_c_werror_flag" ||
14832 test ! -s conftest.err
14833 } && test -s conftest$ac_exeext &&
14834 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014835 ac_cv_lib_pthreads_pthread_create=yes
Greg Steinadf63d62000-07-05 10:38:09 +000014836else
Martin v. Löwis11437992002-04-12 09:54:03 +000014837 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014838sed 's/^/| /' conftest.$ac_ext >&5
14839
Martin v. Löwiseba40652007-08-30 20:10:57 +000014840 ac_cv_lib_pthreads_pthread_create=no
Greg Steinadf63d62000-07-05 10:38:09 +000014841fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014842
14843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014844 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000014845LIBS=$ac_check_lib_save_LIBS
Greg Steinadf63d62000-07-05 10:38:09 +000014846fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014847{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14848echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014849if test $ac_cv_lib_pthreads_pthread_create = yes; then
14850 cat >>confdefs.h <<\_ACEOF
Greg Steinadf63d62000-07-05 10:38:09 +000014851#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014852_ACEOF
Greg Steinadf63d62000-07-05 10:38:09 +000014853
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000014854 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000014855 LIBS="$LIBS -lpthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014856 THREADOBJ="Python/thread.o"
Greg Steinadf63d62000-07-05 10:38:09 +000014857else
Greg Steinadf63d62000-07-05 10:38:09 +000014858
Martin v. Löwiseba40652007-08-30 20:10:57 +000014859 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14860echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014861if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
Greg Steinadf63d62000-07-05 10:38:09 +000014863else
Martin v. Löwis11437992002-04-12 09:54:03 +000014864 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:09 +000014865LIBS="-lc_r $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000014866cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014872
Martin v. Löwiseba40652007-08-30 20:10:57 +000014873/* Override any GCC internal prototype to avoid an error.
14874 Use char because int might match the return type of a GCC
14875 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014876#ifdef __cplusplus
14877extern "C"
14878#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014879char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014880int
14881main ()
14882{
Martin v. Löwiseba40652007-08-30 20:10:57 +000014883return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014884 ;
14885 return 0;
14886}
14887_ACEOF
14888rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014889if { (ac_try="$ac_link"
14890case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893esac
14894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014896 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014901 (exit $ac_status); } && {
14902 test -z "$ac_c_werror_flag" ||
14903 test ! -s conftest.err
14904 } && test -s conftest$ac_exeext &&
14905 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014906 ac_cv_lib_c_r_pthread_create=yes
Guido van Rossum49545951997-12-02 19:28:29 +000014907else
Martin v. Löwis11437992002-04-12 09:54:03 +000014908 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014909sed 's/^/| /' conftest.$ac_ext >&5
14910
Martin v. Löwiseba40652007-08-30 20:10:57 +000014911 ac_cv_lib_c_r_pthread_create=no
Guido van Rossum49545951997-12-02 19:28:29 +000014912fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014913
14914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014915 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000014916LIBS=$ac_check_lib_save_LIBS
Guido van Rossum49545951997-12-02 19:28:29 +000014917fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014918{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14919echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014920if test $ac_cv_lib_c_r_pthread_create = yes; then
14921 cat >>confdefs.h <<\_ACEOF
Guido van Rossum49545951997-12-02 19:28:29 +000014922#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014923_ACEOF
Guido van Rossum49545951997-12-02 19:28:29 +000014924
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000014925 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000014926 LIBS="$LIBS -lc_r"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014927 THREADOBJ="Python/thread.o"
Guido van Rossum07bd90e2000-05-08 13:41:38 +000014928else
Guido van Rossum07bd90e2000-05-08 13:41:38 +000014929
Martin v. Löwiseba40652007-08-30 20:10:57 +000014930 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14931echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014932if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000014934else
Martin v. Löwis11437992002-04-12 09:54:03 +000014935 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000014936LIBS="-lpthread $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000014937cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014938/* confdefs.h. */
14939_ACEOF
14940cat confdefs.h >>conftest.$ac_ext
14941cat >>conftest.$ac_ext <<_ACEOF
14942/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014943
Martin v. Löwiseba40652007-08-30 20:10:57 +000014944/* Override any GCC internal prototype to avoid an error.
14945 Use char because int might match the return type of a GCC
14946 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014947#ifdef __cplusplus
14948extern "C"
14949#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014950char __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014951int
14952main ()
14953{
Martin v. Löwiseba40652007-08-30 20:10:57 +000014954return __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014955 ;
14956 return 0;
14957}
14958_ACEOF
14959rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014960if { (ac_try="$ac_link"
14961case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964esac
14965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014967 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest$ac_exeext &&
14976 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014977 ac_cv_lib_pthread___pthread_create_system=yes
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000014978else
Martin v. Löwis11437992002-04-12 09:54:03 +000014979 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014980sed 's/^/| /' conftest.$ac_ext >&5
14981
Martin v. Löwiseba40652007-08-30 20:10:57 +000014982 ac_cv_lib_pthread___pthread_create_system=no
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000014983fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014984
14985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014986 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000014987LIBS=$ac_check_lib_save_LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000014988fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014989{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14990echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014991if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14992 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000014993#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014994_ACEOF
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000014995
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000014996 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000014997 LIBS="$LIBS -lpthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014998 THREADOBJ="Python/thread.o"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000014999else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015000
Martin v. Löwiseba40652007-08-30 20:10:57 +000015001 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15002echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015003if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumb93a8621998-05-07 13:27:32 +000015005else
Martin v. Löwis11437992002-04-12 09:54:03 +000015006 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +000015007LIBS="-lcma $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015008cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015009/* confdefs.h. */
15010_ACEOF
15011cat confdefs.h >>conftest.$ac_ext
15012cat >>conftest.$ac_ext <<_ACEOF
15013/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015014
Martin v. Löwiseba40652007-08-30 20:10:57 +000015015/* Override any GCC internal prototype to avoid an error.
15016 Use char because int might match the return type of a GCC
15017 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015018#ifdef __cplusplus
15019extern "C"
15020#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015021char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015022int
15023main ()
15024{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015025return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015026 ;
15027 return 0;
15028}
15029_ACEOF
15030rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015031if { (ac_try="$ac_link"
15032case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035esac
15036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015038 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015039 grep -v '^ *+' conftest.er1 >conftest.err
15040 rm -f conftest.er1
15041 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015043 (exit $ac_status); } && {
15044 test -z "$ac_c_werror_flag" ||
15045 test ! -s conftest.err
15046 } && test -s conftest$ac_exeext &&
15047 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015048 ac_cv_lib_cma_pthread_create=yes
Guido van Rossumb93a8621998-05-07 13:27:32 +000015049else
Martin v. Löwis11437992002-04-12 09:54:03 +000015050 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015051sed 's/^/| /' conftest.$ac_ext >&5
15052
Martin v. Löwiseba40652007-08-30 20:10:57 +000015053 ac_cv_lib_cma_pthread_create=no
Guido van Rossumb93a8621998-05-07 13:27:32 +000015054fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015055
15056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015057 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015058LIBS=$ac_check_lib_save_LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +000015059fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015060{ echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15061echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015062if test $ac_cv_lib_cma_pthread_create = yes; then
15063 cat >>confdefs.h <<\_ACEOF
Guido van Rossumb93a8621998-05-07 13:27:32 +000015064#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015065_ACEOF
Guido van Rossumb93a8621998-05-07 13:27:32 +000015066
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000015067 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000015068 LIBS="$LIBS -lcma"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015069 THREADOBJ="Python/thread.o"
Guido van Rossumb93a8621998-05-07 13:27:32 +000015070else
Thomas Wouters0db2b2b2000-08-26 11:33:43 +000015071
Martin v. Löwis130fb172001-07-19 11:00:41 +000015072 USE_THREAD_MODULE="#"
Guido van Rossum2d38f911996-06-26 19:47:01 +000015073fi
15074
Guido van Rossum627b2d71993-12-24 10:39:16 +000015075
Guido van Rossum7b3853f1996-07-30 18:09:35 +000015076fi
15077
Guido van Rossum0be3e491997-05-22 20:33:33 +000015078fi
15079
Guido van Rossum49545951997-12-02 19:28:29 +000015080fi
15081
Guido van Rossumb93a8621998-05-07 13:27:32 +000015082fi
15083
Guido van Rossum07bd90e2000-05-08 13:41:38 +000015084
Michael W. Hudson54241132001-12-07 15:38:26 +000015085fi
15086
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015087
15088fi
15089
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015090fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015091
15092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015093 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015094fi
15095
Martin v. Löwis11437992002-04-12 09:54:03 +000015096fi
15097
15098
15099fi
15100
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015101
Michael W. Hudson54241132001-12-07 15:38:26 +000015102
Martin v. Löwiseba40652007-08-30 20:10:57 +000015103 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15104echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015105if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015107else
Martin v. Löwis11437992002-04-12 09:54:03 +000015108 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015109LIBS="-lmpc $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015110cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015116
Martin v. Löwiseba40652007-08-30 20:10:57 +000015117/* Override any GCC internal prototype to avoid an error.
15118 Use char because int might match the return type of a GCC
15119 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015120#ifdef __cplusplus
15121extern "C"
15122#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015123char usconfig ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015124int
15125main ()
15126{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015127return usconfig ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015128 ;
15129 return 0;
15130}
15131_ACEOF
15132rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015133if { (ac_try="$ac_link"
15134case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015140 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest$ac_exeext &&
15149 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015150 ac_cv_lib_mpc_usconfig=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015151else
Martin v. Löwis11437992002-04-12 09:54:03 +000015152 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015153sed 's/^/| /' conftest.$ac_ext >&5
15154
Martin v. Löwiseba40652007-08-30 20:10:57 +000015155 ac_cv_lib_mpc_usconfig=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000015156fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015157
15158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015159 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015160LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015161fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015162{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15163echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015164if test $ac_cv_lib_mpc_usconfig = yes; then
15165 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015166#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015167_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000015168
Martin v. Löwis130fb172001-07-19 11:00:41 +000015169 LIBS="$LIBS -lmpc"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015170 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000015171 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +000015172fi
15173
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000015174
Neal Norwitza978ab02002-11-02 16:58:05 +000015175 if test "$posix_threads" != "yes"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015176 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15177echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015178if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015180else
Martin v. Löwis11437992002-04-12 09:54:03 +000015181 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015182LIBS="-lthread $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015183cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015184/* confdefs.h. */
15185_ACEOF
15186cat confdefs.h >>conftest.$ac_ext
15187cat >>conftest.$ac_ext <<_ACEOF
15188/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015189
Martin v. Löwiseba40652007-08-30 20:10:57 +000015190/* Override any GCC internal prototype to avoid an error.
15191 Use char because int might match the return type of a GCC
15192 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015193#ifdef __cplusplus
15194extern "C"
15195#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015196char thr_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015197int
15198main ()
15199{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015200return thr_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015201 ;
15202 return 0;
15203}
15204_ACEOF
15205rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015206if { (ac_try="$ac_link"
15207case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015213 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest$ac_exeext &&
15222 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015223 ac_cv_lib_thread_thr_create=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015224else
Martin v. Löwis11437992002-04-12 09:54:03 +000015225 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015226sed 's/^/| /' conftest.$ac_ext >&5
15227
Martin v. Löwiseba40652007-08-30 20:10:57 +000015228 ac_cv_lib_thread_thr_create=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000015229fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015230
15231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015232 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015233LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015234fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015235{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15236echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015237if test $ac_cv_lib_thread_thr_create = yes; then
15238 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015239#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015240_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000015241
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000015242 LIBS="$LIBS -lthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015243 THREADOBJ="Python/thread.o"
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000015244 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +000015245fi
15246
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000015247 fi
Michael W. Hudson54241132001-12-07 15:38:26 +000015248
Martin v. Löwis130fb172001-07-19 11:00:41 +000015249 if test "$USE_THREAD_MODULE" != "#"
15250 then
15251 # If the above checks didn't disable threads, (at least) OSF1
15252 # needs this '-threads' argument during linking.
15253 case $ac_sys_system in
15254 OSF1) LDLAST=-threads;;
15255 esac
Jeremy Hylton1a2ca862000-10-16 16:59:12 +000015256 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015257fi
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000015258
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015259if test "$posix_threads" = "yes"; then
15260 if test "$unistd_defines_pthreads" = "no"; then
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000015261
15262cat >>confdefs.h <<\_ACEOF
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015263#define _POSIX_THREADS 1
15264_ACEOF
15265
15266 fi
15267
15268 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15269 case $ac_sys_system/$ac_sys_release in
15270 SunOS/5.6)
15271cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000015272#define HAVE_PTHREAD_DESTRUCTOR 1
15273_ACEOF
15274
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015275 ;;
15276 SunOS/5.8)
15277cat >>confdefs.h <<\_ACEOF
15278#define HAVE_BROKEN_POSIX_SEMAPHORES 1
15279_ACEOF
15280
15281 ;;
Christian Heimescba36bb2008-01-30 22:54:18 +000015282 AIX/5)
15283cat >>confdefs.h <<\_ACEOF
15284#define HAVE_BROKEN_POSIX_SEMAPHORES 1
15285_ACEOF
15286
15287 ;;
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015288 esac
15289
Martin v. Löwiseba40652007-08-30 20:10:57 +000015290 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15291echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015292 if test "${ac_cv_pthread_system_supported+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15294else
15295 if test "$cross_compiling" = yes; then
15296 ac_cv_pthread_system_supported=no
15297else
15298 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015299/* confdefs.h. */
15300_ACEOF
15301cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF
15303/* end confdefs.h. */
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015304#include <pthread.h>
15305 void *foo(void *parm) {
15306 return NULL;
15307 }
15308 main() {
15309 pthread_attr_t attr;
15310 pthread_t id;
15311 if (pthread_attr_init(&attr)) exit(-1);
15312 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15313 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15314 exit(0);
15315 }
15316_ACEOF
15317rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015318if { (ac_try="$ac_link"
15319case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15322esac
15323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_link") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000015328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331esac
15332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15337 ac_cv_pthread_system_supported=yes
15338else
15339 echo "$as_me: program exited with status $ac_status" >&5
15340echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015341sed 's/^/| /' conftest.$ac_ext >&5
15342
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015343( exit $ac_status )
15344ac_cv_pthread_system_supported=no
15345fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015347fi
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000015348
Martin v. Löwiseba40652007-08-30 20:10:57 +000015349
15350
Guido van Rossum627b2d71993-12-24 10:39:16 +000015351fi
15352
Martin v. Löwiseba40652007-08-30 20:10:57 +000015353 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15354echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015355 if test "$ac_cv_pthread_system_supported" = "yes"; then
15356
15357cat >>confdefs.h <<\_ACEOF
15358#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15359_ACEOF
15360
15361 fi
15362
15363for ac_func in pthread_sigmask
15364do
15365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000015366{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15368if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370else
15371 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015372/* confdefs.h. */
15373_ACEOF
15374cat confdefs.h >>conftest.$ac_ext
15375cat >>conftest.$ac_ext <<_ACEOF
15376/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000015377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15379#define $ac_func innocuous_$ac_func
15380
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015381/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000015382 which can conflict with char $ac_func (); below.
15383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000015384 <limits.h> exists even on freestanding compilers. */
15385
15386#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000015387# include <limits.h>
15388#else
15389# include <assert.h>
15390#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000015391
15392#undef $ac_func
15393
Martin v. Löwiseba40652007-08-30 20:10:57 +000015394/* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015397#ifdef __cplusplus
15398extern "C"
15399#endif
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015400char $ac_func ();
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015401/* The GNU C library defines this for functions which it implements
15402 to always fail with ENOSYS. Some functions are actually named
15403 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000015404#if defined __stub_$ac_func || defined __stub___$ac_func
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015405choke me
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015406#endif
15407
Skip Montanaro6dead952003-09-25 14:50:04 +000015408int
15409main ()
15410{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015411return $ac_func ();
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015412 ;
15413 return 0;
15414}
15415_ACEOF
15416rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015417if { (ac_try="$ac_link"
15418case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15421esac
15422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015424 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest$ac_exeext &&
15433 $as_test_x conftest$ac_exeext; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015434 eval "$as_ac_var=yes"
15435else
15436 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015437sed 's/^/| /' conftest.$ac_ext >&5
15438
Martin v. Löwiseba40652007-08-30 20:10:57 +000015439 eval "$as_ac_var=no"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015440fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015441
15442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015443 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015444fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015445ac_res=`eval echo '${'$as_ac_var'}'`
15446 { echo "$as_me:$LINENO: result: $ac_res" >&5
15447echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015448if test `eval echo '${'$as_ac_var'}'` = yes; then
15449 cat >>confdefs.h <<_ACEOF
15450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15451_ACEOF
Jason Tishlerfac083d2003-07-22 15:20:49 +000015452 case $ac_sys_system in
15453 CYGWIN*)
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015454
Jason Tishlerfac083d2003-07-22 15:20:49 +000015455cat >>confdefs.h <<\_ACEOF
15456#define HAVE_BROKEN_PTHREAD_SIGMASK 1
15457_ACEOF
15458
15459 ;;
15460 esac
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015461fi
15462done
15463
15464fi
15465
15466
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015467# Check for enable-ipv6
Martin v. Löwis11437992002-04-12 09:54:03 +000015468
15469
Martin v. Löwiseba40652007-08-30 20:10:57 +000015470{ echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15471echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15472# Check whether --enable-ipv6 was given.
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015473if test "${enable_ipv6+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015474 enableval=$enable_ipv6; case "$enableval" in
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015475 no)
Martin v. Löwiseba40652007-08-30 20:10:57 +000015476 { echo "$as_me:$LINENO: result: no" >&5
15477echo "${ECHO_T}no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015478 ipv6=no
15479 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000015480 *) { echo "$as_me:$LINENO: result: yes" >&5
15481echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015482 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015483#define ENABLE_IPV6 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015484_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015485
15486 ipv6=yes
15487 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000015488 esac
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015489else
Martin v. Löwis11437992002-04-12 09:54:03 +000015490
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015491 if test "$cross_compiling" = yes; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015492 { echo "$as_me:$LINENO: result: no" >&5
15493echo "${ECHO_T}no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015494 ipv6=no
15495
15496else
Martin v. Löwis11437992002-04-12 09:54:03 +000015497 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015498/* confdefs.h. */
15499_ACEOF
15500cat confdefs.h >>conftest.$ac_ext
15501cat >>conftest.$ac_ext <<_ACEOF
15502/* end confdefs.h. */
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015503 /* AF_INET6 available check */
15504#include <sys/types.h>
15505#include <sys/socket.h>
15506main()
15507{
15508 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15509 exit(1);
15510 else
15511 exit(0);
15512}
15513
Martin v. Löwis11437992002-04-12 09:54:03 +000015514_ACEOF
15515rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015516if { (ac_try="$ac_link"
15517case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15520esac
15521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000015526 { (case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15529esac
15530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015535 { echo "$as_me:$LINENO: result: yes" >&5
15536echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015537 ipv6=yes
15538else
Martin v. Löwis11437992002-04-12 09:54:03 +000015539 echo "$as_me: program exited with status $ac_status" >&5
15540echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015541sed 's/^/| /' conftest.$ac_ext >&5
15542
Martin v. Löwis11437992002-04-12 09:54:03 +000015543( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000015544{ echo "$as_me:$LINENO: result: no" >&5
15545echo "${ECHO_T}no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015546 ipv6=no
15547fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015549fi
15550
Martin v. Löwiseba40652007-08-30 20:10:57 +000015551
15552
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000015553if test "$ipv6" = "yes"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015554 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15555echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015556 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015557/* confdefs.h. */
15558_ACEOF
15559cat confdefs.h >>conftest.$ac_ext
15560cat >>conftest.$ac_ext <<_ACEOF
15561/* end confdefs.h. */
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000015562#include <sys/types.h>
15563#include <netinet/in.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000015564int
15565main ()
15566{
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000015567struct sockaddr_in6 x;
15568x.sin6_scope_id;
Martin v. Löwis11437992002-04-12 09:54:03 +000015569 ;
15570 return 0;
15571}
15572_ACEOF
15573rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015574if { (ac_try="$ac_compile"
15575case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015581 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015582 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1
15584 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015586 (exit $ac_status); } && {
15587 test -z "$ac_c_werror_flag" ||
15588 test ! -s conftest.err
15589 } && test -s conftest.$ac_objext; then
15590 { echo "$as_me:$LINENO: result: yes" >&5
15591echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000015592 ipv6=yes
15593else
Martin v. Löwis11437992002-04-12 09:54:03 +000015594 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015595sed 's/^/| /' conftest.$ac_ext >&5
15596
Martin v. Löwiseba40652007-08-30 20:10:57 +000015597 { echo "$as_me:$LINENO: result: no" >&5
15598echo "${ECHO_T}no" >&6; }
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000015599 ipv6=no
15600fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015601
15602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000015603fi
15604
15605if test "$ipv6" = "yes"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015606 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000015607#define ENABLE_IPV6 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015608_ACEOF
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000015609
15610fi
15611
Martin v. Löwiseba40652007-08-30 20:10:57 +000015612fi
15613
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015614
15615ipv6type=unknown
15616ipv6lib=none
15617ipv6trylibc=no
15618
15619if test "$ipv6" = "yes"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015620 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15621echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
Guido van Rossumb8552162001-09-05 14:58:11 +000015622 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15623 do
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015624 case $i in
15625 inria)
Martin v. Löwis11437992002-04-12 09:54:03 +000015626 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
15631/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015632
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015633#include <netinet/in.h>
15634#ifdef IPV6_INRIA_VERSION
15635yes
15636#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015637_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000015639 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000015640 ipv6type=$i
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015641fi
15642rm -f conftest*
15643
15644 ;;
15645 kame)
Martin v. Löwis11437992002-04-12 09:54:03 +000015646 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015647/* confdefs.h. */
15648_ACEOF
15649cat confdefs.h >>conftest.$ac_ext
15650cat >>conftest.$ac_ext <<_ACEOF
15651/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015652
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015653#include <netinet/in.h>
15654#ifdef __KAME__
15655yes
15656#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015657_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000015659 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015660 ipv6type=$i;
15661 ipv6lib=inet6
15662 ipv6libdir=/usr/local/v6/lib
15663 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015664fi
15665rm -f conftest*
15666
15667 ;;
15668 linux-glibc)
Martin v. Löwis11437992002-04-12 09:54:03 +000015669 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
15674/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015675
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015676#include <features.h>
15677#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15678yes
15679#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015680_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000015682 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015683 ipv6type=$i;
15684 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015685fi
15686rm -f conftest*
15687
15688 ;;
15689 linux-inet6)
15690 if test -d /usr/inet6; then
15691 ipv6type=$i
15692 ipv6lib=inet6
15693 ipv6libdir=/usr/inet6/lib
Skip Montanarodecc6a42003-01-01 20:07:49 +000015694 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015695 fi
15696 ;;
15697 solaris)
15698 if test -f /etc/netconfig; then
15699 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15700 ipv6type=$i
15701 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015702 fi
15703 fi
15704 ;;
15705 toshiba)
Martin v. Löwis11437992002-04-12 09:54:03 +000015706 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015707/* confdefs.h. */
15708_ACEOF
15709cat confdefs.h >>conftest.$ac_ext
15710cat >>conftest.$ac_ext <<_ACEOF
15711/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015712
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015713#include <sys/param.h>
15714#ifdef _TOSHIBA_INET6
15715yes
15716#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015717_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000015719 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015720 ipv6type=$i;
15721 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000015722 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015723fi
15724rm -f conftest*
15725
15726 ;;
15727 v6d)
Martin v. Löwis11437992002-04-12 09:54:03 +000015728 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015734
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015735#include </usr/local/v6/include/sys/v6config.h>
15736#ifdef __V6D__
15737yes
15738#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015739_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000015741 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015742 ipv6type=$i;
15743 ipv6lib=v6;
15744 ipv6libdir=/usr/local/v6/lib;
Skip Montanarodecc6a42003-01-01 20:07:49 +000015745 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015746fi
15747rm -f conftest*
15748
15749 ;;
15750 zeta)
Martin v. Löwis11437992002-04-12 09:54:03 +000015751 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015752/* confdefs.h. */
15753_ACEOF
15754cat confdefs.h >>conftest.$ac_ext
15755cat >>conftest.$ac_ext <<_ACEOF
15756/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015757
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015758#include <sys/param.h>
15759#ifdef _ZETA_MINAMI_INET6
15760yes
15761#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015762_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000015764 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015765 ipv6type=$i;
15766 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000015767 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015768fi
15769rm -f conftest*
15770
15771 ;;
15772 esac
15773 if test "$ipv6type" != "unknown"; then
15774 break
15775 fi
15776 done
Martin v. Löwiseba40652007-08-30 20:10:57 +000015777 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15778echo "${ECHO_T}$ipv6type" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015779fi
15780
15781if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15782 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15783 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15784 echo "using lib$ipv6lib"
15785 else
15786 if test $ipv6trylibc = "yes"; then
15787 echo "using libc"
15788 else
15789 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15790 echo "You need to fetch lib$ipv6lib.a from appropriate"
15791 echo 'ipv6 kit and compile beforehand.'
15792 exit 1
15793 fi
15794 fi
15795fi
15796
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000015797{ echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15798echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15799cat >conftest.$ac_ext <<_ACEOF
15800/* confdefs.h. */
15801_ACEOF
15802cat confdefs.h >>conftest.$ac_ext
15803cat >>conftest.$ac_ext <<_ACEOF
15804/* end confdefs.h. */
15805#include <Carbon/Carbon.h>
15806int
15807main ()
15808{
15809FSIORefNum fRef = 0
15810 ;
15811 return 0;
15812}
15813_ACEOF
15814rm -f conftest.$ac_objext
15815if { (ac_try="$ac_compile"
15816case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819esac
15820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_compile") 2>conftest.er1
15822 ac_status=$?
15823 grep -v '^ *+' conftest.er1 >conftest.err
15824 rm -f conftest.er1
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } && {
15828 test -z "$ac_c_werror_flag" ||
15829 test ! -s conftest.err
15830 } && test -s conftest.$ac_objext; then
15831
15832cat >>confdefs.h <<\_ACEOF
15833#define HAVE_OSX105_SDK 1
15834_ACEOF
15835
15836 { echo "$as_me:$LINENO: result: yes" >&5
15837echo "${ECHO_T}yes" >&6; }
15838else
15839 echo "$as_me: failed program was:" >&5
15840sed 's/^/| /' conftest.$ac_ext >&5
15841
15842 { echo "$as_me:$LINENO: result: no" >&5
15843echo "${ECHO_T}no" >&6; }
15844
15845fi
15846
15847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000015849# Check for --with-doc-strings
Martin v. Löwiseba40652007-08-30 20:10:57 +000015850{ echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15851echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000015852
Martin v. Löwiseba40652007-08-30 20:10:57 +000015853# Check whether --with-doc-strings was given.
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000015854if test "${with_doc_strings+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015855 withval=$with_doc_strings;
15856fi
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000015857
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000015858
15859if test -z "$with_doc_strings"
15860then with_doc_strings="yes"
15861fi
15862if test "$with_doc_strings" != "no"
15863then
15864
15865cat >>confdefs.h <<\_ACEOF
15866#define WITH_DOC_STRINGS 1
15867_ACEOF
15868
15869fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015870{ echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15871echo "${ECHO_T}$with_doc_strings" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000015872
Neil Schemenauera35c6882001-02-27 04:45:05 +000015873# Check for Python-specific malloc support
Martin v. Löwiseba40652007-08-30 20:10:57 +000015874{ echo "$as_me:$LINENO: checking for --with-tsc" >&5
15875echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000015876
Martin v. Löwiseba40652007-08-30 20:10:57 +000015877# Check whether --with-tsc was given.
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000015878if test "${with_tsc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015879 withval=$with_tsc;
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000015880if test "$withval" != no
15881then
15882
15883cat >>confdefs.h <<\_ACEOF
15884#define WITH_TSC 1
15885_ACEOF
15886
Martin v. Löwiseba40652007-08-30 20:10:57 +000015887 { echo "$as_me:$LINENO: result: yes" >&5
15888echo "${ECHO_T}yes" >&6; }
15889else { echo "$as_me:$LINENO: result: no" >&5
15890echo "${ECHO_T}no" >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000015891fi
15892else
Martin v. Löwiseba40652007-08-30 20:10:57 +000015893 { echo "$as_me:$LINENO: result: no" >&5
15894echo "${ECHO_T}no" >&6; }
15895fi
15896
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000015897
15898# Check for Python-specific malloc support
Martin v. Löwiseba40652007-08-30 20:10:57 +000015899{ echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15900echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015901
Martin v. Löwiseba40652007-08-30 20:10:57 +000015902# Check whether --with-pymalloc was given.
Neil Schemenauera35c6882001-02-27 04:45:05 +000015903if test "${with_pymalloc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015904 withval=$with_pymalloc;
15905fi
Michael W. Hudson54241132001-12-07 15:38:26 +000015906
Neil Schemenauera35c6882001-02-27 04:45:05 +000015907
Neil Schemenauer16c22972002-03-22 15:34:49 +000015908if test -z "$with_pymalloc"
15909then with_pymalloc="yes"
15910fi
15911if test "$with_pymalloc" != "no"
15912then
Martin v. Löwis11437992002-04-12 09:54:03 +000015913
15914cat >>confdefs.h <<\_ACEOF
Neil Schemenauer16c22972002-03-22 15:34:49 +000015915#define WITH_PYMALLOC 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015916_ACEOF
Neil Schemenauer16c22972002-03-22 15:34:49 +000015917
15918fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015919{ echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15920echo "${ECHO_T}$with_pymalloc" >&6; }
Neil Schemenauer16c22972002-03-22 15:34:49 +000015921
Barry Warsawef82cd72000-06-30 16:21:01 +000015922# Check for --with-wctype-functions
Martin v. Löwiseba40652007-08-30 20:10:57 +000015923{ echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15924echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015925
Martin v. Löwiseba40652007-08-30 20:10:57 +000015926# Check whether --with-wctype-functions was given.
Barry Warsawef82cd72000-06-30 16:21:01 +000015927if test "${with_wctype_functions+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015928 withval=$with_wctype_functions;
Barry Warsawef82cd72000-06-30 16:21:01 +000015929if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +000015930then
15931
15932cat >>confdefs.h <<\_ACEOF
Barry Warsawef82cd72000-06-30 16:21:01 +000015933#define WANT_WCTYPE_FUNCTIONS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015934_ACEOF
15935
Martin v. Löwiseba40652007-08-30 20:10:57 +000015936 { echo "$as_me:$LINENO: result: yes" >&5
15937echo "${ECHO_T}yes" >&6; }
15938else { echo "$as_me:$LINENO: result: no" >&5
15939echo "${ECHO_T}no" >&6; }
Barry Warsawef82cd72000-06-30 16:21:01 +000015940fi
15941else
Martin v. Löwiseba40652007-08-30 20:10:57 +000015942 { echo "$as_me:$LINENO: result: no" >&5
15943echo "${ECHO_T}no" >&6; }
15944fi
15945
Barry Warsawef82cd72000-06-30 16:21:01 +000015946
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000015947# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:30 +000015948
Guido van Rossum98935bf2001-09-05 19:13:16 +000015949DLINCLDIR=.
Guido van Rossum7f43da71994-08-01 12:15:30 +000015950
Guido van Rossume97ee181999-12-20 21:27:22 +000015951# the dlopen() function means we might want to use dynload_shlib.o. some
15952# platforms, such as AIX, have dlopen(), but don't want to use it.
Martin v. Löwis11437992002-04-12 09:54:03 +000015953
Thomas Wouters3a584202000-08-05 23:28:51 +000015954for ac_func in dlopen
15955do
Martin v. Löwis11437992002-04-12 09:54:03 +000015956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000015957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015960 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossume97ee181999-12-20 21:27:22 +000015961else
Martin v. Löwis11437992002-04-12 09:54:03 +000015962 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015963/* confdefs.h. */
15964_ACEOF
15965cat confdefs.h >>conftest.$ac_ext
15966cat >>conftest.$ac_ext <<_ACEOF
15967/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000015968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15970#define $ac_func innocuous_$ac_func
15971
Guido van Rossume97ee181999-12-20 21:27:22 +000015972/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000015973 which can conflict with char $ac_func (); below.
15974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000015975 <limits.h> exists even on freestanding compilers. */
15976
15977#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000015978# include <limits.h>
15979#else
15980# include <assert.h>
15981#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000015982
15983#undef $ac_func
15984
Martin v. Löwiseba40652007-08-30 20:10:57 +000015985/* Override any GCC internal prototype to avoid an error.
15986 Use char because int might match the return type of a GCC
15987 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015988#ifdef __cplusplus
15989extern "C"
15990#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015991char $ac_func ();
Guido van Rossume97ee181999-12-20 21:27:22 +000015992/* The GNU C library defines this for functions which it implements
15993 to always fail with ENOSYS. Some functions are actually named
15994 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000015995#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossume97ee181999-12-20 21:27:22 +000015996choke me
Guido van Rossume97ee181999-12-20 21:27:22 +000015997#endif
15998
Skip Montanaro6dead952003-09-25 14:50:04 +000015999int
16000main ()
16001{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016002return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016003 ;
16004 return 0;
16005}
16006_ACEOF
16007rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016008if { (ac_try="$ac_link"
16009case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012esac
16013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016015 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000016019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016020 (exit $ac_status); } && {
16021 test -z "$ac_c_werror_flag" ||
16022 test ! -s conftest.err
16023 } && test -s conftest$ac_exeext &&
16024 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016025 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000016026else
Martin v. Löwis11437992002-04-12 09:54:03 +000016027 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016028sed 's/^/| /' conftest.$ac_ext >&5
16029
Martin v. Löwiseba40652007-08-30 20:10:57 +000016030 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000016031fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016032
16033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016034 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000016035fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016036ac_res=`eval echo '${'$as_ac_var'}'`
16037 { echo "$as_me:$LINENO: result: $ac_res" >&5
16038echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016039if test `eval echo '${'$as_ac_var'}'` = yes; then
16040 cat >>confdefs.h <<_ACEOF
16041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16042_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000016043
Guido van Rossume97ee181999-12-20 21:27:22 +000016044fi
Thomas Wouters3a584202000-08-05 23:28:51 +000016045done
Guido van Rossume97ee181999-12-20 21:27:22 +000016046
Michael W. Hudson54241132001-12-07 15:38:26 +000016047
Guido van Rossume97ee181999-12-20 21:27:22 +000016048# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16049# loading of modules.
16050
Martin v. Löwiseba40652007-08-30 20:10:57 +000016051{ echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16052echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
Guido van Rossume97ee181999-12-20 21:27:22 +000016053if test -z "$DYNLOADFILE"
16054then
16055 case $ac_sys_system/$ac_sys_release in
Martin v. Löwisc19c5a62003-11-18 20:00:44 +000016056 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16057 if test "$ac_cv_func_dlopen" = yes
16058 then DYNLOADFILE="dynload_shlib.o"
16059 else DYNLOADFILE="dynload_aix.o"
16060 fi
16061 ;;
Guido van Rossume97ee181999-12-20 21:27:22 +000016062 BeOS*) DYNLOADFILE="dynload_beos.o";;
16063 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Anthony Baxter82201742006-04-09 15:07:40 +000016064 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16065 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016066 atheos*) DYNLOADFILE="dynload_atheos.o";;
Guido van Rossume97ee181999-12-20 21:27:22 +000016067 *)
16068 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16069 # out any dynamic loading
16070 if test "$ac_cv_func_dlopen" = yes
16071 then DYNLOADFILE="dynload_shlib.o"
16072 else DYNLOADFILE="dynload_stub.o"
16073 fi
16074 ;;
16075 esac
16076fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016077{ echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16078echo "${ECHO_T}$DYNLOADFILE" >&6; }
Guido van Rossume97ee181999-12-20 21:27:22 +000016079if test "$DYNLOADFILE" != "dynload_stub.o"
16080then
Martin v. Löwis11437992002-04-12 09:54:03 +000016081
16082cat >>confdefs.h <<\_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000016083#define HAVE_DYNAMIC_LOADING 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016084_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000016085
16086fi
16087
Neil Schemenauer4e425612001-06-19 15:44:15 +000016088# MACHDEP_OBJS can be set to platform-specific object files needed by Python
16089
Michael W. Hudson54241132001-12-07 15:38:26 +000016090
Martin v. Löwiseba40652007-08-30 20:10:57 +000016091{ echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16092echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
Neil Schemenauer4e425612001-06-19 15:44:15 +000016093if test -z "$MACHDEP_OBJS"
16094then
Jack Jansene578a632001-08-15 01:27:14 +000016095 MACHDEP_OBJS=$extra_machdep_objs
16096else
16097 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
Neil Schemenauer4e425612001-06-19 15:44:15 +000016098fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016099{ echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16100echo "${ECHO_T}MACHDEP_OBJS" >&6; }
Neil Schemenauer4e425612001-06-19 15:44:15 +000016101
Guido van Rossum627b2d71993-12-24 10:39:16 +000016102# checks for library functions
Martin v. Löwis11437992002-04-12 09:54:03 +000016103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
Martin v. Löwisd6320502004-08-12 13:45:08 +000016174
Martin v. Löwisc3001752005-01-23 09:27:24 +000016175
16176
Neal Norwitz05a45592006-03-20 06:30:08 +000016177
16178
Martin v. Löwis382abef2007-02-19 10:55:19 +000016179
16180
Christian Heimes36281872007-11-30 21:11:28 +000016181
Martin v. Löwisaef18b12008-03-24 13:31:16 +000016182
16183
16184for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16185 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
Martin v. Löwis438b5342002-12-27 10:16:42 +000016186 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
Martin v. Löwisc3001752005-01-23 09:27:24 +000016187 getpriority getpwent getspnam getspent getsid getwd \
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000016188 kill killpg lchmod lchown lstat mkfifo mknod mktime \
Martin v. Löwisa5f09072002-10-11 05:37:59 +000016189 mremap nice pathconf pause plock poll pthread_init \
Guido van Rossum162e38c2003-02-19 15:25:10 +000016190 putenv readlink realpath \
Martin v. Löwisd5843682002-11-21 20:41:28 +000016191 select setegid seteuid setgid \
Martin v. Löwis4daacb12003-03-28 18:37:01 +000016192 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
Skip Montanaro7e11a012004-02-07 12:55:46 +000016193 sigaction siginterrupt sigrelse strftime \
Michael W. Hudson34f20ea2002-05-27 15:08:24 +000016194 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Neal Norwitz05a45592006-03-20 06:30:08 +000016195 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
Guido van Rossum627b2d71993-12-24 10:39:16 +000016196do
Martin v. Löwis11437992002-04-12 09:54:03 +000016197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000016198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016201 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016202else
Martin v. Löwis11437992002-04-12 09:54:03 +000016203 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016204/* confdefs.h. */
16205_ACEOF
16206cat confdefs.h >>conftest.$ac_ext
16207cat >>conftest.$ac_ext <<_ACEOF
16208/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16211#define $ac_func innocuous_$ac_func
16212
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000016213/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000016214 which can conflict with char $ac_func (); below.
16215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016216 <limits.h> exists even on freestanding compilers. */
16217
16218#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000016219# include <limits.h>
16220#else
16221# include <assert.h>
16222#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016223
16224#undef $ac_func
16225
Martin v. Löwiseba40652007-08-30 20:10:57 +000016226/* Override any GCC internal prototype to avoid an error.
16227 Use char because int might match the return type of a GCC
16228 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016229#ifdef __cplusplus
16230extern "C"
16231#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016232char $ac_func ();
Guido van Rossum627b2d71993-12-24 10:39:16 +000016233/* The GNU C library defines this for functions which it implements
16234 to always fail with ENOSYS. Some functions are actually named
16235 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000016236#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossum627b2d71993-12-24 10:39:16 +000016237choke me
Guido van Rossum627b2d71993-12-24 10:39:16 +000016238#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016239
Skip Montanaro6dead952003-09-25 14:50:04 +000016240int
16241main ()
16242{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016243return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016244 ;
16245 return 0;
16246}
16247_ACEOF
16248rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016249if { (ac_try="$ac_link"
16250case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253esac
16254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016256 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000016260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest$ac_exeext &&
16265 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016266 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000016267else
Martin v. Löwis11437992002-04-12 09:54:03 +000016268 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016269sed 's/^/| /' conftest.$ac_ext >&5
16270
Martin v. Löwiseba40652007-08-30 20:10:57 +000016271 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000016272fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016273
16274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016275 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000016276fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016277ac_res=`eval echo '${'$as_ac_var'}'`
16278 { echo "$as_me:$LINENO: result: $ac_res" >&5
16279echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016280if test `eval echo '${'$as_ac_var'}'` = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16283_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000016284
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000016285fi
16286done
16287
Michael W. Hudson54241132001-12-07 15:38:26 +000016288
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016289# For some functions, having a definition is not sufficient, since
16290# we want to take their address.
Martin v. Löwiseba40652007-08-30 20:10:57 +000016291{ echo "$as_me:$LINENO: checking for chroot" >&5
16292echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016293cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016294/* confdefs.h. */
16295_ACEOF
16296cat confdefs.h >>conftest.$ac_ext
16297cat >>conftest.$ac_ext <<_ACEOF
16298/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016299#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016300int
16301main ()
16302{
16303void *x=chroot
16304 ;
16305 return 0;
16306}
16307_ACEOF
16308rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016309if { (ac_try="$ac_compile"
16310case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016316 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016325
16326cat >>confdefs.h <<\_ACEOF
16327#define HAVE_CHROOT 1
16328_ACEOF
16329
Martin v. Löwiseba40652007-08-30 20:10:57 +000016330 { echo "$as_me:$LINENO: result: yes" >&5
16331echo "${ECHO_T}yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016332else
16333 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016334sed 's/^/| /' conftest.$ac_ext >&5
16335
Martin v. Löwiseba40652007-08-30 20:10:57 +000016336 { echo "$as_me:$LINENO: result: no" >&5
16337echo "${ECHO_T}no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016338
16339fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016340
16341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342{ echo "$as_me:$LINENO: checking for link" >&5
16343echo $ECHO_N "checking for link... $ECHO_C" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016344cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016345/* confdefs.h. */
16346_ACEOF
16347cat confdefs.h >>conftest.$ac_ext
16348cat >>conftest.$ac_ext <<_ACEOF
16349/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016350#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016351int
16352main ()
16353{
16354void *x=link
16355 ;
16356 return 0;
16357}
16358_ACEOF
16359rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016360if { (ac_try="$ac_compile"
16361case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364esac
16365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016367 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016368 grep -v '^ *+' conftest.er1 >conftest.err
16369 rm -f conftest.er1
16370 cat conftest.err >&5
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016372 (exit $ac_status); } && {
16373 test -z "$ac_c_werror_flag" ||
16374 test ! -s conftest.err
16375 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016376
16377cat >>confdefs.h <<\_ACEOF
16378#define HAVE_LINK 1
16379_ACEOF
16380
Martin v. Löwiseba40652007-08-30 20:10:57 +000016381 { echo "$as_me:$LINENO: result: yes" >&5
16382echo "${ECHO_T}yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016383else
16384 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016385sed 's/^/| /' conftest.$ac_ext >&5
16386
Martin v. Löwiseba40652007-08-30 20:10:57 +000016387 { echo "$as_me:$LINENO: result: no" >&5
16388echo "${ECHO_T}no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016389
16390fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016391
16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393{ echo "$as_me:$LINENO: checking for symlink" >&5
16394echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016395cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016396/* confdefs.h. */
16397_ACEOF
16398cat confdefs.h >>conftest.$ac_ext
16399cat >>conftest.$ac_ext <<_ACEOF
16400/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016401#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016402int
16403main ()
16404{
16405void *x=symlink
16406 ;
16407 return 0;
16408}
16409_ACEOF
16410rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016411if { (ac_try="$ac_compile"
16412case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415esac
16416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016418 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016419 grep -v '^ *+' conftest.er1 >conftest.err
16420 rm -f conftest.er1
16421 cat conftest.err >&5
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016423 (exit $ac_status); } && {
16424 test -z "$ac_c_werror_flag" ||
16425 test ! -s conftest.err
16426 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016427
16428cat >>confdefs.h <<\_ACEOF
16429#define HAVE_SYMLINK 1
16430_ACEOF
16431
Martin v. Löwiseba40652007-08-30 20:10:57 +000016432 { echo "$as_me:$LINENO: result: yes" >&5
16433echo "${ECHO_T}yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016434else
16435 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016436sed 's/^/| /' conftest.$ac_ext >&5
16437
Martin v. Löwiseba40652007-08-30 20:10:57 +000016438 { echo "$as_me:$LINENO: result: no" >&5
16439echo "${ECHO_T}no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016440
16441fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016442
16443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444{ echo "$as_me:$LINENO: checking for fchdir" >&5
16445echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016446cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016447/* confdefs.h. */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016452#include <unistd.h>
16453int
16454main ()
16455{
16456void *x=fchdir
16457 ;
16458 return 0;
16459}
16460_ACEOF
16461rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016462if { (ac_try="$ac_compile"
16463case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16466esac
16467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016469 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016474 (exit $ac_status); } && {
16475 test -z "$ac_c_werror_flag" ||
16476 test ! -s conftest.err
16477 } && test -s conftest.$ac_objext; then
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016478
16479cat >>confdefs.h <<\_ACEOF
16480#define HAVE_FCHDIR 1
16481_ACEOF
16482
Martin v. Löwiseba40652007-08-30 20:10:57 +000016483 { echo "$as_me:$LINENO: result: yes" >&5
16484echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016485else
16486 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016487sed 's/^/| /' conftest.$ac_ext >&5
16488
Martin v. Löwiseba40652007-08-30 20:10:57 +000016489 { echo "$as_me:$LINENO: result: no" >&5
16490echo "${ECHO_T}no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016491
16492fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016493
16494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495{ echo "$as_me:$LINENO: checking for fsync" >&5
16496echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016497cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016498/* confdefs.h. */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016503#include <unistd.h>
16504int
16505main ()
16506{
16507void *x=fsync
16508 ;
16509 return 0;
16510}
16511_ACEOF
16512rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016513if { (ac_try="$ac_compile"
16514case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517esac
16518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016520 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016525 (exit $ac_status); } && {
16526 test -z "$ac_c_werror_flag" ||
16527 test ! -s conftest.err
16528 } && test -s conftest.$ac_objext; then
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016529
16530cat >>confdefs.h <<\_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016531#define HAVE_FSYNC 1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016532_ACEOF
16533
Martin v. Löwiseba40652007-08-30 20:10:57 +000016534 { echo "$as_me:$LINENO: result: yes" >&5
16535echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016536else
16537 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016538sed 's/^/| /' conftest.$ac_ext >&5
16539
Martin v. Löwiseba40652007-08-30 20:10:57 +000016540 { echo "$as_me:$LINENO: result: no" >&5
16541echo "${ECHO_T}no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016542
16543fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016544
16545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546{ echo "$as_me:$LINENO: checking for fdatasync" >&5
16547echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016548cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016549/* confdefs.h. */
16550_ACEOF
16551cat confdefs.h >>conftest.$ac_ext
16552cat >>conftest.$ac_ext <<_ACEOF
16553/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016554#include <unistd.h>
16555int
16556main ()
16557{
16558void *x=fdatasync
16559 ;
16560 return 0;
16561}
16562_ACEOF
16563rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016564if { (ac_try="$ac_compile"
16565case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568esac
16569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016571 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016576 (exit $ac_status); } && {
16577 test -z "$ac_c_werror_flag" ||
16578 test ! -s conftest.err
16579 } && test -s conftest.$ac_objext; then
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016580
16581cat >>confdefs.h <<\_ACEOF
16582#define HAVE_FDATASYNC 1
16583_ACEOF
16584
Martin v. Löwiseba40652007-08-30 20:10:57 +000016585 { echo "$as_me:$LINENO: result: yes" >&5
16586echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016587else
16588 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016589sed 's/^/| /' conftest.$ac_ext >&5
16590
Martin v. Löwiseba40652007-08-30 20:10:57 +000016591 { echo "$as_me:$LINENO: result: no" >&5
16592echo "${ECHO_T}no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016593
16594fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016595
16596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000016597{ echo "$as_me:$LINENO: checking for epoll" >&5
16598echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16599cat >conftest.$ac_ext <<_ACEOF
16600/* confdefs.h. */
16601_ACEOF
16602cat confdefs.h >>conftest.$ac_ext
16603cat >>conftest.$ac_ext <<_ACEOF
16604/* end confdefs.h. */
16605#include <sys/epoll.h>
16606int
16607main ()
16608{
16609void *x=epoll_create
16610 ;
16611 return 0;
16612}
16613_ACEOF
16614rm -f conftest.$ac_objext
16615if { (ac_try="$ac_compile"
16616case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619esac
16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_compile") 2>conftest.er1
16622 ac_status=$?
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && {
16628 test -z "$ac_c_werror_flag" ||
16629 test ! -s conftest.err
16630 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016631
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000016632cat >>confdefs.h <<\_ACEOF
16633#define HAVE_EPOLL 1
16634_ACEOF
16635
16636 { echo "$as_me:$LINENO: result: yes" >&5
16637echo "${ECHO_T}yes" >&6; }
16638else
16639 echo "$as_me: failed program was:" >&5
16640sed 's/^/| /' conftest.$ac_ext >&5
16641
16642 { echo "$as_me:$LINENO: result: no" >&5
16643echo "${ECHO_T}no" >&6; }
16644
16645fi
16646
16647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648{ echo "$as_me:$LINENO: checking for kqueue" >&5
16649echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16650cat >conftest.$ac_ext <<_ACEOF
16651/* confdefs.h. */
16652_ACEOF
16653cat confdefs.h >>conftest.$ac_ext
16654cat >>conftest.$ac_ext <<_ACEOF
16655/* end confdefs.h. */
16656
16657#include <sys/types.h>
16658#include <sys/event.h>
16659
16660int
16661main ()
16662{
16663int x=kqueue()
16664 ;
16665 return 0;
16666}
16667_ACEOF
16668rm -f conftest.$ac_objext
16669if { (ac_try="$ac_compile"
16670case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673esac
16674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_compile") 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } && {
16682 test -z "$ac_c_werror_flag" ||
16683 test ! -s conftest.err
16684 } && test -s conftest.$ac_objext; then
16685
16686cat >>confdefs.h <<\_ACEOF
16687#define HAVE_KQUEUE 1
16688_ACEOF
16689
16690 { echo "$as_me:$LINENO: result: yes" >&5
16691echo "${ECHO_T}yes" >&6; }
16692else
16693 echo "$as_me: failed program was:" >&5
16694sed 's/^/| /' conftest.$ac_ext >&5
16695
16696 { echo "$as_me:$LINENO: result: no" >&5
16697echo "${ECHO_T}no" >&6; }
16698
16699fi
16700
16701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:28 +000016702# On some systems (eg. FreeBSD 5), we would find a definition of the
16703# functions ctermid_r, setgroups in the library, but no prototype
16704# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16705# address to avoid compiler warnings and potential miscompilations
16706# because of the missing prototypes.
16707
Martin v. Löwiseba40652007-08-30 20:10:57 +000016708{ echo "$as_me:$LINENO: checking for ctermid_r" >&5
16709echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000016710cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:28 +000016716
16717#include "confdefs.h"
16718#include <stdio.h>
16719
Martin v. Löwisd5843682002-11-21 20:41:28 +000016720int
16721main ()
16722{
16723void* p = ctermid_r
16724 ;
16725 return 0;
16726}
16727_ACEOF
16728rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016729if { (ac_try="$ac_compile"
16730case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733esac
16734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisd5843682002-11-21 20:41:28 +000016736 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
Martin v. Löwisd5843682002-11-21 20:41:28 +000016740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest.$ac_objext; then
Martin v. Löwisd5843682002-11-21 20:41:28 +000016745
16746cat >>confdefs.h <<\_ACEOF
16747#define HAVE_CTERMID_R 1
16748_ACEOF
16749
Martin v. Löwiseba40652007-08-30 20:10:57 +000016750 { echo "$as_me:$LINENO: result: yes" >&5
16751echo "${ECHO_T}yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000016752else
16753 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016754sed 's/^/| /' conftest.$ac_ext >&5
16755
Martin v. Löwiseba40652007-08-30 20:10:57 +000016756 { echo "$as_me:$LINENO: result: no" >&5
16757echo "${ECHO_T}no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000016758
16759fi
Martin v. Löwisd5843682002-11-21 20:41:28 +000016760
Martin v. Löwiseba40652007-08-30 20:10:57 +000016761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762
16763{ echo "$as_me:$LINENO: checking for flock" >&5
16764echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016765cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016766/* confdefs.h. */
16767_ACEOF
16768cat confdefs.h >>conftest.$ac_ext
16769cat >>conftest.$ac_ext <<_ACEOF
16770/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016771
16772#include "confdefs.h"
16773#include <sys/file.h>
16774
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016775int
16776main ()
16777{
16778void* p = flock
16779 ;
16780 return 0;
16781}
16782_ACEOF
16783rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016784if { (ac_try="$ac_compile"
16785case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788esac
16789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016791 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016796 (exit $ac_status); } && {
16797 test -z "$ac_c_werror_flag" ||
16798 test ! -s conftest.err
16799 } && test -s conftest.$ac_objext; then
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016800
16801cat >>confdefs.h <<\_ACEOF
16802#define HAVE_FLOCK 1
16803_ACEOF
16804
Martin v. Löwiseba40652007-08-30 20:10:57 +000016805 { echo "$as_me:$LINENO: result: yes" >&5
16806echo "${ECHO_T}yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016807else
16808 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016809sed 's/^/| /' conftest.$ac_ext >&5
16810
Martin v. Löwiseba40652007-08-30 20:10:57 +000016811 { echo "$as_me:$LINENO: result: no" >&5
16812echo "${ECHO_T}no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016813
16814fi
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016815
Martin v. Löwiseba40652007-08-30 20:10:57 +000016816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817
16818{ echo "$as_me:$LINENO: checking for getpagesize" >&5
16819echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016820cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016821/* confdefs.h. */
16822_ACEOF
16823cat confdefs.h >>conftest.$ac_ext
16824cat >>conftest.$ac_ext <<_ACEOF
16825/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016826
16827#include "confdefs.h"
16828#include <unistd.h>
16829
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016830int
16831main ()
16832{
16833void* p = getpagesize
16834 ;
16835 return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016839if { (ac_try="$ac_compile"
16840case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843esac
16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016846 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest.$ac_objext; then
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016855
16856cat >>confdefs.h <<\_ACEOF
16857#define HAVE_GETPAGESIZE 1
16858_ACEOF
16859
Martin v. Löwiseba40652007-08-30 20:10:57 +000016860 { echo "$as_me:$LINENO: result: yes" >&5
16861echo "${ECHO_T}yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016862else
16863 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016864sed 's/^/| /' conftest.$ac_ext >&5
16865
Martin v. Löwiseba40652007-08-30 20:10:57 +000016866 { echo "$as_me:$LINENO: result: no" >&5
16867echo "${ECHO_T}no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016868
16869fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016870
16871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000016872
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000016873for ac_prog in true
16874do
16875 # Extract the first word of "$ac_prog", so it can be a program name with args.
16876set dummy $ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +000016877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000016879if test "${ac_cv_prog_TRUE+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881else
16882 if test -n "$TRUE"; then
16883 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16884else
16885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16886for as_dir in $PATH
16887do
16888 IFS=$as_save_IFS
16889 test -z "$as_dir" && as_dir=.
16890 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +000016891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000016892 ac_cv_prog_TRUE="$ac_prog"
16893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16894 break 2
16895 fi
16896done
16897done
Martin v. Löwiseba40652007-08-30 20:10:57 +000016898IFS=$as_save_IFS
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000016899
16900fi
16901fi
16902TRUE=$ac_cv_prog_TRUE
16903if test -n "$TRUE"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000016904 { echo "$as_me:$LINENO: result: $TRUE" >&5
16905echo "${ECHO_T}$TRUE" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000016906else
Martin v. Löwiseba40652007-08-30 20:10:57 +000016907 { echo "$as_me:$LINENO: result: no" >&5
16908echo "${ECHO_T}no" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000016909fi
16910
Martin v. Löwiseba40652007-08-30 20:10:57 +000016911
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000016912 test -n "$TRUE" && break
16913done
16914test -n "$TRUE" || TRUE="/bin/true"
16915
16916
Martin v. Löwiseba40652007-08-30 20:10:57 +000016917{ echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16918echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016919if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921else
16922 ac_check_lib_save_LIBS=$LIBS
16923LIBS="-lc $LIBS"
16924cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016925/* confdefs.h. */
16926_ACEOF
16927cat confdefs.h >>conftest.$ac_ext
16928cat >>conftest.$ac_ext <<_ACEOF
16929/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016930
Martin v. Löwiseba40652007-08-30 20:10:57 +000016931/* Override any GCC internal prototype to avoid an error.
16932 Use char because int might match the return type of a GCC
16933 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016934#ifdef __cplusplus
16935extern "C"
16936#endif
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016937char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016938int
16939main ()
16940{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016941return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016942 ;
16943 return 0;
16944}
16945_ACEOF
16946rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016947if { (ac_try="$ac_link"
16948case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16951esac
16952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016954 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016959 (exit $ac_status); } && {
16960 test -z "$ac_c_werror_flag" ||
16961 test ! -s conftest.err
16962 } && test -s conftest$ac_exeext &&
16963 $as_test_x conftest$ac_exeext; then
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016964 ac_cv_lib_c_inet_aton=yes
16965else
16966 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016967sed 's/^/| /' conftest.$ac_ext >&5
16968
Martin v. Löwiseba40652007-08-30 20:10:57 +000016969 ac_cv_lib_c_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016970fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016971
16972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016973 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016974LIBS=$ac_check_lib_save_LIBS
16975fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016976{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16977echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016978if test $ac_cv_lib_c_inet_aton = yes; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000016979 $ac_cv_prog_TRUE
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016980else
16981
Martin v. Löwiseba40652007-08-30 20:10:57 +000016982{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16983echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016984if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986else
16987 ac_check_lib_save_LIBS=$LIBS
16988LIBS="-lresolv $LIBS"
16989cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016995
Martin v. Löwiseba40652007-08-30 20:10:57 +000016996/* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000016999#ifdef __cplusplus
17000extern "C"
17001#endif
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017002char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017003int
17004main ()
17005{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017006return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017007 ;
17008 return 0;
17009}
17010_ACEOF
17011rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017012if { (ac_try="$ac_link"
17013case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016esac
17017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017019 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest$ac_exeext &&
17028 $as_test_x conftest$ac_exeext; then
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017029 ac_cv_lib_resolv_inet_aton=yes
17030else
17031 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017032sed 's/^/| /' conftest.$ac_ext >&5
17033
Martin v. Löwiseba40652007-08-30 20:10:57 +000017034 ac_cv_lib_resolv_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017035fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017036
17037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017038 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017039LIBS=$ac_check_lib_save_LIBS
17040fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017041{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17042echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017043if test $ac_cv_lib_resolv_inet_aton = yes; then
17044 cat >>confdefs.h <<_ACEOF
17045#define HAVE_LIBRESOLV 1
17046_ACEOF
17047
17048 LIBS="-lresolv $LIBS"
17049
17050fi
17051
17052
17053fi
17054
17055
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000017056# On Tru64, chflags seems to be present, but calling it will
17057# exit Python
17058{ echo "$as_me:$LINENO: checking for chflags" >&5
17059echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17060if test "$cross_compiling" = yes; then
17061 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17062See \`config.log' for more details." >&5
17063echo "$as_me: error: cannot run test program while cross compiling
17064See \`config.log' for more details." >&2;}
17065 { (exit 1); exit 1; }; }
17066else
17067 cat >conftest.$ac_ext <<_ACEOF
17068/* confdefs.h. */
17069_ACEOF
17070cat confdefs.h >>conftest.$ac_ext
17071cat >>conftest.$ac_ext <<_ACEOF
17072/* end confdefs.h. */
17073
17074#include <sys/stat.h>
17075#include <unistd.h>
17076int main(int argc, char*argv[])
17077{
17078 if(chflags(argv[0], 0) != 0)
17079 return 1;
17080 return 0;
17081}
17082
17083_ACEOF
17084rm -f conftest$ac_exeext
17085if { (ac_try="$ac_link"
17086case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_link") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098esac
17099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104
17105cat >>confdefs.h <<\_ACEOF
17106#define HAVE_CHFLAGS 1
17107_ACEOF
17108
17109 { echo "$as_me:$LINENO: result: yes" >&5
17110echo "${ECHO_T}yes" >&6; }
17111else
17112 echo "$as_me: program exited with status $ac_status" >&5
17113echo "$as_me: failed program was:" >&5
17114sed 's/^/| /' conftest.$ac_ext >&5
17115
17116( exit $ac_status )
17117{ echo "$as_me:$LINENO: result: no" >&5
17118echo "${ECHO_T}no" >&6; }
17119
17120fi
17121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17122fi
17123
17124
17125
17126{ echo "$as_me:$LINENO: checking for lchflags" >&5
17127echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17128if test "$cross_compiling" = yes; then
17129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17130See \`config.log' for more details." >&5
17131echo "$as_me: error: cannot run test program while cross compiling
17132See \`config.log' for more details." >&2;}
17133 { (exit 1); exit 1; }; }
17134else
17135 cat >conftest.$ac_ext <<_ACEOF
17136/* confdefs.h. */
17137_ACEOF
17138cat confdefs.h >>conftest.$ac_ext
17139cat >>conftest.$ac_ext <<_ACEOF
17140/* end confdefs.h. */
17141
17142#include <sys/stat.h>
17143#include <unistd.h>
17144int main(int argc, char*argv[])
17145{
17146 if(lchflags(argv[0], 0) != 0)
17147 return 1;
17148 return 0;
17149}
17150
17151_ACEOF
17152rm -f conftest$ac_exeext
17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17163 { (case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166esac
17167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_try") 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172
17173cat >>confdefs.h <<\_ACEOF
17174#define HAVE_LCHFLAGS 1
17175_ACEOF
17176
17177 { echo "$as_me:$LINENO: result: yes" >&5
17178echo "${ECHO_T}yes" >&6; }
17179else
17180 echo "$as_me: program exited with status $ac_status" >&5
17181echo "$as_me: failed program was:" >&5
17182sed 's/^/| /' conftest.$ac_ext >&5
17183
17184( exit $ac_status )
17185{ echo "$as_me:$LINENO: result: no" >&5
17186echo "${ECHO_T}no" >&6; }
17187
17188fi
17189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17190fi
17191
17192
17193
Ronald Oussorenf8752642006-07-06 10:13:35 +000017194case $ac_sys_system/$ac_sys_release in
17195Darwin/*)
17196 _CUR_CFLAGS="${CFLAGS}"
17197 _CUR_LDFLAGS="${LDFLAGS}"
17198 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17199 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17200 ;;
17201esac
17202
Martin v. Löwiseba40652007-08-30 20:10:57 +000017203{ echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17204echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017205if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208 ac_check_lib_save_LIBS=$LIBS
17209LIBS="-lz $LIBS"
17210cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216
Martin v. Löwiseba40652007-08-30 20:10:57 +000017217/* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017220#ifdef __cplusplus
17221extern "C"
17222#endif
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017223char inflateCopy ();
17224int
17225main ()
17226{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017227return inflateCopy ();
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017228 ;
17229 return 0;
17230}
17231_ACEOF
17232rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017233if { (ac_try="$ac_link"
17234case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237esac
17238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017245 (exit $ac_status); } && {
17246 test -z "$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17248 } && test -s conftest$ac_exeext &&
17249 $as_test_x conftest$ac_exeext; then
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017250 ac_cv_lib_z_inflateCopy=yes
17251else
17252 echo "$as_me: failed program was:" >&5
17253sed 's/^/| /' conftest.$ac_ext >&5
17254
Martin v. Löwiseba40652007-08-30 20:10:57 +000017255 ac_cv_lib_z_inflateCopy=no
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017256fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017257
17258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017259 conftest$ac_exeext conftest.$ac_ext
17260LIBS=$ac_check_lib_save_LIBS
17261fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017262{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17263echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017264if test $ac_cv_lib_z_inflateCopy = yes; then
17265
17266cat >>confdefs.h <<\_ACEOF
17267#define HAVE_ZLIB_COPY 1
17268_ACEOF
17269
17270fi
17271
17272
Ronald Oussorenf8752642006-07-06 10:13:35 +000017273case $ac_sys_system/$ac_sys_release in
17274Darwin/*)
17275 CFLAGS="${_CUR_CFLAGS}"
17276 LDFLAGS="${_CUR_LDFLAGS}"
17277 ;;
17278esac
17279
Martin v. Löwiseba40652007-08-30 20:10:57 +000017280{ echo "$as_me:$LINENO: checking for hstrerror" >&5
17281echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017282cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000017288
17289#include "confdefs.h"
17290#include <netdb.h>
17291
Martin v. Löwise9416172003-05-03 10:12:45 +000017292int
17293main ()
17294{
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017295void* p = hstrerror; hstrerror(0)
Martin v. Löwise9416172003-05-03 10:12:45 +000017296 ;
17297 return 0;
17298}
17299_ACEOF
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017300rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017301if { (ac_try="$ac_link"
17302case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17305esac
17306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_link") 2>conftest.er1
Martin v. Löwise9416172003-05-03 10:12:45 +000017308 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -f conftest.er1
17311 cat conftest.err >&5
Martin v. Löwise9416172003-05-03 10:12:45 +000017312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest$ac_exeext &&
17317 $as_test_x conftest$ac_exeext; then
Martin v. Löwise9416172003-05-03 10:12:45 +000017318
17319cat >>confdefs.h <<\_ACEOF
17320#define HAVE_HSTRERROR 1
17321_ACEOF
17322
Martin v. Löwiseba40652007-08-30 20:10:57 +000017323 { echo "$as_me:$LINENO: result: yes" >&5
17324echo "${ECHO_T}yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017325else
17326 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017327sed 's/^/| /' conftest.$ac_ext >&5
17328
Martin v. Löwiseba40652007-08-30 20:10:57 +000017329 { echo "$as_me:$LINENO: result: no" >&5
17330echo "${ECHO_T}no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017331
17332fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017333
17334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017335 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000017336
Martin v. Löwiseba40652007-08-30 20:10:57 +000017337{ echo "$as_me:$LINENO: checking for inet_aton" >&5
17338echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017339cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017340/* confdefs.h. */
17341_ACEOF
17342cat confdefs.h >>conftest.$ac_ext
17343cat >>conftest.$ac_ext <<_ACEOF
17344/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000017345
17346#include "confdefs.h"
Martin v. Löwis86d66262006-02-17 08:40:11 +000017347#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:45 +000017348#include <sys/socket.h>
17349#include <netinet/in.h>
17350#include <arpa/inet.h>
17351
Martin v. Löwise9416172003-05-03 10:12:45 +000017352int
17353main ()
17354{
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017355void* p = inet_aton;inet_aton(0,0)
Martin v. Löwise9416172003-05-03 10:12:45 +000017356 ;
17357 return 0;
17358}
17359_ACEOF
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017360rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017361if { (ac_try="$ac_link"
17362case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>conftest.er1
Martin v. Löwise9416172003-05-03 10:12:45 +000017368 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
Martin v. Löwise9416172003-05-03 10:12:45 +000017372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017373 (exit $ac_status); } && {
17374 test -z "$ac_c_werror_flag" ||
17375 test ! -s conftest.err
17376 } && test -s conftest$ac_exeext &&
17377 $as_test_x conftest$ac_exeext; then
Martin v. Löwise9416172003-05-03 10:12:45 +000017378
17379cat >>confdefs.h <<\_ACEOF
17380#define HAVE_INET_ATON 1
17381_ACEOF
17382
Martin v. Löwiseba40652007-08-30 20:10:57 +000017383 { echo "$as_me:$LINENO: result: yes" >&5
17384echo "${ECHO_T}yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017385else
17386 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017387sed 's/^/| /' conftest.$ac_ext >&5
17388
Martin v. Löwiseba40652007-08-30 20:10:57 +000017389 { echo "$as_me:$LINENO: result: no" >&5
17390echo "${ECHO_T}no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017391
17392fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017393
17394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017395 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000017396
Martin v. Löwiseba40652007-08-30 20:10:57 +000017397{ echo "$as_me:$LINENO: checking for inet_pton" >&5
17398echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017399cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017400/* confdefs.h. */
17401_ACEOF
17402cat confdefs.h >>conftest.$ac_ext
17403cat >>conftest.$ac_ext <<_ACEOF
17404/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000017405
17406#include "confdefs.h"
Martin v. Löwisf2e488d2003-05-05 22:00:11 +000017407#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:45 +000017408#include <sys/socket.h>
17409#include <netinet/in.h>
17410#include <arpa/inet.h>
17411
Martin v. Löwise9416172003-05-03 10:12:45 +000017412int
17413main ()
17414{
17415void* p = inet_pton
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017421if { (ac_try="$ac_compile"
17422case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425esac
17426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwise9416172003-05-03 10:12:45 +000017428 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
Martin v. Löwise9416172003-05-03 10:12:45 +000017432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest.$ac_objext; then
Martin v. Löwise9416172003-05-03 10:12:45 +000017437
17438cat >>confdefs.h <<\_ACEOF
17439#define HAVE_INET_PTON 1
17440_ACEOF
17441
Martin v. Löwiseba40652007-08-30 20:10:57 +000017442 { echo "$as_me:$LINENO: result: yes" >&5
17443echo "${ECHO_T}yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017444else
17445 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017446sed 's/^/| /' conftest.$ac_ext >&5
17447
Martin v. Löwiseba40652007-08-30 20:10:57 +000017448 { echo "$as_me:$LINENO: result: no" >&5
17449echo "${ECHO_T}no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017450
17451fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017452
17453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000017454
Martin v. Löwisd6640d42003-07-06 09:29:52 +000017455# On some systems, setgroups is in unistd.h, on others, in grp.h
Martin v. Löwiseba40652007-08-30 20:10:57 +000017456{ echo "$as_me:$LINENO: checking for setgroups" >&5
17457echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000017458cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017459/* confdefs.h. */
17460_ACEOF
17461cat confdefs.h >>conftest.$ac_ext
17462cat >>conftest.$ac_ext <<_ACEOF
17463/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:28 +000017464
17465#include "confdefs.h"
Martin v. Löwisf2e488d2003-05-05 22:00:11 +000017466#include <unistd.h>
Martin v. Löwisd6640d42003-07-06 09:29:52 +000017467#ifdef HAVE_GRP_H
17468#include <grp.h>
17469#endif
Martin v. Löwisd5843682002-11-21 20:41:28 +000017470
Martin v. Löwisd5843682002-11-21 20:41:28 +000017471int
17472main ()
17473{
17474void* p = setgroups
17475 ;
17476 return 0;
17477}
17478_ACEOF
17479rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017480if { (ac_try="$ac_compile"
17481case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484esac
17485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisd5843682002-11-21 20:41:28 +000017487 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
Martin v. Löwisd5843682002-11-21 20:41:28 +000017491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017492 (exit $ac_status); } && {
17493 test -z "$ac_c_werror_flag" ||
17494 test ! -s conftest.err
17495 } && test -s conftest.$ac_objext; then
Martin v. Löwisd5843682002-11-21 20:41:28 +000017496
17497cat >>confdefs.h <<\_ACEOF
17498#define HAVE_SETGROUPS 1
17499_ACEOF
17500
Martin v. Löwiseba40652007-08-30 20:10:57 +000017501 { echo "$as_me:$LINENO: result: yes" >&5
17502echo "${ECHO_T}yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000017503else
17504 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017505sed 's/^/| /' conftest.$ac_ext >&5
17506
Martin v. Löwiseba40652007-08-30 20:10:57 +000017507 { echo "$as_me:$LINENO: result: no" >&5
17508echo "${ECHO_T}no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000017509
17510fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017511
17512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:28 +000017513
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017514# check for openpty and forkpty
17515
Martin v. Löwis11437992002-04-12 09:54:03 +000017516
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017517for ac_func in openpty
17518do
Martin v. Löwis11437992002-04-12 09:54:03 +000017519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000017520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017523 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017524else
Martin v. Löwis11437992002-04-12 09:54:03 +000017525 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17533#define $ac_func innocuous_$ac_func
17534
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017535/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000017536 which can conflict with char $ac_func (); below.
17537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017538 <limits.h> exists even on freestanding compilers. */
17539
17540#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000017541# include <limits.h>
17542#else
17543# include <assert.h>
17544#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017545
17546#undef $ac_func
17547
Martin v. Löwiseba40652007-08-30 20:10:57 +000017548/* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000017551#ifdef __cplusplus
17552extern "C"
17553#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017554char $ac_func ();
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017555/* The GNU C library defines this for functions which it implements
17556 to always fail with ENOSYS. Some functions are actually named
17557 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000017558#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017559choke me
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017560#endif
17561
Skip Montanaro6dead952003-09-25 14:50:04 +000017562int
17563main ()
17564{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017565return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000017566 ;
17567 return 0;
17568}
17569_ACEOF
17570rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017571if { (ac_try="$ac_link"
17572case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575esac
17576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000017578 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000017582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017583 (exit $ac_status); } && {
17584 test -z "$ac_c_werror_flag" ||
17585 test ! -s conftest.err
17586 } && test -s conftest$ac_exeext &&
17587 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017588 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000017589else
Martin v. Löwis11437992002-04-12 09:54:03 +000017590 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017591sed 's/^/| /' conftest.$ac_ext >&5
17592
Martin v. Löwiseba40652007-08-30 20:10:57 +000017593 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000017594fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017595
17596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017597 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000017598fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017599ac_res=`eval echo '${'$as_ac_var'}'`
17600 { echo "$as_me:$LINENO: result: $ac_res" >&5
17601echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017602if test `eval echo '${'$as_ac_var'}'` = yes; then
17603 cat >>confdefs.h <<_ACEOF
17604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17605_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017606
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017607else
Martin v. Löwiseba40652007-08-30 20:10:57 +000017608 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17609echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017610if test "${ac_cv_lib_util_openpty+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000017612else
Martin v. Löwis11437992002-04-12 09:54:03 +000017613 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000017614LIBS="-lutil $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000017615cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017616/* confdefs.h. */
17617_ACEOF
17618cat confdefs.h >>conftest.$ac_ext
17619cat >>conftest.$ac_ext <<_ACEOF
17620/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000017621
Martin v. Löwiseba40652007-08-30 20:10:57 +000017622/* Override any GCC internal prototype to avoid an error.
17623 Use char because int might match the return type of a GCC
17624 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000017625#ifdef __cplusplus
17626extern "C"
17627#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017628char openpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000017629int
17630main ()
17631{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017632return openpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000017633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017638if { (ac_try="$ac_link"
17639case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17642esac
17643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000017645 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017646 grep -v '^ *+' conftest.er1 >conftest.err
17647 rm -f conftest.er1
17648 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000017649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017650 (exit $ac_status); } && {
17651 test -z "$ac_c_werror_flag" ||
17652 test ! -s conftest.err
17653 } && test -s conftest$ac_exeext &&
17654 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017655 ac_cv_lib_util_openpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000017656else
Martin v. Löwis11437992002-04-12 09:54:03 +000017657 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017658sed 's/^/| /' conftest.$ac_ext >&5
17659
Martin v. Löwiseba40652007-08-30 20:10:57 +000017660 ac_cv_lib_util_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000017661fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017662
17663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017664 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000017665LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000017666fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017667{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17668echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017669if test $ac_cv_lib_util_openpty = yes; then
17670 cat >>confdefs.h <<\_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000017671#define HAVE_OPENPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000017672_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000017673 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017674else
Martin v. Löwiseba40652007-08-30 20:10:57 +000017675 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17676echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017677if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17679else
17680 ac_check_lib_save_LIBS=$LIBS
17681LIBS="-lbsd $LIBS"
17682cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688
Martin v. Löwiseba40652007-08-30 20:10:57 +000017689/* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017692#ifdef __cplusplus
17693extern "C"
17694#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017695char openpty ();
17696int
17697main ()
17698{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017699return openpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017700 ;
17701 return 0;
17702}
17703_ACEOF
17704rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017705if { (ac_try="$ac_link"
17706case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709esac
17710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017712 ac_status=$?
17713 grep -v '^ *+' conftest.er1 >conftest.err
17714 rm -f conftest.er1
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017717 (exit $ac_status); } && {
17718 test -z "$ac_c_werror_flag" ||
17719 test ! -s conftest.err
17720 } && test -s conftest$ac_exeext &&
17721 $as_test_x conftest$ac_exeext; then
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017722 ac_cv_lib_bsd_openpty=yes
17723else
17724 echo "$as_me: failed program was:" >&5
17725sed 's/^/| /' conftest.$ac_ext >&5
17726
Martin v. Löwiseba40652007-08-30 20:10:57 +000017727 ac_cv_lib_bsd_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000017728fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017729
17730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017731 conftest$ac_exeext conftest.$ac_ext
17732LIBS=$ac_check_lib_save_LIBS
17733fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017734{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17735echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017736if test $ac_cv_lib_bsd_openpty = yes; then
17737 cat >>confdefs.h <<\_ACEOF
17738#define HAVE_OPENPTY 1
17739_ACEOF
17740 LIBS="$LIBS -lbsd"
17741fi
17742
17743
17744fi
17745
Fred Drake8cef4cf2000-06-28 16:40:38 +000017746
17747fi
17748done
17749
Martin v. Löwis11437992002-04-12 09:54:03 +000017750
Fred Drake8cef4cf2000-06-28 16:40:38 +000017751for ac_func in forkpty
17752do
Martin v. Löwis11437992002-04-12 09:54:03 +000017753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000017754{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17756if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017757 echo $ECHO_N "(cached) $ECHO_C" >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000017758else
Martin v. Löwis11437992002-04-12 09:54:03 +000017759 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017760/* confdefs.h. */
17761_ACEOF
17762cat confdefs.h >>conftest.$ac_ext
17763cat >>conftest.$ac_ext <<_ACEOF
17764/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17767#define $ac_func innocuous_$ac_func
17768
Fred Drake8cef4cf2000-06-28 16:40:38 +000017769/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000017770 which can conflict with char $ac_func (); below.
17771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017772 <limits.h> exists even on freestanding compilers. */
17773
17774#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000017775# include <limits.h>
17776#else
17777# include <assert.h>
17778#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017779
17780#undef $ac_func
17781
Martin v. Löwiseba40652007-08-30 20:10:57 +000017782/* Override any GCC internal prototype to avoid an error.
17783 Use char because int might match the return type of a GCC
17784 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000017785#ifdef __cplusplus
17786extern "C"
17787#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017788char $ac_func ();
Fred Drake8cef4cf2000-06-28 16:40:38 +000017789/* The GNU C library defines this for functions which it implements
17790 to always fail with ENOSYS. Some functions are actually named
17791 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000017792#if defined __stub_$ac_func || defined __stub___$ac_func
Fred Drake8cef4cf2000-06-28 16:40:38 +000017793choke me
Fred Drake8cef4cf2000-06-28 16:40:38 +000017794#endif
17795
Skip Montanaro6dead952003-09-25 14:50:04 +000017796int
17797main ()
17798{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017799return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000017800 ;
17801 return 0;
17802}
17803_ACEOF
17804rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017805if { (ac_try="$ac_link"
17806case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809esac
17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000017812 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000017816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017817 (exit $ac_status); } && {
17818 test -z "$ac_c_werror_flag" ||
17819 test ! -s conftest.err
17820 } && test -s conftest$ac_exeext &&
17821 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017822 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000017823else
Martin v. Löwis11437992002-04-12 09:54:03 +000017824 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017825sed 's/^/| /' conftest.$ac_ext >&5
17826
Martin v. Löwiseba40652007-08-30 20:10:57 +000017827 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000017828fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017829
17830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017831 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000017832fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017833ac_res=`eval echo '${'$as_ac_var'}'`
17834 { echo "$as_me:$LINENO: result: $ac_res" >&5
17835echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017836if test `eval echo '${'$as_ac_var'}'` = yes; then
17837 cat >>confdefs.h <<_ACEOF
17838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17839_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000017840
Fred Drake8cef4cf2000-06-28 16:40:38 +000017841else
Martin v. Löwiseba40652007-08-30 20:10:57 +000017842 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17843echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017844if test "${ac_cv_lib_util_forkpty+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000017846else
Martin v. Löwis11437992002-04-12 09:54:03 +000017847 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000017848LIBS="-lutil $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000017849cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017850/* confdefs.h. */
17851_ACEOF
17852cat confdefs.h >>conftest.$ac_ext
17853cat >>conftest.$ac_ext <<_ACEOF
17854/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000017855
Martin v. Löwiseba40652007-08-30 20:10:57 +000017856/* Override any GCC internal prototype to avoid an error.
17857 Use char because int might match the return type of a GCC
17858 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000017859#ifdef __cplusplus
17860extern "C"
17861#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017862char forkpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000017863int
17864main ()
17865{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017866return forkpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000017867 ;
17868 return 0;
17869}
17870_ACEOF
17871rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017872if { (ac_try="$ac_link"
17873case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876esac
17877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000017879 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000017883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017884 (exit $ac_status); } && {
17885 test -z "$ac_c_werror_flag" ||
17886 test ! -s conftest.err
17887 } && test -s conftest$ac_exeext &&
17888 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017889 ac_cv_lib_util_forkpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000017890else
Martin v. Löwis11437992002-04-12 09:54:03 +000017891 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017892sed 's/^/| /' conftest.$ac_ext >&5
17893
Martin v. Löwiseba40652007-08-30 20:10:57 +000017894 ac_cv_lib_util_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000017895fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017896
17897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017898 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000017899LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000017900fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017901{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17902echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017903if test $ac_cv_lib_util_forkpty = yes; then
17904 cat >>confdefs.h <<\_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000017905#define HAVE_FORKPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000017906_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000017907 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017908else
Martin v. Löwiseba40652007-08-30 20:10:57 +000017909 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17910echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017911if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913else
17914 ac_check_lib_save_LIBS=$LIBS
17915LIBS="-lbsd $LIBS"
17916cat >conftest.$ac_ext <<_ACEOF
17917/* confdefs.h. */
17918_ACEOF
17919cat confdefs.h >>conftest.$ac_ext
17920cat >>conftest.$ac_ext <<_ACEOF
17921/* end confdefs.h. */
17922
Martin v. Löwiseba40652007-08-30 20:10:57 +000017923/* Override any GCC internal prototype to avoid an error.
17924 Use char because int might match the return type of a GCC
17925 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017926#ifdef __cplusplus
17927extern "C"
17928#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017929char forkpty ();
17930int
17931main ()
17932{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017933return forkpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017934 ;
17935 return 0;
17936}
17937_ACEOF
17938rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017939if { (ac_try="$ac_link"
17940case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17943esac
17944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017951 (exit $ac_status); } && {
17952 test -z "$ac_c_werror_flag" ||
17953 test ! -s conftest.err
17954 } && test -s conftest$ac_exeext &&
17955 $as_test_x conftest$ac_exeext; then
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017956 ac_cv_lib_bsd_forkpty=yes
17957else
17958 echo "$as_me: failed program was:" >&5
17959sed 's/^/| /' conftest.$ac_ext >&5
17960
Martin v. Löwiseba40652007-08-30 20:10:57 +000017961 ac_cv_lib_bsd_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000017962fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017963
17964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017965 conftest$ac_exeext conftest.$ac_ext
17966LIBS=$ac_check_lib_save_LIBS
17967fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017968{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17969echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000017970if test $ac_cv_lib_bsd_forkpty = yes; then
17971 cat >>confdefs.h <<\_ACEOF
17972#define HAVE_FORKPTY 1
17973_ACEOF
17974 LIBS="$LIBS -lbsd"
17975fi
17976
17977
17978fi
17979
Fred Drake8cef4cf2000-06-28 16:40:38 +000017980
17981fi
17982done
17983
Jack Jansendd19cf82001-12-06 22:36:17 +000017984
Brett Cannonaa5778d2008-03-18 04:09:00 +000017985# Stuff for expat.
17986
17987for ac_func in memmove
17988do
17989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
17995 cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
18001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18003#define $ac_func innocuous_$ac_func
18004
18005/* System header to define __stub macros and hopefully few prototypes,
18006 which can conflict with char $ac_func (); below.
18007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18008 <limits.h> exists even on freestanding compilers. */
18009
18010#ifdef __STDC__
18011# include <limits.h>
18012#else
18013# include <assert.h>
18014#endif
18015
18016#undef $ac_func
18017
18018/* Override any GCC internal prototype to avoid an error.
18019 Use char because int might match the return type of a GCC
18020 builtin and then its argument prototype would still apply. */
18021#ifdef __cplusplus
18022extern "C"
18023#endif
18024char $ac_func ();
18025/* The GNU C library defines this for functions which it implements
18026 to always fail with ENOSYS. Some functions are actually named
18027 something starting with __ and the normal name is an alias. */
18028#if defined __stub_$ac_func || defined __stub___$ac_func
18029choke me
18030#endif
18031
18032int
18033main ()
18034{
18035return $ac_func ();
18036 ;
18037 return 0;
18038}
18039_ACEOF
18040rm -f conftest.$ac_objext conftest$ac_exeext
18041if { (ac_try="$ac_link"
18042case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045esac
18046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_link") 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } && {
18054 test -z "$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18056 } && test -s conftest$ac_exeext &&
18057 $as_test_x conftest$ac_exeext; then
18058 eval "$as_ac_var=yes"
18059else
18060 echo "$as_me: failed program was:" >&5
18061sed 's/^/| /' conftest.$ac_ext >&5
18062
18063 eval "$as_ac_var=no"
18064fi
18065
18066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18067 conftest$ac_exeext conftest.$ac_ext
18068fi
18069ac_res=`eval echo '${'$as_ac_var'}'`
18070 { echo "$as_me:$LINENO: result: $ac_res" >&5
18071echo "${ECHO_T}$ac_res" >&6; }
18072if test `eval echo '${'$as_ac_var'}'` = yes; then
18073 cat >>confdefs.h <<_ACEOF
18074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18075_ACEOF
18076
18077fi
18078done
18079
18080
Michael W. Hudson54241132001-12-07 15:38:26 +000018081# check for long file support functions
Martin v. Löwis11437992002-04-12 09:54:03 +000018082
18083
18084
18085
18086
18087
Fred Drake8cef4cf2000-06-28 16:40:38 +000018088for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18089do
Martin v. Löwis11437992002-04-12 09:54:03 +000018090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018091{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018094 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018095else
Martin v. Löwis11437992002-04-12 09:54:03 +000018096 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018097/* confdefs.h. */
18098_ACEOF
18099cat confdefs.h >>conftest.$ac_ext
18100cat >>conftest.$ac_ext <<_ACEOF
18101/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18104#define $ac_func innocuous_$ac_func
18105
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018106/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018107 which can conflict with char $ac_func (); below.
18108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018109 <limits.h> exists even on freestanding compilers. */
18110
18111#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018112# include <limits.h>
18113#else
18114# include <assert.h>
18115#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018116
18117#undef $ac_func
18118
Martin v. Löwiseba40652007-08-30 20:10:57 +000018119/* Override any GCC internal prototype to avoid an error.
18120 Use char because int might match the return type of a GCC
18121 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018122#ifdef __cplusplus
18123extern "C"
18124#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018125char $ac_func ();
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018126/* The GNU C library defines this for functions which it implements
18127 to always fail with ENOSYS. Some functions are actually named
18128 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018129#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018130choke me
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018131#endif
18132
Skip Montanaro6dead952003-09-25 14:50:04 +000018133int
18134main ()
18135{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018136return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018137 ;
18138 return 0;
18139}
18140_ACEOF
18141rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018142if { (ac_try="$ac_link"
18143case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146esac
18147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018149 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018154 (exit $ac_status); } && {
18155 test -z "$ac_c_werror_flag" ||
18156 test ! -s conftest.err
18157 } && test -s conftest$ac_exeext &&
18158 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018159 eval "$as_ac_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018160else
Martin v. Löwis11437992002-04-12 09:54:03 +000018161 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018162sed 's/^/| /' conftest.$ac_ext >&5
18163
Martin v. Löwiseba40652007-08-30 20:10:57 +000018164 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018165fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018166
18167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018168 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018169fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018170ac_res=`eval echo '${'$as_ac_var'}'`
18171 { echo "$as_me:$LINENO: result: $ac_res" >&5
18172echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018173if test `eval echo '${'$as_ac_var'}'` = yes; then
18174 cat >>confdefs.h <<_ACEOF
18175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18176_ACEOF
Michael W. Hudson54241132001-12-07 15:38:26 +000018177
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018178fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000018179done
18180
Michael W. Hudson54241132001-12-07 15:38:26 +000018181
Martin v. Löwis11437992002-04-12 09:54:03 +000018182
18183
18184
Brett Cannonaa5778d2008-03-18 04:09:00 +000018185for ac_func in dup2 getcwd strdup
Thomas Wouters3a584202000-08-05 23:28:51 +000018186do
Martin v. Löwis11437992002-04-12 09:54:03 +000018187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018188{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18190if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018191 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018192else
Martin v. Löwis11437992002-04-12 09:54:03 +000018193 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18201#define $ac_func innocuous_$ac_func
18202
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000018203/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018204 which can conflict with char $ac_func (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018206 <limits.h> exists even on freestanding compilers. */
18207
18208#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018209# include <limits.h>
18210#else
18211# include <assert.h>
18212#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018213
18214#undef $ac_func
18215
Martin v. Löwiseba40652007-08-30 20:10:57 +000018216/* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018219#ifdef __cplusplus
18220extern "C"
18221#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018222char $ac_func ();
Guido van Rossum627b2d71993-12-24 10:39:16 +000018223/* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018226#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossum627b2d71993-12-24 10:39:16 +000018227choke me
Guido van Rossum627b2d71993-12-24 10:39:16 +000018228#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018229
Skip Montanaro6dead952003-09-25 14:50:04 +000018230int
18231main ()
18232{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018233return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018234 ;
18235 return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018239if { (ac_try="$ac_link"
18240case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243esac
18244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018246 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest$ac_exeext &&
18255 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018256 eval "$as_ac_var=yes"
Martin v. Löwis1142de32002-03-29 16:28:31 +000018257else
Martin v. Löwis11437992002-04-12 09:54:03 +000018258 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018259sed 's/^/| /' conftest.$ac_ext >&5
18260
Martin v. Löwiseba40652007-08-30 20:10:57 +000018261 eval "$as_ac_var=no"
Martin v. Löwis1142de32002-03-29 16:28:31 +000018262fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018263
18264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018265 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis1142de32002-03-29 16:28:31 +000018266fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018267ac_res=`eval echo '${'$as_ac_var'}'`
18268 { echo "$as_me:$LINENO: result: $ac_res" >&5
18269echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018270if test `eval echo '${'$as_ac_var'}'` = yes; then
18271 cat >>confdefs.h <<_ACEOF
18272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18273_ACEOF
Martin v. Löwis1142de32002-03-29 16:28:31 +000018274
Martin v. Löwis1142de32002-03-29 16:28:31 +000018275else
Martin v. Löwiseba40652007-08-30 20:10:57 +000018276 case " $LIBOBJS " in
Skip Montanarof0d5f792004-08-15 14:08:23 +000018277 *" $ac_func.$ac_objext "* ) ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000018278 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18279 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000018280esac
18281
Martin v. Löwis1142de32002-03-29 16:28:31 +000018282fi
18283done
18284
18285
Martin v. Löwis11437992002-04-12 09:54:03 +000018286
Martin v. Löwis1142de32002-03-29 16:28:31 +000018287for ac_func in getpgrp
18288do
Martin v. Löwis11437992002-04-12 09:54:03 +000018289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018293 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis1142de32002-03-29 16:28:31 +000018294else
Martin v. Löwis11437992002-04-12 09:54:03 +000018295 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018296/* confdefs.h. */
18297_ACEOF
18298cat confdefs.h >>conftest.$ac_ext
18299cat >>conftest.$ac_ext <<_ACEOF
18300/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18303#define $ac_func innocuous_$ac_func
18304
Martin v. Löwis1142de32002-03-29 16:28:31 +000018305/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018306 which can conflict with char $ac_func (); below.
18307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018308 <limits.h> exists even on freestanding compilers. */
18309
18310#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018311# include <limits.h>
18312#else
18313# include <assert.h>
18314#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018315
18316#undef $ac_func
18317
Martin v. Löwiseba40652007-08-30 20:10:57 +000018318/* Override any GCC internal prototype to avoid an error.
18319 Use char because int might match the return type of a GCC
18320 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018321#ifdef __cplusplus
18322extern "C"
18323#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018324char $ac_func ();
Martin v. Löwis1142de32002-03-29 16:28:31 +000018325/* The GNU C library defines this for functions which it implements
18326 to always fail with ENOSYS. Some functions are actually named
18327 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018328#if defined __stub_$ac_func || defined __stub___$ac_func
Martin v. Löwis1142de32002-03-29 16:28:31 +000018329choke me
Martin v. Löwis1142de32002-03-29 16:28:31 +000018330#endif
18331
Skip Montanaro6dead952003-09-25 14:50:04 +000018332int
18333main ()
18334{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018335return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018336 ;
18337 return 0;
18338}
18339_ACEOF
18340rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018341if { (ac_try="$ac_link"
18342case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345esac
18346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018348 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest$ac_exeext &&
18357 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018358 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000018359else
Martin v. Löwis11437992002-04-12 09:54:03 +000018360 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018361sed 's/^/| /' conftest.$ac_ext >&5
18362
Martin v. Löwiseba40652007-08-30 20:10:57 +000018363 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018364fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018365
18366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018367 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018368fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018369ac_res=`eval echo '${'$as_ac_var'}'`
18370 { echo "$as_me:$LINENO: result: $ac_res" >&5
18371echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018372if test `eval echo '${'$as_ac_var'}'` = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18375_ACEOF
18376 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018377/* confdefs.h. */
18378_ACEOF
18379cat confdefs.h >>conftest.$ac_ext
18380cat >>conftest.$ac_ext <<_ACEOF
18381/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018382#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000018383int
18384main ()
18385{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018386getpgrp(0);
Martin v. Löwis11437992002-04-12 09:54:03 +000018387 ;
18388 return 0;
18389}
18390_ACEOF
18391rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018392if { (ac_try="$ac_compile"
18393case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396esac
18397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018399 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018404 (exit $ac_status); } && {
18405 test -z "$ac_c_werror_flag" ||
18406 test ! -s conftest.err
18407 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018408
18409cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018410#define GETPGRP_HAVE_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000018411_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000018412
Martin v. Löwis11437992002-04-12 09:54:03 +000018413
Guido van Rossumf78abae1997-01-21 22:02:36 +000018414else
Martin v. Löwis11437992002-04-12 09:54:03 +000018415 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018416sed 's/^/| /' conftest.$ac_ext >&5
18417
Martin v. Löwiseba40652007-08-30 20:10:57 +000018418
Guido van Rossum627b2d71993-12-24 10:39:16 +000018419fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018420
18421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000018422
Guido van Rossum627b2d71993-12-24 10:39:16 +000018423fi
Thomas Wouters3a584202000-08-05 23:28:51 +000018424done
Guido van Rossum627b2d71993-12-24 10:39:16 +000018425
Jack Jansen150753c2003-03-29 22:07:47 +000018426
18427for ac_func in setpgrp
18428do
18429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018430{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18432if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018433 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018434else
Martin v. Löwis11437992002-04-12 09:54:03 +000018435 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018436/* confdefs.h. */
18437_ACEOF
18438cat confdefs.h >>conftest.$ac_ext
18439cat >>conftest.$ac_ext <<_ACEOF
18440/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18443#define $ac_func innocuous_$ac_func
18444
Jack Jansen150753c2003-03-29 22:07:47 +000018445/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018446 which can conflict with char $ac_func (); below.
18447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018448 <limits.h> exists even on freestanding compilers. */
18449
18450#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018451# include <limits.h>
18452#else
18453# include <assert.h>
18454#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018455
18456#undef $ac_func
18457
Martin v. Löwiseba40652007-08-30 20:10:57 +000018458/* Override any GCC internal prototype to avoid an error.
18459 Use char because int might match the return type of a GCC
18460 builtin and then its argument prototype would still apply. */
Jack Jansen150753c2003-03-29 22:07:47 +000018461#ifdef __cplusplus
18462extern "C"
Martin v. Löwis11437992002-04-12 09:54:03 +000018463#endif
Jack Jansen150753c2003-03-29 22:07:47 +000018464char $ac_func ();
Jack Jansen150753c2003-03-29 22:07:47 +000018465/* The GNU C library defines this for functions which it implements
18466 to always fail with ENOSYS. Some functions are actually named
18467 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018468#if defined __stub_$ac_func || defined __stub___$ac_func
Jack Jansen150753c2003-03-29 22:07:47 +000018469choke me
Jack Jansen150753c2003-03-29 22:07:47 +000018470#endif
18471
Skip Montanaro6dead952003-09-25 14:50:04 +000018472int
18473main ()
18474{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018475return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018476 ;
18477 return 0;
18478}
18479_ACEOF
Jack Jansen150753c2003-03-29 22:07:47 +000018480rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018481if { (ac_try="$ac_link"
18482case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485esac
18486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018488 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018489 grep -v '^ *+' conftest.er1 >conftest.err
18490 rm -f conftest.er1
18491 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018493 (exit $ac_status); } && {
18494 test -z "$ac_c_werror_flag" ||
18495 test ! -s conftest.err
18496 } && test -s conftest$ac_exeext &&
18497 $as_test_x conftest$ac_exeext; then
Jack Jansen150753c2003-03-29 22:07:47 +000018498 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000018499else
Jack Jansen150753c2003-03-29 22:07:47 +000018500 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018501sed 's/^/| /' conftest.$ac_ext >&5
18502
Martin v. Löwiseba40652007-08-30 20:10:57 +000018503 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018504fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018505
18506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018507 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018508fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018509ac_res=`eval echo '${'$as_ac_var'}'`
18510 { echo "$as_me:$LINENO: result: $ac_res" >&5
18511echo "${ECHO_T}$ac_res" >&6; }
Jack Jansen150753c2003-03-29 22:07:47 +000018512if test `eval echo '${'$as_ac_var'}'` = yes; then
18513 cat >>confdefs.h <<_ACEOF
18514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18515_ACEOF
18516 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018517/* confdefs.h. */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h. */
Jack Jansen150753c2003-03-29 22:07:47 +000018522#include <unistd.h>
Jack Jansen150753c2003-03-29 22:07:47 +000018523int
18524main ()
18525{
18526setpgrp(0,0);
18527 ;
18528 return 0;
18529}
18530_ACEOF
18531rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018532if { (ac_try="$ac_compile"
18533case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_compile") 2>conftest.er1
Jack Jansen150753c2003-03-29 22:07:47 +000018539 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018540 grep -v '^ *+' conftest.er1 >conftest.err
18541 rm -f conftest.er1
18542 cat conftest.err >&5
Jack Jansen150753c2003-03-29 22:07:47 +000018543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018544 (exit $ac_status); } && {
18545 test -z "$ac_c_werror_flag" ||
18546 test ! -s conftest.err
18547 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018548
18549cat >>confdefs.h <<\_ACEOF
Jack Jansen150753c2003-03-29 22:07:47 +000018550#define SETPGRP_HAVE_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000018551_ACEOF
Guido van Rossum8eee56f1994-10-20 22:18:37 +000018552
Jack Jansen150753c2003-03-29 22:07:47 +000018553
18554else
18555 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018556sed 's/^/| /' conftest.$ac_ext >&5
18557
Martin v. Löwiseba40652007-08-30 20:10:57 +000018558
Guido van Rossum8eee56f1994-10-20 22:18:37 +000018559fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018560
18561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jack Jansen150753c2003-03-29 22:07:47 +000018562
18563fi
18564done
Guido van Rossum8eee56f1994-10-20 22:18:37 +000018565
Martin v. Löwis11437992002-04-12 09:54:03 +000018566
Thomas Wouters3a584202000-08-05 23:28:51 +000018567for ac_func in gettimeofday
18568do
Martin v. Löwis11437992002-04-12 09:54:03 +000018569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018570{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18572if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018573 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018574else
Martin v. Löwis11437992002-04-12 09:54:03 +000018575 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18583#define $ac_func innocuous_$ac_func
18584
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000018585/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018586 which can conflict with char $ac_func (); below.
18587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018588 <limits.h> exists even on freestanding compilers. */
18589
18590#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018591# include <limits.h>
18592#else
18593# include <assert.h>
18594#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018595
18596#undef $ac_func
18597
Martin v. Löwiseba40652007-08-30 20:10:57 +000018598/* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018601#ifdef __cplusplus
18602extern "C"
18603#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018604char $ac_func ();
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018605/* The GNU C library defines this for functions which it implements
18606 to always fail with ENOSYS. Some functions are actually named
18607 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018608#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018609choke me
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018610#endif
18611
Skip Montanaro6dead952003-09-25 14:50:04 +000018612int
18613main ()
18614{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018615return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018616 ;
18617 return 0;
18618}
18619_ACEOF
18620rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018621if { (ac_try="$ac_link"
18622case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625esac
18626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018628 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest$ac_exeext &&
18637 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018638 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000018639else
Martin v. Löwis11437992002-04-12 09:54:03 +000018640 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018641sed 's/^/| /' conftest.$ac_ext >&5
18642
Martin v. Löwiseba40652007-08-30 20:10:57 +000018643 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018644fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018645
18646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018647 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018648fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018649ac_res=`eval echo '${'$as_ac_var'}'`
18650 { echo "$as_me:$LINENO: result: $ac_res" >&5
18651echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018652if test `eval echo '${'$as_ac_var'}'` = yes; then
18653 cat >>confdefs.h <<_ACEOF
18654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18655_ACEOF
18656 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018657/* confdefs.h. */
18658_ACEOF
18659cat confdefs.h >>conftest.$ac_ext
18660cat >>conftest.$ac_ext <<_ACEOF
18661/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000018662#include <sys/time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000018663int
18664main ()
18665{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018666gettimeofday((struct timeval*)0,(struct timezone*)0);
Martin v. Löwis11437992002-04-12 09:54:03 +000018667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018672if { (ac_try="$ac_compile"
18673case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676esac
18677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018679 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018684 (exit $ac_status); } && {
18685 test -z "$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18687 } && test -s conftest.$ac_objext; then
Guido van Rossum627b2d71993-12-24 10:39:16 +000018688 :
18689else
Martin v. Löwis11437992002-04-12 09:54:03 +000018690 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018691sed 's/^/| /' conftest.$ac_ext >&5
18692
Martin v. Löwis11437992002-04-12 09:54:03 +000018693
18694cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018695#define GETTIMEOFDAY_NO_TZ 1
Martin v. Löwis11437992002-04-12 09:54:03 +000018696_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000018697
Martin v. Löwis11437992002-04-12 09:54:03 +000018698
Guido van Rossum627b2d71993-12-24 10:39:16 +000018699fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018700
18701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000018702
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018703fi
Thomas Wouters3a584202000-08-05 23:28:51 +000018704done
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018705
Michael W. Hudson54241132001-12-07 15:38:26 +000018706
Martin v. Löwiseba40652007-08-30 20:10:57 +000018707{ echo "$as_me:$LINENO: checking for major" >&5
18708echo $ECHO_N "checking for major... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018709cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018710/* confdefs.h. */
18711_ACEOF
18712cat confdefs.h >>conftest.$ac_ext
18713cat >>conftest.$ac_ext <<_ACEOF
18714/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018715
Neal Norwitz6eb37f02003-02-23 23:28:15 +000018716#if defined(MAJOR_IN_MKDEV)
18717#include <sys/mkdev.h>
18718#elif defined(MAJOR_IN_SYSMACROS)
18719#include <sys/sysmacros.h>
18720#else
18721#include <sys/types.h>
18722#endif
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018723
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018724int
18725main ()
18726{
18727
18728 makedev(major(0),minor(0));
18729
18730 ;
18731 return 0;
18732}
18733_ACEOF
Martin v. Löwise3271202002-11-07 07:42:30 +000018734rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018735if { (ac_try="$ac_link"
18736case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739esac
18740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018742 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest$ac_exeext &&
18751 $as_test_x conftest$ac_exeext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018752
18753
18754cat >>confdefs.h <<\_ACEOF
18755#define HAVE_DEVICE_MACROS 1
18756_ACEOF
18757
Martin v. Löwiseba40652007-08-30 20:10:57 +000018758 { echo "$as_me:$LINENO: result: yes" >&5
18759echo "${ECHO_T}yes" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018760
18761else
18762 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018763sed 's/^/| /' conftest.$ac_ext >&5
18764
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018765
Martin v. Löwiseba40652007-08-30 20:10:57 +000018766 { echo "$as_me:$LINENO: result: no" >&5
18767echo "${ECHO_T}no" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000018768
18769fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018770
18771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018772 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018773
Martin v. Löwis861a65b2001-10-24 14:36:00 +000018774# On OSF/1 V5.1, getaddrinfo is available, but a define
Martin v. Löwis11437992002-04-12 09:54:03 +000018775# for [no]getaddrinfo in netdb.h.
Martin v. Löwiseba40652007-08-30 20:10:57 +000018776{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18777echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018778cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
Martin v. Löwis861a65b2001-10-24 14:36:00 +000018784
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000018785#include <sys/types.h>
Martin v. Löwis861a65b2001-10-24 14:36:00 +000018786#include <sys/socket.h>
18787#include <netdb.h>
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000018788#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018789
Martin v. Löwis11437992002-04-12 09:54:03 +000018790int
18791main ()
18792{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018793
Martin v. Löwis861a65b2001-10-24 14:36:00 +000018794getaddrinfo(NULL, NULL, NULL, NULL);
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018795
Martin v. Löwis11437992002-04-12 09:54:03 +000018796 ;
18797 return 0;
18798}
18799_ACEOF
18800rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018801if { (ac_try="$ac_link"
18802case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18805esac
18806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018808 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest$ac_exeext &&
18817 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018818
Martin v. Löwiseba40652007-08-30 20:10:57 +000018819{ echo "$as_me:$LINENO: result: yes" >&5
18820echo "${ECHO_T}yes" >&6; }
18821{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18822echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018823if test "$cross_compiling" = yes; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000018824 { echo "$as_me:$LINENO: result: buggy" >&5
18825echo "${ECHO_T}buggy" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018826buggygetaddrinfo=yes
18827else
Martin v. Löwis11437992002-04-12 09:54:03 +000018828 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018829/* confdefs.h. */
18830_ACEOF
18831cat confdefs.h >>conftest.$ac_ext
18832cat >>conftest.$ac_ext <<_ACEOF
18833/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018834
18835#include <sys/types.h>
18836#include <netdb.h>
18837#include <string.h>
18838#include <sys/socket.h>
18839#include <netinet/in.h>
18840
18841main()
18842{
18843 int passive, gaierr, inet4 = 0, inet6 = 0;
18844 struct addrinfo hints, *ai, *aitop;
18845 char straddr[INET6_ADDRSTRLEN], strport[16];
18846
18847 for (passive = 0; passive <= 1; passive++) {
18848 memset(&hints, 0, sizeof(hints));
18849 hints.ai_family = AF_UNSPEC;
18850 hints.ai_flags = passive ? AI_PASSIVE : 0;
18851 hints.ai_socktype = SOCK_STREAM;
Hye-Shik Chang54f94392004-04-14 07:55:31 +000018852 hints.ai_protocol = IPPROTO_TCP;
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018853 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18854 (void)gai_strerror(gaierr);
18855 goto bad;
18856 }
18857 for (ai = aitop; ai; ai = ai->ai_next) {
18858 if (ai->ai_addr == NULL ||
18859 ai->ai_addrlen == 0 ||
18860 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18861 straddr, sizeof(straddr), strport, sizeof(strport),
18862 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18863 goto bad;
18864 }
18865 switch (ai->ai_family) {
18866 case AF_INET:
18867 if (strcmp(strport, "54321") != 0) {
18868 goto bad;
18869 }
18870 if (passive) {
18871 if (strcmp(straddr, "0.0.0.0") != 0) {
18872 goto bad;
18873 }
18874 } else {
18875 if (strcmp(straddr, "127.0.0.1") != 0) {
18876 goto bad;
18877 }
18878 }
18879 inet4++;
18880 break;
18881 case AF_INET6:
18882 if (strcmp(strport, "54321") != 0) {
18883 goto bad;
18884 }
18885 if (passive) {
18886 if (strcmp(straddr, "::") != 0) {
18887 goto bad;
18888 }
18889 } else {
18890 if (strcmp(straddr, "::1") != 0) {
18891 goto bad;
18892 }
18893 }
18894 inet6++;
18895 break;
18896 case AF_UNSPEC:
18897 goto bad;
18898 break;
18899 default:
18900 /* another family support? */
18901 break;
18902 }
18903 }
18904 }
18905
18906 if (!(inet4 == 0 || inet4 == 2))
18907 goto bad;
18908 if (!(inet6 == 0 || inet6 == 2))
18909 goto bad;
18910
18911 if (aitop)
18912 freeaddrinfo(aitop);
18913 exit(0);
18914
18915 bad:
18916 if (aitop)
18917 freeaddrinfo(aitop);
18918 exit(1);
18919}
18920
Martin v. Löwis11437992002-04-12 09:54:03 +000018921_ACEOF
18922rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018923if { (ac_try="$ac_link"
18924case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927esac
18928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000018933 { (case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936esac
18937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000018942 { echo "$as_me:$LINENO: result: good" >&5
18943echo "${ECHO_T}good" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018944buggygetaddrinfo=no
18945else
Martin v. Löwis11437992002-04-12 09:54:03 +000018946 echo "$as_me: program exited with status $ac_status" >&5
18947echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018948sed 's/^/| /' conftest.$ac_ext >&5
18949
Martin v. Löwis11437992002-04-12 09:54:03 +000018950( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000018951{ echo "$as_me:$LINENO: result: buggy" >&5
18952echo "${ECHO_T}buggy" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018953buggygetaddrinfo=yes
18954fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018956fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018957
18958
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018959else
Martin v. Löwis11437992002-04-12 09:54:03 +000018960 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018961sed 's/^/| /' conftest.$ac_ext >&5
18962
Martin v. Löwis11437992002-04-12 09:54:03 +000018963
Martin v. Löwiseba40652007-08-30 20:10:57 +000018964{ echo "$as_me:$LINENO: result: no" >&5
18965echo "${ECHO_T}no" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018966buggygetaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018967
Martin v. Löwis861a65b2001-10-24 14:36:00 +000018968fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018969
18970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018971 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018972
18973if test "$buggygetaddrinfo" = "yes"; then
18974 if test "$ipv6" = "yes"; then
18975 echo 'Fatal: You must get working getaddrinfo() function.'
18976 echo ' or you can specify "--disable-ipv6"'.
18977 exit 1
18978 fi
Martin v. Löwis861a65b2001-10-24 14:36:00 +000018979else
Martin v. Löwis11437992002-04-12 09:54:03 +000018980
18981cat >>confdefs.h <<\_ACEOF
Martin v. Löwis861a65b2001-10-24 14:36:00 +000018982#define HAVE_GETADDRINFO 1
Martin v. Löwis11437992002-04-12 09:54:03 +000018983_ACEOF
Martin v. Löwis861a65b2001-10-24 14:36:00 +000018984
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018985fi
Martin v. Löwis11437992002-04-12 09:54:03 +000018986
Jack Jansen9a66b6d2001-08-08 13:56:14 +000018987for ac_func in getnameinfo
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018988do
Martin v. Löwis11437992002-04-12 09:54:03 +000018989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018993 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000018994else
Martin v. Löwis11437992002-04-12 09:54:03 +000018995 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018996/* confdefs.h. */
18997_ACEOF
18998cat confdefs.h >>conftest.$ac_ext
18999cat >>conftest.$ac_ext <<_ACEOF
19000/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19003#define $ac_func innocuous_$ac_func
19004
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019005/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000019006 which can conflict with char $ac_func (); below.
19007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019008 <limits.h> exists even on freestanding compilers. */
19009
19010#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000019011# include <limits.h>
19012#else
19013# include <assert.h>
19014#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019015
19016#undef $ac_func
19017
Martin v. Löwiseba40652007-08-30 20:10:57 +000019018/* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019021#ifdef __cplusplus
19022extern "C"
19023#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019024char $ac_func ();
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019025/* The GNU C library defines this for functions which it implements
19026 to always fail with ENOSYS. Some functions are actually named
19027 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000019028#if defined __stub_$ac_func || defined __stub___$ac_func
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019029choke me
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019030#endif
19031
Skip Montanaro6dead952003-09-25 14:50:04 +000019032int
19033main ()
19034{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019035return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000019036 ;
19037 return 0;
19038}
19039_ACEOF
19040rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019041if { (ac_try="$ac_link"
19042case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19045esac
19046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019048 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019053 (exit $ac_status); } && {
19054 test -z "$ac_c_werror_flag" ||
19055 test ! -s conftest.err
19056 } && test -s conftest$ac_exeext &&
19057 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019058 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000019059else
Martin v. Löwis11437992002-04-12 09:54:03 +000019060 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019061sed 's/^/| /' conftest.$ac_ext >&5
19062
Martin v. Löwiseba40652007-08-30 20:10:57 +000019063 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000019064fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019065
19066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019067 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000019068fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019069ac_res=`eval echo '${'$as_ac_var'}'`
19070 { echo "$as_me:$LINENO: result: $ac_res" >&5
19071echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019072if test `eval echo '${'$as_ac_var'}'` = yes; then
19073 cat >>confdefs.h <<_ACEOF
19074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19075_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019076
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019077fi
19078done
19079
Michael W. Hudson54241132001-12-07 15:38:26 +000019080
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019081# checks for structures
Martin v. Löwiseba40652007-08-30 20:10:57 +000019082{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19083echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019084if test "${ac_cv_header_time+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019086else
Martin v. Löwis11437992002-04-12 09:54:03 +000019087 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019088/* confdefs.h. */
19089_ACEOF
19090cat confdefs.h >>conftest.$ac_ext
19091cat >>conftest.$ac_ext <<_ACEOF
19092/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019093#include <sys/types.h>
19094#include <sys/time.h>
19095#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000019096
Martin v. Löwis11437992002-04-12 09:54:03 +000019097int
19098main ()
19099{
19100if ((struct tm *) 0)
19101return 0;
19102 ;
19103 return 0;
19104}
19105_ACEOF
19106rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019107if { (ac_try="$ac_compile"
19108case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19111esac
19112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019114 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019119 (exit $ac_status); } && {
19120 test -z "$ac_c_werror_flag" ||
19121 test ! -s conftest.err
19122 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019123 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000019124else
Martin v. Löwis11437992002-04-12 09:54:03 +000019125 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019126sed 's/^/| /' conftest.$ac_ext >&5
19127
Martin v. Löwiseba40652007-08-30 20:10:57 +000019128 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000019129fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019130
19131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019132fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019133{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19134echo "${ECHO_T}$ac_cv_header_time" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000019135if test $ac_cv_header_time = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019136
19137cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019138#define TIME_WITH_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019139_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019140
19141fi
19142
Martin v. Löwiseba40652007-08-30 20:10:57 +000019143{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19144echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019145if test "${ac_cv_struct_tm+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019147else
Martin v. Löwis11437992002-04-12 09:54:03 +000019148 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019154#include <sys/types.h>
19155#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000019156
Martin v. Löwis11437992002-04-12 09:54:03 +000019157int
19158main ()
19159{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019160struct tm tm;
19161 int *p = &tm.tm_sec;
19162 return !p;
Martin v. Löwis11437992002-04-12 09:54:03 +000019163 ;
19164 return 0;
19165}
19166_ACEOF
19167rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019168if { (ac_try="$ac_compile"
19169case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172esac
19173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019175 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019180 (exit $ac_status); } && {
19181 test -z "$ac_c_werror_flag" ||
19182 test ! -s conftest.err
19183 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019184 ac_cv_struct_tm=time.h
19185else
Martin v. Löwis11437992002-04-12 09:54:03 +000019186 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019187sed 's/^/| /' conftest.$ac_ext >&5
19188
Martin v. Löwiseba40652007-08-30 20:10:57 +000019189 ac_cv_struct_tm=sys/time.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019190fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019191
19192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019193fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019194{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19195echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000019196if test $ac_cv_struct_tm = sys/time.h; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019197
19198cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019199#define TM_IN_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019200_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019201
19202fi
19203
Martin v. Löwiseba40652007-08-30 20:10:57 +000019204{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19205echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019206if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019208else
Martin v. Löwis11437992002-04-12 09:54:03 +000019209 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019210/* confdefs.h. */
19211_ACEOF
19212cat confdefs.h >>conftest.$ac_ext
19213cat >>conftest.$ac_ext <<_ACEOF
19214/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019215#include <sys/types.h>
19216#include <$ac_cv_struct_tm>
Martin v. Löwis11437992002-04-12 09:54:03 +000019217
19218
Martin v. Löwis11437992002-04-12 09:54:03 +000019219int
19220main ()
19221{
19222static struct tm ac_aggr;
19223if (ac_aggr.tm_zone)
19224return 0;
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019230if { (ac_try="$ac_compile"
19231case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19234esac
19235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019237 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019242 (exit $ac_status); } && {
19243 test -z "$ac_c_werror_flag" ||
19244 test ! -s conftest.err
19245 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019246 ac_cv_member_struct_tm_tm_zone=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000019247else
Martin v. Löwis11437992002-04-12 09:54:03 +000019248 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019249sed 's/^/| /' conftest.$ac_ext >&5
19250
Martin v. Löwiseba40652007-08-30 20:10:57 +000019251 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257#include <sys/types.h>
19258#include <$ac_cv_struct_tm>
19259
19260
19261int
19262main ()
19263{
19264static struct tm ac_aggr;
19265if (sizeof ac_aggr.tm_zone)
19266return 0;
19267 ;
19268 return 0;
19269}
19270_ACEOF
19271rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019272if { (ac_try="$ac_compile"
19273case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19276esac
19277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000019279 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019284 (exit $ac_status); } && {
19285 test -z "$ac_c_werror_flag" ||
19286 test ! -s conftest.err
19287 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000019288 ac_cv_member_struct_tm_tm_zone=yes
19289else
19290 echo "$as_me: failed program was:" >&5
19291sed 's/^/| /' conftest.$ac_ext >&5
19292
Martin v. Löwiseba40652007-08-30 20:10:57 +000019293 ac_cv_member_struct_tm_tm_zone=no
Michael W. Hudson54241132001-12-07 15:38:26 +000019294fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019295
19296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000019297fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019298
19299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000019300fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019301{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19302echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019303if test $ac_cv_member_struct_tm_tm_zone = yes; then
19304
19305cat >>confdefs.h <<_ACEOF
19306#define HAVE_STRUCT_TM_TM_ZONE 1
19307_ACEOF
19308
19309
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019310fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000019311
Martin v. Löwis11437992002-04-12 09:54:03 +000019312if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19313
19314cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019315#define HAVE_TM_ZONE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019316_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019317
19318else
Martin v. Löwiseba40652007-08-30 20:10:57 +000019319 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19320echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19321if test "${ac_cv_have_decl_tzname+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19323else
19324 cat >conftest.$ac_ext <<_ACEOF
19325/* confdefs.h. */
19326_ACEOF
19327cat confdefs.h >>conftest.$ac_ext
19328cat >>conftest.$ac_ext <<_ACEOF
19329/* end confdefs.h. */
19330#include <time.h>
19331
19332int
19333main ()
19334{
19335#ifndef tzname
19336 (void) tzname;
19337#endif
19338
19339 ;
19340 return 0;
19341}
19342_ACEOF
19343rm -f conftest.$ac_objext
19344if { (ac_try="$ac_compile"
19345case "(($ac_try" in
19346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347 *) ac_try_echo=$ac_try;;
19348esac
19349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_compile") 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } && {
19357 test -z "$ac_c_werror_flag" ||
19358 test ! -s conftest.err
19359 } && test -s conftest.$ac_objext; then
19360 ac_cv_have_decl_tzname=yes
19361else
19362 echo "$as_me: failed program was:" >&5
19363sed 's/^/| /' conftest.$ac_ext >&5
19364
19365 ac_cv_have_decl_tzname=no
19366fi
19367
19368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19369fi
19370{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19371echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19372if test $ac_cv_have_decl_tzname = yes; then
19373
19374cat >>confdefs.h <<_ACEOF
19375#define HAVE_DECL_TZNAME 1
19376_ACEOF
19377
19378
19379else
19380 cat >>confdefs.h <<_ACEOF
19381#define HAVE_DECL_TZNAME 0
19382_ACEOF
19383
19384
19385fi
19386
19387
19388 { echo "$as_me:$LINENO: checking for tzname" >&5
19389echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019390if test "${ac_cv_var_tzname+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019392else
Martin v. Löwis11437992002-04-12 09:54:03 +000019393 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019394/* confdefs.h. */
19395_ACEOF
19396cat confdefs.h >>conftest.$ac_ext
19397cat >>conftest.$ac_ext <<_ACEOF
19398/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000019399#include <time.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +000019400#if !HAVE_DECL_TZNAME
19401extern char *tzname[];
Guido van Rossum627b2d71993-12-24 10:39:16 +000019402#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019403
Martin v. Löwis11437992002-04-12 09:54:03 +000019404int
19405main ()
19406{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019407return tzname[0][0];
Martin v. Löwis11437992002-04-12 09:54:03 +000019408 ;
19409 return 0;
19410}
19411_ACEOF
19412rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019413if { (ac_try="$ac_link"
19414case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19417esac
19418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019420 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -f conftest.er1
19423 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest$ac_exeext &&
19429 $as_test_x conftest$ac_exeext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019430 ac_cv_var_tzname=yes
19431else
Martin v. Löwis11437992002-04-12 09:54:03 +000019432 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019433sed 's/^/| /' conftest.$ac_ext >&5
19434
Martin v. Löwiseba40652007-08-30 20:10:57 +000019435 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000019436fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019437
19438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019439 conftest$ac_exeext conftest.$ac_ext
Guido van Rossum627b2d71993-12-24 10:39:16 +000019440fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019441{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19442echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000019443 if test $ac_cv_var_tzname = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019444
19445cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019446#define HAVE_TZNAME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019447_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000019448
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019449 fi
19450fi
19451
Martin v. Löwiseba40652007-08-30 20:10:57 +000019452{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19453echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019454if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456else
19457 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019458/* confdefs.h. */
19459_ACEOF
19460cat confdefs.h >>conftest.$ac_ext
19461cat >>conftest.$ac_ext <<_ACEOF
19462/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019463$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000019464int
19465main ()
19466{
19467static struct stat ac_aggr;
19468if (ac_aggr.st_rdev)
19469return 0;
19470 ;
19471 return 0;
19472}
19473_ACEOF
19474rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019475if { (ac_try="$ac_compile"
19476case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19479esac
19480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019482 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019491 ac_cv_member_struct_stat_st_rdev=yes
19492else
19493 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019494sed 's/^/| /' conftest.$ac_ext >&5
19495
Martin v. Löwiseba40652007-08-30 20:10:57 +000019496 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
19502$ac_includes_default
19503int
19504main ()
19505{
19506static struct stat ac_aggr;
19507if (sizeof ac_aggr.st_rdev)
19508return 0;
19509 ;
19510 return 0;
19511}
19512_ACEOF
19513rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019514if { (ac_try="$ac_compile"
19515case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518esac
19519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000019521 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019526 (exit $ac_status); } && {
19527 test -z "$ac_c_werror_flag" ||
19528 test ! -s conftest.err
19529 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000019530 ac_cv_member_struct_stat_st_rdev=yes
19531else
19532 echo "$as_me: failed program was:" >&5
19533sed 's/^/| /' conftest.$ac_ext >&5
19534
Martin v. Löwiseba40652007-08-30 20:10:57 +000019535 ac_cv_member_struct_stat_st_rdev=no
Martin v. Löwis11437992002-04-12 09:54:03 +000019536fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019537
19538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000019539fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019540
19541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000019542fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019543{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19544echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019545if test $ac_cv_member_struct_stat_st_rdev = yes; then
19546
19547cat >>confdefs.h <<_ACEOF
19548#define HAVE_STRUCT_STAT_ST_RDEV 1
19549_ACEOF
19550
19551
Guido van Rossum98bf58f2001-10-18 20:34:25 +000019552fi
19553
Martin v. Löwiseba40652007-08-30 20:10:57 +000019554{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19555echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019556if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum98bf58f2001-10-18 20:34:25 +000019558else
Martin v. Löwis11437992002-04-12 09:54:03 +000019559 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019560/* confdefs.h. */
19561_ACEOF
19562cat confdefs.h >>conftest.$ac_ext
19563cat >>conftest.$ac_ext <<_ACEOF
19564/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019565$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000019566int
19567main ()
19568{
19569static struct stat ac_aggr;
19570if (ac_aggr.st_blksize)
19571return 0;
19572 ;
19573 return 0;
19574}
19575_ACEOF
19576rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019577if { (ac_try="$ac_compile"
19578case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19581esac
19582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019584 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019589 (exit $ac_status); } && {
19590 test -z "$ac_c_werror_flag" ||
19591 test ! -s conftest.err
19592 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019593 ac_cv_member_struct_stat_st_blksize=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000019594else
Martin v. Löwis11437992002-04-12 09:54:03 +000019595 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019596sed 's/^/| /' conftest.$ac_ext >&5
19597
Martin v. Löwiseba40652007-08-30 20:10:57 +000019598 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019599/* confdefs.h. */
19600_ACEOF
19601cat confdefs.h >>conftest.$ac_ext
19602cat >>conftest.$ac_ext <<_ACEOF
19603/* end confdefs.h. */
19604$ac_includes_default
19605int
19606main ()
19607{
19608static struct stat ac_aggr;
19609if (sizeof ac_aggr.st_blksize)
19610return 0;
19611 ;
19612 return 0;
19613}
19614_ACEOF
19615rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019616if { (ac_try="$ac_compile"
19617case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620esac
19621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000019623 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000019632 ac_cv_member_struct_stat_st_blksize=yes
19633else
19634 echo "$as_me: failed program was:" >&5
19635sed 's/^/| /' conftest.$ac_ext >&5
19636
Martin v. Löwiseba40652007-08-30 20:10:57 +000019637 ac_cv_member_struct_stat_st_blksize=no
Michael W. Hudson54241132001-12-07 15:38:26 +000019638fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019639
19640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000019641fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019642
19643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000019644fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019645{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19646echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019647if test $ac_cv_member_struct_stat_st_blksize = yes; then
Jack Jansendd19cf82001-12-06 22:36:17 +000019648
Martin v. Löwis11437992002-04-12 09:54:03 +000019649cat >>confdefs.h <<_ACEOF
19650#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19651_ACEOF
19652
19653
Guido van Rossum98bf58f2001-10-18 20:34:25 +000019654fi
19655
Martin v. Löwiseba40652007-08-30 20:10:57 +000019656{ echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19657echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019658if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660else
19661 cat >conftest.$ac_ext <<_ACEOF
19662/* confdefs.h. */
19663_ACEOF
19664cat confdefs.h >>conftest.$ac_ext
19665cat >>conftest.$ac_ext <<_ACEOF
19666/* end confdefs.h. */
19667$ac_includes_default
19668int
19669main ()
19670{
19671static struct stat ac_aggr;
19672if (ac_aggr.st_flags)
19673return 0;
19674 ;
19675 return 0;
19676}
19677_ACEOF
19678rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019679if { (ac_try="$ac_compile"
19680case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683esac
19684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_compile") 2>conftest.er1
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019691 (exit $ac_status); } && {
19692 test -z "$ac_c_werror_flag" ||
19693 test ! -s conftest.err
19694 } && test -s conftest.$ac_objext; then
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019695 ac_cv_member_struct_stat_st_flags=yes
19696else
19697 echo "$as_me: failed program was:" >&5
19698sed 's/^/| /' conftest.$ac_ext >&5
19699
Martin v. Löwiseba40652007-08-30 20:10:57 +000019700 cat >conftest.$ac_ext <<_ACEOF
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019701/* confdefs.h. */
19702_ACEOF
19703cat confdefs.h >>conftest.$ac_ext
19704cat >>conftest.$ac_ext <<_ACEOF
19705/* end confdefs.h. */
19706$ac_includes_default
19707int
19708main ()
19709{
19710static struct stat ac_aggr;
19711if (sizeof ac_aggr.st_flags)
19712return 0;
19713 ;
19714 return 0;
19715}
19716_ACEOF
19717rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019718if { (ac_try="$ac_compile"
19719case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722esac
19723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_compile") 2>conftest.er1
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest.$ac_objext; then
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019734 ac_cv_member_struct_stat_st_flags=yes
19735else
19736 echo "$as_me: failed program was:" >&5
19737sed 's/^/| /' conftest.$ac_ext >&5
19738
Martin v. Löwiseba40652007-08-30 20:10:57 +000019739 ac_cv_member_struct_stat_st_flags=no
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019740fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019741
19742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019743fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019744
19745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019746fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019747{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19748echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000019749if test $ac_cv_member_struct_stat_st_flags = yes; then
19750
19751cat >>confdefs.h <<_ACEOF
19752#define HAVE_STRUCT_STAT_ST_FLAGS 1
19753_ACEOF
19754
19755
19756fi
19757
Martin v. Löwiseba40652007-08-30 20:10:57 +000019758{ echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19759echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019760if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762else
19763 cat >conftest.$ac_ext <<_ACEOF
19764/* confdefs.h. */
19765_ACEOF
19766cat confdefs.h >>conftest.$ac_ext
19767cat >>conftest.$ac_ext <<_ACEOF
19768/* end confdefs.h. */
19769$ac_includes_default
19770int
19771main ()
19772{
19773static struct stat ac_aggr;
19774if (ac_aggr.st_gen)
19775return 0;
19776 ;
19777 return 0;
19778}
19779_ACEOF
19780rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019781if { (ac_try="$ac_compile"
19782case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785esac
19786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019797 ac_cv_member_struct_stat_st_gen=yes
19798else
19799 echo "$as_me: failed program was:" >&5
19800sed 's/^/| /' conftest.$ac_ext >&5
19801
Martin v. Löwiseba40652007-08-30 20:10:57 +000019802 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019803/* confdefs.h. */
19804_ACEOF
19805cat confdefs.h >>conftest.$ac_ext
19806cat >>conftest.$ac_ext <<_ACEOF
19807/* end confdefs.h. */
19808$ac_includes_default
19809int
19810main ()
19811{
19812static struct stat ac_aggr;
19813if (sizeof ac_aggr.st_gen)
19814return 0;
19815 ;
19816 return 0;
19817}
19818_ACEOF
19819rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019820if { (ac_try="$ac_compile"
19821case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19824esac
19825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019836 ac_cv_member_struct_stat_st_gen=yes
19837else
19838 echo "$as_me: failed program was:" >&5
19839sed 's/^/| /' conftest.$ac_ext >&5
19840
Martin v. Löwiseba40652007-08-30 20:10:57 +000019841 ac_cv_member_struct_stat_st_gen=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019842fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019843
19844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019845fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019846
19847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019848fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019849{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19850echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019851if test $ac_cv_member_struct_stat_st_gen = yes; then
19852
19853cat >>confdefs.h <<_ACEOF
19854#define HAVE_STRUCT_STAT_ST_GEN 1
19855_ACEOF
19856
19857
19858fi
19859
Martin v. Löwiseba40652007-08-30 20:10:57 +000019860{ echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19861echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019862if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19864else
19865 cat >conftest.$ac_ext <<_ACEOF
19866/* confdefs.h. */
19867_ACEOF
19868cat confdefs.h >>conftest.$ac_ext
19869cat >>conftest.$ac_ext <<_ACEOF
19870/* end confdefs.h. */
19871$ac_includes_default
19872int
19873main ()
19874{
19875static struct stat ac_aggr;
19876if (ac_aggr.st_birthtime)
19877return 0;
19878 ;
19879 return 0;
19880}
19881_ACEOF
19882rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019883if { (ac_try="$ac_compile"
19884case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887esac
19888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019895 (exit $ac_status); } && {
19896 test -z "$ac_c_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019899 ac_cv_member_struct_stat_st_birthtime=yes
19900else
19901 echo "$as_me: failed program was:" >&5
19902sed 's/^/| /' conftest.$ac_ext >&5
19903
Martin v. Löwiseba40652007-08-30 20:10:57 +000019904 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019905/* confdefs.h. */
19906_ACEOF
19907cat confdefs.h >>conftest.$ac_ext
19908cat >>conftest.$ac_ext <<_ACEOF
19909/* end confdefs.h. */
19910$ac_includes_default
19911int
19912main ()
19913{
19914static struct stat ac_aggr;
19915if (sizeof ac_aggr.st_birthtime)
19916return 0;
19917 ;
19918 return 0;
19919}
19920_ACEOF
19921rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019922if { (ac_try="$ac_compile"
19923case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926esac
19927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019938 ac_cv_member_struct_stat_st_birthtime=yes
19939else
19940 echo "$as_me: failed program was:" >&5
19941sed 's/^/| /' conftest.$ac_ext >&5
19942
Martin v. Löwiseba40652007-08-30 20:10:57 +000019943 ac_cv_member_struct_stat_st_birthtime=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019944fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019945
19946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019947fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019948
19949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019950fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019951{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19952echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000019953if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19954
19955cat >>confdefs.h <<_ACEOF
19956#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19957_ACEOF
19958
19959
19960fi
19961
Martin v. Löwiseba40652007-08-30 20:10:57 +000019962{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19963echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019964if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum98bf58f2001-10-18 20:34:25 +000019966else
Martin v. Löwis11437992002-04-12 09:54:03 +000019967 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019968/* confdefs.h. */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019973$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000019974int
19975main ()
19976{
19977static struct stat ac_aggr;
19978if (ac_aggr.st_blocks)
19979return 0;
19980 ;
19981 return 0;
19982}
19983_ACEOF
19984rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019985if { (ac_try="$ac_compile"
19986case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989esac
19990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019992 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020001 ac_cv_member_struct_stat_st_blocks=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000020002else
Martin v. Löwis11437992002-04-12 09:54:03 +000020003 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020004sed 's/^/| /' conftest.$ac_ext >&5
20005
Martin v. Löwiseba40652007-08-30 20:10:57 +000020006 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020007/* confdefs.h. */
20008_ACEOF
20009cat confdefs.h >>conftest.$ac_ext
20010cat >>conftest.$ac_ext <<_ACEOF
20011/* end confdefs.h. */
20012$ac_includes_default
20013int
20014main ()
20015{
20016static struct stat ac_aggr;
20017if (sizeof ac_aggr.st_blocks)
20018return 0;
20019 ;
20020 return 0;
20021}
20022_ACEOF
20023rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020024if { (ac_try="$ac_compile"
20025case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028esac
20029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000020031 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000020040 ac_cv_member_struct_stat_st_blocks=yes
20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
Martin v. Löwiseba40652007-08-30 20:10:57 +000020045 ac_cv_member_struct_stat_st_blocks=no
Michael W. Hudson54241132001-12-07 15:38:26 +000020046fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020047
20048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020049fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020050
20051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000020052fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020053{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20054echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020055if test $ac_cv_member_struct_stat_st_blocks = yes; then
Jack Jansendd19cf82001-12-06 22:36:17 +000020056
Martin v. Löwis11437992002-04-12 09:54:03 +000020057cat >>confdefs.h <<_ACEOF
20058#define HAVE_STRUCT_STAT_ST_BLOCKS 1
20059_ACEOF
20060
20061
20062cat >>confdefs.h <<\_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020063#define HAVE_ST_BLOCKS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020064_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020065
20066else
Martin v. Löwiseba40652007-08-30 20:10:57 +000020067 case " $LIBOBJS " in
Skip Montanarof0d5f792004-08-15 14:08:23 +000020068 *" fileblocks.$ac_objext "* ) ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000020069 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20070 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000020071esac
20072
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020073fi
20074
Michael W. Hudson54241132001-12-07 15:38:26 +000020075
Martin v. Löwis11437992002-04-12 09:54:03 +000020076
Martin v. Löwiseba40652007-08-30 20:10:57 +000020077{ echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20078echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020079if test "${ac_cv_header_time_altzone+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020081else
Martin v. Löwis11437992002-04-12 09:54:03 +000020082 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000020088#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020089int
20090main ()
20091{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020092return altzone;
Martin v. Löwis11437992002-04-12 09:54:03 +000020093 ;
20094 return 0;
20095}
20096_ACEOF
20097rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020098if { (ac_try="$ac_compile"
20099case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20102esac
20103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020105 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020114 ac_cv_header_time_altzone=yes
20115else
Martin v. Löwis11437992002-04-12 09:54:03 +000020116 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020117sed 's/^/| /' conftest.$ac_ext >&5
20118
Martin v. Löwiseba40652007-08-30 20:10:57 +000020119 ac_cv_header_time_altzone=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020120fi
20121
Martin v. Löwiseba40652007-08-30 20:10:57 +000020122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20123fi
20124
20125{ echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20126echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020127if test $ac_cv_header_time_altzone = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020128
20129cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020130#define HAVE_ALTZONE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020131_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020132
20133fi
20134
Guido van Rossumda88dad1995-01-26 00:46:29 +000020135was_it_defined=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000020136{ echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20137echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020138cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020139/* confdefs.h. */
20140_ACEOF
20141cat confdefs.h >>conftest.$ac_ext
20142cat >>conftest.$ac_ext <<_ACEOF
20143/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000020144
20145#include <sys/types.h>
20146#include <sys/select.h>
20147#include <sys/time.h>
20148
Martin v. Löwis11437992002-04-12 09:54:03 +000020149int
20150main ()
20151{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020152;
Martin v. Löwis11437992002-04-12 09:54:03 +000020153 ;
20154 return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020158if { (ac_try="$ac_compile"
20159case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162esac
20163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020165 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020170 (exit $ac_status); } && {
20171 test -z "$ac_c_werror_flag" ||
20172 test ! -s conftest.err
20173 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020174
20175
20176cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020177#define SYS_SELECT_WITH_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020178_ACEOF
20179
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020180 was_it_defined=yes
20181
Guido van Rossumf78abae1997-01-21 22:02:36 +000020182else
Martin v. Löwis11437992002-04-12 09:54:03 +000020183 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020184sed 's/^/| /' conftest.$ac_ext >&5
20185
Brett Cannon19fab762007-06-02 03:02:29 +000020186
Martin v. Löwiseba40652007-08-30 20:10:57 +000020187fi
20188
20189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
20191echo "${ECHO_T}$was_it_defined" >&6; }
20192
20193{ echo "$as_me:$LINENO: checking for addrinfo" >&5
20194echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020195if test "${ac_cv_struct_addrinfo+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020197else
Martin v. Löwis11437992002-04-12 09:54:03 +000020198 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020204
20205# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020206int
20207main ()
20208{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020209struct addrinfo a
Martin v. Löwis11437992002-04-12 09:54:03 +000020210 ;
20211 return 0;
20212}
20213_ACEOF
20214rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020215if { (ac_try="$ac_compile"
20216case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20219esac
20220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020222 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020227 (exit $ac_status); } && {
20228 test -z "$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20230 } && test -s conftest.$ac_objext; then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020231 ac_cv_struct_addrinfo=yes
20232else
Martin v. Löwis11437992002-04-12 09:54:03 +000020233 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020234sed 's/^/| /' conftest.$ac_ext >&5
20235
Martin v. Löwiseba40652007-08-30 20:10:57 +000020236 ac_cv_struct_addrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020237fi
20238
Martin v. Löwiseba40652007-08-30 20:10:57 +000020239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240fi
20241
20242{ echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20243echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020244if test $ac_cv_struct_addrinfo = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020245
20246cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020247#define HAVE_ADDRINFO 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020248_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020249
20250fi
20251
Martin v. Löwiseba40652007-08-30 20:10:57 +000020252{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20253echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020254if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020256else
Martin v. Löwis11437992002-04-12 09:54:03 +000020257 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020258/* confdefs.h. */
20259_ACEOF
20260cat confdefs.h >>conftest.$ac_ext
20261cat >>conftest.$ac_ext <<_ACEOF
20262/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020263
20264# include <sys/types.h>
20265# include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020266int
20267main ()
20268{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020269struct sockaddr_storage s
Martin v. Löwis11437992002-04-12 09:54:03 +000020270 ;
20271 return 0;
20272}
20273_ACEOF
20274rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020275if { (ac_try="$ac_compile"
20276case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279esac
20280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020282 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest.$ac_objext; then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020291 ac_cv_struct_sockaddr_storage=yes
20292else
Martin v. Löwis11437992002-04-12 09:54:03 +000020293 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020294sed 's/^/| /' conftest.$ac_ext >&5
20295
Martin v. Löwiseba40652007-08-30 20:10:57 +000020296 ac_cv_struct_sockaddr_storage=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020297fi
20298
Martin v. Löwiseba40652007-08-30 20:10:57 +000020299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300fi
20301
20302{ echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20303echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020304if test $ac_cv_struct_sockaddr_storage = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020305
20306cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020307#define HAVE_SOCKADDR_STORAGE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020308_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020309
20310fi
20311
Guido van Rossum627b2d71993-12-24 10:39:16 +000020312# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:30 +000020313
Michael W. Hudson54241132001-12-07 15:38:26 +000020314
Martin v. Löwiseba40652007-08-30 20:10:57 +000020315{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20316echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020317if test "${ac_cv_c_char_unsigned+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansendd19cf82001-12-06 22:36:17 +000020319else
Martin v. Löwis11437992002-04-12 09:54:03 +000020320 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020321/* confdefs.h. */
20322_ACEOF
20323cat confdefs.h >>conftest.$ac_ext
20324cat >>conftest.$ac_ext <<_ACEOF
20325/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000020326$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000020327int
20328main ()
20329{
20330static int test_array [1 - 2 * !(((char) -1) < 0)];
20331test_array [0] = 0
20332
20333 ;
20334 return 0;
Michael W. Hudson54241132001-12-07 15:38:26 +000020335}
Martin v. Löwis11437992002-04-12 09:54:03 +000020336_ACEOF
20337rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020338if { (ac_try="$ac_compile"
20339case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342esac
20343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020345 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest.$ac_objext; then
Michael W. Hudson54241132001-12-07 15:38:26 +000020354 ac_cv_c_char_unsigned=no
Martin v. Löwis11437992002-04-12 09:54:03 +000020355else
20356 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020357sed 's/^/| /' conftest.$ac_ext >&5
20358
Martin v. Löwiseba40652007-08-30 20:10:57 +000020359 ac_cv_c_char_unsigned=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020360fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020361
20362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020363fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020364{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20365echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020366if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020367 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020368#define __CHAR_UNSIGNED__ 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020369_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020370
20371fi
Guido van Rossum7f43da71994-08-01 12:15:30 +000020372
Martin v. Löwiseba40652007-08-30 20:10:57 +000020373{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20374echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020375if test "${ac_cv_c_const+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377else
20378 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020379/* confdefs.h. */
20380_ACEOF
20381cat confdefs.h >>conftest.$ac_ext
20382cat >>conftest.$ac_ext <<_ACEOF
20383/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020384
Martin v. Löwis11437992002-04-12 09:54:03 +000020385int
20386main ()
20387{
20388/* FIXME: Include the comments suggested by Paul. */
20389#ifndef __cplusplus
20390 /* Ultrix mips cc rejects this. */
20391 typedef int charset[2];
Martin v. Löwiseba40652007-08-30 20:10:57 +000020392 const charset cs;
Martin v. Löwis11437992002-04-12 09:54:03 +000020393 /* SunOS 4.1.1 cc rejects this. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020394 char const *const *pcpcc;
20395 char **ppc;
Martin v. Löwis11437992002-04-12 09:54:03 +000020396 /* NEC SVR4.0.2 mips cc rejects this. */
20397 struct point {int x, y;};
20398 static struct point const zero = {0,0};
20399 /* AIX XL C 1.02.0.0 rejects this.
20400 It does not let you subtract one const X* pointer from another in
20401 an arm of an if-expression whose if-part is not a constant
20402 expression */
20403 const char *g = "string";
Martin v. Löwiseba40652007-08-30 20:10:57 +000020404 pcpcc = &g + (g ? g-g : 0);
Martin v. Löwis11437992002-04-12 09:54:03 +000020405 /* HPUX 7.0 cc rejects these. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020406 ++pcpcc;
20407 ppc = (char**) pcpcc;
20408 pcpcc = (char const *const *) ppc;
Martin v. Löwis11437992002-04-12 09:54:03 +000020409 { /* SCO 3.2v4 cc rejects this. */
20410 char *t;
20411 char const *s = 0 ? (char *) 0 : (char const *) 0;
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020412
Martin v. Löwis11437992002-04-12 09:54:03 +000020413 *t++ = 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000020414 if (s) return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000020415 }
20416 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20417 int x[] = {25, 17};
20418 const int *foo = &x[0];
20419 ++foo;
20420 }
20421 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20422 typedef const int *iptr;
20423 iptr p = 0;
20424 ++p;
20425 }
20426 { /* AIX XL C 1.02.0.0 rejects this saying
20427 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20428 struct s { int j; const int *ap[3]; };
20429 struct s *b; b->j = 5;
20430 }
20431 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20432 const int foo = 10;
Martin v. Löwiseba40652007-08-30 20:10:57 +000020433 if (!foo) return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000020434 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000020435 return !cs[0] && !zero.x;
Martin v. Löwis11437992002-04-12 09:54:03 +000020436#endif
Guido van Rossum627b2d71993-12-24 10:39:16 +000020437
Martin v. Löwis11437992002-04-12 09:54:03 +000020438 ;
20439 return 0;
Guido van Rossum627b2d71993-12-24 10:39:16 +000020440}
Martin v. Löwis11437992002-04-12 09:54:03 +000020441_ACEOF
20442rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020443if { (ac_try="$ac_compile"
20444case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20447esac
20448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020450 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020451 grep -v '^ *+' conftest.er1 >conftest.err
20452 rm -f conftest.er1
20453 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020455 (exit $ac_status); } && {
20456 test -z "$ac_c_werror_flag" ||
20457 test ! -s conftest.err
20458 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020459 ac_cv_c_const=yes
20460else
Martin v. Löwis11437992002-04-12 09:54:03 +000020461 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020462sed 's/^/| /' conftest.$ac_ext >&5
20463
Martin v. Löwiseba40652007-08-30 20:10:57 +000020464 ac_cv_c_const=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020465fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020466
20467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020468fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020469{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20470echo "${ECHO_T}$ac_cv_c_const" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020471if test $ac_cv_c_const = no; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020472
20473cat >>confdefs.h <<\_ACEOF
20474#define const
20475_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020476
20477fi
20478
Michael W. Hudson54241132001-12-07 15:38:26 +000020479
Guido van Rossumda88dad1995-01-26 00:46:29 +000020480works=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000020481{ echo "$as_me:$LINENO: checking for working volatile" >&5
20482echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020483cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020484/* confdefs.h. */
20485_ACEOF
20486cat confdefs.h >>conftest.$ac_ext
20487cat >>conftest.$ac_ext <<_ACEOF
20488/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000020489
Martin v. Löwis11437992002-04-12 09:54:03 +000020490int
20491main ()
20492{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020493volatile int x; x = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000020494 ;
20495 return 0;
20496}
20497_ACEOF
20498rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020499if { (ac_try="$ac_compile"
20500case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503esac
20504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020506 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020511 (exit $ac_status); } && {
20512 test -z "$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 } && test -s conftest.$ac_objext; then
Guido van Rossumda88dad1995-01-26 00:46:29 +000020515 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000020516else
Martin v. Löwis11437992002-04-12 09:54:03 +000020517 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020518sed 's/^/| /' conftest.$ac_ext >&5
20519
Martin v. Löwis11437992002-04-12 09:54:03 +000020520
20521cat >>confdefs.h <<\_ACEOF
20522#define volatile
20523_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000020524
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020525
Guido van Rossum627b2d71993-12-24 10:39:16 +000020526fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020527
20528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529{ echo "$as_me:$LINENO: result: $works" >&5
20530echo "${ECHO_T}$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000020531
Guido van Rossumda88dad1995-01-26 00:46:29 +000020532works=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000020533{ echo "$as_me:$LINENO: checking for working signed char" >&5
20534echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020535cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020536/* confdefs.h. */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>conftest.$ac_ext <<_ACEOF
20540/* end confdefs.h. */
Guido van Rossumdabb11b1994-10-11 15:04:27 +000020541
Martin v. Löwis11437992002-04-12 09:54:03 +000020542int
20543main ()
20544{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020545signed char c;
Martin v. Löwis11437992002-04-12 09:54:03 +000020546 ;
20547 return 0;
20548}
20549_ACEOF
20550rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020551if { (ac_try="$ac_compile"
20552case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555esac
20556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020558 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest.$ac_objext; then
Guido van Rossumda88dad1995-01-26 00:46:29 +000020567 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:27 +000020568else
Martin v. Löwis11437992002-04-12 09:54:03 +000020569 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020570sed 's/^/| /' conftest.$ac_ext >&5
20571
Martin v. Löwis11437992002-04-12 09:54:03 +000020572
20573cat >>confdefs.h <<\_ACEOF
20574#define signed
20575_ACEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +000020576
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020577
Guido van Rossum7f43da71994-08-01 12:15:30 +000020578fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020579
20580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581{ echo "$as_me:$LINENO: result: $works" >&5
20582echo "${ECHO_T}$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000020583
Guido van Rossumda88dad1995-01-26 00:46:29 +000020584have_prototypes=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000020585{ echo "$as_me:$LINENO: checking for prototypes" >&5
20586echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020587cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020588/* confdefs.h. */
20589_ACEOF
20590cat confdefs.h >>conftest.$ac_ext
20591cat >>conftest.$ac_ext <<_ACEOF
20592/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000020593int foo(int x) { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020594int
20595main ()
20596{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020597return foo(10);
Martin v. Löwis11437992002-04-12 09:54:03 +000020598 ;
20599 return 0;
20600}
20601_ACEOF
20602rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020603if { (ac_try="$ac_compile"
20604case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607esac
20608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020610 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020619
20620
20621cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020622#define HAVE_PROTOTYPES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020623_ACEOF
20624
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020625 have_prototypes=yes
20626
Guido van Rossumf78abae1997-01-21 22:02:36 +000020627else
Martin v. Löwis11437992002-04-12 09:54:03 +000020628 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020629sed 's/^/| /' conftest.$ac_ext >&5
20630
Martin v. Löwiseba40652007-08-30 20:10:57 +000020631
Guido van Rossum7f43da71994-08-01 12:15:30 +000020632fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020633
20634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20635{ echo "$as_me:$LINENO: result: $have_prototypes" >&5
20636echo "${ECHO_T}$have_prototypes" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020637
Guido van Rossumda88dad1995-01-26 00:46:29 +000020638works=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000020639{ echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20640echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020641cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020642/* confdefs.h. */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000020647
20648#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:57 +000020649int foo(int x, ...) {
20650 va_list va;
20651 va_start(va, x);
20652 va_arg(va, int);
20653 va_arg(va, char *);
20654 va_arg(va, double);
20655 return 0;
20656}
Guido van Rossum7f43da71994-08-01 12:15:30 +000020657
Martin v. Löwis11437992002-04-12 09:54:03 +000020658int
20659main ()
20660{
Guido van Rossum90eea071996-08-30 20:58:57 +000020661return foo(10, "", 3.14);
Martin v. Löwis11437992002-04-12 09:54:03 +000020662 ;
20663 return 0;
20664}
20665_ACEOF
20666rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020667if { (ac_try="$ac_compile"
20668case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20671esac
20672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020674 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020675 grep -v '^ *+' conftest.er1 >conftest.err
20676 rm -f conftest.er1
20677 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020679 (exit $ac_status); } && {
20680 test -z "$ac_c_werror_flag" ||
20681 test ! -s conftest.err
20682 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020683
20684
20685cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020686#define HAVE_STDARG_PROTOTYPES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020687_ACEOF
20688
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020689 works=yes
20690
Guido van Rossumf78abae1997-01-21 22:02:36 +000020691else
Martin v. Löwis11437992002-04-12 09:54:03 +000020692 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020693sed 's/^/| /' conftest.$ac_ext >&5
20694
Martin v. Löwiseba40652007-08-30 20:10:57 +000020695
Guido van Rossum627b2d71993-12-24 10:39:16 +000020696fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020697
20698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20699{ echo "$as_me:$LINENO: result: $works" >&5
20700echo "${ECHO_T}$works" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020701
Martin v. Löwisd6320502004-08-12 13:45:08 +000020702# check for socketpair
Martin v. Löwiseba40652007-08-30 20:10:57 +000020703{ echo "$as_me:$LINENO: checking for socketpair" >&5
20704echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000020705cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisd6320502004-08-12 13:45:08 +000020706/* confdefs.h. */
20707_ACEOF
20708cat confdefs.h >>conftest.$ac_ext
20709cat >>conftest.$ac_ext <<_ACEOF
20710/* end confdefs.h. */
20711
20712#include <sys/types.h>
20713#include <sys/socket.h>
20714
20715int
20716main ()
20717{
20718void *x=socketpair
20719 ;
20720 return 0;
20721}
20722_ACEOF
20723rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020724if { (ac_try="$ac_compile"
20725case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20728esac
20729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisd6320502004-08-12 13:45:08 +000020731 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
Martin v. Löwisd6320502004-08-12 13:45:08 +000020735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest.$ac_objext; then
Martin v. Löwisd6320502004-08-12 13:45:08 +000020740
20741cat >>confdefs.h <<\_ACEOF
20742#define HAVE_SOCKETPAIR 1
20743_ACEOF
20744
Martin v. Löwiseba40652007-08-30 20:10:57 +000020745 { echo "$as_me:$LINENO: result: yes" >&5
20746echo "${ECHO_T}yes" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000020747else
20748 echo "$as_me: failed program was:" >&5
20749sed 's/^/| /' conftest.$ac_ext >&5
20750
Martin v. Löwiseba40652007-08-30 20:10:57 +000020751 { echo "$as_me:$LINENO: result: no" >&5
20752echo "${ECHO_T}no" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000020753
20754fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020755
20756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:08 +000020757
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020758# check if sockaddr has sa_len member
Martin v. Löwiseba40652007-08-30 20:10:57 +000020759{ echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20760echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020761cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020762/* confdefs.h. */
20763_ACEOF
20764cat confdefs.h >>conftest.$ac_ext
20765cat >>conftest.$ac_ext <<_ACEOF
20766/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020767#include <sys/types.h>
20768#include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020769int
20770main ()
20771{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020772struct sockaddr x;
20773x.sa_len = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000020774 ;
20775 return 0;
20776}
20777_ACEOF
20778rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020779if { (ac_try="$ac_compile"
20780case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20783esac
20784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020786 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020791 (exit $ac_status); } && {
20792 test -z "$ac_c_werror_flag" ||
20793 test ! -s conftest.err
20794 } && test -s conftest.$ac_objext; then
20795 { echo "$as_me:$LINENO: result: yes" >&5
20796echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020797
20798cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020799#define HAVE_SOCKADDR_SA_LEN 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020800_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020801
20802else
Martin v. Löwis11437992002-04-12 09:54:03 +000020803 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020804sed 's/^/| /' conftest.$ac_ext >&5
20805
Martin v. Löwiseba40652007-08-30 20:10:57 +000020806 { echo "$as_me:$LINENO: result: no" >&5
20807echo "${ECHO_T}no" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020808fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020809
20810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020811
Guido van Rossumda88dad1995-01-26 00:46:29 +000020812va_list_is_array=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000020813{ echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20814echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020815cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020816/* confdefs.h. */
20817_ACEOF
20818cat confdefs.h >>conftest.$ac_ext
20819cat >>conftest.$ac_ext <<_ACEOF
20820/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020821
20822#ifdef HAVE_STDARG_PROTOTYPES
20823#include <stdarg.h>
20824#else
20825#include <varargs.h>
20826#endif
20827
Martin v. Löwis11437992002-04-12 09:54:03 +000020828int
20829main ()
20830{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020831va_list list1, list2; list1 = list2;
Martin v. Löwis11437992002-04-12 09:54:03 +000020832 ;
20833 return 0;
20834}
20835_ACEOF
20836rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020837if { (ac_try="$ac_compile"
20838case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841esac
20842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020844 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020853 :
20854else
Martin v. Löwis11437992002-04-12 09:54:03 +000020855 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020856sed 's/^/| /' conftest.$ac_ext >&5
20857
Martin v. Löwis11437992002-04-12 09:54:03 +000020858
20859
20860cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020861#define VA_LIST_IS_ARRAY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020862_ACEOF
20863
Guido van Rossumda88dad1995-01-26 00:46:29 +000020864 va_list_is_array=yes
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020865
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020866fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020867
20868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20869{ echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20870echo "${ECHO_T}$va_list_is_array" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020871
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020872# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
Martin v. Löwis11437992002-04-12 09:54:03 +000020873
20874
20875
Martin v. Löwiseba40652007-08-30 20:10:57 +000020876{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20877echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020878if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020880else
Martin v. Löwis11437992002-04-12 09:54:03 +000020881 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020882/* confdefs.h. */
20883_ACEOF
20884cat confdefs.h >>conftest.$ac_ext
20885cat >>conftest.$ac_ext <<_ACEOF
20886/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020887/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20889#define gethostbyname_r innocuous_gethostbyname_r
20890
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020891/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000020892 which can conflict with char gethostbyname_r (); below.
20893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020894 <limits.h> exists even on freestanding compilers. */
20895
20896#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000020897# include <limits.h>
20898#else
20899# include <assert.h>
20900#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020901
20902#undef gethostbyname_r
20903
Martin v. Löwiseba40652007-08-30 20:10:57 +000020904/* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000020907#ifdef __cplusplus
20908extern "C"
20909#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000020910char gethostbyname_r ();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020911/* The GNU C library defines this for functions which it implements
20912 to always fail with ENOSYS. Some functions are actually named
20913 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020914#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020915choke me
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020916#endif
20917
Skip Montanaro6dead952003-09-25 14:50:04 +000020918int
20919main ()
20920{
Martin v. Löwiseba40652007-08-30 20:10:57 +000020921return gethostbyname_r ();
Martin v. Löwis11437992002-04-12 09:54:03 +000020922 ;
20923 return 0;
20924}
20925_ACEOF
20926rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020927if { (ac_try="$ac_link"
20928case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20931esac
20932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020934 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020935 grep -v '^ *+' conftest.er1 >conftest.err
20936 rm -f conftest.er1
20937 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest$ac_exeext &&
20943 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020944 ac_cv_func_gethostbyname_r=yes
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020945else
Martin v. Löwis11437992002-04-12 09:54:03 +000020946 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020947sed 's/^/| /' conftest.$ac_ext >&5
20948
Martin v. Löwiseba40652007-08-30 20:10:57 +000020949 ac_cv_func_gethostbyname_r=no
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020950fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020951
20952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000020953 conftest$ac_exeext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020954fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020955{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20956echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020957if test $ac_cv_func_gethostbyname_r = yes; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020958
Martin v. Löwis11437992002-04-12 09:54:03 +000020959 cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020960#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020961_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020962
Martin v. Löwiseba40652007-08-30 20:10:57 +000020963 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20964echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020965 OLD_CFLAGS=$CFLAGS
20966 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
Martin v. Löwis11437992002-04-12 09:54:03 +000020967 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020968/* confdefs.h. */
20969_ACEOF
20970cat confdefs.h >>conftest.$ac_ext
20971cat >>conftest.$ac_ext <<_ACEOF
20972/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020973
20974# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020975
Martin v. Löwis11437992002-04-12 09:54:03 +000020976int
20977main ()
20978{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000020979
20980 char *name;
20981 struct hostent *he, *res;
20982 char buffer[2048];
20983 int buflen = 2048;
20984 int h_errnop;
20985
20986 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000020987
20988 ;
20989 return 0;
20990}
20991_ACEOF
20992rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020993if { (ac_try="$ac_compile"
20994case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20997esac
20998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021000 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021001 grep -v '^ *+' conftest.er1 >conftest.err
21002 rm -f conftest.er1
21003 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021005 (exit $ac_status); } && {
21006 test -z "$ac_c_werror_flag" ||
21007 test ! -s conftest.err
21008 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021009
21010 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021011#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021012_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021013
Martin v. Löwis11437992002-04-12 09:54:03 +000021014
21015cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021016#define HAVE_GETHOSTBYNAME_R_6_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021017_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021018
Martin v. Löwiseba40652007-08-30 20:10:57 +000021019 { echo "$as_me:$LINENO: result: yes" >&5
21020echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021021
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021022else
Martin v. Löwis11437992002-04-12 09:54:03 +000021023 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021024sed 's/^/| /' conftest.$ac_ext >&5
21025
Martin v. Löwis11437992002-04-12 09:54:03 +000021026
Martin v. Löwiseba40652007-08-30 20:10:57 +000021027 { echo "$as_me:$LINENO: result: no" >&5
21028echo "${ECHO_T}no" >&6; }
21029 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21030echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021031 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021032/* confdefs.h. */
21033_ACEOF
21034cat confdefs.h >>conftest.$ac_ext
21035cat >>conftest.$ac_ext <<_ACEOF
21036/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021037
21038# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000021039
Martin v. Löwis11437992002-04-12 09:54:03 +000021040int
21041main ()
21042{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021043
21044 char *name;
21045 struct hostent *he;
21046 char buffer[2048];
21047 int buflen = 2048;
21048 int h_errnop;
21049
21050 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000021051
21052 ;
21053 return 0;
21054}
21055_ACEOF
21056rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021057if { (ac_try="$ac_compile"
21058case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21061esac
21062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021064 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021073
21074 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021075#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021076_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021077
Martin v. Löwis11437992002-04-12 09:54:03 +000021078
21079cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021080#define HAVE_GETHOSTBYNAME_R_5_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021081_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021082
Martin v. Löwiseba40652007-08-30 20:10:57 +000021083 { echo "$as_me:$LINENO: result: yes" >&5
21084echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021085
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021086else
Martin v. Löwis11437992002-04-12 09:54:03 +000021087 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021088sed 's/^/| /' conftest.$ac_ext >&5
21089
Martin v. Löwis11437992002-04-12 09:54:03 +000021090
Martin v. Löwiseba40652007-08-30 20:10:57 +000021091 { echo "$as_me:$LINENO: result: no" >&5
21092echo "${ECHO_T}no" >&6; }
21093 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21094echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021095 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021096/* confdefs.h. */
21097_ACEOF
21098cat confdefs.h >>conftest.$ac_ext
21099cat >>conftest.$ac_ext <<_ACEOF
21100/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021101
21102# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000021103
Martin v. Löwis11437992002-04-12 09:54:03 +000021104int
21105main ()
21106{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021107
21108 char *name;
21109 struct hostent *he;
21110 struct hostent_data data;
21111
21112 (void) gethostbyname_r(name, he, &data);
Martin v. Löwis11437992002-04-12 09:54:03 +000021113
21114 ;
21115 return 0;
21116}
21117_ACEOF
21118rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021119if { (ac_try="$ac_compile"
21120case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21123esac
21124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021126 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021135
21136 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021137#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021138_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021139
Martin v. Löwis11437992002-04-12 09:54:03 +000021140
21141cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021142#define HAVE_GETHOSTBYNAME_R_3_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021143_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021144
Martin v. Löwiseba40652007-08-30 20:10:57 +000021145 { echo "$as_me:$LINENO: result: yes" >&5
21146echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021147
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021148else
Martin v. Löwis11437992002-04-12 09:54:03 +000021149 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021150sed 's/^/| /' conftest.$ac_ext >&5
21151
Martin v. Löwis11437992002-04-12 09:54:03 +000021152
Martin v. Löwiseba40652007-08-30 20:10:57 +000021153 { echo "$as_me:$LINENO: result: no" >&5
21154echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021155
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021156fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021157
21158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000021159
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021160fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021161
21162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000021163
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021164fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021165
21166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021167 CFLAGS=$OLD_CFLAGS
21168
21169else
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021170
Martin v. Löwis11437992002-04-12 09:54:03 +000021171
21172for ac_func in gethostbyname
Thomas Wouters3a584202000-08-05 23:28:51 +000021173do
Martin v. Löwis11437992002-04-12 09:54:03 +000021174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000021175{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21177if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021178 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021179else
Martin v. Löwis11437992002-04-12 09:54:03 +000021180 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021181/* confdefs.h. */
21182_ACEOF
21183cat confdefs.h >>conftest.$ac_ext
21184cat >>conftest.$ac_ext <<_ACEOF
21185/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21188#define $ac_func innocuous_$ac_func
21189
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021190/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000021191 which can conflict with char $ac_func (); below.
21192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021193 <limits.h> exists even on freestanding compilers. */
21194
21195#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000021196# include <limits.h>
21197#else
21198# include <assert.h>
21199#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021200
21201#undef $ac_func
21202
Martin v. Löwiseba40652007-08-30 20:10:57 +000021203/* Override any GCC internal prototype to avoid an error.
21204 Use char because int might match the return type of a GCC
21205 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021206#ifdef __cplusplus
21207extern "C"
21208#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000021209char $ac_func ();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021210/* The GNU C library defines this for functions which it implements
21211 to always fail with ENOSYS. Some functions are actually named
21212 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000021213#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021214choke me
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021215#endif
21216
Skip Montanaro6dead952003-09-25 14:50:04 +000021217int
21218main ()
21219{
Martin v. Löwiseba40652007-08-30 20:10:57 +000021220return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000021221 ;
21222 return 0;
21223}
21224_ACEOF
21225rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021226if { (ac_try="$ac_link"
21227case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230esac
21231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021233 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest$ac_exeext &&
21242 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021243 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000021244else
Martin v. Löwis11437992002-04-12 09:54:03 +000021245 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021246sed 's/^/| /' conftest.$ac_ext >&5
21247
Martin v. Löwiseba40652007-08-30 20:10:57 +000021248 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000021249fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021250
21251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000021252 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000021253fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021254ac_res=`eval echo '${'$as_ac_var'}'`
21255 { echo "$as_me:$LINENO: result: $ac_res" >&5
21256echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021257if test `eval echo '${'$as_ac_var'}'` = yes; then
21258 cat >>confdefs.h <<_ACEOF
21259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21260_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021261
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021262fi
Thomas Wouters3a584202000-08-05 23:28:51 +000021263done
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021264
Michael W. Hudson54241132001-12-07 15:38:26 +000021265
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021266fi
21267
Michael W. Hudson54241132001-12-07 15:38:26 +000021268
21269
21270
21271
21272
21273
Guido van Rossum627b2d71993-12-24 10:39:16 +000021274# checks for system services
21275# (none yet)
21276
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021277# Linux requires this for correct f.p. operations
Martin v. Löwiseba40652007-08-30 20:10:57 +000021278{ echo "$as_me:$LINENO: checking for __fpu_control" >&5
21279echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021280if test "${ac_cv_func___fpu_control+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021282else
Martin v. Löwis11437992002-04-12 09:54:03 +000021283 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021284/* confdefs.h. */
21285_ACEOF
21286cat confdefs.h >>conftest.$ac_ext
21287cat >>conftest.$ac_ext <<_ACEOF
21288/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021289/* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21291#define __fpu_control innocuous___fpu_control
21292
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021293/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000021294 which can conflict with char __fpu_control (); below.
21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021296 <limits.h> exists even on freestanding compilers. */
21297
21298#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000021299# include <limits.h>
21300#else
21301# include <assert.h>
21302#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021303
21304#undef __fpu_control
21305
Martin v. Löwiseba40652007-08-30 20:10:57 +000021306/* Override any GCC internal prototype to avoid an error.
21307 Use char because int might match the return type of a GCC
21308 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021309#ifdef __cplusplus
21310extern "C"
21311#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000021312char __fpu_control ();
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021313/* The GNU C library defines this for functions which it implements
21314 to always fail with ENOSYS. Some functions are actually named
21315 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000021316#if defined __stub___fpu_control || defined __stub_____fpu_control
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021317choke me
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021318#endif
21319
Skip Montanaro6dead952003-09-25 14:50:04 +000021320int
21321main ()
21322{
Martin v. Löwiseba40652007-08-30 20:10:57 +000021323return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000021324 ;
21325 return 0;
21326}
21327_ACEOF
21328rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021329if { (ac_try="$ac_link"
21330case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21333esac
21334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021336 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021337 grep -v '^ *+' conftest.er1 >conftest.err
21338 rm -f conftest.er1
21339 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021341 (exit $ac_status); } && {
21342 test -z "$ac_c_werror_flag" ||
21343 test ! -s conftest.err
21344 } && test -s conftest$ac_exeext &&
21345 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021346 ac_cv_func___fpu_control=yes
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021347else
Martin v. Löwis11437992002-04-12 09:54:03 +000021348 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021349sed 's/^/| /' conftest.$ac_ext >&5
21350
Martin v. Löwiseba40652007-08-30 20:10:57 +000021351 ac_cv_func___fpu_control=no
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021352fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021353
21354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000021355 conftest$ac_exeext conftest.$ac_ext
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021356fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021357{ echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21358echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021359if test $ac_cv_func___fpu_control = yes; then
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021360 :
21361else
Martin v. Löwis11437992002-04-12 09:54:03 +000021362
Martin v. Löwiseba40652007-08-30 20:10:57 +000021363{ echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21364echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021365if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021367else
Martin v. Löwis11437992002-04-12 09:54:03 +000021368 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000021369LIBS="-lieee $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000021370cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
21375/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021376
Martin v. Löwiseba40652007-08-30 20:10:57 +000021377/* Override any GCC internal prototype to avoid an error.
21378 Use char because int might match the return type of a GCC
21379 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021380#ifdef __cplusplus
21381extern "C"
21382#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000021383char __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000021384int
21385main ()
21386{
Martin v. Löwiseba40652007-08-30 20:10:57 +000021387return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000021388 ;
21389 return 0;
21390}
21391_ACEOF
21392rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021393if { (ac_try="$ac_link"
21394case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21397esac
21398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021400 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021401 grep -v '^ *+' conftest.er1 >conftest.err
21402 rm -f conftest.er1
21403 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021405 (exit $ac_status); } && {
21406 test -z "$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21408 } && test -s conftest$ac_exeext &&
21409 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021410 ac_cv_lib_ieee___fpu_control=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000021411else
Martin v. Löwis11437992002-04-12 09:54:03 +000021412 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021413sed 's/^/| /' conftest.$ac_ext >&5
21414
Martin v. Löwiseba40652007-08-30 20:10:57 +000021415 ac_cv_lib_ieee___fpu_control=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000021416fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021417
21418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000021419 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000021420LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021421fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021422{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21423echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021424if test $ac_cv_lib_ieee___fpu_control = yes; then
21425 cat >>confdefs.h <<_ACEOF
21426#define HAVE_LIBIEEE 1
21427_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021428
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000021429 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021430
Guido van Rossum627b2d71993-12-24 10:39:16 +000021431fi
21432
Michael W. Hudson54241132001-12-07 15:38:26 +000021433
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021434fi
21435
Michael W. Hudson54241132001-12-07 15:38:26 +000021436
Guido van Rossum7f253911997-05-09 02:42:48 +000021437# Check for --with-fpectl
Martin v. Löwiseba40652007-08-30 20:10:57 +000021438{ echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21439echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021440
Martin v. Löwiseba40652007-08-30 20:10:57 +000021441# Check whether --with-fpectl was given.
Guido van Rossum7f253911997-05-09 02:42:48 +000021442if test "${with_fpectl+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000021443 withval=$with_fpectl;
Guido van Rossum7f253911997-05-09 02:42:48 +000021444if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +000021445then
21446
21447cat >>confdefs.h <<\_ACEOF
Guido van Rossum7f253911997-05-09 02:42:48 +000021448#define WANT_SIGFPE_HANDLER 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021449_ACEOF
21450
Martin v. Löwiseba40652007-08-30 20:10:57 +000021451 { echo "$as_me:$LINENO: result: yes" >&5
21452echo "${ECHO_T}yes" >&6; }
21453else { echo "$as_me:$LINENO: result: no" >&5
21454echo "${ECHO_T}no" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000021455fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000021456else
Martin v. Löwiseba40652007-08-30 20:10:57 +000021457 { echo "$as_me:$LINENO: result: no" >&5
21458echo "${ECHO_T}no" >&6; }
21459fi
21460
Guido van Rossum7f253911997-05-09 02:42:48 +000021461
Guido van Rossum7f43da71994-08-01 12:15:30 +000021462# check for --with-libm=...
21463
Guido van Rossum563e7081996-09-10 18:20:48 +000021464case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:06 +000021465Darwin) ;;
Guido van Rossumec95c7b1998-08-04 17:59:56 +000021466BeOS) ;;
Guido van Rossum563e7081996-09-10 18:20:48 +000021467*) LIBM=-lm
21468esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000021469{ echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21470echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021471
Martin v. Löwiseba40652007-08-30 20:10:57 +000021472# Check whether --with-libm was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000021473if test "${with_libm+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000021474 withval=$with_libm;
Guido van Rossum7f253911997-05-09 02:42:48 +000021475if test "$withval" = no
21476then LIBM=
Martin v. Löwiseba40652007-08-30 20:10:57 +000021477 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21478echo "${ECHO_T}force LIBM empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000021479elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000021480then LIBM=$withval
Martin v. Löwiseba40652007-08-30 20:10:57 +000021481 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21482echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021483else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21484echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21485 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000021486fi
Guido van Rossum7f253911997-05-09 02:42:48 +000021487else
Martin v. Löwiseba40652007-08-30 20:10:57 +000021488 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21489echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21490fi
21491
Guido van Rossum7f43da71994-08-01 12:15:30 +000021492
21493# check for --with-libc=...
21494
Martin v. Löwiseba40652007-08-30 20:10:57 +000021495{ echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21496echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021497
Martin v. Löwiseba40652007-08-30 20:10:57 +000021498# Check whether --with-libc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000021499if test "${with_libc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000021500 withval=$with_libc;
Guido van Rossum7f253911997-05-09 02:42:48 +000021501if test "$withval" = no
21502then LIBC=
Martin v. Löwiseba40652007-08-30 20:10:57 +000021503 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21504echo "${ECHO_T}force LIBC empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000021505elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000021506then LIBC=$withval
Martin v. Löwiseba40652007-08-30 20:10:57 +000021507 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21508echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021509else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21510echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21511 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000021512fi
Guido van Rossum7f253911997-05-09 02:42:48 +000021513else
Martin v. Löwiseba40652007-08-30 20:10:57 +000021514 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21515echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21516fi
21517
Guido van Rossum7f43da71994-08-01 12:15:30 +000021518
Christian Heimes0a8143f2007-12-18 23:22:54 +000021519# ************************************
21520# * Check for mathematical functions *
21521# ************************************
Mark Dickinson265d7382008-04-21 22:32:24 +000021522
Mark Dickinson7a3d8642008-04-22 00:54:27 +000021523LIBS_SAVE=$LIBS
21524LIBS="$LIBS $LIBM"
21525
Mark Dickinson04b27232009-01-04 12:29:36 +000021526# Detect whether system arithmetic is subject to x87-style double
21527# rounding issues. The result of this test has little meaning on non
21528# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21529# mode is round-to-nearest and double rounding issues are present, and
21530# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21531{ echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21532echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21533if test "${ac_cv_x87_double_rounding+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21535else
21536
21537if test "$cross_compiling" = yes; then
21538 ac_cv_x87_double_rounding=no
21539else
21540 cat >conftest.$ac_ext <<_ACEOF
21541/* confdefs.h. */
21542_ACEOF
21543cat confdefs.h >>conftest.$ac_ext
21544cat >>conftest.$ac_ext <<_ACEOF
21545/* end confdefs.h. */
21546
21547#include <stdlib.h>
21548#include <math.h>
21549int main() {
21550 volatile double x, y, z;
21551 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21552 x = 0.99999999999999989; /* 1-2**-53 */
21553 y = 1./x;
21554 if (y != 1.)
21555 exit(0);
21556 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21557 x = 1e16;
21558 y = 2.99999;
21559 z = x + y;
21560 if (z != 1e16+4.)
21561 exit(0);
21562 /* both tests show evidence of double rounding */
21563 exit(1);
21564}
21565
21566_ACEOF
21567rm -f conftest$ac_exeext
21568if { (ac_try="$ac_link"
21569case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572esac
21573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_link") 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21578 { (case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21581esac
21582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583 (eval "$ac_try") 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 ac_cv_x87_double_rounding=no
21588else
21589 echo "$as_me: program exited with status $ac_status" >&5
21590echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
21593( exit $ac_status )
21594ac_cv_x87_double_rounding=yes
21595fi
21596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21597fi
21598
21599
21600fi
21601
21602{ echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21603echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21604if test "$ac_cv_x87_double_rounding" = yes
21605then
21606
21607cat >>confdefs.h <<\_ACEOF
21608#define X87_DOUBLE_ROUNDING 1
21609_ACEOF
21610
21611fi
21612
21613
Mark Dickinson265d7382008-04-21 22:32:24 +000021614# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21615# -0. on some architectures.
21616{ echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21617echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21618if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620else
21621
21622if test "$cross_compiling" = yes; then
21623 ac_cv_tanh_preserves_zero_sign=no
21624else
21625 cat >conftest.$ac_ext <<_ACEOF
21626/* confdefs.h. */
21627_ACEOF
21628cat confdefs.h >>conftest.$ac_ext
21629cat >>conftest.$ac_ext <<_ACEOF
21630/* end confdefs.h. */
21631
21632#include <math.h>
Mark Dickinson7a3d8642008-04-22 00:54:27 +000021633#include <stdlib.h>
Mark Dickinson265d7382008-04-21 22:32:24 +000021634int main() {
21635 /* return 0 if either negative zeros don't exist
21636 on this platform or if negative zeros exist
21637 and tanh(-0.) == -0. */
21638 if (atan2(0., -1.) == atan2(-0., -1.) ||
21639 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21640 else exit(1);
21641}
21642
21643_ACEOF
21644rm -f conftest$ac_exeext
21645if { (ac_try="$ac_link"
21646case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649esac
21650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>&5
21652 ac_status=$?
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21655 { (case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21658esac
21659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_try") 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664 ac_cv_tanh_preserves_zero_sign=yes
21665else
21666 echo "$as_me: program exited with status $ac_status" >&5
21667echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
21670( exit $ac_status )
21671ac_cv_tanh_preserves_zero_sign=no
21672fi
21673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21674fi
21675
21676
21677fi
21678
21679{ echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21680echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21681if test "$ac_cv_tanh_preserves_zero_sign" = yes
21682then
21683
21684cat >>confdefs.h <<\_ACEOF
21685#define TANH_PRESERVES_ZERO_SIGN 1
21686_ACEOF
21687
21688fi
21689
Martin v. Löwis11437992002-04-12 09:54:03 +000021690
Guido van Rossum2b3ac691996-08-30 15:18:41 +000021691
Michael W. Hudson54241132001-12-07 15:38:26 +000021692
Christian Heimes0a8143f2007-12-18 23:22:54 +000021693
21694
21695
21696
21697
Mark Dickinson1de33272009-01-04 20:19:41 +000021698for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
Christian Heimes0a8143f2007-12-18 23:22:54 +000021699do
21700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21701{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21703if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21705else
21706 cat >conftest.$ac_ext <<_ACEOF
21707/* confdefs.h. */
21708_ACEOF
21709cat confdefs.h >>conftest.$ac_ext
21710cat >>conftest.$ac_ext <<_ACEOF
21711/* end confdefs.h. */
21712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21714#define $ac_func innocuous_$ac_func
21715
21716/* System header to define __stub macros and hopefully few prototypes,
21717 which can conflict with char $ac_func (); below.
21718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21719 <limits.h> exists even on freestanding compilers. */
21720
21721#ifdef __STDC__
21722# include <limits.h>
21723#else
21724# include <assert.h>
21725#endif
21726
21727#undef $ac_func
21728
21729/* Override any GCC internal prototype to avoid an error.
21730 Use char because int might match the return type of a GCC
21731 builtin and then its argument prototype would still apply. */
21732#ifdef __cplusplus
21733extern "C"
21734#endif
21735char $ac_func ();
21736/* The GNU C library defines this for functions which it implements
21737 to always fail with ENOSYS. Some functions are actually named
21738 something starting with __ and the normal name is an alias. */
21739#if defined __stub_$ac_func || defined __stub___$ac_func
21740choke me
21741#endif
21742
21743int
21744main ()
21745{
21746return $ac_func ();
21747 ;
21748 return 0;
21749}
21750_ACEOF
21751rm -f conftest.$ac_objext conftest$ac_exeext
21752if { (ac_try="$ac_link"
21753case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21756esac
21757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_link") 2>conftest.er1
21759 ac_status=$?
21760 grep -v '^ *+' conftest.er1 >conftest.err
21761 rm -f conftest.er1
21762 cat conftest.err >&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } && {
21765 test -z "$ac_c_werror_flag" ||
21766 test ! -s conftest.err
21767 } && test -s conftest$ac_exeext &&
21768 $as_test_x conftest$ac_exeext; then
21769 eval "$as_ac_var=yes"
21770else
21771 echo "$as_me: failed program was:" >&5
21772sed 's/^/| /' conftest.$ac_ext >&5
21773
21774 eval "$as_ac_var=no"
21775fi
21776
21777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21778 conftest$ac_exeext conftest.$ac_ext
21779fi
21780ac_res=`eval echo '${'$as_ac_var'}'`
21781 { echo "$as_me:$LINENO: result: $ac_res" >&5
21782echo "${ECHO_T}$ac_res" >&6; }
21783if test `eval echo '${'$as_ac_var'}'` = yes; then
21784 cat >>confdefs.h <<_ACEOF
21785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21786_ACEOF
21787
21788fi
21789done
21790
Mark Dickinsond181e3a2009-01-04 13:57:26 +000021791{ echo "$as_me:$LINENO: checking whether isinf is declared" >&5
21792echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
21793if test "${ac_cv_have_decl_isinf+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21795else
21796 cat >conftest.$ac_ext <<_ACEOF
21797/* confdefs.h. */
21798_ACEOF
21799cat confdefs.h >>conftest.$ac_ext
21800cat >>conftest.$ac_ext <<_ACEOF
21801/* end confdefs.h. */
21802#include <math.h>
21803
21804int
21805main ()
21806{
21807#ifndef isinf
21808 (void) isinf;
21809#endif
21810
21811 ;
21812 return 0;
21813}
21814_ACEOF
21815rm -f conftest.$ac_objext
21816if { (ac_try="$ac_compile"
21817case "(($ac_try" in
21818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21819 *) ac_try_echo=$ac_try;;
21820esac
21821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21822 (eval "$ac_compile") 2>conftest.er1
21823 ac_status=$?
21824 grep -v '^ *+' conftest.er1 >conftest.err
21825 rm -f conftest.er1
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && {
21829 test -z "$ac_c_werror_flag" ||
21830 test ! -s conftest.err
21831 } && test -s conftest.$ac_objext; then
21832 ac_cv_have_decl_isinf=yes
21833else
21834 echo "$as_me: failed program was:" >&5
21835sed 's/^/| /' conftest.$ac_ext >&5
21836
21837 ac_cv_have_decl_isinf=no
21838fi
21839
21840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841fi
21842{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
21843echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
21844if test $ac_cv_have_decl_isinf = yes; then
21845
21846cat >>confdefs.h <<_ACEOF
21847#define HAVE_DECL_ISINF 1
21848_ACEOF
21849
21850
21851else
21852 cat >>confdefs.h <<_ACEOF
21853#define HAVE_DECL_ISINF 0
21854_ACEOF
21855
21856
21857fi
21858{ echo "$as_me:$LINENO: checking whether isnan is declared" >&5
21859echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
21860if test "${ac_cv_have_decl_isnan+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21862else
21863 cat >conftest.$ac_ext <<_ACEOF
21864/* confdefs.h. */
21865_ACEOF
21866cat confdefs.h >>conftest.$ac_ext
21867cat >>conftest.$ac_ext <<_ACEOF
21868/* end confdefs.h. */
21869#include <math.h>
21870
21871int
21872main ()
21873{
21874#ifndef isnan
21875 (void) isnan;
21876#endif
21877
21878 ;
21879 return 0;
21880}
21881_ACEOF
21882rm -f conftest.$ac_objext
21883if { (ac_try="$ac_compile"
21884case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21887esac
21888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_compile") 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest.$ac_objext; then
21899 ac_cv_have_decl_isnan=yes
21900else
21901 echo "$as_me: failed program was:" >&5
21902sed 's/^/| /' conftest.$ac_ext >&5
21903
21904 ac_cv_have_decl_isnan=no
21905fi
21906
21907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908fi
21909{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
21910echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
21911if test $ac_cv_have_decl_isnan = yes; then
21912
21913cat >>confdefs.h <<_ACEOF
21914#define HAVE_DECL_ISNAN 1
21915_ACEOF
21916
21917
21918else
21919 cat >>confdefs.h <<_ACEOF
21920#define HAVE_DECL_ISNAN 0
21921_ACEOF
21922
21923
21924fi
21925{ echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
21926echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
21927if test "${ac_cv_have_decl_isfinite+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21929else
21930 cat >conftest.$ac_ext <<_ACEOF
21931/* confdefs.h. */
21932_ACEOF
21933cat confdefs.h >>conftest.$ac_ext
21934cat >>conftest.$ac_ext <<_ACEOF
21935/* end confdefs.h. */
21936#include <math.h>
21937
21938int
21939main ()
21940{
21941#ifndef isfinite
21942 (void) isfinite;
21943#endif
21944
21945 ;
21946 return 0;
21947}
21948_ACEOF
21949rm -f conftest.$ac_objext
21950if { (ac_try="$ac_compile"
21951case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954esac
21955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_compile") 2>conftest.er1
21957 ac_status=$?
21958 grep -v '^ *+' conftest.er1 >conftest.err
21959 rm -f conftest.er1
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } && {
21963 test -z "$ac_c_werror_flag" ||
21964 test ! -s conftest.err
21965 } && test -s conftest.$ac_objext; then
21966 ac_cv_have_decl_isfinite=yes
21967else
21968 echo "$as_me: failed program was:" >&5
21969sed 's/^/| /' conftest.$ac_ext >&5
21970
21971 ac_cv_have_decl_isfinite=no
21972fi
21973
21974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21975fi
21976{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
21977echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
21978if test $ac_cv_have_decl_isfinite = yes; then
21979
21980cat >>confdefs.h <<_ACEOF
21981#define HAVE_DECL_ISFINITE 1
21982_ACEOF
21983
21984
21985else
21986 cat >>confdefs.h <<_ACEOF
21987#define HAVE_DECL_ISFINITE 0
21988_ACEOF
21989
21990
21991fi
21992
21993
Christian Heimes0a8143f2007-12-18 23:22:54 +000021994
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000021995LIBS=$LIBS_SAVE
21996
Guido van Rossumef2255b2000-03-10 22:30:29 +000021997# check for wchar.h
Martin v. Löwis11437992002-04-12 09:54:03 +000021998if test "${ac_cv_header_wchar_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000021999 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22000echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022001if test "${ac_cv_header_wchar_h+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022004{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22005echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
Guido van Rossumef2255b2000-03-10 22:30:29 +000022006else
Martin v. Löwis11437992002-04-12 09:54:03 +000022007 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000022008{ echo "$as_me:$LINENO: checking wchar.h usability" >&5
22009echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022010cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022011/* confdefs.h. */
22012_ACEOF
22013cat confdefs.h >>conftest.$ac_ext
22014cat >>conftest.$ac_ext <<_ACEOF
22015/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022016$ac_includes_default
22017#include <wchar.h>
22018_ACEOF
22019rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022020if { (ac_try="$ac_compile"
22021case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22024esac
22025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022027 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022028 grep -v '^ *+' conftest.er1 >conftest.err
22029 rm -f conftest.er1
22030 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022032 (exit $ac_status); } && {
22033 test -z "$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22035 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022036 ac_header_compiler=yes
22037else
22038 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022039sed 's/^/| /' conftest.$ac_ext >&5
22040
Martin v. Löwiseba40652007-08-30 20:10:57 +000022041 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000022042fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022043
22044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022047
22048# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000022049{ echo "$as_me:$LINENO: checking wchar.h presence" >&5
22050echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022051cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022052/* confdefs.h. */
22053_ACEOF
22054cat confdefs.h >>conftest.$ac_ext
22055cat >>conftest.$ac_ext <<_ACEOF
22056/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000022057#include <wchar.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000022058_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000022059if { (ac_try="$ac_cpp conftest.$ac_ext"
22060case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063esac
22064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022066 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000022067 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000022068 rm -f conftest.er1
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022071 (exit $ac_status); } >/dev/null && {
22072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22073 test ! -s conftest.err
22074 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022075 ac_header_preproc=yes
22076else
22077 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022078sed 's/^/| /' conftest.$ac_ext >&5
22079
Martin v. Löwis11437992002-04-12 09:54:03 +000022080 ac_header_preproc=no
Guido van Rossumef2255b2000-03-10 22:30:29 +000022081fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022082
Martin v. Löwis11437992002-04-12 09:54:03 +000022083rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022084{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22085echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022086
22087# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22089 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +000022090 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22091echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000022092 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22093echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22094 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000022095 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000022096 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000022097 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22098echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000022099 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22100echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22101 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22102echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22103 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22104echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000022105 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22106echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000022107 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22108echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000022109 ( cat <<\_ASBOX
Martin v. Löwis1d459062005-03-14 21:23:33 +000022110## ------------------------------------------------ ##
22111## Report this to http://www.python.org/python-bugs ##
22112## ------------------------------------------------ ##
Skip Montanaro6dead952003-09-25 14:50:04 +000022113_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000022114 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000022115 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000022116esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000022117{ echo "$as_me:$LINENO: checking for wchar.h" >&5
22118echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022119if test "${ac_cv_header_wchar_h+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22121else
22122 ac_cv_header_wchar_h=$ac_header_preproc
Guido van Rossumef2255b2000-03-10 22:30:29 +000022123fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022124{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22125echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022126
22127fi
22128if test $ac_cv_header_wchar_h = yes; then
22129
22130
22131cat >>confdefs.h <<\_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000022132#define HAVE_WCHAR_H 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022133_ACEOF
22134
Martin v. Löwisc45929e2002-04-06 10:10:49 +000022135 wchar_h="yes"
22136
Guido van Rossumef2255b2000-03-10 22:30:29 +000022137else
Martin v. Löwis11437992002-04-12 09:54:03 +000022138 wchar_h="no"
Guido van Rossumef2255b2000-03-10 22:30:29 +000022139
22140fi
22141
Michael W. Hudson54241132001-12-07 15:38:26 +000022142
Martin v. Löwis11437992002-04-12 09:54:03 +000022143
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022144# determine wchar_t size
22145if test "$wchar_h" = yes
22146then
Martin v. Löwiseba40652007-08-30 20:10:57 +000022147 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22148echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022149if test "${ac_cv_type_wchar_t+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22151else
22152 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022153/* confdefs.h. */
22154_ACEOF
22155cat confdefs.h >>conftest.$ac_ext
22156cat >>conftest.$ac_ext <<_ACEOF
22157/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022158#include <wchar.h>
22159
Martin v. Löwiseba40652007-08-30 20:10:57 +000022160typedef wchar_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022161int
22162main ()
22163{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022164if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000022165 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000022166if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +000022167 return 0;
22168 ;
22169 return 0;
22170}
22171_ACEOF
22172rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022173if { (ac_try="$ac_compile"
22174case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22177esac
22178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022180 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022181 grep -v '^ *+' conftest.er1 >conftest.err
22182 rm -f conftest.er1
22183 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022185 (exit $ac_status); } && {
22186 test -z "$ac_c_werror_flag" ||
22187 test ! -s conftest.err
22188 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022189 ac_cv_type_wchar_t=yes
22190else
22191 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022192sed 's/^/| /' conftest.$ac_ext >&5
22193
Martin v. Löwiseba40652007-08-30 20:10:57 +000022194 ac_cv_type_wchar_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +000022195fi
Brett Cannon19fab762007-06-02 03:02:29 +000022196
Martin v. Löwiseba40652007-08-30 20:10:57 +000022197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22198fi
22199{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22200echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22201
22202# The cast to long int works around a bug in the HP C Compiler
22203# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22204# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22205# This bug is HP SR number 8606223364.
22206{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
22207echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022208if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210else
Martin v. Löwis11437992002-04-12 09:54:03 +000022211 if test "$cross_compiling" = yes; then
22212 # Depending upon the size, compute the lo and hi bounds.
22213cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022214/* confdefs.h. */
22215_ACEOF
22216cat confdefs.h >>conftest.$ac_ext
22217cat >>conftest.$ac_ext <<_ACEOF
22218/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022219#include <wchar.h>
22220
Martin v. Löwiseba40652007-08-30 20:10:57 +000022221 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022222int
22223main ()
22224{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022225static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022226test_array [0] = 0
22227
22228 ;
22229 return 0;
22230}
22231_ACEOF
22232rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022233if { (ac_try="$ac_compile"
22234case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22237esac
22238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022240 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022241 grep -v '^ *+' conftest.er1 >conftest.err
22242 rm -f conftest.er1
22243 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022249 ac_lo=0 ac_mid=0
22250 while :; do
22251 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022252/* confdefs.h. */
22253_ACEOF
22254cat confdefs.h >>conftest.$ac_ext
22255cat >>conftest.$ac_ext <<_ACEOF
22256/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022257#include <wchar.h>
22258
Martin v. Löwiseba40652007-08-30 20:10:57 +000022259 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022260int
22261main ()
22262{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022263static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022264test_array [0] = 0
22265
22266 ;
22267 return 0;
22268}
22269_ACEOF
22270rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022271if { (ac_try="$ac_compile"
22272case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22275esac
22276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022278 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022287 ac_hi=$ac_mid; break
22288else
22289 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022290sed 's/^/| /' conftest.$ac_ext >&5
22291
Martin v. Löwiseba40652007-08-30 20:10:57 +000022292 ac_lo=`expr $ac_mid + 1`
22293 if test $ac_lo -le $ac_mid; then
22294 ac_lo= ac_hi=
22295 break
22296 fi
22297 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000022298fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022299
22300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022301 done
22302else
22303 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022304sed 's/^/| /' conftest.$ac_ext >&5
22305
Martin v. Löwiseba40652007-08-30 20:10:57 +000022306 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022307/* confdefs.h. */
22308_ACEOF
22309cat confdefs.h >>conftest.$ac_ext
22310cat >>conftest.$ac_ext <<_ACEOF
22311/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022312#include <wchar.h>
22313
Martin v. Löwiseba40652007-08-30 20:10:57 +000022314 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022315int
22316main ()
22317{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022318static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022319test_array [0] = 0
22320
22321 ;
22322 return 0;
22323}
22324_ACEOF
22325rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022326if { (ac_try="$ac_compile"
22327case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22330esac
22331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022333 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022338 (exit $ac_status); } && {
22339 test -z "$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022342 ac_hi=-1 ac_mid=-1
22343 while :; do
22344 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022345/* confdefs.h. */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022350#include <wchar.h>
22351
Martin v. Löwiseba40652007-08-30 20:10:57 +000022352 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022353int
22354main ()
22355{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022356static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022357test_array [0] = 0
22358
22359 ;
22360 return 0;
22361}
22362_ACEOF
22363rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022364if { (ac_try="$ac_compile"
22365case "(($ac_try" in
22366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367 *) ac_try_echo=$ac_try;;
22368esac
22369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022371 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022376 (exit $ac_status); } && {
22377 test -z "$ac_c_werror_flag" ||
22378 test ! -s conftest.err
22379 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022380 ac_lo=$ac_mid; break
22381else
22382 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022383sed 's/^/| /' conftest.$ac_ext >&5
22384
Martin v. Löwiseba40652007-08-30 20:10:57 +000022385 ac_hi=`expr '(' $ac_mid ')' - 1`
22386 if test $ac_mid -le $ac_hi; then
22387 ac_lo= ac_hi=
22388 break
22389 fi
22390 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000022391fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022392
22393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022394 done
22395else
22396 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022397sed 's/^/| /' conftest.$ac_ext >&5
22398
Martin v. Löwiseba40652007-08-30 20:10:57 +000022399 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000022400fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022401
22402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022403fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022404
22405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022406# Binary search between lo and hi bounds.
22407while test "x$ac_lo" != "x$ac_hi"; do
22408 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22409 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022410/* confdefs.h. */
22411_ACEOF
22412cat confdefs.h >>conftest.$ac_ext
22413cat >>conftest.$ac_ext <<_ACEOF
22414/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022415#include <wchar.h>
22416
Martin v. Löwiseba40652007-08-30 20:10:57 +000022417 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022418int
22419main ()
22420{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022421static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022422test_array [0] = 0
22423
22424 ;
22425 return 0;
22426}
22427_ACEOF
22428rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022429if { (ac_try="$ac_compile"
22430case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433esac
22434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022436 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022445 ac_hi=$ac_mid
22446else
22447 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022448sed 's/^/| /' conftest.$ac_ext >&5
22449
Martin v. Löwiseba40652007-08-30 20:10:57 +000022450 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000022451fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022452
22453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022454done
22455case $ac_lo in
22456?*) ac_cv_sizeof_wchar_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000022457'') if test "$ac_cv_type_wchar_t" = yes; then
22458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000022459See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022460echo "$as_me: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000022461See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000022462 { (exit 77); exit 77; }; }
22463 else
22464 ac_cv_sizeof_wchar_t=0
22465 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000022466esac
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022467else
Martin v. Löwis11437992002-04-12 09:54:03 +000022468 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022469/* confdefs.h. */
22470_ACEOF
22471cat confdefs.h >>conftest.$ac_ext
22472cat >>conftest.$ac_ext <<_ACEOF
22473/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022474#include <wchar.h>
22475
Martin v. Löwiseba40652007-08-30 20:10:57 +000022476 typedef wchar_t ac__type_sizeof_;
22477static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22478static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000022479#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000022480#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000022481int
22482main ()
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022483{
Martin v. Löwis11437992002-04-12 09:54:03 +000022484
22485 FILE *f = fopen ("conftest.val", "w");
22486 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000022487 return 1;
22488 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000022489 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000022490 long int i = longval ();
22491 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22492 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000022493 fprintf (f, "%ld\n", i);
22494 }
22495 else
22496 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000022497 unsigned long int i = ulongval ();
22498 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22499 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000022500 fprintf (f, "%lu\n", i);
22501 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000022502 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000022503
22504 ;
22505 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000022506}
Martin v. Löwis11437992002-04-12 09:54:03 +000022507_ACEOF
22508rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022509if { (ac_try="$ac_link"
22510case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22513esac
22514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000022519 { (case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22522esac
22523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 ac_cv_sizeof_wchar_t=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +000022529else
Martin v. Löwis11437992002-04-12 09:54:03 +000022530 echo "$as_me: program exited with status $ac_status" >&5
22531echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022532sed 's/^/| /' conftest.$ac_ext >&5
22533
Martin v. Löwis11437992002-04-12 09:54:03 +000022534( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000022535if test "$ac_cv_type_wchar_t" = yes; then
22536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000022537See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022538echo "$as_me: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000022539See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000022540 { (exit 77); exit 77; }; }
22541 else
22542 ac_cv_sizeof_wchar_t=0
22543 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000022544fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022546fi
22547rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +000022548fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022549{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22550echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22551
22552
22553
Martin v. Löwis11437992002-04-12 09:54:03 +000022554cat >>confdefs.h <<_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022555#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
Martin v. Löwis11437992002-04-12 09:54:03 +000022556_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022557
Michael W. Hudson54241132001-12-07 15:38:26 +000022558
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022559fi
22560
Martin v. Löwiseba40652007-08-30 20:10:57 +000022561{ echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22562echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000022563have_ucs4_tcl=no
22564cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022565/* confdefs.h. */
22566_ACEOF
22567cat confdefs.h >>conftest.$ac_ext
22568cat >>conftest.$ac_ext <<_ACEOF
22569/* end confdefs.h. */
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000022570
22571#include <tcl.h>
22572#if TCL_UTF_MAX != 6
22573# error "NOT UCS4_TCL"
22574#endif
22575int
22576main ()
22577{
22578
22579 ;
22580 return 0;
22581}
22582_ACEOF
22583rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022584if { (ac_try="$ac_compile"
22585case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22588esac
22589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000022591 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022592 grep -v '^ *+' conftest.er1 >conftest.err
22593 rm -f conftest.er1
22594 cat conftest.err >&5
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000022595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022596 (exit $ac_status); } && {
22597 test -z "$ac_c_werror_flag" ||
22598 test ! -s conftest.err
22599 } && test -s conftest.$ac_objext; then
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000022600
22601
22602cat >>confdefs.h <<\_ACEOF
22603#define HAVE_UCS4_TCL 1
22604_ACEOF
22605
22606 have_ucs4_tcl=yes
22607
22608else
22609 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022610sed 's/^/| /' conftest.$ac_ext >&5
22611
Martin v. Löwiseba40652007-08-30 20:10:57 +000022612
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000022613fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022614
22615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616{ echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22617echo "${ECHO_T}$have_ucs4_tcl" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000022618
Skip Montanaro6dead952003-09-25 14:50:04 +000022619# check whether wchar_t is signed or not
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022620if test "$wchar_h" = yes
22621then
22622 # check whether wchar_t is signed or not
Martin v. Löwiseba40652007-08-30 20:10:57 +000022623 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22624echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022625 if test "${ac_cv_wchar_t_signed+set}" = set; then
22626 echo $ECHO_N "(cached) $ECHO_C" >&6
22627else
22628
22629 if test "$cross_compiling" = yes; then
22630 ac_cv_wchar_t_signed=yes
22631else
22632 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022633/* confdefs.h. */
22634_ACEOF
22635cat confdefs.h >>conftest.$ac_ext
22636cat >>conftest.$ac_ext <<_ACEOF
22637/* end confdefs.h. */
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022638
22639 #include <wchar.h>
22640 int main()
22641 {
Martin v. Löwis44fe0e42006-04-11 07:15:30 +000022642 /* Success: exit code 0 */
22643 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022644 }
22645
22646_ACEOF
22647rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022648if { (ac_try="$ac_link"
22649case "(($ac_try" in
22650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22651 *) ac_try_echo=$ac_try;;
22652esac
22653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22654 (eval "$ac_link") 2>&5
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022655 ac_status=$?
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000022658 { (case "(($ac_try" in
22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660 *) ac_try_echo=$ac_try;;
22661esac
22662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_try") 2>&5
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022664 ac_status=$?
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); }; }; then
22667 ac_cv_wchar_t_signed=yes
22668else
22669 echo "$as_me: program exited with status $ac_status" >&5
22670echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022671sed 's/^/| /' conftest.$ac_ext >&5
22672
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022673( exit $ac_status )
22674ac_cv_wchar_t_signed=no
22675fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022677fi
22678
Martin v. Löwiseba40652007-08-30 20:10:57 +000022679
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022680fi
22681
Martin v. Löwiseba40652007-08-30 20:10:57 +000022682 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22683echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22684fi
22685
22686{ echo "$as_me:$LINENO: checking what type to use for unicode" >&5
22687echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
22688# Check whether --enable-unicode was given.
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022689if test "${enable_unicode+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000022690 enableval=$enable_unicode;
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022691else
22692 enable_unicode=yes
Martin v. Löwiseba40652007-08-30 20:10:57 +000022693fi
22694
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022695
22696if test $enable_unicode = yes
22697then
Martin v. Löwisfd917792001-06-27 20:22:04 +000022698 # Without any arguments, Py_UNICODE defaults to two-byte mode
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000022699 case "$have_ucs4_tcl" in
22700 yes) enable_unicode="ucs4"
22701 ;;
22702 *) enable_unicode="ucs2"
22703 ;;
22704 esac
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022705fi
22706
Martin v. Löwis0036cba2002-04-12 09:58:45 +000022707
22708
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022709case "$enable_unicode" in
22710ucs2) unicode_size="2"
Martin v. Löwis11437992002-04-12 09:54:03 +000022711 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022712#define Py_UNICODE_SIZE 2
Martin v. Löwis11437992002-04-12 09:54:03 +000022713_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022714
22715 ;;
22716ucs4) unicode_size="4"
Martin v. Löwis11437992002-04-12 09:54:03 +000022717 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022718#define Py_UNICODE_SIZE 4
Martin v. Löwis11437992002-04-12 09:54:03 +000022719_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022720
22721 ;;
22722esac
22723
Michael W. Hudson54241132001-12-07 15:38:26 +000022724
Martin v. Löwis11437992002-04-12 09:54:03 +000022725
22726
Martin v. Löwis0036cba2002-04-12 09:58:45 +000022727
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022728if test "$enable_unicode" = "no"
22729then
Martin v. Löwis339d0f72001-08-17 18:39:25 +000022730 UNICODE_OBJS=""
Martin v. Löwiseba40652007-08-30 20:10:57 +000022731 { echo "$as_me:$LINENO: result: not used" >&5
22732echo "${ECHO_T}not used" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022733else
Martin v. Löwis339d0f72001-08-17 18:39:25 +000022734 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
Martin v. Löwis11437992002-04-12 09:54:03 +000022735
22736cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022737#define Py_USING_UNICODE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022738_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022739
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000022740
22741 # wchar_t is only usable if it maps to an unsigned type
22742 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
Matthias Klose7dbeed72004-12-24 08:22:17 +000022743 -a "$ac_cv_wchar_t_signed" = "no"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022744 then
22745 PY_UNICODE_TYPE="wchar_t"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022746
Martin v. Löwis11437992002-04-12 09:54:03 +000022747cat >>confdefs.h <<\_ACEOF
22748#define HAVE_USABLE_WCHAR_T 1
22749_ACEOF
22750
22751 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022752#define PY_UNICODE_TYPE wchar_t
Martin v. Löwis11437992002-04-12 09:54:03 +000022753_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022754
22755 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22756 then
22757 PY_UNICODE_TYPE="unsigned short"
Martin v. Löwis11437992002-04-12 09:54:03 +000022758 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022759#define PY_UNICODE_TYPE unsigned short
Martin v. Löwis11437992002-04-12 09:54:03 +000022760_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022761
22762 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22763 then
22764 PY_UNICODE_TYPE="unsigned long"
Martin v. Löwis11437992002-04-12 09:54:03 +000022765 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022766#define PY_UNICODE_TYPE unsigned long
Martin v. Löwis11437992002-04-12 09:54:03 +000022767_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022768
22769 else
22770 PY_UNICODE_TYPE="no type found"
22771 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022772 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22773echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022774fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000022775
22776# check for endianness
Martin v. Löwiseba40652007-08-30 20:10:57 +000022777{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22778echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022779if test "${ac_cv_c_bigendian+set}" = set; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumef2255b2000-03-10 22:30:29 +000022781else
Martin v. Löwis11437992002-04-12 09:54:03 +000022782 # See if sys/param.h defines the BYTE_ORDER macro.
22783cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022784/* confdefs.h. */
22785_ACEOF
22786cat confdefs.h >>conftest.$ac_ext
22787cat >>conftest.$ac_ext <<_ACEOF
22788/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000022789#include <sys/types.h>
22790#include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000022791
Martin v. Löwis11437992002-04-12 09:54:03 +000022792int
22793main ()
22794{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022795#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22796 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Guido van Rossumef2255b2000-03-10 22:30:29 +000022797 bogus endian macros
22798#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000022799
22800 ;
22801 return 0;
22802}
22803_ACEOF
22804rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022805if { (ac_try="$ac_compile"
22806case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22809esac
22810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022812 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022813 grep -v '^ *+' conftest.er1 >conftest.err
22814 rm -f conftest.er1
22815 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest.$ac_objext; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000022821 # It does; now see whether it defined to BIG_ENDIAN or not.
Martin v. Löwis11437992002-04-12 09:54:03 +000022822cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022823/* confdefs.h. */
22824_ACEOF
22825cat confdefs.h >>conftest.$ac_ext
22826cat >>conftest.$ac_ext <<_ACEOF
22827/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000022828#include <sys/types.h>
22829#include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000022830
Martin v. Löwis11437992002-04-12 09:54:03 +000022831int
22832main ()
22833{
Guido van Rossumef2255b2000-03-10 22:30:29 +000022834#if BYTE_ORDER != BIG_ENDIAN
22835 not big endian
22836#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000022837
22838 ;
22839 return 0;
22840}
22841_ACEOF
22842rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022843if { (ac_try="$ac_compile"
22844case "(($ac_try" in
22845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846 *) ac_try_echo=$ac_try;;
22847esac
22848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022850 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022851 grep -v '^ *+' conftest.er1 >conftest.err
22852 rm -f conftest.er1
22853 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022855 (exit $ac_status); } && {
22856 test -z "$ac_c_werror_flag" ||
22857 test ! -s conftest.err
22858 } && test -s conftest.$ac_objext; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000022859 ac_cv_c_bigendian=yes
22860else
Martin v. Löwis11437992002-04-12 09:54:03 +000022861 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022862sed 's/^/| /' conftest.$ac_ext >&5
22863
Martin v. Löwiseba40652007-08-30 20:10:57 +000022864 ac_cv_c_bigendian=no
Guido van Rossumef2255b2000-03-10 22:30:29 +000022865fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022866
22867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:29 +000022868else
Martin v. Löwis11437992002-04-12 09:54:03 +000022869 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022870sed 's/^/| /' conftest.$ac_ext >&5
22871
Martin v. Löwiseba40652007-08-30 20:10:57 +000022872 # It does not; compile a test program.
Guido van Rossumef2255b2000-03-10 22:30:29 +000022873if test "$cross_compiling" = yes; then
Skip Montanaro6dead952003-09-25 14:50:04 +000022874 # try to guess the endianness by grepping values into an object file
Martin v. Löwis11437992002-04-12 09:54:03 +000022875 ac_cv_c_bigendian=unknown
22876 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022877/* confdefs.h. */
22878_ACEOF
22879cat confdefs.h >>conftest.$ac_ext
22880cat >>conftest.$ac_ext <<_ACEOF
22881/* end confdefs.h. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000022882short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22883short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Martin v. Löwis11437992002-04-12 09:54:03 +000022884void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000022885short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22886short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Martin v. Löwis11437992002-04-12 09:54:03 +000022887void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022888int
22889main ()
22890{
22891 _ascii (); _ebcdic ();
22892 ;
22893 return 0;
22894}
22895_ACEOF
22896rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022897if { (ac_try="$ac_compile"
22898case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22901esac
22902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022904 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022905 grep -v '^ *+' conftest.er1 >conftest.err
22906 rm -f conftest.er1
22907 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000022913 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022914 ac_cv_c_bigendian=yes
22915fi
Skip Montanaro6dead952003-09-25 14:50:04 +000022916if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022917 if test "$ac_cv_c_bigendian" = unknown; then
22918 ac_cv_c_bigendian=no
22919 else
22920 # finding both strings is unlikely to happen, but who knows?
22921 ac_cv_c_bigendian=unknown
22922 fi
22923fi
22924else
22925 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022926sed 's/^/| /' conftest.$ac_ext >&5
22927
Martin v. Löwiseba40652007-08-30 20:10:57 +000022928
Martin v. Löwis11437992002-04-12 09:54:03 +000022929fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022930
22931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022932else
22933 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022934/* confdefs.h. */
22935_ACEOF
22936cat confdefs.h >>conftest.$ac_ext
22937cat >>conftest.$ac_ext <<_ACEOF
22938/* end confdefs.h. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000022939$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000022940int
22941main ()
22942{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022943
Guido van Rossumef2255b2000-03-10 22:30:29 +000022944 /* Are we little or big endian? From Harbison&Steele. */
22945 union
22946 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000022947 long int l;
22948 char c[sizeof (long int)];
Guido van Rossumef2255b2000-03-10 22:30:29 +000022949 } u;
22950 u.l = 1;
Martin v. Löwiseba40652007-08-30 20:10:57 +000022951 return u.c[sizeof (long int) - 1] == 1;
22952
22953 ;
22954 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000022955}
Martin v. Löwis11437992002-04-12 09:54:03 +000022956_ACEOF
22957rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022958if { (ac_try="$ac_link"
22959case "(($ac_try" in
22960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22962esac
22963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022965 ac_status=$?
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000022968 { (case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22971esac
22972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000022977 ac_cv_c_bigendian=no
22978else
Martin v. Löwis11437992002-04-12 09:54:03 +000022979 echo "$as_me: program exited with status $ac_status" >&5
22980echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022981sed 's/^/| /' conftest.$ac_ext >&5
22982
Martin v. Löwis11437992002-04-12 09:54:03 +000022983( exit $ac_status )
22984ac_cv_c_bigendian=yes
Guido van Rossumef2255b2000-03-10 22:30:29 +000022985fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:29 +000022987fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022988
22989
Martin v. Löwis11437992002-04-12 09:54:03 +000022990fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022991
22992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022993fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022994{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22995echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022996case $ac_cv_c_bigendian in
22997 yes)
Jack Jansendd19cf82001-12-06 22:36:17 +000022998
Martin v. Löwis11437992002-04-12 09:54:03 +000022999cat >>confdefs.h <<\_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000023000#define WORDS_BIGENDIAN 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023001_ACEOF
23002 ;;
23003 no)
23004 ;;
23005 *)
Skip Montanaro6dead952003-09-25 14:50:04 +000023006 { { echo "$as_me:$LINENO: error: unknown endianness
Martin v. Löwis11437992002-04-12 09:54:03 +000023007presetting ac_cv_c_bigendian=no (or yes) will help" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023008echo "$as_me: error: unknown endianness
Martin v. Löwis11437992002-04-12 09:54:03 +000023009presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23010 { (exit 1); exit 1; }; } ;;
23011esac
Guido van Rossumef2255b2000-03-10 22:30:29 +000023012
Michael W. Hudson54241132001-12-07 15:38:26 +000023013
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023014# Check whether right shifting a negative integer extends the sign bit
23015# or fills with zeros (like the Cray J90, according to Tim Peters).
Martin v. Löwiseba40652007-08-30 20:10:57 +000023016{ echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23017echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023018if test "${ac_cv_rshift_extends_sign+set}" = set; then
23019 echo $ECHO_N "(cached) $ECHO_C" >&6
Vladimir Marangozova6180282000-07-12 05:05:06 +000023020else
Martin v. Löwis11437992002-04-12 09:54:03 +000023021
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023022if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000023023 ac_cv_rshift_extends_sign=yes
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023024else
Martin v. Löwis11437992002-04-12 09:54:03 +000023025 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023026/* confdefs.h. */
23027_ACEOF
23028cat confdefs.h >>conftest.$ac_ext
23029cat >>conftest.$ac_ext <<_ACEOF
23030/* end confdefs.h. */
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023031
23032int main()
23033{
Vladimir Marangozova6180282000-07-12 05:05:06 +000023034 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023035}
23036
Martin v. Löwis11437992002-04-12 09:54:03 +000023037_ACEOF
23038rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023039if { (ac_try="$ac_link"
23040case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23043esac
23044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000023049 { (case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052esac
23053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; }; then
Vladimir Marangozova6180282000-07-12 05:05:06 +000023058 ac_cv_rshift_extends_sign=yes
23059else
Martin v. Löwis11437992002-04-12 09:54:03 +000023060 echo "$as_me: program exited with status $ac_status" >&5
23061echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023062sed 's/^/| /' conftest.$ac_ext >&5
23063
Martin v. Löwis11437992002-04-12 09:54:03 +000023064( exit $ac_status )
23065ac_cv_rshift_extends_sign=no
Vladimir Marangozova6180282000-07-12 05:05:06 +000023066fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Vladimir Marangozova6180282000-07-12 05:05:06 +000023068fi
23069
Martin v. Löwiseba40652007-08-30 20:10:57 +000023070
23071fi
23072
23073{ echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23074echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
Vladimir Marangozova6180282000-07-12 05:05:06 +000023075if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023076then
Martin v. Löwis11437992002-04-12 09:54:03 +000023077
23078cat >>confdefs.h <<\_ACEOF
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023079#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023080_ACEOF
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023081
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023082fi
23083
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023084# check for getc_unlocked and related locking functions
Martin v. Löwiseba40652007-08-30 20:10:57 +000023085{ echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23086echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023087if test "${ac_cv_have_getc_unlocked+set}" = set; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023089else
Martin v. Löwis11437992002-04-12 09:54:03 +000023090
23091cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023092/* confdefs.h. */
23093_ACEOF
23094cat confdefs.h >>conftest.$ac_ext
23095cat >>conftest.$ac_ext <<_ACEOF
23096/* end confdefs.h. */
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023097#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000023098int
23099main ()
23100{
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023101
23102 FILE *f = fopen("/dev/null", "r");
23103 flockfile(f);
23104 getc_unlocked(f);
23105 funlockfile(f);
23106
Martin v. Löwis11437992002-04-12 09:54:03 +000023107 ;
23108 return 0;
23109}
23110_ACEOF
23111rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023112if { (ac_try="$ac_link"
23113case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23116esac
23117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023119 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023120 grep -v '^ *+' conftest.er1 >conftest.err
23121 rm -f conftest.er1
23122 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023124 (exit $ac_status); } && {
23125 test -z "$ac_c_werror_flag" ||
23126 test ! -s conftest.err
23127 } && test -s conftest$ac_exeext &&
23128 $as_test_x conftest$ac_exeext; then
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023129 ac_cv_have_getc_unlocked=yes
23130else
Martin v. Löwis11437992002-04-12 09:54:03 +000023131 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023132sed 's/^/| /' conftest.$ac_ext >&5
23133
Martin v. Löwiseba40652007-08-30 20:10:57 +000023134 ac_cv_have_getc_unlocked=no
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023135fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023136
23137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023138 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023139fi
23140
Martin v. Löwiseba40652007-08-30 20:10:57 +000023141{ echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23142echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023143if test "$ac_cv_have_getc_unlocked" = yes
23144then
Martin v. Löwis11437992002-04-12 09:54:03 +000023145
23146cat >>confdefs.h <<\_ACEOF
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023147#define HAVE_GETC_UNLOCKED 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023148_ACEOF
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023149
23150fi
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023151
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023152# check where readline lives
Martin v. Löwis82bca632006-02-10 20:49:30 +000023153# save the value of LIBS so we don't actually link Python with readline
23154LIBS_no_readline=$LIBS
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023155
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023156# On some systems we need to link readline to a termcap compatible
23157# library. NOTE: Keep the precedence of listed libraries synchronised
23158# with setup.py.
23159py_cv_lib_readline=no
23160{ echo "$as_me:$LINENO: checking how to link readline libs" >&5
23161echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23162for py_libtermcap in "" ncursesw ncurses curses termcap; do
23163 if test -z "$py_libtermcap"; then
23164 READLINE_LIBS="-lreadline"
23165 else
23166 READLINE_LIBS="-lreadline -l$py_libtermcap"
23167 fi
23168 LIBS="$READLINE_LIBS $LIBS_no_readline"
23169 cat >conftest.$ac_ext <<_ACEOF
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023170/* confdefs.h. */
23171_ACEOF
23172cat confdefs.h >>conftest.$ac_ext
23173cat >>conftest.$ac_ext <<_ACEOF
23174/* end confdefs.h. */
23175
Martin v. Löwiseba40652007-08-30 20:10:57 +000023176/* Override any GCC internal prototype to avoid an error.
23177 Use char because int might match the return type of a GCC
23178 builtin and then its argument prototype would still apply. */
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023179#ifdef __cplusplus
23180extern "C"
23181#endif
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023182char readline ();
23183int
23184main ()
23185{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023186return readline ();
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023187 ;
23188 return 0;
23189}
23190_ACEOF
23191rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023192if { (ac_try="$ac_link"
23193case "(($ac_try" in
23194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195 *) ac_try_echo=$ac_try;;
23196esac
23197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198 (eval "$ac_link") 2>conftest.er1
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023199 ac_status=$?
23200 grep -v '^ *+' conftest.er1 >conftest.err
23201 rm -f conftest.er1
23202 cat conftest.err >&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023204 (exit $ac_status); } && {
23205 test -z "$ac_c_werror_flag" ||
23206 test ! -s conftest.err
23207 } && test -s conftest$ac_exeext &&
23208 $as_test_x conftest$ac_exeext; then
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023209 py_cv_lib_readline=yes
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023210else
23211 echo "$as_me: failed program was:" >&5
23212sed 's/^/| /' conftest.$ac_ext >&5
23213
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023214
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023215fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023216
23217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023218 conftest$ac_exeext conftest.$ac_ext
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023219 if test $py_cv_lib_readline = yes; then
23220 break
23221 fi
23222done
23223# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23224#AC_SUBST([READLINE_LIBS])
Gregory P. Smithe080cdf2008-09-07 19:19:04 +000023225if test $py_cv_lib_readline = no; then
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023226 { echo "$as_me:$LINENO: result: none" >&5
23227echo "${ECHO_T}none" >&6; }
23228else
23229 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23230echo "${ECHO_T}$READLINE_LIBS" >&6; }
23231
23232cat >>confdefs.h <<\_ACEOF
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023233#define HAVE_LIBREADLINE 1
23234_ACEOF
23235
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023236fi
23237
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023238# check for readline 2.1
Martin v. Löwiseba40652007-08-30 20:10:57 +000023239{ echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23240echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023241if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23243else
23244 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000023245LIBS="-lreadline $READLINE_LIBS $LIBS"
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023246cat >conftest.$ac_ext <<_ACEOF
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023247/* confdefs.h. */
23248_ACEOF
23249cat confdefs.h >>conftest.$ac_ext
23250cat >>conftest.$ac_ext <<_ACEOF
23251/* end confdefs.h. */
23252
Martin v. Löwiseba40652007-08-30 20:10:57 +000023253/* Override any GCC internal prototype to avoid an error.
23254 Use char because int might match the return type of a GCC
23255 builtin and then its argument prototype would still apply. */
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023256#ifdef __cplusplus
23257extern "C"
23258#endif
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023259char rl_callback_handler_install ();
23260int
23261main ()
23262{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023263return rl_callback_handler_install ();
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023264 ;
23265 return 0;
23266}
23267_ACEOF
23268rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023269if { (ac_try="$ac_link"
23270case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23273esac
23274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_link") 2>conftest.er1
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023276 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023277 grep -v '^ *+' conftest.er1 >conftest.err
23278 rm -f conftest.er1
23279 cat conftest.err >&5
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest$ac_exeext &&
23285 $as_test_x conftest$ac_exeext; then
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023286 ac_cv_lib_readline_rl_callback_handler_install=yes
23287else
23288 echo "$as_me: failed program was:" >&5
23289sed 's/^/| /' conftest.$ac_ext >&5
23290
Martin v. Löwiseba40652007-08-30 20:10:57 +000023291 ac_cv_lib_readline_rl_callback_handler_install=no
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023292fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023293
23294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023295 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023296LIBS=$ac_check_lib_save_LIBS
23297fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023298{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23299echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023300if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23301
23302cat >>confdefs.h <<\_ACEOF
23303#define HAVE_RL_CALLBACK 1
23304_ACEOF
23305
23306fi
23307
23308
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023309# check for readline 2.2
23310cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023311/* confdefs.h. */
23312_ACEOF
23313cat confdefs.h >>conftest.$ac_ext
23314cat >>conftest.$ac_ext <<_ACEOF
23315/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023316#include <readline/readline.h>
23317_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000023318if { (ac_try="$ac_cpp conftest.$ac_ext"
23319case "(($ac_try" in
23320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23322esac
23323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023325 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000023326 grep -v '^ *+' conftest.er1 >conftest.err
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023327 rm -f conftest.er1
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023330 (exit $ac_status); } >/dev/null && {
23331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23332 test ! -s conftest.err
23333 }; then
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023334 have_readline=yes
23335else
23336 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023337sed 's/^/| /' conftest.$ac_ext >&5
23338
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023339 have_readline=no
23340fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023341
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023342rm -f conftest.err conftest.$ac_ext
23343if test $have_readline = yes
23344then
23345 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023346/* confdefs.h. */
23347_ACEOF
23348cat confdefs.h >>conftest.$ac_ext
23349cat >>conftest.$ac_ext <<_ACEOF
23350/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023351#include <readline/readline.h>
23352
23353_ACEOF
23354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000023355 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023356
23357cat >>confdefs.h <<\_ACEOF
23358#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23359_ACEOF
23360
23361fi
23362rm -f conftest*
23363
23364fi
23365
Martin v. Löwis0daad592001-09-30 21:09:59 +000023366# check for readline 4.0
Martin v. Löwiseba40652007-08-30 20:10:57 +000023367{ echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23368echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023369if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum353ae582001-07-10 16:45:32 +000023371else
Martin v. Löwis11437992002-04-12 09:54:03 +000023372 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000023373LIBS="-lreadline $READLINE_LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000023374cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023375/* confdefs.h. */
23376_ACEOF
23377cat confdefs.h >>conftest.$ac_ext
23378cat >>conftest.$ac_ext <<_ACEOF
23379/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023380
Martin v. Löwiseba40652007-08-30 20:10:57 +000023381/* Override any GCC internal prototype to avoid an error.
23382 Use char because int might match the return type of a GCC
23383 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023384#ifdef __cplusplus
23385extern "C"
23386#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000023387char rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023388int
23389main ()
23390{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023391return rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023392 ;
23393 return 0;
23394}
23395_ACEOF
23396rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023397if { (ac_try="$ac_link"
23398case "(($ac_try" in
23399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400 *) ac_try_echo=$ac_try;;
23401esac
23402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023404 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023405 grep -v '^ *+' conftest.er1 >conftest.err
23406 rm -f conftest.er1
23407 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023409 (exit $ac_status); } && {
23410 test -z "$ac_c_werror_flag" ||
23411 test ! -s conftest.err
23412 } && test -s conftest$ac_exeext &&
23413 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023414 ac_cv_lib_readline_rl_pre_input_hook=yes
Martin v. Löwis0daad592001-09-30 21:09:59 +000023415else
Martin v. Löwis11437992002-04-12 09:54:03 +000023416 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023417sed 's/^/| /' conftest.$ac_ext >&5
23418
Martin v. Löwiseba40652007-08-30 20:10:57 +000023419 ac_cv_lib_readline_rl_pre_input_hook=no
Martin v. Löwis0daad592001-09-30 21:09:59 +000023420fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023421
23422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023423 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023424LIBS=$ac_check_lib_save_LIBS
23425fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023426{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23427echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023428if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
Michael W. Hudson54241132001-12-07 15:38:26 +000023429
Martin v. Löwis11437992002-04-12 09:54:03 +000023430cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0daad592001-09-30 21:09:59 +000023431#define HAVE_RL_PRE_INPUT_HOOK 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023432_ACEOF
Martin v. Löwis0daad592001-09-30 21:09:59 +000023433
Martin v. Löwis0daad592001-09-30 21:09:59 +000023434fi
23435
Michael W. Hudson54241132001-12-07 15:38:26 +000023436
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000023437# also in 4.0
23438{ echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23439echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23440if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442else
23443 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000023444LIBS="-lreadline $READLINE_LIBS $LIBS"
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000023445cat >conftest.$ac_ext <<_ACEOF
23446/* confdefs.h. */
23447_ACEOF
23448cat confdefs.h >>conftest.$ac_ext
23449cat >>conftest.$ac_ext <<_ACEOF
23450/* end confdefs.h. */
23451
23452/* Override any GCC internal prototype to avoid an error.
23453 Use char because int might match the return type of a GCC
23454 builtin and then its argument prototype would still apply. */
23455#ifdef __cplusplus
23456extern "C"
23457#endif
23458char rl_completion_display_matches_hook ();
23459int
23460main ()
23461{
23462return rl_completion_display_matches_hook ();
23463 ;
23464 return 0;
23465}
23466_ACEOF
23467rm -f conftest.$ac_objext conftest$ac_exeext
23468if { (ac_try="$ac_link"
23469case "(($ac_try" in
23470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23472esac
23473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_link") 2>conftest.er1
23475 ac_status=$?
23476 grep -v '^ *+' conftest.er1 >conftest.err
23477 rm -f conftest.er1
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && {
23481 test -z "$ac_c_werror_flag" ||
23482 test ! -s conftest.err
23483 } && test -s conftest$ac_exeext &&
23484 $as_test_x conftest$ac_exeext; then
23485 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23486else
23487 echo "$as_me: failed program was:" >&5
23488sed 's/^/| /' conftest.$ac_ext >&5
23489
23490 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23491fi
23492
23493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23494 conftest$ac_exeext conftest.$ac_ext
23495LIBS=$ac_check_lib_save_LIBS
23496fi
23497{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23498echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23499if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23500
23501cat >>confdefs.h <<\_ACEOF
23502#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23503_ACEOF
23504
23505fi
23506
23507
Martin v. Löwis0daad592001-09-30 21:09:59 +000023508# check for readline 4.2
Martin v. Löwiseba40652007-08-30 20:10:57 +000023509{ echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23510echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023511if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis0daad592001-09-30 21:09:59 +000023513else
Martin v. Löwis11437992002-04-12 09:54:03 +000023514 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000023515LIBS="-lreadline $READLINE_LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000023516cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023517/* confdefs.h. */
23518_ACEOF
23519cat confdefs.h >>conftest.$ac_ext
23520cat >>conftest.$ac_ext <<_ACEOF
23521/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023522
Martin v. Löwiseba40652007-08-30 20:10:57 +000023523/* Override any GCC internal prototype to avoid an error.
23524 Use char because int might match the return type of a GCC
23525 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023526#ifdef __cplusplus
23527extern "C"
23528#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000023529char rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023530int
23531main ()
23532{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023533return rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023534 ;
23535 return 0;
23536}
23537_ACEOF
23538rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023539if { (ac_try="$ac_link"
23540case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23543esac
23544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023546 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023547 grep -v '^ *+' conftest.er1 >conftest.err
23548 rm -f conftest.er1
23549 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023551 (exit $ac_status); } && {
23552 test -z "$ac_c_werror_flag" ||
23553 test ! -s conftest.err
23554 } && test -s conftest$ac_exeext &&
23555 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023556 ac_cv_lib_readline_rl_completion_matches=yes
Guido van Rossum353ae582001-07-10 16:45:32 +000023557else
Martin v. Löwis11437992002-04-12 09:54:03 +000023558 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023559sed 's/^/| /' conftest.$ac_ext >&5
23560
Martin v. Löwiseba40652007-08-30 20:10:57 +000023561 ac_cv_lib_readline_rl_completion_matches=no
Guido van Rossum353ae582001-07-10 16:45:32 +000023562fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023563
23564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023565 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023566LIBS=$ac_check_lib_save_LIBS
23567fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023568{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23569echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023570if test $ac_cv_lib_readline_rl_completion_matches = yes; then
Michael W. Hudson54241132001-12-07 15:38:26 +000023571
Martin v. Löwis11437992002-04-12 09:54:03 +000023572cat >>confdefs.h <<\_ACEOF
Guido van Rossum353ae582001-07-10 16:45:32 +000023573#define HAVE_RL_COMPLETION_MATCHES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023574_ACEOF
Guido van Rossum353ae582001-07-10 16:45:32 +000023575
Guido van Rossum353ae582001-07-10 16:45:32 +000023576fi
23577
Jack Jansendd19cf82001-12-06 22:36:17 +000023578
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023579# also in readline 4.2
23580cat >conftest.$ac_ext <<_ACEOF
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023581/* confdefs.h. */
23582_ACEOF
23583cat confdefs.h >>conftest.$ac_ext
23584cat >>conftest.$ac_ext <<_ACEOF
23585/* end confdefs.h. */
23586#include <readline/readline.h>
23587_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000023588if { (ac_try="$ac_cpp conftest.$ac_ext"
23589case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592esac
23593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023595 ac_status=$?
23596 grep -v '^ *+' conftest.er1 >conftest.err
23597 rm -f conftest.er1
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023600 (exit $ac_status); } >/dev/null && {
23601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23603 }; then
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023604 have_readline=yes
23605else
23606 echo "$as_me: failed program was:" >&5
23607sed 's/^/| /' conftest.$ac_ext >&5
23608
23609 have_readline=no
23610fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023611
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023612rm -f conftest.err conftest.$ac_ext
23613if test $have_readline = yes
23614then
23615 cat >conftest.$ac_ext <<_ACEOF
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023616/* confdefs.h. */
23617_ACEOF
23618cat confdefs.h >>conftest.$ac_ext
23619cat >>conftest.$ac_ext <<_ACEOF
23620/* end confdefs.h. */
23621#include <readline/readline.h>
23622
23623_ACEOF
23624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23625 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23626
23627cat >>confdefs.h <<\_ACEOF
23628#define HAVE_RL_CATCH_SIGNAL 1
23629_ACEOF
23630
23631fi
23632rm -f conftest*
23633
23634fi
23635
Martin v. Löwis82bca632006-02-10 20:49:30 +000023636# End of readline checks: restore LIBS
23637LIBS=$LIBS_no_readline
23638
Martin v. Löwiseba40652007-08-30 20:10:57 +000023639{ echo "$as_me:$LINENO: checking for broken nice()" >&5
23640echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023641if test "${ac_cv_broken_nice+set}" = set; then
23642 echo $ECHO_N "(cached) $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +000023643else
Martin v. Löwis11437992002-04-12 09:54:03 +000023644
Thomas Wouterse38b2f12001-07-11 22:35:31 +000023645if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000023646 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000023647else
Martin v. Löwis11437992002-04-12 09:54:03 +000023648 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023649/* confdefs.h. */
23650_ACEOF
23651cat confdefs.h >>conftest.$ac_ext
23652cat >>conftest.$ac_ext <<_ACEOF
23653/* end confdefs.h. */
Thomas Wouterse38b2f12001-07-11 22:35:31 +000023654
23655int main()
23656{
23657 int val1 = nice(1);
23658 if (val1 != -1 && val1 == nice(2))
23659 exit(0);
23660 exit(1);
23661}
23662
Martin v. Löwis11437992002-04-12 09:54:03 +000023663_ACEOF
23664rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023665if { (ac_try="$ac_link"
23666case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669esac
23670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000023675 { (case "(($ac_try" in
23676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23678esac
23679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23680 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023681 ac_status=$?
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); }; }; then
Thomas Wouterse38b2f12001-07-11 22:35:31 +000023684 ac_cv_broken_nice=yes
23685else
Martin v. Löwis11437992002-04-12 09:54:03 +000023686 echo "$as_me: program exited with status $ac_status" >&5
23687echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023688sed 's/^/| /' conftest.$ac_ext >&5
23689
Martin v. Löwis11437992002-04-12 09:54:03 +000023690( exit $ac_status )
23691ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000023692fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Thomas Wouterse38b2f12001-07-11 22:35:31 +000023694fi
23695
Martin v. Löwiseba40652007-08-30 20:10:57 +000023696
23697fi
23698
23699{ echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23700echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
Thomas Wouterse38b2f12001-07-11 22:35:31 +000023701if test "$ac_cv_broken_nice" = yes
23702then
Martin v. Löwis11437992002-04-12 09:54:03 +000023703
23704cat >>confdefs.h <<\_ACEOF
Thomas Wouterse38b2f12001-07-11 22:35:31 +000023705#define HAVE_BROKEN_NICE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023706_ACEOF
Thomas Wouterse38b2f12001-07-11 22:35:31 +000023707
23708fi
23709
Martin v. Löwiseba40652007-08-30 20:10:57 +000023710{ echo "$as_me:$LINENO: checking for broken poll()" >&5
23711echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:42 +000023712if test "$cross_compiling" = yes; then
23713 ac_cv_broken_poll=no
23714else
23715 cat >conftest.$ac_ext <<_ACEOF
Nicholas Bastine62c5c82004-03-21 23:45:42 +000023716/* confdefs.h. */
23717_ACEOF
23718cat confdefs.h >>conftest.$ac_ext
23719cat >>conftest.$ac_ext <<_ACEOF
23720/* end confdefs.h. */
23721
23722#include <poll.h>
23723
23724int main (void)
23725 {
23726 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23727
23728 close (42);
23729
23730 int poll_test = poll (&poll_struct, 1, 0);
23731
23732 if (poll_test < 0)
23733 {
23734 exit(0);
23735 }
23736 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23737 {
23738 exit(0);
23739 }
23740 else
23741 {
23742 exit(1);
23743 }
23744 }
23745
23746_ACEOF
23747rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023748if { (ac_try="$ac_link"
23749case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23752esac
23753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_link") 2>&5
Nicholas Bastine62c5c82004-03-21 23:45:42 +000023755 ac_status=$?
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000023758 { (case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23761esac
23762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_try") 2>&5
Nicholas Bastine62c5c82004-03-21 23:45:42 +000023764 ac_status=$?
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); }; }; then
23767 ac_cv_broken_poll=yes
23768else
23769 echo "$as_me: program exited with status $ac_status" >&5
23770echo "$as_me: failed program was:" >&5
23771sed 's/^/| /' conftest.$ac_ext >&5
23772
23773( exit $ac_status )
23774ac_cv_broken_poll=no
23775fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:42 +000023777fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023778
23779
23780{ echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23781echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:42 +000023782if test "$ac_cv_broken_poll" = yes
23783then
23784
23785cat >>confdefs.h <<\_ACEOF
23786#define HAVE_BROKEN_POLL 1
23787_ACEOF
23788
23789fi
23790
Brett Cannon43802422005-02-10 20:48:03 +000023791# 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 +000023792# (which is not required by ISO C or UNIX spec) and/or if we support
23793# tzname[]
Martin v. Löwiseba40652007-08-30 20:10:57 +000023794{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23795echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000023796if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23798else
23799 cat >conftest.$ac_ext <<_ACEOF
23800/* confdefs.h. */
23801_ACEOF
23802cat confdefs.h >>conftest.$ac_ext
23803cat >>conftest.$ac_ext <<_ACEOF
23804/* end confdefs.h. */
23805#include <sys/types.h>
23806#include <$ac_cv_struct_tm>
23807
23808
23809int
23810main ()
23811{
23812static struct tm ac_aggr;
23813if (ac_aggr.tm_zone)
23814return 0;
23815 ;
23816 return 0;
23817}
23818_ACEOF
23819rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023820if { (ac_try="$ac_compile"
23821case "(($ac_try" in
23822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823 *) ac_try_echo=$ac_try;;
23824esac
23825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826 (eval "$ac_compile") 2>conftest.er1
Brett Cannon43802422005-02-10 20:48:03 +000023827 ac_status=$?
23828 grep -v '^ *+' conftest.er1 >conftest.err
23829 rm -f conftest.er1
23830 cat conftest.err >&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023832 (exit $ac_status); } && {
23833 test -z "$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 } && test -s conftest.$ac_objext; then
Brett Cannon43802422005-02-10 20:48:03 +000023836 ac_cv_member_struct_tm_tm_zone=yes
23837else
23838 echo "$as_me: failed program was:" >&5
23839sed 's/^/| /' conftest.$ac_ext >&5
23840
Martin v. Löwiseba40652007-08-30 20:10:57 +000023841 cat >conftest.$ac_ext <<_ACEOF
Brett Cannon43802422005-02-10 20:48:03 +000023842/* confdefs.h. */
23843_ACEOF
23844cat confdefs.h >>conftest.$ac_ext
23845cat >>conftest.$ac_ext <<_ACEOF
23846/* end confdefs.h. */
23847#include <sys/types.h>
23848#include <$ac_cv_struct_tm>
23849
23850
23851int
23852main ()
23853{
23854static struct tm ac_aggr;
23855if (sizeof ac_aggr.tm_zone)
23856return 0;
23857 ;
23858 return 0;
23859}
23860_ACEOF
23861rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023862if { (ac_try="$ac_compile"
23863case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23866esac
23867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868 (eval "$ac_compile") 2>conftest.er1
Brett Cannon43802422005-02-10 20:48:03 +000023869 ac_status=$?
23870 grep -v '^ *+' conftest.er1 >conftest.err
23871 rm -f conftest.er1
23872 cat conftest.err >&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023874 (exit $ac_status); } && {
23875 test -z "$ac_c_werror_flag" ||
23876 test ! -s conftest.err
23877 } && test -s conftest.$ac_objext; then
Brett Cannon43802422005-02-10 20:48:03 +000023878 ac_cv_member_struct_tm_tm_zone=yes
23879else
23880 echo "$as_me: failed program was:" >&5
23881sed 's/^/| /' conftest.$ac_ext >&5
23882
Martin v. Löwiseba40652007-08-30 20:10:57 +000023883 ac_cv_member_struct_tm_tm_zone=no
Brett Cannon43802422005-02-10 20:48:03 +000023884fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023885
23886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brett Cannon43802422005-02-10 20:48:03 +000023887fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023888
23889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brett Cannon43802422005-02-10 20:48:03 +000023890fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023891{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23892echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000023893if test $ac_cv_member_struct_tm_tm_zone = yes; then
23894
23895cat >>confdefs.h <<_ACEOF
23896#define HAVE_STRUCT_TM_TM_ZONE 1
23897_ACEOF
23898
23899
23900fi
23901
23902if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23903
23904cat >>confdefs.h <<\_ACEOF
23905#define HAVE_TM_ZONE 1
23906_ACEOF
23907
23908else
Martin v. Löwiseba40652007-08-30 20:10:57 +000023909 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23910echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23911if test "${ac_cv_have_decl_tzname+set}" = set; then
23912 echo $ECHO_N "(cached) $ECHO_C" >&6
23913else
23914 cat >conftest.$ac_ext <<_ACEOF
23915/* confdefs.h. */
23916_ACEOF
23917cat confdefs.h >>conftest.$ac_ext
23918cat >>conftest.$ac_ext <<_ACEOF
23919/* end confdefs.h. */
23920#include <time.h>
23921
23922int
23923main ()
23924{
23925#ifndef tzname
23926 (void) tzname;
23927#endif
23928
23929 ;
23930 return 0;
23931}
23932_ACEOF
23933rm -f conftest.$ac_objext
23934if { (ac_try="$ac_compile"
23935case "(($ac_try" in
23936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937 *) ac_try_echo=$ac_try;;
23938esac
23939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940 (eval "$ac_compile") 2>conftest.er1
23941 ac_status=$?
23942 grep -v '^ *+' conftest.er1 >conftest.err
23943 rm -f conftest.er1
23944 cat conftest.err >&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } && {
23947 test -z "$ac_c_werror_flag" ||
23948 test ! -s conftest.err
23949 } && test -s conftest.$ac_objext; then
23950 ac_cv_have_decl_tzname=yes
23951else
23952 echo "$as_me: failed program was:" >&5
23953sed 's/^/| /' conftest.$ac_ext >&5
23954
23955 ac_cv_have_decl_tzname=no
23956fi
23957
23958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959fi
23960{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23961echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23962if test $ac_cv_have_decl_tzname = yes; then
23963
23964cat >>confdefs.h <<_ACEOF
23965#define HAVE_DECL_TZNAME 1
23966_ACEOF
23967
23968
23969else
23970 cat >>confdefs.h <<_ACEOF
23971#define HAVE_DECL_TZNAME 0
23972_ACEOF
23973
23974
23975fi
23976
23977
23978 { echo "$as_me:$LINENO: checking for tzname" >&5
23979echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000023980if test "${ac_cv_var_tzname+set}" = set; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23982else
23983 cat >conftest.$ac_ext <<_ACEOF
23984/* confdefs.h. */
23985_ACEOF
23986cat confdefs.h >>conftest.$ac_ext
23987cat >>conftest.$ac_ext <<_ACEOF
23988/* end confdefs.h. */
23989#include <time.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +000023990#if !HAVE_DECL_TZNAME
23991extern char *tzname[];
Brett Cannon43802422005-02-10 20:48:03 +000023992#endif
23993
23994int
23995main ()
23996{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023997return tzname[0][0];
Brett Cannon43802422005-02-10 20:48:03 +000023998 ;
23999 return 0;
24000}
24001_ACEOF
24002rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024003if { (ac_try="$ac_link"
24004case "(($ac_try" in
24005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006 *) ac_try_echo=$ac_try;;
24007esac
24008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009 (eval "$ac_link") 2>conftest.er1
Brett Cannon43802422005-02-10 20:48:03 +000024010 ac_status=$?
24011 grep -v '^ *+' conftest.er1 >conftest.err
24012 rm -f conftest.er1
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024015 (exit $ac_status); } && {
24016 test -z "$ac_c_werror_flag" ||
24017 test ! -s conftest.err
24018 } && test -s conftest$ac_exeext &&
24019 $as_test_x conftest$ac_exeext; then
Brett Cannon43802422005-02-10 20:48:03 +000024020 ac_cv_var_tzname=yes
24021else
24022 echo "$as_me: failed program was:" >&5
24023sed 's/^/| /' conftest.$ac_ext >&5
24024
Martin v. Löwiseba40652007-08-30 20:10:57 +000024025 ac_cv_var_tzname=no
Brett Cannon43802422005-02-10 20:48:03 +000024026fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024027
24028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Brett Cannon43802422005-02-10 20:48:03 +000024029 conftest$ac_exeext conftest.$ac_ext
24030fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024031{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24032echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000024033 if test $ac_cv_var_tzname = yes; then
24034
24035cat >>confdefs.h <<\_ACEOF
24036#define HAVE_TZNAME 1
24037_ACEOF
24038
24039 fi
24040fi
24041
Nicholas Bastine62c5c82004-03-21 23:45:42 +000024042
Martin v. Löwis1d459062005-03-14 21:23:33 +000024043# check tzset(3) exists and works like we expect it to
Martin v. Löwiseba40652007-08-30 20:10:57 +000024044{ echo "$as_me:$LINENO: checking for working tzset()" >&5
24045echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024046if test "${ac_cv_working_tzset+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24048else
24049
24050if test "$cross_compiling" = yes; then
24051 ac_cv_working_tzset=no
24052else
24053 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024054/* confdefs.h. */
24055_ACEOF
24056cat confdefs.h >>conftest.$ac_ext
24057cat >>conftest.$ac_ext <<_ACEOF
24058/* end confdefs.h. */
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024059
24060#include <stdlib.h>
24061#include <time.h>
Brett Cannon18367812003-09-19 00:59:16 +000024062#include <string.h>
Brett Cannon43802422005-02-10 20:48:03 +000024063
24064#if HAVE_TZNAME
24065extern char *tzname[];
24066#endif
24067
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024068int main()
24069{
Brett Cannon18367812003-09-19 00:59:16 +000024070 /* Note that we need to ensure that not only does tzset(3)
24071 do 'something' with localtime, but it works as documented
24072 in the library reference and as expected by the test suite.
Martin v. Löwis1d459062005-03-14 21:23:33 +000024073 This includes making sure that tzname is set properly if
24074 tm->tm_zone does not exist since it is the alternative way
24075 of getting timezone info.
Brett Cannon18367812003-09-19 00:59:16 +000024076
24077 Red Hat 6.2 doesn't understand the southern hemisphere
Martin v. Löwis1d459062005-03-14 21:23:33 +000024078 after New Year's Day.
Brett Cannon18367812003-09-19 00:59:16 +000024079 */
24080
Martin v. Löwis1d459062005-03-14 21:23:33 +000024081 time_t groundhogday = 1044144000; /* GMT-based */
Brett Cannon18367812003-09-19 00:59:16 +000024082 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24083
Neal Norwitz7f2588c2003-04-11 15:35:53 +000024084 putenv("TZ=UTC+0");
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024085 tzset();
Brett Cannon18367812003-09-19 00:59:16 +000024086 if (localtime(&groundhogday)->tm_hour != 0)
24087 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000024088#if HAVE_TZNAME
24089 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24090 if (strcmp(tzname[0], "UTC") ||
24091 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24092 exit(1);
24093#endif
Brett Cannon18367812003-09-19 00:59:16 +000024094
Neal Norwitz7f2588c2003-04-11 15:35:53 +000024095 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024096 tzset();
Brett Cannon18367812003-09-19 00:59:16 +000024097 if (localtime(&groundhogday)->tm_hour != 19)
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024098 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000024099#if HAVE_TZNAME
24100 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24101 exit(1);
24102#endif
Brett Cannon18367812003-09-19 00:59:16 +000024103
24104 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24105 tzset();
24106 if (localtime(&groundhogday)->tm_hour != 11)
24107 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000024108#if HAVE_TZNAME
24109 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24110 exit(1);
24111#endif
24112
24113#if HAVE_STRUCT_TM_TM_ZONE
Brett Cannon18367812003-09-19 00:59:16 +000024114 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24115 exit(1);
24116 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24117 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000024118#endif
Brett Cannon18367812003-09-19 00:59:16 +000024119
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024120 exit(0);
24121}
24122
24123_ACEOF
24124rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024125if { (ac_try="$ac_link"
24126case "(($ac_try" in
24127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128 *) ac_try_echo=$ac_try;;
24129esac
24130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131 (eval "$ac_link") 2>&5
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024132 ac_status=$?
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024135 { (case "(($ac_try" in
24136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137 *) ac_try_echo=$ac_try;;
24138esac
24139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140 (eval "$ac_try") 2>&5
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024141 ac_status=$?
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; }; then
24144 ac_cv_working_tzset=yes
24145else
24146 echo "$as_me: program exited with status $ac_status" >&5
24147echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024148sed 's/^/| /' conftest.$ac_ext >&5
24149
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024150( exit $ac_status )
24151ac_cv_working_tzset=no
24152fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024154fi
24155
Martin v. Löwiseba40652007-08-30 20:10:57 +000024156
24157fi
24158
24159{ echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24160echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024161if test "$ac_cv_working_tzset" = yes
24162then
24163
24164cat >>confdefs.h <<\_ACEOF
24165#define HAVE_WORKING_TZSET 1
24166_ACEOF
24167
24168fi
24169
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024170# Look for subsecond timestamps in struct stat
Martin v. Löwiseba40652007-08-30 20:10:57 +000024171{ echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24172echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024173if test "${ac_cv_stat_tv_nsec+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24175else
24176 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024177/* confdefs.h. */
24178_ACEOF
24179cat confdefs.h >>conftest.$ac_ext
24180cat >>conftest.$ac_ext <<_ACEOF
24181/* end confdefs.h. */
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024182#include <sys/stat.h>
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024183int
24184main ()
24185{
24186
24187struct stat st;
24188st.st_mtim.tv_nsec = 1;
24189
24190 ;
24191 return 0;
24192}
24193_ACEOF
24194rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024195if { (ac_try="$ac_compile"
24196case "(($ac_try" in
24197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24198 *) ac_try_echo=$ac_try;;
24199esac
24200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24201 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024202 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024203 grep -v '^ *+' conftest.er1 >conftest.err
24204 rm -f conftest.er1
24205 cat conftest.err >&5
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024207 (exit $ac_status); } && {
24208 test -z "$ac_c_werror_flag" ||
24209 test ! -s conftest.err
24210 } && test -s conftest.$ac_objext; then
Martin v. Löwisa32c9942002-09-09 16:17:47 +000024211 ac_cv_stat_tv_nsec=yes
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024212else
24213 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024214sed 's/^/| /' conftest.$ac_ext >&5
24215
Martin v. Löwiseba40652007-08-30 20:10:57 +000024216 ac_cv_stat_tv_nsec=no
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024217fi
24218
Martin v. Löwiseba40652007-08-30 20:10:57 +000024219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24220fi
24221
24222{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24223echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024224if test "$ac_cv_stat_tv_nsec" = yes
24225then
24226
24227cat >>confdefs.h <<\_ACEOF
24228#define HAVE_STAT_TV_NSEC 1
24229_ACEOF
24230
24231fi
24232
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024233# Look for BSD style subsecond timestamps in struct stat
Martin v. Löwiseba40652007-08-30 20:10:57 +000024234{ echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24235echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024236if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24237 echo $ECHO_N "(cached) $ECHO_C" >&6
24238else
24239 cat >conftest.$ac_ext <<_ACEOF
24240/* confdefs.h. */
24241_ACEOF
24242cat confdefs.h >>conftest.$ac_ext
24243cat >>conftest.$ac_ext <<_ACEOF
24244/* end confdefs.h. */
24245#include <sys/stat.h>
24246int
24247main ()
24248{
24249
24250struct stat st;
24251st.st_mtimespec.tv_nsec = 1;
24252
24253 ;
24254 return 0;
24255}
24256_ACEOF
24257rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024258if { (ac_try="$ac_compile"
24259case "(($ac_try" in
24260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261 *) ac_try_echo=$ac_try;;
24262esac
24263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024265 ac_status=$?
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024270 (exit $ac_status); } && {
24271 test -z "$ac_c_werror_flag" ||
24272 test ! -s conftest.err
24273 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024274 ac_cv_stat_tv_nsec2=yes
24275else
24276 echo "$as_me: failed program was:" >&5
24277sed 's/^/| /' conftest.$ac_ext >&5
24278
Martin v. Löwiseba40652007-08-30 20:10:57 +000024279 ac_cv_stat_tv_nsec2=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024280fi
24281
Martin v. Löwiseba40652007-08-30 20:10:57 +000024282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283fi
24284
24285{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24286echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024287if test "$ac_cv_stat_tv_nsec2" = yes
24288then
24289
24290cat >>confdefs.h <<\_ACEOF
24291#define HAVE_STAT_TV_NSEC2 1
24292_ACEOF
24293
24294fi
24295
Jack Jansen666b1e72001-10-31 12:11:48 +000024296# On HP/UX 11.0, mvwdelch is a block with a return statement
Martin v. Löwiseba40652007-08-30 20:10:57 +000024297{ echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24298echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024299if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000024301else
Martin v. Löwis11437992002-04-12 09:54:03 +000024302 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024303/* confdefs.h. */
24304_ACEOF
24305cat confdefs.h >>conftest.$ac_ext
24306cat >>conftest.$ac_ext <<_ACEOF
24307/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:48 +000024308#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000024309int
24310main ()
24311{
Jack Jansen666b1e72001-10-31 12:11:48 +000024312
24313 int rtn;
24314 rtn = mvwdelch(0,0,0);
24315
Martin v. Löwis11437992002-04-12 09:54:03 +000024316 ;
24317 return 0;
24318}
24319_ACEOF
24320rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024321if { (ac_try="$ac_compile"
24322case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24325esac
24326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024328 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024329 grep -v '^ *+' conftest.er1 >conftest.err
24330 rm -f conftest.er1
24331 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024333 (exit $ac_status); } && {
24334 test -z "$ac_c_werror_flag" ||
24335 test ! -s conftest.err
24336 } && test -s conftest.$ac_objext; then
Jack Jansen666b1e72001-10-31 12:11:48 +000024337 ac_cv_mvwdelch_is_expression=yes
24338else
Martin v. Löwis11437992002-04-12 09:54:03 +000024339 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024340sed 's/^/| /' conftest.$ac_ext >&5
24341
Martin v. Löwiseba40652007-08-30 20:10:57 +000024342 ac_cv_mvwdelch_is_expression=no
Jack Jansen666b1e72001-10-31 12:11:48 +000024343fi
24344
Martin v. Löwiseba40652007-08-30 20:10:57 +000024345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24346fi
24347
24348{ echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24349echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
Jack Jansen666b1e72001-10-31 12:11:48 +000024350
24351if test "$ac_cv_mvwdelch_is_expression" = yes
24352then
Martin v. Löwis11437992002-04-12 09:54:03 +000024353
24354cat >>confdefs.h <<\_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000024355#define MVWDELCH_IS_EXPRESSION 1
Martin v. Löwis11437992002-04-12 09:54:03 +000024356_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000024357
24358fi
24359
Martin v. Löwiseba40652007-08-30 20:10:57 +000024360{ echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24361echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024362if test "${ac_cv_window_has_flags+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000024364else
Martin v. Löwis11437992002-04-12 09:54:03 +000024365 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024366/* confdefs.h. */
24367_ACEOF
24368cat confdefs.h >>conftest.$ac_ext
24369cat >>conftest.$ac_ext <<_ACEOF
24370/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:48 +000024371#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000024372int
24373main ()
24374{
Jack Jansen666b1e72001-10-31 12:11:48 +000024375
24376 WINDOW *w;
24377 w->_flags = 0;
24378
Martin v. Löwis11437992002-04-12 09:54:03 +000024379 ;
24380 return 0;
24381}
24382_ACEOF
24383rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024384if { (ac_try="$ac_compile"
24385case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24388esac
24389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024391 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024392 grep -v '^ *+' conftest.er1 >conftest.err
24393 rm -f conftest.er1
24394 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024396 (exit $ac_status); } && {
24397 test -z "$ac_c_werror_flag" ||
24398 test ! -s conftest.err
24399 } && test -s conftest.$ac_objext; then
Jack Jansen666b1e72001-10-31 12:11:48 +000024400 ac_cv_window_has_flags=yes
24401else
Martin v. Löwis11437992002-04-12 09:54:03 +000024402 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024403sed 's/^/| /' conftest.$ac_ext >&5
24404
Martin v. Löwiseba40652007-08-30 20:10:57 +000024405 ac_cv_window_has_flags=no
Jack Jansen666b1e72001-10-31 12:11:48 +000024406fi
24407
Martin v. Löwiseba40652007-08-30 20:10:57 +000024408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24409fi
24410
24411{ echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24412echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000024413
Jack Jansen666b1e72001-10-31 12:11:48 +000024414
24415if test "$ac_cv_window_has_flags" = yes
24416then
Martin v. Löwis11437992002-04-12 09:54:03 +000024417
24418cat >>confdefs.h <<\_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000024419#define WINDOW_HAS_FLAGS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000024420_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000024421
24422fi
24423
Martin v. Löwiseba40652007-08-30 20:10:57 +000024424{ echo "$as_me:$LINENO: checking for is_term_resized" >&5
24425echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024426cat >conftest.$ac_ext <<_ACEOF
24427/* confdefs.h. */
24428_ACEOF
24429cat confdefs.h >>conftest.$ac_ext
24430cat >>conftest.$ac_ext <<_ACEOF
24431/* end confdefs.h. */
24432#include <curses.h>
24433int
24434main ()
24435{
24436void *x=is_term_resized
24437 ;
24438 return 0;
24439}
24440_ACEOF
24441rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024442if { (ac_try="$ac_compile"
24443case "(($ac_try" in
24444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445 *) ac_try_echo=$ac_try;;
24446esac
24447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448 (eval "$ac_compile") 2>conftest.er1
Walter Dörwald4994d952006-06-19 08:07:50 +000024449 ac_status=$?
24450 grep -v '^ *+' conftest.er1 >conftest.err
24451 rm -f conftest.er1
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024454 (exit $ac_status); } && {
24455 test -z "$ac_c_werror_flag" ||
24456 test ! -s conftest.err
24457 } && test -s conftest.$ac_objext; then
Walter Dörwald4994d952006-06-19 08:07:50 +000024458
24459cat >>confdefs.h <<\_ACEOF
24460#define HAVE_CURSES_IS_TERM_RESIZED 1
24461_ACEOF
24462
Martin v. Löwiseba40652007-08-30 20:10:57 +000024463 { echo "$as_me:$LINENO: result: yes" >&5
24464echo "${ECHO_T}yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024465else
24466 echo "$as_me: failed program was:" >&5
24467sed 's/^/| /' conftest.$ac_ext >&5
24468
Martin v. Löwiseba40652007-08-30 20:10:57 +000024469 { echo "$as_me:$LINENO: result: no" >&5
24470echo "${ECHO_T}no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024471
24472fi
Walter Dörwald4994d952006-06-19 08:07:50 +000024473
Martin v. Löwiseba40652007-08-30 20:10:57 +000024474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24475
24476{ echo "$as_me:$LINENO: checking for resize_term" >&5
24477echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024478cat >conftest.$ac_ext <<_ACEOF
24479/* confdefs.h. */
24480_ACEOF
24481cat confdefs.h >>conftest.$ac_ext
24482cat >>conftest.$ac_ext <<_ACEOF
24483/* end confdefs.h. */
24484#include <curses.h>
24485int
24486main ()
24487{
24488void *x=resize_term
24489 ;
24490 return 0;
24491}
24492_ACEOF
24493rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024494if { (ac_try="$ac_compile"
24495case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24498esac
24499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_compile") 2>conftest.er1
Walter Dörwald4994d952006-06-19 08:07:50 +000024501 ac_status=$?
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest.$ac_objext; then
Walter Dörwald4994d952006-06-19 08:07:50 +000024510
24511cat >>confdefs.h <<\_ACEOF
24512#define HAVE_CURSES_RESIZE_TERM 1
24513_ACEOF
24514
Martin v. Löwiseba40652007-08-30 20:10:57 +000024515 { echo "$as_me:$LINENO: result: yes" >&5
24516echo "${ECHO_T}yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024517else
24518 echo "$as_me: failed program was:" >&5
24519sed 's/^/| /' conftest.$ac_ext >&5
24520
Martin v. Löwiseba40652007-08-30 20:10:57 +000024521 { echo "$as_me:$LINENO: result: no" >&5
24522echo "${ECHO_T}no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024523
24524fi
Walter Dörwald4994d952006-06-19 08:07:50 +000024525
Martin v. Löwiseba40652007-08-30 20:10:57 +000024526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24527
24528{ echo "$as_me:$LINENO: checking for resizeterm" >&5
24529echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024530cat >conftest.$ac_ext <<_ACEOF
24531/* confdefs.h. */
24532_ACEOF
24533cat confdefs.h >>conftest.$ac_ext
24534cat >>conftest.$ac_ext <<_ACEOF
24535/* end confdefs.h. */
24536#include <curses.h>
24537int
24538main ()
24539{
24540void *x=resizeterm
24541 ;
24542 return 0;
24543}
24544_ACEOF
24545rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024546if { (ac_try="$ac_compile"
24547case "(($ac_try" in
24548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549 *) ac_try_echo=$ac_try;;
24550esac
24551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24552 (eval "$ac_compile") 2>conftest.er1
Walter Dörwald4994d952006-06-19 08:07:50 +000024553 ac_status=$?
24554 grep -v '^ *+' conftest.er1 >conftest.err
24555 rm -f conftest.er1
24556 cat conftest.err >&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024558 (exit $ac_status); } && {
24559 test -z "$ac_c_werror_flag" ||
24560 test ! -s conftest.err
24561 } && test -s conftest.$ac_objext; then
Walter Dörwald4994d952006-06-19 08:07:50 +000024562
24563cat >>confdefs.h <<\_ACEOF
24564#define HAVE_CURSES_RESIZETERM 1
24565_ACEOF
24566
Martin v. Löwiseba40652007-08-30 20:10:57 +000024567 { echo "$as_me:$LINENO: result: yes" >&5
24568echo "${ECHO_T}yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024569else
24570 echo "$as_me: failed program was:" >&5
24571sed 's/^/| /' conftest.$ac_ext >&5
24572
Martin v. Löwiseba40652007-08-30 20:10:57 +000024573 { echo "$as_me:$LINENO: result: no" >&5
24574echo "${ECHO_T}no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024575
24576fi
Walter Dörwald4994d952006-06-19 08:07:50 +000024577
Martin v. Löwiseba40652007-08-30 20:10:57 +000024578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24579
24580{ echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24581echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
Martin v. Löwisfefbc202006-10-17 18:59:23 +000024582
24583if test -r /dev/ptmx
24584then
Martin v. Löwiseba40652007-08-30 20:10:57 +000024585 { echo "$as_me:$LINENO: result: yes" >&5
24586echo "${ECHO_T}yes" >&6; }
Martin v. Löwis24a880b2002-12-31 12:55:15 +000024587
24588cat >>confdefs.h <<\_ACEOF
24589#define HAVE_DEV_PTMX 1
24590_ACEOF
24591
Martin v. Löwisfefbc202006-10-17 18:59:23 +000024592else
Martin v. Löwiseba40652007-08-30 20:10:57 +000024593 { echo "$as_me:$LINENO: result: no" >&5
24594echo "${ECHO_T}no" >&6; }
Martin v. Löwis24a880b2002-12-31 12:55:15 +000024595fi
24596
Martin v. Löwiseba40652007-08-30 20:10:57 +000024597{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24598echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
Martin v. Löwisfefbc202006-10-17 18:59:23 +000024599
24600if test -r /dev/ptc
24601then
Martin v. Löwiseba40652007-08-30 20:10:57 +000024602 { echo "$as_me:$LINENO: result: yes" >&5
24603echo "${ECHO_T}yes" >&6; }
Neal Norwitz865400f2003-03-21 01:42:58 +000024604
24605cat >>confdefs.h <<\_ACEOF
24606#define HAVE_DEV_PTC 1
24607_ACEOF
24608
Martin v. Löwisfefbc202006-10-17 18:59:23 +000024609else
Martin v. Löwiseba40652007-08-30 20:10:57 +000024610 { echo "$as_me:$LINENO: result: no" >&5
24611echo "${ECHO_T}no" >&6; }
Neal Norwitz865400f2003-03-21 01:42:58 +000024612fi
24613
Martin v. Löwiseba40652007-08-30 20:10:57 +000024614{ echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24615echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
Brett Cannon09d12362006-05-11 05:11:33 +000024616if test "$cross_compiling" = yes; then
24617 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24618See \`config.log' for more details." >&5
24619echo "$as_me: error: cannot run test program while cross compiling
24620See \`config.log' for more details." >&2;}
24621 { (exit 1); exit 1; }; }
24622else
24623 cat >conftest.$ac_ext <<_ACEOF
24624/* confdefs.h. */
24625_ACEOF
24626cat confdefs.h >>conftest.$ac_ext
24627cat >>conftest.$ac_ext <<_ACEOF
24628/* end confdefs.h. */
24629#include <stdio.h>
24630#include <stddef.h>
24631#include <string.h>
24632
Christian Heimesdb3d6cb2007-12-16 21:39:43 +000024633#ifdef HAVE_SYS_TYPES_H
24634#include <sys/types.h>
24635#endif
Neal Norwitz4a8fbdb2006-09-22 08:16:26 +000024636
24637#ifdef HAVE_SSIZE_T
24638typedef ssize_t Py_ssize_t;
24639#elif SIZEOF_VOID_P == SIZEOF_LONG
24640typedef long Py_ssize_t;
24641#else
24642typedef int Py_ssize_t;
24643#endif
Brett Cannon09d12362006-05-11 05:11:33 +000024644
Christian Heimesdb3d6cb2007-12-16 21:39:43 +000024645int main()
24646{
24647 char buffer[256];
24648
Brett Cannon09d12362006-05-11 05:11:33 +000024649 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24650 return 1;
24651
Neal Norwitz4a8fbdb2006-09-22 08:16:26 +000024652 if (strcmp(buffer, "123"))
24653 return 1;
24654
24655 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24656 return 1;
24657
24658 if (strcmp(buffer, "-123"))
Brett Cannon09d12362006-05-11 05:11:33 +000024659 return 1;
24660
24661 return 0;
24662}
24663_ACEOF
24664rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024665if { (ac_try="$ac_link"
24666case "(($ac_try" in
24667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24668 *) ac_try_echo=$ac_try;;
24669esac
24670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24671 (eval "$ac_link") 2>&5
Brett Cannon09d12362006-05-11 05:11:33 +000024672 ac_status=$?
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024675 { (case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24678esac
24679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_try") 2>&5
Brett Cannon09d12362006-05-11 05:11:33 +000024681 ac_status=$?
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000024684 { echo "$as_me:$LINENO: result: yes" >&5
24685echo "${ECHO_T}yes" >&6; }
Brett Cannon09d12362006-05-11 05:11:33 +000024686
24687cat >>confdefs.h <<\_ACEOF
24688#define PY_FORMAT_SIZE_T "z"
24689_ACEOF
24690
24691else
24692 echo "$as_me: program exited with status $ac_status" >&5
24693echo "$as_me: failed program was:" >&5
24694sed 's/^/| /' conftest.$ac_ext >&5
24695
24696( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000024697{ echo "$as_me:$LINENO: result: no" >&5
24698echo "${ECHO_T}no" >&6; }
Brett Cannon09d12362006-05-11 05:11:33 +000024699fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Brett Cannon09d12362006-05-11 05:11:33 +000024701fi
24702
Martin v. Löwiseba40652007-08-30 20:10:57 +000024703
24704
24705{ echo "$as_me:$LINENO: checking for socklen_t" >&5
24706echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024707if test "${ac_cv_type_socklen_t+set}" = set; then
24708 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum95713eb2000-05-18 20:53:31 +000024709else
Martin v. Löwis11437992002-04-12 09:54:03 +000024710 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024711/* confdefs.h. */
24712_ACEOF
24713cat confdefs.h >>conftest.$ac_ext
24714cat >>conftest.$ac_ext <<_ACEOF
24715/* end confdefs.h. */
Martin v. Löwis01c04012002-11-11 14:58:44 +000024716
24717#ifdef HAVE_SYS_TYPES_H
24718#include <sys/types.h>
24719#endif
24720#ifdef HAVE_SYS_SOCKET_H
24721#include <sys/socket.h>
24722#endif
24723
24724
Martin v. Löwiseba40652007-08-30 20:10:57 +000024725typedef socklen_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000024726int
24727main ()
24728{
Martin v. Löwiseba40652007-08-30 20:10:57 +000024729if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000024730 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000024731if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +000024732 return 0;
24733 ;
24734 return 0;
24735}
24736_ACEOF
24737rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024738if { (ac_try="$ac_compile"
24739case "(($ac_try" in
24740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24742esac
24743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024745 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024746 grep -v '^ *+' conftest.er1 >conftest.err
24747 rm -f conftest.er1
24748 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024750 (exit $ac_status); } && {
24751 test -z "$ac_c_werror_flag" ||
24752 test ! -s conftest.err
24753 } && test -s conftest.$ac_objext; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000024754 ac_cv_type_socklen_t=yes
Guido van Rossum95713eb2000-05-18 20:53:31 +000024755else
Martin v. Löwis11437992002-04-12 09:54:03 +000024756 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024757sed 's/^/| /' conftest.$ac_ext >&5
24758
Martin v. Löwiseba40652007-08-30 20:10:57 +000024759 ac_cv_type_socklen_t=no
Guido van Rossum95713eb2000-05-18 20:53:31 +000024760fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024761
24762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000024763fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024764{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24765echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024766if test $ac_cv_type_socklen_t = yes; then
24767 :
24768else
Guido van Rossum95713eb2000-05-18 20:53:31 +000024769
Martin v. Löwis01c04012002-11-11 14:58:44 +000024770cat >>confdefs.h <<\_ACEOF
Guido van Rossum95713eb2000-05-18 20:53:31 +000024771#define socklen_t int
Martin v. Löwis11437992002-04-12 09:54:03 +000024772_ACEOF
Guido van Rossum95713eb2000-05-18 20:53:31 +000024773
24774fi
24775
Michael W. Hudson54241132001-12-07 15:38:26 +000024776
Michael W. Hudson54241132001-12-07 15:38:26 +000024777
24778
Martin v. Löwis06f15bb2001-12-02 13:02:32 +000024779for h in `(cd $srcdir;echo Python/thread_*.h)`
24780do
24781 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24782done
24783
Michael W. Hudson54241132001-12-07 15:38:26 +000024784
Neal Norwitzd24499d2005-12-18 21:36:39 +000024785SRCDIRS="Parser Grammar Objects Python Modules Mac"
Martin v. Löwiseba40652007-08-30 20:10:57 +000024786{ echo "$as_me:$LINENO: checking for build directories" >&5
24787echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +000024788for dir in $SRCDIRS; do
24789 if test ! -d $dir; then
24790 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:53 +000024791 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +000024792done
Martin v. Löwiseba40652007-08-30 20:10:57 +000024793{ echo "$as_me:$LINENO: result: done" >&5
24794echo "${ECHO_T}done" >&6; }
Fred Drake036144d2000-10-26 17:09:35 +000024795
Guido van Rossum627b2d71993-12-24 10:39:16 +000024796# generate output files
Martin v. Löwiseba40652007-08-30 20:10:57 +000024797ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
Martin v. Löwis88afe662002-10-26 13:47:44 +000024798
Martin v. Löwis11437992002-04-12 09:54:03 +000024799cat >confcache <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024800# This file is a shell script that caches the results of configure
24801# tests run on this system so they can be shared between configure
Martin v. Löwis11437992002-04-12 09:54:03 +000024802# scripts and configure runs, see configure's option --config-cache.
24803# It is not useful on other systems. If it contains results you don't
24804# want to keep, you may remove or edit it.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024805#
Martin v. Löwis11437992002-04-12 09:54:03 +000024806# config.status only pays attention to the cache file if you give it
24807# the --recheck option to rerun configure.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024808#
Skip Montanaro6dead952003-09-25 14:50:04 +000024809# `ac_cv_env_foo' variables (set or unset) will be overridden when
Martin v. Löwis11437992002-04-12 09:54:03 +000024810# loading this file, other *unset* `ac_cv_foo' will be assigned the
24811# following values.
24812
24813_ACEOF
24814
Guido van Rossumf78abae1997-01-21 22:02:36 +000024815# The following way of writing the cache mishandles newlines in values,
24816# but we know of no workaround that is simple, portable, and efficient.
Martin v. Löwiseba40652007-08-30 20:10:57 +000024817# So, we kill variables containing newlines.
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000024818# Ultrix sh set writes to stderr and can't be redirected directly,
24819# and sets the high bit in the cache file unless we assign to the vars.
Martin v. Löwiseba40652007-08-30 20:10:57 +000024820(
24821 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24822 eval ac_val=\$$ac_var
24823 case $ac_val in #(
24824 *${as_nl}*)
24825 case $ac_var in #(
24826 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24827echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24828 esac
24829 case $ac_var in #(
24830 _ | IFS | as_nl) ;; #(
24831 *) $as_unset $ac_var ;;
24832 esac ;;
24833 esac
24834 done
24835
Martin v. Löwis11437992002-04-12 09:54:03 +000024836 (set) 2>&1 |
Martin v. Löwiseba40652007-08-30 20:10:57 +000024837 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24838 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:03 +000024839 # `set' does not quote correctly, so add quotes (double-quote
24840 # substitution turns \\\\ into \\, and sed turns \\ into \).
24841 sed -n \
Skip Montanarof0d5f792004-08-15 14:08:23 +000024842 "s/'/'\\\\''/g;
24843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Martin v. Löwiseba40652007-08-30 20:10:57 +000024844 ;; #(
Martin v. Löwis11437992002-04-12 09:54:03 +000024845 *)
24846 # `set' quotes correctly as required by POSIX, so do not add quotes.
Martin v. Löwiseba40652007-08-30 20:10:57 +000024847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Martin v. Löwis11437992002-04-12 09:54:03 +000024848 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000024849 esac |
24850 sort
24851) |
Martin v. Löwis11437992002-04-12 09:54:03 +000024852 sed '
Martin v. Löwiseba40652007-08-30 20:10:57 +000024853 /^ac_cv_env_/b end
Martin v. Löwis11437992002-04-12 09:54:03 +000024854 t clear
Martin v. Löwiseba40652007-08-30 20:10:57 +000024855 :clear
Martin v. Löwis11437992002-04-12 09:54:03 +000024856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24857 t end
Martin v. Löwiseba40652007-08-30 20:10:57 +000024858 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24859 :end' >>confcache
24860if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24861 if test -w "$cache_file"; then
24862 test "x$cache_file" != "x/dev/null" &&
24863 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24864echo "$as_me: updating cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +000024865 cat confcache >$cache_file
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000024866 else
Martin v. Löwiseba40652007-08-30 20:10:57 +000024867 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24868echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000024869 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024870fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000024871rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:40 +000024872
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024873test "x$prefix" = xNONE && prefix=$ac_default_prefix
24874# Let make expand exec_prefix.
24875test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:40 +000024876
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024877DEFS=-DHAVE_CONFIG_H
24878
Skip Montanaro6dead952003-09-25 14:50:04 +000024879ac_libobjs=
24880ac_ltlibobjs=
24881for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24882 # 1. Remove the extension, and $U if already installed.
Martin v. Löwiseba40652007-08-30 20:10:57 +000024883 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24884 ac_i=`echo "$ac_i" | sed "$ac_script"`
24885 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24886 # will be set to the directory where LIBOBJS objects are built.
24887 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24888 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Skip Montanaro6dead952003-09-25 14:50:04 +000024889done
24890LIBOBJS=$ac_libobjs
24891
24892LTLIBOBJS=$ac_ltlibobjs
24893
24894
Martin v. Löwis11437992002-04-12 09:54:03 +000024895
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024896: ${CONFIG_STATUS=./config.status}
Martin v. Löwis11437992002-04-12 09:54:03 +000024897ac_clean_files_save=$ac_clean_files
24898ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24899{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24900echo "$as_me: creating $CONFIG_STATUS" >&6;}
24901cat >$CONFIG_STATUS <<_ACEOF
24902#! $SHELL
24903# Generated by $as_me.
Guido van Rossum627b2d71993-12-24 10:39:16 +000024904# Run this file to recreate the current configuration.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024905# Compiler output produced by configure, useful for debugging
Martin v. Löwis11437992002-04-12 09:54:03 +000024906# configure, is in config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:16 +000024907
Martin v. Löwis11437992002-04-12 09:54:03 +000024908debug=false
Skip Montanaro6dead952003-09-25 14:50:04 +000024909ac_cs_recheck=false
24910ac_cs_silent=false
Martin v. Löwis11437992002-04-12 09:54:03 +000024911SHELL=\${CONFIG_SHELL-$SHELL}
24912_ACEOF
Jack Jansendd19cf82001-12-06 22:36:17 +000024913
Martin v. Löwis11437992002-04-12 09:54:03 +000024914cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000024915## --------------------- ##
24916## M4sh Initialization. ##
24917## --------------------- ##
Jack Jansendd19cf82001-12-06 22:36:17 +000024918
Martin v. Löwiseba40652007-08-30 20:10:57 +000024919# Be more Bourne compatible
24920DUALCASE=1; export DUALCASE # for MKS sh
Martin v. Löwis11437992002-04-12 09:54:03 +000024921if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24922 emulate sh
24923 NULLCMD=:
Skip Montanaro6dead952003-09-25 14:50:04 +000024924 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24925 # is contrary to our usage. Disable this feature.
24926 alias -g '${1+"$@"}'='"$@"'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024927 setopt NO_GLOB_SUBST
Skip Montanaro89e975f2007-08-22 19:05:21 +000024928else
Martin v. Löwiseba40652007-08-30 20:10:57 +000024929 case `(set -o) 2>/dev/null` in
24930 *posix*) set -o posix ;;
24931esac
24932
Martin v. Löwis11437992002-04-12 09:54:03 +000024933fi
Michael W. Hudson54241132001-12-07 15:38:26 +000024934
Skip Montanaro6dead952003-09-25 14:50:04 +000024935
Martin v. Löwis11437992002-04-12 09:54:03 +000024936
24937
Martin v. Löwiseba40652007-08-30 20:10:57 +000024938# PATH needs CR
Martin v. Löwis11437992002-04-12 09:54:03 +000024939# Avoid depending upon Character Ranges.
24940as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24941as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24942as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24943as_cr_digits='0123456789'
24944as_cr_alnum=$as_cr_Letters$as_cr_digits
24945
24946# The user is always right.
24947if test "${PATH_SEPARATOR+set}" != set; then
Skip Montanaro6dead952003-09-25 14:50:04 +000024948 echo "#! /bin/sh" >conf$$.sh
24949 echo "exit 0" >>conf$$.sh
24950 chmod +x conf$$.sh
24951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Martin v. Löwis11437992002-04-12 09:54:03 +000024952 PATH_SEPARATOR=';'
24953 else
24954 PATH_SEPARATOR=:
24955 fi
Skip Montanaro6dead952003-09-25 14:50:04 +000024956 rm -f conf$$.sh
Martin v. Löwis11437992002-04-12 09:54:03 +000024957fi
24958
Martin v. Löwiseba40652007-08-30 20:10:57 +000024959# Support unset when possible.
24960if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24961 as_unset=unset
24962else
24963 as_unset=false
24964fi
Martin v. Löwis11437992002-04-12 09:54:03 +000024965
Martin v. Löwiseba40652007-08-30 20:10:57 +000024966
24967# IFS
24968# We need space, tab and new line, in precisely that order. Quoting is
24969# there to prevent editors from complaining about space-tab.
24970# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24971# splitting by setting IFS to empty value.)
24972as_nl='
24973'
24974IFS=" "" $as_nl"
24975
24976# Find who we are. Look in the path if we contain no directory separator.
24977case $0 in
24978 *[\\/]* ) as_myself=$0 ;;
24979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:03 +000024980for as_dir in $PATH
24981do
24982 IFS=$as_save_IFS
24983 test -z "$as_dir" && as_dir=.
24984 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24985done
Martin v. Löwiseba40652007-08-30 20:10:57 +000024986IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +000024987
Martin v. Löwiseba40652007-08-30 20:10:57 +000024988 ;;
24989esac
24990# We did not find ourselves, most probably we were run as `sh COMMAND'
24991# in which case we are not to be found in the path.
24992if test "x$as_myself" = x; then
24993 as_myself=$0
24994fi
24995if test ! -f "$as_myself"; then
24996 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24997 { (exit 1); exit 1; }
24998fi
24999
25000# Work around bugs in pre-3.0 UWIN ksh.
25001for as_var in ENV MAIL MAILPATH
25002do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25003done
25004PS1='$ '
25005PS2='> '
25006PS4='+ '
25007
25008# NLS nuisances.
25009for as_var in \
25010 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25011 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25012 LC_TELEPHONE LC_TIME
Skip Montanaro89e975f2007-08-22 19:05:21 +000025013do
Martin v. Löwiseba40652007-08-30 20:10:57 +000025014 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25015 eval $as_var=C; export $as_var
25016 else
25017 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25018 fi
25019done
25020
25021# Required to use basename.
25022if expr a : '\(a\)' >/dev/null 2>&1 &&
25023 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25024 as_expr=expr
25025else
25026 as_expr=false
25027fi
25028
25029if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25030 as_basename=basename
25031else
25032 as_basename=false
25033fi
25034
25035
25036# Name of the executable.
25037as_me=`$as_basename -- "$0" ||
25038$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25039 X"$0" : 'X\(//\)$' \| \
25040 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25041echo X/"$0" |
25042 sed '/^.*\/\([^/][^/]*\)\/*$/{
25043 s//\1/
25044 q
25045 }
25046 /^X\/\(\/\/\)$/{
25047 s//\1/
25048 q
25049 }
25050 /^X\/\(\/\).*/{
25051 s//\1/
25052 q
25053 }
25054 s/.*/./; q'`
25055
25056# CDPATH.
25057$as_unset CDPATH
25058
25059
25060
Martin v. Löwis11437992002-04-12 09:54:03 +000025061 as_lineno_1=$LINENO
25062 as_lineno_2=$LINENO
Martin v. Löwis11437992002-04-12 09:54:03 +000025063 test "x$as_lineno_1" != "x$as_lineno_2" &&
Martin v. Löwiseba40652007-08-30 20:10:57 +000025064 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Jack Jansendd19cf82001-12-06 22:36:17 +000025065
Martin v. Löwis11437992002-04-12 09:54:03 +000025066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25067 # uniformly replaced by the line number. The first 'sed' inserts a
Martin v. Löwiseba40652007-08-30 20:10:57 +000025068 # line-number line after each line using $LINENO; the second 'sed'
25069 # does the real work. The second script uses 'N' to pair each
25070 # line-number line with the line containing $LINENO, and appends
25071 # trailing '-' during substitution so that $LINENO is not a special
25072 # case at line end.
Martin v. Löwis11437992002-04-12 09:54:03 +000025073 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Martin v. Löwiseba40652007-08-30 20:10:57 +000025074 # scripts with optimization help from Paolo Bonzini. Blame Lee
25075 # E. McMahon (1931-1989) for sed's syntax. :-)
25076 sed -n '
25077 p
25078 /[$]LINENO/=
25079 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03 +000025080 sed '
Martin v. Löwiseba40652007-08-30 20:10:57 +000025081 s/[$]LINENO.*/&-/
25082 t lineno
25083 b
25084 :lineno
Martin v. Löwis11437992002-04-12 09:54:03 +000025085 N
Martin v. Löwiseba40652007-08-30 20:10:57 +000025086 :loop
25087 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03 +000025088 t loop
Martin v. Löwiseba40652007-08-30 20:10:57 +000025089 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03 +000025090 ' >$as_me.lineno &&
Martin v. Löwiseba40652007-08-30 20:10:57 +000025091 chmod +x "$as_me.lineno" ||
25092 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +000025093 { (exit 1); exit 1; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +000025094
Martin v. Löwis11437992002-04-12 09:54:03 +000025095 # Don't try to exec as it changes $[0], causing all sort of problems
25096 # (the dirname of $[0] is not the place where we might find the
Martin v. Löwiseba40652007-08-30 20:10:57 +000025097 # original and so on. Autoconf is especially sensitive to this).
25098 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03 +000025099 # Exit status is that of the last command.
25100 exit
25101}
25102
25103
Martin v. Löwiseba40652007-08-30 20:10:57 +000025104if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25105 as_dirname=dirname
25106else
25107 as_dirname=false
25108fi
25109
25110ECHO_C= ECHO_N= ECHO_T=
25111case `echo -n x` in
25112-n*)
25113 case `echo 'x\c'` in
25114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25115 *) ECHO_C='\c';;
25116 esac;;
25117*)
25118 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03 +000025119esac
25120
Martin v. Löwiseba40652007-08-30 20:10:57 +000025121if expr a : '\(a\)' >/dev/null 2>&1 &&
25122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Martin v. Löwis11437992002-04-12 09:54:03 +000025123 as_expr=expr
25124else
25125 as_expr=false
25126fi
25127
25128rm -f conf$$ conf$$.exe conf$$.file
Martin v. Löwiseba40652007-08-30 20:10:57 +000025129if test -d conf$$.dir; then
25130 rm -f conf$$.dir/conf$$.file
25131else
25132 rm -f conf$$.dir
25133 mkdir conf$$.dir
25134fi
Martin v. Löwis11437992002-04-12 09:54:03 +000025135echo >conf$$.file
25136if ln -s conf$$.file conf$$ 2>/dev/null; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000025137 as_ln_s='ln -s'
25138 # ... but there are two gotchas:
25139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25141 # In both cases, we have to default to `cp -p'.
25142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Martin v. Löwis11437992002-04-12 09:54:03 +000025143 as_ln_s='cp -p'
Martin v. Löwis11437992002-04-12 09:54:03 +000025144elif ln conf$$.file conf$$ 2>/dev/null; then
25145 as_ln_s=ln
25146else
25147 as_ln_s='cp -p'
25148fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025149rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25150rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03 +000025151
Skip Montanaro6dead952003-09-25 14:50:04 +000025152if mkdir -p . 2>/dev/null; then
25153 as_mkdir_p=:
25154else
Skip Montanarof0d5f792004-08-15 14:08:23 +000025155 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04 +000025156 as_mkdir_p=false
25157fi
25158
Martin v. Löwiseba40652007-08-30 20:10:57 +000025159if test -x / >/dev/null 2>&1; then
25160 as_test_x='test -x'
25161else
25162 if ls -dL / >/dev/null 2>&1; then
25163 as_ls_L_option=L
25164 else
25165 as_ls_L_option=
25166 fi
25167 as_test_x='
25168 eval sh -c '\''
25169 if test -d "$1"; then
25170 test -d "$1/.";
25171 else
25172 case $1 in
25173 -*)set "./$1";;
25174 esac;
25175 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25176 ???[sx]*):;;*)false;;esac;fi
25177 '\'' sh
25178 '
25179fi
25180as_executable_p=$as_test_x
Martin v. Löwis11437992002-04-12 09:54:03 +000025181
25182# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23 +000025183as_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 +000025184
25185# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23 +000025186as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +000025187
25188
Martin v. Löwis11437992002-04-12 09:54:03 +000025189exec 6>&1
25190
Martin v. Löwiseba40652007-08-30 20:10:57 +000025191# Save the log message, to keep $[0] and so on meaningful, and to
Martin v. Löwis11437992002-04-12 09:54:03 +000025192# report actual input values of CONFIG_FILES etc. instead of their
Martin v. Löwiseba40652007-08-30 20:10:57 +000025193# values after options handling.
25194ac_log="
Martin v. Löwis174440b2008-10-03 08:59:41 +000025195This file was extended by python $as_me 2.7, which was
Martin v. Löwiseba40652007-08-30 20:10:57 +000025196generated by GNU Autoconf 2.61. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:03 +000025197
25198 CONFIG_FILES = $CONFIG_FILES
25199 CONFIG_HEADERS = $CONFIG_HEADERS
25200 CONFIG_LINKS = $CONFIG_LINKS
25201 CONFIG_COMMANDS = $CONFIG_COMMANDS
25202 $ $0 $@
25203
Martin v. Löwiseba40652007-08-30 20:10:57 +000025204on `(hostname || uname -n) 2>/dev/null | sed 1q`
25205"
25206
Martin v. Löwis11437992002-04-12 09:54:03 +000025207_ACEOF
25208
Martin v. Löwiseba40652007-08-30 20:10:57 +000025209cat >>$CONFIG_STATUS <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025210# Files that config.status was made for.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025211config_files="$ac_config_files"
25212config_headers="$ac_config_headers"
Martin v. Löwis11437992002-04-12 09:54:03 +000025213
Martin v. Löwiseba40652007-08-30 20:10:57 +000025214_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025215
25216cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025217ac_cs_usage="\
25218\`$as_me' instantiates files from templates according to the
25219current configuration.
25220
25221Usage: $0 [OPTIONS] [FILE]...
25222
25223 -h, --help print this help, then exit
Martin v. Löwiseba40652007-08-30 20:10:57 +000025224 -V, --version print version number and configuration settings, then exit
Skip Montanaro6dead952003-09-25 14:50:04 +000025225 -q, --quiet do not print progress messages
Martin v. Löwis11437992002-04-12 09:54:03 +000025226 -d, --debug don't remove temporary files
25227 --recheck update $as_me by reconfiguring in the same conditions
25228 --file=FILE[:TEMPLATE]
Skip Montanarof0d5f792004-08-15 14:08:23 +000025229 instantiate the configuration file FILE
Martin v. Löwis11437992002-04-12 09:54:03 +000025230 --header=FILE[:TEMPLATE]
Skip Montanarof0d5f792004-08-15 14:08:23 +000025231 instantiate the configuration header FILE
Martin v. Löwis11437992002-04-12 09:54:03 +000025232
25233Configuration files:
25234$config_files
25235
25236Configuration headers:
25237$config_headers
25238
25239Report bugs to <bug-autoconf@gnu.org>."
Skip Montanaro89e975f2007-08-22 19:05:21 +000025240
Martin v. Löwiseba40652007-08-30 20:10:57 +000025241_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025242cat >>$CONFIG_STATUS <<_ACEOF
25243ac_cs_version="\\
Martin v. Löwis174440b2008-10-03 08:59:41 +000025244python config.status 2.7
Martin v. Löwiseba40652007-08-30 20:10:57 +000025245configured by $0, generated by GNU Autoconf 2.61,
25246 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Martin v. Löwis11437992002-04-12 09:54:03 +000025247
Martin v. Löwiseba40652007-08-30 20:10:57 +000025248Copyright (C) 2006 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:03 +000025249This config.status script is free software; the Free Software Foundation
25250gives unlimited permission to copy, distribute and modify it."
Martin v. Löwiseba40652007-08-30 20:10:57 +000025251
25252ac_pwd='$ac_pwd'
25253srcdir='$srcdir'
25254INSTALL='$INSTALL'
Martin v. Löwis11437992002-04-12 09:54:03 +000025255_ACEOF
25256
25257cat >>$CONFIG_STATUS <<\_ACEOF
25258# If no file are specified by the user, then we need to provide default
25259# value. By we need to know if files were specified by the user.
25260ac_need_defaults=:
25261while test $# != 0
25262do
25263 case $1 in
25264 --*=*)
Martin v. Löwiseba40652007-08-30 20:10:57 +000025265 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25266 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Skip Montanaro6dead952003-09-25 14:50:04 +000025267 ac_shift=:
Martin v. Löwis11437992002-04-12 09:54:03 +000025268 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025269 *)
Skip Montanaro6dead952003-09-25 14:50:04 +000025270 ac_option=$1
25271 ac_optarg=$2
25272 ac_shift=shift
25273 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000025274 esac
25275
Skip Montanaro6dead952003-09-25 14:50:04 +000025276 case $ac_option in
Martin v. Löwis11437992002-04-12 09:54:03 +000025277 # Handling of the options.
Skip Montanaro6dead952003-09-25 14:50:04 +000025278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25279 ac_cs_recheck=: ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025280 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25281 echo "$ac_cs_version"; exit ;;
25282 --debug | --debu | --deb | --de | --d | -d )
Martin v. Löwis11437992002-04-12 09:54:03 +000025283 debug=: ;;
25284 --file | --fil | --fi | --f )
Skip Montanaro6dead952003-09-25 14:50:04 +000025285 $ac_shift
25286 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Martin v. Löwis11437992002-04-12 09:54:03 +000025287 ac_need_defaults=false;;
25288 --header | --heade | --head | --hea )
Skip Montanaro6dead952003-09-25 14:50:04 +000025289 $ac_shift
25290 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Martin v. Löwis11437992002-04-12 09:54:03 +000025291 ac_need_defaults=false;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025292 --he | --h)
25293 # Conflict between --help and --header
25294 { echo "$as_me: error: ambiguous option: $1
25295Try \`$0 --help' for more information." >&2
25296 { (exit 1); exit 1; }; };;
25297 --help | --hel | -h )
25298 echo "$ac_cs_usage"; exit ;;
Skip Montanaro6dead952003-09-25 14:50:04 +000025299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25301 ac_cs_silent=: ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000025302
25303 # This is an error.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025304 -*) { echo "$as_me: error: unrecognized option: $1
25305Try \`$0 --help' for more information." >&2
Martin v. Löwis11437992002-04-12 09:54:03 +000025306 { (exit 1); exit 1; }; } ;;
25307
Martin v. Löwiseba40652007-08-30 20:10:57 +000025308 *) ac_config_targets="$ac_config_targets $1"
25309 ac_need_defaults=false ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000025310
25311 esac
25312 shift
25313done
25314
Skip Montanaro6dead952003-09-25 14:50:04 +000025315ac_configure_extra_args=
25316
25317if $ac_cs_silent; then
25318 exec 6>/dev/null
25319 ac_configure_extra_args="$ac_configure_extra_args --silent"
25320fi
25321
25322_ACEOF
25323cat >>$CONFIG_STATUS <<_ACEOF
25324if \$ac_cs_recheck; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000025325 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25326 CONFIG_SHELL=$SHELL
25327 export CONFIG_SHELL
25328 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Skip Montanaro6dead952003-09-25 14:50:04 +000025329fi
25330
Martin v. Löwis11437992002-04-12 09:54:03 +000025331_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000025332cat >>$CONFIG_STATUS <<\_ACEOF
25333exec 5>>config.log
25334{
25335 echo
25336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25337## Running $as_me. ##
25338_ASBOX
25339 echo "$ac_log"
25340} >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025341
Martin v. Löwiseba40652007-08-30 20:10:57 +000025342_ACEOF
25343cat >>$CONFIG_STATUS <<_ACEOF
25344_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025345
25346cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000025347
25348# Handling of arguments.
Martin v. Löwis11437992002-04-12 09:54:03 +000025349for ac_config_target in $ac_config_targets
25350do
Martin v. Löwiseba40652007-08-30 20:10:57 +000025351 case $ac_config_target in
25352 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25353 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25354 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25355 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
Ronald Oussoren580c7fe2008-05-02 19:45:11 +000025356 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25357 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025358 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25359 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25360
Martin v. Löwis11437992002-04-12 09:54:03 +000025361 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25362echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25363 { (exit 1); exit 1; }; };;
25364 esac
25365done
25366
Martin v. Löwiseba40652007-08-30 20:10:57 +000025367
Martin v. Löwis11437992002-04-12 09:54:03 +000025368# If the user did not use the arguments to specify the items to instantiate,
25369# then the envvar interface is used. Set only those that are not.
25370# We use the long form for the default assignment because of an extremely
25371# bizarre bug on SunOS 4.1.3.
25372if $ac_need_defaults; then
25373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25375fi
25376
Skip Montanaro6dead952003-09-25 14:50:04 +000025377# Have a temporary directory for convenience. Make it in the build tree
Martin v. Löwiseba40652007-08-30 20:10:57 +000025378# simply because there is no reason against having it here, and in addition,
Skip Montanaro6dead952003-09-25 14:50:04 +000025379# creating and moving files from /tmp can sometimes cause problems.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025380# Hook for its removal unless debugging.
25381# Note that there is a small window in which the directory will not be cleaned:
25382# after its creation but before its name has been assigned to `$tmp'.
Martin v. Löwis11437992002-04-12 09:54:03 +000025383$debug ||
25384{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025385 tmp=
25386 trap 'exit_status=$?
25387 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25388' 0
Martin v. Löwis11437992002-04-12 09:54:03 +000025389 trap '{ (exit 1); exit 1; }' 1 2 13 15
25390}
Martin v. Löwis11437992002-04-12 09:54:03 +000025391# Create a (secure) tmp directory for tmp files.
Skip Montanaro6dead952003-09-25 14:50:04 +000025392
Martin v. Löwis11437992002-04-12 09:54:03 +000025393{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025394 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Martin v. Löwis11437992002-04-12 09:54:03 +000025395 test -n "$tmp" && test -d "$tmp"
25396} ||
25397{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025398 tmp=./conf$$-$RANDOM
25399 (umask 077 && mkdir "$tmp")
Martin v. Löwis11437992002-04-12 09:54:03 +000025400} ||
25401{
Skip Montanaro6dead952003-09-25 14:50:04 +000025402 echo "$me: cannot create a temporary directory in ." >&2
Martin v. Löwis11437992002-04-12 09:54:03 +000025403 { (exit 1); exit 1; }
25404}
25405
Martin v. Löwis11437992002-04-12 09:54:03 +000025406#
Martin v. Löwiseba40652007-08-30 20:10:57 +000025407# Set up the sed scripts for CONFIG_FILES section.
Martin v. Löwis11437992002-04-12 09:54:03 +000025408#
25409
25410# No need to generate the scripts if there are no CONFIG_FILES.
25411# This happens for instance when ./config.status config.h
Martin v. Löwiseba40652007-08-30 20:10:57 +000025412if test -n "$CONFIG_FILES"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000025413
25414_ACEOF
25415
Martin v. Löwiseba40652007-08-30 20:10:57 +000025416
25417
25418ac_delim='%!_!# '
25419for ac_last_try in false false false false false :; do
25420 cat >conf$$subs.sed <<_ACEOF
25421SHELL!$SHELL$ac_delim
25422PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25423PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25424PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25425PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25426PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25427PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25428exec_prefix!$exec_prefix$ac_delim
25429prefix!$prefix$ac_delim
25430program_transform_name!$program_transform_name$ac_delim
25431bindir!$bindir$ac_delim
25432sbindir!$sbindir$ac_delim
25433libexecdir!$libexecdir$ac_delim
25434datarootdir!$datarootdir$ac_delim
25435datadir!$datadir$ac_delim
25436sysconfdir!$sysconfdir$ac_delim
25437sharedstatedir!$sharedstatedir$ac_delim
25438localstatedir!$localstatedir$ac_delim
25439includedir!$includedir$ac_delim
25440oldincludedir!$oldincludedir$ac_delim
25441docdir!$docdir$ac_delim
25442infodir!$infodir$ac_delim
25443htmldir!$htmldir$ac_delim
25444dvidir!$dvidir$ac_delim
25445pdfdir!$pdfdir$ac_delim
25446psdir!$psdir$ac_delim
25447libdir!$libdir$ac_delim
25448localedir!$localedir$ac_delim
25449mandir!$mandir$ac_delim
25450DEFS!$DEFS$ac_delim
25451ECHO_C!$ECHO_C$ac_delim
25452ECHO_N!$ECHO_N$ac_delim
25453ECHO_T!$ECHO_T$ac_delim
25454LIBS!$LIBS$ac_delim
25455build_alias!$build_alias$ac_delim
25456host_alias!$host_alias$ac_delim
25457target_alias!$target_alias$ac_delim
25458VERSION!$VERSION$ac_delim
25459SOVERSION!$SOVERSION$ac_delim
25460CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25461UNIVERSALSDK!$UNIVERSALSDK$ac_delim
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +000025462ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000025463PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
Ronald Oussoren580c7fe2008-05-02 19:45:11 +000025464PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000025465PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25466PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25467PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25468FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25469FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25470FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25471FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25472FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25473MACHDEP!$MACHDEP$ac_delim
25474SGI_ABI!$SGI_ABI$ac_delim
25475EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25476EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25477CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25478EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25479CC!$CC$ac_delim
25480CFLAGS!$CFLAGS$ac_delim
25481LDFLAGS!$LDFLAGS$ac_delim
25482CPPFLAGS!$CPPFLAGS$ac_delim
25483ac_ct_CC!$ac_ct_CC$ac_delim
25484EXEEXT!$EXEEXT$ac_delim
25485OBJEXT!$OBJEXT$ac_delim
25486CXX!$CXX$ac_delim
25487MAINCC!$MAINCC$ac_delim
25488CPP!$CPP$ac_delim
25489GREP!$GREP$ac_delim
25490EGREP!$EGREP$ac_delim
25491BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25492LIBRARY!$LIBRARY$ac_delim
25493LDLIBRARY!$LDLIBRARY$ac_delim
25494DLLLIBRARY!$DLLLIBRARY$ac_delim
25495BLDLIBRARY!$BLDLIBRARY$ac_delim
25496LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25497INSTSONAME!$INSTSONAME$ac_delim
25498RUNSHARED!$RUNSHARED$ac_delim
25499LINKCC!$LINKCC$ac_delim
25500RANLIB!$RANLIB$ac_delim
25501AR!$AR$ac_delim
25502SVNVERSION!$SVNVERSION$ac_delim
25503INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25504INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25505INSTALL_DATA!$INSTALL_DATA$ac_delim
25506LN!$LN$ac_delim
25507OPT!$OPT$ac_delim
25508BASECFLAGS!$BASECFLAGS$ac_delim
Ronald Oussoren5640ce22008-06-05 12:58:24 +000025509UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000025510OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25511LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25512SO!$SO$ac_delim
25513LDSHARED!$LDSHARED$ac_delim
25514BLDSHARED!$BLDSHARED$ac_delim
25515CCSHARED!$CCSHARED$ac_delim
25516LINKFORSHARED!$LINKFORSHARED$ac_delim
25517CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000025518_ACEOF
25519
25520 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25521 break
25522 elif $ac_last_try; then
25523 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25524echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25525 { (exit 1); exit 1; }; }
25526 else
25527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Martin v. Löwis11437992002-04-12 09:54:03 +000025528 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025529done
25530
25531ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25532if test -n "$ac_eof"; then
25533 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25534 ac_eof=`expr $ac_eof + 1`
25535fi
25536
25537cat >>$CONFIG_STATUS <<_ACEOF
25538cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25539/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25540_ACEOF
25541sed '
25542s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25543s/^/s,@/; s/!/@,|#_!!_#|/
25544:n
25545t n
25546s/'"$ac_delim"'$/,g/; t
25547s/$/\\/; p
25548N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25549' >>$CONFIG_STATUS <conf$$subs.sed
25550rm -f conf$$subs.sed
25551cat >>$CONFIG_STATUS <<_ACEOF
25552CEOF$ac_eof
25553_ACEOF
25554
25555
25556ac_delim='%!_!# '
25557for ac_last_try in false false false false false :; do
25558 cat >conf$$subs.sed <<_ACEOF
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +000025559SHLIBS!$SHLIBS$ac_delim
Ronald Oussoren5640ce22008-06-05 12:58:24 +000025560USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
Ronald Oussoren580c7fe2008-05-02 19:45:11 +000025561SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000025562USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25563LDLAST!$LDLAST$ac_delim
25564THREADOBJ!$THREADOBJ$ac_delim
25565DLINCLDIR!$DLINCLDIR$ac_delim
25566DYNLOADFILE!$DYNLOADFILE$ac_delim
25567MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25568TRUE!$TRUE$ac_delim
25569LIBOBJS!$LIBOBJS$ac_delim
25570HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25571HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25572HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25573HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25574HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25575LIBM!$LIBM$ac_delim
25576LIBC!$LIBC$ac_delim
25577UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25578THREADHEADERS!$THREADHEADERS$ac_delim
25579SRCDIRS!$SRCDIRS$ac_delim
25580LTLIBOBJS!$LTLIBOBJS$ac_delim
25581_ACEOF
25582
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +000025583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000025584 break
25585 elif $ac_last_try; then
25586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25587echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25588 { (exit 1); exit 1; }; }
25589 else
25590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25591 fi
25592done
25593
25594ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25595if test -n "$ac_eof"; then
25596 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25597 ac_eof=`expr $ac_eof + 1`
25598fi
25599
25600cat >>$CONFIG_STATUS <<_ACEOF
25601cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25603_ACEOF
25604sed '
25605s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25606s/^/s,@/; s/!/@,|#_!!_#|/
25607:n
25608t n
25609s/'"$ac_delim"'$/,g/; t
25610s/$/\\/; p
25611N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25612' >>$CONFIG_STATUS <conf$$subs.sed
25613rm -f conf$$subs.sed
25614cat >>$CONFIG_STATUS <<_ACEOF
25615:end
25616s/|#_!!_#|//g
25617CEOF$ac_eof
25618_ACEOF
25619
25620
25621# VPATH may cause trouble with some makes, so we remove $(srcdir),
25622# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25623# trailing colons and then remove the whole line if VPATH becomes empty
25624# (actually we leave an empty line to preserve line numbers).
25625if test "x$srcdir" = x.; then
25626 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25627s/:*\$(srcdir):*/:/
25628s/:*\${srcdir}:*/:/
25629s/:*@srcdir@:*/:/
25630s/^\([^=]*=[ ]*\):*/\1/
25631s/:*$//
25632s/^[^=]*=[ ]*$//
25633}'
25634fi
25635
25636cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025637fi # test -n "$CONFIG_FILES"
25638
Martin v. Löwiseba40652007-08-30 20:10:57 +000025639
25640for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25641do
25642 case $ac_tag in
25643 :[FHLC]) ac_mode=$ac_tag; continue;;
25644 esac
25645 case $ac_mode$ac_tag in
25646 :[FHL]*:*);;
25647 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25648echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25649 { (exit 1); exit 1; }; };;
25650 :[FH]-) ac_tag=-:-;;
25651 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25652 esac
25653 ac_save_IFS=$IFS
25654 IFS=:
25655 set x $ac_tag
25656 IFS=$ac_save_IFS
25657 shift
25658 ac_file=$1
25659 shift
25660
25661 case $ac_mode in
25662 :L) ac_source=$1;;
25663 :[FH])
25664 ac_file_inputs=
25665 for ac_f
25666 do
25667 case $ac_f in
25668 -) ac_f="$tmp/stdin";;
25669 *) # Look for the file first in the build tree, then in the source tree
25670 # (if the path is not absolute). The absolute path cannot be DOS-style,
25671 # because $ac_f cannot contain `:'.
25672 test -f "$ac_f" ||
25673 case $ac_f in
25674 [\\/$]*) false;;
25675 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25676 esac ||
25677 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25678echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25679 { (exit 1); exit 1; }; };;
25680 esac
25681 ac_file_inputs="$ac_file_inputs $ac_f"
25682 done
25683
25684 # Let's still pretend it is `configure' which instantiates (i.e., don't
25685 # use $as_me), people would be surprised to read:
25686 # /* config.h. Generated by config.status. */
25687 configure_input="Generated from "`IFS=:
25688 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25689 if test x"$ac_file" != x-; then
25690 configure_input="$ac_file. $configure_input"
25691 { echo "$as_me:$LINENO: creating $ac_file" >&5
25692echo "$as_me: creating $ac_file" >&6;}
25693 fi
25694
25695 case $ac_tag in
25696 *:-:* | *:-) cat >"$tmp/stdin";;
25697 esac
25698 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000025699 esac
25700
Martin v. Löwiseba40652007-08-30 20:10:57 +000025701 ac_dir=`$as_dirname -- "$ac_file" ||
Martin v. Löwis11437992002-04-12 09:54:03 +000025702$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:23 +000025703 X"$ac_file" : 'X\(//\)[^/]' \| \
25704 X"$ac_file" : 'X\(//\)$' \| \
Martin v. Löwiseba40652007-08-30 20:10:57 +000025705 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Martin v. Löwis11437992002-04-12 09:54:03 +000025706echo X"$ac_file" |
Martin v. Löwiseba40652007-08-30 20:10:57 +000025707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25708 s//\1/
25709 q
25710 }
25711 /^X\(\/\/\)[^/].*/{
25712 s//\1/
25713 q
25714 }
25715 /^X\(\/\/\)$/{
25716 s//\1/
25717 q
25718 }
25719 /^X\(\/\).*/{
25720 s//\1/
25721 q
25722 }
25723 s/.*/./; q'`
25724 { as_dir="$ac_dir"
25725 case $as_dir in #(
25726 -*) as_dir=./$as_dir;;
25727 esac
25728 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Skip Montanaro6dead952003-09-25 14:50:04 +000025729 as_dirs=
Martin v. Löwiseba40652007-08-30 20:10:57 +000025730 while :; do
25731 case $as_dir in #(
25732 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25733 *) as_qdir=$as_dir;;
25734 esac
25735 as_dirs="'$as_qdir' $as_dirs"
25736 as_dir=`$as_dirname -- "$as_dir" ||
Skip Montanaro6dead952003-09-25 14:50:04 +000025737$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:23 +000025738 X"$as_dir" : 'X\(//\)[^/]' \| \
25739 X"$as_dir" : 'X\(//\)$' \| \
Martin v. Löwiseba40652007-08-30 20:10:57 +000025740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Skip Montanaro6dead952003-09-25 14:50:04 +000025741echo X"$as_dir" |
Martin v. Löwiseba40652007-08-30 20:10:57 +000025742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25743 s//\1/
25744 q
25745 }
25746 /^X\(\/\/\)[^/].*/{
25747 s//\1/
25748 q
25749 }
25750 /^X\(\/\/\)$/{
25751 s//\1/
25752 q
25753 }
25754 /^X\(\/\).*/{
25755 s//\1/
25756 q
25757 }
25758 s/.*/./; q'`
25759 test -d "$as_dir" && break
Skip Montanaro6dead952003-09-25 14:50:04 +000025760 done
Martin v. Löwiseba40652007-08-30 20:10:57 +000025761 test -z "$as_dirs" || eval "mkdir $as_dirs"
25762 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25763echo "$as_me: error: cannot create directory $as_dir" >&2;}
Skip Montanaro6dead952003-09-25 14:50:04 +000025764 { (exit 1); exit 1; }; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +000025765 ac_builddir=.
25766
Martin v. Löwiseba40652007-08-30 20:10:57 +000025767case "$ac_dir" in
25768.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25769*)
Martin v. Löwis11437992002-04-12 09:54:03 +000025770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Martin v. Löwiseba40652007-08-30 20:10:57 +000025771 # A ".." for each directory in $ac_dir_suffix.
25772 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25773 case $ac_top_builddir_sub in
25774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25776 esac ;;
25777esac
25778ac_abs_top_builddir=$ac_pwd
25779ac_abs_builddir=$ac_pwd$ac_dir_suffix
25780# for backward compatibility:
25781ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:03 +000025782
25783case $srcdir in
Martin v. Löwiseba40652007-08-30 20:10:57 +000025784 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:03 +000025785 ac_srcdir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025786 ac_top_srcdir=$ac_top_builddir_sub
25787 ac_abs_top_srcdir=$ac_pwd ;;
25788 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:03 +000025789 ac_srcdir=$srcdir$ac_dir_suffix;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025790 ac_top_srcdir=$srcdir
25791 ac_abs_top_srcdir=$srcdir ;;
25792 *) # Relative name.
25793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25794 ac_top_srcdir=$ac_top_build_prefix$srcdir
25795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000025796esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000025797ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:23 +000025798
Martin v. Löwis11437992002-04-12 09:54:03 +000025799
Martin v. Löwiseba40652007-08-30 20:10:57 +000025800 case $ac_mode in
25801 :F)
25802 #
25803 # CONFIG_FILE
25804 #
Martin v. Löwis11437992002-04-12 09:54:03 +000025805
25806 case $INSTALL in
25807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025808 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000025809 esac
Brett Cannon19fab762007-06-02 03:02:29 +000025810_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000025811
25812cat >>$CONFIG_STATUS <<\_ACEOF
25813# If the template does not know about datarootdir, expand it.
25814# FIXME: This hack should be removed a few years after 2.60.
25815ac_datarootdir_hack=; ac_datarootdir_seen=
25816
25817case `sed -n '/datarootdir/ {
25818 p
25819 q
25820}
25821/@datadir@/p
25822/@docdir@/p
25823/@infodir@/p
25824/@localedir@/p
25825/@mandir@/p
25826' $ac_file_inputs` in
25827*datarootdir*) ac_datarootdir_seen=yes;;
25828*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25829 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25830echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25831_ACEOF
25832cat >>$CONFIG_STATUS <<_ACEOF
25833 ac_datarootdir_hack='
25834 s&@datadir@&$datadir&g
25835 s&@docdir@&$docdir&g
25836 s&@infodir@&$infodir&g
25837 s&@localedir@&$localedir&g
25838 s&@mandir@&$mandir&g
25839 s&\\\${datarootdir}&$datarootdir&g' ;;
25840esac
25841_ACEOF
25842
25843# Neutralize VPATH when `$srcdir' = `.'.
25844# Shell code in configure.ac might set extrasub.
25845# FIXME: do we really want to maintain this feature?
Brett Cannon19fab762007-06-02 03:02:29 +000025846cat >>$CONFIG_STATUS <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025847 sed "$ac_vpsub
25848$extrasub
25849_ACEOF
25850cat >>$CONFIG_STATUS <<\_ACEOF
25851:t
25852/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Martin v. Löwiseba40652007-08-30 20:10:57 +000025853s&@configure_input@&$configure_input&;t t
25854s&@top_builddir@&$ac_top_builddir_sub&;t t
25855s&@srcdir@&$ac_srcdir&;t t
25856s&@abs_srcdir@&$ac_abs_srcdir&;t t
25857s&@top_srcdir@&$ac_top_srcdir&;t t
25858s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25859s&@builddir@&$ac_builddir&;t t
25860s&@abs_builddir@&$ac_abs_builddir&;t t
25861s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25862s&@INSTALL@&$ac_INSTALL&;t t
25863$ac_datarootdir_hack
25864" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025865
Martin v. Löwiseba40652007-08-30 20:10:57 +000025866test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25867 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25868 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25869 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25870which seems to be undefined. Please make sure it is defined." >&5
25871echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25872which seems to be undefined. Please make sure it is defined." >&2;}
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025873
Martin v. Löwiseba40652007-08-30 20:10:57 +000025874 rm -f "$tmp/stdin"
Martin v. Löwis11437992002-04-12 09:54:03 +000025875 case $ac_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +000025876 -) cat "$tmp/out"; rm -f "$tmp/out";;
25877 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025878 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000025879 ;;
25880 :H)
25881 #
25882 # CONFIG_HEADER
25883 #
Martin v. Löwis11437992002-04-12 09:54:03 +000025884_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025885
Martin v. Löwiseba40652007-08-30 20:10:57 +000025886# Transform confdefs.h into a sed script `conftest.defines', that
25887# substitutes the proper values into config.h.in to produce config.h.
25888rm -f conftest.defines conftest.tail
25889# First, append a space to every undef/define line, to ease matching.
25890echo 's/$/ /' >conftest.defines
25891# Then, protect against being on the right side of a sed subst, or in
25892# an unquoted here document, in config.status. If some macros were
25893# called several times there might be several #defines for the same
25894# symbol, which is useless. But do not sort them, since the last
25895# AC_DEFINE must be honored.
25896ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25897# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25898# NAME is the cpp macro being defined, VALUE is the value it is being given.
25899# PARAMS is the parameter list in the macro definition--in most cases, it's
25900# just an empty string.
25901ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25902ac_dB='\\)[ (].*,\\1define\\2'
25903ac_dC=' '
25904ac_dD=' ,'
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025905
Martin v. Löwiseba40652007-08-30 20:10:57 +000025906uniq confdefs.h |
25907 sed -n '
25908 t rset
25909 :rset
25910 s/^[ ]*#[ ]*define[ ][ ]*//
25911 t ok
25912 d
25913 :ok
25914 s/[\\&,]/\\&/g
25915 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25916 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25917 ' >>conftest.defines
25918
25919# Remove the space that was appended to ease matching.
25920# Then replace #undef with comments. This is necessary, for
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025921# example, in the case of _POSIX_SOURCE, which is predefined and required
25922# on some systems where configure will not decide to define it.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025923# (The regexp can be short, since the line contains either #define or #undef.)
25924echo 's/ $//
25925s,^[ #]*u.*,/* & */,' >>conftest.defines
Skip Montanaro89e975f2007-08-22 19:05:21 +000025926
Martin v. Löwiseba40652007-08-30 20:10:57 +000025927# Break up conftest.defines:
25928ac_max_sed_lines=50
25929
25930# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25931# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25932# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25933# et cetera.
25934ac_in='$ac_file_inputs'
25935ac_out='"$tmp/out1"'
25936ac_nxt='"$tmp/out2"'
25937
25938while :
Skip Montanaro89e975f2007-08-22 19:05:21 +000025939do
Martin v. Löwiseba40652007-08-30 20:10:57 +000025940 # Write a here document:
25941 cat >>$CONFIG_STATUS <<_ACEOF
25942 # First, check the format of the line:
25943 cat >"\$tmp/defines.sed" <<\\CEOF
25944/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25945/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25946b
25947:def
25948_ACEOF
25949 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Jack Jansendd19cf82001-12-06 22:36:17 +000025950 echo 'CEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000025951 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25952 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25953 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25954 grep . conftest.tail >/dev/null || break
Martin v. Löwis11437992002-04-12 09:54:03 +000025955 rm -f conftest.defines
25956 mv conftest.tail conftest.defines
Jack Jansendd19cf82001-12-06 22:36:17 +000025957done
Martin v. Löwiseba40652007-08-30 20:10:57 +000025958rm -f conftest.defines conftest.tail
Jack Jansendd19cf82001-12-06 22:36:17 +000025959
Martin v. Löwiseba40652007-08-30 20:10:57 +000025960echo "ac_result=$ac_in" >>$CONFIG_STATUS
Martin v. Löwis11437992002-04-12 09:54:03 +000025961cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025962 if test x"$ac_file" != x-; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000025963 echo "/* $configure_input */" >"$tmp/config.h"
25964 cat "$ac_result" >>"$tmp/config.h"
25965 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Martin v. Löwis11437992002-04-12 09:54:03 +000025966 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25967echo "$as_me: $ac_file is unchanged" >&6;}
25968 else
Martin v. Löwis11437992002-04-12 09:54:03 +000025969 rm -f $ac_file
Martin v. Löwiseba40652007-08-30 20:10:57 +000025970 mv "$tmp/config.h" $ac_file
Martin v. Löwis11437992002-04-12 09:54:03 +000025971 fi
25972 else
Martin v. Löwiseba40652007-08-30 20:10:57 +000025973 echo "/* $configure_input */"
25974 cat "$ac_result"
Martin v. Löwis11437992002-04-12 09:54:03 +000025975 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025976 rm -f "$tmp/out12"
25977 ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +000025978
Martin v. Löwiseba40652007-08-30 20:10:57 +000025979
25980 esac
25981
25982done # for ac_tag
25983
Guido van Rossum627b2d71993-12-24 10:39:16 +000025984
Martin v. Löwis11437992002-04-12 09:54:03 +000025985{ (exit 0); exit 0; }
25986_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025987chmod +x $CONFIG_STATUS
Martin v. Löwis11437992002-04-12 09:54:03 +000025988ac_clean_files=$ac_clean_files_save
25989
25990
25991# configure is writing to config.log, and then calls config.status.
25992# config.status does its own redirection, appending to config.log.
25993# Unfortunately, on DOS this fails, as config.log is still kept open
25994# by configure, so config.status won't be able to write to it; its
25995# output is simply discarded. So we exec the FD to /dev/null,
25996# effectively closing config.log, so it can be properly (re)opened and
25997# appended to by config.status. When coming back to configure, we
25998# need to make the FD available again.
25999if test "$no_create" != yes; then
26000 ac_cs_success=:
Skip Montanaro6dead952003-09-25 14:50:04 +000026001 ac_config_status_args=
26002 test "$silent" = yes &&
26003 ac_config_status_args="$ac_config_status_args --quiet"
Martin v. Löwis11437992002-04-12 09:54:03 +000026004 exec 5>/dev/null
Skip Montanaro6dead952003-09-25 14:50:04 +000026005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Martin v. Löwis11437992002-04-12 09:54:03 +000026006 exec 5>>config.log
26007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26008 # would make configure fail if this is the last instruction.
26009 $ac_cs_success || { (exit 1); exit 1; }
26010fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000026011
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000026012
Martin v. Löwisf7afe952006-04-14 15:16:15 +000026013echo "creating Modules/Setup"
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000026014if test ! -f Modules/Setup
26015then
26016 cp $srcdir/Modules/Setup.dist Modules/Setup
26017fi
26018
Martin v. Löwisf7afe952006-04-14 15:16:15 +000026019echo "creating Modules/Setup.local"
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000026020if test ! -f Modules/Setup.local
26021then
26022 echo "# Edit this file for local setup changes" >Modules/Setup.local
26023fi
26024
26025echo "creating Makefile"
26026$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26027 -s Modules Modules/Setup.config \
Neil Schemenauerf8b71c52001-04-21 17:41:16 +000026028 Modules/Setup.local Modules/Setup
Skip Montanaro89e975f2007-08-22 19:05:21 +000026029
26030case $ac_sys_system in
26031BeOS)
26032 { echo "$as_me:$LINENO: WARNING:
26033
26034 Support for BeOS is deprecated as of Python 2.6.
26035 See PEP 11 for the gory details.
26036 " >&5
26037echo "$as_me: WARNING:
26038
26039 Support for BeOS is deprecated as of Python 2.6.
26040 See PEP 11 for the gory details.
26041 " >&2;}
26042 ;;
26043*) ;;
26044esac
26045
Neil Schemenauerc761fc82001-02-19 04:50:49 +000026046mv config.c Modules