Debian Codegraph @

cpython27/configure

raw symbols SCIP
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for python 2.7.
5 #
6 # Report bugs to <https://bugs.python.org/>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205 else
206 as_have_required=no
207 fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210 else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 do
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi; }
238 IFS=$as_save_IFS
239
240
241 if test "x$CONFIG_SHELL" != x; then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell [email protected] and
271 $0: https://bugs.python.org/ about your system, including
272 $0: any error possibly output before this message. Then
273 $0: install a modern shell, or manually run the script
274 $0: under such a shell if you do have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='python'
583 PACKAGE_TARNAME='python'
584 PACKAGE_VERSION='2.7'
585 PACKAGE_STRING='python 2.7'
586 PACKAGE_BUGREPORT='https://bugs.python.org/'
587 PACKAGE_URL=''
588
589 ac_unique_file="Include/object.h"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='LTLIBOBJS
627 ENSUREPIP
628 SRCDIRS
629 THREADHEADERS
630 UNICODE_OBJS
631 LIBC
632 LIBM
633 HAVE_GETHOSTBYNAME
634 HAVE_GETHOSTBYNAME_R
635 HAVE_GETHOSTBYNAME_R_3_ARG
636 HAVE_GETHOSTBYNAME_R_5_ARG
637 HAVE_GETHOSTBYNAME_R_6_ARG
638 LIBOBJS
639 TRUE
640 MACHDEP_OBJS
641 DYNLOADFILE
642 DLINCLDIR
643 THREADOBJ
644 LDLAST
645 USE_THREAD_MODULE
646 SIGNAL_OBJS
647 USE_SIGNAL_MODULE
648 TCLTK_LIBS
649 TCLTK_INCLUDES
650 LIBFFI_INCLUDEDIR
651 PKG_CONFIG_LIBDIR
652 PKG_CONFIG_PATH
653 PKG_CONFIG
654 SHLIBS
655 CFLAGSFORSHARED
656 LINKFORSHARED
657 CCSHARED
658 BLDSHARED
659 LDCXXSHARED
660 LDSHARED
661 SO
662 LIBTOOL_CRUFT
663 OTHER_LIBTOOL_OPT
664 LLVM_PROF_FOUND
665 target_os
666 target_vendor
667 target_cpu
668 target
669 LLVM_PROFDATA
670 LLVM_PROF_ERR
671 LLVM_PROF_FILE
672 LLVM_PROF_MERGER
673 PGO_PROF_USE_FLAG
674 PGO_PROF_GEN_FLAG
675 LTOFLAGS
676 DEF_MAKE_RULE
677 DEF_MAKE_ALL_RULE
678 UNIVERSAL_ARCH_FLAGS
679 BASECFLAGS
680 OPT
681 LN
682 MKDIR_P
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 HAS_GIT
687 GITBRANCH
688 GITTAG
689 GITVERSION
690 ARFLAGS
691 ac_ct_AR
692 AR
693 RANLIB
694 GNULD
695 LINKCC
696 RUNSHARED
697 INSTSONAME
698 LDLIBRARYDIR
699 BLDLIBRARY
700 DLLLIBRARY
701 LDLIBRARY
702 LIBRARY
703 BUILDEXEEXT
704 EGREP
705 GREP
706 CPP
707 MULTIARCH
708 ac_ct_CXX
709 MAINCC
710 CXX
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 EXPORT_MACOSX_DEPLOYMENT_TARGET
719 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
720 EXTRAMACHDEPPATH
721 EXTRAPLATDIR
722 PLATDIR
723 SGI_ABI
724 _PYTHON_HOST_PLATFORM
725 MACHDEP
726 FRAMEWORKINSTALLAPPSPREFIX
727 FRAMEWORKUNIXTOOLSPREFIX
728 FRAMEWORKALTINSTALLLAST
729 FRAMEWORKALTINSTALLFIRST
730 FRAMEWORKINSTALLLAST
731 FRAMEWORKINSTALLFIRST
732 PYTHONFRAMEWORKINSTALLDIR
733 PYTHONFRAMEWORKPREFIX
734 PYTHONFRAMEWORKDIR
735 PYTHONFRAMEWORKIDENTIFIER
736 PYTHONFRAMEWORK
737 LIPO_32BIT_FLAGS
738 ARCH_RUN_32BIT
739 UNIVERSALSDK
740 CONFIG_ARGS
741 SOVERSION
742 VERSION
743 PYTHON_FOR_BUILD
744 PYTHON_FOR_REGEN
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_universalsdk
795 with_universal_archs
796 with_framework_name
797 enable_framework
798 with_gcc
799 with_icc
800 with_cxx_main
801 with_suffix
802 enable_shared
803 enable_profiling
804 with_pydebug
805 enable_optimizations
806 with_lto
807 enable_toolbox_glue
808 with_libs
809 with_system_expat
810 with_system_ffi
811 with_tcltk_includes
812 with_tcltk_libs
813 with_dbmliborder
814 with_signal_module
815 with_dec_threads
816 with_threads
817 with_thread
818 with_pth
819 enable_ipv6
820 with_doc_strings
821 with_tsc
822 with_pymalloc
823 with_valgrind
824 with_wctype_functions
825 with_fpectl
826 with_libm
827 with_libc
828 enable_big_digits
829 enable_unicode
830 with_computed_gotos
831 with_ensurepip
832 '
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CPP
842 PKG_CONFIG
843 PKG_CONFIG_PATH
844 PKG_CONFIG_LIBDIR'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
904 fi
905
906 case $ac_option in
907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *=) ac_optarg= ;;
909 *) ac_optarg=yes ;;
910 esac
911
912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
917
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
922
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
927
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
937
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
942
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
975
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1011
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1016
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1046
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1120
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1273 do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385 \`configure' configures python 2.7 to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 [PREFIX]
1410
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
1438 _ACEOF
1439
1440 cat <<\_ACEOF
1441
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 --target=TARGET configure for building compilers for TARGET [HOST]
1446 _ACEOF
1447 fi
1448
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of python 2.7:";;
1452 esac
1453 cat <<\_ACEOF
1454
1455 Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --enable-universalsdk[=SDKDIR]
1460 Build fat binary against Mac OS X SDK
1461 --enable-framework[=INSTALLDIR]
1462 Build (MacOSX|Darwin) framework
1463 --enable-shared disable/enable building shared python library
1464 --enable-profiling enable C-level code profiling
1465 --enable-optimizations Enable expensive optimizations (PGO, maybe LTO,
1466 etc). Disabled by default.
1467 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1468 --enable-ipv6 Enable ipv6 (with ipv4) support
1469 --disable-ipv6 Disable ipv6 support
1470 --enable-big-digits[=BITS]
1471 use big digits for Python longs [[BITS=30]]
1472 --enable-unicode[=ucs[24]]
1473 Enable Unicode strings (default is ucs2)
1474
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-universal-archs=ARCH
1479 select architectures for universal build ("32-bit",
1480 "64-bit", "3-way", "intel", "intel-32", "intel-64",
1481 or "all")
1482 --with-framework-name=FRAMEWORK
1483 specify an alternate name of the framework built
1484 with --enable-framework
1485 --without-gcc never use gcc
1486 --with-icc build with icc
1487 --with-cxx-main=<compiler>
1488 compile main() and link python executable with C++
1489 compiler
1490 --with-suffix=.exe set executable suffix
1491 --with-pydebug build with Py_DEBUG defined
1492 --with-lto Enable Link Time Optimization in PGO builds.
1493 Disabled by default.
1494 --with-libs='lib1 ...' link against additional libs
1495 --with-system-expat build pyexpat module using an installed expat
1496 library
1497 --with-system-ffi build _ctypes module using an installed ffi library
1498 --with-tcltk-includes='-I...'
1499 override search for Tcl and Tk include files
1500 --with-tcltk-libs='-L...'
1501 override search for Tcl and Tk libs
1502 --with-dbmliborder=db1:db2:...
1503 order to check db backends for dbm. Valid value is a
1504 colon separated string with the backend names
1505 `ndbm', `gdbm' and `bdb'.
1506 --with-signal-module disable/enable signal module
1507 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1508 --with(out)-threads[=DIRECTORY]
1509 disable/enable thread support
1510 --with(out)-thread[=DIRECTORY]
1511 deprecated; use --with(out)-threads
1512 --with-pth use GNU pth threading libraries
1513 --with(out)-doc-strings disable/enable documentation strings
1514 --with(out)-tsc enable/disable timestamp counter profile
1515 --with(out)-pymalloc disable/enable specialized mallocs
1516 --with-valgrind Enable Valgrind support
1517 --with-wctype-functions use wctype.h functions
1518 --with-fpectl enable SIGFPE catching
1519 --with-libm=STRING math library
1520 --with-libc=STRING C library
1521 --with(out)-computed-gotos
1522 Use computed gotos in evaluation loop (enabled by
1523 default on supported compilers)
1524 --with(out)-ensurepip=[=OPTION]
1525 "install" or "upgrade" using bundled pip, default is
1526 "no"
1527
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 CPP C preprocessor
1537 PKG_CONFIG path to pkg-config utility
1538 PKG_CONFIG_PATH
1539 directories to add to pkg-config's search path
1540 PKG_CONFIG_LIBDIR
1541 path overriding pkg-config's built-in search path
1542
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1545
1546 Report bugs to <https://bugs.python.org/>.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
1557 ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1599 else
1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1603 done
1604 fi
1605
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608 cat <<\_ACEOF
1609 python configure 2.7
1610 generated by GNU Autoconf 2.69
1611
1612 Copyright (C) 2012 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1615 _ACEOF
1616 exit
1617 fi
1618
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1622
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_compile
1660
1661 # ac_fn_c_try_cpp LINENO
1662 # ----------------------
1663 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_cpp ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_cpp conftest.$ac_ext"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } > conftest.i && {
1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 }; then :
1686 ac_retval=0
1687 else
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692 fi
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_cpp
1697
1698 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1701 # the include files in INCLUDES and setting the cache variable VAR
1702 # accordingly.
1703 ac_fn_c_check_header_mongrel ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if eval \${$3+:} false; then :
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1711 fi
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 else
1716 # Is the header compilable?
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1718 $as_echo_n "checking $2 usability... " >&6; }
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 $4
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_compile "$LINENO"; then :
1725 ac_header_compiler=yes
1726 else
1727 ac_header_compiler=no
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1731 $as_echo "$ac_header_compiler" >&6; }
1732
1733 # Is the header present?
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1735 $as_echo_n "checking $2 presence... " >&6; }
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_cpp "$LINENO"; then :
1741 ac_header_preproc=yes
1742 else
1743 ac_header_preproc=no
1744 fi
1745 rm -f conftest.err conftest.i conftest.$ac_ext
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1747 $as_echo "$ac_header_preproc" >&6; }
1748
1749 # So? What about this header?
1750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1751 yes:no: )
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1753 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 ;;
1757 no:yes:* )
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1759 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1761 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1763 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1765 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1767 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1768 ( $as_echo "## --------------------------------------- ##
1769 ## Report this to https://bugs.python.org/ ##
1770 ## --------------------------------------- ##"
1771 ) | sed "s/^/$as_me: WARNING: /" >&2
1772 ;;
1773 esac
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 eval "$3=\$ac_header_compiler"
1780 fi
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 fi
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_header_mongrel
1788
1789 # ac_fn_c_try_run LINENO
1790 # ----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792 # that executables *can* be run.
1793 ac_fn_c_try_run ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1814 ac_status=$?
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=$ac_status
1824 fi
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_run
1830
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 $4
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_header_compile
1861
1862 # ac_fn_c_try_link LINENO
1863 # -----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_c_try_link ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest$ac_exeext
1869 if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest$ac_exeext && {
1888 test "$cross_compiling" = yes ||
1889 test -x conftest$ac_exeext
1890 }; then :
1891 ac_retval=0
1892 else
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=1
1897 fi
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900 # interfere with the next link command; also delete a directory that is
1901 # left behind by Apple's compiler. We do this before executing the actions.
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1905
1906 } # ac_fn_c_try_link
1907
1908 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1909 # -------------------------------------------
1910 # Tests whether TYPE exists after having included INCLUDES, setting cache
1911 # variable VAR accordingly.
1912 ac_fn_c_check_type ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1919 else
1920 eval "$3=no"
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 $4
1924 int
1925 main ()
1926 {
1927 if (sizeof ($2))
1928 return 0;
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $4
1937 int
1938 main ()
1939 {
1940 if (sizeof (($2)))
1941 return 0;
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947
1948 else
1949 eval "$3=yes"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 fi
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960 } # ac_fn_c_check_type
1961
1962 # ac_fn_c_find_uintX_t LINENO BITS VAR
1963 # ------------------------------------
1964 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1965 # accordingly.
1966 ac_fn_c_find_uintX_t ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1970 $as_echo_n "checking for uint$2_t... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 eval "$3=no"
1975 # Order is important - never check a type that is potentially smaller
1976 # than half of the expected target width.
1977 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1978 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $ac_includes_default
1982 int
1983 main ()
1984 {
1985 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1986 test_array [0] = 0;
1987 return test_array [0];
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 case $ac_type in #(
1995 uint$2_t) :
1996 eval "$3=yes" ;; #(
1997 *) :
1998 eval "$3=\$ac_type" ;;
1999 esac
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 if eval test \"x\$"$3"\" = x"no"; then :
2003
2004 else
2005 break
2006 fi
2007 done
2008 fi
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014 } # ac_fn_c_find_uintX_t
2015
2016 # ac_fn_c_find_intX_t LINENO BITS VAR
2017 # -----------------------------------
2018 # Finds a signed integer type with width BITS, setting cache variable VAR
2019 # accordingly.
2020 ac_fn_c_find_intX_t ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2024 $as_echo_n "checking for int$2_t... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 eval "$3=no"
2029 # Order is important - never check a type that is potentially smaller
2030 # than half of the expected target width.
2031 for ac_type in int$2_t 'int' 'long int' \
2032 'long long int' 'short int' 'signed char'; do
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $ac_includes_default
2036 enum { N = $2 / 2 - 1 };
2037 int
2038 main ()
2039 {
2040 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2041 test_array [0] = 0;
2042 return test_array [0];
2043
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $ac_includes_default
2052 enum { N = $2 / 2 - 1 };
2053 int
2054 main ()
2055 {
2056 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2057 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2058 test_array [0] = 0;
2059 return test_array [0];
2060
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066
2067 else
2068 case $ac_type in #(
2069 int$2_t) :
2070 eval "$3=yes" ;; #(
2071 *) :
2072 eval "$3=\$ac_type" ;;
2073 esac
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 if eval test \"x\$"$3"\" = x"no"; then :
2079
2080 else
2081 break
2082 fi
2083 done
2084 fi
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089
2090 } # ac_fn_c_find_intX_t
2091
2092 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2093 # --------------------------------------------
2094 # Tries to find the compile-time value of EXPR in a program that includes
2095 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2096 # computed
2097 ac_fn_c_compute_int ()
2098 {
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if test "$cross_compiling" = yes; then
2101 # Depending upon the size, compute the lo and hi bounds.
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 $4
2105 int
2106 main ()
2107 {
2108 static int test_array [1 - 2 * !(($2) >= 0)];
2109 test_array [0] = 0;
2110 return test_array [0];
2111
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_lo=0 ac_mid=0
2118 while :; do
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2121 $4
2122 int
2123 main ()
2124 {
2125 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 test_array [0] = 0;
2127 return test_array [0];
2128
2129 ;
2130 return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=$ac_mid; break
2135 else
2136 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2137 if test $ac_lo -le $ac_mid; then
2138 ac_lo= ac_hi=
2139 break
2140 fi
2141 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 done
2145 else
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2148 $4
2149 int
2150 main ()
2151 {
2152 static int test_array [1 - 2 * !(($2) < 0)];
2153 test_array [0] = 0;
2154 return test_array [0];
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_hi=-1 ac_mid=-1
2162 while :; do
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 $4
2166 int
2167 main ()
2168 {
2169 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2170 test_array [0] = 0;
2171 return test_array [0];
2172
2173 ;
2174 return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_lo=$ac_mid; break
2179 else
2180 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2181 if test $ac_mid -le $ac_hi; then
2182 ac_lo= ac_hi=
2183 break
2184 fi
2185 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2186 fi
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 done
2189 else
2190 ac_lo= ac_hi=
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 fi
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 # Binary search between lo and hi bounds.
2196 while test "x$ac_lo" != "x$ac_hi"; do
2197 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 int
2202 main ()
2203 {
2204 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2205 test_array [0] = 0;
2206 return test_array [0];
2207
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid
2214 else
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 done
2219 case $ac_lo in #((
2220 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2221 '') ac_retval=1 ;;
2222 esac
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 static long int longval () { return $2; }
2228 static unsigned long int ulongval () { return $2; }
2229 #include <stdio.h>
2230 #include <stdlib.h>
2231 int
2232 main ()
2233 {
2234
2235 FILE *f = fopen ("conftest.val", "w");
2236 if (! f)
2237 return 1;
2238 if (($2) < 0)
2239 {
2240 long int i = longval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%ld", i);
2244 }
2245 else
2246 {
2247 unsigned long int i = ulongval ();
2248 if (i != ($2))
2249 return 1;
2250 fprintf (f, "%lu", i);
2251 }
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2255
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2262 else
2263 ac_retval=1
2264 fi
2265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2267 rm -f conftest.val
2268
2269 fi
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 as_fn_set_status $ac_retval
2272
2273 } # ac_fn_c_compute_int
2274
2275 # ac_fn_c_check_func LINENO FUNC VAR
2276 # ----------------------------------
2277 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2278 ac_fn_c_check_func ()
2279 {
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if eval \${$3+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2290 #define $2 innocuous_$2
2291
2292 /* System header to define __stub macros and hopefully few prototypes,
2293 which can conflict with char $2 (); below.
2294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2295 <limits.h> exists even on freestanding compilers. */
2296
2297 #ifdef __STDC__
2298 # include <limits.h>
2299 #else
2300 # include <assert.h>
2301 #endif
2302
2303 #undef $2
2304
2305 /* Override any GCC internal prototype to avoid an error.
2306 Use char because int might match the return type of a GCC
2307 builtin and then its argument prototype would still apply. */
2308 #ifdef __cplusplus
2309 extern "C"
2310 #endif
2311 char $2 ();
2312 /* The GNU C library defines this for functions which it implements
2313 to always fail with ENOSYS. Some functions are actually named
2314 something starting with __ and the normal name is an alias. */
2315 #if defined __stub_$2 || defined __stub___$2
2316 choke me
2317 #endif
2318
2319 int
2320 main ()
2321 {
2322 return $2 ();
2323 ;
2324 return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_c_try_link "$LINENO"; then :
2328 eval "$3=yes"
2329 else
2330 eval "$3=no"
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext \
2333 conftest$ac_exeext conftest.$ac_ext
2334 fi
2335 eval ac_res=\$$3
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2339
2340 } # ac_fn_c_check_func
2341
2342 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2343 # ----------------------------------------------------
2344 # Tries to find if the field MEMBER exists in type AGGR, after including
2345 # INCLUDES, setting cache variable VAR accordingly.
2346 ac_fn_c_check_member ()
2347 {
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2350 $as_echo_n "checking for $2.$3... " >&6; }
2351 if eval \${$4+:} false; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2356 $5
2357 int
2358 main ()
2359 {
2360 static $2 ac_aggr;
2361 if (ac_aggr.$3)
2362 return 0;
2363 ;
2364 return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368 eval "$4=yes"
2369 else
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2372 $5
2373 int
2374 main ()
2375 {
2376 static $2 ac_aggr;
2377 if (sizeof ac_aggr.$3)
2378 return 0;
2379 ;
2380 return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_c_try_compile "$LINENO"; then :
2384 eval "$4=yes"
2385 else
2386 eval "$4=no"
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 fi
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 fi
2392 eval ac_res=\$$4
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394 $as_echo "$ac_res" >&6; }
2395 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2396
2397 } # ac_fn_c_check_member
2398
2399 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2400 # ---------------------------------------------
2401 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2402 # accordingly.
2403 ac_fn_c_check_decl ()
2404 {
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 as_decl_name=`echo $2|sed 's/ *(.*//'`
2407 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2409 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2410 if eval \${$3+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $4
2416 int
2417 main ()
2418 {
2419 #ifndef $as_decl_name
2420 #ifdef __cplusplus
2421 (void) $as_decl_use;
2422 #else
2423 (void) $as_decl_name;
2424 #endif
2425 #endif
2426
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 eval "$3=yes"
2433 else
2434 eval "$3=no"
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 fi
2438 eval ac_res=\$$3
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442
2443 } # ac_fn_c_check_decl
2444 cat >config.log <<_ACEOF
2445 This file contains any messages produced by compilers while
2446 running configure, to aid debugging if configure makes a mistake.
2447
2448 It was created by python $as_me 2.7, which was
2449 generated by GNU Autoconf 2.69. Invocation command line was
2450
2451 $ $0 $@
2452
2453 _ACEOF
2454 exec 5>>config.log
2455 {
2456 cat <<_ASUNAME
2457 ## --------- ##
2458 ## Platform. ##
2459 ## --------- ##
2460
2461 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2462 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2463 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2464 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2465 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2466
2467 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2468 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2469
2470 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2471 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2472 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2473 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2474 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2475 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2476 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2477
2478 _ASUNAME
2479
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 $as_echo "PATH: $as_dir"
2486 done
2487 IFS=$as_save_IFS
2488
2489 } >&5
2490
2491 cat >&5 <<_ACEOF
2492
2493
2494 ## ----------- ##
2495 ## Core tests. ##
2496 ## ----------- ##
2497
2498 _ACEOF
2499
2500
2501 # Keep a trace of the command line.
2502 # Strip out --no-create and --no-recursion so they do not pile up.
2503 # Strip out --silent because we don't want to record it for future runs.
2504 # Also quote any args containing shell meta-characters.
2505 # Make two passes to allow for proper duplicate-argument suppression.
2506 ac_configure_args=
2507 ac_configure_args0=
2508 ac_configure_args1=
2509 ac_must_keep_next=false
2510 for ac_pass in 1 2
2511 do
2512 for ac_arg
2513 do
2514 case $ac_arg in
2515 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2517 | -silent | --silent | --silen | --sile | --sil)
2518 continue ;;
2519 *\'*)
2520 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2521 esac
2522 case $ac_pass in
2523 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2524 2)
2525 as_fn_append ac_configure_args1 " '$ac_arg'"
2526 if test $ac_must_keep_next = true; then
2527 ac_must_keep_next=false # Got value, back to normal.
2528 else
2529 case $ac_arg in
2530 *=* | --config-cache | -C | -disable-* | --disable-* \
2531 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2532 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2533 | -with-* | --with-* | -without-* | --without-* | --x)
2534 case "$ac_configure_args0 " in
2535 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2536 esac
2537 ;;
2538 -* ) ac_must_keep_next=true ;;
2539 esac
2540 fi
2541 as_fn_append ac_configure_args " '$ac_arg'"
2542 ;;
2543 esac
2544 done
2545 done
2546 { ac_configure_args0=; unset ac_configure_args0;}
2547 { ac_configure_args1=; unset ac_configure_args1;}
2548
2549 # When interrupted or exit'd, cleanup temporary files, and complete
2550 # config.log. We remove comments because anyway the quotes in there
2551 # would cause problems or look ugly.
2552 # WARNING: Use '\'' to represent an apostrophe within the trap.
2553 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2554 trap 'exit_status=$?
2555 # Save into config.log some information that might help in debugging.
2556 {
2557 echo
2558
2559 $as_echo "## ---------------- ##
2560 ## Cache variables. ##
2561 ## ---------------- ##"
2562 echo
2563 # The following way of writing the cache mishandles newlines in values,
2564 (
2565 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2566 eval ac_val=\$$ac_var
2567 case $ac_val in #(
2568 *${as_nl}*)
2569 case $ac_var in #(
2570 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2571 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2572 esac
2573 case $ac_var in #(
2574 _ | IFS | as_nl) ;; #(
2575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2576 *) { eval $ac_var=; unset $ac_var;} ;;
2577 esac ;;
2578 esac
2579 done
2580 (set) 2>&1 |
2581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2582 *${as_nl}ac_space=\ *)
2583 sed -n \
2584 "s/'\''/'\''\\\\'\'''\''/g;
2585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2586 ;; #(
2587 *)
2588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2589 ;;
2590 esac |
2591 sort
2592 )
2593 echo
2594
2595 $as_echo "## ----------------- ##
2596 ## Output variables. ##
2597 ## ----------------- ##"
2598 echo
2599 for ac_var in $ac_subst_vars
2600 do
2601 eval ac_val=\$$ac_var
2602 case $ac_val in
2603 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2604 esac
2605 $as_echo "$ac_var='\''$ac_val'\''"
2606 done | sort
2607 echo
2608
2609 if test -n "$ac_subst_files"; then
2610 $as_echo "## ------------------- ##
2611 ## File substitutions. ##
2612 ## ------------------- ##"
2613 echo
2614 for ac_var in $ac_subst_files
2615 do
2616 eval ac_val=\$$ac_var
2617 case $ac_val in
2618 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2619 esac
2620 $as_echo "$ac_var='\''$ac_val'\''"
2621 done | sort
2622 echo
2623 fi
2624
2625 if test -s confdefs.h; then
2626 $as_echo "## ----------- ##
2627 ## confdefs.h. ##
2628 ## ----------- ##"
2629 echo
2630 cat confdefs.h
2631 echo
2632 fi
2633 test "$ac_signal" != 0 &&
2634 $as_echo "$as_me: caught signal $ac_signal"
2635 $as_echo "$as_me: exit $exit_status"
2636 } >&5
2637 rm -f core *.core core.conftest.* &&
2638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2639 exit $exit_status
2640 ' 0
2641 for ac_signal in 1 2 13 15; do
2642 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2643 done
2644 ac_signal=0
2645
2646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2647 rm -f -r conftest* confdefs.h
2648
2649 $as_echo "/* confdefs.h */" > confdefs.h
2650
2651 # Predefined preprocessor variables.
2652
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_NAME "$PACKAGE_NAME"
2655 _ACEOF
2656
2657 cat >>confdefs.h <<_ACEOF
2658 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2659 _ACEOF
2660
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2663 _ACEOF
2664
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_STRING "$PACKAGE_STRING"
2667 _ACEOF
2668
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2671 _ACEOF
2672
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_URL "$PACKAGE_URL"
2675 _ACEOF
2676
2677
2678 # Let the site file select an alternate cache file if it wants to.
2679 # Prefer an explicitly selected file to automatically selected ones.
2680 ac_site_file1=NONE
2681 ac_site_file2=NONE
2682 if test -n "$CONFIG_SITE"; then
2683 # We do not want a PATH search for config.site.
2684 case $CONFIG_SITE in #((
2685 -*) ac_site_file1=./$CONFIG_SITE;;
2686 */*) ac_site_file1=$CONFIG_SITE;;
2687 *) ac_site_file1=./$CONFIG_SITE;;
2688 esac
2689 elif test "x$prefix" != xNONE; then
2690 ac_site_file1=$prefix/share/config.site
2691 ac_site_file2=$prefix/etc/config.site
2692 else
2693 ac_site_file1=$ac_default_prefix/share/config.site
2694 ac_site_file2=$ac_default_prefix/etc/config.site
2695 fi
2696 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2697 do
2698 test "x$ac_site_file" = xNONE && continue
2699 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2701 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2702 sed 's/^/| /' "$ac_site_file" >&5
2703 . "$ac_site_file" \
2704 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 as_fn_error $? "failed to load site script $ac_site_file
2707 See \`config.log' for more details" "$LINENO" 5; }
2708 fi
2709 done
2710
2711 if test -r "$cache_file"; then
2712 # Some versions of bash will fail to source /dev/null (special files
2713 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2714 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2716 $as_echo "$as_me: loading cache $cache_file" >&6;}
2717 case $cache_file in
2718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2719 *) . "./$cache_file";;
2720 esac
2721 fi
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2724 $as_echo "$as_me: creating cache $cache_file" >&6;}
2725 >$cache_file
2726 fi
2727
2728 # Check that the precious variables saved in the cache have kept the same
2729 # value.
2730 ac_cache_corrupted=false
2731 for ac_var in $ac_precious_vars; do
2732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2733 eval ac_new_set=\$ac_env_${ac_var}_set
2734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2735 eval ac_new_val=\$ac_env_${ac_var}_value
2736 case $ac_old_set,$ac_new_set in
2737 set,)
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2739 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2740 ac_cache_corrupted=: ;;
2741 ,set)
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2744 ac_cache_corrupted=: ;;
2745 ,);;
2746 *)
2747 if test "x$ac_old_val" != "x$ac_new_val"; then
2748 # differences in whitespace do not lead to failure.
2749 ac_old_val_w=`echo x $ac_old_val`
2750 ac_new_val_w=`echo x $ac_new_val`
2751 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2753 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2754 ac_cache_corrupted=:
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2757 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2758 eval $ac_var=\$ac_old_val
2759 fi
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2761 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2763 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2764 fi;;
2765 esac
2766 # Pass precious variables to config.status.
2767 if test "$ac_new_set" = set; then
2768 case $ac_new_val in
2769 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2770 *) ac_arg=$ac_var=$ac_new_val ;;
2771 esac
2772 case " $ac_configure_args " in
2773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2774 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2775 esac
2776 fi
2777 done
2778 if $ac_cache_corrupted; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2782 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2783 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2784 fi
2785 ## -------------------- ##
2786 ## Main body of script. ##
2787 ## -------------------- ##
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794
2795
2796
2797 ac_config_headers="$ac_config_headers pyconfig.h"
2798
2799
2800 ac_aux_dir=
2801 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2802 if test -f "$ac_dir/install-sh"; then
2803 ac_aux_dir=$ac_dir
2804 ac_install_sh="$ac_aux_dir/install-sh -c"
2805 break
2806 elif test -f "$ac_dir/install.sh"; then
2807 ac_aux_dir=$ac_dir
2808 ac_install_sh="$ac_aux_dir/install.sh -c"
2809 break
2810 elif test -f "$ac_dir/shtool"; then
2811 ac_aux_dir=$ac_dir
2812 ac_install_sh="$ac_aux_dir/shtool install -c"
2813 break
2814 fi
2815 done
2816 if test -z "$ac_aux_dir"; then
2817 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2818 fi
2819
2820 # These three variables are undocumented and unsupported,
2821 # and are intended to be withdrawn in a future Autoconf release.
2822 # They can cause serious problems if a builder's source tree is in a directory
2823 # whose full name contains unusual characters.
2824 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2825 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2826 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2827
2828
2829 # Make sure we can run config.sub.
2830 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2831 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2834 $as_echo_n "checking build system type... " >&6; }
2835 if ${ac_cv_build+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 ac_build_alias=$build_alias
2839 test "x$ac_build_alias" = x &&
2840 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2841 test "x$ac_build_alias" = x &&
2842 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2843 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2845
2846 fi
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2848 $as_echo "$ac_cv_build" >&6; }
2849 case $ac_cv_build in
2850 *-*-*) ;;
2851 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2852 esac
2853 build=$ac_cv_build
2854 ac_save_IFS=$IFS; IFS='-'
2855 set x $ac_cv_build
2856 shift
2857 build_cpu=$1
2858 build_vendor=$2
2859 shift; shift
2860 # Remember, the first character of IFS is used to create $*,
2861 # except with old shells:
2862 build_os=$*
2863 IFS=$ac_save_IFS
2864 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2865
2866
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2868 $as_echo_n "checking host system type... " >&6; }
2869 if ${ac_cv_host+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test "x$host_alias" = x; then
2873 ac_cv_host=$ac_cv_build
2874 else
2875 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2877 fi
2878
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2881 $as_echo "$ac_cv_host" >&6; }
2882 case $ac_cv_host in
2883 *-*-*) ;;
2884 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2885 esac
2886 host=$ac_cv_host
2887 ac_save_IFS=$IFS; IFS='-'
2888 set x $ac_cv_host
2889 shift
2890 host_cpu=$1
2891 host_vendor=$2
2892 shift; shift
2893 # Remember, the first character of IFS is used to create $*,
2894 # except with old shells:
2895 host_os=$*
2896 IFS=$ac_save_IFS
2897 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2898
2899
2900
2901
2902
2903 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2904 rm -f pybuilddir.txt
2905
2906 for ac_prog in python$PACKAGE_VERSION python3 python
2907 do
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$PYTHON_FOR_REGEN"; then
2916 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
2936 if test -n "$PYTHON_FOR_REGEN"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
2938 $as_echo "$PYTHON_FOR_REGEN" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945 test -n "$PYTHON_FOR_REGEN" && break
2946 done
2947 test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
2948
2949
2950
2951 if test "$cross_compiling" = yes; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2953 $as_echo_n "checking for python interpreter for cross build... " >&6; }
2954 if test -z "$PYTHON_FOR_BUILD"; then
2955 for interp in python$PACKAGE_VERSION python2 python; do
2956 which $interp >/dev/null 2>&1 || continue
2957 if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then
2958 break
2959 fi
2960 interp=
2961 done
2962 if test x$interp = x; then
2963 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2966 $as_echo "$interp" >&6; }
2967 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp
2968 fi
2969 elif test "$cross_compiling" = maybe; then
2970 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
2971 else
2972 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
2973 fi
2974
2975
2976
2977 if test "$prefix" != "/"; then
2978 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2979 fi
2980
2981
2982
2983
2984 # We don't use PACKAGE_ variables, and they cause conflicts
2985 # with other autoconf-based packages that include Python.h
2986 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2987 rm confdefs.h
2988 mv confdefs.h.new confdefs.h
2989
2990
2991 VERSION=2.7
2992
2993
2994 SOVERSION=1.0
2995
2996 # The later defininition of _XOPEN_SOURCE disables certain features
2997 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2998
2999 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3000
3001
3002 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3003 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3004 # them.
3005
3006 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3007
3008
3009 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3010 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3011 # them.
3012
3013 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
3014
3015
3016 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3017 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
3018
3019 $as_echo "#define _BSD_TYPES 1" >>confdefs.h
3020
3021
3022 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3023 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3024 # them.
3025
3026 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3027
3028
3029
3030 define_xopen_source=yes
3031
3032 # Arguments passed to configure.
3033
3034 CONFIG_ARGS="$ac_configure_args"
3035
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3037 $as_echo_n "checking for --enable-universalsdk... " >&6; }
3038 # Check whether --enable-universalsdk was given.
3039 if test "${enable_universalsdk+set}" = set; then :
3040 enableval=$enable_universalsdk;
3041 case $enableval in
3042 yes)
3043 # Locate the best usable SDK, see Mac/README for more
3044 # information
3045 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
3046 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
3047 then
3048 enableval=/Developer/SDKs/MacOSX10.4u.sdk
3049 if test ! -d "${enableval}"
3050 then
3051 enableval=/
3052 fi
3053 fi
3054 ;;
3055 esac
3056 case $enableval in
3057 no)
3058 UNIVERSALSDK=
3059 enable_universalsdk=
3060 ;;
3061 *)
3062 UNIVERSALSDK=$enableval
3063 if test ! -d "${UNIVERSALSDK}"
3064 then
3065 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
3066 fi
3067 ;;
3068 esac
3069
3070
3071 else
3072
3073 UNIVERSALSDK=
3074 enable_universalsdk=
3075
3076 fi
3077
3078 if test -n "${UNIVERSALSDK}"
3079 then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3081 $as_echo "${UNIVERSALSDK}" >&6; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088
3089 ARCH_RUN_32BIT=""
3090
3091 # For backward compatibility reasons we prefer to select '32-bit' if available,
3092 # otherwise use 'intel'
3093 UNIVERSAL_ARCHS="32-bit"
3094 if test "`uname -s`" = "Darwin"
3095 then
3096 if test -n "${UNIVERSALSDK}"
3097 then
3098 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
3099 then
3100 UNIVERSAL_ARCHS="intel"
3101 fi
3102 fi
3103 fi
3104
3105
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3107 $as_echo_n "checking for --with-universal-archs... " >&6; }
3108
3109 # Check whether --with-universal-archs was given.
3110 if test "${with_universal_archs+set}" = set; then :
3111 withval=$with_universal_archs;
3112 UNIVERSAL_ARCHS="$withval"
3113
3114 fi
3115
3116 if test -n "${UNIVERSALSDK}"
3117 then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3119 $as_echo "${UNIVERSAL_ARCHS}" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 # Check whether --with-framework-name was given.
3127 if test "${with_framework_name+set}" = set; then :
3128 withval=$with_framework_name;
3129 if test "${enable_framework}"; then
3130 :
3131 else
3132 as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5
3133 fi
3134 PYTHONFRAMEWORK=${withval}
3135 PYTHONFRAMEWORKDIR=${withval}.framework
3136 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3137
3138 else
3139
3140 PYTHONFRAMEWORK=Python
3141 PYTHONFRAMEWORKDIR=Python.framework
3142 PYTHONFRAMEWORKIDENTIFIER=org.python.python
3143
3144 fi
3145
3146 # Check whether --enable-framework was given.
3147 if test "${enable_framework+set}" = set; then :
3148 enableval=$enable_framework;
3149 case $enableval in
3150 yes)
3151 enableval=/Library/Frameworks
3152 esac
3153 case $enableval in
3154 no)
3155 PYTHONFRAMEWORK=
3156 PYTHONFRAMEWORKDIR=no-framework
3157 PYTHONFRAMEWORKPREFIX=
3158 PYTHONFRAMEWORKINSTALLDIR=
3159 FRAMEWORKINSTALLFIRST=
3160 FRAMEWORKINSTALLLAST=
3161 FRAMEWORKALTINSTALLFIRST=
3162 FRAMEWORKALTINSTALLLAST=
3163 if test "x${prefix}" = "xNONE"; then
3164 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3165 else
3166 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3167 fi
3168 enable_framework=
3169 ;;
3170 *)
3171 PYTHONFRAMEWORKPREFIX="${enableval}"
3172 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
3173 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
3174 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
3175 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3176 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
3177 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3178
3179 if test "x${prefix}" = "xNONE" ; then
3180 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3181
3182 else
3183 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3184 fi
3185
3186 case "${enableval}" in
3187 /System*)
3188 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3189 if test "${prefix}" = "NONE" ; then
3190 # See below
3191 FRAMEWORKUNIXTOOLSPREFIX="/usr"
3192 fi
3193 ;;
3194
3195 /Library*)
3196 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3197 ;;
3198
3199 */Library/Frameworks)
3200 MDIR="`dirname "${enableval}"`"
3201 MDIR="`dirname "${MDIR}"`"
3202 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3203
3204 if test "${prefix}" = "NONE"; then
3205 # User hasn't specified the
3206 # --prefix option, but wants to install
3207 # the framework in a non-default location,
3208 # ensure that the compatibility links get
3209 # installed relative to that prefix as well
3210 # instead of in /usr/local.
3211 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3212 fi
3213 ;;
3214
3215 *)
3216 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3217 ;;
3218 esac
3219
3220 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
3221
3222 # Add files for Mac specific code to the list of output
3223 # files:
3224 ac_config_files="$ac_config_files Mac/Makefile"
3225
3226 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
3227
3228 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
3229
3230 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3231
3232 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3233
3234 esac
3235
3236 else
3237
3238 PYTHONFRAMEWORK=
3239 PYTHONFRAMEWORKDIR=no-framework
3240 PYTHONFRAMEWORKPREFIX=
3241 PYTHONFRAMEWORKINSTALLDIR=
3242 FRAMEWORKINSTALLFIRST=
3243 FRAMEWORKINSTALLLAST=
3244 FRAMEWORKALTINSTALLFIRST=
3245 FRAMEWORKALTINSTALLLAST=
3246 if test "x${prefix}" = "xNONE" ; then
3247 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3248 else
3249 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3250 fi
3251 enable_framework=
3252
3253
3254 fi
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268 ##AC_ARG_WITH(dyld,
3269 ## AS_HELP_STRING([--with-dyld],
3270 ## [Use (OpenStep|Rhapsody) dynamic linker]))
3271 ##
3272 # Set name for machine-dependent library files
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3275 $as_echo_n "checking MACHDEP... " >&6; }
3276 if test -z "$MACHDEP"
3277 then
3278 # avoid using uname for cross builds
3279 if test "$cross_compiling" = yes; then
3280 # ac_sys_system and ac_sys_release are only used for setting
3281 # `define_xopen_source' in the case statement below. For the
3282 # current supported cross builds, this macro is not adjusted.
3283 case "$host" in
3284 *-*-linux*)
3285 ac_sys_system=Linux
3286 ;;
3287 *-*-cygwin*)
3288 ac_sys_system=Cygwin
3289 ;;
3290 *)
3291 # for now, limit cross builds to known configurations
3292 MACHDEP="unknown"
3293 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3294 esac
3295 ac_sys_release=
3296 else
3297 ac_sys_system=`uname -s`
3298 if test "$ac_sys_system" = "AIX" \
3299 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
3300 ac_sys_release=`uname -v`
3301 else
3302 ac_sys_release=`uname -r`
3303 fi
3304 fi
3305 ac_md_system=`echo $ac_sys_system |
3306 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3307 ac_md_release=`echo $ac_sys_release |
3308 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3309 MACHDEP="$ac_md_system$ac_md_release"
3310
3311 case $MACHDEP in
3312 linux*) MACHDEP="linux2";;
3313 cygwin*) MACHDEP="cygwin";;
3314 darwin*) MACHDEP="darwin";;
3315 atheos*) MACHDEP="atheos";;
3316 irix646) MACHDEP="irix6";;
3317 '') MACHDEP="unknown";;
3318 esac
3319 fi
3320
3321
3322 if test "$cross_compiling" = yes; then
3323 case "$host" in
3324 *-*-linux*)
3325 case "$host_cpu" in
3326 arm*)
3327 _host_cpu=arm
3328 ;;
3329 *)
3330 _host_cpu=$host_cpu
3331 esac
3332 ;;
3333 *-*-cygwin*)
3334 _host_cpu=
3335 ;;
3336 *)
3337 # for now, limit cross builds to known configurations
3338 MACHDEP="unknown"
3339 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3340 esac
3341 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3342 fi
3343
3344 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3345 # disable features if it is defined, without any means to access these
3346 # features as extensions. For these systems, we skip the definition of
3347 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
3348 # some feature, make sure there is no alternative way to access this
3349 # feature. Also, when using wildcards, make sure you have verified the
3350 # need for not defining _XOPEN_SOURCE on all systems matching the
3351 # wildcard, and that the wildcard does not include future systems
3352 # (which may remove their limitations).
3353 case $ac_sys_system/$ac_sys_release in
3354 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3355 # even though select is a POSIX function. Reported by J. Ribbens.
3356 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3357 # In addition, Stefan Krah confirms that issue #1244610 exists through
3358 # OpenBSD 4.6, but is fixed in 4.7.
3359 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
3360 define_xopen_source=no
3361 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3362 # also defined. This can be overridden by defining _BSD_SOURCE
3363 # As this has a different meaning on Linux, only define it on OpenBSD
3364
3365 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3366
3367 ;;
3368 OpenBSD/*)
3369 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3370 # also defined. This can be overridden by defining _BSD_SOURCE
3371 # As this has a different meaning on Linux, only define it on OpenBSD
3372
3373 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3374
3375 ;;
3376 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3377 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3378 # Marc Recht
3379 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
3380 define_xopen_source=no;;
3381 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3382 # request to enable features supported by the standard as a request
3383 # to disable features not supported by the standard. The best way
3384 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3385 # entirely and define __EXTENSIONS__ instead.
3386 SunOS/*)
3387 define_xopen_source=no;;
3388 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3389 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
3390 # Reconfirmed for 7.1.4 by Martin v. Loewis.
3391 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
3392 define_xopen_source=no;;
3393 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
3394 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
3395 SCO_SV/3.2)
3396 define_xopen_source=no;;
3397 # On FreeBSD 4, the math functions C89 does not cover are never defined
3398 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3399 FreeBSD/4.*)
3400 define_xopen_source=no;;
3401 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3402 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3403 # identifies itself as Darwin/7.*
3404 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3405 # disables platform specific features beyond repair.
3406 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3407 # has no effect, don't bother defining them
3408 Darwin/[6789].*)
3409 define_xopen_source=no;;
3410 Darwin/1[0-9].*)
3411 define_xopen_source=no;;
3412 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3413 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3414 # or has another value. By not (re)defining it, the defaults come in place.
3415 AIX/4)
3416 define_xopen_source=no;;
3417 AIX/5)
3418 if test `uname -r` -eq 1; then
3419 define_xopen_source=no
3420 fi
3421 ;;
3422 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3423 # defining NI_NUMERICHOST.
3424 QNX/6.3.2)
3425 define_xopen_source=no
3426 ;;
3427
3428 esac
3429
3430 if test $define_xopen_source = yes
3431 then
3432
3433 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3434
3435
3436 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3437 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3438 # several APIs are not declared. Since this is also needed in some
3439 # cases for HP-UX, we define it globally.
3440
3441 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3442
3443
3444
3445 $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3446
3447
3448 fi
3449
3450 #
3451 # SGI compilers allow the specification of the both the ABI and the
3452 # ISA on the command line. Depending on the values of these switches,
3453 # different and often incompatible code will be generated.
3454 #
3455 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3456 # thus supply support for various ABI/ISA combinations. The MACHDEP
3457 # variable is also adjusted.
3458 #
3459
3460 if test ! -z "$SGI_ABI"
3461 then
3462 CC="cc $SGI_ABI"
3463 LDFLAGS="$SGI_ABI $LDFLAGS"
3464 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3465 fi
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3467 $as_echo "$MACHDEP" >&6; }
3468
3469
3470 PLATDIR=plat-$MACHDEP
3471
3472 # And add extra plat-mac for darwin
3473
3474
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
3476 $as_echo_n "checking EXTRAPLATDIR... " >&6; }
3477 if test -z "$EXTRAPLATDIR"
3478 then
3479 case $MACHDEP in
3480 darwin)
3481 EXTRAPLATDIR="\$(PLATMACDIRS)"
3482 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
3483 ;;
3484 *)
3485 EXTRAPLATDIR=""
3486 EXTRAMACHDEPPATH=""
3487 ;;
3488 esac
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
3491 $as_echo "$EXTRAPLATDIR" >&6; }
3492
3493 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3494 # it may influence the way we can build extensions, so distutils
3495 # needs to check it
3496
3497
3498 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
3499 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
3500
3501 # checks for alternative programs
3502
3503 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3504 # for debug/optimization stuff. BASECFLAGS is for flags that are required
3505 # just to get things to compile and link. Users are free to override OPT
3506 # when running configure or make. The build should not break if they do.
3507 # BASECFLAGS should generally not be messed with, however.
3508
3509 # XXX shouldn't some/most/all of this code be merged with the stuff later
3510 # on that fiddles with OPT and BASECFLAGS?
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3512 $as_echo_n "checking for --without-gcc... " >&6; }
3513
3514 # Check whether --with-gcc was given.
3515 if test "${with_gcc+set}" = set; then :
3516 withval=$with_gcc;
3517 case $withval in
3518 no) CC=${CC:-cc}
3519 without_gcc=yes;;
3520 yes) CC=gcc
3521 without_gcc=no;;
3522 *) CC=$withval
3523 without_gcc=$withval;;
3524 esac
3525 else
3526
3527 case $ac_sys_system in
3528 AIX*) CC=${CC:-xlc_r}
3529 without_gcc=;;
3530 BeOS*)
3531 case $BE_HOST_CPU in
3532 ppc)
3533 CC=mwcc
3534 without_gcc=yes
3535 BASECFLAGS="$BASECFLAGS -export pragma"
3536 OPT="$OPT -O"
3537 LDFLAGS="$LDFLAGS -nodup"
3538 ;;
3539 x86)
3540 CC=gcc
3541 without_gcc=no
3542 OPT="$OPT -O"
3543 ;;
3544 *)
3545 as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
3546 ;;
3547 esac
3548 AR="\$(srcdir)/Modules/ar_beos"
3549 RANLIB=:
3550 ;;
3551 *) without_gcc=no;;
3552 esac
3553 fi
3554
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3556 $as_echo "$without_gcc" >&6; }
3557
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5
3559 $as_echo_n "checking for --with-icc... " >&6; }
3560
3561 # Check whether --with-icc was given.
3562 if test "${with_icc+set}" = set; then :
3563 withval=$with_icc;
3564 case $withval in
3565 no) CC=${CC:-cc}
3566 with_icc=no;;
3567 yes) CC=icc
3568 CXX=icpc
3569 with_icc=yes;;
3570 *) CC=$withval
3571 with_icc=$withval;;
3572 esac
3573 else
3574
3575 with_icc=no
3576 fi
3577
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5
3579 $as_echo "$with_icc" >&6; }
3580
3581 # If the user switches compilers, we can't believe the cache
3582 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3583 then
3584 as_fn_error $? "cached CC is different -- throw away $cache_file
3585 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3586 fi
3587
3588 if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then
3589 # Normally, MIPSpro CC treats #error directives as warnings, which means
3590 # a successful exit code is returned (0). This is a problem because IRIX
3591 # has a bunch of system headers with this guard at the top:
3592 #
3593 # #ifndef __c99
3594 # #error This header file is to be used only for c99 mode compilations
3595 # #else
3596 #
3597 # When autoconf tests for such a header, like stdint.h, this happens:
3598 #
3599 # configure:4619: cc -c conftest.c >&5
3600 # cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5
3601 # #error directive: This header file is to be used only for c99 mode
3602 # compilations
3603 #
3604 # #error This header file is to be used only for c99 mode compilations
3605 # ^
3606 #
3607 # configure:4619: $? = 0
3608 # configure:4619: result: yes
3609 #
3610 # Therefore, we use `-diag_error 1035` to have the compiler treat the
3611 # warning as an error, which causes cc to return a non-zero result,
3612 # which autoconf can interpret correctly.
3613 CFLAGS="$CFLAGS -diag_error 1035"
3614 # Whilst we're here, we might as well make sure CXX defaults to something
3615 # sensible if we're not using gcc.
3616 if test -z "$CXX"; then
3617 CXX="CC"
3618 fi
3619 fi
3620
3621 # If the user set CFLAGS, use this instead of the automatically
3622 # determined setting
3623 preset_cflags="$CFLAGS"
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if ${ac_cv_prog_CC+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 else
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3650 fi
3651 done
3652 done
3653 IFS=$as_save_IFS
3654
3655 fi
3656 fi
3657 CC=$ac_cv_prog_CC
3658 if test -n "$CC"; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660 $as_echo "$CC" >&6; }
3661 else
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 fi
3665
3666
3667 fi
3668 if test -z "$ac_cv_prog_CC"; then
3669 ac_ct_CC=$CC
3670 # Extract the first word of "gcc", so it can be a program name with args.
3671 set dummy gcc; ac_word=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 if test -n "$ac_ct_CC"; then
3678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_ac_ct_CC="gcc"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691 done
3692 done
3693 IFS=$as_save_IFS
3694
3695 fi
3696 fi
3697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3698 if test -n "$ac_ct_CC"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3700 $as_echo "$ac_ct_CC" >&6; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3704 fi
3705
3706 if test "x$ac_ct_CC" = x; then
3707 CC=""
3708 else
3709 case $cross_compiling:$ac_tool_warned in
3710 yes:)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3713 ac_tool_warned=yes ;;
3714 esac
3715 CC=$ac_ct_CC
3716 fi
3717 else
3718 CC="$ac_cv_prog_CC"
3719 fi
3720
3721 if test -z "$CC"; then
3722 if test -n "$ac_tool_prefix"; then
3723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}cc; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if ${ac_cv_prog_CC+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_CC="${ac_tool_prefix}cc"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744 done
3745 done
3746 IFS=$as_save_IFS
3747
3748 fi
3749 fi
3750 CC=$ac_cv_prog_CC
3751 if test -n "$CC"; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3753 $as_echo "$CC" >&6; }
3754 else
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3757 fi
3758
3759
3760 fi
3761 fi
3762 if test -z "$CC"; then
3763 # Extract the first word of "cc", so it can be a program name with args.
3764 set dummy cc; ac_word=$2
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if ${ac_cv_prog_CC+:} false; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 ac_prog_rejected=no
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3782 ac_prog_rejected=yes
3783 continue
3784 fi
3785 ac_cv_prog_CC="cc"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3788 fi
3789 done
3790 done
3791 IFS=$as_save_IFS
3792
3793 if test $ac_prog_rejected = yes; then
3794 # We found a bogon in the path, so make sure we never use it.
3795 set dummy $ac_cv_prog_CC
3796 shift
3797 if test $# != 0; then
3798 # We chose a different compiler from the bogus one.
3799 # However, it has the same basename, so the bogon will be chosen
3800 # first if we set CC to just the basename; use the full file name.
3801 shift
3802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3803 fi
3804 fi
3805 fi
3806 fi
3807 CC=$ac_cv_prog_CC
3808 if test -n "$CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3810 $as_echo "$CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 fi
3815
3816
3817 fi
3818 if test -z "$CC"; then
3819 if test -n "$ac_tool_prefix"; then
3820 for ac_prog in cl.exe
3821 do
3822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if ${ac_cv_prog_CC+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843 done
3844 done
3845 IFS=$as_save_IFS
3846
3847 fi
3848 fi
3849 CC=$ac_cv_prog_CC
3850 if test -n "$CC"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3852 $as_echo "$CC" >&6; }
3853 else
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3856 fi
3857
3858
3859 test -n "$CC" && break
3860 done
3861 fi
3862 if test -z "$CC"; then
3863 ac_ct_CC=$CC
3864 for ac_prog in cl.exe
3865 do
3866 # Extract the first word of "$ac_prog", so it can be a program name with args.
3867 set dummy $ac_prog; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 if test -n "$ac_ct_CC"; then
3874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_ac_ct_CC="$ac_prog"
3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887 done
3888 done
3889 IFS=$as_save_IFS
3890
3891 fi
3892 fi
3893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3894 if test -n "$ac_ct_CC"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3896 $as_echo "$ac_ct_CC" >&6; }
3897 else
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3900 fi
3901
3902
3903 test -n "$ac_ct_CC" && break
3904 done
3905
3906 if test "x$ac_ct_CC" = x; then
3907 CC=""
3908 else
3909 case $cross_compiling:$ac_tool_warned in
3910 yes:)
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3913 ac_tool_warned=yes ;;
3914 esac
3915 CC=$ac_ct_CC
3916 fi
3917 fi
3918
3919 fi
3920
3921
3922 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error $? "no acceptable C compiler found in \$PATH
3925 See \`config.log' for more details" "$LINENO" 5; }
3926
3927 # Provide some information about the compiler.
3928 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3929 set X $ac_compile
3930 ac_compiler=$2
3931 for ac_option in --version -v -V -qversion; do
3932 { { ac_try="$ac_compiler $ac_option >&5"
3933 case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3940 ac_status=$?
3941 if test -s conftest.err; then
3942 sed '10a\
3943 ... rest of stderr output deleted ...
3944 10q' conftest.err >conftest.er1
3945 cat conftest.er1 >&5
3946 fi
3947 rm -f conftest.er1 conftest.err
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }
3950 done
3951
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954
3955 int
3956 main ()
3957 {
3958
3959 ;
3960 return 0;
3961 }
3962 _ACEOF
3963 ac_clean_files_save=$ac_clean_files
3964 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3965 # Try to create an executable without -o first, disregard a.out.
3966 # It will help us diagnose broken compilers, and finding out an intuition
3967 # of exeext.
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3969 $as_echo_n "checking whether the C compiler works... " >&6; }
3970 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3971
3972 # The possible output files:
3973 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3974
3975 ac_rmfiles=
3976 for ac_file in $ac_files
3977 do
3978 case $ac_file in
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3980 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3981 esac
3982 done
3983 rm -f $ac_rmfiles
3984
3985 if { { ac_try="$ac_link_default"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 $as_echo "$ac_try_echo"; } >&5
3992 (eval "$ac_link_default") 2>&5
3993 ac_status=$?
3994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }; then :
3996 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3997 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3998 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3999 # so that the user can short-circuit this test for compilers unknown to
4000 # Autoconf.
4001 for ac_file in $ac_files ''
4002 do
4003 test -f "$ac_file" || continue
4004 case $ac_file in
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4006 ;;
4007 [ab].out )
4008 # We found the default executable, but exeext='' is most
4009 # certainly right.
4010 break;;
4011 *.* )
4012 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4013 then :; else
4014 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4015 fi
4016 # We set ac_cv_exeext here because the later test for it is not
4017 # safe: cross compilers may not add the suffix if given an `-o'
4018 # argument, so we may need to know it at that point already.
4019 # Even if this section looks crufty: it has the advantage of
4020 # actually working.
4021 break;;
4022 * )
4023 break;;
4024 esac
4025 done
4026 test "$ac_cv_exeext" = no && ac_cv_exeext=
4027
4028 else
4029 ac_file=''
4030 fi
4031 if test -z "$ac_file"; then :
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4034 $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error 77 "C compiler cannot create executables
4040 See \`config.log' for more details" "$LINENO" 5; }
4041 else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4043 $as_echo "yes" >&6; }
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4046 $as_echo_n "checking for C compiler default output file name... " >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4048 $as_echo "$ac_file" >&6; }
4049 ac_exeext=$ac_cv_exeext
4050
4051 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4052 ac_clean_files=$ac_clean_files_save
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4054 $as_echo_n "checking for suffix of executables... " >&6; }
4055 if { { ac_try="$ac_link"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_link") 2>&5
4063 ac_status=$?
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }; then :
4066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4067 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4068 # work properly (i.e., refer to `conftest.exe'), while it won't with
4069 # `rm'.
4070 for ac_file in conftest.exe conftest conftest.*; do
4071 test -f "$ac_file" || continue
4072 case $ac_file in
4073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4075 break;;
4076 * ) break;;
4077 esac
4078 done
4079 else
4080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4083 See \`config.log' for more details" "$LINENO" 5; }
4084 fi
4085 rm -f conftest conftest$ac_cv_exeext
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4087 $as_echo "$ac_cv_exeext" >&6; }
4088
4089 rm -f conftest.$ac_ext
4090 EXEEXT=$ac_cv_exeext
4091 ac_exeext=$EXEEXT
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #include <stdio.h>
4095 int
4096 main ()
4097 {
4098 FILE *f = fopen ("conftest.out", "w");
4099 return ferror (f) || fclose (f) != 0;
4100
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 ac_clean_files="$ac_clean_files conftest.out"
4106 # Check that the compiler produces executables we can run. If not, either
4107 # the compiler is broken, or we cross compile.
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4109 $as_echo_n "checking whether we are cross compiling... " >&6; }
4110 if test "$cross_compiling" != yes; then
4111 { { ac_try="$ac_link"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 $as_echo "$ac_try_echo"; } >&5
4118 (eval "$ac_link") 2>&5
4119 ac_status=$?
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }
4122 if { ac_try='./conftest$ac_cv_exeext'
4123 { { case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }; }; then
4133 cross_compiling=no
4134 else
4135 if test "$cross_compiling" = maybe; then
4136 cross_compiling=yes
4137 else
4138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4140 as_fn_error $? "cannot run C compiled programs.
4141 If you meant to cross compile, use \`--host'.
4142 See \`config.log' for more details" "$LINENO" 5; }
4143 fi
4144 fi
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4147 $as_echo "$cross_compiling" >&6; }
4148
4149 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4150 ac_clean_files=$ac_clean_files_save
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4152 $as_echo_n "checking for suffix of object files... " >&6; }
4153 if ${ac_cv_objext+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158
4159 int
4160 main ()
4161 {
4162
4163 ;
4164 return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest.o conftest.obj
4168 if { { ac_try="$ac_compile"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_compile") 2>&5
4176 ac_status=$?
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; then :
4179 for ac_file in conftest.o conftest.obj conftest.*; do
4180 test -f "$ac_file" || continue;
4181 case $ac_file in
4182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4183 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4184 break;;
4185 esac
4186 done
4187 else
4188 $as_echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error $? "cannot compute suffix of object files: cannot compile
4194 See \`config.log' for more details" "$LINENO" 5; }
4195 fi
4196 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4199 $as_echo "$ac_cv_objext" >&6; }
4200 OBJEXT=$ac_cv_objext
4201 ac_objext=$OBJEXT
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4203 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4204 if ${ac_cv_c_compiler_gnu+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209
4210 int
4211 main ()
4212 {
4213 #ifndef __GNUC__
4214 choke me
4215 #endif
4216
4217 ;
4218 return 0;
4219 }
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_compiler_gnu=yes
4223 else
4224 ac_compiler_gnu=no
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4228
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4231 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4232 if test $ac_compiler_gnu = yes; then
4233 GCC=yes
4234 else
4235 GCC=
4236 fi
4237 ac_test_CFLAGS=${CFLAGS+set}
4238 ac_save_CFLAGS=$CFLAGS
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4240 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4241 if ${ac_cv_prog_cc_g+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 ac_save_c_werror_flag=$ac_c_werror_flag
4245 ac_c_werror_flag=yes
4246 ac_cv_prog_cc_g=no
4247 CFLAGS="-g"
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250
4251 int
4252 main ()
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_prog_cc_g=yes
4261 else
4262 CFLAGS=""
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265
4266 int
4267 main ()
4268 {
4269
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 if ac_fn_c_try_compile "$LINENO"; then :
4275
4276 else
4277 ac_c_werror_flag=$ac_save_c_werror_flag
4278 CFLAGS="-g"
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281
4282 int
4283 main ()
4284 {
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_prog_cc_g=yes
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 ac_c_werror_flag=$ac_save_c_werror_flag
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4301 $as_echo "$ac_cv_prog_cc_g" >&6; }
4302 if test "$ac_test_CFLAGS" = set; then
4303 CFLAGS=$ac_save_CFLAGS
4304 elif test $ac_cv_prog_cc_g = yes; then
4305 if test "$GCC" = yes; then
4306 CFLAGS="-g -O2"
4307 else
4308 CFLAGS="-g"
4309 fi
4310 else
4311 if test "$GCC" = yes; then
4312 CFLAGS="-O2"
4313 else
4314 CFLAGS=
4315 fi
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4318 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4319 if ${ac_cv_prog_cc_c89+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 ac_cv_prog_cc_c89=no
4323 ac_save_CC=$CC
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <stdarg.h>
4327 #include <stdio.h>
4328 struct stat;
4329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4330 struct buf { int x; };
4331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4332 static char *e (p, i)
4333 char **p;
4334 int i;
4335 {
4336 return p[i];
4337 }
4338 static char *f (char * (*g) (char **, int), char **p, ...)
4339 {
4340 char *s;
4341 va_list v;
4342 va_start (v,p);
4343 s = g (p, va_arg (v,int));
4344 va_end (v);
4345 return s;
4346 }
4347
4348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4349 function prototypes and stuff, but not '\xHH' hex character constants.
4350 These don't provoke an error unfortunately, instead are silently treated
4351 as 'x'. The following induces an error, until -std is added to get
4352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4353 array size at least. It's necessary to write '\x00'==0 to get something
4354 that's true only with -std. */
4355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4356
4357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4358 inside strings and character constants. */
4359 #define FOO(x) 'x'
4360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4361
4362 int test (int i, double x);
4363 struct s1 {int (*f) (int a);};
4364 struct s2 {int (*f) (double a);};
4365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4366 int argc;
4367 char **argv;
4368 int
4369 main ()
4370 {
4371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4378 do
4379 CC="$ac_save_CC $ac_arg"
4380 if ac_fn_c_try_compile "$LINENO"; then :
4381 ac_cv_prog_cc_c89=$ac_arg
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext
4384 test "x$ac_cv_prog_cc_c89" != "xno" && break
4385 done
4386 rm -f conftest.$ac_ext
4387 CC=$ac_save_CC
4388
4389 fi
4390 # AC_CACHE_VAL
4391 case "x$ac_cv_prog_cc_c89" in
4392 x)
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4394 $as_echo "none needed" >&6; } ;;
4395 xno)
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4397 $as_echo "unsupported" >&6; } ;;
4398 *)
4399 CC="$CC $ac_cv_prog_cc_c89"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4401 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4402 esac
4403 if test "x$ac_cv_prog_cc_c89" != xno; then :
4404
4405 fi
4406
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
4413 if test ! -z "$preset_cflags"
4414 then
4415 CFLAGS=$preset_cflags
4416 fi
4417
4418
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4421 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4422
4423 # Check whether --with-cxx_main was given.
4424 if test "${with_cxx_main+set}" = set; then :
4425 withval=$with_cxx_main;
4426
4427 case $withval in
4428 no) with_cxx_main=no
4429 MAINCC='$(CC)';;
4430 yes) with_cxx_main=yes
4431 MAINCC='$(CXX)';;
4432 *) with_cxx_main=yes
4433 MAINCC=$withval
4434 if test -z "$CXX"
4435 then
4436 CXX=$withval
4437 fi;;
4438 esac
4439 else
4440
4441 with_cxx_main=no
4442 MAINCC='$(CC)'
4443
4444 fi
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4447 $as_echo "$with_cxx_main" >&6; }
4448
4449 preset_cxx="$CXX"
4450 if test -z "$CXX"
4451 then
4452 case "$CC" in
4453 gcc) if test -n "$ac_tool_prefix"; then
4454 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4455 set dummy ${ac_tool_prefix}g++; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_path_CXX+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 case $CXX in
4462 [\\/]* | ?:[\\/]*)
4463 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4464 ;;
4465 *)
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in notfound
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 ;;
4482 esac
4483 fi
4484 CXX=$ac_cv_path_CXX
4485 if test -n "$CXX"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4487 $as_echo "$CXX" >&6; }
4488 else
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 $as_echo "no" >&6; }
4491 fi
4492
4493
4494 fi
4495 if test -z "$ac_cv_path_CXX"; then
4496 ac_pt_CXX=$CXX
4497 # Extract the first word of "g++", so it can be a program name with args.
4498 set dummy g++; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_path_ac_pt_CXX+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 case $ac_pt_CXX in
4505 [\\/]* | ?:[\\/]*)
4506 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4507 ;;
4508 *)
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in notfound
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520 done
4521 done
4522 IFS=$as_save_IFS
4523
4524 ;;
4525 esac
4526 fi
4527 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4528 if test -n "$ac_pt_CXX"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4530 $as_echo "$ac_pt_CXX" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536 if test "x$ac_pt_CXX" = x; then
4537 CXX="g++"
4538 else
4539 case $cross_compiling:$ac_tool_warned in
4540 yes:)
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4543 ac_tool_warned=yes ;;
4544 esac
4545 CXX=$ac_pt_CXX
4546 fi
4547 else
4548 CXX="$ac_cv_path_CXX"
4549 fi
4550 ;;
4551 cc) if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4553 set dummy ${ac_tool_prefix}c++; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if ${ac_cv_path_CXX+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 case $CXX in
4560 [\\/]* | ?:[\\/]*)
4561 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4562 ;;
4563 *)
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in notfound
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 ;;
4580 esac
4581 fi
4582 CXX=$ac_cv_path_CXX
4583 if test -n "$CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4585 $as_echo "$CXX" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592 fi
4593 if test -z "$ac_cv_path_CXX"; then
4594 ac_pt_CXX=$CXX
4595 # Extract the first word of "c++", so it can be a program name with args.
4596 set dummy c++; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_path_ac_pt_CXX+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 case $ac_pt_CXX in
4603 [\\/]* | ?:[\\/]*)
4604 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4605 ;;
4606 *)
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in notfound
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 ;;
4623 esac
4624 fi
4625 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4626 if test -n "$ac_pt_CXX"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4628 $as_echo "$ac_pt_CXX" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634 if test "x$ac_pt_CXX" = x; then
4635 CXX="c++"
4636 else
4637 case $cross_compiling:$ac_tool_warned in
4638 yes:)
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641 ac_tool_warned=yes ;;
4642 esac
4643 CXX=$ac_pt_CXX
4644 fi
4645 else
4646 CXX="$ac_cv_path_CXX"
4647 fi
4648 ;;
4649 esac
4650 if test "$CXX" = "notfound"
4651 then
4652 CXX=""
4653 fi
4654 fi
4655 if test -z "$CXX"
4656 then
4657 if test -n "$ac_tool_prefix"; then
4658 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4659 do
4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_CXX+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$CXX"; then
4668 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 CXX=$ac_cv_prog_CXX
4688 if test -n "$CXX"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4690 $as_echo "$CXX" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695
4696
4697 test -n "$CXX" && break
4698 done
4699 fi
4700 if test -z "$CXX"; then
4701 ac_ct_CXX=$CXX
4702 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4703 do
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$ac_ct_CXX"; then
4712 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_prog_ac_ct_CXX="$ac_prog"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4724 fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729 fi
4730 fi
4731 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4732 if test -n "$ac_ct_CXX"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4734 $as_echo "$ac_ct_CXX" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4738 fi
4739
4740
4741 test -n "$ac_ct_CXX" && break
4742 done
4743
4744 if test "x$ac_ct_CXX" = x; then
4745 CXX="notfound"
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748 yes:)
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751 ac_tool_warned=yes ;;
4752 esac
4753 CXX=$ac_ct_CXX
4754 fi
4755 fi
4756
4757 if test "$CXX" = "notfound"
4758 then
4759 CXX=""
4760 fi
4761 fi
4762 if test "$preset_cxx" != "$CXX"
4763 then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4765
4766 By default, distutils will build C++ extension modules with \"$CXX\".
4767 If this is not intended, then set CXX on the configure command line.
4768 " >&5
4769 $as_echo "$as_me: WARNING:
4770
4771 By default, distutils will build C++ extension modules with \"$CXX\".
4772 If this is not intended, then set CXX on the configure command line.
4773 " >&2;}
4774 fi
4775
4776 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
4777
4778
4779
4780 # checks for UNIX variants that set C preprocessor variables
4781
4782 ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4788 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4789 # On Suns, sometimes $CPP names a directory.
4790 if test -n "$CPP" && test -d "$CPP"; then
4791 CPP=
4792 fi
4793 if test -z "$CPP"; then
4794 if ${ac_cv_prog_CPP+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 # Double quotes because CPP needs to be expanded
4798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4799 do
4800 ac_preproc_ok=false
4801 for ac_c_preproc_warn_flag in '' yes
4802 do
4803 # Use a header file that comes with gcc, so configuring glibc
4804 # with a fresh cross-compiler works.
4805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806 # <limits.h> exists even on freestanding compilers.
4807 # On the NeXT, cc -E runs the code through the compiler's parser,
4808 # not just through cpp. "Syntax error" is here to catch this case.
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 #ifdef __STDC__
4812 # include <limits.h>
4813 #else
4814 # include <assert.h>
4815 #endif
4816 Syntax error
4817 _ACEOF
4818 if ac_fn_c_try_cpp "$LINENO"; then :
4819
4820 else
4821 # Broken: fails on valid input.
4822 continue
4823 fi
4824 rm -f conftest.err conftest.i conftest.$ac_ext
4825
4826 # OK, works on sane cases. Now check whether nonexistent headers
4827 # can be detected and how.
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 #include <ac_nonexistent.h>
4831 _ACEOF
4832 if ac_fn_c_try_cpp "$LINENO"; then :
4833 # Broken: success on invalid input.
4834 continue
4835 else
4836 # Passes both tests.
4837 ac_preproc_ok=:
4838 break
4839 fi
4840 rm -f conftest.err conftest.i conftest.$ac_ext
4841
4842 done
4843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4844 rm -f conftest.i conftest.err conftest.$ac_ext
4845 if $ac_preproc_ok; then :
4846 break
4847 fi
4848
4849 done
4850 ac_cv_prog_CPP=$CPP
4851
4852 fi
4853 CPP=$ac_cv_prog_CPP
4854 else
4855 ac_cv_prog_CPP=$CPP
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4858 $as_echo "$CPP" >&6; }
4859 ac_preproc_ok=false
4860 for ac_c_preproc_warn_flag in '' yes
4861 do
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #ifdef __STDC__
4871 # include <limits.h>
4872 #else
4873 # include <assert.h>
4874 #endif
4875 Syntax error
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878
4879 else
4880 # Broken: fails on valid input.
4881 continue
4882 fi
4883 rm -f conftest.err conftest.i conftest.$ac_ext
4884
4885 # OK, works on sane cases. Now check whether nonexistent headers
4886 # can be detected and how.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <ac_nonexistent.h>
4890 _ACEOF
4891 if ac_fn_c_try_cpp "$LINENO"; then :
4892 # Broken: success on invalid input.
4893 continue
4894 else
4895 # Passes both tests.
4896 ac_preproc_ok=:
4897 break
4898 fi
4899 rm -f conftest.err conftest.i conftest.$ac_ext
4900
4901 done
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.i conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then :
4905
4906 else
4907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4909 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4910 See \`config.log' for more details" "$LINENO" 5; }
4911 fi
4912
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4921 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4922 if ${ac_cv_path_GREP+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -z "$GREP"; then
4926 ac_path_GREP_found=false
4927 # Loop through the user's path and test for each of PROGNAME-LIST
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_prog in grep ggrep; do
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4936 as_fn_executable_p "$ac_path_GREP" || continue
4937 # Check for GNU ac_path_GREP and select it if it is found.
4938 # Check for GNU $ac_path_GREP
4939 case `"$ac_path_GREP" --version 2>&1` in
4940 *GNU*)
4941 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4942 *)
4943 ac_count=0
4944 $as_echo_n 0123456789 >"conftest.in"
4945 while :
4946 do
4947 cat "conftest.in" "conftest.in" >"conftest.tmp"
4948 mv "conftest.tmp" "conftest.in"
4949 cp "conftest.in" "conftest.nl"
4950 $as_echo 'GREP' >> "conftest.nl"
4951 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4953 as_fn_arith $ac_count + 1 && ac_count=$as_val
4954 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4955 # Best one so far, save it but keep looking for a better one
4956 ac_cv_path_GREP="$ac_path_GREP"
4957 ac_path_GREP_max=$ac_count
4958 fi
4959 # 10*(2^10) chars as input seems more than enough
4960 test $ac_count -gt 10 && break
4961 done
4962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4963 esac
4964
4965 $ac_path_GREP_found && break 3
4966 done
4967 done
4968 done
4969 IFS=$as_save_IFS
4970 if test -z "$ac_cv_path_GREP"; then
4971 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4972 fi
4973 else
4974 ac_cv_path_GREP=$GREP
4975 fi
4976
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4979 $as_echo "$ac_cv_path_GREP" >&6; }
4980 GREP="$ac_cv_path_GREP"
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4984 $as_echo_n "checking for egrep... " >&6; }
4985 if ${ac_cv_path_EGREP+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4989 then ac_cv_path_EGREP="$GREP -E"
4990 else
4991 if test -z "$EGREP"; then
4992 ac_path_EGREP_found=false
4993 # Loop through the user's path and test for each of PROGNAME-LIST
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996 do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_prog in egrep; do
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5002 as_fn_executable_p "$ac_path_EGREP" || continue
5003 # Check for GNU ac_path_EGREP and select it if it is found.
5004 # Check for GNU $ac_path_EGREP
5005 case `"$ac_path_EGREP" --version 2>&1` in
5006 *GNU*)
5007 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5008 *)
5009 ac_count=0
5010 $as_echo_n 0123456789 >"conftest.in"
5011 while :
5012 do
5013 cat "conftest.in" "conftest.in" >"conftest.tmp"
5014 mv "conftest.tmp" "conftest.in"
5015 cp "conftest.in" "conftest.nl"
5016 $as_echo 'EGREP' >> "conftest.nl"
5017 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5019 as_fn_arith $ac_count + 1 && ac_count=$as_val
5020 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5021 # Best one so far, save it but keep looking for a better one
5022 ac_cv_path_EGREP="$ac_path_EGREP"
5023 ac_path_EGREP_max=$ac_count
5024 fi
5025 # 10*(2^10) chars as input seems more than enough
5026 test $ac_count -gt 10 && break
5027 done
5028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5029 esac
5030
5031 $ac_path_EGREP_found && break 3
5032 done
5033 done
5034 done
5035 IFS=$as_save_IFS
5036 if test -z "$ac_cv_path_EGREP"; then
5037 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5038 fi
5039 else
5040 ac_cv_path_EGREP=$EGREP
5041 fi
5042
5043 fi
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5046 $as_echo "$ac_cv_path_EGREP" >&6; }
5047 EGREP="$ac_cv_path_EGREP"
5048
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5051 $as_echo_n "checking for ANSI C header files... " >&6; }
5052 if ${ac_cv_header_stdc+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #include <stdlib.h>
5058 #include <stdarg.h>
5059 #include <string.h>
5060 #include <float.h>
5061
5062 int
5063 main ()
5064 {
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_header_stdc=yes
5072 else
5073 ac_cv_header_stdc=no
5074 fi
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076
5077 if test $ac_cv_header_stdc = yes; then
5078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <string.h>
5082
5083 _ACEOF
5084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085 $EGREP "memchr" >/dev/null 2>&1; then :
5086
5087 else
5088 ac_cv_header_stdc=no
5089 fi
5090 rm -f conftest*
5091
5092 fi
5093
5094 if test $ac_cv_header_stdc = yes; then
5095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #include <stdlib.h>
5099
5100 _ACEOF
5101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5102 $EGREP "free" >/dev/null 2>&1; then :
5103
5104 else
5105 ac_cv_header_stdc=no
5106 fi
5107 rm -f conftest*
5108
5109 fi
5110
5111 if test $ac_cv_header_stdc = yes; then
5112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5113 if test "$cross_compiling" = yes; then :
5114 :
5115 else
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #include <ctype.h>
5119 #include <stdlib.h>
5120 #if ((' ' & 0x0FF) == 0x020)
5121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5123 #else
5124 # define ISLOWER(c) \
5125 (('a' <= (c) && (c) <= 'i') \
5126 || ('j' <= (c) && (c) <= 'r') \
5127 || ('s' <= (c) && (c) <= 'z'))
5128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5129 #endif
5130
5131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5132 int
5133 main ()
5134 {
5135 int i;
5136 for (i = 0; i < 256; i++)
5137 if (XOR (islower (i), ISLOWER (i))
5138 || toupper (i) != TOUPPER (i))
5139 return 2;
5140 return 0;
5141 }
5142 _ACEOF
5143 if ac_fn_c_try_run "$LINENO"; then :
5144
5145 else
5146 ac_cv_header_stdc=no
5147 fi
5148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5149 conftest.$ac_objext conftest.beam conftest.$ac_ext
5150 fi
5151
5152 fi
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5155 $as_echo "$ac_cv_header_stdc" >&6; }
5156 if test $ac_cv_header_stdc = yes; then
5157
5158 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5159
5160 fi
5161
5162 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5163 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5164 inttypes.h stdint.h unistd.h
5165 do :
5166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5167 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5168 "
5169 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5170 cat >>confdefs.h <<_ACEOF
5171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5172 _ACEOF
5173
5174 fi
5175
5176 done
5177
5178
5179
5180 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5181 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5182 MINIX=yes
5183 else
5184 MINIX=
5185 fi
5186
5187
5188 if test "$MINIX" = yes; then
5189
5190 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5191
5192
5193 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5194
5195
5196 $as_echo "#define _MINIX 1" >>confdefs.h
5197
5198 fi
5199
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5202 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5203 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208
5209 # define __EXTENSIONS__ 1
5210 $ac_includes_default
5211 int
5212 main ()
5213 {
5214
5215 ;
5216 return 0;
5217 }
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_cv_safe_to_define___extensions__=yes
5221 else
5222 ac_cv_safe_to_define___extensions__=no
5223 fi
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5227 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5228 test $ac_cv_safe_to_define___extensions__ = yes &&
5229 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5230
5231 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5232
5233 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5234
5235 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5236
5237 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5238
5239
5240
5241 # Check for unsupported systems
5242 case $ac_sys_system/$ac_sys_release in
5243 atheos*|Linux*/1*)
5244 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5245 echo See README for details.
5246 exit 1;;
5247 esac
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5251 $as_echo_n "checking for --with-suffix... " >&6; }
5252
5253 # Check whether --with-suffix was given.
5254 if test "${with_suffix+set}" = set; then :
5255 withval=$with_suffix;
5256 case $withval in
5257 no) EXEEXT=;;
5258 yes) EXEEXT=.exe;;
5259 *) EXEEXT=$withval;;
5260 esac
5261 fi
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5264 $as_echo "$EXEEXT" >&6; }
5265
5266 # Test whether we're running on a non-case-sensitive system, in which
5267 # case we give a warning if no ext is given
5268
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5270 $as_echo_n "checking for case-insensitive build directory... " >&6; }
5271 if test ! -d CaseSensitiveTestDir; then
5272 mkdir CaseSensitiveTestDir
5273 fi
5274
5275 if test -d casesensitivetestdir
5276 then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5278 $as_echo "yes" >&6; }
5279 BUILDEXEEXT=.exe
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 BUILDEXEEXT=$EXEEXT
5284 fi
5285 rmdir CaseSensitiveTestDir
5286
5287 case $MACHDEP in
5288 bsdos*)
5289 case $CC in
5290 gcc) CC="$CC -D_HAVE_BSDI";;
5291 esac;;
5292 esac
5293
5294 case $ac_sys_system in
5295 hp*|HP*)
5296 case $CC in
5297 cc|*/cc) CC="$CC -Ae";;
5298 esac;;
5299 SunOS*)
5300 # Some functions have a prototype only with that define, e.g. confstr
5301
5302 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5303
5304 ;;
5305 esac
5306
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5310 $as_echo_n "checking LIBRARY... " >&6; }
5311 if test -z "$LIBRARY"
5312 then
5313 LIBRARY='libpython$(VERSION).a'
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5316 $as_echo "$LIBRARY" >&6; }
5317
5318 # LDLIBRARY is the name of the library to link against (as opposed to the
5319 # name of the library into which to insert object files). BLDLIBRARY is also
5320 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5321 # is blank as the main program is not linked directly against LDLIBRARY.
5322 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5323 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
5324 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5325 # DLLLIBRARY is the shared (i.e., DLL) library.
5326 #
5327 # RUNSHARED is used to run shared python without installed libraries
5328 #
5329 # INSTSONAME is the name of the shared library that will be use to install
5330 # on the system - some systems like version suffix, others don't
5331
5332
5333
5334
5335
5336
5337 LDLIBRARY="$LIBRARY"
5338 BLDLIBRARY='$(LDLIBRARY)'
5339 INSTSONAME='$(LDLIBRARY)'
5340 DLLLIBRARY=''
5341 LDLIBRARYDIR=''
5342 RUNSHARED=''
5343
5344 # LINKCC is the command that links the python executable -- default is $(CC).
5345 # If CXX is set, and if it is needed to link a main function that was
5346 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5347 # python might then depend on the C++ runtime
5348 # This is altered for AIX in order to build the export list before
5349 # linking.
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5352 $as_echo_n "checking LINKCC... " >&6; }
5353 if test -z "$LINKCC"
5354 then
5355 LINKCC='$(PURIFY) $(MAINCC)'
5356 case $ac_sys_system in
5357 AIX*)
5358 exp_extra="\"\""
5359 if test $ac_sys_release -ge 5 -o \
5360 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5361 exp_extra="."
5362 fi
5363 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
5364 QNX*)
5365 # qcc must be used because the other compilers do not
5366 # support -N.
5367 LINKCC=qcc;;
5368 esac
5369 fi
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5371 $as_echo "$LINKCC" >&6; }
5372
5373 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
5374 # make sure we default having it set to "no": this is used by
5375 # distutils.unixccompiler to know if it should add --enable-new-dtags
5376 # to linker command lines, and failing to detect GNU ld simply results
5377 # in the same bahaviour as before.
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5380 $as_echo_n "checking for GNU ld... " >&6; }
5381 ac_prog=ld
5382 if test "$GCC" = yes; then
5383 ac_prog=`$CC -print-prog-name=ld`
5384 fi
5385 case `"$ac_prog" -V 2>&1 < /dev/null` in
5386 *GNU*)
5387 GNULD=yes;;
5388 *)
5389 GNULD=no;;
5390 esac
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5392 $as_echo "$GNULD" >&6; }
5393
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5395 $as_echo_n "checking for --enable-shared... " >&6; }
5396 # Check whether --enable-shared was given.
5397 if test "${enable_shared+set}" = set; then :
5398 enableval=$enable_shared;
5399 fi
5400
5401
5402 if test -z "$enable_shared"
5403 then
5404 case $ac_sys_system in
5405 CYGWIN* | atheos*)
5406 enable_shared="yes";;
5407 *)
5408 enable_shared="no";;
5409 esac
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5412 $as_echo "$enable_shared" >&6; }
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5415 $as_echo_n "checking for --enable-profiling... " >&6; }
5416 # Check whether --enable-profiling was given.
5417 if test "${enable_profiling+set}" = set; then :
5418 enableval=$enable_profiling;
5419 fi
5420
5421 if test "x$enable_profiling" = xyes; then
5422 ac_save_cc="$CC"
5423 CC="$CC -pg"
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 int main() { return 0; }
5427 _ACEOF
5428 if ac_fn_c_try_link "$LINENO"; then :
5429
5430 else
5431 enable_profiling=no
5432 fi
5433 rm -f core conftest.err conftest.$ac_objext \
5434 conftest$ac_exeext conftest.$ac_ext
5435 CC="$ac_save_cc"
5436 else
5437 enable_profiling=no
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5440 $as_echo "$enable_profiling" >&6; }
5441
5442 if test "x$enable_profiling" = xyes; then
5443 BASECFLAGS="-pg $BASECFLAGS"
5444 LDFLAGS="-pg $LDFLAGS"
5445 fi
5446
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5448 $as_echo_n "checking LDLIBRARY... " >&6; }
5449
5450 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5451 # library that we build, but we do not want to link against it (we
5452 # will find it with a -framework option). For this reason there is an
5453 # extra variable BLDLIBRARY against which Python and the extension
5454 # modules are linked, BLDLIBRARY. This is normally the same as
5455 # LDLIBRARY, but empty for MacOSX framework builds.
5456 if test "$enable_framework"
5457 then
5458 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
5459 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
5460 BLDLIBRARY=''
5461 else
5462 BLDLIBRARY='$(LDLIBRARY)'
5463 fi
5464
5465 # Other platforms follow
5466 if test $enable_shared = "yes"; then
5467
5468 $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
5469
5470 case $ac_sys_system in
5471 BeOS*)
5472 LDLIBRARY='libpython$(VERSION).so'
5473 ;;
5474 CYGWIN*)
5475 LDLIBRARY='libpython$(VERSION).dll.a'
5476 DLLLIBRARY='libpython$(VERSION).dll'
5477 ;;
5478 SunOS*)
5479 LDLIBRARY='libpython$(VERSION).so'
5480 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
5481 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5482 INSTSONAME="$LDLIBRARY".$SOVERSION
5483 ;;
5484 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
5485 LDLIBRARY='libpython$(VERSION).so'
5486 BLDLIBRARY='-L. -lpython$(VERSION)'
5487 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5488 case $ac_sys_system in
5489 FreeBSD*)
5490 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
5491 ;;
5492 esac
5493 INSTSONAME="$LDLIBRARY".$SOVERSION
5494 ;;
5495 hp*|HP*)
5496 case `uname -m` in
5497 ia64)
5498 LDLIBRARY='libpython$(VERSION).so'
5499 ;;
5500 *)
5501 LDLIBRARY='libpython$(VERSION).sl'
5502 ;;
5503 esac
5504 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
5505 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
5506 ;;
5507 OSF*)
5508 LDLIBRARY='libpython$(VERSION).so'
5509 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
5510 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5511 ;;
5512 atheos*)
5513 LDLIBRARY='libpython$(VERSION).so'
5514 BLDLIBRARY='-L. -lpython$(VERSION)'
5515 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
5516 ;;
5517 Darwin*)
5518 LDLIBRARY='libpython$(VERSION).dylib'
5519 BLDLIBRARY='-L. -lpython$(VERSION)'
5520 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
5521 ;;
5522 AIX*)
5523 LDLIBRARY='libpython$(VERSION).so'
5524 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
5525 ;;
5526
5527 esac
5528 else # shared is disabled
5529 case $ac_sys_system in
5530 CYGWIN*)
5531 BLDLIBRARY='$(LIBRARY)'
5532 LDLIBRARY='libpython$(VERSION).dll.a'
5533 ;;
5534 esac
5535 fi
5536
5537 if test "$cross_compiling" = yes; then
5538 RUNSHARED=
5539 fi
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5542 $as_echo "$LDLIBRARY" >&6; }
5543
5544 if test -n "$ac_tool_prefix"; then
5545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5546 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_RANLIB+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$RANLIB"; then
5553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5565 fi
5566 done
5567 done
5568 IFS=$as_save_IFS
5569
5570 fi
5571 fi
5572 RANLIB=$ac_cv_prog_RANLIB
5573 if test -n "$RANLIB"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5575 $as_echo "$RANLIB" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580
5581
5582 fi
5583 if test -z "$ac_cv_prog_RANLIB"; then
5584 ac_ct_RANLIB=$RANLIB
5585 # Extract the first word of "ranlib", so it can be a program name with args.
5586 set dummy ranlib; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$ac_ct_RANLIB"; then
5593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_ac_ct_RANLIB="ranlib"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5605 fi
5606 done
5607 done
5608 IFS=$as_save_IFS
5609
5610 fi
5611 fi
5612 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5613 if test -n "$ac_ct_RANLIB"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5615 $as_echo "$ac_ct_RANLIB" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620
5621 if test "x$ac_ct_RANLIB" = x; then
5622 RANLIB=":"
5623 else
5624 case $cross_compiling:$ac_tool_warned in
5625 yes:)
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628 ac_tool_warned=yes ;;
5629 esac
5630 RANLIB=$ac_ct_RANLIB
5631 fi
5632 else
5633 RANLIB="$ac_cv_prog_RANLIB"
5634 fi
5635
5636
5637 if test -n "$ac_tool_prefix"; then
5638 for ac_prog in ar aal
5639 do
5640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_AR+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -n "$AR"; then
5648 ac_cv_prog_AR="$AR" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 AR=$ac_cv_prog_AR
5668 if test -n "$AR"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5670 $as_echo "$AR" >&6; }
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676
5677 test -n "$AR" && break
5678 done
5679 fi
5680 if test -z "$AR"; then
5681 ac_ct_AR=$AR
5682 for ac_prog in ar aal
5683 do
5684 # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$ac_ct_AR"; then
5692 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_ac_ct_AR="$ac_prog"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705 done
5706 done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5712 if test -n "$ac_ct_AR"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5714 $as_echo "$ac_ct_AR" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720
5721 test -n "$ac_ct_AR" && break
5722 done
5723
5724 if test "x$ac_ct_AR" = x; then
5725 AR="ar"
5726 else
5727 case $cross_compiling:$ac_tool_warned in
5728 yes:)
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5731 ac_tool_warned=yes ;;
5732 esac
5733 AR=$ac_ct_AR
5734 fi
5735 fi
5736
5737
5738 # tweak ARFLAGS only if the user didn't set it on the command line
5739
5740 if test -z "$ARFLAGS"
5741 then
5742 ARFLAGS="rc"
5743 fi
5744
5745
5746
5747
5748
5749 if test -e $srcdir/.git
5750 then
5751 # Extract the first word of "git", so it can be a program name with args.
5752 set dummy git; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_HAS_GIT+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 if test -n "$HAS_GIT"; then
5759 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_HAS_GIT="found"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772 done
5773 done
5774 IFS=$as_save_IFS
5775
5776 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
5777 fi
5778 fi
5779 HAS_GIT=$ac_cv_prog_HAS_GIT
5780 if test -n "$HAS_GIT"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
5782 $as_echo "$HAS_GIT" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788
5789 else
5790 HAS_GIT=no-repository
5791 fi
5792 if test $HAS_GIT = found
5793 then
5794 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
5795 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
5796 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
5797 else
5798 GITVERSION=""
5799 GITTAG=""
5800 GITBRANCH=""
5801 fi
5802
5803 case $MACHDEP in
5804 bsdos*|hp*|HP*)
5805 # install -d does not work on BSDI or HP-UX
5806 if test -z "$INSTALL"
5807 then
5808 INSTALL="${srcdir}/install-sh -c"
5809 fi
5810 esac
5811 # Find a good install program. We prefer a C program (faster),
5812 # so one script is as good as another. But avoid the broken or
5813 # incompatible versions:
5814 # SysV /etc/install, /usr/sbin/install
5815 # SunOS /usr/etc/install
5816 # IRIX /sbin/install
5817 # AIX /bin/install
5818 # AmigaOS /C/install, which installs bootblocks on floppy discs
5819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5822 # OS/2's system install, which has a completely different semantic
5823 # ./install, which can be erroneously created by make from ./install.sh.
5824 # Reject install programs that cannot install multiple files.
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5827 if test -z "$INSTALL"; then
5828 if ${ac_cv_path_install+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 # Account for people who put trailing slashes in PATH elements.
5837 case $as_dir/ in #((
5838 ./ | .// | /[cC]/* | \
5839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5840 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5841 /usr/ucb/* ) ;;
5842 *)
5843 # OSF1 and SCO ODT 3.0 have their own names for install.
5844 # Don't use installbsd from OSF since it installs stuff as root
5845 # by default.
5846 for ac_prog in ginstall scoinst install; do
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5849 if test $ac_prog = install &&
5850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5851 # AIX install. It has an incompatible calling convention.
5852 :
5853 elif test $ac_prog = install &&
5854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5855 # program-specific install script used by HP pwplus--don't use.
5856 :
5857 else
5858 rm -rf conftest.one conftest.two conftest.dir
5859 echo one > conftest.one
5860 echo two > conftest.two
5861 mkdir conftest.dir
5862 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5863 test -s conftest.one && test -s conftest.two &&
5864 test -s conftest.dir/conftest.one &&
5865 test -s conftest.dir/conftest.two
5866 then
5867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5868 break 3
5869 fi
5870 fi
5871 fi
5872 done
5873 done
5874 ;;
5875 esac
5876
5877 done
5878 IFS=$as_save_IFS
5879
5880 rm -rf conftest.one conftest.two conftest.dir
5881
5882 fi
5883 if test "${ac_cv_path_install+set}" = set; then
5884 INSTALL=$ac_cv_path_install
5885 else
5886 # As a last resort, use the slow shell script. Don't cache a
5887 # value for INSTALL within a source directory, because that will
5888 # break other packages using the cache if that directory is
5889 # removed, or if the value is a relative name.
5890 INSTALL=$ac_install_sh
5891 fi
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5894 $as_echo "$INSTALL" >&6; }
5895
5896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5897 # It thinks the first close brace ends the variable substitution.
5898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5899
5900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5901
5902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5905 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5906 if test -z "$MKDIR_P"; then
5907 if ${ac_cv_path_mkdir+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5912 do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_prog in mkdir gmkdir; do
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5918 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5919 'mkdir (GNU coreutils) '* | \
5920 'mkdir (coreutils) '* | \
5921 'mkdir (fileutils) '4.1*)
5922 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5923 break 3;;
5924 esac
5925 done
5926 done
5927 done
5928 IFS=$as_save_IFS
5929
5930 fi
5931
5932 test -d ./--version && rmdir ./--version
5933 if test "${ac_cv_path_mkdir+set}" = set; then
5934 MKDIR_P="$ac_cv_path_mkdir -p"
5935 else
5936 # As a last resort, use the slow shell script. Don't cache a
5937 # value for MKDIR_P within a source directory, because that will
5938 # break other packages using the cache if that directory is
5939 # removed, or if the value is a relative name.
5940 MKDIR_P="$ac_install_sh -d"
5941 fi
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5944 $as_echo "$MKDIR_P" >&6; }
5945
5946
5947 # Not every filesystem supports hard links
5948
5949 if test -z "$LN" ; then
5950 case $ac_sys_system in
5951 BeOS*) LN="ln -s";;
5952 CYGWIN*) LN="ln -s";;
5953 atheos*) LN="ln -s";;
5954 *) LN=ln;;
5955 esac
5956 fi
5957
5958 # Check for --with-pydebug
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
5960 $as_echo_n "checking for --with-pydebug... " >&6; }
5961
5962 # Check whether --with-pydebug was given.
5963 if test "${with_pydebug+set}" = set; then :
5964 withval=$with_pydebug;
5965 if test "$withval" != no
5966 then
5967
5968 $as_echo "#define Py_DEBUG 1" >>confdefs.h
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5971 $as_echo "yes" >&6; };
5972 Py_DEBUG='true'
5973 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }; Py_DEBUG='false'
5975 fi
5976 else
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981
5982 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5983 # merged with this chunk of code?
5984
5985 # Optimizer/debugger flags
5986 # ------------------------
5987 # (The following bit of code is complicated enough - please keep things
5988 # indented properly. Just pretend you're editing Python code. ;-)
5989
5990 # There are two parallel sets of case statements below, one that checks to
5991 # see if OPT was set and one that does BASECFLAGS setting based upon
5992 # compiler and platform. BASECFLAGS tweaks need to be made even if the
5993 # user set OPT.
5994
5995 # tweak OPT based on compiler and platform, only if the user didn't set
5996 # it on the command line
5997
5998 if test "${OPT-unset}" = "unset"
5999 then
6000 case $GCC in
6001 yes)
6002 if test "$CC" != 'g++' ; then
6003 STRICT_PROTO="-Wstrict-prototypes"
6004 fi
6005 # For gcc 4.x we need to use -fwrapv so lets check if its supported
6006 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6007 WRAP="-fwrapv"
6008 fi
6009
6010 # Clang also needs -fwrapv
6011 case $CC in
6012 *clang*) WRAP="-fwrapv"
6013 ;;
6014 esac
6015
6016 case $ac_cv_prog_cc_g in
6017 yes)
6018 if test "$Py_DEBUG" = 'true' ; then
6019 # Optimization messes up debuggers, so turn it off for
6020 # debug builds.
6021 OPT="-g -O0 -Wall $STRICT_PROTO"
6022 else
6023 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
6024 fi
6025 ;;
6026 *)
6027 OPT="-O3 -Wall $STRICT_PROTO"
6028 ;;
6029 esac
6030 case $ac_sys_system in
6031 SCO_SV*) OPT="$OPT -m486 -DSCO5"
6032 ;;
6033 esac
6034 ;;
6035
6036 *)
6037 OPT="-O"
6038 ;;
6039 esac
6040 fi
6041
6042
6043
6044 # The -arch flags for universal builds on OSX
6045 UNIVERSAL_ARCH_FLAGS=
6046
6047
6048 # tweak BASECFLAGS based on compiler and platform
6049 case $GCC in
6050 yes)
6051 # Python violates C99 rules, by casting between incompatible
6052 # pointer types. GCC may generate bad code as a result of that,
6053 # so use -fno-strict-aliasing if supported.
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
6055 $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
6056 ac_save_cc="$CC"
6057 CC="$CC -fno-strict-aliasing"
6058 if ${ac_cv_no_strict_aliasing_ok+:} false; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063
6064 int
6065 main ()
6066 {
6067
6068 ;
6069 return 0;
6070 }
6071 _ACEOF
6072 if ac_fn_c_try_compile "$LINENO"; then :
6073 ac_cv_no_strict_aliasing_ok=yes
6074 else
6075 ac_cv_no_strict_aliasing_ok=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 fi
6079
6080 CC="$ac_save_cc"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
6082 $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
6083 if test $ac_cv_no_strict_aliasing_ok = yes
6084 then
6085 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
6086 fi
6087
6088 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
6089 # support. Without this, treatment of subnormals doesn't follow
6090 # the standard.
6091 case $host in
6092 alpha*)
6093 BASECFLAGS="$BASECFLAGS -mieee"
6094 ;;
6095 esac
6096
6097 case $ac_sys_system in
6098 SCO_SV*)
6099 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
6100 ;;
6101 # is there any other compiler on Darwin besides gcc?
6102 Darwin*)
6103 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
6104 # used to be here, but non-Apple gcc doesn't accept them.
6105 if test "${CC}" = gcc
6106 then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
6108 $as_echo_n "checking which compiler should be used... " >&6; }
6109 case "${UNIVERSALSDK}" in
6110 */MacOSX10.4u.sdk)
6111 # Build using 10.4 SDK, force usage of gcc when the
6112 # compiler is gcc, otherwise the user will get very
6113 # confusing error messages when building on OSX 10.6
6114 CC=gcc-4.0
6115 CPP=cpp-4.0
6116 ;;
6117 esac
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6119 $as_echo "$CC" >&6; }
6120 fi
6121
6122 if test "${enable_universalsdk}"
6123 then
6124 case "$UNIVERSAL_ARCHS" in
6125 32-bit)
6126 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
6127 LIPO_32BIT_FLAGS=""
6128 ARCH_RUN_32BIT=""
6129 ;;
6130 64-bit)
6131 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
6132 LIPO_32BIT_FLAGS=""
6133 ARCH_RUN_32BIT=""
6134 ;;
6135 all)
6136 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
6137 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6138 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6139 ;;
6140 intel)
6141 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
6142 LIPO_32BIT_FLAGS="-extract i386"
6143 ARCH_RUN_32BIT="/usr/bin/arch -i386"
6144 ;;
6145 intel-32)
6146 UNIVERSAL_ARCH_FLAGS="-arch i386"
6147 LIPO_32BIT_FLAGS=""
6148 ARCH_RUN_32BIT=""
6149 ;;
6150 intel-64)
6151 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
6152 LIPO_32BIT_FLAGS=""
6153 ARCH_RUN_32BIT=""
6154 ;;
6155 3-way)
6156 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
6157 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
6158 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
6159 ;;
6160 *)
6161 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
6162 ;;
6163 esac
6164
6165 if test "${UNIVERSALSDK}" != "/"
6166 then
6167 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
6168 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
6169 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
6170 else
6171 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
6172 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
6173 fi
6174 fi
6175
6176 # Calculate an appropriate deployment target for this build:
6177 # The deployment target value is used explicitly to enable certain
6178 # features are enabled (such as builtin libedit support for readline)
6179 # through the use of Apple's Availability Macros and is used as a
6180 # component of the string returned by distutils.get_platform().
6181 #
6182 # Use the value from:
6183 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
6184 # 2. the operating system version of the build machine if >= 10.6
6185 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
6186 # below to pick either 10.3, 10.4, or 10.5 as the target.
6187 # 4. If we are running on OS X 10.2 or earlier, good luck!
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
6190 $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
6191 cur_target_major=`sw_vers -productVersion | \
6192 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
6193 cur_target_minor=`sw_vers -productVersion | \
6194 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
6195 cur_target="${cur_target_major}.${cur_target_minor}"
6196 if test ${cur_target_major} -eq 10 && \
6197 test ${cur_target_minor} -ge 3 && \
6198 test ${cur_target_minor} -le 5
6199 then
6200 # OS X 10.3 through 10.5
6201 cur_target=10.3
6202 if test ${enable_universalsdk}
6203 then
6204 case "$UNIVERSAL_ARCHS" in
6205 all|3-way|intel|64-bit)
6206 # These configurations were first supported in 10.5
6207 cur_target='10.5'
6208 ;;
6209 esac
6210 else
6211 if test `/usr/bin/arch` = "i386"
6212 then
6213 # 10.4 was the first release to support Intel archs
6214 cur_target="10.4"
6215 fi
6216 fi
6217 fi
6218 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
6219
6220 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
6221 # environment with a value that is the same as what we'll use
6222 # in the Makefile to ensure that we'll get the same compiler
6223 # environment during configure and build time.
6224 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
6225 export MACOSX_DEPLOYMENT_TARGET
6226 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
6228 $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
6229
6230 # end of Darwin* tests
6231 ;;
6232 OSF*)
6233 BASECFLAGS="$BASECFLAGS -mieee"
6234 ;;
6235 esac
6236 ;;
6237
6238 *)
6239 case $ac_sys_system in
6240 OpenUNIX*|UnixWare*)
6241 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
6242 ;;
6243 OSF*)
6244 BASECFLAGS="$BASECFLAGS -ieee -std"
6245 ;;
6246 SCO_SV*)
6247 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
6248 ;;
6249 esac
6250 ;;
6251 esac
6252
6253 # ICC needs -fp-model strict or floats behave badly
6254 case "$CC" in
6255 *icc*)
6256 BASECFLAGS="$BASECFLAGS -fp-model strict"
6257 ;;
6258 esac
6259
6260 if test "$Py_DEBUG" = 'true'; then
6261 :
6262 else
6263 OPT="-DNDEBUG $OPT"
6264 fi
6265
6266 if test "$ac_arch_flags"
6267 then
6268 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
6269 fi
6270
6271 # disable check for icc since it seems to pass, but generates a warning
6272 if test "$CC" = icc
6273 then
6274 ac_cv_opt_olimit_ok=no
6275 fi
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
6278 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
6279 if ${ac_cv_opt_olimit_ok+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 ac_save_cc="$CC"
6283 CC="$CC -OPT:Olimit=0"
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286
6287 int
6288 main ()
6289 {
6290
6291 ;
6292 return 0;
6293 }
6294 _ACEOF
6295 if ac_fn_c_try_compile "$LINENO"; then :
6296 ac_cv_opt_olimit_ok=yes
6297 else
6298 ac_cv_opt_olimit_ok=no
6299
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 CC="$ac_save_cc"
6303 fi
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
6306 $as_echo "$ac_cv_opt_olimit_ok" >&6; }
6307 if test $ac_cv_opt_olimit_ok = yes; then
6308 case $ac_sys_system in
6309 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
6310 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
6311 # environment?
6312 Darwin*)
6313 ;;
6314 # XXX thankfully this useless troublemaker of a flag has been
6315 # eradicated in the 3.x line. For now, make sure it isn't picked
6316 # up by any of our other platforms that use CC.
6317 AIX*|SunOS*|HP-UX*|IRIX*)
6318 ;;
6319 *)
6320 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
6321 ;;
6322 esac
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
6325 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
6326 if ${ac_cv_olimit_ok+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 ac_save_cc="$CC"
6330 CC="$CC -Olimit 1500"
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333
6334 int
6335 main ()
6336 {
6337
6338 ;
6339 return 0;
6340 }
6341 _ACEOF
6342 if ac_fn_c_try_compile "$LINENO"; then :
6343 ac_cv_olimit_ok=yes
6344 else
6345 ac_cv_olimit_ok=no
6346
6347 fi
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 CC="$ac_save_cc"
6350 fi
6351
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
6353 $as_echo "$ac_cv_olimit_ok" >&6; }
6354 if test $ac_cv_olimit_ok = yes; then
6355 case $ac_sys_system in
6356 # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive.
6357 HP-UX*)
6358 ;;
6359 *)
6360 BASECFLAGS="$BASECFLAGS -Olimit 1500"
6361 ;;
6362 esac
6363 fi
6364 fi
6365
6366 # Check whether GCC supports PyArg_ParseTuple format
6367 if test "$GCC" = "yes"
6368 then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
6370 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
6371 save_CFLAGS=$CFLAGS
6372 CFLAGS="$CFLAGS -Werror -Wformat"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375
6376 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
6377 int
6378 main ()
6379 {
6380
6381 ;
6382 return 0;
6383 }
6384
6385 _ACEOF
6386 if ac_fn_c_try_compile "$LINENO"; then :
6387
6388
6389 $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6392 $as_echo "yes" >&6; }
6393
6394 else
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6398
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 CFLAGS=$save_CFLAGS
6402 fi
6403
6404
6405 # Enable optimization flags
6406
6407
6408 Py_OPT='false'
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6410 $as_echo_n "checking for --enable-optimizations... " >&6; }
6411 # Check whether --enable-optimizations was given.
6412 if test "${enable_optimizations+set}" = set; then :
6413 enableval=$enable_optimizations;
6414 if test "$enableval" != no
6415 then
6416 Py_OPT='true'
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6418 $as_echo "yes" >&6; };
6419 else
6420 Py_OPT='false'
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; };
6423 fi
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429 if test "$Py_OPT" = 'true' ; then
6430 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
6431 # compile working code using it and both test_distutils and test_gdb are
6432 # broken when you do managed to get a toolchain that works with it. People
6433 # who want LTO need to use --with-lto themselves.
6434 DEF_MAKE_ALL_RULE="profile-opt"
6435 REQUIRE_PGO="yes"
6436 DEF_MAKE_RULE="build_all"
6437 else
6438 DEF_MAKE_ALL_RULE="build_all"
6439 REQUIRE_PGO="no"
6440 DEF_MAKE_RULE="all"
6441 fi
6442
6443
6444 # Enable LTO flags
6445
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6447 $as_echo_n "checking for --with-lto... " >&6; }
6448
6449 # Check whether --with-lto was given.
6450 if test "${with_lto+set}" = set; then :
6451 withval=$with_lto;
6452 if test "$withval" != no
6453 then
6454 Py_LTO='true'
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6456 $as_echo "yes" >&6; };
6457 else
6458 Py_LTO='false'
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; };
6461 fi
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467 if test "$Py_LTO" = 'true' ; then
6468 case $CC in
6469 *clang*)
6470 # Any changes made here should be reflected in the GCC+Darwin case below
6471 LTOFLAGS="-flto"
6472 ;;
6473 *gcc*)
6474 case $ac_sys_system in
6475 Darwin*)
6476 LTOFLAGS="-flto"
6477 ;;
6478 *)
6479 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6480 ;;
6481 esac
6482 ;;
6483 esac
6484
6485 if test "$ac_cv_prog_cc_g" = "yes"
6486 then
6487 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
6488 # to get debug symbols.
6489 LTOFLAGS="$LTOFLAGS -g"
6490 fi
6491 fi
6492
6493
6494 # Enable PGO flags.
6495
6496
6497
6498
6499
6500 # Make this work on systems where llvm tools are not installed with their
6501 # normal names in the default $PATH (ie: Ubuntu). They exist under the
6502 # non-suffixed name in their versioned llvm directory.
6503 llvm_bin_dir=''
6504 llvm_path="${PATH}"
6505 if test "${CC}" = "clang"
6506 then
6507 clang_bin=`which clang`
6508 # Some systems install clang elsewhere as a symlink to the real path
6509 # which is where the related llvm tools are located.
6510 if test -L "${clang_bin}"
6511 then
6512 clang_dir=`dirname "${clang_bin}"`
6513 clang_bin=`readlink "${clang_bin}"`
6514 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6515 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6516 fi
6517 fi
6518
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6520 $as_echo_n "checking target system type... " >&6; }
6521 if ${ac_cv_target+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 if test "x$target_alias" = x; then
6525 ac_cv_target=$ac_cv_host
6526 else
6527 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6528 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6529 fi
6530
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6533 $as_echo "$ac_cv_target" >&6; }
6534 case $ac_cv_target in
6535 *-*-*) ;;
6536 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6537 esac
6538 target=$ac_cv_target
6539 ac_save_IFS=$IFS; IFS='-'
6540 set x $ac_cv_target
6541 shift
6542 target_cpu=$1
6543 target_vendor=$2
6544 shift; shift
6545 # Remember, the first character of IFS is used to create $*,
6546 # except with old shells:
6547 target_os=$*
6548 IFS=$ac_save_IFS
6549 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6550
6551
6552 # The aliases save the names the user supplied, while $host etc.
6553 # will get canonicalized.
6554 test -n "$target_alias" &&
6555 test "$program_prefix$program_suffix$program_transform_name" = \
6556 NONENONEs,x,x, &&
6557 program_prefix=${target_alias}-
6558 # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args.
6559 set dummy $target_alias-llvm-profdata; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 case $LLVM_PROFDATA in
6566 [\\/]* | ?:[\\/]*)
6567 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6568 ;;
6569 *)
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in ${llvm_path}
6572 do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581 done
6582 done
6583 IFS=$as_save_IFS
6584
6585 ;;
6586 esac
6587 fi
6588 LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6589 if test -n "$LLVM_PROFDATA"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6591 $as_echo "$LLVM_PROFDATA" >&6; }
6592 else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 if test -z "$ac_cv_path_LLVM_PROFDATA"; then
6599 if test "$build" = "$target"; then
6600 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6601 # Extract the first word of "llvm-profdata", so it can be a program name with args.
6602 set dummy llvm-profdata; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 case $ac_pt_LLVM_PROFDATA in
6609 [\\/]* | ?:[\\/]*)
6610 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6611 ;;
6612 *)
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in ${llvm_path}
6615 do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''"
6629 ;;
6630 esac
6631 fi
6632 ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6633 if test -n "$ac_pt_LLVM_PROFDATA"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6635 $as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6636 else
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6639 fi
6640
6641 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6642 else
6643 LLVM_PROFDATA="''"
6644 fi
6645 else
6646 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6647 fi
6648
6649
6650 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6651 then
6652 LLVM_PROF_FOUND="found"
6653 else
6654 LLVM_PROF_FOUND="not-found"
6655 fi
6656 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6657 then
6658 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6659 if test -n "${found_llvm_profdata}"
6660 then
6661 # llvm-profdata isn't directly in $PATH in some cases.
6662 # https://apple.stackexchange.com/questions/197053/
6663 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6664 LLVM_PROF_FOUND=found
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6666 $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6667 fi
6668 fi
6669 LLVM_PROF_ERR=no
6670 case $CC in
6671 *clang*)
6672 # Any changes made here should be reflected in the GCC+Darwin case below
6673 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6674 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6675 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6676 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6677 if test $LLVM_PROF_FOUND = not-found
6678 then
6679 LLVM_PROF_ERR=yes
6680 if test "${REQUIRE_PGO}" = "yes"
6681 then
6682 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6683 fi
6684 fi
6685 ;;
6686 *gcc*)
6687 case $ac_sys_system in
6688 Darwin*)
6689 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6690 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6691 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6692 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6693 if test "${LLVM_PROF_FOUND}" = "not-found"
6694 then
6695 LLVM_PROF_ERR=yes
6696 if test "${REQUIRE_PGO}" = "yes"
6697 then
6698 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6699 fi
6700 fi
6701 ;;
6702 *)
6703 PGO_PROF_GEN_FLAG="-fprofile-generate"
6704 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6705 LLVM_PROF_MERGER="true"
6706 LLVM_PROF_FILE=""
6707 ;;
6708 esac
6709 ;;
6710 *icc*)
6711 PGO_PROF_GEN_FLAG="-prof-gen"
6712 PGO_PROF_USE_FLAG="-prof-use"
6713 LLVM_PROF_MERGER="true"
6714 LLVM_PROF_FILE=""
6715 ;;
6716 esac
6717
6718
6719 # On some compilers, pthreads are available without further options
6720 # (e.g. MacOS X). On some of these systems, the compiler will not
6721 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
6722 # So we have to see first whether pthreads are available without
6723 # options before we can check whether -Kpthread improves anything.
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
6725 $as_echo_n "checking whether pthreads are available without options... " >&6; }
6726 if ${ac_cv_pthread_is_default+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test "$cross_compiling" = yes; then :
6730 ac_cv_pthread_is_default=no
6731 else
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734
6735 #include <stdio.h>
6736 #include <pthread.h>
6737
6738 void* routine(void* p){return NULL;}
6739
6740 int main(){
6741 pthread_t p;
6742 if(pthread_create(&p,NULL,routine,NULL)!=0)
6743 return 1;
6744 (void)pthread_detach(p);
6745 return 0;
6746 }
6747
6748 _ACEOF
6749 if ac_fn_c_try_run "$LINENO"; then :
6750
6751 ac_cv_pthread_is_default=yes
6752 ac_cv_kthread=no
6753 ac_cv_pthread=no
6754
6755 else
6756 ac_cv_pthread_is_default=no
6757 fi
6758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6759 conftest.$ac_objext conftest.beam conftest.$ac_ext
6760 fi
6761
6762
6763 fi
6764
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
6766 $as_echo "$ac_cv_pthread_is_default" >&6; }
6767
6768
6769 if test $ac_cv_pthread_is_default = yes
6770 then
6771 ac_cv_kpthread=no
6772 else
6773 # -Kpthread, if available, provides the right #defines
6774 # and linker options to make pthread_create available
6775 # Some compilers won't report that they do not support -Kpthread,
6776 # so we need to run a program to see whether it really made the
6777 # function available.
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
6779 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
6780 if ${ac_cv_kpthread+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 ac_save_cc="$CC"
6784 CC="$CC -Kpthread"
6785 if test "$cross_compiling" = yes; then :
6786 ac_cv_kpthread=no
6787 else
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790
6791 #include <stdio.h>
6792 #include <pthread.h>
6793
6794 void* routine(void* p){return NULL;}
6795
6796 int main(){
6797 pthread_t p;
6798 if(pthread_create(&p,NULL,routine,NULL)!=0)
6799 return 1;
6800 (void)pthread_detach(p);
6801 return 0;
6802 }
6803
6804 _ACEOF
6805 if ac_fn_c_try_run "$LINENO"; then :
6806 ac_cv_kpthread=yes
6807 else
6808 ac_cv_kpthread=no
6809 fi
6810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6811 conftest.$ac_objext conftest.beam conftest.$ac_ext
6812 fi
6813
6814 CC="$ac_save_cc"
6815 fi
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
6818 $as_echo "$ac_cv_kpthread" >&6; }
6819 fi
6820
6821 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
6822 then
6823 # -Kthread, if available, provides the right #defines
6824 # and linker options to make pthread_create available
6825 # Some compilers won't report that they do not support -Kthread,
6826 # so we need to run a program to see whether it really made the
6827 # function available.
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
6829 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
6830 if ${ac_cv_kthread+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 ac_save_cc="$CC"
6834 CC="$CC -Kthread"
6835 if test "$cross_compiling" = yes; then :
6836 ac_cv_kthread=no
6837 else
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840
6841 #include <stdio.h>
6842 #include <pthread.h>
6843
6844 void* routine(void* p){return NULL;}
6845
6846 int main(){
6847 pthread_t p;
6848 if(pthread_create(&p,NULL,routine,NULL)!=0)
6849 return 1;
6850 (void)pthread_detach(p);
6851 return 0;
6852 }
6853
6854 _ACEOF
6855 if ac_fn_c_try_run "$LINENO"; then :
6856 ac_cv_kthread=yes
6857 else
6858 ac_cv_kthread=no
6859 fi
6860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6861 conftest.$ac_objext conftest.beam conftest.$ac_ext
6862 fi
6863
6864 CC="$ac_save_cc"
6865 fi
6866
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
6868 $as_echo "$ac_cv_kthread" >&6; }
6869 fi
6870
6871 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
6872 then
6873 # -pthread, if available, provides the right #defines
6874 # and linker options to make pthread_create available
6875 # Some compilers won't report that they do not support -pthread,
6876 # so we need to run a program to see whether it really made the
6877 # function available.
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
6879 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
6880 if ${ac_cv_pthread+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 ac_save_cc="$CC"
6884 CC="$CC -pthread"
6885 if test "$cross_compiling" = yes; then :
6886 ac_cv_pthread=no
6887 else
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890
6891 #include <stdio.h>
6892 #include <pthread.h>
6893
6894 void* routine(void* p){return NULL;}
6895
6896 int main(){
6897 pthread_t p;
6898 if(pthread_create(&p,NULL,routine,NULL)!=0)
6899 return 1;
6900 (void)pthread_detach(p);
6901 return 0;
6902 }
6903
6904 _ACEOF
6905 if ac_fn_c_try_run "$LINENO"; then :
6906 ac_cv_pthread=yes
6907 else
6908 ac_cv_pthread=no
6909 fi
6910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6911 conftest.$ac_objext conftest.beam conftest.$ac_ext
6912 fi
6913
6914 CC="$ac_save_cc"
6915 fi
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
6918 $as_echo "$ac_cv_pthread" >&6; }
6919 fi
6920
6921 # If we have set a CC compiler flag for thread support then
6922 # check if it works for CXX, too.
6923 ac_cv_cxx_thread=no
6924 if test ! -z "$CXX"
6925 then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
6927 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
6928 ac_save_cxx="$CXX"
6929
6930 if test "$ac_cv_kpthread" = "yes"
6931 then
6932 CXX="$CXX -Kpthread"
6933 ac_cv_cxx_thread=yes
6934 elif test "$ac_cv_kthread" = "yes"
6935 then
6936 CXX="$CXX -Kthread"
6937 ac_cv_cxx_thread=yes
6938 elif test "$ac_cv_pthread" = "yes"
6939 then
6940 CXX="$CXX -pthread"
6941 ac_cv_cxx_thread=yes
6942 fi
6943
6944 if test $ac_cv_cxx_thread = yes
6945 then
6946 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
6947 $CXX -c conftest.$ac_ext 2>&5
6948 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
6949 && test -s conftest$ac_exeext && ./conftest$ac_exeext
6950 then
6951 ac_cv_cxx_thread=yes
6952 else
6953 ac_cv_cxx_thread=no
6954 fi
6955 rm -fr conftest*
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
6958 $as_echo "$ac_cv_cxx_thread" >&6; }
6959 fi
6960 CXX="$ac_save_cxx"
6961
6962
6963 # checks for header files
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6965 $as_echo_n "checking for ANSI C header files... " >&6; }
6966 if ${ac_cv_header_stdc+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 #include <stdlib.h>
6972 #include <stdarg.h>
6973 #include <string.h>
6974 #include <float.h>
6975
6976 int
6977 main ()
6978 {
6979
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_compile "$LINENO"; then :
6985 ac_cv_header_stdc=yes
6986 else
6987 ac_cv_header_stdc=no
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990
6991 if test $ac_cv_header_stdc = yes; then
6992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 #include <string.h>
6996
6997 _ACEOF
6998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6999 $EGREP "memchr" >/dev/null 2>&1; then :
7000
7001 else
7002 ac_cv_header_stdc=no
7003 fi
7004 rm -f conftest*
7005
7006 fi
7007
7008 if test $ac_cv_header_stdc = yes; then
7009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012 #include <stdlib.h>
7013
7014 _ACEOF
7015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7016 $EGREP "free" >/dev/null 2>&1; then :
7017
7018 else
7019 ac_cv_header_stdc=no
7020 fi
7021 rm -f conftest*
7022
7023 fi
7024
7025 if test $ac_cv_header_stdc = yes; then
7026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7027 if test "$cross_compiling" = yes; then :
7028 :
7029 else
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7032 #include <ctype.h>
7033 #include <stdlib.h>
7034 #if ((' ' & 0x0FF) == 0x020)
7035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7037 #else
7038 # define ISLOWER(c) \
7039 (('a' <= (c) && (c) <= 'i') \
7040 || ('j' <= (c) && (c) <= 'r') \
7041 || ('s' <= (c) && (c) <= 'z'))
7042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7043 #endif
7044
7045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7046 int
7047 main ()
7048 {
7049 int i;
7050 for (i = 0; i < 256; i++)
7051 if (XOR (islower (i), ISLOWER (i))
7052 || toupper (i) != TOUPPER (i))
7053 return 2;
7054 return 0;
7055 }
7056 _ACEOF
7057 if ac_fn_c_try_run "$LINENO"; then :
7058
7059 else
7060 ac_cv_header_stdc=no
7061 fi
7062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7063 conftest.$ac_objext conftest.beam conftest.$ac_ext
7064 fi
7065
7066 fi
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7069 $as_echo "$ac_cv_header_stdc" >&6; }
7070 if test $ac_cv_header_stdc = yes; then
7071
7072 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7073
7074 fi
7075
7076 for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
7077 fcntl.h grp.h \
7078 ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \
7079 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
7080 unistd.h utime.h \
7081 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
7082 sys/lock.h sys/mkdev.h sys/modem.h \
7083 sys/param.h sys/poll.h sys/random.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
7084 sys/termio.h sys/time.h \
7085 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
7086 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
7087 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h sys/sysmacros.h
7088 do :
7089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7090 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7091 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7092 cat >>confdefs.h <<_ACEOF
7093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7094 _ACEOF
7095
7096 fi
7097
7098 done
7099
7100 ac_header_dirent=no
7101 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7102 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7104 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7105 if eval \${$as_ac_Header+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7110 #include <sys/types.h>
7111 #include <$ac_hdr>
7112
7113 int
7114 main ()
7115 {
7116 if ((DIR *) 0)
7117 return 0;
7118 ;
7119 return 0;
7120 }
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123 eval "$as_ac_Header=yes"
7124 else
7125 eval "$as_ac_Header=no"
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 fi
7129 eval ac_res=\$$as_ac_Header
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7131 $as_echo "$ac_res" >&6; }
7132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7133 cat >>confdefs.h <<_ACEOF
7134 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7135 _ACEOF
7136
7137 ac_header_dirent=$ac_hdr; break
7138 fi
7139
7140 done
7141 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7142 if test $ac_header_dirent = dirent.h; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7144 $as_echo_n "checking for library containing opendir... " >&6; }
7145 if ${ac_cv_search_opendir+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 ac_func_search_save_LIBS=$LIBS
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151
7152 /* Override any GCC internal prototype to avoid an error.
7153 Use char because int might match the return type of a GCC
7154 builtin and then its argument prototype would still apply. */
7155 #ifdef __cplusplus
7156 extern "C"
7157 #endif
7158 char opendir ();
7159 int
7160 main ()
7161 {
7162 return opendir ();
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 for ac_lib in '' dir; do
7168 if test -z "$ac_lib"; then
7169 ac_res="none required"
7170 else
7171 ac_res=-l$ac_lib
7172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7173 fi
7174 if ac_fn_c_try_link "$LINENO"; then :
7175 ac_cv_search_opendir=$ac_res
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext \
7178 conftest$ac_exeext
7179 if ${ac_cv_search_opendir+:} false; then :
7180 break
7181 fi
7182 done
7183 if ${ac_cv_search_opendir+:} false; then :
7184
7185 else
7186 ac_cv_search_opendir=no
7187 fi
7188 rm conftest.$ac_ext
7189 LIBS=$ac_func_search_save_LIBS
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7192 $as_echo "$ac_cv_search_opendir" >&6; }
7193 ac_res=$ac_cv_search_opendir
7194 if test "$ac_res" != no; then :
7195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7196
7197 fi
7198
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7201 $as_echo_n "checking for library containing opendir... " >&6; }
7202 if ${ac_cv_search_opendir+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 ac_func_search_save_LIBS=$LIBS
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208
7209 /* Override any GCC internal prototype to avoid an error.
7210 Use char because int might match the return type of a GCC
7211 builtin and then its argument prototype would still apply. */
7212 #ifdef __cplusplus
7213 extern "C"
7214 #endif
7215 char opendir ();
7216 int
7217 main ()
7218 {
7219 return opendir ();
7220 ;
7221 return 0;
7222 }
7223 _ACEOF
7224 for ac_lib in '' x; do
7225 if test -z "$ac_lib"; then
7226 ac_res="none required"
7227 else
7228 ac_res=-l$ac_lib
7229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7230 fi
7231 if ac_fn_c_try_link "$LINENO"; then :
7232 ac_cv_search_opendir=$ac_res
7233 fi
7234 rm -f core conftest.err conftest.$ac_objext \
7235 conftest$ac_exeext
7236 if ${ac_cv_search_opendir+:} false; then :
7237 break
7238 fi
7239 done
7240 if ${ac_cv_search_opendir+:} false; then :
7241
7242 else
7243 ac_cv_search_opendir=no
7244 fi
7245 rm conftest.$ac_ext
7246 LIBS=$ac_func_search_save_LIBS
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7249 $as_echo "$ac_cv_search_opendir" >&6; }
7250 ac_res=$ac_cv_search_opendir
7251 if test "$ac_res" != no; then :
7252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7253
7254 fi
7255
7256 fi
7257
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7259 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7260 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7265 #include <sys/types.h>
7266 int
7267 main ()
7268 {
7269 return makedev(0, 0);
7270 ;
7271 return 0;
7272 }
7273 _ACEOF
7274 if ac_fn_c_try_link "$LINENO"; then :
7275 ac_cv_header_sys_types_h_makedev=yes
7276 else
7277 ac_cv_header_sys_types_h_makedev=no
7278 fi
7279 rm -f core conftest.err conftest.$ac_objext \
7280 conftest$ac_exeext conftest.$ac_ext
7281
7282 fi
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7284 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7285
7286 if test $ac_cv_header_sys_types_h_makedev = no; then
7287 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
7288 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
7289
7290 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
7291
7292 fi
7293
7294
7295
7296 if test $ac_cv_header_sys_mkdev_h = no; then
7297 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
7298 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
7299
7300 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
7301
7302 fi
7303
7304
7305 fi
7306 fi
7307
7308
7309 # On Linux, netlink.h requires asm/types.h
7310 for ac_header in linux/netlink.h
7311 do :
7312 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
7313 #ifdef HAVE_ASM_TYPES_H
7314 #include <asm/types.h>
7315 #endif
7316 #ifdef HAVE_SYS_SOCKET_H
7317 #include <sys/socket.h>
7318 #endif
7319
7320 "
7321 if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
7322 cat >>confdefs.h <<_ACEOF
7323 #define HAVE_LINUX_NETLINK_H 1
7324 _ACEOF
7325
7326 fi
7327
7328 done
7329
7330
7331 # checks for typedefs
7332 was_it_defined=no
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
7334 $as_echo_n "checking for clock_t in time.h... " >&6; }
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 #include <time.h>
7338
7339 _ACEOF
7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7341 $EGREP "clock_t" >/dev/null 2>&1; then :
7342 was_it_defined=yes
7343 else
7344
7345
7346 $as_echo "#define clock_t long" >>confdefs.h
7347
7348
7349 fi
7350 rm -f conftest*
7351
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
7353 $as_echo "$was_it_defined" >&6; }
7354
7355 # Check whether using makedev requires defining _OSF_SOURCE
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
7357 $as_echo_n "checking for makedev... " >&6; }
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360
7361 #if defined(MAJOR_IN_MKDEV)
7362 #include <sys/mkdev.h>
7363 #elif defined(MAJOR_IN_SYSMACROS)
7364 #include <sys/sysmacros.h>
7365 #else
7366 #include <sys/types.h>
7367 #endif
7368 int
7369 main ()
7370 {
7371 makedev(0, 0)
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 if ac_fn_c_try_link "$LINENO"; then :
7377 ac_cv_has_makedev=yes
7378 else
7379 ac_cv_has_makedev=no
7380 fi
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383 if test "$ac_cv_has_makedev" = "no"; then
7384 # we didn't link, try if _OSF_SOURCE will allow us to link
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7387
7388 #define _OSF_SOURCE 1
7389 #include <sys/types.h>
7390
7391 int
7392 main ()
7393 {
7394 makedev(0, 0)
7395 ;
7396 return 0;
7397 }
7398 _ACEOF
7399 if ac_fn_c_try_link "$LINENO"; then :
7400 ac_cv_has_makedev=yes
7401 else
7402 ac_cv_has_makedev=no
7403 fi
7404 rm -f core conftest.err conftest.$ac_objext \
7405 conftest$ac_exeext conftest.$ac_ext
7406 if test "$ac_cv_has_makedev" = "yes"; then
7407
7408 $as_echo "#define _OSF_SOURCE 1" >>confdefs.h
7409
7410 fi
7411 fi
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
7413 $as_echo "$ac_cv_has_makedev" >&6; }
7414 if test "$ac_cv_has_makedev" = "yes"; then
7415
7416 $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
7417
7418 fi
7419
7420 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7421 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7422 # defined, but the compiler does not support pragma redefine_extname,
7423 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7424 # structures (such as rlimit64) without declaring them. As a
7425 # work-around, disable LFS on such configurations
7426
7427 use_lfs=yes
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
7429 $as_echo_n "checking Solaris LFS bug... " >&6; }
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432
7433 #define _LARGEFILE_SOURCE 1
7434 #define _FILE_OFFSET_BITS 64
7435 #include <sys/resource.h>
7436
7437 int
7438 main ()
7439 {
7440 struct rlimit foo;
7441 ;
7442 return 0;
7443 }
7444 _ACEOF
7445 if ac_fn_c_try_compile "$LINENO"; then :
7446 sol_lfs_bug=no
7447 else
7448 sol_lfs_bug=yes
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
7452 $as_echo "$sol_lfs_bug" >&6; }
7453 if test "$sol_lfs_bug" = "yes"; then
7454 use_lfs=no
7455 fi
7456
7457 if test "$use_lfs" = "yes"; then
7458 # Two defines needed to enable largefile support on various platforms
7459 # These may affect some typedefs
7460 case $ac_sys_system/$ac_sys_release in
7461 AIX*)
7462
7463 $as_echo "#define _LARGE_FILES 1" >>confdefs.h
7464
7465 ;;
7466 esac
7467
7468 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
7469
7470
7471 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7472
7473 fi
7474
7475 # Add some code to confdefs.h so that the test for off_t works on SCO
7476 cat >> confdefs.h <<\EOF
7477 #if defined(SCO_DS)
7478 #undef _OFF_T
7479 #endif
7480 EOF
7481
7482 # Type availability checks
7483 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7484 if test "x$ac_cv_type_mode_t" = xyes; then :
7485
7486 else
7487
7488 cat >>confdefs.h <<_ACEOF
7489 #define mode_t int
7490 _ACEOF
7491
7492 fi
7493
7494 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7495 if test "x$ac_cv_type_off_t" = xyes; then :
7496
7497 else
7498
7499 cat >>confdefs.h <<_ACEOF
7500 #define off_t long int
7501 _ACEOF
7502
7503 fi
7504
7505 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7506 if test "x$ac_cv_type_pid_t" = xyes; then :
7507
7508 else
7509
7510 cat >>confdefs.h <<_ACEOF
7511 #define pid_t int
7512 _ACEOF
7513
7514 fi
7515
7516
7517 cat >>confdefs.h <<_ACEOF
7518 #define RETSIGTYPE void
7519 _ACEOF
7520
7521 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7522 if test "x$ac_cv_type_size_t" = xyes; then :
7523
7524 else
7525
7526 cat >>confdefs.h <<_ACEOF
7527 #define size_t unsigned int
7528 _ACEOF
7529
7530 fi
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7533 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7534 if ${ac_cv_type_uid_t+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 #include <sys/types.h>
7540
7541 _ACEOF
7542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7543 $EGREP "uid_t" >/dev/null 2>&1; then :
7544 ac_cv_type_uid_t=yes
7545 else
7546 ac_cv_type_uid_t=no
7547 fi
7548 rm -f conftest*
7549
7550 fi
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7552 $as_echo "$ac_cv_type_uid_t" >&6; }
7553 if test $ac_cv_type_uid_t = no; then
7554
7555 $as_echo "#define uid_t int" >>confdefs.h
7556
7557
7558 $as_echo "#define gid_t int" >>confdefs.h
7559
7560 fi
7561
7562
7563 # There are two separate checks for each of the exact-width integer types we
7564 # need. First we check whether the type is available using the usual
7565 # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h>
7566 # and <stdint.h> where available). We then also use the special type checks of
7567 # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available
7568 # directly, #define's uint32_t to be a suitable type.
7569
7570 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7571 if test "x$ac_cv_type_uint32_t" = xyes; then :
7572
7573 $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
7574
7575 fi
7576
7577 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7578 case $ac_cv_c_uint32_t in #(
7579 no|yes) ;; #(
7580 *)
7581
7582 $as_echo "#define _UINT32_T 1" >>confdefs.h
7583
7584
7585 cat >>confdefs.h <<_ACEOF
7586 #define uint32_t $ac_cv_c_uint32_t
7587 _ACEOF
7588 ;;
7589 esac
7590
7591
7592 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
7593 if test "x$ac_cv_type_uint64_t" = xyes; then :
7594
7595 $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h
7596
7597 fi
7598
7599 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7600 case $ac_cv_c_uint64_t in #(
7601 no|yes) ;; #(
7602 *)
7603
7604 $as_echo "#define _UINT64_T 1" >>confdefs.h
7605
7606
7607 cat >>confdefs.h <<_ACEOF
7608 #define uint64_t $ac_cv_c_uint64_t
7609 _ACEOF
7610 ;;
7611 esac
7612
7613
7614 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7615 if test "x$ac_cv_type_int32_t" = xyes; then :
7616
7617 $as_echo "#define HAVE_INT32_T 1" >>confdefs.h
7618
7619 fi
7620
7621 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7622 case $ac_cv_c_int32_t in #(
7623 no|yes) ;; #(
7624 *)
7625
7626 cat >>confdefs.h <<_ACEOF
7627 #define int32_t $ac_cv_c_int32_t
7628 _ACEOF
7629 ;;
7630 esac
7631
7632
7633 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
7634 if test "x$ac_cv_type_int64_t" = xyes; then :
7635
7636 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
7637
7638 fi
7639
7640 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7641 case $ac_cv_c_int64_t in #(
7642 no|yes) ;; #(
7643 *)
7644
7645 cat >>confdefs.h <<_ACEOF
7646 #define int64_t $ac_cv_c_int64_t
7647 _ACEOF
7648 ;;
7649 esac
7650
7651
7652 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7653 if test "x$ac_cv_type_ssize_t" = xyes; then :
7654
7655 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
7656
7657 fi
7658
7659
7660 # Sizes of various common basic types
7661 # ANSI C requires sizeof(char) == 1, so no need to check it
7662 # The cast to long int works around a bug in the HP C Compiler
7663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7665 # This bug is HP SR number 8606223364.
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7667 $as_echo_n "checking size of int... " >&6; }
7668 if ${ac_cv_sizeof_int+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7672
7673 else
7674 if test "$ac_cv_type_int" = yes; then
7675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7677 as_fn_error 77 "cannot compute sizeof (int)
7678 See \`config.log' for more details" "$LINENO" 5; }
7679 else
7680 ac_cv_sizeof_int=0
7681 fi
7682 fi
7683
7684 fi
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7686 $as_echo "$ac_cv_sizeof_int" >&6; }
7687
7688
7689
7690 cat >>confdefs.h <<_ACEOF
7691 #define SIZEOF_INT $ac_cv_sizeof_int
7692 _ACEOF
7693
7694
7695 # The cast to long int works around a bug in the HP C Compiler
7696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7698 # This bug is HP SR number 8606223364.
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7700 $as_echo_n "checking size of long... " >&6; }
7701 if ${ac_cv_sizeof_long+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7705
7706 else
7707 if test "$ac_cv_type_long" = yes; then
7708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7710 as_fn_error 77 "cannot compute sizeof (long)
7711 See \`config.log' for more details" "$LINENO" 5; }
7712 else
7713 ac_cv_sizeof_long=0
7714 fi
7715 fi
7716
7717 fi
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7719 $as_echo "$ac_cv_sizeof_long" >&6; }
7720
7721
7722
7723 cat >>confdefs.h <<_ACEOF
7724 #define SIZEOF_LONG $ac_cv_sizeof_long
7725 _ACEOF
7726
7727
7728 # The cast to long int works around a bug in the HP C Compiler
7729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7731 # This bug is HP SR number 8606223364.
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7733 $as_echo_n "checking size of void *... " >&6; }
7734 if ${ac_cv_sizeof_void_p+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
7738
7739 else
7740 if test "$ac_cv_type_void_p" = yes; then
7741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7743 as_fn_error 77 "cannot compute sizeof (void *)
7744 See \`config.log' for more details" "$LINENO" 5; }
7745 else
7746 ac_cv_sizeof_void_p=0
7747 fi
7748 fi
7749
7750 fi
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7752 $as_echo "$ac_cv_sizeof_void_p" >&6; }
7753
7754
7755
7756 cat >>confdefs.h <<_ACEOF
7757 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7758 _ACEOF
7759
7760
7761 # The cast to long int works around a bug in the HP C Compiler
7762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7764 # This bug is HP SR number 8606223364.
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7766 $as_echo_n "checking size of short... " >&6; }
7767 if ${ac_cv_sizeof_short+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7771
7772 else
7773 if test "$ac_cv_type_short" = yes; then
7774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7776 as_fn_error 77 "cannot compute sizeof (short)
7777 See \`config.log' for more details" "$LINENO" 5; }
7778 else
7779 ac_cv_sizeof_short=0
7780 fi
7781 fi
7782
7783 fi
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7785 $as_echo "$ac_cv_sizeof_short" >&6; }
7786
7787
7788
7789 cat >>confdefs.h <<_ACEOF
7790 #define SIZEOF_SHORT $ac_cv_sizeof_short
7791 _ACEOF
7792
7793
7794 # The cast to long int works around a bug in the HP C Compiler
7795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7797 # This bug is HP SR number 8606223364.
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7799 $as_echo_n "checking size of float... " >&6; }
7800 if ${ac_cv_sizeof_float+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
7804
7805 else
7806 if test "$ac_cv_type_float" = yes; then
7807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7809 as_fn_error 77 "cannot compute sizeof (float)
7810 See \`config.log' for more details" "$LINENO" 5; }
7811 else
7812 ac_cv_sizeof_float=0
7813 fi
7814 fi
7815
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7818 $as_echo "$ac_cv_sizeof_float" >&6; }
7819
7820
7821
7822 cat >>confdefs.h <<_ACEOF
7823 #define SIZEOF_FLOAT $ac_cv_sizeof_float
7824 _ACEOF
7825
7826
7827 # The cast to long int works around a bug in the HP C Compiler
7828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7830 # This bug is HP SR number 8606223364.
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7832 $as_echo_n "checking size of double... " >&6; }
7833 if ${ac_cv_sizeof_double+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
7837
7838 else
7839 if test "$ac_cv_type_double" = yes; then
7840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7842 as_fn_error 77 "cannot compute sizeof (double)
7843 See \`config.log' for more details" "$LINENO" 5; }
7844 else
7845 ac_cv_sizeof_double=0
7846 fi
7847 fi
7848
7849 fi
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7851 $as_echo "$ac_cv_sizeof_double" >&6; }
7852
7853
7854
7855 cat >>confdefs.h <<_ACEOF
7856 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7857 _ACEOF
7858
7859
7860 # The cast to long int works around a bug in the HP C Compiler
7861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7863 # This bug is HP SR number 8606223364.
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
7865 $as_echo_n "checking size of fpos_t... " >&6; }
7866 if ${ac_cv_sizeof_fpos_t+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
7870
7871 else
7872 if test "$ac_cv_type_fpos_t" = yes; then
7873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7875 as_fn_error 77 "cannot compute sizeof (fpos_t)
7876 See \`config.log' for more details" "$LINENO" 5; }
7877 else
7878 ac_cv_sizeof_fpos_t=0
7879 fi
7880 fi
7881
7882 fi
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
7884 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
7885
7886
7887
7888 cat >>confdefs.h <<_ACEOF
7889 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
7890 _ACEOF
7891
7892
7893 # The cast to long int works around a bug in the HP C Compiler
7894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7895 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7896 # This bug is HP SR number 8606223364.
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
7898 $as_echo_n "checking size of size_t... " >&6; }
7899 if ${ac_cv_sizeof_size_t+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
7903
7904 else
7905 if test "$ac_cv_type_size_t" = yes; then
7906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7908 as_fn_error 77 "cannot compute sizeof (size_t)
7909 See \`config.log' for more details" "$LINENO" 5; }
7910 else
7911 ac_cv_sizeof_size_t=0
7912 fi
7913 fi
7914
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
7917 $as_echo "$ac_cv_sizeof_size_t" >&6; }
7918
7919
7920
7921 cat >>confdefs.h <<_ACEOF
7922 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
7923 _ACEOF
7924
7925
7926 # The cast to long int works around a bug in the HP C Compiler
7927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7929 # This bug is HP SR number 8606223364.
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
7931 $as_echo_n "checking size of pid_t... " >&6; }
7932 if ${ac_cv_sizeof_pid_t+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
7936
7937 else
7938 if test "$ac_cv_type_pid_t" = yes; then
7939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7941 as_fn_error 77 "cannot compute sizeof (pid_t)
7942 See \`config.log' for more details" "$LINENO" 5; }
7943 else
7944 ac_cv_sizeof_pid_t=0
7945 fi
7946 fi
7947
7948 fi
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
7950 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
7951
7952
7953
7954 cat >>confdefs.h <<_ACEOF
7955 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
7956 _ACEOF
7957
7958
7959
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
7961 $as_echo_n "checking for long long support... " >&6; }
7962 have_long_long=no
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965
7966 int
7967 main ()
7968 {
7969 long long x; x = (long long)0;
7970 ;
7971 return 0;
7972 }
7973 _ACEOF
7974 if ac_fn_c_try_compile "$LINENO"; then :
7975
7976
7977 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
7978
7979 have_long_long=yes
7980
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
7984 $as_echo "$have_long_long" >&6; }
7985 if test "$have_long_long" = yes ; then
7986 # The cast to long int works around a bug in the HP C Compiler
7987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7989 # This bug is HP SR number 8606223364.
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7991 $as_echo_n "checking size of long long... " >&6; }
7992 if ${ac_cv_sizeof_long_long+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7996
7997 else
7998 if test "$ac_cv_type_long_long" = yes; then
7999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8001 as_fn_error 77 "cannot compute sizeof (long long)
8002 See \`config.log' for more details" "$LINENO" 5; }
8003 else
8004 ac_cv_sizeof_long_long=0
8005 fi
8006 fi
8007
8008 fi
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8010 $as_echo "$ac_cv_sizeof_long_long" >&6; }
8011
8012
8013
8014 cat >>confdefs.h <<_ACEOF
8015 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8016 _ACEOF
8017
8018
8019 fi
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
8022 $as_echo_n "checking for long double support... " >&6; }
8023 have_long_double=no
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026
8027 int
8028 main ()
8029 {
8030 long double x; x = (long double)0;
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 if ac_fn_c_try_compile "$LINENO"; then :
8036
8037
8038 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
8039
8040 have_long_double=yes
8041
8042 fi
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
8045 $as_echo "$have_long_double" >&6; }
8046 if test "$have_long_double" = yes ; then
8047 # The cast to long int works around a bug in the HP C Compiler
8048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8050 # This bug is HP SR number 8606223364.
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8052 $as_echo_n "checking size of long double... " >&6; }
8053 if ${ac_cv_sizeof_long_double+:} false; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8057
8058 else
8059 if test "$ac_cv_type_long_double" = yes; then
8060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8062 as_fn_error 77 "cannot compute sizeof (long double)
8063 See \`config.log' for more details" "$LINENO" 5; }
8064 else
8065 ac_cv_sizeof_long_double=0
8066 fi
8067 fi
8068
8069 fi
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8071 $as_echo "$ac_cv_sizeof_long_double" >&6; }
8072
8073
8074
8075 cat >>confdefs.h <<_ACEOF
8076 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8077 _ACEOF
8078
8079
8080 fi
8081
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
8083 $as_echo_n "checking for _Bool support... " >&6; }
8084 have_c99_bool=no
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087
8088 int
8089 main ()
8090 {
8091 _Bool x; x = (_Bool)0;
8092 ;
8093 return 0;
8094 }
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097
8098
8099 $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
8100
8101 have_c99_bool=yes
8102
8103 fi
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
8106 $as_echo "$have_c99_bool" >&6; }
8107 if test "$have_c99_bool" = yes ; then
8108 # The cast to long int works around a bug in the HP C Compiler
8109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8111 # This bug is HP SR number 8606223364.
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8113 $as_echo_n "checking size of _Bool... " >&6; }
8114 if ${ac_cv_sizeof__Bool+:} false; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
8118
8119 else
8120 if test "$ac_cv_type__Bool" = yes; then
8121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8123 as_fn_error 77 "cannot compute sizeof (_Bool)
8124 See \`config.log' for more details" "$LINENO" 5; }
8125 else
8126 ac_cv_sizeof__Bool=0
8127 fi
8128 fi
8129
8130 fi
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8132 $as_echo "$ac_cv_sizeof__Bool" >&6; }
8133
8134
8135
8136 cat >>confdefs.h <<_ACEOF
8137 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
8138 _ACEOF
8139
8140
8141 fi
8142
8143 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
8144 #include <stdint.h>
8145 #endif
8146 #ifdef HAVE_INTTYPES_H
8147 #include <inttypes.h>
8148 #endif
8149 "
8150 if test "x$ac_cv_type_uintptr_t" = xyes; then :
8151
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_UINTPTR_T 1
8154 _ACEOF
8155
8156 # The cast to long int works around a bug in the HP C Compiler
8157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8159 # This bug is HP SR number 8606223364.
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8161 $as_echo_n "checking size of uintptr_t... " >&6; }
8162 if ${ac_cv_sizeof_uintptr_t+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
8166
8167 else
8168 if test "$ac_cv_type_uintptr_t" = yes; then
8169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8171 as_fn_error 77 "cannot compute sizeof (uintptr_t)
8172 See \`config.log' for more details" "$LINENO" 5; }
8173 else
8174 ac_cv_sizeof_uintptr_t=0
8175 fi
8176 fi
8177
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8180 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8181
8182
8183
8184 cat >>confdefs.h <<_ACEOF
8185 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8186 _ACEOF
8187
8188
8189 fi
8190
8191
8192 # The cast to long int works around a bug in the HP C Compiler
8193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8195 # This bug is HP SR number 8606223364.
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8197 $as_echo_n "checking size of off_t... " >&6; }
8198 if ${ac_cv_sizeof_off_t+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
8202 #ifdef HAVE_SYS_TYPES_H
8203 #include <sys/types.h>
8204 #endif
8205
8206 "; then :
8207
8208 else
8209 if test "$ac_cv_type_off_t" = yes; then
8210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8212 as_fn_error 77 "cannot compute sizeof (off_t)
8213 See \`config.log' for more details" "$LINENO" 5; }
8214 else
8215 ac_cv_sizeof_off_t=0
8216 fi
8217 fi
8218
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8221 $as_echo "$ac_cv_sizeof_off_t" >&6; }
8222
8223
8224
8225 cat >>confdefs.h <<_ACEOF
8226 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8227 _ACEOF
8228
8229
8230
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8232 $as_echo_n "checking whether to enable large file support... " >&6; }
8233 if test "$have_long_long" = yes
8234 then
8235 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8236 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8237
8238 $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8241 $as_echo "yes" >&6; }
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8245 fi
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8249 fi
8250
8251 # The cast to long int works around a bug in the HP C Compiler
8252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8254 # This bug is HP SR number 8606223364.
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8256 $as_echo_n "checking size of time_t... " >&6; }
8257 if ${ac_cv_sizeof_time_t+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
8261 #ifdef HAVE_SYS_TYPES_H
8262 #include <sys/types.h>
8263 #endif
8264 #ifdef HAVE_TIME_H
8265 #include <time.h>
8266 #endif
8267
8268 "; then :
8269
8270 else
8271 if test "$ac_cv_type_time_t" = yes; then
8272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8274 as_fn_error 77 "cannot compute sizeof (time_t)
8275 See \`config.log' for more details" "$LINENO" 5; }
8276 else
8277 ac_cv_sizeof_time_t=0
8278 fi
8279 fi
8280
8281 fi
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
8283 $as_echo "$ac_cv_sizeof_time_t" >&6; }
8284
8285
8286
8287 cat >>confdefs.h <<_ACEOF
8288 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
8289 _ACEOF
8290
8291
8292
8293 # if have pthread_t then define SIZEOF_PTHREAD_T
8294 ac_save_cc="$CC"
8295 if test "$ac_cv_kpthread" = "yes"
8296 then CC="$CC -Kpthread"
8297 elif test "$ac_cv_kthread" = "yes"
8298 then CC="$CC -Kthread"
8299 elif test "$ac_cv_pthread" = "yes"
8300 then CC="$CC -pthread"
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
8303 $as_echo_n "checking for pthread_t... " >&6; }
8304 have_pthread_t=no
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307
8308 #include <pthread.h>
8309 int
8310 main ()
8311 {
8312 pthread_t x; x = *(pthread_t*)0;
8313 ;
8314 return 0;
8315 }
8316
8317 _ACEOF
8318 if ac_fn_c_try_compile "$LINENO"; then :
8319 have_pthread_t=yes
8320 fi
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
8323 $as_echo "$have_pthread_t" >&6; }
8324 if test "$have_pthread_t" = yes ; then
8325 # The cast to long int works around a bug in the HP C Compiler
8326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8328 # This bug is HP SR number 8606223364.
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
8330 $as_echo_n "checking size of pthread_t... " >&6; }
8331 if ${ac_cv_sizeof_pthread_t+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
8335 #ifdef HAVE_PTHREAD_H
8336 #include <pthread.h>
8337 #endif
8338
8339 "; then :
8340
8341 else
8342 if test "$ac_cv_type_pthread_t" = yes; then
8343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8345 as_fn_error 77 "cannot compute sizeof (pthread_t)
8346 See \`config.log' for more details" "$LINENO" 5; }
8347 else
8348 ac_cv_sizeof_pthread_t=0
8349 fi
8350 fi
8351
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
8354 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
8355
8356
8357
8358 cat >>confdefs.h <<_ACEOF
8359 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
8360 _ACEOF
8361
8362
8363 fi
8364 CC="$ac_save_cc"
8365
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
8367 $as_echo_n "checking for --enable-toolbox-glue... " >&6; }
8368 # Check whether --enable-toolbox-glue was given.
8369 if test "${enable_toolbox_glue+set}" = set; then :
8370 enableval=$enable_toolbox_glue;
8371 fi
8372
8373
8374 if test -z "$enable_toolbox_glue"
8375 then
8376 case $ac_sys_system/$ac_sys_release in
8377 Darwin/*)
8378 enable_toolbox_glue="yes";;
8379 *)
8380 enable_toolbox_glue="no";;
8381 esac
8382 fi
8383 case "$enable_toolbox_glue" in
8384 yes)
8385 extra_machdep_objs="Python/mactoolboxglue.o"
8386 extra_undefs="-u _PyMac_Error"
8387
8388 $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
8389
8390 ;;
8391 *)
8392 extra_machdep_objs=""
8393 extra_undefs=""
8394 ;;
8395 esac
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
8397 $as_echo "$enable_toolbox_glue" >&6; }
8398
8399
8400
8401 case $ac_sys_system/$ac_sys_release in
8402 Darwin/[01567]\..*)
8403 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
8404 ;;
8405 Darwin/*)
8406 OTHER_LIBTOOL_OPT=""
8407 ;;
8408 esac
8409
8410
8411
8412 case $ac_sys_system/$ac_sys_release in
8413 Darwin/[01567]\..*)
8414 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
8415 if test "${enable_universalsdk}"; then
8416 :
8417 else
8418 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
8419 fi
8420 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8421 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8422 Darwin/*)
8423 gcc_version=`gcc -dumpversion`
8424 if test ${gcc_version} '<' 4.0
8425 then
8426 LIBTOOL_CRUFT="-lcc_dynamic"
8427 else
8428 LIBTOOL_CRUFT=""
8429 fi
8430 if test "$cross_compiling" = yes; then :
8431 ac_osx_32bit=yes
8432 else
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435
8436 #include <unistd.h>
8437 int main(int argc, char*argv[])
8438 {
8439 if (sizeof(long) == 4) {
8440 return 0;
8441 } else {
8442 return 1;
8443 }
8444 }
8445
8446 _ACEOF
8447 if ac_fn_c_try_run "$LINENO"; then :
8448 ac_osx_32bit=yes
8449 else
8450 ac_osx_32bit=no
8451 fi
8452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8453 conftest.$ac_objext conftest.beam conftest.$ac_ext
8454 fi
8455
8456
8457 if test "${ac_osx_32bit}" = "yes"; then
8458 case `/usr/bin/arch` in
8459 i386)
8460 MACOSX_DEFAULT_ARCH="i386"
8461 ;;
8462 ppc)
8463 MACOSX_DEFAULT_ARCH="ppc"
8464 ;;
8465 *)
8466 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
8467 ;;
8468 esac
8469 else
8470 case `/usr/bin/arch` in
8471 i386)
8472 MACOSX_DEFAULT_ARCH="x86_64"
8473 ;;
8474 ppc)
8475 MACOSX_DEFAULT_ARCH="ppc64"
8476 ;;
8477 *)
8478 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
8479 ;;
8480 esac
8481
8482 fi
8483
8484 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
8485 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8486 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8487 esac
8488
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
8490 $as_echo_n "checking for --enable-framework... " >&6; }
8491 if test "$enable_framework"
8492 then
8493 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
8494 # -F. is needed to allow linking to the framework while
8495 # in the build location.
8496
8497 $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8500 $as_echo "yes" >&6; }
8501 if test $enable_shared = "yes"
8502 then
8503 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5
8504 fi
8505 else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8508 fi
8509
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
8511 $as_echo_n "checking for dyld... " >&6; }
8512 case $ac_sys_system/$ac_sys_release in
8513 Darwin/*)
8514
8515 $as_echo "#define WITH_DYLD 1" >>confdefs.h
8516
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
8518 $as_echo "always on for Darwin" >&6; }
8519 ;;
8520 *)
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8523 ;;
8524 esac
8525
8526 # Set info about shared libraries.
8527
8528
8529
8530
8531
8532
8533 # SO is the extension of shared libraries `(including the dot!)
8534 # -- usually .so, .sl on HP-UX, .dll on Cygwin
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
8536 $as_echo_n "checking SO... " >&6; }
8537 if test -z "$SO"
8538 then
8539 case $ac_sys_system in
8540 hp*|HP*)
8541 case `uname -m` in
8542 ia64) SO=.so;;
8543 *) SO=.sl;;
8544 esac
8545 ;;
8546 CYGWIN*) SO=.dll;;
8547 *) SO=.so;;
8548 esac
8549 else
8550 # this might also be a termcap variable, see #610332
8551 echo
8552 echo '====================================================================='
8553 echo '+ +'
8554 echo '+ WARNING: You have set SO in your environment. +'
8555 echo '+ Do you really mean to change the extension for shared libraries? +'
8556 echo '+ Continuing in 10 seconds to let you to ponder. +'
8557 echo '+ +'
8558 echo '====================================================================='
8559 sleep 10
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
8562 $as_echo "$SO" >&6; }
8563
8564
8565 cat >>confdefs.h <<_ACEOF
8566 #define SHLIB_EXT "$SO"
8567 _ACEOF
8568
8569 # LDSHARED is the ld *command* used to create shared library
8570 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
8571 # (Shared libraries in this instance are shared modules to be loaded into
8572 # Python, as opposed to building Python itself as a shared library.)
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
8574 $as_echo_n "checking LDSHARED... " >&6; }
8575 if test -z "$LDSHARED"
8576 then
8577 case $ac_sys_system/$ac_sys_release in
8578 AIX*)
8579 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
8580 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
8581 ;;
8582 BeOS*)
8583 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
8584 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
8585 ;;
8586 IRIX/5*) LDSHARED="ld -shared";;
8587 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
8588 SunOS/5*)
8589 if test "$GCC" = "yes" ; then
8590 LDSHARED='$(CC) -shared'
8591 LDCXXSHARED='$(CXX) -shared'
8592 else
8593 LDSHARED='$(CC) -G'
8594 LDCXXSHARED='$(CXX) -G'
8595 fi ;;
8596 hp*|HP*)
8597 if test "$GCC" = "yes" ; then
8598 LDSHARED='$(CC) -shared'
8599 LDCXXSHARED='$(CXX) -shared'
8600 else
8601 LDSHARED='ld -b'
8602 fi ;;
8603 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
8604 Darwin/1.3*)
8605 LDSHARED='$(CC) -bundle'
8606 LDCXXSHARED='$(CXX) -bundle'
8607 if test "$enable_framework" ; then
8608 # Link against the framework. All externals should be defined.
8609 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8610 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8611 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8612 else
8613 # No framework. Ignore undefined symbols, assuming they come from Python
8614 LDSHARED="$LDSHARED -undefined suppress"
8615 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
8616 fi ;;
8617 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
8618 LDSHARED='$(CC) -bundle'
8619 LDCXXSHARED='$(CXX) -bundle'
8620 if test "$enable_framework" ; then
8621 # Link against the framework. All externals should be defined.
8622 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8623 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8624 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8625 else
8626 # No framework, use the Python app as bundle-loader
8627 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8628 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8629 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8630 fi ;;
8631 Darwin/*)
8632 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
8633 # This allows an extension to be used in any Python
8634
8635 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
8636 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8637 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
8638 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8639 if test ${dep_target_major} -eq 10 && \
8640 test ${dep_target_minor} -le 2
8641 then
8642 # building for OS X 10.0 through 10.2
8643 LDSHARED='$(CC) -bundle'
8644 LDCXXSHARED='$(CXX) -bundle'
8645 if test "$enable_framework" ; then
8646 # Link against the framework. All externals should be defined.
8647 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8648 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8649 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8650 else
8651 # No framework, use the Python app as bundle-loader
8652 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8653 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8654 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
8655 fi
8656 else
8657 # building for OS X 10.3 and later
8658 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
8659 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
8660 BLDSHARED="$LDSHARED"
8661 fi
8662 ;;
8663 Linux*|GNU*|QNX*)
8664 LDSHARED='$(CC) -shared'
8665 LDCXXSHARED='$(CXX) -shared';;
8666 BSD/OS*/4*)
8667 LDSHARED="gcc -shared"
8668 LDCXXSHARED="g++ -shared";;
8669 FreeBSD*)
8670 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8671 then
8672 LDSHARED='$(CC) -shared'
8673 LDCXXSHARED='$(CXX) -shared'
8674 else
8675 LDSHARED="ld -Bshareable"
8676 fi;;
8677 OpenBSD*)
8678 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8679 then
8680 LDSHARED='$(CC) -shared $(CCSHARED)'
8681 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
8682 else
8683 case `uname -r` in
8684 [01].* | 2.[0-7] | 2.[0-7].*)
8685 LDSHARED="ld -Bshareable ${LDFLAGS}"
8686 ;;
8687 *)
8688 LDSHARED='$(CC) -shared $(CCSHARED)'
8689 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
8690 ;;
8691 esac
8692 fi;;
8693 NetBSD*|DragonFly*)
8694 LDSHARED='$(CC) -shared'
8695 LDCXXSHARED='$(CXX) -shared';;
8696 OpenUNIX*|UnixWare*)
8697 if test "$GCC" = "yes" ; then
8698 LDSHARED='$(CC) -shared'
8699 LDCXXSHARED='$(CXX) -shared'
8700 else
8701 LDSHARED='$(CC) -G'
8702 LDCXXSHARED='$(CXX) -G'
8703 fi;;
8704 SCO_SV*)
8705 LDSHARED='$(CC) -Wl,-G,-Bexport'
8706 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
8707 CYGWIN*)
8708 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
8709 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
8710 atheos*)
8711 LDSHARED="gcc -shared"
8712 LDCXXSHARED="g++ -shared";;
8713 *) LDSHARED="ld";;
8714 esac
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
8717 $as_echo "$LDSHARED" >&6; }
8718 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
8719 BLDSHARED=${BLDSHARED-$LDSHARED}
8720 # CCSHARED are the C *flags* used to create objects to go into a shared
8721 # library (module) -- this is only needed for a few systems
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
8723 $as_echo_n "checking CCSHARED... " >&6; }
8724 if test -z "$CCSHARED"
8725 then
8726 case $ac_sys_system/$ac_sys_release in
8727 SunOS*) if test "$GCC" = yes;
8728 then CCSHARED="-fPIC";
8729 elif test `uname -p` = sparc;
8730 then CCSHARED="-xcode=pic32";
8731 else CCSHARED="-Kpic";
8732 fi;;
8733 hp*|HP*) if test "$GCC" = yes;
8734 then CCSHARED="-fPIC";
8735 else CCSHARED="+z";
8736 fi;;
8737 Linux*|GNU*) CCSHARED="-fPIC";;
8738 BSD/OS*/4*) CCSHARED="-fpic";;
8739 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
8740 OpenUNIX*|UnixWare*)
8741 if test "$GCC" = "yes"
8742 then CCSHARED="-fPIC"
8743 else CCSHARED="-KPIC"
8744 fi;;
8745 SCO_SV*)
8746 if test "$GCC" = "yes"
8747 then CCSHARED="-fPIC"
8748 else CCSHARED="-Kpic -belf"
8749 fi;;
8750 IRIX*/6*) case $CC in
8751 *gcc*) CCSHARED="-shared";;
8752 *) CCSHARED="";;
8753 esac;;
8754 atheos*) CCSHARED="-fPIC";;
8755 esac
8756 fi
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
8758 $as_echo "$CCSHARED" >&6; }
8759 # LINKFORSHARED are the flags passed to the $(CC) command that links
8760 # the python executable -- this is only needed for a few systems
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
8762 $as_echo_n "checking LINKFORSHARED... " >&6; }
8763 if test -z "$LINKFORSHARED"
8764 then
8765 case $ac_sys_system/$ac_sys_release in
8766 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
8767 hp*|HP*)
8768 LINKFORSHARED="-Wl,-E -Wl,+s";;
8769 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
8770 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
8771 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
8772 # -u libsys_s pulls in all symbols in libsys
8773 Darwin/*)
8774 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
8775 # which is
8776 # not used by the core itself but which needs to be in the core so
8777 # that dynamically loaded extension modules have access to it.
8778 # -prebind is no longer used, because it actually seems to give a
8779 # slowdown in stead of a speedup, maybe due to the large number of
8780 # dynamic loads Python does.
8781
8782 LINKFORSHARED="$extra_undefs"
8783 if test "$enable_framework"
8784 then
8785 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8786 fi
8787 LINKFORSHARED="$LINKFORSHARED";;
8788 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
8789 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
8790 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
8791 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
8792 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
8793 then
8794 LINKFORSHARED="-Wl,--export-dynamic"
8795 fi;;
8796 SunOS/5*) case $CC in
8797 *gcc*)
8798 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
8799 then
8800 LINKFORSHARED="-Xlinker --export-dynamic"
8801 fi;;
8802 esac;;
8803 CYGWIN*)
8804 if test $enable_shared = "no"
8805 then
8806 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
8807 fi;;
8808 QNX*)
8809 # -Wl,-E causes the symbols to be added to the dynamic
8810 # symbol table so that they can be found when a module
8811 # is loaded. -N 2048K causes the stack size to be set
8812 # to 2048 kilobytes so that the stack doesn't overflow
8813 # when running test_compile.py.
8814 LINKFORSHARED='-Wl,-E -N 2048K';;
8815 esac
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
8818 $as_echo "$LINKFORSHARED" >&6; }
8819
8820
8821
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
8823 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
8824 if test ! "$LIBRARY" = "$LDLIBRARY"
8825 then
8826 case $ac_sys_system in
8827 CYGWIN*)
8828 # Cygwin needs CCSHARED when building extension DLLs
8829 # but not when building the interpreter DLL.
8830 CFLAGSFORSHARED='';;
8831 *)
8832 CFLAGSFORSHARED='$(CCSHARED)'
8833 esac
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
8836 $as_echo "$CFLAGSFORSHARED" >&6; }
8837
8838 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
8839 # library (with --enable-shared).
8840 # For platforms on which shared libraries are not allowed to have unresolved
8841 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
8842 # if it is not required, since it creates a dependency of the shared library
8843 # to LIBS. This, in turn, means that applications linking the shared libpython
8844 # don't need to link LIBS explicitly. The default should be only changed
8845 # on systems where this approach causes problems.
8846
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
8848 $as_echo_n "checking SHLIBS... " >&6; }
8849 case "$ac_sys_system" in
8850 *)
8851 SHLIBS='$(LIBS)';;
8852 esac
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
8854 $as_echo "$SHLIBS" >&6; }
8855
8856
8857 # checks for libraries
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8859 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8860 if ${ac_cv_lib_dl_dlopen+:} false; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 ac_check_lib_save_LIBS=$LIBS
8864 LIBS="-ldl $LIBS"
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867
8868 /* Override any GCC internal prototype to avoid an error.
8869 Use char because int might match the return type of a GCC
8870 builtin and then its argument prototype would still apply. */
8871 #ifdef __cplusplus
8872 extern "C"
8873 #endif
8874 char dlopen ();
8875 int
8876 main ()
8877 {
8878 return dlopen ();
8879 ;
8880 return 0;
8881 }
8882 _ACEOF
8883 if ac_fn_c_try_link "$LINENO"; then :
8884 ac_cv_lib_dl_dlopen=yes
8885 else
8886 ac_cv_lib_dl_dlopen=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8893 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8894 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_LIBDL 1
8897 _ACEOF
8898
8899 LIBS="-ldl $LIBS"
8900
8901 fi
8902 # Dynamic linking for SunOS/Solaris and SYSV
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8904 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8905 if ${ac_cv_lib_dld_shl_load+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 ac_check_lib_save_LIBS=$LIBS
8909 LIBS="-ldld $LIBS"
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912
8913 /* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 char shl_load ();
8920 int
8921 main ()
8922 {
8923 return shl_load ();
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_c_try_link "$LINENO"; then :
8929 ac_cv_lib_dld_shl_load=yes
8930 else
8931 ac_cv_lib_dld_shl_load=no
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 LIBS=$ac_check_lib_save_LIBS
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8938 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8939 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8940 cat >>confdefs.h <<_ACEOF
8941 #define HAVE_LIBDLD 1
8942 _ACEOF
8943
8944 LIBS="-ldld $LIBS"
8945
8946 fi
8947 # Dynamic linking for HP-UX
8948
8949 # only check for sem_init if thread support is requested
8950 if test "$with_threads" = "yes" -o -z "$with_threads"; then
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
8952 $as_echo_n "checking for library containing sem_init... " >&6; }
8953 if ${ac_cv_search_sem_init+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 ac_func_search_save_LIBS=$LIBS
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959
8960 /* Override any GCC internal prototype to avoid an error.
8961 Use char because int might match the return type of a GCC
8962 builtin and then its argument prototype would still apply. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 char sem_init ();
8967 int
8968 main ()
8969 {
8970 return sem_init ();
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 for ac_lib in '' pthread rt posix4; do
8976 if test -z "$ac_lib"; then
8977 ac_res="none required"
8978 else
8979 ac_res=-l$ac_lib
8980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8981 fi
8982 if ac_fn_c_try_link "$LINENO"; then :
8983 ac_cv_search_sem_init=$ac_res
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext
8987 if ${ac_cv_search_sem_init+:} false; then :
8988 break
8989 fi
8990 done
8991 if ${ac_cv_search_sem_init+:} false; then :
8992
8993 else
8994 ac_cv_search_sem_init=no
8995 fi
8996 rm conftest.$ac_ext
8997 LIBS=$ac_func_search_save_LIBS
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
9000 $as_echo "$ac_cv_search_sem_init" >&6; }
9001 ac_res=$ac_cv_search_sem_init
9002 if test "$ac_res" != no; then :
9003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9004
9005 fi
9006 # 'Real Time' functions on Solaris
9007 # posix4 on Solaris 2.6
9008 # pthread (first!) on Linux
9009 fi
9010
9011 # check if we need libintl for locale functions
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
9013 $as_echo_n "checking for textdomain in -lintl... " >&6; }
9014 if ${ac_cv_lib_intl_textdomain+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 ac_check_lib_save_LIBS=$LIBS
9018 LIBS="-lintl $LIBS"
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9025 #ifdef __cplusplus
9026 extern "C"
9027 #endif
9028 char textdomain ();
9029 int
9030 main ()
9031 {
9032 return textdomain ();
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 if ac_fn_c_try_link "$LINENO"; then :
9038 ac_cv_lib_intl_textdomain=yes
9039 else
9040 ac_cv_lib_intl_textdomain=no
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9044 LIBS=$ac_check_lib_save_LIBS
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
9047 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
9048 if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
9049
9050 $as_echo "#define WITH_LIBINTL 1" >>confdefs.h
9051
9052 fi
9053
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
9055 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
9056 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 ac_func_search_save_LIBS=$LIBS
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062
9063 /* Override any GCC internal prototype to avoid an error.
9064 Use char because int might match the return type of a GCC
9065 builtin and then its argument prototype would still apply. */
9066 #ifdef __cplusplus
9067 extern "C"
9068 #endif
9069 char bind_textdomain_codeset ();
9070 int
9071 main ()
9072 {
9073 return bind_textdomain_codeset ();
9074 ;
9075 return 0;
9076 }
9077 _ACEOF
9078 for ac_lib in '' intl; do
9079 if test -z "$ac_lib"; then
9080 ac_res="none required"
9081 else
9082 ac_res=-l$ac_lib
9083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9084 fi
9085 if ac_fn_c_try_link "$LINENO"; then :
9086 ac_cv_search_bind_textdomain_codeset=$ac_res
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext
9090 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
9091 break
9092 fi
9093 done
9094 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
9095
9096 else
9097 ac_cv_search_bind_textdomain_codeset=no
9098 fi
9099 rm conftest.$ac_ext
9100 LIBS=$ac_func_search_save_LIBS
9101 fi
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
9103 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
9104 ac_res=$ac_cv_search_bind_textdomain_codeset
9105 if test "$ac_res" != no; then :
9106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9107
9108 $as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
9109
9110 fi
9111
9112
9113 # checks for system dependent C++ extensions support
9114 case "$ac_sys_system" in
9115 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9116 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119
9120 #include <load.h>
9121 int
9122 main ()
9123 {
9124 loadAndInit("", 0, "")
9125 ;
9126 return 0;
9127 }
9128
9129 _ACEOF
9130 if ac_fn_c_try_link "$LINENO"; then :
9131
9132
9133 $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
9134
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9136 $as_echo "yes" >&6; }
9137
9138 else
9139
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9142
9143 fi
9144 rm -f core conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext;;
9146 *) ;;
9147 esac
9148
9149 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9150 # BeOS' sockets are stashed in libnet.
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
9152 $as_echo_n "checking for t_open in -lnsl... " >&6; }
9153 if ${ac_cv_lib_nsl_t_open+:} false; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 ac_check_lib_save_LIBS=$LIBS
9157 LIBS="-lnsl $LIBS"
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9164 #ifdef __cplusplus
9165 extern "C"
9166 #endif
9167 char t_open ();
9168 int
9169 main ()
9170 {
9171 return t_open ();
9172 ;
9173 return 0;
9174 }
9175 _ACEOF
9176 if ac_fn_c_try_link "$LINENO"; then :
9177 ac_cv_lib_nsl_t_open=yes
9178 else
9179 ac_cv_lib_nsl_t_open=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_check_lib_save_LIBS
9184 fi
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
9186 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
9187 if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
9188 LIBS="-lnsl $LIBS"
9189 fi
9190 # SVR4
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9192 $as_echo_n "checking for socket in -lsocket... " >&6; }
9193 if ${ac_cv_lib_socket_socket+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 ac_check_lib_save_LIBS=$LIBS
9197 LIBS="-lsocket $LIBS $LIBS"
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 char socket ();
9208 int
9209 main ()
9210 {
9211 return socket ();
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217 ac_cv_lib_socket_socket=yes
9218 else
9219 ac_cv_lib_socket_socket=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9226 $as_echo "$ac_cv_lib_socket_socket" >&6; }
9227 if test "x$ac_cv_lib_socket_socket" = xyes; then :
9228 LIBS="-lsocket $LIBS"
9229 fi
9230 # SVR4 sockets
9231
9232 case "$ac_sys_system" in
9233 BeOS*)
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
9235 $as_echo_n "checking for socket in -lnet... " >&6; }
9236 if ${ac_cv_lib_net_socket+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 ac_check_lib_save_LIBS=$LIBS
9240 LIBS="-lnet $LIBS $LIBS"
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243
9244 /* Override any GCC internal prototype to avoid an error.
9245 Use char because int might match the return type of a GCC
9246 builtin and then its argument prototype would still apply. */
9247 #ifdef __cplusplus
9248 extern "C"
9249 #endif
9250 char socket ();
9251 int
9252 main ()
9253 {
9254 return socket ();
9255 ;
9256 return 0;
9257 }
9258 _ACEOF
9259 if ac_fn_c_try_link "$LINENO"; then :
9260 ac_cv_lib_net_socket=yes
9261 else
9262 ac_cv_lib_net_socket=no
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 LIBS=$ac_check_lib_save_LIBS
9267 fi
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
9269 $as_echo "$ac_cv_lib_net_socket" >&6; }
9270 if test "x$ac_cv_lib_net_socket" = xyes; then :
9271 LIBS="-lnet $LIBS"
9272 fi
9273 # BeOS
9274 ;;
9275 esac
9276
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
9278 $as_echo_n "checking for --with-libs... " >&6; }
9279
9280 # Check whether --with-libs was given.
9281 if test "${with_libs+set}" = set; then :
9282 withval=$with_libs;
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9284 $as_echo "$withval" >&6; }
9285 LIBS="$withval $LIBS"
9286
9287 else
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289 $as_echo "no" >&6; }
9290 fi
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9301 if test -n "$ac_tool_prefix"; then
9302 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9303 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305 $as_echo_n "checking for $ac_word... " >&6; }
9306 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 case $PKG_CONFIG in
9310 [\\/]* | ?:[\\/]*)
9311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9312 ;;
9313 *)
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 for as_dir in $PATH
9316 do
9317 IFS=$as_save_IFS
9318 test -z "$as_dir" && as_dir=.
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9321 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9323 break 2
9324 fi
9325 done
9326 done
9327 IFS=$as_save_IFS
9328
9329 ;;
9330 esac
9331 fi
9332 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9333 if test -n "$PKG_CONFIG"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9335 $as_echo "$PKG_CONFIG" >&6; }
9336 else
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9339 fi
9340
9341
9342 fi
9343 if test -z "$ac_cv_path_PKG_CONFIG"; then
9344 ac_pt_PKG_CONFIG=$PKG_CONFIG
9345 # Extract the first word of "pkg-config", so it can be a program name with args.
9346 set dummy pkg-config; ac_word=$2
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348 $as_echo_n "checking for $ac_word... " >&6; }
9349 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 case $ac_pt_PKG_CONFIG in
9353 [\\/]* | ?:[\\/]*)
9354 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9355 ;;
9356 *)
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9359 do
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
9362 for ac_exec_ext in '' $ac_executable_extensions; do
9363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9364 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 break 2
9367 fi
9368 done
9369 done
9370 IFS=$as_save_IFS
9371
9372 ;;
9373 esac
9374 fi
9375 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9376 if test -n "$ac_pt_PKG_CONFIG"; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9378 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9379 else
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9382 fi
9383
9384 if test "x$ac_pt_PKG_CONFIG" = x; then
9385 PKG_CONFIG=""
9386 else
9387 case $cross_compiling:$ac_tool_warned in
9388 yes:)
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9391 ac_tool_warned=yes ;;
9392 esac
9393 PKG_CONFIG=$ac_pt_PKG_CONFIG
9394 fi
9395 else
9396 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9397 fi
9398
9399 fi
9400 if test -n "$PKG_CONFIG"; then
9401 _pkg_min_version=0.9.0
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9403 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9404 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9406 $as_echo "yes" >&6; }
9407 else
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9409 $as_echo "no" >&6; }
9410 PKG_CONFIG=""
9411 fi
9412 fi
9413
9414 # Check for use of the system expat library
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
9416 $as_echo_n "checking for --with-system-expat... " >&6; }
9417
9418 # Check whether --with-system_expat was given.
9419 if test "${with_system_expat+set}" = set; then :
9420 withval=$with_system_expat;
9421 else
9422 with_system_expat="no"
9423 fi
9424
9425
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
9427 $as_echo "$with_system_expat" >&6; }
9428
9429 # Check for use of the system libffi library
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
9431 $as_echo_n "checking for --with-system-ffi... " >&6; }
9432
9433 # Check whether --with-system_ffi was given.
9434 if test "${with_system_ffi+set}" = set; then :
9435 withval=$with_system_ffi;
9436 else
9437 with_system_ffi="no"
9438 fi
9439
9440
9441 if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
9442 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
9443 else
9444 LIBFFI_INCLUDEDIR=""
9445 fi
9446
9447
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
9449 $as_echo "$with_system_ffi" >&6; }
9450
9451 # Check for --with-tcltk-includes=path and --with-tcltk-libs=path
9452
9453
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
9455 $as_echo_n "checking for --with-tcltk-includes... " >&6; }
9456
9457 # Check whether --with-tcltk-includes was given.
9458 if test "${with_tcltk_includes+set}" = set; then :
9459 withval=$with_tcltk_includes;
9460 else
9461 with_tcltk_includes="default"
9462 fi
9463
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
9465 $as_echo "$with_tcltk_includes" >&6; }
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
9467 $as_echo_n "checking for --with-tcltk-libs... " >&6; }
9468
9469 # Check whether --with-tcltk-libs was given.
9470 if test "${with_tcltk_libs+set}" = set; then :
9471 withval=$with_tcltk_libs;
9472 else
9473 with_tcltk_libs="default"
9474 fi
9475
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
9477 $as_echo "$with_tcltk_libs" >&6; }
9478 if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
9479 then
9480 if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
9481 then
9482 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
9483 fi
9484 TCLTK_INCLUDES=""
9485 TCLTK_LIBS=""
9486 else
9487 TCLTK_INCLUDES="$with_tcltk_includes"
9488 TCLTK_LIBS="$with_tcltk_libs"
9489 fi
9490
9491 # Check for --with-dbmliborder
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
9493 $as_echo_n "checking for --with-dbmliborder... " >&6; }
9494
9495 # Check whether --with-dbmliborder was given.
9496 if test "${with_dbmliborder+set}" = set; then :
9497 withval=$with_dbmliborder;
9498 if test x$with_dbmliborder = xyes
9499 then
9500 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
9501 else
9502 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
9503 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
9504 then
9505 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
9506 fi
9507 done
9508 fi
9509 fi
9510
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
9512 $as_echo "$with_dbmliborder" >&6; }
9513
9514 # Determine if signalmodule should be used.
9515
9516
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
9518 $as_echo_n "checking for --with-signal-module... " >&6; }
9519
9520 # Check whether --with-signal-module was given.
9521 if test "${with_signal_module+set}" = set; then :
9522 withval=$with_signal_module;
9523 fi
9524
9525
9526 if test -z "$with_signal_module"
9527 then with_signal_module="yes"
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
9530 $as_echo "$with_signal_module" >&6; }
9531
9532 if test "${with_signal_module}" = "yes"; then
9533 USE_SIGNAL_MODULE=""
9534 SIGNAL_OBJS=""
9535 else
9536 USE_SIGNAL_MODULE="#"
9537 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
9538 fi
9539
9540 # This is used to generate Setup.config
9541
9542 USE_THREAD_MODULE=""
9543
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
9545 $as_echo_n "checking for --with-dec-threads... " >&6; }
9546
9547
9548 # Check whether --with-dec-threads was given.
9549 if test "${with_dec_threads+set}" = set; then :
9550 withval=$with_dec_threads;
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9552 $as_echo "$withval" >&6; }
9553 LDLAST=-threads
9554 if test "${with_thread+set}" != set; then
9555 with_thread="$withval";
9556 fi
9557 else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9560 fi
9561
9562
9563 # Templates for things AC_DEFINEd more than once.
9564 # For a single AC_DEFINE, no template is needed.
9565
9566
9567
9568
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
9570 $as_echo_n "checking for --with-threads... " >&6; }
9571
9572 # Check whether --with-threads was given.
9573 if test "${with_threads+set}" = set; then :
9574 withval=$with_threads;
9575 fi
9576
9577
9578 # --with-thread is deprecated, but check for it anyway
9579
9580 # Check whether --with-thread was given.
9581 if test "${with_thread+set}" = set; then :
9582 withval=$with_thread; with_threads=$with_thread
9583 fi
9584
9585
9586 if test -z "$with_threads"
9587 then with_threads="yes"
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
9590 $as_echo "$with_threads" >&6; }
9591
9592
9593 if test "$with_threads" = "no"
9594 then
9595 USE_THREAD_MODULE="#"
9596 elif test "$ac_cv_pthread_is_default" = yes
9597 then
9598 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9599
9600 # Defining _REENTRANT on system with POSIX threads should not hurt.
9601 $as_echo "#define _REENTRANT 1" >>confdefs.h
9602
9603 posix_threads=yes
9604 THREADOBJ="Python/thread.o"
9605 if test "$ac_sys_system" = "SunOS"; then
9606 CFLAGS="$CFLAGS -D_REENTRANT"
9607 fi
9608 elif test "$ac_cv_kpthread" = "yes"
9609 then
9610 CC="$CC -Kpthread"
9611 if test "$ac_cv_cxx_thread" = "yes"; then
9612 CXX="$CXX -Kpthread"
9613 fi
9614 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9615
9616 posix_threads=yes
9617 THREADOBJ="Python/thread.o"
9618 elif test "$ac_cv_kthread" = "yes"
9619 then
9620 CC="$CC -Kthread"
9621 if test "$ac_cv_cxx_thread" = "yes"; then
9622 CXX="$CXX -Kthread"
9623 fi
9624 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9625
9626 posix_threads=yes
9627 THREADOBJ="Python/thread.o"
9628 elif test "$ac_cv_pthread" = "yes"
9629 then
9630 CC="$CC -pthread"
9631 if test "$ac_cv_cxx_thread" = "yes"; then
9632 CXX="$CXX -pthread"
9633 fi
9634 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9635
9636 posix_threads=yes
9637 THREADOBJ="Python/thread.o"
9638 else
9639 if test ! -z "$with_threads" -a -d "$with_threads"
9640 then LDFLAGS="$LDFLAGS -L$with_threads"
9641 fi
9642 if test ! -z "$withval" -a -d "$withval"
9643 then LDFLAGS="$LDFLAGS -L$withval"
9644 fi
9645
9646 # According to the POSIX spec, a pthreads implementation must
9647 # define _POSIX_THREADS in unistd.h. Some apparently don't
9648 # (e.g. gnu pth with pthread emulation)
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
9650 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653
9654 #include <unistd.h>
9655 #ifdef _POSIX_THREADS
9656 yes
9657 #endif
9658
9659 _ACEOF
9660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9661 $EGREP "yes" >/dev/null 2>&1; then :
9662 unistd_defines_pthreads=yes
9663 else
9664 unistd_defines_pthreads=no
9665 fi
9666 rm -f conftest*
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
9669 $as_echo "$unistd_defines_pthreads" >&6; }
9670
9671 $as_echo "#define _REENTRANT 1" >>confdefs.h
9672
9673 ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
9674 if test "x$ac_cv_header_cthreads_h" = xyes; then :
9675 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9676
9677 $as_echo "#define C_THREADS 1" >>confdefs.h
9678
9679
9680 $as_echo "#define HURD_C_THREADS 1" >>confdefs.h
9681
9682 LIBS="$LIBS -lthreads"
9683 THREADOBJ="Python/thread.o"
9684 else
9685
9686 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
9687 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
9688 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9689
9690 $as_echo "#define C_THREADS 1" >>confdefs.h
9691
9692
9693 $as_echo "#define MACH_C_THREADS 1" >>confdefs.h
9694
9695 THREADOBJ="Python/thread.o"
9696 else
9697
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
9699 $as_echo_n "checking for --with-pth... " >&6; }
9700
9701 # Check whether --with-pth was given.
9702 if test "${with_pth+set}" = set; then :
9703 withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9704 $as_echo "$withval" >&6; }
9705 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9706
9707
9708 $as_echo "#define HAVE_PTH 1" >>confdefs.h
9709
9710 LIBS="-lpth $LIBS"
9711 THREADOBJ="Python/thread.o"
9712 else
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9715
9716 # Just looking for pthread_create in libpthread is not enough:
9717 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
9718 # So we really have to include pthread.h, and then link.
9719 _libs=$LIBS
9720 LIBS="$LIBS -lpthread"
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
9722 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725
9726 #include <stdio.h>
9727 #include <pthread.h>
9728
9729 void * start_routine (void *arg) { exit (0); }
9730 int
9731 main ()
9732 {
9733
9734 pthread_create (NULL, NULL, start_routine, NULL)
9735 ;
9736 return 0;
9737 }
9738 _ACEOF
9739 if ac_fn_c_try_link "$LINENO"; then :
9740
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; }
9743 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9744
9745 posix_threads=yes
9746 THREADOBJ="Python/thread.o"
9747 else
9748
9749 LIBS=$_libs
9750 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
9751 if test "x$ac_cv_func_pthread_detach" = xyes; then :
9752 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9753
9754 posix_threads=yes
9755 THREADOBJ="Python/thread.o"
9756 else
9757
9758 ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
9759 if test "x$ac_cv_header_atheos_threads_h" = xyes; then :
9760 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9761
9762
9763 $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
9764
9765 THREADOBJ="Python/thread.o"
9766 else
9767
9768 ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
9769 if test "x$ac_cv_header_kernel_OS_h" = xyes; then :
9770 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9771
9772
9773 $as_echo "#define BEOS_THREADS 1" >>confdefs.h
9774
9775 THREADOBJ="Python/thread.o"
9776 else
9777
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
9779 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
9780 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
9781 $as_echo_n "(cached) " >&6
9782 else
9783 ac_check_lib_save_LIBS=$LIBS
9784 LIBS="-lpthreads $LIBS"
9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9787
9788 /* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
9791 #ifdef __cplusplus
9792 extern "C"
9793 #endif
9794 char pthread_create ();
9795 int
9796 main ()
9797 {
9798 return pthread_create ();
9799 ;
9800 return 0;
9801 }
9802 _ACEOF
9803 if ac_fn_c_try_link "$LINENO"; then :
9804 ac_cv_lib_pthreads_pthread_create=yes
9805 else
9806 ac_cv_lib_pthreads_pthread_create=no
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 LIBS=$ac_check_lib_save_LIBS
9811 fi
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
9813 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
9814 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
9815 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9816
9817 posix_threads=yes
9818 LIBS="$LIBS -lpthreads"
9819 THREADOBJ="Python/thread.o"
9820 else
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
9823 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
9824 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
9825 $as_echo_n "(cached) " >&6
9826 else
9827 ac_check_lib_save_LIBS=$LIBS
9828 LIBS="-lc_r $LIBS"
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831
9832 /* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
9835 #ifdef __cplusplus
9836 extern "C"
9837 #endif
9838 char pthread_create ();
9839 int
9840 main ()
9841 {
9842 return pthread_create ();
9843 ;
9844 return 0;
9845 }
9846 _ACEOF
9847 if ac_fn_c_try_link "$LINENO"; then :
9848 ac_cv_lib_c_r_pthread_create=yes
9849 else
9850 ac_cv_lib_c_r_pthread_create=no
9851 fi
9852 rm -f core conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854 LIBS=$ac_check_lib_save_LIBS
9855 fi
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
9857 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
9858 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
9859 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9860
9861 posix_threads=yes
9862 LIBS="$LIBS -lc_r"
9863 THREADOBJ="Python/thread.o"
9864 else
9865
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
9867 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
9868 if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-lpthread $LIBS"
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875
9876 /* Override any GCC internal prototype to avoid an error.
9877 Use char because int might match the return type of a GCC
9878 builtin and then its argument prototype would still apply. */
9879 #ifdef __cplusplus
9880 extern "C"
9881 #endif
9882 char __pthread_create_system ();
9883 int
9884 main ()
9885 {
9886 return __pthread_create_system ();
9887 ;
9888 return 0;
9889 }
9890 _ACEOF
9891 if ac_fn_c_try_link "$LINENO"; then :
9892 ac_cv_lib_pthread___pthread_create_system=yes
9893 else
9894 ac_cv_lib_pthread___pthread_create_system=no
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9898 LIBS=$ac_check_lib_save_LIBS
9899 fi
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
9901 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
9902 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
9903 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9904
9905 posix_threads=yes
9906 LIBS="$LIBS -lpthread"
9907 THREADOBJ="Python/thread.o"
9908 else
9909
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
9911 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
9912 if ${ac_cv_lib_cma_pthread_create+:} false; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 ac_check_lib_save_LIBS=$LIBS
9916 LIBS="-lcma $LIBS"
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9919
9920 /* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 char pthread_create ();
9927 int
9928 main ()
9929 {
9930 return pthread_create ();
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 if ac_fn_c_try_link "$LINENO"; then :
9936 ac_cv_lib_cma_pthread_create=yes
9937 else
9938 ac_cv_lib_cma_pthread_create=no
9939 fi
9940 rm -f core conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
9945 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
9946 if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
9947 $as_echo "#define WITH_THREAD 1" >>confdefs.h
9948
9949 posix_threads=yes
9950 LIBS="$LIBS -lcma"
9951 THREADOBJ="Python/thread.o"
9952 else
9953
9954 USE_THREAD_MODULE="#"
9955 fi
9956
9957
9958 fi
9959
9960 fi
9961
9962 fi
9963
9964 fi
9965
9966
9967 fi
9968
9969
9970 fi
9971
9972 fi
9973 rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 fi
9976
9977 fi
9978
9979
9980 fi
9981
9982
9983
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
9985 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
9986 if ${ac_cv_lib_mpc_usconfig+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 ac_check_lib_save_LIBS=$LIBS
9990 LIBS="-lmpc $LIBS"
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 char usconfig ();
10001 int
10002 main ()
10003 {
10004 return usconfig ();
10005 ;
10006 return 0;
10007 }
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 ac_cv_lib_mpc_usconfig=yes
10011 else
10012 ac_cv_lib_mpc_usconfig=no
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LIBS=$ac_check_lib_save_LIBS
10017 fi
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
10019 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
10020 if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
10021 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10022
10023 LIBS="$LIBS -lmpc"
10024 THREADOBJ="Python/thread.o"
10025 USE_THREAD_MODULE=""
10026 fi
10027
10028
10029 if test "$posix_threads" != "yes"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
10031 $as_echo_n "checking for thr_create in -lthread... " >&6; }
10032 if ${ac_cv_lib_thread_thr_create+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 ac_check_lib_save_LIBS=$LIBS
10036 LIBS="-lthread $LIBS"
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039
10040 /* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 char thr_create ();
10047 int
10048 main ()
10049 {
10050 return thr_create ();
10051 ;
10052 return 0;
10053 }
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056 ac_cv_lib_thread_thr_create=yes
10057 else
10058 ac_cv_lib_thread_thr_create=no
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LIBS=$ac_check_lib_save_LIBS
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
10065 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
10066 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
10067 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10068
10069 LIBS="$LIBS -lthread"
10070 THREADOBJ="Python/thread.o"
10071 USE_THREAD_MODULE=""
10072 fi
10073
10074 fi
10075
10076 if test "$USE_THREAD_MODULE" != "#"
10077 then
10078 # If the above checks didn't disable threads, (at least) OSF1
10079 # needs this '-threads' argument during linking.
10080 case $ac_sys_system in
10081 OSF1) LDLAST=-threads;;
10082 esac
10083 fi
10084 fi
10085
10086 if test "$posix_threads" = "yes"; then
10087 if test "$unistd_defines_pthreads" = "no"; then
10088
10089 $as_echo "#define _POSIX_THREADS 1" >>confdefs.h
10090
10091 fi
10092
10093 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
10094 case $ac_sys_system/$ac_sys_release in
10095 SunOS/5.6)
10096 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
10097
10098 ;;
10099 SunOS/5.8)
10100 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10101
10102 ;;
10103 AIX/*)
10104 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10105
10106 ;;
10107 esac
10108
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10110 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
10111 if ${ac_cv_pthread_system_supported+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 if test "$cross_compiling" = yes; then :
10115 ac_cv_pthread_system_supported=no
10116 else
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119
10120 #include <stdio.h>
10121 #include <pthread.h>
10122 void *foo(void *parm) {
10123 return NULL;
10124 }
10125 main() {
10126 pthread_attr_t attr;
10127 pthread_t id;
10128 if (pthread_attr_init(&attr)) exit(-1);
10129 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
10130 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
10131 exit(0);
10132 }
10133 _ACEOF
10134 if ac_fn_c_try_run "$LINENO"; then :
10135 ac_cv_pthread_system_supported=yes
10136 else
10137 ac_cv_pthread_system_supported=no
10138 fi
10139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10140 conftest.$ac_objext conftest.beam conftest.$ac_ext
10141 fi
10142
10143
10144 fi
10145
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10147 $as_echo "$ac_cv_pthread_system_supported" >&6; }
10148 if test "$ac_cv_pthread_system_supported" = "yes"; then
10149
10150 $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
10151
10152 fi
10153 for ac_func in pthread_sigmask
10154 do :
10155 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
10156 if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
10157 cat >>confdefs.h <<_ACEOF
10158 #define HAVE_PTHREAD_SIGMASK 1
10159 _ACEOF
10160 case $ac_sys_system in
10161 CYGWIN*)
10162
10163 $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
10164
10165 ;;
10166 esac
10167 fi
10168 done
10169
10170 for ac_func in pthread_atfork
10171 do :
10172 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
10173 if test "x$ac_cv_func_pthread_atfork" = xyes; then :
10174 cat >>confdefs.h <<_ACEOF
10175 #define HAVE_PTHREAD_ATFORK 1
10176 _ACEOF
10177
10178 fi
10179 done
10180
10181 fi
10182
10183
10184 # Check for enable-ipv6
10185
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10187 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
10188 # Check whether --enable-ipv6 was given.
10189 if test "${enable_ipv6+set}" = set; then :
10190 enableval=$enable_ipv6; case "$enableval" in
10191 no)
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10194 ipv6=no
10195 ;;
10196 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10197 $as_echo "yes" >&6; }
10198 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
10199
10200 ipv6=yes
10201 ;;
10202 esac
10203 else
10204
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207 /* AF_INET6 available check */
10208 #include <sys/types.h>
10209 #include <sys/socket.h>
10210 int
10211 main ()
10212 {
10213 int domain = AF_INET6;
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_compile "$LINENO"; then :
10219
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10221 $as_echo "yes" >&6; }
10222 ipv6=yes
10223
10224 else
10225
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10228 ipv6=no
10229
10230 fi
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232
10233 if test "$ipv6" = "yes"; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
10235 $as_echo_n "checking if RFC2553 API is available... " >&6; }
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10238
10239 #include <sys/types.h>
10240 #include <netinet/in.h>
10241 int
10242 main ()
10243 {
10244 struct sockaddr_in6 x;
10245 x.sin6_scope_id;
10246 ;
10247 return 0;
10248 }
10249
10250 _ACEOF
10251 if ac_fn_c_try_compile "$LINENO"; then :
10252
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10254 $as_echo "yes" >&6; }
10255 ipv6=yes
10256
10257 else
10258
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10261 ipv6=no
10262
10263 fi
10264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265 fi
10266
10267 if test "$ipv6" = "yes"; then
10268 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
10269
10270 fi
10271
10272 fi
10273
10274
10275 ipv6type=unknown
10276 ipv6lib=none
10277 ipv6trylibc=no
10278
10279 if test "$ipv6" = "yes"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
10281 $as_echo_n "checking ipv6 stack type... " >&6; }
10282 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
10283 do
10284 case $i in
10285 inria)
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288
10289 #include <netinet/in.h>
10290 #ifdef IPV6_INRIA_VERSION
10291 yes
10292 #endif
10293 _ACEOF
10294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10295 $EGREP "yes" >/dev/null 2>&1; then :
10296 ipv6type=$i
10297 fi
10298 rm -f conftest*
10299
10300 ;;
10301 kame)
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304
10305 #include <netinet/in.h>
10306 #ifdef __KAME__
10307 yes
10308 #endif
10309 _ACEOF
10310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10311 $EGREP "yes" >/dev/null 2>&1; then :
10312 ipv6type=$i;
10313 ipv6lib=inet6
10314 ipv6libdir=/usr/local/v6/lib
10315 ipv6trylibc=yes
10316 fi
10317 rm -f conftest*
10318
10319 ;;
10320 linux-glibc)
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323
10324 #include <features.h>
10325 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
10326 yes
10327 #endif
10328 _ACEOF
10329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10330 $EGREP "yes" >/dev/null 2>&1; then :
10331 ipv6type=$i;
10332 ipv6trylibc=yes
10333 fi
10334 rm -f conftest*
10335
10336 ;;
10337 linux-inet6)
10338 if test -d /usr/inet6; then
10339 ipv6type=$i
10340 ipv6lib=inet6
10341 ipv6libdir=/usr/inet6/lib
10342 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
10343 fi
10344 ;;
10345 solaris)
10346 if test -f /etc/netconfig; then
10347 if $GREP -q tcp6 /etc/netconfig; then
10348 ipv6type=$i
10349 ipv6trylibc=yes
10350 fi
10351 fi
10352 ;;
10353 toshiba)
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356
10357 #include <sys/param.h>
10358 #ifdef _TOSHIBA_INET6
10359 yes
10360 #endif
10361 _ACEOF
10362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10363 $EGREP "yes" >/dev/null 2>&1; then :
10364 ipv6type=$i;
10365 ipv6lib=inet6;
10366 ipv6libdir=/usr/local/v6/lib
10367 fi
10368 rm -f conftest*
10369
10370 ;;
10371 v6d)
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10374
10375 #include </usr/local/v6/include/sys/v6config.h>
10376 #ifdef __V6D__
10377 yes
10378 #endif
10379 _ACEOF
10380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10381 $EGREP "yes" >/dev/null 2>&1; then :
10382 ipv6type=$i;
10383 ipv6lib=v6;
10384 ipv6libdir=/usr/local/v6/lib;
10385 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
10386 fi
10387 rm -f conftest*
10388
10389 ;;
10390 zeta)
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393
10394 #include <sys/param.h>
10395 #ifdef _ZETA_MINAMI_INET6
10396 yes
10397 #endif
10398 _ACEOF
10399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10400 $EGREP "yes" >/dev/null 2>&1; then :
10401 ipv6type=$i;
10402 ipv6lib=inet6;
10403 ipv6libdir=/usr/local/v6/lib
10404 fi
10405 rm -f conftest*
10406
10407 ;;
10408 esac
10409 if test "$ipv6type" != "unknown"; then
10410 break
10411 fi
10412 done
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
10414 $as_echo "$ipv6type" >&6; }
10415 fi
10416
10417 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
10418 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
10419 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
10420 echo "using lib$ipv6lib"
10421 else
10422 if test $ipv6trylibc = "yes"; then
10423 echo "using libc"
10424 else
10425 echo 'Fatal: no $ipv6lib library found. cannot continue.'
10426 echo "You need to fetch lib$ipv6lib.a from appropriate"
10427 echo 'ipv6 kit and compile beforehand.'
10428 exit 1
10429 fi
10430 fi
10431 fi
10432
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
10434 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437
10438 #include <Carbon/Carbon.h>
10439 int
10440 main ()
10441 {
10442 FSIORefNum fRef = 0
10443 ;
10444 return 0;
10445 }
10446
10447 _ACEOF
10448 if ac_fn_c_try_compile "$LINENO"; then :
10449
10450
10451 $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
10452
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10454 $as_echo "yes" >&6; }
10455
10456 else
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10460
10461 fi
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463
10464 # Check for --with-doc-strings
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
10466 $as_echo_n "checking for --with-doc-strings... " >&6; }
10467
10468 # Check whether --with-doc-strings was given.
10469 if test "${with_doc_strings+set}" = set; then :
10470 withval=$with_doc_strings;
10471 fi
10472
10473
10474 if test -z "$with_doc_strings"
10475 then with_doc_strings="yes"
10476 fi
10477 if test "$with_doc_strings" != "no"
10478 then
10479
10480 $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
10481
10482 fi
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
10484 $as_echo "$with_doc_strings" >&6; }
10485
10486 # Check for Python-specific malloc support
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
10488 $as_echo_n "checking for --with-tsc... " >&6; }
10489
10490 # Check whether --with-tsc was given.
10491 if test "${with_tsc+set}" = set; then :
10492 withval=$with_tsc;
10493 if test "$withval" != no
10494 then
10495
10496 $as_echo "#define WITH_TSC 1" >>confdefs.h
10497
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10499 $as_echo "yes" >&6; }
10500 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10502 fi
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10506 fi
10507
10508
10509 # Check for Python-specific malloc support
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
10511 $as_echo_n "checking for --with-pymalloc... " >&6; }
10512
10513 # Check whether --with-pymalloc was given.
10514 if test "${with_pymalloc+set}" = set; then :
10515 withval=$with_pymalloc;
10516 fi
10517
10518
10519 if test -z "$with_pymalloc"
10520 then with_pymalloc="yes"
10521 fi
10522 if test "$with_pymalloc" != "no"
10523 then
10524
10525 $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
10526
10527 fi
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
10529 $as_echo "$with_pymalloc" >&6; }
10530
10531 # Check for Valgrind support
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
10533 $as_echo_n "checking for --with-valgrind... " >&6; }
10534
10535 # Check whether --with-valgrind was given.
10536 if test "${with_valgrind+set}" = set; then :
10537 withval=$with_valgrind;
10538 else
10539 with_valgrind=no
10540 fi
10541
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
10543 $as_echo "$with_valgrind" >&6; }
10544 if test "$with_valgrind" != no; then
10545 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
10546 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
10547
10548 $as_echo "#define WITH_VALGRIND 1" >>confdefs.h
10549
10550 else
10551 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
10552
10553 fi
10554
10555
10556 fi
10557
10558 # Check for --with-wctype-functions
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
10560 $as_echo_n "checking for --with-wctype-functions... " >&6; }
10561
10562 # Check whether --with-wctype-functions was given.
10563 if test "${with_wctype_functions+set}" = set; then :
10564 withval=$with_wctype_functions;
10565 if test "$withval" != no
10566 then
10567
10568 $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
10569
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10571 $as_echo "yes" >&6; }
10572 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10574 fi
10575 else
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577 $as_echo "no" >&6; }
10578 fi
10579
10580
10581 # -I${DLINCLDIR} is added to the compile rule for importdl.o
10582
10583 DLINCLDIR=.
10584
10585 # the dlopen() function means we might want to use dynload_shlib.o. some
10586 # platforms, such as AIX, have dlopen(), but don't want to use it.
10587 for ac_func in dlopen
10588 do :
10589 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10590 if test "x$ac_cv_func_dlopen" = xyes; then :
10591 cat >>confdefs.h <<_ACEOF
10592 #define HAVE_DLOPEN 1
10593 _ACEOF
10594
10595 fi
10596 done
10597
10598
10599 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
10600 # loading of modules.
10601
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
10603 $as_echo_n "checking DYNLOADFILE... " >&6; }
10604 if test -z "$DYNLOADFILE"
10605 then
10606 case $ac_sys_system/$ac_sys_release in
10607 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
10608 if test "$ac_cv_func_dlopen" = yes
10609 then DYNLOADFILE="dynload_shlib.o"
10610 else DYNLOADFILE="dynload_aix.o"
10611 fi
10612 ;;
10613 BeOS*) DYNLOADFILE="dynload_beos.o";;
10614 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
10615 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
10616 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
10617 atheos*) DYNLOADFILE="dynload_atheos.o";;
10618 *)
10619 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
10620 # out any dynamic loading
10621 if test "$ac_cv_func_dlopen" = yes
10622 then DYNLOADFILE="dynload_shlib.o"
10623 else DYNLOADFILE="dynload_stub.o"
10624 fi
10625 ;;
10626 esac
10627 fi
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
10629 $as_echo "$DYNLOADFILE" >&6; }
10630 if test "$DYNLOADFILE" != "dynload_stub.o"
10631 then
10632
10633 $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
10634
10635 fi
10636
10637 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
10638
10639
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
10641 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
10642 if test -z "$MACHDEP_OBJS"
10643 then
10644 MACHDEP_OBJS=$extra_machdep_objs
10645 else
10646 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
10649 $as_echo "MACHDEP_OBJS" >&6; }
10650
10651 # checks for library functions
10652 for ac_func in alarm setitimer getitimer chown \
10653 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
10654 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
10655 getentropy \
10656 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
10657 initgroups kill killpg lchown lstat mkfifo mknod mktime mmap \
10658 mremap nice pathconf pause plock poll pthread_init \
10659 putenv readlink realpath \
10660 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
10661 setgid \
10662 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
10663 setlocale setregid setreuid setresuid setresgid \
10664 setsid setpgid setpgrp setuid setvbuf snprintf \
10665 sigaction siginterrupt sigrelse strftime \
10666 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
10667 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
10668 do :
10669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10672 cat >>confdefs.h <<_ACEOF
10673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10674 _ACEOF
10675
10676 fi
10677 done
10678
10679
10680 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
10681 # links. Some libc implementations have a stub lchmod implementation that always
10682 # returns an error.
10683 if test "$MACHDEP" != linux; then
10684 for ac_func in lchmod
10685 do :
10686 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
10687 if test "x$ac_cv_func_lchmod" = xyes; then :
10688 cat >>confdefs.h <<_ACEOF
10689 #define HAVE_LCHMOD 1
10690 _ACEOF
10691
10692 fi
10693 done
10694
10695 fi
10696
10697 # For some functions, having a definition is not sufficient, since
10698 # we want to take their address.
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
10700 $as_echo_n "checking for chroot... " >&6; }
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703 #include <unistd.h>
10704 int
10705 main ()
10706 {
10707 void *x=chroot
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_compile "$LINENO"; then :
10713
10714 $as_echo "#define HAVE_CHROOT 1" >>confdefs.h
10715
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10717 $as_echo "yes" >&6; }
10718 else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720 $as_echo "no" >&6; }
10721
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
10725 $as_echo_n "checking for link... " >&6; }
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10728 #include <unistd.h>
10729 int
10730 main ()
10731 {
10732 void *x=link
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 if ac_fn_c_try_compile "$LINENO"; then :
10738
10739 $as_echo "#define HAVE_LINK 1" >>confdefs.h
10740
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10742 $as_echo "yes" >&6; }
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10746
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
10750 $as_echo_n "checking for symlink... " >&6; }
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753 #include <unistd.h>
10754 int
10755 main ()
10756 {
10757 void *x=symlink
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"; then :
10763
10764 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
10765
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10767 $as_echo "yes" >&6; }
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10771
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
10775 $as_echo_n "checking for fchdir... " >&6; }
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 #include <unistd.h>
10779 int
10780 main ()
10781 {
10782 void *x=fchdir
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_compile "$LINENO"; then :
10788
10789 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
10790
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10792 $as_echo "yes" >&6; }
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10796
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
10800 $as_echo_n "checking for fsync... " >&6; }
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803 #include <unistd.h>
10804 int
10805 main ()
10806 {
10807 void *x=fsync
10808 ;
10809 return 0;
10810 }
10811 _ACEOF
10812 if ac_fn_c_try_compile "$LINENO"; then :
10813
10814 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h
10815
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10817 $as_echo "yes" >&6; }
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10821
10822 fi
10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
10825 $as_echo_n "checking for fdatasync... " >&6; }
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828 #include <unistd.h>
10829 int
10830 main ()
10831 {
10832 void *x=fdatasync
10833 ;
10834 return 0;
10835 }
10836 _ACEOF
10837 if ac_fn_c_try_compile "$LINENO"; then :
10838
10839 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
10840
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842 $as_echo "yes" >&6; }
10843 else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10846
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
10850 $as_echo_n "checking for epoll... " >&6; }
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853 #include <sys/epoll.h>
10854 int
10855 main ()
10856 {
10857 void *x=epoll_create
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_c_try_compile "$LINENO"; then :
10863
10864 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
10865
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10867 $as_echo "yes" >&6; }
10868 else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870 $as_echo "no" >&6; }
10871
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
10875 $as_echo_n "checking for kqueue... " >&6; }
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878
10879 #include <sys/types.h>
10880 #include <sys/event.h>
10881
10882 int
10883 main ()
10884 {
10885 int x=kqueue()
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 if ac_fn_c_try_compile "$LINENO"; then :
10891
10892 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
10893
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10895 $as_echo "yes" >&6; }
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899
10900 fi
10901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10902 # On some systems (eg. FreeBSD 5), we would find a definition of the
10903 # functions ctermid_r, setgroups in the library, but no prototype
10904 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
10905 # address to avoid compiler warnings and potential miscompilations
10906 # because of the missing prototypes.
10907
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
10909 $as_echo_n "checking for ctermid_r... " >&6; }
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912
10913 #include <stdio.h>
10914
10915 int
10916 main ()
10917 {
10918 void* p = ctermid_r
10919 ;
10920 return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_compile "$LINENO"; then :
10924
10925 $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
10926
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10928 $as_echo "yes" >&6; }
10929 else
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10932
10933 fi
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
10937 $as_echo_n "checking for flock declaration... " >&6; }
10938 if ${ac_cv_flock_decl+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10943 #include <sys/file.h>
10944 int
10945 main ()
10946 {
10947 void* p = flock
10948
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_compile "$LINENO"; then :
10954 ac_cv_flock_decl=yes
10955 else
10956 ac_cv_flock_decl=no
10957
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960
10961 fi
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
10963 $as_echo "$ac_cv_flock_decl" >&6; }
10964 if test "x${ac_cv_flock_decl}" = xyes; then
10965 for ac_func in flock
10966 do :
10967 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
10968 if test "x$ac_cv_func_flock" = xyes; then :
10969 cat >>confdefs.h <<_ACEOF
10970 #define HAVE_FLOCK 1
10971 _ACEOF
10972
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
10975 $as_echo_n "checking for flock in -lbsd... " >&6; }
10976 if ${ac_cv_lib_bsd_flock+:} false; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 ac_check_lib_save_LIBS=$LIBS
10980 LIBS="-lbsd $LIBS"
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char flock ();
10991 int
10992 main ()
10993 {
10994 return flock ();
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_link "$LINENO"; then :
11000 ac_cv_lib_bsd_flock=yes
11001 else
11002 ac_cv_lib_bsd_flock=no
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006 LIBS=$ac_check_lib_save_LIBS
11007 fi
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
11009 $as_echo "$ac_cv_lib_bsd_flock" >&6; }
11010 if test "x$ac_cv_lib_bsd_flock" = xyes; then :
11011 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
11012
11013
11014 $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
11015
11016
11017 fi
11018
11019
11020 fi
11021 done
11022
11023 fi
11024
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
11026 $as_echo_n "checking for getpagesize... " >&6; }
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11029
11030 #include <unistd.h>
11031
11032 int
11033 main ()
11034 {
11035 void* p = getpagesize
11036 ;
11037 return 0;
11038 }
11039 _ACEOF
11040 if ac_fn_c_try_compile "$LINENO"; then :
11041
11042 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11043
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11045 $as_echo "yes" >&6; }
11046 else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11049
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
11054 $as_echo_n "checking for broken unsetenv... " >&6; }
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11057
11058 #include <stdlib.h>
11059
11060 int
11061 main ()
11062 {
11063 int res = unsetenv("DUMMY")
11064 ;
11065 return 0;
11066 }
11067 _ACEOF
11068 if ac_fn_c_try_compile "$LINENO"; then :
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11071 else
11072
11073 $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
11074
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076 $as_echo "yes" >&6; }
11077
11078 fi
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080
11081 for ac_prog in true
11082 do
11083 # Extract the first word of "$ac_prog", so it can be a program name with args.
11084 set dummy $ac_prog; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if ${ac_cv_prog_TRUE+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 if test -n "$TRUE"; then
11091 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
11092 else
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11095 do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11100 ac_cv_prog_TRUE="$ac_prog"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11103 fi
11104 done
11105 done
11106 IFS=$as_save_IFS
11107
11108 fi
11109 fi
11110 TRUE=$ac_cv_prog_TRUE
11111 if test -n "$TRUE"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
11113 $as_echo "$TRUE" >&6; }
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11117 fi
11118
11119
11120 test -n "$TRUE" && break
11121 done
11122 test -n "$TRUE" || TRUE="/bin/true"
11123
11124
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
11126 $as_echo_n "checking for inet_aton in -lc... " >&6; }
11127 if ${ac_cv_lib_c_inet_aton+:} false; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-lc $LIBS"
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11134
11135 /* Override any GCC internal prototype to avoid an error.
11136 Use char because int might match the return type of a GCC
11137 builtin and then its argument prototype would still apply. */
11138 #ifdef __cplusplus
11139 extern "C"
11140 #endif
11141 char inet_aton ();
11142 int
11143 main ()
11144 {
11145 return inet_aton ();
11146 ;
11147 return 0;
11148 }
11149 _ACEOF
11150 if ac_fn_c_try_link "$LINENO"; then :
11151 ac_cv_lib_c_inet_aton=yes
11152 else
11153 ac_cv_lib_c_inet_aton=no
11154 fi
11155 rm -f core conftest.err conftest.$ac_objext \
11156 conftest$ac_exeext conftest.$ac_ext
11157 LIBS=$ac_check_lib_save_LIBS
11158 fi
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
11160 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
11161 if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
11162 $ac_cv_prog_TRUE
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
11165 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
11166 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 ac_check_lib_save_LIBS=$LIBS
11170 LIBS="-lresolv $LIBS"
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173
11174 /* Override any GCC internal prototype to avoid an error.
11175 Use char because int might match the return type of a GCC
11176 builtin and then its argument prototype would still apply. */
11177 #ifdef __cplusplus
11178 extern "C"
11179 #endif
11180 char inet_aton ();
11181 int
11182 main ()
11183 {
11184 return inet_aton ();
11185 ;
11186 return 0;
11187 }
11188 _ACEOF
11189 if ac_fn_c_try_link "$LINENO"; then :
11190 ac_cv_lib_resolv_inet_aton=yes
11191 else
11192 ac_cv_lib_resolv_inet_aton=no
11193 fi
11194 rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
11196 LIBS=$ac_check_lib_save_LIBS
11197 fi
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
11199 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
11200 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
11201 cat >>confdefs.h <<_ACEOF
11202 #define HAVE_LIBRESOLV 1
11203 _ACEOF
11204
11205 LIBS="-lresolv $LIBS"
11206
11207 fi
11208
11209
11210 fi
11211
11212
11213 # On Tru64, chflags seems to be present, but calling it will
11214 # exit Python
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
11216 $as_echo_n "checking for chflags... " >&6; }
11217 if ${ac_cv_have_chflags+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 if test "$cross_compiling" = yes; then :
11221 ac_cv_have_chflags=cross
11222 else
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225
11226 #include <sys/stat.h>
11227 #include <unistd.h>
11228 int main(int argc, char*argv[])
11229 {
11230 if(chflags(argv[0], 0) != 0)
11231 return 1;
11232 return 0;
11233 }
11234
11235 _ACEOF
11236 if ac_fn_c_try_run "$LINENO"; then :
11237 ac_cv_have_chflags=yes
11238 else
11239 ac_cv_have_chflags=no
11240 fi
11241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11242 conftest.$ac_objext conftest.beam conftest.$ac_ext
11243 fi
11244
11245
11246 fi
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
11248 $as_echo "$ac_cv_have_chflags" >&6; }
11249 if test "$ac_cv_have_chflags" = cross ; then
11250 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
11251 if test "x$ac_cv_func_chflags" = xyes; then :
11252 ac_cv_have_chflags="yes"
11253 else
11254 ac_cv_have_chflags="no"
11255 fi
11256
11257 fi
11258 if test "$ac_cv_have_chflags" = yes ; then
11259
11260 $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
11261
11262 fi
11263
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
11265 $as_echo_n "checking for lchflags... " >&6; }
11266 if ${ac_cv_have_lchflags+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 if test "$cross_compiling" = yes; then :
11270 ac_cv_have_lchflags=cross
11271 else
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11274
11275 #include <sys/stat.h>
11276 #include <unistd.h>
11277 int main(int argc, char*argv[])
11278 {
11279 if(lchflags(argv[0], 0) != 0)
11280 return 1;
11281 return 0;
11282 }
11283
11284 _ACEOF
11285 if ac_fn_c_try_run "$LINENO"; then :
11286 ac_cv_have_lchflags=yes
11287 else
11288 ac_cv_have_lchflags=no
11289 fi
11290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11291 conftest.$ac_objext conftest.beam conftest.$ac_ext
11292 fi
11293
11294
11295 fi
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
11297 $as_echo "$ac_cv_have_lchflags" >&6; }
11298 if test "$ac_cv_have_lchflags" = cross ; then
11299 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
11300 if test "x$ac_cv_func_lchflags" = xyes; then :
11301 ac_cv_have_lchflags="yes"
11302 else
11303 ac_cv_have_lchflags="no"
11304 fi
11305
11306 fi
11307 if test "$ac_cv_have_lchflags" = yes ; then
11308
11309 $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
11310
11311 fi
11312
11313 case $ac_sys_system/$ac_sys_release in
11314 Darwin/*)
11315 _CUR_CFLAGS="${CFLAGS}"
11316 _CUR_LDFLAGS="${LDFLAGS}"
11317 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
11318 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
11319 ;;
11320 esac
11321
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
11323 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
11324 if ${ac_cv_lib_z_inflateCopy+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-lz $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char inflateCopy ();
11339 int
11340 main ()
11341 {
11342 return inflateCopy ();
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 ac_cv_lib_z_inflateCopy=yes
11349 else
11350 ac_cv_lib_z_inflateCopy=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
11357 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
11358 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
11359
11360 $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
11361
11362 fi
11363
11364
11365 case $ac_sys_system/$ac_sys_release in
11366 Darwin/*)
11367 CFLAGS="${_CUR_CFLAGS}"
11368 LDFLAGS="${_CUR_LDFLAGS}"
11369 ;;
11370 esac
11371
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
11373 $as_echo_n "checking for hstrerror... " >&6; }
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376
11377 #include <netdb.h>
11378
11379 int
11380 main ()
11381 {
11382 void* p = hstrerror; hstrerror(0)
11383 ;
11384 return 0;
11385 }
11386 _ACEOF
11387 if ac_fn_c_try_link "$LINENO"; then :
11388
11389 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
11390
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392 $as_echo "yes" >&6; }
11393 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 $as_echo "no" >&6; }
11396
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
11402 $as_echo_n "checking for inet_aton... " >&6; }
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11405
11406 #include <sys/types.h>
11407 #include <sys/socket.h>
11408 #include <netinet/in.h>
11409 #include <arpa/inet.h>
11410
11411 int
11412 main ()
11413 {
11414 void* p = inet_aton;inet_aton(0,0)
11415 ;
11416 return 0;
11417 }
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11420
11421 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11422
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424 $as_echo "yes" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
11434 $as_echo_n "checking for inet_pton... " >&6; }
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11437
11438 #include <sys/types.h>
11439 #include <sys/socket.h>
11440 #include <netinet/in.h>
11441 #include <arpa/inet.h>
11442
11443 int
11444 main ()
11445 {
11446 void* p = inet_pton
11447 ;
11448 return 0;
11449 }
11450 _ACEOF
11451 if ac_fn_c_try_compile "$LINENO"; then :
11452
11453 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
11454
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456 $as_echo "yes" >&6; }
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11460
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463
11464 # On some systems, setgroups is in unistd.h, on others, in grp.h
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
11466 $as_echo_n "checking for setgroups... " >&6; }
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469
11470 #include <unistd.h>
11471 #ifdef HAVE_GRP_H
11472 #include <grp.h>
11473 #endif
11474
11475 int
11476 main ()
11477 {
11478 void* p = setgroups
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_compile "$LINENO"; then :
11484
11485 $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
11486
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11488 $as_echo "yes" >&6; }
11489 else
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491 $as_echo "no" >&6; }
11492
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495
11496 # check for openpty and forkpty
11497
11498 for ac_func in openpty
11499 do :
11500 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
11501 if test "x$ac_cv_func_openpty" = xyes; then :
11502 cat >>confdefs.h <<_ACEOF
11503 #define HAVE_OPENPTY 1
11504 _ACEOF
11505
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
11508 $as_echo_n "checking for openpty in -lutil... " >&6; }
11509 if ${ac_cv_lib_util_openpty+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 ac_check_lib_save_LIBS=$LIBS
11513 LIBS="-lutil $LIBS"
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516
11517 /* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
11520 #ifdef __cplusplus
11521 extern "C"
11522 #endif
11523 char openpty ();
11524 int
11525 main ()
11526 {
11527 return openpty ();
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_c_try_link "$LINENO"; then :
11533 ac_cv_lib_util_openpty=yes
11534 else
11535 ac_cv_lib_util_openpty=no
11536 fi
11537 rm -f core conftest.err conftest.$ac_objext \
11538 conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11540 fi
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
11542 $as_echo "$ac_cv_lib_util_openpty" >&6; }
11543 if test "x$ac_cv_lib_util_openpty" = xyes; then :
11544 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
11545 LIBS="$LIBS -lutil"
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
11548 $as_echo_n "checking for openpty in -lbsd... " >&6; }
11549 if ${ac_cv_lib_bsd_openpty+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 ac_check_lib_save_LIBS=$LIBS
11553 LIBS="-lbsd $LIBS"
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 char openpty ();
11564 int
11565 main ()
11566 {
11567 return openpty ();
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_link "$LINENO"; then :
11573 ac_cv_lib_bsd_openpty=yes
11574 else
11575 ac_cv_lib_bsd_openpty=no
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
11579 LIBS=$ac_check_lib_save_LIBS
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
11582 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
11583 if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
11584 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
11585 LIBS="$LIBS -lbsd"
11586 fi
11587
11588
11589 fi
11590
11591
11592 fi
11593 done
11594
11595 for ac_func in forkpty
11596 do :
11597 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
11598 if test "x$ac_cv_func_forkpty" = xyes; then :
11599 cat >>confdefs.h <<_ACEOF
11600 #define HAVE_FORKPTY 1
11601 _ACEOF
11602
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
11605 $as_echo_n "checking for forkpty in -lutil... " >&6; }
11606 if ${ac_cv_lib_util_forkpty+:} false; then :
11607 $as_echo_n "(cached) " >&6
11608 else
11609 ac_check_lib_save_LIBS=$LIBS
11610 LIBS="-lutil $LIBS"
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613
11614 /* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11617 #ifdef __cplusplus
11618 extern "C"
11619 #endif
11620 char forkpty ();
11621 int
11622 main ()
11623 {
11624 return forkpty ();
11625 ;
11626 return 0;
11627 }
11628 _ACEOF
11629 if ac_fn_c_try_link "$LINENO"; then :
11630 ac_cv_lib_util_forkpty=yes
11631 else
11632 ac_cv_lib_util_forkpty=no
11633 fi
11634 rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11637 fi
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
11639 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
11640 if test "x$ac_cv_lib_util_forkpty" = xyes; then :
11641 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
11642 LIBS="$LIBS -lutil"
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
11645 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
11646 if ${ac_cv_lib_bsd_forkpty+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-lbsd $LIBS"
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11653
11654 /* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657 #ifdef __cplusplus
11658 extern "C"
11659 #endif
11660 char forkpty ();
11661 int
11662 main ()
11663 {
11664 return forkpty ();
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_bsd_forkpty=yes
11671 else
11672 ac_cv_lib_bsd_forkpty=no
11673 fi
11674 rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11677 fi
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
11679 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
11680 if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
11681 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
11682 LIBS="$LIBS -lbsd"
11683 fi
11684
11685
11686 fi
11687
11688
11689 fi
11690 done
11691
11692
11693 # Stuff for expat.
11694 for ac_func in memmove
11695 do :
11696 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
11697 if test "x$ac_cv_func_memmove" = xyes; then :
11698 cat >>confdefs.h <<_ACEOF
11699 #define HAVE_MEMMOVE 1
11700 _ACEOF
11701
11702 fi
11703 done
11704
11705
11706 # check for long file support functions
11707 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
11708 do :
11709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11711 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11712 cat >>confdefs.h <<_ACEOF
11713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11714 _ACEOF
11715
11716 fi
11717 done
11718
11719
11720 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
11721 if test "x$ac_cv_func_dup2" = xyes; then :
11722 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
11723
11724 else
11725 case " $LIBOBJS " in
11726 *" dup2.$ac_objext "* ) ;;
11727 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
11728 ;;
11729 esac
11730
11731 fi
11732
11733 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
11734 if test "x$ac_cv_func_getcwd" = xyes; then :
11735 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
11736
11737 else
11738 case " $LIBOBJS " in
11739 *" getcwd.$ac_objext "* ) ;;
11740 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
11741 ;;
11742 esac
11743
11744 fi
11745
11746 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
11747 if test "x$ac_cv_func_strdup" = xyes; then :
11748 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
11749
11750 else
11751 case " $LIBOBJS " in
11752 *" strdup.$ac_objext "* ) ;;
11753 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
11754 ;;
11755 esac
11756
11757 fi
11758
11759
11760 for ac_func in getpgrp
11761 do :
11762 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
11763 if test "x$ac_cv_func_getpgrp" = xyes; then :
11764 cat >>confdefs.h <<_ACEOF
11765 #define HAVE_GETPGRP 1
11766 _ACEOF
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11769 #include <unistd.h>
11770 int
11771 main ()
11772 {
11773 getpgrp(0);
11774 ;
11775 return 0;
11776 }
11777 _ACEOF
11778 if ac_fn_c_try_compile "$LINENO"; then :
11779
11780 $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
11781
11782 fi
11783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11784
11785 fi
11786 done
11787
11788 for ac_func in setpgrp
11789 do :
11790 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
11791 if test "x$ac_cv_func_setpgrp" = xyes; then :
11792 cat >>confdefs.h <<_ACEOF
11793 #define HAVE_SETPGRP 1
11794 _ACEOF
11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h. */
11797 #include <unistd.h>
11798 int
11799 main ()
11800 {
11801 setpgrp(0,0);
11802 ;
11803 return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_c_try_compile "$LINENO"; then :
11807
11808 $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
11809
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812
11813 fi
11814 done
11815
11816 for ac_func in gettimeofday
11817 do :
11818 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11819 if test "x$ac_cv_func_gettimeofday" = xyes; then :
11820 cat >>confdefs.h <<_ACEOF
11821 #define HAVE_GETTIMEOFDAY 1
11822 _ACEOF
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825 #include <sys/time.h>
11826 int
11827 main ()
11828 {
11829 gettimeofday((struct timeval*)0,(struct timezone*)0);
11830 ;
11831 return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_c_try_compile "$LINENO"; then :
11835
11836 else
11837
11838 $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
11839
11840
11841 fi
11842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11843
11844 fi
11845 done
11846
11847
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
11849 $as_echo_n "checking for major... " >&6; }
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852
11853 #if defined(MAJOR_IN_MKDEV)
11854 #include <sys/mkdev.h>
11855 #elif defined(MAJOR_IN_SYSMACROS)
11856 #include <sys/sysmacros.h>
11857 #else
11858 #include <sys/types.h>
11859 #endif
11860
11861 int
11862 main ()
11863 {
11864
11865 makedev(major(0),minor(0));
11866
11867 ;
11868 return 0;
11869 }
11870 _ACEOF
11871 if ac_fn_c_try_link "$LINENO"; then :
11872
11873
11874 $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
11875
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11877 $as_echo "yes" >&6; }
11878
11879 else
11880
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11883
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11887
11888 # On OSF/1 V5.1, getaddrinfo is available, but a define
11889 # for [no]getaddrinfo in netdb.h.
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
11891 $as_echo_n "checking for getaddrinfo... " >&6; }
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894
11895 #include <sys/types.h>
11896 #include <sys/socket.h>
11897 #include <netdb.h>
11898 #include <stdio.h>
11899
11900 int
11901 main ()
11902 {
11903 getaddrinfo(NULL, NULL, NULL, NULL);
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 have_getaddrinfo=yes
11910 else
11911 have_getaddrinfo=no
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
11916 $as_echo "$have_getaddrinfo" >&6; }
11917 if test $have_getaddrinfo = yes
11918 then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
11920 $as_echo_n "checking getaddrinfo bug... " >&6; }
11921 if ${ac_cv_buggy_getaddrinfo+:} false; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 if test "$cross_compiling" = yes; then :
11925
11926 if test "${enable_ipv6+set}" = set; then
11927 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
11928 else
11929 ac_cv_buggy_getaddrinfo=yes
11930 fi
11931 else
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934
11935 #include <stdio.h>
11936 #include <sys/types.h>
11937 #include <netdb.h>
11938 #include <string.h>
11939 #include <sys/socket.h>
11940 #include <netinet/in.h>
11941
11942 int main()
11943 {
11944 int passive, gaierr, inet4 = 0, inet6 = 0;
11945 struct addrinfo hints, *ai, *aitop;
11946 char straddr[INET6_ADDRSTRLEN], strport[16];
11947
11948 for (passive = 0; passive <= 1; passive++) {
11949 memset(&hints, 0, sizeof(hints));
11950 hints.ai_family = AF_UNSPEC;
11951 hints.ai_flags = passive ? AI_PASSIVE : 0;
11952 hints.ai_socktype = SOCK_STREAM;
11953 hints.ai_protocol = IPPROTO_TCP;
11954 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
11955 (void)gai_strerror(gaierr);
11956 goto bad;
11957 }
11958 for (ai = aitop; ai; ai = ai->ai_next) {
11959 if (ai->ai_addr == NULL ||
11960 ai->ai_addrlen == 0 ||
11961 getnameinfo(ai->ai_addr, ai->ai_addrlen,
11962 straddr, sizeof(straddr), strport, sizeof(strport),
11963 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
11964 goto bad;
11965 }
11966 switch (ai->ai_family) {
11967 case AF_INET:
11968 if (strcmp(strport, "54321") != 0) {
11969 goto bad;
11970 }
11971 if (passive) {
11972 if (strcmp(straddr, "0.0.0.0") != 0) {
11973 goto bad;
11974 }
11975 } else {
11976 if (strcmp(straddr, "127.0.0.1") != 0) {
11977 goto bad;
11978 }
11979 }
11980 inet4++;
11981 break;
11982 case AF_INET6:
11983 if (strcmp(strport, "54321") != 0) {
11984 goto bad;
11985 }
11986 if (passive) {
11987 if (strcmp(straddr, "::") != 0) {
11988 goto bad;
11989 }
11990 } else {
11991 if (strcmp(straddr, "::1") != 0) {
11992 goto bad;
11993 }
11994 }
11995 inet6++;
11996 break;
11997 case AF_UNSPEC:
11998 goto bad;
11999 break;
12000 default:
12001 /* another family support? */
12002 break;
12003 }
12004 }
12005 freeaddrinfo(aitop);
12006 aitop = NULL;
12007 }
12008
12009 if (!(inet4 == 0 || inet4 == 2))
12010 goto bad;
12011 if (!(inet6 == 0 || inet6 == 2))
12012 goto bad;
12013
12014 if (aitop)
12015 freeaddrinfo(aitop);
12016 return 0;
12017
12018 bad:
12019 if (aitop)
12020 freeaddrinfo(aitop);
12021 return 1;
12022 }
12023
12024 _ACEOF
12025 if ac_fn_c_try_run "$LINENO"; then :
12026 ac_cv_buggy_getaddrinfo=no
12027 else
12028 ac_cv_buggy_getaddrinfo=yes
12029 fi
12030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12031 conftest.$ac_objext conftest.beam conftest.$ac_ext
12032 fi
12033
12034 fi
12035
12036 fi
12037
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
12039 $as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
12040
12041 if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
12042 then
12043 if test $ipv6 = yes
12044 then
12045 echo 'Fatal: You must get working getaddrinfo() function.'
12046 echo ' or you can specify "--disable-ipv6"'.
12047 exit 1
12048 fi
12049 else
12050
12051 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
12052
12053 fi
12054
12055 for ac_func in getnameinfo
12056 do :
12057 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12058 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12059 cat >>confdefs.h <<_ACEOF
12060 #define HAVE_GETNAMEINFO 1
12061 _ACEOF
12062
12063 fi
12064 done
12065
12066
12067 # checks for structures
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12069 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12070 if ${ac_cv_header_time+:} false; then :
12071 $as_echo_n "(cached) " >&6
12072 else
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 #include <sys/types.h>
12076 #include <sys/time.h>
12077 #include <time.h>
12078
12079 int
12080 main ()
12081 {
12082 if ((struct tm *) 0)
12083 return 0;
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_c_try_compile "$LINENO"; then :
12089 ac_cv_header_time=yes
12090 else
12091 ac_cv_header_time=no
12092 fi
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12096 $as_echo "$ac_cv_header_time" >&6; }
12097 if test $ac_cv_header_time = yes; then
12098
12099 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12100
12101 fi
12102
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12104 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12105 if ${ac_cv_struct_tm+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 #include <sys/types.h>
12111 #include <time.h>
12112
12113 int
12114 main ()
12115 {
12116 struct tm tm;
12117 int *p = &tm.tm_sec;
12118 return !p;
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 if ac_fn_c_try_compile "$LINENO"; then :
12124 ac_cv_struct_tm=time.h
12125 else
12126 ac_cv_struct_tm=sys/time.h
12127 fi
12128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12131 $as_echo "$ac_cv_struct_tm" >&6; }
12132 if test $ac_cv_struct_tm = sys/time.h; then
12133
12134 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12135
12136 fi
12137
12138 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12139 #include <$ac_cv_struct_tm>
12140
12141 "
12142 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12143
12144 cat >>confdefs.h <<_ACEOF
12145 #define HAVE_STRUCT_TM_TM_ZONE 1
12146 _ACEOF
12147
12148
12149 fi
12150
12151 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12152
12153 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12154
12155 else
12156 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12157 "
12158 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12159 ac_have_decl=1
12160 else
12161 ac_have_decl=0
12162 fi
12163
12164 cat >>confdefs.h <<_ACEOF
12165 #define HAVE_DECL_TZNAME $ac_have_decl
12166 _ACEOF
12167
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12169 $as_echo_n "checking for tzname... " >&6; }
12170 if ${ac_cv_var_tzname+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12175 #include <time.h>
12176 #if !HAVE_DECL_TZNAME
12177 extern char *tzname[];
12178 #endif
12179
12180 int
12181 main ()
12182 {
12183 return tzname[0][0];
12184 ;
12185 return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_link "$LINENO"; then :
12189 ac_cv_var_tzname=yes
12190 else
12191 ac_cv_var_tzname=no
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
12195 fi
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12197 $as_echo "$ac_cv_var_tzname" >&6; }
12198 if test $ac_cv_var_tzname = yes; then
12199
12200 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12201
12202 fi
12203 fi
12204
12205 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12206 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12207
12208 cat >>confdefs.h <<_ACEOF
12209 #define HAVE_STRUCT_STAT_ST_RDEV 1
12210 _ACEOF
12211
12212
12213 fi
12214
12215 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12216 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
12217
12218 cat >>confdefs.h <<_ACEOF
12219 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12220 _ACEOF
12221
12222
12223 fi
12224
12225 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
12226 if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
12227
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_STRUCT_STAT_ST_FLAGS 1
12230 _ACEOF
12231
12232
12233 fi
12234
12235 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
12236 if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_STRUCT_STAT_ST_GEN 1
12240 _ACEOF
12241
12242
12243 fi
12244
12245 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
12246 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
12247
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
12250 _ACEOF
12251
12252
12253 fi
12254
12255 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12256 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12257
12258 cat >>confdefs.h <<_ACEOF
12259 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12260 _ACEOF
12261
12262
12263 fi
12264
12265
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
12267 $as_echo_n "checking for time.h that defines altzone... " >&6; }
12268 if ${ac_cv_header_time_altzone+:} false; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274 #include <time.h>
12275 int
12276 main ()
12277 {
12278 return altzone;
12279 ;
12280 return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_compile "$LINENO"; then :
12284 ac_cv_header_time_altzone=yes
12285 else
12286 ac_cv_header_time_altzone=no
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289
12290 fi
12291
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
12293 $as_echo "$ac_cv_header_time_altzone" >&6; }
12294 if test $ac_cv_header_time_altzone = yes; then
12295
12296 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
12297
12298 fi
12299
12300 was_it_defined=no
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12302 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305
12306 #include <sys/types.h>
12307 #include <sys/select.h>
12308 #include <sys/time.h>
12309
12310 int
12311 main ()
12312 {
12313 ;
12314 ;
12315 return 0;
12316 }
12317 _ACEOF
12318 if ac_fn_c_try_compile "$LINENO"; then :
12319
12320
12321 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12322
12323 was_it_defined=yes
12324
12325 fi
12326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
12328 $as_echo "$was_it_defined" >&6; }
12329
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
12331 $as_echo_n "checking for addrinfo... " >&6; }
12332 if ${ac_cv_struct_addrinfo+:} false; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 #include <netdb.h>
12338 int
12339 main ()
12340 {
12341 struct addrinfo a
12342 ;
12343 return 0;
12344 }
12345 _ACEOF
12346 if ac_fn_c_try_compile "$LINENO"; then :
12347 ac_cv_struct_addrinfo=yes
12348 else
12349 ac_cv_struct_addrinfo=no
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 fi
12353
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
12355 $as_echo "$ac_cv_struct_addrinfo" >&6; }
12356 if test $ac_cv_struct_addrinfo = yes; then
12357
12358 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
12359
12360 fi
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
12363 $as_echo_n "checking for sockaddr_storage... " >&6; }
12364 if ${ac_cv_struct_sockaddr_storage+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12369
12370 # include <sys/types.h>
12371 # include <sys/socket.h>
12372 int
12373 main ()
12374 {
12375 struct sockaddr_storage s
12376 ;
12377 return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_compile "$LINENO"; then :
12381 ac_cv_struct_sockaddr_storage=yes
12382 else
12383 ac_cv_struct_sockaddr_storage=no
12384 fi
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386 fi
12387
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
12389 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
12390 if test $ac_cv_struct_sockaddr_storage = yes; then
12391
12392 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
12393
12394 fi
12395
12396 # checks for compiler characteristics
12397
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
12399 $as_echo_n "checking whether char is unsigned... " >&6; }
12400 if ${ac_cv_c_char_unsigned+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405 $ac_includes_default
12406 int
12407 main ()
12408 {
12409 static int test_array [1 - 2 * !(((char) -1) < 0)];
12410 test_array [0] = 0;
12411 return test_array [0];
12412
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 if ac_fn_c_try_compile "$LINENO"; then :
12418 ac_cv_c_char_unsigned=no
12419 else
12420 ac_cv_c_char_unsigned=yes
12421 fi
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
12425 $as_echo "$ac_cv_c_char_unsigned" >&6; }
12426 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12427 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
12428
12429 fi
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12432 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12433 if ${ac_cv_c_const+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438
12439 int
12440 main ()
12441 {
12442
12443 #ifndef __cplusplus
12444 /* Ultrix mips cc rejects this sort of thing. */
12445 typedef int charset[2];
12446 const charset cs = { 0, 0 };
12447 /* SunOS 4.1.1 cc rejects this. */
12448 char const *const *pcpcc;
12449 char **ppc;
12450 /* NEC SVR4.0.2 mips cc rejects this. */
12451 struct point {int x, y;};
12452 static struct point const zero = {0,0};
12453 /* AIX XL C 1.02.0.0 rejects this.
12454 It does not let you subtract one const X* pointer from another in
12455 an arm of an if-expression whose if-part is not a constant
12456 expression */
12457 const char *g = "string";
12458 pcpcc = &g + (g ? g-g : 0);
12459 /* HPUX 7.0 cc rejects these. */
12460 ++pcpcc;
12461 ppc = (char**) pcpcc;
12462 pcpcc = (char const *const *) ppc;
12463 { /* SCO 3.2v4 cc rejects this sort of thing. */
12464 char tx;
12465 char *t = &tx;
12466 char const *s = 0 ? (char *) 0 : (char const *) 0;
12467
12468 *t++ = 0;
12469 if (s) return 0;
12470 }
12471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12472 int x[] = {25, 17};
12473 const int *foo = &x[0];
12474 ++foo;
12475 }
12476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12477 typedef const int *iptr;
12478 iptr p = 0;
12479 ++p;
12480 }
12481 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12483 struct s { int j; const int *ap[3]; } bx;
12484 struct s *b = &bx; b->j = 5;
12485 }
12486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12487 const int foo = 10;
12488 if (!foo) return 0;
12489 }
12490 return !cs[0] && !zero.x;
12491 #endif
12492
12493 ;
12494 return 0;
12495 }
12496 _ACEOF
12497 if ac_fn_c_try_compile "$LINENO"; then :
12498 ac_cv_c_const=yes
12499 else
12500 ac_cv_c_const=no
12501 fi
12502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12505 $as_echo "$ac_cv_c_const" >&6; }
12506 if test $ac_cv_c_const = no; then
12507
12508 $as_echo "#define const /**/" >>confdefs.h
12509
12510 fi
12511
12512
12513 works=no
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12515 $as_echo_n "checking for working volatile... " >&6; }
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518
12519 int
12520 main ()
12521 {
12522 volatile int x; x = 0;
12523 ;
12524 return 0;
12525 }
12526 _ACEOF
12527 if ac_fn_c_try_compile "$LINENO"; then :
12528 works=yes
12529 else
12530
12531 $as_echo "#define volatile /**/" >>confdefs.h
12532
12533
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12537 $as_echo "$works" >&6; }
12538
12539 works=no
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
12541 $as_echo_n "checking for working signed char... " >&6; }
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12544
12545 int
12546 main ()
12547 {
12548 signed char c;
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_compile "$LINENO"; then :
12554 works=yes
12555 else
12556
12557 $as_echo "#define signed /**/" >>confdefs.h
12558
12559
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12563 $as_echo "$works" >&6; }
12564
12565 have_prototypes=no
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
12567 $as_echo_n "checking for prototypes... " >&6; }
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 int foo(int x) { return 0; }
12571 int
12572 main ()
12573 {
12574 return foo(10);
12575 ;
12576 return 0;
12577 }
12578 _ACEOF
12579 if ac_fn_c_try_compile "$LINENO"; then :
12580
12581 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
12582
12583 have_prototypes=yes
12584 fi
12585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
12587 $as_echo "$have_prototypes" >&6; }
12588
12589 works=no
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
12591 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12594
12595 #include <stdarg.h>
12596 int foo(int x, ...) {
12597 va_list va;
12598 va_start(va, x);
12599 va_arg(va, int);
12600 va_arg(va, char *);
12601 va_arg(va, double);
12602 return 0;
12603 }
12604
12605 int
12606 main ()
12607 {
12608 return foo(10, "", 3.14);
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_c_try_compile "$LINENO"; then :
12614
12615
12616 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
12617
12618 works=yes
12619
12620 fi
12621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
12623 $as_echo "$works" >&6; }
12624
12625 # check for socketpair
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
12627 $as_echo_n "checking for socketpair... " >&6; }
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630
12631 #include <sys/types.h>
12632 #include <sys/socket.h>
12633
12634 int
12635 main ()
12636 {
12637 void *x=socketpair
12638 ;
12639 return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_compile "$LINENO"; then :
12643
12644 $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
12645
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12647 $as_echo "yes" >&6; }
12648 else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651
12652 fi
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654
12655 # check if sockaddr has sa_len member
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
12657 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12660 #include <sys/types.h>
12661 #include <sys/socket.h>
12662 int
12663 main ()
12664 {
12665 struct sockaddr x;
12666 x.sa_len = 0;
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_compile "$LINENO"; then :
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673 $as_echo "yes" >&6; }
12674
12675 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
12676
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12680
12681 fi
12682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683
12684 va_list_is_array=no
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
12686 $as_echo_n "checking whether va_list is an array... " >&6; }
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12689
12690 #ifdef HAVE_STDARG_PROTOTYPES
12691 #include <stdarg.h>
12692 #else
12693 #include <varargs.h>
12694 #endif
12695
12696 int
12697 main ()
12698 {
12699 va_list list1, list2; list1 = list2;
12700 ;
12701 return 0;
12702 }
12703 _ACEOF
12704 if ac_fn_c_try_compile "$LINENO"; then :
12705
12706 else
12707
12708
12709 $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
12710
12711 va_list_is_array=yes
12712
12713 fi
12714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
12716 $as_echo "$va_list_is_array" >&6; }
12717
12718 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
12719
12720
12721 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
12722 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
12723
12724 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12725
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
12727 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
12728 OLD_CFLAGS=$CFLAGS
12729 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732
12733 # include <netdb.h>
12734
12735 int
12736 main ()
12737 {
12738
12739 char *name;
12740 struct hostent *he, *res;
12741 char buffer[2048];
12742 int buflen = 2048;
12743 int h_errnop;
12744
12745 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
12746
12747 ;
12748 return 0;
12749 }
12750 _ACEOF
12751 if ac_fn_c_try_compile "$LINENO"; then :
12752
12753 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12754
12755
12756 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
12757
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759 $as_echo "yes" >&6; }
12760
12761 else
12762
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
12766 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769
12770 # include <netdb.h>
12771
12772 int
12773 main ()
12774 {
12775
12776 char *name;
12777 struct hostent *he;
12778 char buffer[2048];
12779 int buflen = 2048;
12780 int h_errnop;
12781
12782 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
12783
12784 ;
12785 return 0;
12786 }
12787 _ACEOF
12788 if ac_fn_c_try_compile "$LINENO"; then :
12789
12790 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12791
12792
12793 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
12794
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796 $as_echo "yes" >&6; }
12797
12798 else
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 $as_echo "no" >&6; }
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
12803 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12806
12807 # include <netdb.h>
12808
12809 int
12810 main ()
12811 {
12812
12813 char *name;
12814 struct hostent *he;
12815 struct hostent_data data;
12816
12817 (void) gethostbyname_r(name, he, &data);
12818
12819 ;
12820 return 0;
12821 }
12822 _ACEOF
12823 if ac_fn_c_try_compile "$LINENO"; then :
12824
12825 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12826
12827
12828 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12831 $as_echo "yes" >&6; }
12832
12833 else
12834
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12837
12838 fi
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840
12841 fi
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12846 CFLAGS=$OLD_CFLAGS
12847
12848 else
12849
12850 for ac_func in gethostbyname
12851 do :
12852 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12853 if test "x$ac_cv_func_gethostbyname" = xyes; then :
12854 cat >>confdefs.h <<_ACEOF
12855 #define HAVE_GETHOSTBYNAME 1
12856 _ACEOF
12857
12858 fi
12859 done
12860
12861
12862 fi
12863
12864
12865
12866
12867
12868
12869
12870 # checks for system services
12871 # (none yet)
12872
12873 # Linux requires this for correct f.p. operations
12874 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
12875 if test "x$ac_cv_func___fpu_control" = xyes; then :
12876
12877 else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
12879 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
12880 if ${ac_cv_lib_ieee___fpu_control+:} false; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 ac_check_lib_save_LIBS=$LIBS
12884 LIBS="-lieee $LIBS"
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12891 #ifdef __cplusplus
12892 extern "C"
12893 #endif
12894 char __fpu_control ();
12895 int
12896 main ()
12897 {
12898 return __fpu_control ();
12899 ;
12900 return 0;
12901 }
12902 _ACEOF
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 ac_cv_lib_ieee___fpu_control=yes
12905 else
12906 ac_cv_lib_ieee___fpu_control=no
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 LIBS=$ac_check_lib_save_LIBS
12911 fi
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
12913 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
12914 if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
12915 cat >>confdefs.h <<_ACEOF
12916 #define HAVE_LIBIEEE 1
12917 _ACEOF
12918
12919 LIBS="-lieee $LIBS"
12920
12921 fi
12922
12923
12924 fi
12925
12926
12927 # Check for --with-fpectl
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
12929 $as_echo_n "checking for --with-fpectl... " >&6; }
12930
12931 # Check whether --with-fpectl was given.
12932 if test "${with_fpectl+set}" = set; then :
12933 withval=$with_fpectl;
12934 if test "$withval" != no
12935 then
12936
12937 $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
12938
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12940 $as_echo "yes" >&6; }
12941 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12943 fi
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12947 fi
12948
12949
12950 # check for --with-libm=...
12951
12952 case $ac_sys_system in
12953 Darwin) ;;
12954 BeOS) ;;
12955 *) LIBM=-lm
12956 esac
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
12958 $as_echo_n "checking for --with-libm=STRING... " >&6; }
12959
12960 # Check whether --with-libm was given.
12961 if test "${with_libm+set}" = set; then :
12962 withval=$with_libm;
12963 if test "$withval" = no
12964 then LIBM=
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
12966 $as_echo "force LIBM empty" >&6; }
12967 elif test "$withval" != yes
12968 then LIBM=$withval
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
12970 $as_echo "set LIBM=\"$withval\"" >&6; }
12971 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
12972 fi
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
12975 $as_echo "default LIBM=\"$LIBM\"" >&6; }
12976 fi
12977
12978
12979 # check for --with-libc=...
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
12982 $as_echo_n "checking for --with-libc=STRING... " >&6; }
12983
12984 # Check whether --with-libc was given.
12985 if test "${with_libc+set}" = set; then :
12986 withval=$with_libc;
12987 if test "$withval" = no
12988 then LIBC=
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
12990 $as_echo "force LIBC empty" >&6; }
12991 elif test "$withval" != yes
12992 then LIBC=$withval
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
12994 $as_echo "set LIBC=\"$withval\"" >&6; }
12995 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
12996 fi
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
12999 $as_echo "default LIBC=\"$LIBC\"" >&6; }
13000 fi
13001
13002
13003 # **************************************************
13004 # * Check for various properties of floating point *
13005 # **************************************************
13006
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
13008 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
13009 if ${ac_cv_little_endian_double+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012
13013 if test "$cross_compiling" = yes; then :
13014 ac_cv_little_endian_double=no
13015 else
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13018
13019 #include <string.h>
13020 int main() {
13021 double x = 9006104071832581.0;
13022 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
13023 return 0;
13024 else
13025 return 1;
13026 }
13027
13028 _ACEOF
13029 if ac_fn_c_try_run "$LINENO"; then :
13030 ac_cv_little_endian_double=yes
13031 else
13032 ac_cv_little_endian_double=no
13033 fi
13034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13035 conftest.$ac_objext conftest.beam conftest.$ac_ext
13036 fi
13037
13038 fi
13039
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
13041 $as_echo "$ac_cv_little_endian_double" >&6; }
13042 if test "$ac_cv_little_endian_double" = yes
13043 then
13044
13045 $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
13046
13047 fi
13048
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
13050 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
13051 if ${ac_cv_big_endian_double+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054
13055 if test "$cross_compiling" = yes; then :
13056 ac_cv_big_endian_double=no
13057 else
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060
13061 #include <string.h>
13062 int main() {
13063 double x = 9006104071832581.0;
13064 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
13065 return 0;
13066 else
13067 return 1;
13068 }
13069
13070 _ACEOF
13071 if ac_fn_c_try_run "$LINENO"; then :
13072 ac_cv_big_endian_double=yes
13073 else
13074 ac_cv_big_endian_double=no
13075 fi
13076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13077 conftest.$ac_objext conftest.beam conftest.$ac_ext
13078 fi
13079
13080 fi
13081
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
13083 $as_echo "$ac_cv_big_endian_double" >&6; }
13084 if test "$ac_cv_big_endian_double" = yes
13085 then
13086
13087 $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
13088
13089 fi
13090
13091 # Some ARM platforms use a mixed-endian representation for doubles.
13092 # While Python doesn't currently have full support for these platforms
13093 # (see e.g., issue 1762561), we can at least make sure that float <-> string
13094 # conversions work.
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
13096 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
13097 if ${ac_cv_mixed_endian_double+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100
13101 if test "$cross_compiling" = yes; then :
13102 ac_cv_mixed_endian_double=no
13103 else
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106
13107 #include <string.h>
13108 int main() {
13109 double x = 9006104071832581.0;
13110 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
13111 return 0;
13112 else
13113 return 1;
13114 }
13115
13116 _ACEOF
13117 if ac_fn_c_try_run "$LINENO"; then :
13118 ac_cv_mixed_endian_double=yes
13119 else
13120 ac_cv_mixed_endian_double=no
13121 fi
13122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13123 conftest.$ac_objext conftest.beam conftest.$ac_ext
13124 fi
13125
13126 fi
13127
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
13129 $as_echo "$ac_cv_mixed_endian_double" >&6; }
13130 if test "$ac_cv_mixed_endian_double" = yes
13131 then
13132
13133 $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
13134
13135 fi
13136
13137 # The short float repr introduced in Python 3.1 requires the
13138 # correctly-rounded string <-> double conversion functions from
13139 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
13140 # rounding; this is a problem on x86, where the x87 FPU has a default
13141 # rounding precision of 64 bits. For gcc/x86, we can fix this by
13142 # using inline assembler to get and set the x87 FPU control word.
13143
13144 # This inline assembler syntax may also work for suncc and icc,
13145 # so we try it on all platforms.
13146
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
13148 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13151
13152 int
13153 main ()
13154 {
13155
13156 unsigned short cw;
13157 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
13158 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
13159
13160 ;
13161 return 0;
13162 }
13163 _ACEOF
13164 if ac_fn_c_try_link "$LINENO"; then :
13165 have_gcc_asm_for_x87=yes
13166 else
13167 have_gcc_asm_for_x87=no
13168 fi
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
13172 $as_echo "$have_gcc_asm_for_x87" >&6; }
13173 if test "$have_gcc_asm_for_x87" = yes
13174 then
13175
13176 $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
13177
13178 fi
13179
13180 # Detect whether system arithmetic is subject to x87-style double
13181 # rounding issues. The result of this test has little meaning on non
13182 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
13183 # mode is round-to-nearest and double rounding issues are present, and
13184 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
13186 $as_echo_n "checking for x87-style double rounding... " >&6; }
13187 # $BASECFLAGS may affect the result
13188 ac_save_cc="$CC"
13189 CC="$CC $BASECFLAGS"
13190 if test "$cross_compiling" = yes; then :
13191 ac_cv_x87_double_rounding=no
13192 else
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13195
13196 #include <stdlib.h>
13197 #include <math.h>
13198 int main() {
13199 volatile double x, y, z;
13200 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
13201 x = 0.99999999999999989; /* 1-2**-53 */
13202 y = 1./x;
13203 if (y != 1.)
13204 exit(0);
13205 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
13206 x = 1e16;
13207 y = 2.99999;
13208 z = x + y;
13209 if (z != 1e16+4.)
13210 exit(0);
13211 /* both tests show evidence of double rounding */
13212 exit(1);
13213 }
13214
13215 _ACEOF
13216 if ac_fn_c_try_run "$LINENO"; then :
13217 ac_cv_x87_double_rounding=no
13218 else
13219 ac_cv_x87_double_rounding=yes
13220 fi
13221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13222 conftest.$ac_objext conftest.beam conftest.$ac_ext
13223 fi
13224
13225 CC="$ac_save_cc"
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
13227 $as_echo "$ac_cv_x87_double_rounding" >&6; }
13228 if test "$ac_cv_x87_double_rounding" = yes
13229 then
13230
13231 $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
13232
13233 fi
13234
13235 # ************************************
13236 # * Check for mathematical functions *
13237 # ************************************
13238
13239 LIBS_SAVE=$LIBS
13240 LIBS="$LIBS $LIBM"
13241
13242 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
13243 # -0. on some architectures.
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
13245 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
13246 if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249
13250 if test "$cross_compiling" = yes; then :
13251 ac_cv_tanh_preserves_zero_sign=no
13252 else
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255
13256 #include <math.h>
13257 #include <stdlib.h>
13258 int main() {
13259 /* return 0 if either negative zeros don't exist
13260 on this platform or if negative zeros exist
13261 and tanh(-0.) == -0. */
13262 if (atan2(0., -1.) == atan2(-0., -1.) ||
13263 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
13264 else exit(1);
13265 }
13266
13267 _ACEOF
13268 if ac_fn_c_try_run "$LINENO"; then :
13269 ac_cv_tanh_preserves_zero_sign=yes
13270 else
13271 ac_cv_tanh_preserves_zero_sign=no
13272 fi
13273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13274 conftest.$ac_objext conftest.beam conftest.$ac_ext
13275 fi
13276
13277 fi
13278
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
13280 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
13281 if test "$ac_cv_tanh_preserves_zero_sign" = yes
13282 then
13283
13284 $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
13285
13286 fi
13287
13288 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
13289 do :
13290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13292 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13293 cat >>confdefs.h <<_ACEOF
13294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13295 _ACEOF
13296
13297 fi
13298 done
13299
13300 for ac_func in hypot lgamma log1p round tgamma
13301 do :
13302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13305 cat >>confdefs.h <<_ACEOF
13306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13307 _ACEOF
13308
13309 fi
13310 done
13311
13312 ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
13313 "
13314 if test "x$ac_cv_have_decl_isinf" = xyes; then :
13315 ac_have_decl=1
13316 else
13317 ac_have_decl=0
13318 fi
13319
13320 cat >>confdefs.h <<_ACEOF
13321 #define HAVE_DECL_ISINF $ac_have_decl
13322 _ACEOF
13323 ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
13324 "
13325 if test "x$ac_cv_have_decl_isnan" = xyes; then :
13326 ac_have_decl=1
13327 else
13328 ac_have_decl=0
13329 fi
13330
13331 cat >>confdefs.h <<_ACEOF
13332 #define HAVE_DECL_ISNAN $ac_have_decl
13333 _ACEOF
13334 ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
13335 "
13336 if test "x$ac_cv_have_decl_isfinite" = xyes; then :
13337 ac_have_decl=1
13338 else
13339 ac_have_decl=0
13340 fi
13341
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_DECL_ISFINITE $ac_have_decl
13344 _ACEOF
13345
13346
13347 LIBS=$LIBS_SAVE
13348
13349 # For multiprocessing module, check that sem_open
13350 # actually works. For FreeBSD versions <= 7.2,
13351 # the kernel module that provides POSIX semaphores
13352 # isn't loaded by default, so an attempt to call
13353 # sem_open results in a 'Signal 12' error.
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
13355 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
13356 if ${ac_cv_posix_semaphores_enabled+:} false; then :
13357 $as_echo_n "(cached) " >&6
13358 else
13359 if test "$cross_compiling" = yes; then :
13360 ac_cv_posix_semaphores_enabled=yes
13361 else
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13364
13365 #include <unistd.h>
13366 #include <fcntl.h>
13367 #include <stdio.h>
13368 #include <semaphore.h>
13369 #include <sys/stat.h>
13370
13371 int main(void) {
13372 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
13373 if (a == SEM_FAILED) {
13374 perror("sem_open");
13375 return 1;
13376 }
13377 sem_close(a);
13378 sem_unlink("/autoconf");
13379 return 0;
13380 }
13381
13382 _ACEOF
13383 if ac_fn_c_try_run "$LINENO"; then :
13384 ac_cv_posix_semaphores_enabled=yes
13385 else
13386 ac_cv_posix_semaphores_enabled=no
13387 fi
13388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13389 conftest.$ac_objext conftest.beam conftest.$ac_ext
13390 fi
13391
13392
13393 fi
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
13396 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
13397 if test $ac_cv_posix_semaphores_enabled = no
13398 then
13399
13400 $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
13401
13402 fi
13403
13404 # Multiprocessing check for broken sem_getvalue
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
13406 $as_echo_n "checking for broken sem_getvalue... " >&6; }
13407 if ${ac_cv_broken_sem_getvalue+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410 if test "$cross_compiling" = yes; then :
13411 ac_cv_broken_sem_getvalue=yes
13412 else
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13415
13416 #include <unistd.h>
13417 #include <fcntl.h>
13418 #include <stdio.h>
13419 #include <semaphore.h>
13420 #include <sys/stat.h>
13421
13422 int main(void){
13423 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
13424 int count;
13425 int res;
13426 if(a==SEM_FAILED){
13427 perror("sem_open");
13428 return 1;
13429
13430 }
13431 res = sem_getvalue(a, &count);
13432 sem_close(a);
13433 sem_unlink("/autocftw");
13434 return res==-1 ? 1 : 0;
13435 }
13436
13437 _ACEOF
13438 if ac_fn_c_try_run "$LINENO"; then :
13439 ac_cv_broken_sem_getvalue=no
13440 else
13441 ac_cv_broken_sem_getvalue=yes
13442 fi
13443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13444 conftest.$ac_objext conftest.beam conftest.$ac_ext
13445 fi
13446
13447
13448 fi
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
13451 $as_echo "$ac_cv_broken_sem_getvalue" >&6; }
13452 if test $ac_cv_broken_sem_getvalue = yes
13453 then
13454
13455 $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
13456
13457 fi
13458
13459 # determine what size digit to use for Python's longs
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
13461 $as_echo_n "checking digit size for Python's longs... " >&6; }
13462 # Check whether --enable-big-digits was given.
13463 if test "${enable_big_digits+set}" = set; then :
13464 enableval=$enable_big_digits; case $enable_big_digits in
13465 yes)
13466 enable_big_digits=30 ;;
13467 no)
13468 enable_big_digits=15 ;;
13469 15|30)
13470 ;;
13471 *)
13472 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
13473 esac
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
13475 $as_echo "$enable_big_digits" >&6; }
13476
13477 cat >>confdefs.h <<_ACEOF
13478 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
13479 _ACEOF
13480
13481
13482 else
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
13484 $as_echo "no value specified" >&6; }
13485 fi
13486
13487
13488 # check for wchar.h
13489 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
13490 if test "x$ac_cv_header_wchar_h" = xyes; then :
13491
13492
13493 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
13494
13495 wchar_h="yes"
13496
13497 else
13498 wchar_h="no"
13499
13500 fi
13501
13502
13503
13504 # determine wchar_t size
13505 if test "$wchar_h" = yes
13506 then
13507 # The cast to long int works around a bug in the HP C Compiler
13508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13510 # This bug is HP SR number 8606223364.
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13512 $as_echo_n "checking size of wchar_t... " >&6; }
13513 if ${ac_cv_sizeof_wchar_t+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
13517 "; then :
13518
13519 else
13520 if test "$ac_cv_type_wchar_t" = yes; then
13521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13523 as_fn_error 77 "cannot compute sizeof (wchar_t)
13524 See \`config.log' for more details" "$LINENO" 5; }
13525 else
13526 ac_cv_sizeof_wchar_t=0
13527 fi
13528 fi
13529
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13532 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
13533
13534
13535
13536 cat >>confdefs.h <<_ACEOF
13537 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
13538 _ACEOF
13539
13540
13541 fi
13542
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
13544 $as_echo_n "checking for UCS-4 tcl... " >&6; }
13545 have_ucs4_tcl=no
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h. */
13548
13549 #include <tcl.h>
13550 #if TCL_UTF_MAX != 6
13551 # error "NOT UCS4_TCL"
13552 #endif
13553 int
13554 main ()
13555 {
13556
13557 ;
13558 return 0;
13559 }
13560 _ACEOF
13561 if ac_fn_c_try_compile "$LINENO"; then :
13562
13563
13564 $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
13565
13566 have_ucs4_tcl=yes
13567
13568 fi
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
13571 $as_echo "$have_ucs4_tcl" >&6; }
13572
13573 # check whether wchar_t is signed or not
13574 if test "$wchar_h" = yes
13575 then
13576 # check whether wchar_t is signed or not
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
13578 $as_echo_n "checking whether wchar_t is signed... " >&6; }
13579 if ${ac_cv_wchar_t_signed+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582
13583 if test "$cross_compiling" = yes; then :
13584 ac_cv_wchar_t_signed=yes
13585 else
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588
13589 #include <wchar.h>
13590 int main()
13591 {
13592 /* Success: exit code 0 */
13593 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
13594 }
13595
13596 _ACEOF
13597 if ac_fn_c_try_run "$LINENO"; then :
13598 ac_cv_wchar_t_signed=yes
13599 else
13600 ac_cv_wchar_t_signed=no
13601 fi
13602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13603 conftest.$ac_objext conftest.beam conftest.$ac_ext
13604 fi
13605
13606 fi
13607
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
13609 $as_echo "$ac_cv_wchar_t_signed" >&6; }
13610 fi
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
13613 $as_echo_n "checking what type to use for unicode... " >&6; }
13614 # Check whether --enable-unicode was given.
13615 if test "${enable_unicode+set}" = set; then :
13616 enableval=$enable_unicode;
13617 else
13618 enable_unicode=yes
13619 fi
13620
13621
13622 if test $enable_unicode = yes
13623 then
13624 # Without any arguments, Py_UNICODE defaults to two-byte mode
13625 case "$have_ucs4_tcl" in
13626 yes) enable_unicode="ucs4"
13627 ;;
13628 *) enable_unicode="ucs2"
13629 ;;
13630 esac
13631 fi
13632
13633
13634 case "$enable_unicode" in
13635 ucs2) unicode_size="2"
13636 $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
13637
13638 ;;
13639 ucs4) unicode_size="4"
13640 $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
13641
13642 ;;
13643 no) ;; # To allow --disable-unicode
13644 *) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;;
13645 esac
13646
13647
13648
13649
13650 if test "$enable_unicode" = "no"
13651 then
13652 UNICODE_OBJS=""
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
13654 $as_echo "not used" >&6; }
13655 else
13656 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
13657
13658 $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
13659
13660
13661 # wchar_t is only usable if it maps to an unsigned type
13662 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
13663 -a "$ac_cv_wchar_t_signed" = "no"
13664 then
13665 PY_UNICODE_TYPE="wchar_t"
13666
13667 $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
13668
13669 $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
13670
13671 elif test "$ac_cv_sizeof_short" = "$unicode_size"
13672 then
13673 PY_UNICODE_TYPE="unsigned short"
13674 $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
13675
13676 elif test "$ac_cv_sizeof_long" = "$unicode_size"
13677 then
13678 PY_UNICODE_TYPE="unsigned long"
13679 $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
13680
13681 else
13682 PY_UNICODE_TYPE="no type found"
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
13685 $as_echo "$PY_UNICODE_TYPE" >&6; }
13686 fi
13687
13688 # check for endianness
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13690 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13691 if ${ac_cv_c_bigendian+:} false; then :
13692 $as_echo_n "(cached) " >&6
13693 else
13694 ac_cv_c_bigendian=unknown
13695 # See if we're dealing with a universal compiler.
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13698 #ifndef __APPLE_CC__
13699 not a universal capable compiler
13700 #endif
13701 typedef int dummy;
13702
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705
13706 # Check for potential -arch flags. It is not universal unless
13707 # there are at least two -arch flags with different values.
13708 ac_arch=
13709 ac_prev=
13710 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13711 if test -n "$ac_prev"; then
13712 case $ac_word in
13713 i?86 | x86_64 | ppc | ppc64)
13714 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13715 ac_arch=$ac_word
13716 else
13717 ac_cv_c_bigendian=universal
13718 break
13719 fi
13720 ;;
13721 esac
13722 ac_prev=
13723 elif test "x$ac_word" = "x-arch"; then
13724 ac_prev=arch
13725 fi
13726 done
13727 fi
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729 if test $ac_cv_c_bigendian = unknown; then
13730 # See if sys/param.h defines the BYTE_ORDER macro.
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #include <sys/types.h>
13734 #include <sys/param.h>
13735
13736 int
13737 main ()
13738 {
13739 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13740 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13741 && LITTLE_ENDIAN)
13742 bogus endian macros
13743 #endif
13744
13745 ;
13746 return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_compile "$LINENO"; then :
13750 # It does; now see whether it defined to BIG_ENDIAN or not.
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13753 #include <sys/types.h>
13754 #include <sys/param.h>
13755
13756 int
13757 main ()
13758 {
13759 #if BYTE_ORDER != BIG_ENDIAN
13760 not big endian
13761 #endif
13762
13763 ;
13764 return 0;
13765 }
13766 _ACEOF
13767 if ac_fn_c_try_compile "$LINENO"; then :
13768 ac_cv_c_bigendian=yes
13769 else
13770 ac_cv_c_bigendian=no
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773 fi
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 if test $ac_cv_c_bigendian = unknown; then
13777 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 #include <limits.h>
13781
13782 int
13783 main ()
13784 {
13785 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13786 bogus endian macros
13787 #endif
13788
13789 ;
13790 return 0;
13791 }
13792 _ACEOF
13793 if ac_fn_c_try_compile "$LINENO"; then :
13794 # It does; now see whether it defined to _BIG_ENDIAN or not.
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13797 #include <limits.h>
13798
13799 int
13800 main ()
13801 {
13802 #ifndef _BIG_ENDIAN
13803 not big endian
13804 #endif
13805
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 if ac_fn_c_try_compile "$LINENO"; then :
13811 ac_cv_c_bigendian=yes
13812 else
13813 ac_cv_c_bigendian=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 fi
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818 fi
13819 if test $ac_cv_c_bigendian = unknown; then
13820 # Compile a test program.
13821 if test "$cross_compiling" = yes; then :
13822 # Try to guess by grepping values from an object file.
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13825 short int ascii_mm[] =
13826 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13827 short int ascii_ii[] =
13828 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13829 int use_ascii (int i) {
13830 return ascii_mm[i] + ascii_ii[i];
13831 }
13832 short int ebcdic_ii[] =
13833 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13834 short int ebcdic_mm[] =
13835 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13836 int use_ebcdic (int i) {
13837 return ebcdic_mm[i] + ebcdic_ii[i];
13838 }
13839 extern int foo;
13840
13841 int
13842 main ()
13843 {
13844 return use_ascii (foo) == use_ebcdic (foo);
13845 ;
13846 return 0;
13847 }
13848 _ACEOF
13849 if ac_fn_c_try_compile "$LINENO"; then :
13850 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13851 ac_cv_c_bigendian=yes
13852 fi
13853 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13854 if test "$ac_cv_c_bigendian" = unknown; then
13855 ac_cv_c_bigendian=no
13856 else
13857 # finding both strings is unlikely to happen, but who knows?
13858 ac_cv_c_bigendian=unknown
13859 fi
13860 fi
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863 else
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13866 $ac_includes_default
13867 int
13868 main ()
13869 {
13870
13871 /* Are we little or big endian? From Harbison&Steele. */
13872 union
13873 {
13874 long int l;
13875 char c[sizeof (long int)];
13876 } u;
13877 u.l = 1;
13878 return u.c[sizeof (long int) - 1] == 1;
13879
13880 ;
13881 return 0;
13882 }
13883 _ACEOF
13884 if ac_fn_c_try_run "$LINENO"; then :
13885 ac_cv_c_bigendian=no
13886 else
13887 ac_cv_c_bigendian=yes
13888 fi
13889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13890 conftest.$ac_objext conftest.beam conftest.$ac_ext
13891 fi
13892
13893 fi
13894 fi
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13896 $as_echo "$ac_cv_c_bigendian" >&6; }
13897 case $ac_cv_c_bigendian in #(
13898 yes)
13899 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13900 ;; #(
13901 no)
13902 ;; #(
13903 universal)
13904
13905 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13906
13907 ;; #(
13908 *)
13909 as_fn_error $? "unknown endianness
13910 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13911 esac
13912
13913
13914 # Check whether right shifting a negative integer extends the sign bit
13915 # or fills with zeros (like the Cray J90, according to Tim Peters).
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
13917 $as_echo_n "checking whether right shift extends the sign bit... " >&6; }
13918 if ${ac_cv_rshift_extends_sign+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921
13922 if test "$cross_compiling" = yes; then :
13923 ac_cv_rshift_extends_sign=yes
13924 else
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13927
13928 int main()
13929 {
13930 exit(((-1)>>3 == -1) ? 0 : 1);
13931 }
13932
13933 _ACEOF
13934 if ac_fn_c_try_run "$LINENO"; then :
13935 ac_cv_rshift_extends_sign=yes
13936 else
13937 ac_cv_rshift_extends_sign=no
13938 fi
13939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13940 conftest.$ac_objext conftest.beam conftest.$ac_ext
13941 fi
13942
13943 fi
13944
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
13946 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
13947 if test "$ac_cv_rshift_extends_sign" = no
13948 then
13949
13950 $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
13951
13952 fi
13953
13954 # check for getc_unlocked and related locking functions
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
13956 $as_echo_n "checking for getc_unlocked() and friends... " >&6; }
13957 if ${ac_cv_have_getc_unlocked+:} false; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963 #include <stdio.h>
13964 int
13965 main ()
13966 {
13967
13968 FILE *f = fopen("/dev/null", "r");
13969 flockfile(f);
13970 getc_unlocked(f);
13971 funlockfile(f);
13972
13973 ;
13974 return 0;
13975 }
13976 _ACEOF
13977 if ac_fn_c_try_link "$LINENO"; then :
13978 ac_cv_have_getc_unlocked=yes
13979 else
13980 ac_cv_have_getc_unlocked=no
13981 fi
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13984 fi
13985
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
13987 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
13988 if test "$ac_cv_have_getc_unlocked" = yes
13989 then
13990
13991 $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
13992
13993 fi
13994
13995 # check where readline lives
13996 # save the value of LIBS so we don't actually link Python with readline
13997 LIBS_no_readline=$LIBS
13998
13999 # On some systems we need to link readline to a termcap compatible
14000 # library. NOTE: Keep the precedence of listed libraries synchronised
14001 # with setup.py.
14002 py_cv_lib_readline=no
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
14004 $as_echo_n "checking how to link readline libs... " >&6; }
14005 for py_libtermcap in "" ncursesw ncurses curses termcap; do
14006 if test -z "$py_libtermcap"; then
14007 READLINE_LIBS="-lreadline"
14008 else
14009 READLINE_LIBS="-lreadline -l$py_libtermcap"
14010 fi
14011 LIBS="$READLINE_LIBS $LIBS_no_readline"
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14014
14015 /* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14018 #ifdef __cplusplus
14019 extern "C"
14020 #endif
14021 char readline ();
14022 int
14023 main ()
14024 {
14025 return readline ();
14026 ;
14027 return 0;
14028 }
14029 _ACEOF
14030 if ac_fn_c_try_link "$LINENO"; then :
14031 py_cv_lib_readline=yes
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext \
14034 conftest$ac_exeext conftest.$ac_ext
14035 if test $py_cv_lib_readline = yes; then
14036 break
14037 fi
14038 done
14039 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
14040 #AC_SUBST([READLINE_LIBS])
14041 if test $py_cv_lib_readline = no; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14043 $as_echo "none" >&6; }
14044 else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
14046 $as_echo "$READLINE_LIBS" >&6; }
14047
14048 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14049
14050 fi
14051
14052 # check for readline 2.1
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
14054 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
14055 if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
14056 $as_echo_n "(cached) " >&6
14057 else
14058 ac_check_lib_save_LIBS=$LIBS
14059 LIBS="-lreadline $READLINE_LIBS $LIBS"
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062
14063 /* Override any GCC internal prototype to avoid an error.
14064 Use char because int might match the return type of a GCC
14065 builtin and then its argument prototype would still apply. */
14066 #ifdef __cplusplus
14067 extern "C"
14068 #endif
14069 char rl_callback_handler_install ();
14070 int
14071 main ()
14072 {
14073 return rl_callback_handler_install ();
14074 ;
14075 return 0;
14076 }
14077 _ACEOF
14078 if ac_fn_c_try_link "$LINENO"; then :
14079 ac_cv_lib_readline_rl_callback_handler_install=yes
14080 else
14081 ac_cv_lib_readline_rl_callback_handler_install=no
14082 fi
14083 rm -f core conftest.err conftest.$ac_objext \
14084 conftest$ac_exeext conftest.$ac_ext
14085 LIBS=$ac_check_lib_save_LIBS
14086 fi
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
14088 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
14089 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
14090
14091 $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
14092
14093 fi
14094
14095
14096 # check for readline 2.2
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 #include <readline/readline.h>
14100 _ACEOF
14101 if ac_fn_c_try_cpp "$LINENO"; then :
14102 have_readline=yes
14103 else
14104 have_readline=no
14105
14106 fi
14107 rm -f conftest.err conftest.i conftest.$ac_ext
14108 if test $have_readline = yes
14109 then
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14112 #include <readline/readline.h>
14113
14114 _ACEOF
14115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14116 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
14117
14118 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
14119
14120 fi
14121 rm -f conftest*
14122
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125 #include <readline/readline.h>
14126
14127 _ACEOF
14128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14129 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
14130
14131 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
14132
14133 fi
14134 rm -f conftest*
14135
14136 fi
14137
14138 # check for readline 4.0
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
14140 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
14141 if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-lreadline $READLINE_LIBS $LIBS"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148
14149 /* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply. */
14152 #ifdef __cplusplus
14153 extern "C"
14154 #endif
14155 char rl_pre_input_hook ();
14156 int
14157 main ()
14158 {
14159 return rl_pre_input_hook ();
14160 ;
14161 return 0;
14162 }
14163 _ACEOF
14164 if ac_fn_c_try_link "$LINENO"; then :
14165 ac_cv_lib_readline_rl_pre_input_hook=yes
14166 else
14167 ac_cv_lib_readline_rl_pre_input_hook=no
14168 fi
14169 rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 LIBS=$ac_check_lib_save_LIBS
14172 fi
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
14174 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
14175 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
14176
14177 $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
14178
14179 fi
14180
14181
14182 # also in 4.0
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
14184 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
14185 if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
14186 $as_echo_n "(cached) " >&6
14187 else
14188 ac_check_lib_save_LIBS=$LIBS
14189 LIBS="-lreadline $READLINE_LIBS $LIBS"
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192
14193 /* Override any GCC internal prototype to avoid an error.
14194 Use char because int might match the return type of a GCC
14195 builtin and then its argument prototype would still apply. */
14196 #ifdef __cplusplus
14197 extern "C"
14198 #endif
14199 char rl_completion_display_matches_hook ();
14200 int
14201 main ()
14202 {
14203 return rl_completion_display_matches_hook ();
14204 ;
14205 return 0;
14206 }
14207 _ACEOF
14208 if ac_fn_c_try_link "$LINENO"; then :
14209 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
14210 else
14211 ac_cv_lib_readline_rl_completion_display_matches_hook=no
14212 fi
14213 rm -f core conftest.err conftest.$ac_objext \
14214 conftest$ac_exeext conftest.$ac_ext
14215 LIBS=$ac_check_lib_save_LIBS
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
14218 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
14219 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
14220
14221 $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
14222
14223 fi
14224
14225
14226 # also in 4.0, but not in editline
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
14228 $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
14229 if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 ac_check_lib_save_LIBS=$LIBS
14233 LIBS="-lreadline $READLINE_LIBS $LIBS"
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14236
14237 /* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14240 #ifdef __cplusplus
14241 extern "C"
14242 #endif
14243 char rl_resize_terminal ();
14244 int
14245 main ()
14246 {
14247 return rl_resize_terminal ();
14248 ;
14249 return 0;
14250 }
14251 _ACEOF
14252 if ac_fn_c_try_link "$LINENO"; then :
14253 ac_cv_lib_readline_rl_resize_terminal=yes
14254 else
14255 ac_cv_lib_readline_rl_resize_terminal=no
14256 fi
14257 rm -f core conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
14259 LIBS=$ac_check_lib_save_LIBS
14260 fi
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
14262 $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
14263 if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
14264
14265 $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
14266
14267 fi
14268
14269
14270 # check for readline 4.2
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
14272 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
14273 if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 ac_check_lib_save_LIBS=$LIBS
14277 LIBS="-lreadline $READLINE_LIBS $LIBS"
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280
14281 /* Override any GCC internal prototype to avoid an error.
14282 Use char because int might match the return type of a GCC
14283 builtin and then its argument prototype would still apply. */
14284 #ifdef __cplusplus
14285 extern "C"
14286 #endif
14287 char rl_completion_matches ();
14288 int
14289 main ()
14290 {
14291 return rl_completion_matches ();
14292 ;
14293 return 0;
14294 }
14295 _ACEOF
14296 if ac_fn_c_try_link "$LINENO"; then :
14297 ac_cv_lib_readline_rl_completion_matches=yes
14298 else
14299 ac_cv_lib_readline_rl_completion_matches=no
14300 fi
14301 rm -f core conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
14303 LIBS=$ac_check_lib_save_LIBS
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
14306 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
14307 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
14308
14309 $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
14310
14311 fi
14312
14313
14314 # also in readline 4.2
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317 #include <readline/readline.h>
14318 _ACEOF
14319 if ac_fn_c_try_cpp "$LINENO"; then :
14320 have_readline=yes
14321 else
14322 have_readline=no
14323
14324 fi
14325 rm -f conftest.err conftest.i conftest.$ac_ext
14326 if test $have_readline = yes
14327 then
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14330 #include <readline/readline.h>
14331
14332 _ACEOF
14333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14334 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
14335
14336 $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
14337
14338 fi
14339 rm -f conftest*
14340
14341 fi
14342
14343 # End of readline checks: restore LIBS
14344 LIBS=$LIBS_no_readline
14345
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
14347 $as_echo_n "checking for broken nice()... " >&6; }
14348 if ${ac_cv_broken_nice+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351
14352 if test "$cross_compiling" = yes; then :
14353 ac_cv_broken_nice=no
14354 else
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357
14358 #include <stdlib.h>
14359 #include <unistd.h>
14360 int main()
14361 {
14362 int val1 = nice(1);
14363 if (val1 != -1 && val1 == nice(2))
14364 exit(0);
14365 exit(1);
14366 }
14367
14368 _ACEOF
14369 if ac_fn_c_try_run "$LINENO"; then :
14370 ac_cv_broken_nice=yes
14371 else
14372 ac_cv_broken_nice=no
14373 fi
14374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14375 conftest.$ac_objext conftest.beam conftest.$ac_ext
14376 fi
14377
14378 fi
14379
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
14381 $as_echo "$ac_cv_broken_nice" >&6; }
14382 if test "$ac_cv_broken_nice" = yes
14383 then
14384
14385 $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
14386
14387 fi
14388
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
14390 $as_echo_n "checking for broken poll()... " >&6; }
14391 if ${ac_cv_broken_poll+:} false; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 if test "$cross_compiling" = yes; then :
14395 ac_cv_broken_poll=no
14396 else
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399
14400 #include <poll.h>
14401
14402 int main()
14403 {
14404 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
14405 int poll_test;
14406
14407 close (42);
14408
14409 poll_test = poll(&poll_struct, 1, 0);
14410 if (poll_test < 0)
14411 return 0;
14412 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
14413 return 0;
14414 else
14415 return 1;
14416 }
14417
14418 _ACEOF
14419 if ac_fn_c_try_run "$LINENO"; then :
14420 ac_cv_broken_poll=yes
14421 else
14422 ac_cv_broken_poll=no
14423 fi
14424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14425 conftest.$ac_objext conftest.beam conftest.$ac_ext
14426 fi
14427
14428 fi
14429
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
14431 $as_echo "$ac_cv_broken_poll" >&6; }
14432 if test "$ac_cv_broken_poll" = yes
14433 then
14434
14435 $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
14436
14437 fi
14438
14439 # check tzset(3) exists and works like we expect it to
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
14441 $as_echo_n "checking for working tzset()... " >&6; }
14442 if ${ac_cv_working_tzset+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445
14446 if test "$cross_compiling" = yes; then :
14447 ac_cv_working_tzset=no
14448 else
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451
14452 #include <stdlib.h>
14453 #include <time.h>
14454 #include <string.h>
14455
14456 #if HAVE_TZNAME
14457 extern char *tzname[];
14458 #endif
14459
14460 int main()
14461 {
14462 /* Note that we need to ensure that not only does tzset(3)
14463 do 'something' with localtime, but it works as documented
14464 in the library reference and as expected by the test suite.
14465 This includes making sure that tzname is set properly if
14466 tm->tm_zone does not exist since it is the alternative way
14467 of getting timezone info.
14468
14469 Red Hat 6.2 doesn't understand the southern hemisphere
14470 after New Year's Day.
14471 */
14472
14473 time_t groundhogday = 1044144000; /* GMT-based */
14474 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
14475
14476 putenv("TZ=UTC+0");
14477 tzset();
14478 if (localtime(&groundhogday)->tm_hour != 0)
14479 exit(1);
14480 #if HAVE_TZNAME
14481 /* For UTC, tzname[1] is sometimes "", sometimes " " */
14482 if (strcmp(tzname[0], "UTC") ||
14483 (tzname[1][0] != 0 && tzname[1][0] != ' '))
14484 exit(1);
14485 #endif
14486
14487 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
14488 tzset();
14489 if (localtime(&groundhogday)->tm_hour != 19)
14490 exit(1);
14491 #if HAVE_TZNAME
14492 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
14493 exit(1);
14494 #endif
14495
14496 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
14497 tzset();
14498 if (localtime(&groundhogday)->tm_hour != 11)
14499 exit(1);
14500 #if HAVE_TZNAME
14501 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
14502 exit(1);
14503 #endif
14504
14505 #if HAVE_STRUCT_TM_TM_ZONE
14506 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
14507 exit(1);
14508 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
14509 exit(1);
14510 #endif
14511
14512 exit(0);
14513 }
14514
14515 _ACEOF
14516 if ac_fn_c_try_run "$LINENO"; then :
14517 ac_cv_working_tzset=yes
14518 else
14519 ac_cv_working_tzset=no
14520 fi
14521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14522 conftest.$ac_objext conftest.beam conftest.$ac_ext
14523 fi
14524
14525 fi
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
14528 $as_echo "$ac_cv_working_tzset" >&6; }
14529 if test "$ac_cv_working_tzset" = yes
14530 then
14531
14532 $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
14533
14534 fi
14535
14536 # Look for subsecond timestamps in struct stat
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
14538 $as_echo_n "checking for tv_nsec in struct stat... " >&6; }
14539 if ${ac_cv_stat_tv_nsec+:} false; then :
14540 $as_echo_n "(cached) " >&6
14541 else
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 #include <sys/stat.h>
14545 int
14546 main ()
14547 {
14548
14549 struct stat st;
14550 st.st_mtim.tv_nsec = 1;
14551
14552 ;
14553 return 0;
14554 }
14555 _ACEOF
14556 if ac_fn_c_try_compile "$LINENO"; then :
14557 ac_cv_stat_tv_nsec=yes
14558 else
14559 ac_cv_stat_tv_nsec=no
14560 fi
14561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562 fi
14563
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
14565 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
14566 if test "$ac_cv_stat_tv_nsec" = yes
14567 then
14568
14569 $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
14570
14571 fi
14572
14573 # Look for BSD style subsecond timestamps in struct stat
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
14575 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
14576 if ${ac_cv_stat_tv_nsec2+:} false; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581 #include <sys/stat.h>
14582 int
14583 main ()
14584 {
14585
14586 struct stat st;
14587 st.st_mtimespec.tv_nsec = 1;
14588
14589 ;
14590 return 0;
14591 }
14592 _ACEOF
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 ac_cv_stat_tv_nsec2=yes
14595 else
14596 ac_cv_stat_tv_nsec2=no
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 fi
14600
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
14602 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
14603 if test "$ac_cv_stat_tv_nsec2" = yes
14604 then
14605
14606 $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
14607
14608 fi
14609
14610 # first curses configure check
14611 ac_save_cppflags="$CPPFLAGS"
14612 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
14613
14614 for ac_header in curses.h ncurses.h
14615 do :
14616 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14617 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14618 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14619 cat >>confdefs.h <<_ACEOF
14620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14621 _ACEOF
14622
14623 fi
14624
14625 done
14626
14627
14628 # On Solaris, term.h requires curses.h
14629 for ac_header in term.h
14630 do :
14631 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
14632 #ifdef HAVE_CURSES_H
14633 #include <curses.h>
14634 #endif
14635
14636 "
14637 if test "x$ac_cv_header_term_h" = xyes; then :
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_TERM_H 1
14640 _ACEOF
14641
14642 fi
14643
14644 done
14645
14646
14647 # On HP/UX 11.0, mvwdelch is a block with a return statement
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
14649 $as_echo_n "checking whether mvwdelch is an expression... " >&6; }
14650 if ${ac_cv_mvwdelch_is_expression+:} false; then :
14651 $as_echo_n "(cached) " >&6
14652 else
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14655 #include <curses.h>
14656 int
14657 main ()
14658 {
14659
14660 int rtn;
14661 rtn = mvwdelch(0,0,0);
14662
14663 ;
14664 return 0;
14665 }
14666 _ACEOF
14667 if ac_fn_c_try_compile "$LINENO"; then :
14668 ac_cv_mvwdelch_is_expression=yes
14669 else
14670 ac_cv_mvwdelch_is_expression=no
14671 fi
14672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673 fi
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
14676 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
14677
14678 if test "$ac_cv_mvwdelch_is_expression" = yes
14679 then
14680
14681 $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
14682
14683 fi
14684
14685 # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
14686 # structs since version 5.7. If the macro is defined as zero before including
14687 # [n]curses.h, ncurses will expose fields of the structs regardless of the
14688 # configuration.
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
14690 $as_echo_n "checking whether WINDOW has _flags... " >&6; }
14691 if ${ac_cv_window_has_flags+:} false; then :
14692 $as_echo_n "(cached) " >&6
14693 else
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14696
14697 #define NCURSES_OPAQUE 0
14698 #include <curses.h>
14699
14700 int
14701 main ()
14702 {
14703
14704 WINDOW *w;
14705 w->_flags = 0;
14706
14707 ;
14708 return 0;
14709 }
14710 _ACEOF
14711 if ac_fn_c_try_compile "$LINENO"; then :
14712 ac_cv_window_has_flags=yes
14713 else
14714 ac_cv_window_has_flags=no
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717 fi
14718
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
14720 $as_echo "$ac_cv_window_has_flags" >&6; }
14721
14722
14723 if test "$ac_cv_window_has_flags" = yes
14724 then
14725
14726 $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
14727
14728 fi
14729
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
14731 $as_echo_n "checking for is_pad... " >&6; }
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14734 #include <curses.h>
14735 int
14736 main ()
14737 {
14738
14739 #ifndef is_pad
14740 void *x=is_pad
14741 #endif
14742
14743 ;
14744 return 0;
14745 }
14746 _ACEOF
14747 if ac_fn_c_try_compile "$LINENO"; then :
14748
14749 $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14752 $as_echo "yes" >&6; }
14753 else
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755 $as_echo "no" >&6; }
14756
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
14761 $as_echo_n "checking for is_term_resized... " >&6; }
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 #include <curses.h>
14765 int
14766 main ()
14767 {
14768 void *x=is_term_resized
14769 ;
14770 return 0;
14771 }
14772 _ACEOF
14773 if ac_fn_c_try_compile "$LINENO"; then :
14774
14775 $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
14776
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14778 $as_echo "yes" >&6; }
14779 else
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781 $as_echo "no" >&6; }
14782
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
14787 $as_echo_n "checking for resize_term... " >&6; }
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 #include <curses.h>
14791 int
14792 main ()
14793 {
14794 void *x=resize_term
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_compile "$LINENO"; then :
14800
14801 $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
14802
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14804 $as_echo "yes" >&6; }
14805 else
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14808
14809 fi
14810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
14813 $as_echo_n "checking for resizeterm... " >&6; }
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816 #include <curses.h>
14817 int
14818 main ()
14819 {
14820 void *x=resizeterm
14821 ;
14822 return 0;
14823 }
14824 _ACEOF
14825 if ac_fn_c_try_compile "$LINENO"; then :
14826
14827 $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14830 $as_echo "yes" >&6; }
14831 else
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833 $as_echo "no" >&6; }
14834
14835 fi
14836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
14839 $as_echo_n "checking for immedok... " >&6; }
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842 #include <curses.h>
14843 int
14844 main ()
14845 {
14846
14847 #ifndef immedok
14848 void *x=immedok
14849 #endif
14850
14851 ;
14852 return 0;
14853 }
14854 _ACEOF
14855 if ac_fn_c_try_compile "$LINENO"; then :
14856
14857 $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
14858
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14860 $as_echo "yes" >&6; }
14861 else
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14863 $as_echo "no" >&6; }
14864
14865 fi
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
14869 $as_echo_n "checking for syncok... " >&6; }
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14872 #include <curses.h>
14873 int
14874 main ()
14875 {
14876
14877 #ifndef syncok
14878 void *x=syncok
14879 #endif
14880
14881 ;
14882 return 0;
14883 }
14884 _ACEOF
14885 if ac_fn_c_try_compile "$LINENO"; then :
14886
14887 $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
14888
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14890 $as_echo "yes" >&6; }
14891 else
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14893 $as_echo "no" >&6; }
14894
14895 fi
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
14899 $as_echo_n "checking for wchgat... " >&6; }
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902 #include <curses.h>
14903 int
14904 main ()
14905 {
14906
14907 #ifndef wchgat
14908 void *x=wchgat
14909 #endif
14910
14911 ;
14912 return 0;
14913 }
14914 _ACEOF
14915 if ac_fn_c_try_compile "$LINENO"; then :
14916
14917 $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
14918
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14920 $as_echo "yes" >&6; }
14921 else
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14923 $as_echo "no" >&6; }
14924
14925 fi
14926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
14929 $as_echo_n "checking for filter... " >&6; }
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14932 #include <curses.h>
14933 int
14934 main ()
14935 {
14936
14937 #ifndef filter
14938 void *x=filter
14939 #endif
14940
14941 ;
14942 return 0;
14943 }
14944 _ACEOF
14945 if ac_fn_c_try_compile "$LINENO"; then :
14946
14947 $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
14948
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14950 $as_echo "yes" >&6; }
14951 else
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14953 $as_echo "no" >&6; }
14954
14955 fi
14956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14957
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
14959 $as_echo_n "checking for has_key... " >&6; }
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 #include <curses.h>
14963 int
14964 main ()
14965 {
14966
14967 #ifndef has_key
14968 void *x=has_key
14969 #endif
14970
14971 ;
14972 return 0;
14973 }
14974 _ACEOF
14975 if ac_fn_c_try_compile "$LINENO"; then :
14976
14977 $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
14978
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14980 $as_echo "yes" >&6; }
14981 else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14983 $as_echo "no" >&6; }
14984
14985 fi
14986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
14989 $as_echo_n "checking for typeahead... " >&6; }
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992 #include <curses.h>
14993 int
14994 main ()
14995 {
14996
14997 #ifndef typeahead
14998 void *x=typeahead
14999 #endif
15000
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 if ac_fn_c_try_compile "$LINENO"; then :
15006
15007 $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
15008
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15010 $as_echo "yes" >&6; }
15011 else
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013 $as_echo "no" >&6; }
15014
15015 fi
15016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15017
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
15019 $as_echo_n "checking for use_env... " >&6; }
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 #include <curses.h>
15023 int
15024 main ()
15025 {
15026
15027 #ifndef use_env
15028 void *x=use_env
15029 #endif
15030
15031 ;
15032 return 0;
15033 }
15034 _ACEOF
15035 if ac_fn_c_try_compile "$LINENO"; then :
15036
15037 $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15040 $as_echo "yes" >&6; }
15041 else
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15043 $as_echo "no" >&6; }
15044
15045 fi
15046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 # last curses configure check
15048 CPPFLAGS=$ac_save_cppflags
15049
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
15051 $as_echo "$as_me: checking for device files" >&6;}
15052
15053 if test "x$cross_compiling" = xyes; then
15054 if test "${ac_cv_file__dev_ptmx+set}" != set; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
15056 $as_echo_n "checking for /dev/ptmx... " >&6; }
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
15058 $as_echo "not set" >&6; }
15059 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
15060 fi
15061 if test "${ac_cv_file__dev_ptc+set}" != set; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
15063 $as_echo_n "checking for /dev/ptc... " >&6; }
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
15065 $as_echo "not set" >&6; }
15066 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
15067 fi
15068 fi
15069
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
15071 $as_echo_n "checking for /dev/ptmx... " >&6; }
15072 if ${ac_cv_file__dev_ptmx+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075 test "$cross_compiling" = yes &&
15076 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15077 if test -r "/dev/ptmx"; then
15078 ac_cv_file__dev_ptmx=yes
15079 else
15080 ac_cv_file__dev_ptmx=no
15081 fi
15082 fi
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
15084 $as_echo "$ac_cv_file__dev_ptmx" >&6; }
15085 if test "x$ac_cv_file__dev_ptmx" = xyes; then :
15086
15087 fi
15088
15089 if test "x$ac_cv_file__dev_ptmx" = xyes; then
15090
15091 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15092
15093 fi
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
15095 $as_echo_n "checking for /dev/ptc... " >&6; }
15096 if ${ac_cv_file__dev_ptc+:} false; then :
15097 $as_echo_n "(cached) " >&6
15098 else
15099 test "$cross_compiling" = yes &&
15100 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15101 if test -r "/dev/ptc"; then
15102 ac_cv_file__dev_ptc=yes
15103 else
15104 ac_cv_file__dev_ptc=no
15105 fi
15106 fi
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
15108 $as_echo "$ac_cv_file__dev_ptc" >&6; }
15109 if test "x$ac_cv_file__dev_ptc" = xyes; then :
15110
15111 fi
15112
15113 if test "x$ac_cv_file__dev_ptc" = xyes; then
15114
15115 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
15116
15117 fi
15118
15119 if test "$have_long_long" = yes
15120 then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5
15122 $as_echo_n "checking for %lld and %llu printf() format support... " >&6; }
15123 if ${ac_cv_have_long_long_format+:} false; then :
15124 $as_echo_n "(cached) " >&6
15125 else
15126 if test "$cross_compiling" = yes; then :
15127 ac_cv_have_long_long_format="cross -- assuming no"
15128 if test x$GCC = xyes; then
15129 save_CFLAGS=$CFLAGS
15130 CFLAGS="$CFLAGS -Werror -Wformat"
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133
15134 #include <stdio.h>
15135 #include <stddef.h>
15136
15137 int
15138 main ()
15139 {
15140
15141 char *buffer;
15142 sprintf(buffer, "%lld", (long long)123);
15143 sprintf(buffer, "%lld", (long long)-123);
15144 sprintf(buffer, "%llu", (unsigned long long)123);
15145
15146 ;
15147 return 0;
15148 }
15149 _ACEOF
15150 if ac_fn_c_try_compile "$LINENO"; then :
15151 ac_cv_have_long_long_format=yes
15152
15153 fi
15154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 CFLAGS=$save_CFLAGS
15156 fi
15157 else
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160
15161 #include <stdio.h>
15162 #include <stddef.h>
15163 #include <string.h>
15164
15165 #ifdef HAVE_SYS_TYPES_H
15166 #include <sys/types.h>
15167 #endif
15168
15169 int main()
15170 {
15171 char buffer[256];
15172
15173 if (sprintf(buffer, "%lld", (long long)123) < 0)
15174 return 1;
15175 if (strcmp(buffer, "123"))
15176 return 1;
15177
15178 if (sprintf(buffer, "%lld", (long long)-123) < 0)
15179 return 1;
15180 if (strcmp(buffer, "-123"))
15181 return 1;
15182
15183 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
15184 return 1;
15185 if (strcmp(buffer, "123"))
15186 return 1;
15187
15188 return 0;
15189 }
15190
15191 _ACEOF
15192 if ac_fn_c_try_run "$LINENO"; then :
15193 ac_cv_have_long_long_format=yes
15194 else
15195 ac_cv_have_long_long_format=no
15196 fi
15197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15198 conftest.$ac_objext conftest.beam conftest.$ac_ext
15199 fi
15200
15201
15202 fi
15203
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5
15205 $as_echo "$ac_cv_have_long_long_format" >&6; }
15206 fi
15207
15208 if test "$ac_cv_have_long_long_format" = yes
15209 then
15210
15211 $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
15212
15213 fi
15214
15215 if test $ac_sys_system = Darwin
15216 then
15217 LIBS="$LIBS -framework CoreFoundation"
15218 fi
15219
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
15222 $as_echo_n "checking for %zd printf() format support... " >&6; }
15223 if ${ac_cv_have_size_t_format+:} false; then :
15224 $as_echo_n "(cached) " >&6
15225 else
15226 if test "$cross_compiling" = yes; then :
15227 ac_cv_have_size_t_format="cross -- assuming yes"
15228
15229 else
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15232
15233 #include <stdio.h>
15234 #include <stddef.h>
15235 #include <string.h>
15236
15237 #ifdef HAVE_SYS_TYPES_H
15238 #include <sys/types.h>
15239 #endif
15240
15241 #ifdef HAVE_SSIZE_T
15242 typedef ssize_t Py_ssize_t;
15243 #elif SIZEOF_VOID_P == SIZEOF_LONG
15244 typedef long Py_ssize_t;
15245 #else
15246 typedef int Py_ssize_t;
15247 #endif
15248
15249 int main()
15250 {
15251 char buffer[256];
15252
15253 if(sprintf(buffer, "%zd", (size_t)123) < 0)
15254 return 1;
15255
15256 if (strcmp(buffer, "123"))
15257 return 1;
15258
15259 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
15260 return 1;
15261
15262 if (strcmp(buffer, "-123"))
15263 return 1;
15264
15265 return 0;
15266 }
15267
15268 _ACEOF
15269 if ac_fn_c_try_run "$LINENO"; then :
15270 ac_cv_have_size_t_format=yes
15271 else
15272 ac_cv_have_size_t_format=no
15273 fi
15274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15275 conftest.$ac_objext conftest.beam conftest.$ac_ext
15276 fi
15277
15278 fi
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
15280 $as_echo "$ac_cv_have_size_t_format" >&6; }
15281 if test "$ac_cv_have_size_t_format" != no ; then
15282
15283 $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
15284
15285 fi
15286
15287 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15288 #ifdef HAVE_SYS_TYPES_H
15289 #include <sys/types.h>
15290 #endif
15291 #ifdef HAVE_SYS_SOCKET_H
15292 #include <sys/socket.h>
15293 #endif
15294
15295 "
15296 if test "x$ac_cv_type_socklen_t" = xyes; then :
15297
15298 else
15299
15300 $as_echo "#define socklen_t int" >>confdefs.h
15301
15302 fi
15303
15304
15305 case $ac_sys_system in
15306 AIX*)
15307
15308 $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
15309 ;;
15310 esac
15311
15312
15313
15314
15315 for h in `(cd $srcdir;echo Python/thread_*.h)`
15316 do
15317 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
15318 done
15319
15320
15321 SRCDIRS="Parser Objects Python Modules Modules/_io"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
15323 $as_echo_n "checking for build directories... " >&6; }
15324 for dir in $SRCDIRS; do
15325 if test ! -d $dir; then
15326 mkdir $dir
15327 fi
15328 done
15329
15330 # BEGIN_COMPUTED_GOTO
15331 # Check for --with-computed-gotos
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
15333 $as_echo_n "checking for --with-computed-gotos... " >&6; }
15334
15335 # Check whether --with-computed-gotos was given.
15336 if test "${with_computed_gotos+set}" = set; then :
15337 withval=$with_computed_gotos;
15338 if test "$withval" = yes
15339 then
15340
15341 $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
15342
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15344 $as_echo "yes" >&6; }
15345 fi
15346 if test "$withval" = no
15347 then
15348
15349 $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
15350
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15352 $as_echo "no" >&6; }
15353 fi
15354
15355 else
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
15357 $as_echo "no value specified" >&6; }
15358 fi
15359
15360
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
15362 $as_echo_n "checking whether $CC supports computed gotos... " >&6; }
15363 if ${ac_cv_computed_gotos+:} false; then :
15364 $as_echo_n "(cached) " >&6
15365 else
15366 if test "$cross_compiling" = yes; then :
15367 if test "${with_computed_gotos+set}" = set; then
15368 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
15369 else
15370 ac_cv_computed_gotos=no
15371 fi
15372 else
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375
15376 int main(int argc, char **argv)
15377 {
15378 static void *targets[1] = { &&LABEL1 };
15379 goto LABEL2;
15380 LABEL1:
15381 return 0;
15382 LABEL2:
15383 goto *targets[0];
15384 return 1;
15385 }
15386
15387 _ACEOF
15388 if ac_fn_c_try_run "$LINENO"; then :
15389 ac_cv_computed_gotos=yes
15390 else
15391 ac_cv_computed_gotos=no
15392 fi
15393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15394 conftest.$ac_objext conftest.beam conftest.$ac_ext
15395 fi
15396
15397 fi
15398
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
15400 $as_echo "$ac_cv_computed_gotos" >&6; }
15401 case "$ac_cv_computed_gotos" in yes*)
15402
15403 $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
15404
15405 esac
15406 # END_COMPUTED_GOTO
15407
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15409 $as_echo "done" >&6; }
15410
15411 # ensurepip option
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
15413 $as_echo_n "checking for ensurepip... " >&6; }
15414
15415 # Check whether --with-ensurepip was given.
15416 if test "${with_ensurepip+set}" = set; then :
15417 withval=$with_ensurepip;
15418 else
15419 with_ensurepip=no
15420 fi
15421
15422 case $with_ensurepip in #(
15423 yes|upgrade) :
15424 ENSUREPIP=upgrade ;; #(
15425 install) :
15426 ENSUREPIP=install ;; #(
15427 no) :
15428 ENSUREPIP=no ;; #(
15429 *) :
15430 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
15431 esac
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
15433 $as_echo "$ENSUREPIP" >&6; }
15434
15435
15436 # generate output files
15437 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
15438
15439 ac_config_files="$ac_config_files Modules/ld_so_aix"
15440
15441 cat >confcache <<\_ACEOF
15442 # This file is a shell script that caches the results of configure
15443 # tests run on this system so they can be shared between configure
15444 # scripts and configure runs, see configure's option --config-cache.
15445 # It is not useful on other systems. If it contains results you don't
15446 # want to keep, you may remove or edit it.
15447 #
15448 # config.status only pays attention to the cache file if you give it
15449 # the --recheck option to rerun configure.
15450 #
15451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15453 # following values.
15454
15455 _ACEOF
15456
15457 # The following way of writing the cache mishandles newlines in values,
15458 # but we know of no workaround that is simple, portable, and efficient.
15459 # So, we kill variables containing newlines.
15460 # Ultrix sh set writes to stderr and can't be redirected directly,
15461 # and sets the high bit in the cache file unless we assign to the vars.
15462 (
15463 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15464 eval ac_val=\$$ac_var
15465 case $ac_val in #(
15466 *${as_nl}*)
15467 case $ac_var in #(
15468 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15469 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15470 esac
15471 case $ac_var in #(
15472 _ | IFS | as_nl) ;; #(
15473 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15474 *) { eval $ac_var=; unset $ac_var;} ;;
15475 esac ;;
15476 esac
15477 done
15478
15479 (set) 2>&1 |
15480 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15481 *${as_nl}ac_space=\ *)
15482 # `set' does not quote correctly, so add quotes: double-quote
15483 # substitution turns \\\\ into \\, and sed turns \\ into \.
15484 sed -n \
15485 "s/'/'\\\\''/g;
15486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15487 ;; #(
15488 *)
15489 # `set' quotes correctly as required by POSIX, so do not add quotes.
15490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15491 ;;
15492 esac |
15493 sort
15494 ) |
15495 sed '
15496 /^ac_cv_env_/b end
15497 t clear
15498 :clear
15499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15500 t end
15501 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15502 :end' >>confcache
15503 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15504 if test -w "$cache_file"; then
15505 if test "x$cache_file" != "x/dev/null"; then
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15507 $as_echo "$as_me: updating cache $cache_file" >&6;}
15508 if test ! -f "$cache_file" || test -h "$cache_file"; then
15509 cat confcache >"$cache_file"
15510 else
15511 case $cache_file in #(
15512 */* | ?:*)
15513 mv -f confcache "$cache_file"$$ &&
15514 mv -f "$cache_file"$$ "$cache_file" ;; #(
15515 *)
15516 mv -f confcache "$cache_file" ;;
15517 esac
15518 fi
15519 fi
15520 else
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15522 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15523 fi
15524 fi
15525 rm -f confcache
15526
15527 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15528 # Let make expand exec_prefix.
15529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15530
15531 DEFS=-DHAVE_CONFIG_H
15532
15533 ac_libobjs=
15534 ac_ltlibobjs=
15535 U=
15536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15537 # 1. Remove the extension, and $U if already installed.
15538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15539 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15541 # will be set to the directory where LIBOBJS objects are built.
15542 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15543 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15544 done
15545 LIBOBJS=$ac_libobjs
15546
15547 LTLIBOBJS=$ac_ltlibobjs
15548
15549
15550
15551
15552 : "${CONFIG_STATUS=./config.status}"
15553 ac_write_fail=0
15554 ac_clean_files_save=$ac_clean_files
15555 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15557 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15558 as_write_fail=0
15559 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15560 #! $SHELL
15561 # Generated by $as_me.
15562 # Run this file to recreate the current configuration.
15563 # Compiler output produced by configure, useful for debugging
15564 # configure, is in config.log if it exists.
15565
15566 debug=false
15567 ac_cs_recheck=false
15568 ac_cs_silent=false
15569
15570 SHELL=\${CONFIG_SHELL-$SHELL}
15571 export SHELL
15572 _ASEOF
15573 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15574 ## -------------------- ##
15575 ## M4sh Initialization. ##
15576 ## -------------------- ##
15577
15578 # Be more Bourne compatible
15579 DUALCASE=1; export DUALCASE # for MKS sh
15580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15581 emulate sh
15582 NULLCMD=:
15583 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15584 # is contrary to our usage. Disable this feature.
15585 alias -g '${1+"$@"}'='"$@"'
15586 setopt NO_GLOB_SUBST
15587 else
15588 case `(set -o) 2>/dev/null` in #(
15589 *posix*) :
15590 set -o posix ;; #(
15591 *) :
15592 ;;
15593 esac
15594 fi
15595
15596
15597 as_nl='
15598 '
15599 export as_nl
15600 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15601 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15602 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15603 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15604 # Prefer a ksh shell builtin over an external printf program on Solaris,
15605 # but without wasting forks for bash or zsh.
15606 if test -z "$BASH_VERSION$ZSH_VERSION" \
15607 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15608 as_echo='print -r --'
15609 as_echo_n='print -rn --'
15610 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15611 as_echo='printf %s\n'
15612 as_echo_n='printf %s'
15613 else
15614 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15615 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15616 as_echo_n='/usr/ucb/echo -n'
15617 else
15618 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15619 as_echo_n_body='eval
15620 arg=$1;
15621 case $arg in #(
15622 *"$as_nl"*)
15623 expr "X$arg" : "X\\(.*\\)$as_nl";
15624 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15625 esac;
15626 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15627 '
15628 export as_echo_n_body
15629 as_echo_n='sh -c $as_echo_n_body as_echo'
15630 fi
15631 export as_echo_body
15632 as_echo='sh -c $as_echo_body as_echo'
15633 fi
15634
15635 # The user is always right.
15636 if test "${PATH_SEPARATOR+set}" != set; then
15637 PATH_SEPARATOR=:
15638 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15639 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15640 PATH_SEPARATOR=';'
15641 }
15642 fi
15643
15644
15645 # IFS
15646 # We need space, tab and new line, in precisely that order. Quoting is
15647 # there to prevent editors from complaining about space-tab.
15648 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15649 # splitting by setting IFS to empty value.)
15650 IFS=" "" $as_nl"
15651
15652 # Find who we are. Look in the path if we contain no directory separator.
15653 as_myself=
15654 case $0 in #((
15655 *[\\/]* ) as_myself=$0 ;;
15656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15657 for as_dir in $PATH
15658 do
15659 IFS=$as_save_IFS
15660 test -z "$as_dir" && as_dir=.
15661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15662 done
15663 IFS=$as_save_IFS
15664
15665 ;;
15666 esac
15667 # We did not find ourselves, most probably we were run as `sh COMMAND'
15668 # in which case we are not to be found in the path.
15669 if test "x$as_myself" = x; then
15670 as_myself=$0
15671 fi
15672 if test ! -f "$as_myself"; then
15673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15674 exit 1
15675 fi
15676
15677 # Unset variables that we do not need and which cause bugs (e.g. in
15678 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15679 # suppresses any "Segmentation fault" message there. '((' could
15680 # trigger a bug in pdksh 5.2.14.
15681 for as_var in BASH_ENV ENV MAIL MAILPATH
15682 do eval test x\${$as_var+set} = xset \
15683 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15684 done
15685 PS1='$ '
15686 PS2='> '
15687 PS4='+ '
15688
15689 # NLS nuisances.
15690 LC_ALL=C
15691 export LC_ALL
15692 LANGUAGE=C
15693 export LANGUAGE
15694
15695 # CDPATH.
15696 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15697
15698
15699 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15700 # ----------------------------------------
15701 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15702 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15703 # script with STATUS, using 1 if that was 0.
15704 as_fn_error ()
15705 {
15706 as_status=$1; test $as_status -eq 0 && as_status=1
15707 if test "$4"; then
15708 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15709 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15710 fi
15711 $as_echo "$as_me: error: $2" >&2
15712 as_fn_exit $as_status
15713 } # as_fn_error
15714
15715
15716 # as_fn_set_status STATUS
15717 # -----------------------
15718 # Set $? to STATUS, without forking.
15719 as_fn_set_status ()
15720 {
15721 return $1
15722 } # as_fn_set_status
15723
15724 # as_fn_exit STATUS
15725 # -----------------
15726 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15727 as_fn_exit ()
15728 {
15729 set +e
15730 as_fn_set_status $1
15731 exit $1
15732 } # as_fn_exit
15733
15734 # as_fn_unset VAR
15735 # ---------------
15736 # Portably unset VAR.
15737 as_fn_unset ()
15738 {
15739 { eval $1=; unset $1;}
15740 }
15741 as_unset=as_fn_unset
15742 # as_fn_append VAR VALUE
15743 # ----------------------
15744 # Append the text in VALUE to the end of the definition contained in VAR. Take
15745 # advantage of any shell optimizations that allow amortized linear growth over
15746 # repeated appends, instead of the typical quadratic growth present in naive
15747 # implementations.
15748 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15749 eval 'as_fn_append ()
15750 {
15751 eval $1+=\$2
15752 }'
15753 else
15754 as_fn_append ()
15755 {
15756 eval $1=\$$1\$2
15757 }
15758 fi # as_fn_append
15759
15760 # as_fn_arith ARG...
15761 # ------------------
15762 # Perform arithmetic evaluation on the ARGs, and store the result in the
15763 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15764 # must be portable across $(()) and expr.
15765 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15766 eval 'as_fn_arith ()
15767 {
15768 as_val=$(( $* ))
15769 }'
15770 else
15771 as_fn_arith ()
15772 {
15773 as_val=`expr "$@" || test $? -eq 1`
15774 }
15775 fi # as_fn_arith
15776
15777
15778 if expr a : '\(a\)' >/dev/null 2>&1 &&
15779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15780 as_expr=expr
15781 else
15782 as_expr=false
15783 fi
15784
15785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15786 as_basename=basename
15787 else
15788 as_basename=false
15789 fi
15790
15791 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15792 as_dirname=dirname
15793 else
15794 as_dirname=false
15795 fi
15796
15797 as_me=`$as_basename -- "$0" ||
15798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15799 X"$0" : 'X\(//\)$' \| \
15800 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15801 $as_echo X/"$0" |
15802 sed '/^.*\/\([^/][^/]*\)\/*$/{
15803 s//\1/
15804 q
15805 }
15806 /^X\/\(\/\/\)$/{
15807 s//\1/
15808 q
15809 }
15810 /^X\/\(\/\).*/{
15811 s//\1/
15812 q
15813 }
15814 s/.*/./; q'`
15815
15816 # Avoid depending upon Character Ranges.
15817 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15818 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15819 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15820 as_cr_digits='0123456789'
15821 as_cr_alnum=$as_cr_Letters$as_cr_digits
15822
15823 ECHO_C= ECHO_N= ECHO_T=
15824 case `echo -n x` in #(((((
15825 -n*)
15826 case `echo 'xy\c'` in
15827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15828 xy) ECHO_C='\c';;
15829 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15830 ECHO_T=' ';;
15831 esac;;
15832 *)
15833 ECHO_N='-n';;
15834 esac
15835
15836 rm -f conf$$ conf$$.exe conf$$.file
15837 if test -d conf$$.dir; then
15838 rm -f conf$$.dir/conf$$.file
15839 else
15840 rm -f conf$$.dir
15841 mkdir conf$$.dir 2>/dev/null
15842 fi
15843 if (echo >conf$$.file) 2>/dev/null; then
15844 if ln -s conf$$.file conf$$ 2>/dev/null; then
15845 as_ln_s='ln -s'
15846 # ... but there are two gotchas:
15847 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15848 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15849 # In both cases, we have to default to `cp -pR'.
15850 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15851 as_ln_s='cp -pR'
15852 elif ln conf$$.file conf$$ 2>/dev/null; then
15853 as_ln_s=ln
15854 else
15855 as_ln_s='cp -pR'
15856 fi
15857 else
15858 as_ln_s='cp -pR'
15859 fi
15860 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15861 rmdir conf$$.dir 2>/dev/null
15862
15863
15864 # as_fn_mkdir_p
15865 # -------------
15866 # Create "$as_dir" as a directory, including parents if necessary.
15867 as_fn_mkdir_p ()
15868 {
15869
15870 case $as_dir in #(
15871 -*) as_dir=./$as_dir;;
15872 esac
15873 test -d "$as_dir" || eval $as_mkdir_p || {
15874 as_dirs=
15875 while :; do
15876 case $as_dir in #(
15877 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15878 *) as_qdir=$as_dir;;
15879 esac
15880 as_dirs="'$as_qdir' $as_dirs"
15881 as_dir=`$as_dirname -- "$as_dir" ||
15882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15883 X"$as_dir" : 'X\(//\)[^/]' \| \
15884 X"$as_dir" : 'X\(//\)$' \| \
15885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15886 $as_echo X"$as_dir" |
15887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15888 s//\1/
15889 q
15890 }
15891 /^X\(\/\/\)[^/].*/{
15892 s//\1/
15893 q
15894 }
15895 /^X\(\/\/\)$/{
15896 s//\1/
15897 q
15898 }
15899 /^X\(\/\).*/{
15900 s//\1/
15901 q
15902 }
15903 s/.*/./; q'`
15904 test -d "$as_dir" && break
15905 done
15906 test -z "$as_dirs" || eval "mkdir $as_dirs"
15907 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15908
15909
15910 } # as_fn_mkdir_p
15911 if mkdir -p . 2>/dev/null; then
15912 as_mkdir_p='mkdir -p "$as_dir"'
15913 else
15914 test -d ./-p && rmdir ./-p
15915 as_mkdir_p=false
15916 fi
15917
15918
15919 # as_fn_executable_p FILE
15920 # -----------------------
15921 # Test if FILE is an executable regular file.
15922 as_fn_executable_p ()
15923 {
15924 test -f "$1" && test -x "$1"
15925 } # as_fn_executable_p
15926 as_test_x='test -x'
15927 as_executable_p=as_fn_executable_p
15928
15929 # Sed expression to map a string onto a valid CPP name.
15930 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15931
15932 # Sed expression to map a string onto a valid variable name.
15933 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15934
15935
15936 exec 6>&1
15937 ## ----------------------------------- ##
15938 ## Main body of $CONFIG_STATUS script. ##
15939 ## ----------------------------------- ##
15940 _ASEOF
15941 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15942
15943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15944 # Save the log message, to keep $0 and so on meaningful, and to
15945 # report actual input values of CONFIG_FILES etc. instead of their
15946 # values after options handling.
15947 ac_log="
15948 This file was extended by python $as_me 2.7, which was
15949 generated by GNU Autoconf 2.69. Invocation command line was
15950
15951 CONFIG_FILES = $CONFIG_FILES
15952 CONFIG_HEADERS = $CONFIG_HEADERS
15953 CONFIG_LINKS = $CONFIG_LINKS
15954 CONFIG_COMMANDS = $CONFIG_COMMANDS
15955 $ $0 $@
15956
15957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15958 "
15959
15960 _ACEOF
15961
15962 case $ac_config_files in *"
15963 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15964 esac
15965
15966 case $ac_config_headers in *"
15967 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15968 esac
15969
15970
15971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972 # Files that config.status was made for.
15973 config_files="$ac_config_files"
15974 config_headers="$ac_config_headers"
15975
15976 _ACEOF
15977
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979 ac_cs_usage="\
15980 \`$as_me' instantiates files and other configuration actions
15981 from templates according to the current configuration. Unless the files
15982 and actions are specified as TAGs, all are instantiated by default.
15983
15984 Usage: $0 [OPTION]... [TAG]...
15985
15986 -h, --help print this help, then exit
15987 -V, --version print version number and configuration settings, then exit
15988 --config print configuration, then exit
15989 -q, --quiet, --silent
15990 do not print progress messages
15991 -d, --debug don't remove temporary files
15992 --recheck update $as_me by reconfiguring in the same conditions
15993 --file=FILE[:TEMPLATE]
15994 instantiate the configuration file FILE
15995 --header=FILE[:TEMPLATE]
15996 instantiate the configuration header FILE
15997
15998 Configuration files:
15999 $config_files
16000
16001 Configuration headers:
16002 $config_headers
16003
16004 Report bugs to <https://bugs.python.org/>."
16005
16006 _ACEOF
16007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16009 ac_cs_version="\\
16010 python config.status 2.7
16011 configured by $0, generated by GNU Autoconf 2.69,
16012 with options \\"\$ac_cs_config\\"
16013
16014 Copyright (C) 2012 Free Software Foundation, Inc.
16015 This config.status script is free software; the Free Software Foundation
16016 gives unlimited permission to copy, distribute and modify it."
16017
16018 ac_pwd='$ac_pwd'
16019 srcdir='$srcdir'
16020 INSTALL='$INSTALL'
16021 MKDIR_P='$MKDIR_P'
16022 test -n "\$AWK" || AWK=awk
16023 _ACEOF
16024
16025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16026 # The default lists apply if the user does not specify any file.
16027 ac_need_defaults=:
16028 while test $# != 0
16029 do
16030 case $1 in
16031 --*=?*)
16032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16033 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16034 ac_shift=:
16035 ;;
16036 --*=)
16037 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16038 ac_optarg=
16039 ac_shift=:
16040 ;;
16041 *)
16042 ac_option=$1
16043 ac_optarg=$2
16044 ac_shift=shift
16045 ;;
16046 esac
16047
16048 case $ac_option in
16049 # Handling of the options.
16050 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16051 ac_cs_recheck=: ;;
16052 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16053 $as_echo "$ac_cs_version"; exit ;;
16054 --config | --confi | --conf | --con | --co | --c )
16055 $as_echo "$ac_cs_config"; exit ;;
16056 --debug | --debu | --deb | --de | --d | -d )
16057 debug=: ;;
16058 --file | --fil | --fi | --f )
16059 $ac_shift
16060 case $ac_optarg in
16061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16062 '') as_fn_error $? "missing file argument" ;;
16063 esac
16064 as_fn_append CONFIG_FILES " '$ac_optarg'"
16065 ac_need_defaults=false;;
16066 --header | --heade | --head | --hea )
16067 $ac_shift
16068 case $ac_optarg in
16069 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16070 esac
16071 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16072 ac_need_defaults=false;;
16073 --he | --h)
16074 # Conflict between --help and --header
16075 as_fn_error $? "ambiguous option: \`$1'
16076 Try \`$0 --help' for more information.";;
16077 --help | --hel | -h )
16078 $as_echo "$ac_cs_usage"; exit ;;
16079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16081 ac_cs_silent=: ;;
16082
16083 # This is an error.
16084 -*) as_fn_error $? "unrecognized option: \`$1'
16085 Try \`$0 --help' for more information." ;;
16086
16087 *) as_fn_append ac_config_targets " $1"
16088 ac_need_defaults=false ;;
16089
16090 esac
16091 shift
16092 done
16093
16094 ac_configure_extra_args=
16095
16096 if $ac_cs_silent; then
16097 exec 6>/dev/null
16098 ac_configure_extra_args="$ac_configure_extra_args --silent"
16099 fi
16100
16101 _ACEOF
16102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16103 if \$ac_cs_recheck; then
16104 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16105 shift
16106 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16107 CONFIG_SHELL='$SHELL'
16108 export CONFIG_SHELL
16109 exec "\$@"
16110 fi
16111
16112 _ACEOF
16113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16114 exec 5>>config.log
16115 {
16116 echo
16117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16118 ## Running $as_me. ##
16119 _ASBOX
16120 $as_echo "$ac_log"
16121 } >&5
16122
16123 _ACEOF
16124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16125 _ACEOF
16126
16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128
16129 # Handling of arguments.
16130 for ac_config_target in $ac_config_targets
16131 do
16132 case $ac_config_target in
16133 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
16134 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
16135 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
16136 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
16137 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
16138 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
16139 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
16140 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
16141 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
16142 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
16143
16144 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16145 esac
16146 done
16147
16148
16149 # If the user did not use the arguments to specify the items to instantiate,
16150 # then the envvar interface is used. Set only those that are not.
16151 # We use the long form for the default assignment because of an extremely
16152 # bizarre bug on SunOS 4.1.3.
16153 if $ac_need_defaults; then
16154 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16155 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16156 fi
16157
16158 # Have a temporary directory for convenience. Make it in the build tree
16159 # simply because there is no reason against having it here, and in addition,
16160 # creating and moving files from /tmp can sometimes cause problems.
16161 # Hook for its removal unless debugging.
16162 # Note that there is a small window in which the directory will not be cleaned:
16163 # after its creation but before its name has been assigned to `$tmp'.
16164 $debug ||
16165 {
16166 tmp= ac_tmp=
16167 trap 'exit_status=$?
16168 : "${ac_tmp:=$tmp}"
16169 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16170 ' 0
16171 trap 'as_fn_exit 1' 1 2 13 15
16172 }
16173 # Create a (secure) tmp directory for tmp files.
16174
16175 {
16176 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16177 test -d "$tmp"
16178 } ||
16179 {
16180 tmp=./conf$$-$RANDOM
16181 (umask 077 && mkdir "$tmp")
16182 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16183 ac_tmp=$tmp
16184
16185 # Set up the scripts for CONFIG_FILES section.
16186 # No need to generate them if there are no CONFIG_FILES.
16187 # This happens for instance with `./config.status config.h'.
16188 if test -n "$CONFIG_FILES"; then
16189
16190
16191 ac_cr=`echo X | tr X '\015'`
16192 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16193 # But we know of no other shell where ac_cr would be empty at this
16194 # point, so we can use a bashism as a fallback.
16195 if test "x$ac_cr" = x; then
16196 eval ac_cr=\$\'\\r\'
16197 fi
16198 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16199 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16200 ac_cs_awk_cr='\\r'
16201 else
16202 ac_cs_awk_cr=$ac_cr
16203 fi
16204
16205 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16206 _ACEOF
16207
16208
16209 {
16210 echo "cat >conf$$subs.awk <<_ACEOF" &&
16211 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16212 echo "_ACEOF"
16213 } >conf$$subs.sh ||
16214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16215 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16216 ac_delim='%!_!# '
16217 for ac_last_try in false false false false false :; do
16218 . ./conf$$subs.sh ||
16219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16220
16221 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16222 if test $ac_delim_n = $ac_delim_num; then
16223 break
16224 elif $ac_last_try; then
16225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16226 else
16227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16228 fi
16229 done
16230 rm -f conf$$subs.sh
16231
16232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16233 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16234 _ACEOF
16235 sed -n '
16236 h
16237 s/^/S["/; s/!.*/"]=/
16238 p
16239 g
16240 s/^[^!]*!//
16241 :repl
16242 t repl
16243 s/'"$ac_delim"'$//
16244 t delim
16245 :nl
16246 h
16247 s/\(.\{148\}\)..*/\1/
16248 t more1
16249 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16250 p
16251 n
16252 b repl
16253 :more1
16254 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16255 p
16256 g
16257 s/.\{148\}//
16258 t nl
16259 :delim
16260 h
16261 s/\(.\{148\}\)..*/\1/
16262 t more2
16263 s/["\\]/\\&/g; s/^/"/; s/$/"/
16264 p
16265 b
16266 :more2
16267 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16268 p
16269 g
16270 s/.\{148\}//
16271 t delim
16272 ' <conf$$subs.awk | sed '
16273 /^[^""]/{
16274 N
16275 s/\n//
16276 }
16277 ' >>$CONFIG_STATUS || ac_write_fail=1
16278 rm -f conf$$subs.awk
16279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16280 _ACAWK
16281 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16282 for (key in S) S_is_set[key] = 1
16283 FS = ""
16284
16285 }
16286 {
16287 line = $ 0
16288 nfields = split(line, field, "@")
16289 substed = 0
16290 len = length(field[1])
16291 for (i = 2; i < nfields; i++) {
16292 key = field[i]
16293 keylen = length(key)
16294 if (S_is_set[key]) {
16295 value = S[key]
16296 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16297 len += length(value) + length(field[++i])
16298 substed = 1
16299 } else
16300 len += 1 + keylen
16301 }
16302
16303 print line
16304 }
16305
16306 _ACAWK
16307 _ACEOF
16308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16310 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16311 else
16312 cat
16313 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16314 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16315 _ACEOF
16316
16317 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16318 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16319 # trailing colons and then remove the whole line if VPATH becomes empty
16320 # (actually we leave an empty line to preserve line numbers).
16321 if test "x$srcdir" = x.; then
16322 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16323 h
16324 s///
16325 s/^/:/
16326 s/[ ]*$/:/
16327 s/:\$(srcdir):/:/g
16328 s/:\${srcdir}:/:/g
16329 s/:@srcdir@:/:/g
16330 s/^:*//
16331 s/:*$//
16332 x
16333 s/\(=[ ]*\).*/\1/
16334 G
16335 s/\n//
16336 s/^[^=]*=[ ]*$//
16337 }'
16338 fi
16339
16340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16341 fi # test -n "$CONFIG_FILES"
16342
16343 # Set up the scripts for CONFIG_HEADERS section.
16344 # No need to generate them if there are no CONFIG_HEADERS.
16345 # This happens for instance with `./config.status Makefile'.
16346 if test -n "$CONFIG_HEADERS"; then
16347 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16348 BEGIN {
16349 _ACEOF
16350
16351 # Transform confdefs.h into an awk script `defines.awk', embedded as
16352 # here-document in config.status, that substitutes the proper values into
16353 # config.h.in to produce config.h.
16354
16355 # Create a delimiter string that does not exist in confdefs.h, to ease
16356 # handling of long lines.
16357 ac_delim='%!_!# '
16358 for ac_last_try in false false :; do
16359 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16360 if test -z "$ac_tt"; then
16361 break
16362 elif $ac_last_try; then
16363 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16364 else
16365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16366 fi
16367 done
16368
16369 # For the awk script, D is an array of macro values keyed by name,
16370 # likewise P contains macro parameters if any. Preserve backslash
16371 # newline sequences.
16372
16373 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16374 sed -n '
16375 s/.\{148\}/&'"$ac_delim"'/g
16376 t rset
16377 :rset
16378 s/^[ ]*#[ ]*define[ ][ ]*/ /
16379 t def
16380 d
16381 :def
16382 s/\\$//
16383 t bsnl
16384 s/["\\]/\\&/g
16385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16386 D["\1"]=" \3"/p
16387 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16388 d
16389 :bsnl
16390 s/["\\]/\\&/g
16391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16392 D["\1"]=" \3\\\\\\n"\\/p
16393 t cont
16394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16395 t cont
16396 d
16397 :cont
16398 n
16399 s/.\{148\}/&'"$ac_delim"'/g
16400 t clear
16401 :clear
16402 s/\\$//
16403 t bsnlc
16404 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16405 d
16406 :bsnlc
16407 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16408 b cont
16409 ' <confdefs.h | sed '
16410 s/'"$ac_delim"'/"\\\
16411 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16412
16413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16414 for (key in D) D_is_set[key] = 1
16415 FS = ""
16416 }
16417 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16418 line = \$ 0
16419 split(line, arg, " ")
16420 if (arg[1] == "#") {
16421 defundef = arg[2]
16422 mac1 = arg[3]
16423 } else {
16424 defundef = substr(arg[1], 2)
16425 mac1 = arg[2]
16426 }
16427 split(mac1, mac2, "(") #)
16428 macro = mac2[1]
16429 prefix = substr(line, 1, index(line, defundef) - 1)
16430 if (D_is_set[macro]) {
16431 # Preserve the white space surrounding the "#".
16432 print prefix "define", macro P[macro] D[macro]
16433 next
16434 } else {
16435 # Replace #undef with comments. This is necessary, for example,
16436 # in the case of _POSIX_SOURCE, which is predefined and required
16437 # on some systems where configure will not decide to define it.
16438 if (defundef == "undef") {
16439 print "/*", prefix defundef, macro, "*/"
16440 next
16441 }
16442 }
16443 }
16444 { print }
16445 _ACAWK
16446 _ACEOF
16447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16448 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16449 fi # test -n "$CONFIG_HEADERS"
16450
16451
16452 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16453 shift
16454 for ac_tag
16455 do
16456 case $ac_tag in
16457 :[FHLC]) ac_mode=$ac_tag; continue;;
16458 esac
16459 case $ac_mode$ac_tag in
16460 :[FHL]*:*);;
16461 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16462 :[FH]-) ac_tag=-:-;;
16463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16464 esac
16465 ac_save_IFS=$IFS
16466 IFS=:
16467 set x $ac_tag
16468 IFS=$ac_save_IFS
16469 shift
16470 ac_file=$1
16471 shift
16472
16473 case $ac_mode in
16474 :L) ac_source=$1;;
16475 :[FH])
16476 ac_file_inputs=
16477 for ac_f
16478 do
16479 case $ac_f in
16480 -) ac_f="$ac_tmp/stdin";;
16481 *) # Look for the file first in the build tree, then in the source tree
16482 # (if the path is not absolute). The absolute path cannot be DOS-style,
16483 # because $ac_f cannot contain `:'.
16484 test -f "$ac_f" ||
16485 case $ac_f in
16486 [\\/$]*) false;;
16487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16488 esac ||
16489 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16490 esac
16491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16492 as_fn_append ac_file_inputs " '$ac_f'"
16493 done
16494
16495 # Let's still pretend it is `configure' which instantiates (i.e., don't
16496 # use $as_me), people would be surprised to read:
16497 # /* config.h. Generated by config.status. */
16498 configure_input='Generated from '`
16499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16500 `' by configure.'
16501 if test x"$ac_file" != x-; then
16502 configure_input="$ac_file. $configure_input"
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16504 $as_echo "$as_me: creating $ac_file" >&6;}
16505 fi
16506 # Neutralize special characters interpreted by sed in replacement strings.
16507 case $configure_input in #(
16508 *\&* | *\|* | *\\* )
16509 ac_sed_conf_input=`$as_echo "$configure_input" |
16510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16511 *) ac_sed_conf_input=$configure_input;;
16512 esac
16513
16514 case $ac_tag in
16515 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16517 esac
16518 ;;
16519 esac
16520
16521 ac_dir=`$as_dirname -- "$ac_file" ||
16522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16523 X"$ac_file" : 'X\(//\)[^/]' \| \
16524 X"$ac_file" : 'X\(//\)$' \| \
16525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16526 $as_echo X"$ac_file" |
16527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16528 s//\1/
16529 q
16530 }
16531 /^X\(\/\/\)[^/].*/{
16532 s//\1/
16533 q
16534 }
16535 /^X\(\/\/\)$/{
16536 s//\1/
16537 q
16538 }
16539 /^X\(\/\).*/{
16540 s//\1/
16541 q
16542 }
16543 s/.*/./; q'`
16544 as_dir="$ac_dir"; as_fn_mkdir_p
16545 ac_builddir=.
16546
16547 case "$ac_dir" in
16548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16549 *)
16550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16551 # A ".." for each directory in $ac_dir_suffix.
16552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16553 case $ac_top_builddir_sub in
16554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16556 esac ;;
16557 esac
16558 ac_abs_top_builddir=$ac_pwd
16559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16560 # for backward compatibility:
16561 ac_top_builddir=$ac_top_build_prefix
16562
16563 case $srcdir in
16564 .) # We are building in place.
16565 ac_srcdir=.
16566 ac_top_srcdir=$ac_top_builddir_sub
16567 ac_abs_top_srcdir=$ac_pwd ;;
16568 [\\/]* | ?:[\\/]* ) # Absolute name.
16569 ac_srcdir=$srcdir$ac_dir_suffix;
16570 ac_top_srcdir=$srcdir
16571 ac_abs_top_srcdir=$srcdir ;;
16572 *) # Relative name.
16573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16574 ac_top_srcdir=$ac_top_build_prefix$srcdir
16575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16576 esac
16577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16578
16579
16580 case $ac_mode in
16581 :F)
16582 #
16583 # CONFIG_FILE
16584 #
16585
16586 case $INSTALL in
16587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16589 esac
16590 ac_MKDIR_P=$MKDIR_P
16591 case $MKDIR_P in
16592 [\\/$]* | ?:[\\/]* ) ;;
16593 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16594 esac
16595 _ACEOF
16596
16597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16598 # If the template does not know about datarootdir, expand it.
16599 # FIXME: This hack should be removed a few years after 2.60.
16600 ac_datarootdir_hack=; ac_datarootdir_seen=
16601 ac_sed_dataroot='
16602 /datarootdir/ {
16603 p
16604 q
16605 }
16606 /@datadir@/p
16607 /@docdir@/p
16608 /@infodir@/p
16609 /@localedir@/p
16610 /@mandir@/p'
16611 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16612 *datarootdir*) ac_datarootdir_seen=yes;;
16613 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16615 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16616 _ACEOF
16617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16618 ac_datarootdir_hack='
16619 s&@datadir@&$datadir&g
16620 s&@docdir@&$docdir&g
16621 s&@infodir@&$infodir&g
16622 s&@localedir@&$localedir&g
16623 s&@mandir@&$mandir&g
16624 s&\\\${datarootdir}&$datarootdir&g' ;;
16625 esac
16626 _ACEOF
16627
16628 # Neutralize VPATH when `$srcdir' = `.'.
16629 # Shell code in configure.ac might set extrasub.
16630 # FIXME: do we really want to maintain this feature?
16631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16632 ac_sed_extra="$ac_vpsub
16633 $extrasub
16634 _ACEOF
16635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16636 :t
16637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16638 s|@configure_input@|$ac_sed_conf_input|;t t
16639 s&@top_builddir@&$ac_top_builddir_sub&;t t
16640 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16641 s&@srcdir@&$ac_srcdir&;t t
16642 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16643 s&@top_srcdir@&$ac_top_srcdir&;t t
16644 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16645 s&@builddir@&$ac_builddir&;t t
16646 s&@abs_builddir@&$ac_abs_builddir&;t t
16647 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16648 s&@INSTALL@&$ac_INSTALL&;t t
16649 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16650 $ac_datarootdir_hack
16651 "
16652 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16653 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16654
16655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16656 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16658 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16660 which seems to be undefined. Please make sure it is defined" >&5
16661 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16662 which seems to be undefined. Please make sure it is defined" >&2;}
16663
16664 rm -f "$ac_tmp/stdin"
16665 case $ac_file in
16666 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16667 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16668 esac \
16669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16670 ;;
16671 :H)
16672 #
16673 # CONFIG_HEADER
16674 #
16675 if test x"$ac_file" != x-; then
16676 {
16677 $as_echo "/* $configure_input */" \
16678 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16679 } >"$ac_tmp/config.h" \
16680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16681 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16683 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16684 else
16685 rm -f "$ac_file"
16686 mv "$ac_tmp/config.h" "$ac_file" \
16687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16688 fi
16689 else
16690 $as_echo "/* $configure_input */" \
16691 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16692 || as_fn_error $? "could not create -" "$LINENO" 5
16693 fi
16694 ;;
16695
16696
16697 esac
16698
16699
16700 case $ac_file$ac_mode in
16701 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
16702
16703 esac
16704 done # for ac_tag
16705
16706
16707 as_fn_exit 0
16708 _ACEOF
16709 ac_clean_files=$ac_clean_files_save
16710
16711 test $ac_write_fail = 0 ||
16712 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16713
16714
16715 # configure is writing to config.log, and then calls config.status.
16716 # config.status does its own redirection, appending to config.log.
16717 # Unfortunately, on DOS this fails, as config.log is still kept open
16718 # by configure, so config.status won't be able to write to it; its
16719 # output is simply discarded. So we exec the FD to /dev/null,
16720 # effectively closing config.log, so it can be properly (re)opened and
16721 # appended to by config.status. When coming back to configure, we
16722 # need to make the FD available again.
16723 if test "$no_create" != yes; then
16724 ac_cs_success=:
16725 ac_config_status_args=
16726 test "$silent" = yes &&
16727 ac_config_status_args="$ac_config_status_args --quiet"
16728 exec 5>/dev/null
16729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16730 exec 5>>config.log
16731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16732 # would make configure fail if this is the last instruction.
16733 $ac_cs_success || as_fn_exit 1
16734 fi
16735 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16737 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16738 fi
16739
16740
16741 echo "creating Modules/Setup"
16742 if test ! -f Modules/Setup
16743 then
16744 cp $srcdir/Modules/Setup.dist Modules/Setup
16745 fi
16746
16747 echo "creating Modules/Setup.local"
16748 if test ! -f Modules/Setup.local
16749 then
16750 echo "# Edit this file for local setup changes" >Modules/Setup.local
16751 fi
16752
16753 echo "creating Makefile"
16754 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
16755 -s Modules Modules/Setup.config \
16756 Modules/Setup.local Modules/Setup
16757
16758 case $ac_sys_system in
16759 BeOS)
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16761
16762 Support for BeOS is deprecated as of Python 2.6.
16763 See PEP 11 for the gory details.
16764 " >&5
16765 $as_echo "$as_me: WARNING:
16766
16767 Support for BeOS is deprecated as of Python 2.6.
16768 See PEP 11 for the gory details.
16769 " >&2;}
16770 ;;
16771 *) ;;
16772 esac
16773
16774 mv config.c Modules
16775
16776 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
16777 echo "" >&6
16778 echo "" >&6
16779 echo "If you want a release build with all optimizations active (LTO, PGO, etc),"
16780 echo "please run ./configure --enable-optimizations" >&6
16781 echo "" >&6
16782 echo "" >&6
16783 fi