Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for python 3.13.
4 #
5 # Report bugs to <https://github.com/python/cpython/issues/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] and
271 $0: https://github.com/python/cpython/issues/ about your
272 $0: system, including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script 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
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321 return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
389 {
390 eval $1+=\$2
391 }'
392 else $as_nop
393 as_fn_append ()
394 {
395 eval $1=\$$1\$2
396 }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else $as_nop
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422 return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 fi
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\/\)$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\).*/{
475 s//\1/
476 q
477 }
478 s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
494 p
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='python'
613 PACKAGE_TARNAME='python'
614 PACKAGE_VERSION='3.13'
615 PACKAGE_STRING='python 3.13'
616 PACKAGE_BUGREPORT='https://github.com/python/cpython/issues/'
617 PACKAGE_URL=''
618
619 ac_unique_file="Include/object.h"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_subst_vars='LTLIBOBJS
653 MODULE_BLOCK
654 MODULE_XXLIMITED_35_FALSE
655 MODULE_XXLIMITED_35_TRUE
656 MODULE_XXLIMITED_FALSE
657 MODULE_XXLIMITED_TRUE
658 MODULE__CTYPES_TEST_FALSE
659 MODULE__CTYPES_TEST_TRUE
660 MODULE__XXTESTFUZZ_FALSE
661 MODULE__XXTESTFUZZ_TRUE
662 MODULE_XXSUBTYPE_FALSE
663 MODULE_XXSUBTYPE_TRUE
664 MODULE__TESTEXTERNALINSPECTION_FALSE
665 MODULE__TESTEXTERNALINSPECTION_TRUE
666 MODULE__TESTSINGLEPHASE_FALSE
667 MODULE__TESTSINGLEPHASE_TRUE
668 MODULE__TESTMULTIPHASE_FALSE
669 MODULE__TESTMULTIPHASE_TRUE
670 MODULE__TESTIMPORTMULTIPLE_FALSE
671 MODULE__TESTIMPORTMULTIPLE_TRUE
672 MODULE__TESTBUFFER_FALSE
673 MODULE__TESTBUFFER_TRUE
674 MODULE__TESTINTERNALCAPI_FALSE
675 MODULE__TESTINTERNALCAPI_TRUE
676 MODULE__TESTLIMITEDCAPI_FALSE
677 MODULE__TESTLIMITEDCAPI_TRUE
678 MODULE__TESTCLINIC_LIMITED_FALSE
679 MODULE__TESTCLINIC_LIMITED_TRUE
680 MODULE__TESTCLINIC_FALSE
681 MODULE__TESTCLINIC_TRUE
682 MODULE__TESTCAPI_FALSE
683 MODULE__TESTCAPI_TRUE
684 MODULE__HASHLIB_FALSE
685 MODULE__HASHLIB_TRUE
686 MODULE__SSL_FALSE
687 MODULE__SSL_TRUE
688 MODULE__LZMA_FALSE
689 MODULE__LZMA_TRUE
690 MODULE__BZ2_FALSE
691 MODULE__BZ2_TRUE
692 MODULE_BINASCII_FALSE
693 MODULE_BINASCII_TRUE
694 MODULE_ZLIB_FALSE
695 MODULE_ZLIB_TRUE
696 MODULE__UUID_FALSE
697 MODULE__UUID_TRUE
698 MODULE__TKINTER_FALSE
699 MODULE__TKINTER_TRUE
700 MODULE__SQLITE3_FALSE
701 MODULE__SQLITE3_TRUE
702 MODULE_READLINE_FALSE
703 MODULE_READLINE_TRUE
704 MODULE__GDBM_FALSE
705 MODULE__GDBM_TRUE
706 MODULE__DBM_FALSE
707 MODULE__DBM_TRUE
708 MODULE__DECIMAL_FALSE
709 MODULE__DECIMAL_TRUE
710 MODULE__CURSES_PANEL_FALSE
711 MODULE__CURSES_PANEL_TRUE
712 MODULE__CURSES_FALSE
713 MODULE__CURSES_TRUE
714 MODULE__CTYPES_FALSE
715 MODULE__CTYPES_TRUE
716 MODULE__BLAKE2_FALSE
717 MODULE__BLAKE2_TRUE
718 MODULE__SHA3_FALSE
719 MODULE__SHA3_TRUE
720 MODULE__SHA2_FALSE
721 MODULE__SHA2_TRUE
722 MODULE__SHA1_FALSE
723 MODULE__SHA1_TRUE
724 MODULE__MD5_FALSE
725 MODULE__MD5_TRUE
726 MODULE_UNICODEDATA_FALSE
727 MODULE_UNICODEDATA_TRUE
728 MODULE__MULTIBYTECODEC_FALSE
729 MODULE__MULTIBYTECODEC_TRUE
730 MODULE__CODECS_TW_FALSE
731 MODULE__CODECS_TW_TRUE
732 MODULE__CODECS_KR_FALSE
733 MODULE__CODECS_KR_TRUE
734 MODULE__CODECS_JP_FALSE
735 MODULE__CODECS_JP_TRUE
736 MODULE__CODECS_ISO2022_FALSE
737 MODULE__CODECS_ISO2022_TRUE
738 MODULE__CODECS_HK_FALSE
739 MODULE__CODECS_HK_TRUE
740 MODULE__CODECS_CN_FALSE
741 MODULE__CODECS_CN_TRUE
742 MODULE__ELEMENTTREE_FALSE
743 MODULE__ELEMENTTREE_TRUE
744 MODULE_PYEXPAT_FALSE
745 MODULE_PYEXPAT_TRUE
746 MODULE_TERMIOS_FALSE
747 MODULE_TERMIOS_TRUE
748 MODULE_SYSLOG_FALSE
749 MODULE_SYSLOG_TRUE
750 MODULE__SCPROXY_FALSE
751 MODULE__SCPROXY_TRUE
752 MODULE_RESOURCE_FALSE
753 MODULE_RESOURCE_TRUE
754 MODULE_PWD_FALSE
755 MODULE_PWD_TRUE
756 MODULE_GRP_FALSE
757 MODULE_GRP_TRUE
758 MODULE__SOCKET_FALSE
759 MODULE__SOCKET_TRUE
760 MODULE_MMAP_FALSE
761 MODULE_MMAP_TRUE
762 MODULE_FCNTL_FALSE
763 MODULE_FCNTL_TRUE
764 MODULE__DATETIME_FALSE
765 MODULE__DATETIME_TRUE
766 MODULE_MATH_FALSE
767 MODULE_MATH_TRUE
768 MODULE_CMATH_FALSE
769 MODULE_CMATH_TRUE
770 MODULE__STATISTICS_FALSE
771 MODULE__STATISTICS_TRUE
772 MODULE__POSIXSHMEM_FALSE
773 MODULE__POSIXSHMEM_TRUE
774 MODULE__MULTIPROCESSING_FALSE
775 MODULE__MULTIPROCESSING_TRUE
776 MODULE__ZONEINFO_FALSE
777 MODULE__ZONEINFO_TRUE
778 MODULE__INTERPQUEUES_FALSE
779 MODULE__INTERPQUEUES_TRUE
780 MODULE__INTERPCHANNELS_FALSE
781 MODULE__INTERPCHANNELS_TRUE
782 MODULE__INTERPRETERS_FALSE
783 MODULE__INTERPRETERS_TRUE
784 MODULE__TYPING_FALSE
785 MODULE__TYPING_TRUE
786 MODULE__STRUCT_FALSE
787 MODULE__STRUCT_TRUE
788 MODULE_SELECT_FALSE
789 MODULE_SELECT_TRUE
790 MODULE__RANDOM_FALSE
791 MODULE__RANDOM_TRUE
792 MODULE__QUEUE_FALSE
793 MODULE__QUEUE_TRUE
794 MODULE__POSIXSUBPROCESS_FALSE
795 MODULE__POSIXSUBPROCESS_TRUE
796 MODULE__PICKLE_FALSE
797 MODULE__PICKLE_TRUE
798 MODULE__OPCODE_FALSE
799 MODULE__OPCODE_TRUE
800 MODULE__LSPROF_FALSE
801 MODULE__LSPROF_TRUE
802 MODULE__JSON_FALSE
803 MODULE__JSON_TRUE
804 MODULE__HEAPQ_FALSE
805 MODULE__HEAPQ_TRUE
806 MODULE__CSV_FALSE
807 MODULE__CSV_TRUE
808 MODULE__CONTEXTVARS_FALSE
809 MODULE__CONTEXTVARS_TRUE
810 MODULE__BISECT_FALSE
811 MODULE__BISECT_TRUE
812 MODULE__ASYNCIO_FALSE
813 MODULE__ASYNCIO_TRUE
814 MODULE_ARRAY_FALSE
815 MODULE_ARRAY_TRUE
816 MODULE_TIME_FALSE
817 MODULE_TIME_TRUE
818 MODULE__IO_FALSE
819 MODULE__IO_TRUE
820 MODULE_BUILDTYPE
821 TEST_MODULES
822 LIBB2_LIBS
823 LIBB2_CFLAGS
824 OPENSSL_LDFLAGS
825 OPENSSL_LIBS
826 OPENSSL_INCLUDES
827 ENSUREPIP
828 SRCDIRS
829 THREADHEADERS
830 PANEL_LIBS
831 PANEL_CFLAGS
832 CURSES_LIBS
833 CURSES_CFLAGS
834 LIBEDIT_LIBS
835 LIBEDIT_CFLAGS
836 LIBREADLINE_LIBS
837 LIBREADLINE_CFLAGS
838 WHEEL_PKG_DIR
839 LIBPL
840 PY_ENABLE_SHARED
841 PLATLIBDIR
842 BINLIBDEST
843 LIBPYTHON
844 MODULE_DEPS_SHARED
845 EXT_SUFFIX
846 ALT_SOABI
847 SOABI
848 LIBC
849 LIBM
850 HAVE_GETHOSTBYNAME
851 HAVE_GETHOSTBYNAME_R
852 HAVE_GETHOSTBYNAME_R_3_ARG
853 HAVE_GETHOSTBYNAME_R_5_ARG
854 HAVE_GETHOSTBYNAME_R_6_ARG
855 LIBOBJS
856 LIBLZMA_LIBS
857 LIBLZMA_CFLAGS
858 BZIP2_LIBS
859 BZIP2_CFLAGS
860 ZLIB_LIBS
861 ZLIB_CFLAGS
862 TRUE
863 MACHDEP_OBJS
864 DYNLOADFILE
865 DLINCLDIR
866 PLATFORM_OBJS
867 PLATFORM_HEADERS
868 DTRACE_OBJS
869 DTRACE_HEADERS
870 DFLAGS
871 DTRACE
872 INSTALL_MIMALLOC
873 MIMALLOC_HEADERS
874 GDBM_LIBS
875 GDBM_CFLAGS
876 X11_LIBS
877 X11_CFLAGS
878 TCLTK_LIBS
879 TCLTK_CFLAGS
880 LIBSQLITE3_LIBS
881 LIBSQLITE3_CFLAGS
882 LIBMPDEC_INTERNAL
883 LIBMPDEC_LIBS
884 LIBMPDEC_CFLAGS
885 MODULE__CTYPES_MALLOC_CLOSURE
886 LIBFFI_LIBS
887 LIBFFI_CFLAGS
888 LIBEXPAT_INTERNAL
889 LIBEXPAT_CFLAGS
890 TZPATH
891 LIBUUID_LIBS
892 LIBUUID_CFLAGS
893 PERF_TRAMPOLINE_OBJ
894 SHLIBS
895 CFLAGSFORSHARED
896 LINKFORSHARED
897 CCSHARED
898 BLDSHARED
899 LDCXXSHARED
900 LDSHARED
901 SHLIB_SUFFIX
902 DSYMUTIL_PATH
903 DSYMUTIL
904 UNIVERSAL_ARCH_FLAGS
905 WASM_STDLIB
906 WASM_ASSETS_DIR
907 LDFLAGS_NOLTO
908 LDFLAGS_NODIST
909 CFLAGS_NODIST
910 BASECFLAGS
911 CFLAGS_ALIASING
912 OPT
913 BOLT_APPLY_FLAGS
914 BOLT_INSTRUMENT_FLAGS
915 BOLT_COMMON_FLAGS
916 BOLT_BINARIES
917 MERGE_FDATA
918 LLVM_BOLT
919 PREBOLT_RULE
920 LLVM_PROF_FOUND
921 LLVM_PROFDATA
922 LLVM_PROF_ERR
923 LLVM_PROF_FILE
924 LLVM_PROF_MERGER
925 PGO_PROF_USE_FLAG
926 PGO_PROF_GEN_FLAG
927 LLVM_AR_FOUND
928 LLVM_AR
929 PROFILE_TASK
930 DEF_MAKE_RULE
931 DEF_MAKE_ALL_RULE
932 JIT_STENCILS_H
933 REGEN_JIT_COMMAND
934 ABI_THREAD
935 ABIFLAGS
936 LN
937 MKDIR_P
938 INSTALL_DATA
939 INSTALL_SCRIPT
940 INSTALL_PROGRAM
941 ARFLAGS
942 ac_ct_AR
943 AR
944 LINK_PYTHON_OBJS
945 LINK_PYTHON_DEPS
946 LIBRARY_DEPS
947 NODE
948 HOSTRUNNER
949 STATIC_LIBPYTHON
950 GNULD
951 EXPORTSFROM
952 EXPORTSYMS
953 LINKCC
954 LDVERSION
955 RUNSHARED
956 INSTSONAME
957 LDLIBRARYDIR
958 PY3LIBRARY
959 BLDLIBRARY
960 DLLLIBRARY
961 LDLIBRARY
962 LIBRARY
963 BUILDEXEEXT
964 NO_AS_NEEDED
965 MULTIARCH_CPPFLAGS
966 PLATFORM_TRIPLET
967 MULTIARCH
968 ac_ct_CXX
969 CXX
970 EGREP
971 SED
972 GREP
973 CPP
974 OBJEXT
975 EXEEXT
976 ac_ct_CC
977 CPPFLAGS
978 LDFLAGS
979 CFLAGS
980 CC
981 HAS_XCRUN
982 IPHONEOS_DEPLOYMENT_TARGET
983 EXPORT_MACOSX_DEPLOYMENT_TARGET
984 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
985 _PYTHON_HOST_PLATFORM
986 APP_STORE_COMPLIANCE_PATCH
987 INSTALLTARGETS
988 FRAMEWORKINSTALLAPPSPREFIX
989 FRAMEWORKUNIXTOOLSPREFIX
990 FRAMEWORKPYTHONW
991 FRAMEWORKALTINSTALLLAST
992 FRAMEWORKALTINSTALLFIRST
993 FRAMEWORKINSTALLLAST
994 FRAMEWORKINSTALLFIRST
995 RESSRCDIR
996 PYTHONFRAMEWORKINSTALLNAMEPREFIX
997 PYTHONFRAMEWORKINSTALLDIR
998 PYTHONFRAMEWORKPREFIX
999 PYTHONFRAMEWORKDIR
1000 PYTHONFRAMEWORKIDENTIFIER
1001 PYTHONFRAMEWORK
1002 LIPO_INTEL64_FLAGS
1003 LIPO_32BIT_FLAGS
1004 ARCH_RUN_32BIT
1005 UNIVERSALSDK
1006 MACHDEP
1007 PKG_CONFIG_LIBDIR
1008 PKG_CONFIG_PATH
1009 PKG_CONFIG
1010 CONFIG_ARGS
1011 SOVERSION
1012 VERSION
1013 PYTHON_FOR_REGEN
1014 PYTHON_FOR_BUILD_DEPS
1015 FREEZE_MODULE_DEPS
1016 FREEZE_MODULE
1017 FREEZE_MODULE_BOOTSTRAP_DEPS
1018 FREEZE_MODULE_BOOTSTRAP
1019 PYTHON_FOR_FREEZE
1020 PYTHON_FOR_BUILD
1021 host_os
1022 host_vendor
1023 host_cpu
1024 host
1025 build_os
1026 build_vendor
1027 build_cpu
1028 build
1029 HAS_GIT
1030 GITBRANCH
1031 GITTAG
1032 GITVERSION
1033 BASECPPFLAGS
1034 target_alias
1035 host_alias
1036 build_alias
1037 LIBS
1038 ECHO_T
1039 ECHO_N
1040 ECHO_C
1041 DEFS
1042 mandir
1043 localedir
1044 libdir
1045 psdir
1046 pdfdir
1047 dvidir
1048 htmldir
1049 infodir
1050 docdir
1051 oldincludedir
1052 includedir
1053 runstatedir
1054 localstatedir
1055 sharedstatedir
1056 sysconfdir
1057 datadir
1058 datarootdir
1059 libexecdir
1060 sbindir
1061 bindir
1062 program_transform_name
1063 prefix
1064 exec_prefix
1065 PACKAGE_URL
1066 PACKAGE_BUGREPORT
1067 PACKAGE_STRING
1068 PACKAGE_VERSION
1069 PACKAGE_TARNAME
1070 PACKAGE_NAME
1071 PATH_SEPARATOR
1072 SHELL'
1073 ac_subst_files=''
1074 ac_user_opts='
1075 enable_option_checking
1076 with_build_python
1077 with_pkg_config
1078 enable_universalsdk
1079 with_universal_archs
1080 with_framework_name
1081 enable_framework
1082 with_app_store_compliance
1083 with_emscripten_target
1084 enable_wasm_dynamic_linking
1085 enable_wasm_pthreads
1086 with_suffix
1087 enable_shared
1088 with_static_libpython
1089 enable_profiling
1090 enable_gil
1091 with_pydebug
1092 with_trace_refs
1093 enable_pystats
1094 with_assertions
1095 enable_experimental_jit
1096 enable_optimizations
1097 with_lto
1098 enable_bolt
1099 with_strict_overflow
1100 with_dsymutil
1101 with_address_sanitizer
1102 with_memory_sanitizer
1103 with_undefined_behavior_sanitizer
1104 with_thread_sanitizer
1105 with_hash_algorithm
1106 with_tzpath
1107 with_libs
1108 with_system_expat
1109 with_system_libmpdec
1110 with_decimal_contextvar
1111 enable_loadable_sqlite_extensions
1112 with_dbmliborder
1113 enable_ipv6
1114 with_doc_strings
1115 with_mimalloc
1116 with_pymalloc
1117 with_freelists
1118 with_c_locale_coercion
1119 with_valgrind
1120 with_dtrace
1121 with_libm
1122 with_libc
1123 enable_big_digits
1124 with_platlibdir
1125 with_wheel_pkg_dir
1126 with_readline
1127 with_computed_gotos
1128 with_ensurepip
1129 with_openssl
1130 with_openssl_rpath
1131 with_ssl_default_suites
1132 with_builtin_hashlib_hashes
1133 enable_test_modules
1134 '
1135 ac_precious_vars='build_alias
1136 host_alias
1137 target_alias
1138 PKG_CONFIG
1139 PKG_CONFIG_PATH
1140 PKG_CONFIG_LIBDIR
1141 MACHDEP
1142 CC
1143 CFLAGS
1144 LDFLAGS
1145 LIBS
1146 CPPFLAGS
1147 CPP
1148 HOSTRUNNER
1149 PROFILE_TASK
1150 BOLT_COMMON_FLAGS
1151 BOLT_INSTRUMENT_FLAGS
1152 BOLT_APPLY_FLAGS
1153 LIBUUID_CFLAGS
1154 LIBUUID_LIBS
1155 LIBFFI_CFLAGS
1156 LIBFFI_LIBS
1157 LIBMPDEC_CFLAGS
1158 LIBMPDEC_LIBS
1159 LIBSQLITE3_CFLAGS
1160 LIBSQLITE3_LIBS
1161 TCLTK_CFLAGS
1162 TCLTK_LIBS
1163 X11_CFLAGS
1164 X11_LIBS
1165 GDBM_CFLAGS
1166 GDBM_LIBS
1167 ZLIB_CFLAGS
1168 ZLIB_LIBS
1169 BZIP2_CFLAGS
1170 BZIP2_LIBS
1171 LIBLZMA_CFLAGS
1172 LIBLZMA_LIBS
1173 LIBREADLINE_CFLAGS
1174 LIBREADLINE_LIBS
1175 LIBEDIT_CFLAGS
1176 LIBEDIT_LIBS
1177 CURSES_CFLAGS
1178 CURSES_LIBS
1179 PANEL_CFLAGS
1180 PANEL_LIBS
1181 LIBB2_CFLAGS
1182 LIBB2_LIBS'
1183
1184
1185 # Initialize some variables set by options.
1186 ac_init_help=
1187 ac_init_version=false
1188 ac_unrecognized_opts=
1189 ac_unrecognized_sep=
1190 # The variables have the same names as the options, with
1191 # dashes changed to underlines.
1192 cache_file=/dev/null
1193 exec_prefix=NONE
1194 no_create=
1195 no_recursion=
1196 prefix=NONE
1197 program_prefix=NONE
1198 program_suffix=NONE
1199 program_transform_name=s,x,x,
1200 silent=
1201 site=
1202 srcdir=
1203 verbose=
1204 x_includes=NONE
1205 x_libraries=NONE
1206
1207 # Installation directory options.
1208 # These are left unexpanded so users can "make install exec_prefix=/foo"
1209 # and all the variables that are supposed to be based on exec_prefix
1210 # by default will actually change.
1211 # Use braces instead of parens because sh, perl, etc. also accept them.
1212 # (The list follows the same order as the GNU Coding Standards.)
1213 bindir='${exec_prefix}/bin'
1214 sbindir='${exec_prefix}/sbin'
1215 libexecdir='${exec_prefix}/libexec'
1216 datarootdir='${prefix}/share'
1217 datadir='${datarootdir}'
1218 sysconfdir='${prefix}/etc'
1219 sharedstatedir='${prefix}/com'
1220 localstatedir='${prefix}/var'
1221 runstatedir='${localstatedir}/run'
1222 includedir='${prefix}/include'
1223 oldincludedir='/usr/include'
1224 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1225 infodir='${datarootdir}/info'
1226 htmldir='${docdir}'
1227 dvidir='${docdir}'
1228 pdfdir='${docdir}'
1229 psdir='${docdir}'
1230 libdir='${exec_prefix}/lib'
1231 localedir='${datarootdir}/locale'
1232 mandir='${datarootdir}/man'
1233
1234 ac_prev=
1235 ac_dashdash=
1236 for ac_option
1237 do
1238 # If the previous option needs an argument, assign it.
1239 if test -n "$ac_prev"; then
1240 eval $ac_prev=\$ac_option
1241 ac_prev=
1242 continue
1243 fi
1244
1245 case $ac_option in
1246 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1247 *=) ac_optarg= ;;
1248 *) ac_optarg=yes ;;
1249 esac
1250
1251 case $ac_dashdash$ac_option in
1252 --)
1253 ac_dashdash=yes ;;
1254
1255 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1256 ac_prev=bindir ;;
1257 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1258 bindir=$ac_optarg ;;
1259
1260 -build | --build | --buil | --bui | --bu)
1261 ac_prev=build_alias ;;
1262 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1263 build_alias=$ac_optarg ;;
1264
1265 -cache-file | --cache-file | --cache-fil | --cache-fi \
1266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1267 ac_prev=cache_file ;;
1268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1270 cache_file=$ac_optarg ;;
1271
1272 --config-cache | -C)
1273 cache_file=config.cache ;;
1274
1275 -datadir | --datadir | --datadi | --datad)
1276 ac_prev=datadir ;;
1277 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1278 datadir=$ac_optarg ;;
1279
1280 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1281 | --dataroo | --dataro | --datar)
1282 ac_prev=datarootdir ;;
1283 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1284 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1285 datarootdir=$ac_optarg ;;
1286
1287 -disable-* | --disable-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1295 *"
1296 "enable_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval enable_$ac_useropt=no ;;
1302
1303 -docdir | --docdir | --docdi | --doc | --do)
1304 ac_prev=docdir ;;
1305 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1306 docdir=$ac_optarg ;;
1307
1308 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1309 ac_prev=dvidir ;;
1310 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1311 dvidir=$ac_optarg ;;
1312
1313 -enable-* | --enable-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1321 *"
1322 "enable_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval enable_$ac_useropt=\$ac_optarg ;;
1328
1329 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1330 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1331 | --exec | --exe | --ex)
1332 ac_prev=exec_prefix ;;
1333 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1334 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1335 | --exec=* | --exe=* | --ex=*)
1336 exec_prefix=$ac_optarg ;;
1337
1338 -gas | --gas | --ga | --g)
1339 # Obsolete; use --with-gas.
1340 with_gas=yes ;;
1341
1342 -help | --help | --hel | --he | -h)
1343 ac_init_help=long ;;
1344 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1345 ac_init_help=recursive ;;
1346 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1347 ac_init_help=short ;;
1348
1349 -host | --host | --hos | --ho)
1350 ac_prev=host_alias ;;
1351 -host=* | --host=* | --hos=* | --ho=*)
1352 host_alias=$ac_optarg ;;
1353
1354 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1355 ac_prev=htmldir ;;
1356 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1357 | --ht=*)
1358 htmldir=$ac_optarg ;;
1359
1360 -includedir | --includedir | --includedi | --included | --include \
1361 | --includ | --inclu | --incl | --inc)
1362 ac_prev=includedir ;;
1363 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1364 | --includ=* | --inclu=* | --incl=* | --inc=*)
1365 includedir=$ac_optarg ;;
1366
1367 -infodir | --infodir | --infodi | --infod | --info | --inf)
1368 ac_prev=infodir ;;
1369 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1370 infodir=$ac_optarg ;;
1371
1372 -libdir | --libdir | --libdi | --libd)
1373 ac_prev=libdir ;;
1374 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1375 libdir=$ac_optarg ;;
1376
1377 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1378 | --libexe | --libex | --libe)
1379 ac_prev=libexecdir ;;
1380 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1381 | --libexe=* | --libex=* | --libe=*)
1382 libexecdir=$ac_optarg ;;
1383
1384 -localedir | --localedir | --localedi | --localed | --locale)
1385 ac_prev=localedir ;;
1386 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1387 localedir=$ac_optarg ;;
1388
1389 -localstatedir | --localstatedir | --localstatedi | --localstated \
1390 | --localstate | --localstat | --localsta | --localst | --locals)
1391 ac_prev=localstatedir ;;
1392 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1393 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1394 localstatedir=$ac_optarg ;;
1395
1396 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1397 ac_prev=mandir ;;
1398 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1399 mandir=$ac_optarg ;;
1400
1401 -nfp | --nfp | --nf)
1402 # Obsolete; use --without-fp.
1403 with_fp=no ;;
1404
1405 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1406 | --no-cr | --no-c | -n)
1407 no_create=yes ;;
1408
1409 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1410 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1411 no_recursion=yes ;;
1412
1413 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1414 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1415 | --oldin | --oldi | --old | --ol | --o)
1416 ac_prev=oldincludedir ;;
1417 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1418 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1419 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1420 oldincludedir=$ac_optarg ;;
1421
1422 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1423 ac_prev=prefix ;;
1424 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1425 prefix=$ac_optarg ;;
1426
1427 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1428 | --program-pre | --program-pr | --program-p)
1429 ac_prev=program_prefix ;;
1430 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1431 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1432 program_prefix=$ac_optarg ;;
1433
1434 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1435 | --program-suf | --program-su | --program-s)
1436 ac_prev=program_suffix ;;
1437 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1438 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1439 program_suffix=$ac_optarg ;;
1440
1441 -program-transform-name | --program-transform-name \
1442 | --program-transform-nam | --program-transform-na \
1443 | --program-transform-n | --program-transform- \
1444 | --program-transform | --program-transfor \
1445 | --program-transfo | --program-transf \
1446 | --program-trans | --program-tran \
1447 | --progr-tra | --program-tr | --program-t)
1448 ac_prev=program_transform_name ;;
1449 -program-transform-name=* | --program-transform-name=* \
1450 | --program-transform-nam=* | --program-transform-na=* \
1451 | --program-transform-n=* | --program-transform-=* \
1452 | --program-transform=* | --program-transfor=* \
1453 | --program-transfo=* | --program-transf=* \
1454 | --program-trans=* | --program-tran=* \
1455 | --progr-tra=* | --program-tr=* | --program-t=*)
1456 program_transform_name=$ac_optarg ;;
1457
1458 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1459 ac_prev=pdfdir ;;
1460 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1461 pdfdir=$ac_optarg ;;
1462
1463 -psdir | --psdir | --psdi | --psd | --ps)
1464 ac_prev=psdir ;;
1465 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1466 psdir=$ac_optarg ;;
1467
1468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1469 | -silent | --silent | --silen | --sile | --sil)
1470 silent=yes ;;
1471
1472 -runstatedir | --runstatedir | --runstatedi | --runstated \
1473 | --runstate | --runstat | --runsta | --runst | --runs \
1474 | --run | --ru | --r)
1475 ac_prev=runstatedir ;;
1476 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1477 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1478 | --run=* | --ru=* | --r=*)
1479 runstatedir=$ac_optarg ;;
1480
1481 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1482 ac_prev=sbindir ;;
1483 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1484 | --sbi=* | --sb=*)
1485 sbindir=$ac_optarg ;;
1486
1487 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1488 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1489 | --sharedst | --shareds | --shared | --share | --shar \
1490 | --sha | --sh)
1491 ac_prev=sharedstatedir ;;
1492 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1493 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1494 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1495 | --sha=* | --sh=*)
1496 sharedstatedir=$ac_optarg ;;
1497
1498 -site | --site | --sit)
1499 ac_prev=site ;;
1500 -site=* | --site=* | --sit=*)
1501 site=$ac_optarg ;;
1502
1503 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1504 ac_prev=srcdir ;;
1505 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1506 srcdir=$ac_optarg ;;
1507
1508 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1509 | --syscon | --sysco | --sysc | --sys | --sy)
1510 ac_prev=sysconfdir ;;
1511 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1512 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1513 sysconfdir=$ac_optarg ;;
1514
1515 -target | --target | --targe | --targ | --tar | --ta | --t)
1516 ac_prev=target_alias ;;
1517 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1518 target_alias=$ac_optarg ;;
1519
1520 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1521 verbose=yes ;;
1522
1523 -version | --version | --versio | --versi | --vers | -V)
1524 ac_init_version=: ;;
1525
1526 -with-* | --with-*)
1527 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1528 # Reject names that are not valid shell variable names.
1529 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1530 as_fn_error $? "invalid package name: \`$ac_useropt'"
1531 ac_useropt_orig=$ac_useropt
1532 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1533 case $ac_user_opts in
1534 *"
1535 "with_$ac_useropt"
1536 "*) ;;
1537 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1538 ac_unrecognized_sep=', ';;
1539 esac
1540 eval with_$ac_useropt=\$ac_optarg ;;
1541
1542 -without-* | --without-*)
1543 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1544 # Reject names that are not valid shell variable names.
1545 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1546 as_fn_error $? "invalid package name: \`$ac_useropt'"
1547 ac_useropt_orig=$ac_useropt
1548 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1549 case $ac_user_opts in
1550 *"
1551 "with_$ac_useropt"
1552 "*) ;;
1553 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1554 ac_unrecognized_sep=', ';;
1555 esac
1556 eval with_$ac_useropt=no ;;
1557
1558 --x)
1559 # Obsolete; use --with-x.
1560 with_x=yes ;;
1561
1562 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1563 | --x-incl | --x-inc | --x-in | --x-i)
1564 ac_prev=x_includes ;;
1565 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1566 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1567 x_includes=$ac_optarg ;;
1568
1569 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1570 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1571 ac_prev=x_libraries ;;
1572 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1573 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1574 x_libraries=$ac_optarg ;;
1575
1576 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1577 Try \`$0 --help' for more information"
1578 ;;
1579
1580 *=*)
1581 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1582 # Reject names that are not valid shell variable names.
1583 case $ac_envvar in #(
1584 '' | [0-9]* | *[!_$as_cr_alnum]* )
1585 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1586 esac
1587 eval $ac_envvar=\$ac_optarg
1588 export $ac_envvar ;;
1589
1590 *)
1591 # FIXME: should be removed in autoconf 3.0.
1592 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1593 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1594 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1595 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1596 ;;
1597
1598 esac
1599 done
1600
1601 if test -n "$ac_prev"; then
1602 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1603 as_fn_error $? "missing argument to $ac_option"
1604 fi
1605
1606 if test -n "$ac_unrecognized_opts"; then
1607 case $enable_option_checking in
1608 no) ;;
1609 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1610 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1611 esac
1612 fi
1613
1614 # Check all directory arguments for consistency.
1615 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1616 datadir sysconfdir sharedstatedir localstatedir includedir \
1617 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1618 libdir localedir mandir runstatedir
1619 do
1620 eval ac_val=\$$ac_var
1621 # Remove trailing slashes.
1622 case $ac_val in
1623 */ )
1624 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1625 eval $ac_var=\$ac_val;;
1626 esac
1627 # Be sure to have absolute directory names.
1628 case $ac_val in
1629 [\\/$]* | ?:[\\/]* ) continue;;
1630 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1631 esac
1632 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1633 done
1634
1635 # There might be people who depend on the old broken behavior: `$host'
1636 # used to hold the argument of --host etc.
1637 # FIXME: To remove some day.
1638 build=$build_alias
1639 host=$host_alias
1640 target=$target_alias
1641
1642 # FIXME: To remove some day.
1643 if test "x$host_alias" != x; then
1644 if test "x$build_alias" = x; then
1645 cross_compiling=maybe
1646 elif test "x$build_alias" != "x$host_alias"; then
1647 cross_compiling=yes
1648 fi
1649 fi
1650
1651 ac_tool_prefix=
1652 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1653
1654 test "$silent" = yes && exec 6>/dev/null
1655
1656
1657 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1658 ac_ls_di=`ls -di .` &&
1659 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1660 as_fn_error $? "working directory cannot be determined"
1661 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1662 as_fn_error $? "pwd does not report name of working directory"
1663
1664
1665 # Find the source files, if location was not specified.
1666 if test -z "$srcdir"; then
1667 ac_srcdir_defaulted=yes
1668 # Try the directory containing this script, then the parent directory.
1669 ac_confdir=`$as_dirname -- "$as_myself" ||
1670 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1671 X"$as_myself" : 'X\(//\)[^/]' \| \
1672 X"$as_myself" : 'X\(//\)$' \| \
1673 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1674 printf "%s\n" X"$as_myself" |
1675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1676 s//\1/
1677 q
1678 }
1679 /^X\(\/\/\)[^/].*/{
1680 s//\1/
1681 q
1682 }
1683 /^X\(\/\/\)$/{
1684 s//\1/
1685 q
1686 }
1687 /^X\(\/\).*/{
1688 s//\1/
1689 q
1690 }
1691 s/.*/./; q'`
1692 srcdir=$ac_confdir
1693 if test ! -r "$srcdir/$ac_unique_file"; then
1694 srcdir=..
1695 fi
1696 else
1697 ac_srcdir_defaulted=no
1698 fi
1699 if test ! -r "$srcdir/$ac_unique_file"; then
1700 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1701 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1702 fi
1703 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1704 ac_abs_confdir=`(
1705 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1706 pwd)`
1707 # When building in place, set srcdir=.
1708 if test "$ac_abs_confdir" = "$ac_pwd"; then
1709 srcdir=.
1710 fi
1711 # Remove unnecessary trailing slashes from srcdir.
1712 # Double slashes in file names in object file debugging info
1713 # mess up M-x gdb in Emacs.
1714 case $srcdir in
1715 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1716 esac
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1719 eval ac_env_${ac_var}_value=\$${ac_var}
1720 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1721 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1722 done
1723
1724 #
1725 # Report the --help message.
1726 #
1727 if test "$ac_init_help" = "long"; then
1728 # Omit some internal or obsolete options to make the list less imposing.
1729 # This message is too long to be a string in the A/UX 3.1 sh.
1730 cat <<_ACEOF
1731 \`configure' configures python 3.13 to adapt to many kinds of systems.
1732
1733 Usage: $0 [OPTION]... [VAR=VALUE]...
1734
1735 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1736 VAR=VALUE. See below for descriptions of some of the useful variables.
1737
1738 Defaults for the options are specified in brackets.
1739
1740 Configuration:
1741 -h, --help display this help and exit
1742 --help=short display options specific to this package
1743 --help=recursive display the short help of all the included packages
1744 -V, --version display version information and exit
1745 -q, --quiet, --silent do not print \`checking ...' messages
1746 --cache-file=FILE cache test results in FILE [disabled]
1747 -C, --config-cache alias for \`--cache-file=config.cache'
1748 -n, --no-create do not create output files
1749 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1750
1751 Installation directories:
1752 --prefix=PREFIX install architecture-independent files in PREFIX
1753 [$ac_default_prefix]
1754 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1755 [PREFIX]
1756
1757 By default, \`make install' will install all the files in
1758 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1759 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1760 for instance \`--prefix=\$HOME'.
1761
1762 For better control, use the options below.
1763
1764 Fine tuning of the installation directories:
1765 --bindir=DIR user executables [EPREFIX/bin]
1766 --sbindir=DIR system admin executables [EPREFIX/sbin]
1767 --libexecdir=DIR program executables [EPREFIX/libexec]
1768 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1769 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1770 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1771 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1772 --libdir=DIR object code libraries [EPREFIX/lib]
1773 --includedir=DIR C header files [PREFIX/include]
1774 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1775 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1776 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1777 --infodir=DIR info documentation [DATAROOTDIR/info]
1778 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1779 --mandir=DIR man documentation [DATAROOTDIR/man]
1780 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1781 --htmldir=DIR html documentation [DOCDIR]
1782 --dvidir=DIR dvi documentation [DOCDIR]
1783 --pdfdir=DIR pdf documentation [DOCDIR]
1784 --psdir=DIR ps documentation [DOCDIR]
1785 _ACEOF
1786
1787 cat <<\_ACEOF
1788
1789 System types:
1790 --build=BUILD configure for building on BUILD [guessed]
1791 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1792 _ACEOF
1793 fi
1794
1795 if test -n "$ac_init_help"; then
1796 case $ac_init_help in
1797 short | recursive ) echo "Configuration of python 3.13:";;
1798 esac
1799 cat <<\_ACEOF
1800
1801 Optional Features:
1802 --disable-option-checking ignore unrecognized --enable/--with options
1803 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1804 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1805 --enable-universalsdk[=SDKDIR]
1806 create a universal binary build. SDKDIR specifies
1807 which macOS SDK should be used to perform the build,
1808 see Mac/README.rst. (default is no)
1809 --enable-framework[=INSTALLDIR]
1810 create a Python.framework rather than a traditional
1811 Unix install. optional INSTALLDIR specifies the
1812 installation path. see Mac/README.rst (default is
1813 no)
1814 --enable-wasm-dynamic-linking
1815 Enable dynamic linking support for WebAssembly
1816 (default is no)
1817 --enable-wasm-pthreads Enable pthread emulation for WebAssembly (default is
1818 no)
1819 --enable-shared enable building a shared Python library (default is
1820 no)
1821 --enable-profiling enable C-level code profiling with gprof (default is
1822 no)
1823 --disable-gil enable experimental support for running without the
1824 GIL (default is no)
1825 --enable-pystats enable internal statistics gathering (default is no)
1826 --enable-experimental-jit[=no|yes|yes-off|interpreter]
1827 build the experimental just-in-time compiler
1828 (default is no)
1829 --enable-optimizations enable expensive, stable optimizations (PGO, etc.)
1830 (default is no)
1831 --enable-bolt enable usage of the llvm-bolt post-link optimizer
1832 (default is no)
1833 --enable-loadable-sqlite-extensions
1834 support loadable extensions in the sqlite3 module,
1835 see Doc/library/sqlite3.rst (default is no)
1836 --enable-ipv6 enable ipv6 (with ipv4) support, see
1837 Doc/library/socket.rst (default is yes if supported)
1838 --enable-big-digits[=15|30]
1839 use big digits (30 or 15 bits) for Python longs
1840 (default is 30)]
1841 --disable-test-modules don't build nor install test modules
1842
1843 Optional Packages:
1844 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1845 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1846 --with-build-python=python3.13
1847 path to build python binary for cross compiling
1848 (default: _bootstrap_python or python3.13)
1849 --with-pkg-config=[yes|no|check]
1850 use pkg-config to detect build options (default is
1851 check)
1852 --with-universal-archs=ARCH
1853 specify the kind of macOS universal binary that
1854 should be created. This option is only valid when
1855 --enable-universalsdk is set; options are:
1856 ("universal2", "intel-64", "intel-32", "intel",
1857 "32-bit", "64-bit", "3-way", or "all") see
1858 Mac/README.rst
1859 --with-framework-name=FRAMEWORK
1860 specify the name for the python framework on macOS
1861 only valid when --enable-framework is set. see
1862 Mac/README.rst (default is 'Python')
1863 --with-app-store-compliance=[PATCH-FILE]
1864 Enable any patches required for compiliance with app
1865 stores. Optional PATCH-FILE specifies the custom
1866 patch to apply.
1867 --with-emscripten-target=[browser|node]
1868 Emscripten platform
1869 --with-suffix=SUFFIX set executable suffix to SUFFIX (default is empty,
1870 yes is mapped to '.exe')
1871 --without-static-libpython
1872 do not build libpythonMAJOR.MINOR.a and do not
1873 install python.o (default is yes)
1874 --with-pydebug build with Py_DEBUG defined (default is no)
1875 --with-trace-refs enable tracing references for debugging purpose
1876 (default is no)
1877 --with-assertions build with C assertions enabled (default is no)
1878 --with-lto=[full|thin|no|yes]
1879 enable Link-Time-Optimization in any build (default
1880 is no)
1881 --with-strict-overflow if 'yes', add -fstrict-overflow to CFLAGS, else add
1882 -fno-strict-overflow (default is no)
1883 --with-dsymutil link debug information into final executable with
1884 dsymutil in macOS (default is no)
1885 --with-address-sanitizer
1886 enable AddressSanitizer memory error detector,
1887 'asan' (default is no)
1888 --with-memory-sanitizer enable MemorySanitizer allocation error detector,
1889 'msan' (default is no)
1890 --with-undefined-behavior-sanitizer
1891 enable UndefinedBehaviorSanitizer undefined
1892 behaviour detector, 'ubsan' (default is no)
1893 --with-thread-sanitizer enable ThreadSanitizer data race detector, 'tsan'
1894 (default is no)
1895 --with-hash-algorithm=[fnv|siphash13|siphash24]
1896 select hash algorithm for use in Python/pyhash.c
1897 (default is SipHash13)
1898 --with-tzpath=<list of absolute paths separated by pathsep>
1899 Select the default time zone search path for
1900 zoneinfo.TZPATH
1901 --with-libs='lib1 ...' link against additional libs (default is no)
1902 --with-system-expat build pyexpat module using an installed expat
1903 library, see Doc/library/pyexpat.rst (default is no)
1904 --with-system-libmpdec build _decimal module using an installed mpdecimal
1905 library, see Doc/library/decimal.rst (default is
1906 yes)
1907 --with-decimal-contextvar
1908 build _decimal module using a coroutine-local rather
1909 than a thread-local context (default is yes)
1910 --with-dbmliborder=db1:db2:...
1911 override order to check db backends for dbm; a valid
1912 value is a colon separated string with the backend
1913 names `ndbm', `gdbm' and `bdb'.
1914 --with-doc-strings enable documentation strings (default is yes)
1915 --with-mimalloc build with mimalloc memory allocator (default is yes
1916 if C11 stdatomic.h is available.)
1917 --with-pymalloc enable specialized mallocs (default is yes)
1918 --with-freelists enable object freelists (default is yes)
1919 --with-c-locale-coercion
1920 enable C locale coercion to a UTF-8 based locale
1921 (default is yes)
1922 --with-valgrind enable Valgrind support (default is no)
1923 --with-dtrace enable DTrace support (default is no)
1924 --with-libm=STRING override libm math library to STRING (default is
1925 system-dependent)
1926 --with-libc=STRING override libc C library to STRING (default is
1927 system-dependent)
1928 --with-platlibdir=DIRNAME
1929 Python library directory name (default is "lib")
1930 --with-wheel-pkg-dir=PATH
1931 Directory of wheel packages used by ensurepip
1932 (default: none)
1933 --with(out)-readline[=editline|readline|no]
1934 use libedit for backend or disable readline module
1935 --with-computed-gotos enable computed gotos in evaluation loop (enabled by
1936 default on supported compilers)
1937 --with-ensurepip[=install|upgrade|no]
1938 "install" or "upgrade" using bundled pip (default is
1939 upgrade)
1940 --with-openssl=DIR root of the OpenSSL directory
1941 --with-openssl-rpath=[DIR|auto|no]
1942 Set runtime library directory (rpath) for OpenSSL
1943 libraries, no (default): don't set rpath, auto:
1944 auto-detect rpath from --with-openssl and
1945 pkg-config, DIR: set an explicit rpath
1946 --with-ssl-default-suites=[python|openssl|STRING]
1947 override default cipher suites string, python: use
1948 Python's preferred selection (default), openssl:
1949 leave OpenSSL's defaults untouched, STRING: use a
1950 custom string, python and STRING also set TLS 1.2 as
1951 minimum TLS version
1952 --with-builtin-hashlib-hashes=md5,sha1,sha2,sha3,blake2
1953 builtin hash modules, md5, sha1, sha2, sha3 (with
1954 shake), blake2
1955
1956 Some influential environment variables:
1957 PKG_CONFIG path to pkg-config utility
1958 PKG_CONFIG_PATH
1959 directories to add to pkg-config's search path
1960 PKG_CONFIG_LIBDIR
1961 path overriding pkg-config's built-in search path
1962 MACHDEP name for machine-dependent library files
1963 CC C compiler command
1964 CFLAGS C compiler flags
1965 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1966 nonstandard directory <lib dir>
1967 LIBS libraries to pass to the linker, e.g. -l<library>
1968 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1969 you have headers in a nonstandard directory <include dir>
1970 CPP C preprocessor
1971 HOSTRUNNER Program to run CPython for the host platform
1972 PROFILE_TASK
1973 Python args for PGO generation task
1974 BOLT_COMMON_FLAGS
1975 Common arguments to llvm-bolt when instrumenting and applying
1976 BOLT_INSTRUMENT_FLAGS
1977 Arguments to llvm-bolt when instrumenting binaries
1978 BOLT_APPLY_FLAGS
1979 Arguments to llvm-bolt when creating a BOLT optimized binary
1980 LIBUUID_CFLAGS
1981 C compiler flags for LIBUUID, overriding pkg-config
1982 LIBUUID_LIBS
1983 linker flags for LIBUUID, overriding pkg-config
1984 LIBFFI_CFLAGS
1985 C compiler flags for LIBFFI, overriding pkg-config
1986 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1987 LIBMPDEC_CFLAGS
1988 C compiler flags for LIBMPDEC, overriding pkg-config
1989 LIBMPDEC_LIBS
1990 linker flags for LIBMPDEC, overriding pkg-config
1991 LIBSQLITE3_CFLAGS
1992 C compiler flags for LIBSQLITE3, overriding pkg-config
1993 LIBSQLITE3_LIBS
1994 linker flags for LIBSQLITE3, overriding pkg-config
1995 TCLTK_CFLAGS
1996 C compiler flags for TCLTK, overriding pkg-config
1997 TCLTK_LIBS linker flags for TCLTK, overriding pkg-config
1998 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1999 X11_LIBS linker flags for X11, overriding pkg-config
2000 GDBM_CFLAGS C compiler flags for gdbm
2001 GDBM_LIBS additional linker flags for gdbm
2002 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2003 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
2004 BZIP2_CFLAGS
2005 C compiler flags for BZIP2, overriding pkg-config
2006 BZIP2_LIBS linker flags for BZIP2, overriding pkg-config
2007 LIBLZMA_CFLAGS
2008 C compiler flags for LIBLZMA, overriding pkg-config
2009 LIBLZMA_LIBS
2010 linker flags for LIBLZMA, overriding pkg-config
2011 LIBREADLINE_CFLAGS
2012 C compiler flags for LIBREADLINE, overriding pkg-config
2013 LIBREADLINE_LIBS
2014 linker flags for LIBREADLINE, overriding pkg-config
2015 LIBEDIT_CFLAGS
2016 C compiler flags for LIBEDIT, overriding pkg-config
2017 LIBEDIT_LIBS
2018 linker flags for LIBEDIT, overriding pkg-config
2019 CURSES_CFLAGS
2020 C compiler flags for CURSES, overriding pkg-config
2021 CURSES_LIBS linker flags for CURSES, overriding pkg-config
2022 PANEL_CFLAGS
2023 C compiler flags for PANEL, overriding pkg-config
2024 PANEL_LIBS linker flags for PANEL, overriding pkg-config
2025 LIBB2_CFLAGS
2026 C compiler flags for LIBB2, overriding pkg-config
2027 LIBB2_LIBS linker flags for LIBB2, overriding pkg-config
2028
2029 Use these variables to override the choices made by `configure' or to help
2030 it to find libraries and programs with nonstandard names/locations.
2031
2032 Report bugs to <https://github.com/python/cpython/issues/>.
2033 _ACEOF
2034 ac_status=$?
2035 fi
2036
2037 if test "$ac_init_help" = "recursive"; then
2038 # If there are subdirs, report their specific --help.
2039 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2040 test -d "$ac_dir" ||
2041 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2042 continue
2043 ac_builddir=.
2044
2045 case "$ac_dir" in
2046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2047 *)
2048 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2049 # A ".." for each directory in $ac_dir_suffix.
2050 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2051 case $ac_top_builddir_sub in
2052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2054 esac ;;
2055 esac
2056 ac_abs_top_builddir=$ac_pwd
2057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2058 # for backward compatibility:
2059 ac_top_builddir=$ac_top_build_prefix
2060
2061 case $srcdir in
2062 .) # We are building in place.
2063 ac_srcdir=.
2064 ac_top_srcdir=$ac_top_builddir_sub
2065 ac_abs_top_srcdir=$ac_pwd ;;
2066 [\\/]* | ?:[\\/]* ) # Absolute name.
2067 ac_srcdir=$srcdir$ac_dir_suffix;
2068 ac_top_srcdir=$srcdir
2069 ac_abs_top_srcdir=$srcdir ;;
2070 *) # Relative name.
2071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2072 ac_top_srcdir=$ac_top_build_prefix$srcdir
2073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2074 esac
2075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2076
2077 cd "$ac_dir" || { ac_status=$?; continue; }
2078 # Check for configure.gnu first; this name is used for a wrapper for
2079 # Metaconfig's "Configure" on case-insensitive file systems.
2080 if test -f "$ac_srcdir/configure.gnu"; then
2081 echo &&
2082 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2083 elif test -f "$ac_srcdir/configure"; then
2084 echo &&
2085 $SHELL "$ac_srcdir/configure" --help=recursive
2086 else
2087 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2088 fi || ac_status=$?
2089 cd "$ac_pwd" || { ac_status=$?; break; }
2090 done
2091 fi
2092
2093 test -n "$ac_init_help" && exit $ac_status
2094 if $ac_init_version; then
2095 cat <<\_ACEOF
2096 python configure 3.13
2097 generated by GNU Autoconf 2.71
2098
2099 Copyright (C) 2021 Free Software Foundation, Inc.
2100 This configure script is free software; the Free Software Foundation
2101 gives unlimited permission to copy, distribute and modify it.
2102 _ACEOF
2103 exit
2104 fi
2105
2106 ## ------------------------ ##
2107 ## Autoconf initialization. ##
2108 ## ------------------------ ##
2109
2110 # ac_fn_c_try_compile LINENO
2111 # --------------------------
2112 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2113 ac_fn_c_try_compile ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 rm -f conftest.$ac_objext conftest.beam
2117 if { { ac_try="$ac_compile"
2118 case "(($ac_try" in
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2121 esac
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 printf "%s\n" "$ac_try_echo"; } >&5
2124 (eval "$ac_compile") 2>conftest.err
2125 ac_status=$?
2126 if test -s conftest.err; then
2127 grep -v '^ *+' conftest.err >conftest.er1
2128 cat conftest.er1 >&5
2129 mv -f conftest.er1 conftest.err
2130 fi
2131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2132 test $ac_status = 0; } && {
2133 test -z "$ac_c_werror_flag" ||
2134 test ! -s conftest.err
2135 } && test -s conftest.$ac_objext
2136 then :
2137 ac_retval=0
2138 else $as_nop
2139 printf "%s\n" "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=1
2143 fi
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 as_fn_set_status $ac_retval
2146
2147 } # ac_fn_c_try_compile
2148
2149 # ac_fn_c_try_cpp LINENO
2150 # ----------------------
2151 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_c_try_cpp ()
2153 {
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if { { ac_try="$ac_cpp conftest.$ac_ext"
2156 case "(($ac_try" in
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2159 esac
2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 printf "%s\n" "$ac_try_echo"; } >&5
2162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2163 ac_status=$?
2164 if test -s conftest.err; then
2165 grep -v '^ *+' conftest.err >conftest.er1
2166 cat conftest.er1 >&5
2167 mv -f conftest.er1 conftest.err
2168 fi
2169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } > conftest.i && {
2171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2172 test ! -s conftest.err
2173 }
2174 then :
2175 ac_retval=0
2176 else $as_nop
2177 printf "%s\n" "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2179
2180 ac_retval=1
2181 fi
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 as_fn_set_status $ac_retval
2184
2185 } # ac_fn_c_try_cpp
2186
2187 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2188 # -------------------------------------------------------
2189 # Tests whether HEADER exists and can be compiled using the include files in
2190 # INCLUDES, setting the cache variable VAR accordingly.
2191 ac_fn_c_check_header_compile ()
2192 {
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195 printf %s "checking for $2... " >&6; }
2196 if eval test \${$3+y}
2197 then :
2198 printf %s "(cached) " >&6
2199 else $as_nop
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 $4
2203 #include <$2>
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"
2206 then :
2207 eval "$3=yes"
2208 else $as_nop
2209 eval "$3=no"
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2212 fi
2213 eval ac_res=\$$3
2214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 printf "%s\n" "$ac_res" >&6; }
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217
2218 } # ac_fn_c_check_header_compile
2219
2220 # ac_fn_c_try_link LINENO
2221 # -----------------------
2222 # Try to link conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_c_try_link ()
2224 {
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2227 if { { ac_try="$ac_link"
2228 case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 printf "%s\n" "$ac_try_echo"; } >&5
2234 (eval "$ac_link") 2>conftest.err
2235 ac_status=$?
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2240 fi
2241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && {
2243 test -z "$ac_c_werror_flag" ||
2244 test ! -s conftest.err
2245 } && test -s conftest$ac_exeext && {
2246 test "$cross_compiling" = yes ||
2247 test -x conftest$ac_exeext
2248 }
2249 then :
2250 ac_retval=0
2251 else $as_nop
2252 printf "%s\n" "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 ac_retval=1
2256 fi
2257 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2258 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2259 # interfere with the next link command; also delete a directory that is
2260 # left behind by Apple's compiler. We do this before executing the actions.
2261 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2264
2265 } # ac_fn_c_try_link
2266
2267 # ac_fn_c_try_run LINENO
2268 # ----------------------
2269 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2270 # executables *can* be run.
2271 ac_fn_c_try_run ()
2272 {
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 if { { ac_try="$ac_link"
2275 case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 printf "%s\n" "$ac_try_echo"; } >&5
2281 (eval "$ac_link") 2>&5
2282 ac_status=$?
2283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2285 { { case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 printf "%s\n" "$ac_try_echo"; } >&5
2291 (eval "$ac_try") 2>&5
2292 ac_status=$?
2293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; }; }
2295 then :
2296 ac_retval=0
2297 else $as_nop
2298 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2299 printf "%s\n" "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 ac_retval=$ac_status
2303 fi
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 as_fn_set_status $ac_retval
2307
2308 } # ac_fn_c_try_run
2309
2310 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2311 # -------------------------------------------
2312 # Tests whether TYPE exists after having included INCLUDES, setting cache
2313 # variable VAR accordingly.
2314 ac_fn_c_check_type ()
2315 {
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318 printf %s "checking for $2... " >&6; }
2319 if eval test \${$3+y}
2320 then :
2321 printf %s "(cached) " >&6
2322 else $as_nop
2323 eval "$3=no"
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $4
2327 int
2328 main (void)
2329 {
2330 if (sizeof ($2))
2331 return 0;
2332 ;
2333 return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"
2337 then :
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2340 $4
2341 int
2342 main (void)
2343 {
2344 if (sizeof (($2)))
2345 return 0;
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"
2351 then :
2352
2353 else $as_nop
2354 eval "$3=yes"
2355 fi
2356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2359 fi
2360 eval ac_res=\$$3
2361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 printf "%s\n" "$ac_res" >&6; }
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364
2365 } # ac_fn_c_check_type
2366
2367 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2368 # --------------------------------------------
2369 # Tries to find the compile-time value of EXPR in a program that includes
2370 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2371 # computed
2372 ac_fn_c_compute_int ()
2373 {
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if test "$cross_compiling" = yes; then
2376 # Depending upon the size, compute the lo and hi bounds.
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2379 $4
2380 int
2381 main (void)
2382 {
2383 static int test_array [1 - 2 * !(($2) >= 0)];
2384 test_array [0] = 0;
2385 return test_array [0];
2386
2387 ;
2388 return 0;
2389 }
2390 _ACEOF
2391 if ac_fn_c_try_compile "$LINENO"
2392 then :
2393 ac_lo=0 ac_mid=0
2394 while :; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $4
2398 int
2399 main (void)
2400 {
2401 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2402 test_array [0] = 0;
2403 return test_array [0];
2404
2405 ;
2406 return 0;
2407 }
2408 _ACEOF
2409 if ac_fn_c_try_compile "$LINENO"
2410 then :
2411 ac_hi=$ac_mid; break
2412 else $as_nop
2413 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2414 if test $ac_lo -le $ac_mid; then
2415 ac_lo= ac_hi=
2416 break
2417 fi
2418 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2421 done
2422 else $as_nop
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2425 $4
2426 int
2427 main (void)
2428 {
2429 static int test_array [1 - 2 * !(($2) < 0)];
2430 test_array [0] = 0;
2431 return test_array [0];
2432
2433 ;
2434 return 0;
2435 }
2436 _ACEOF
2437 if ac_fn_c_try_compile "$LINENO"
2438 then :
2439 ac_hi=-1 ac_mid=-1
2440 while :; do
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2443 $4
2444 int
2445 main (void)
2446 {
2447 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2448 test_array [0] = 0;
2449 return test_array [0];
2450
2451 ;
2452 return 0;
2453 }
2454 _ACEOF
2455 if ac_fn_c_try_compile "$LINENO"
2456 then :
2457 ac_lo=$ac_mid; break
2458 else $as_nop
2459 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2460 if test $ac_mid -le $ac_hi; then
2461 ac_lo= ac_hi=
2462 break
2463 fi
2464 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2465 fi
2466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2467 done
2468 else $as_nop
2469 ac_lo= ac_hi=
2470 fi
2471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2472 fi
2473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2474 # Binary search between lo and hi bounds.
2475 while test "x$ac_lo" != "x$ac_hi"; do
2476 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2479 $4
2480 int
2481 main (void)
2482 {
2483 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2484 test_array [0] = 0;
2485 return test_array [0];
2486
2487 ;
2488 return 0;
2489 }
2490 _ACEOF
2491 if ac_fn_c_try_compile "$LINENO"
2492 then :
2493 ac_hi=$ac_mid
2494 else $as_nop
2495 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2496 fi
2497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2498 done
2499 case $ac_lo in #((
2500 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2501 '') ac_retval=1 ;;
2502 esac
2503 else
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2506 $4
2507 static long int longval (void) { return $2; }
2508 static unsigned long int ulongval (void) { return $2; }
2509 #include <stdio.h>
2510 #include <stdlib.h>
2511 int
2512 main (void)
2513 {
2514
2515 FILE *f = fopen ("conftest.val", "w");
2516 if (! f)
2517 return 1;
2518 if (($2) < 0)
2519 {
2520 long int i = longval ();
2521 if (i != ($2))
2522 return 1;
2523 fprintf (f, "%ld", i);
2524 }
2525 else
2526 {
2527 unsigned long int i = ulongval ();
2528 if (i != ($2))
2529 return 1;
2530 fprintf (f, "%lu", i);
2531 }
2532 /* Do not output a trailing newline, as this causes \r\n confusion
2533 on some platforms. */
2534 return ferror (f) || fclose (f) != 0;
2535
2536 ;
2537 return 0;
2538 }
2539 _ACEOF
2540 if ac_fn_c_try_run "$LINENO"
2541 then :
2542 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2543 else $as_nop
2544 ac_retval=1
2545 fi
2546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2547 conftest.$ac_objext conftest.beam conftest.$ac_ext
2548 rm -f conftest.val
2549
2550 fi
2551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2552 as_fn_set_status $ac_retval
2553
2554 } # ac_fn_c_compute_int
2555
2556 # ac_fn_c_check_func LINENO FUNC VAR
2557 # ----------------------------------
2558 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2559 ac_fn_c_check_func ()
2560 {
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 printf %s "checking for $2... " >&6; }
2564 if eval test \${$3+y}
2565 then :
2566 printf %s "(cached) " >&6
2567 else $as_nop
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2572 #define $2 innocuous_$2
2573
2574 /* System header to define __stub macros and hopefully few prototypes,
2575 which can conflict with char $2 (); below. */
2576
2577 #include <limits.h>
2578 #undef $2
2579
2580 /* Override any GCC internal prototype to avoid an error.
2581 Use char because int might match the return type of a GCC
2582 builtin and then its argument prototype would still apply. */
2583 #ifdef __cplusplus
2584 extern "C"
2585 #endif
2586 char $2 ();
2587 /* The GNU C library defines this for functions which it implements
2588 to always fail with ENOSYS. Some functions are actually named
2589 something starting with __ and the normal name is an alias. */
2590 #if defined __stub_$2 || defined __stub___$2
2591 choke me
2592 #endif
2593
2594 int
2595 main (void)
2596 {
2597 return $2 ();
2598 ;
2599 return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_c_try_link "$LINENO"
2603 then :
2604 eval "$3=yes"
2605 else $as_nop
2606 eval "$3=no"
2607 fi
2608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2609 conftest$ac_exeext conftest.$ac_ext
2610 fi
2611 eval ac_res=\$$3
2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 printf "%s\n" "$ac_res" >&6; }
2614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2615
2616 } # ac_fn_c_check_func
2617
2618 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2619 # ------------------------------------------------------------------
2620 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2621 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2622 ac_fn_check_decl ()
2623 {
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 as_decl_name=`echo $2|sed 's/ *(.*//'`
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2627 printf %s "checking whether $as_decl_name is declared... " >&6; }
2628 if eval test \${$3+y}
2629 then :
2630 printf %s "(cached) " >&6
2631 else $as_nop
2632 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2633 eval ac_save_FLAGS=\$$6
2634 as_fn_append $6 " $5"
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2637 $4
2638 int
2639 main (void)
2640 {
2641 #ifndef $as_decl_name
2642 #ifdef __cplusplus
2643 (void) $as_decl_use;
2644 #else
2645 (void) $as_decl_name;
2646 #endif
2647 #endif
2648
2649 ;
2650 return 0;
2651 }
2652 _ACEOF
2653 if ac_fn_c_try_compile "$LINENO"
2654 then :
2655 eval "$3=yes"
2656 else $as_nop
2657 eval "$3=no"
2658 fi
2659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2660 eval $6=\$ac_save_FLAGS
2661
2662 fi
2663 eval ac_res=\$$3
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2665 printf "%s\n" "$ac_res" >&6; }
2666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667
2668 } # ac_fn_check_decl
2669
2670 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2671 # ----------------------------------------------------
2672 # Tries to find if the field MEMBER exists in type AGGR, after including
2673 # INCLUDES, setting cache variable VAR accordingly.
2674 ac_fn_c_check_member ()
2675 {
2676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2678 printf %s "checking for $2.$3... " >&6; }
2679 if eval test \${$4+y}
2680 then :
2681 printf %s "(cached) " >&6
2682 else $as_nop
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2685 $5
2686 int
2687 main (void)
2688 {
2689 static $2 ac_aggr;
2690 if (ac_aggr.$3)
2691 return 0;
2692 ;
2693 return 0;
2694 }
2695 _ACEOF
2696 if ac_fn_c_try_compile "$LINENO"
2697 then :
2698 eval "$4=yes"
2699 else $as_nop
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2702 $5
2703 int
2704 main (void)
2705 {
2706 static $2 ac_aggr;
2707 if (sizeof ac_aggr.$3)
2708 return 0;
2709 ;
2710 return 0;
2711 }
2712 _ACEOF
2713 if ac_fn_c_try_compile "$LINENO"
2714 then :
2715 eval "$4=yes"
2716 else $as_nop
2717 eval "$4=no"
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2720 fi
2721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2722 fi
2723 eval ac_res=\$$4
2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 printf "%s\n" "$ac_res" >&6; }
2726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727
2728 } # ac_fn_c_check_member
2729 ac_configure_args_raw=
2730 for ac_arg
2731 do
2732 case $ac_arg in
2733 *\'*)
2734 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2735 esac
2736 as_fn_append ac_configure_args_raw " '$ac_arg'"
2737 done
2738
2739 case $ac_configure_args_raw in
2740 *$as_nl*)
2741 ac_safe_unquote= ;;
2742 *)
2743 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2744 ac_unsafe_a="$ac_unsafe_z#~"
2745 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2746 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2747 esac
2748
2749 cat >config.log <<_ACEOF
2750 This file contains any messages produced by compilers while
2751 running configure, to aid debugging if configure makes a mistake.
2752
2753 It was created by python $as_me 3.13, which was
2754 generated by GNU Autoconf 2.71. Invocation command line was
2755
2756 $ $0$ac_configure_args_raw
2757
2758 _ACEOF
2759 exec 5>>config.log
2760 {
2761 cat <<_ASUNAME
2762 ## --------- ##
2763 ## Platform. ##
2764 ## --------- ##
2765
2766 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2767 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2768 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2769 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2770 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2771
2772 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2773 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2774
2775 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2776 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2777 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2778 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2779 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2780 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2781 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2782
2783 _ASUNAME
2784
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 case $as_dir in #(((
2790 '') as_dir=./ ;;
2791 */) ;;
2792 *) as_dir=$as_dir/ ;;
2793 esac
2794 printf "%s\n" "PATH: $as_dir"
2795 done
2796 IFS=$as_save_IFS
2797
2798 } >&5
2799
2800 cat >&5 <<_ACEOF
2801
2802
2803 ## ----------- ##
2804 ## Core tests. ##
2805 ## ----------- ##
2806
2807 _ACEOF
2808
2809
2810 # Keep a trace of the command line.
2811 # Strip out --no-create and --no-recursion so they do not pile up.
2812 # Strip out --silent because we don't want to record it for future runs.
2813 # Also quote any args containing shell meta-characters.
2814 # Make two passes to allow for proper duplicate-argument suppression.
2815 ac_configure_args=
2816 ac_configure_args0=
2817 ac_configure_args1=
2818 ac_must_keep_next=false
2819 for ac_pass in 1 2
2820 do
2821 for ac_arg
2822 do
2823 case $ac_arg in
2824 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2826 | -silent | --silent | --silen | --sile | --sil)
2827 continue ;;
2828 *\'*)
2829 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2830 esac
2831 case $ac_pass in
2832 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2833 2)
2834 as_fn_append ac_configure_args1 " '$ac_arg'"
2835 if test $ac_must_keep_next = true; then
2836 ac_must_keep_next=false # Got value, back to normal.
2837 else
2838 case $ac_arg in
2839 *=* | --config-cache | -C | -disable-* | --disable-* \
2840 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2841 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2842 | -with-* | --with-* | -without-* | --without-* | --x)
2843 case "$ac_configure_args0 " in
2844 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2845 esac
2846 ;;
2847 -* ) ac_must_keep_next=true ;;
2848 esac
2849 fi
2850 as_fn_append ac_configure_args " '$ac_arg'"
2851 ;;
2852 esac
2853 done
2854 done
2855 { ac_configure_args0=; unset ac_configure_args0;}
2856 { ac_configure_args1=; unset ac_configure_args1;}
2857
2858 # When interrupted or exit'd, cleanup temporary files, and complete
2859 # config.log. We remove comments because anyway the quotes in there
2860 # would cause problems or look ugly.
2861 # WARNING: Use '\'' to represent an apostrophe within the trap.
2862 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2863 trap 'exit_status=$?
2864 # Sanitize IFS.
2865 IFS=" "" $as_nl"
2866 # Save into config.log some information that might help in debugging.
2867 {
2868 echo
2869
2870 printf "%s\n" "## ---------------- ##
2871 ## Cache variables. ##
2872 ## ---------------- ##"
2873 echo
2874 # The following way of writing the cache mishandles newlines in values,
2875 (
2876 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2877 eval ac_val=\$$ac_var
2878 case $ac_val in #(
2879 *${as_nl}*)
2880 case $ac_var in #(
2881 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2882 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2883 esac
2884 case $ac_var in #(
2885 _ | IFS | as_nl) ;; #(
2886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2887 *) { eval $ac_var=; unset $ac_var;} ;;
2888 esac ;;
2889 esac
2890 done
2891 (set) 2>&1 |
2892 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2893 *${as_nl}ac_space=\ *)
2894 sed -n \
2895 "s/'\''/'\''\\\\'\'''\''/g;
2896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2897 ;; #(
2898 *)
2899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2900 ;;
2901 esac |
2902 sort
2903 )
2904 echo
2905
2906 printf "%s\n" "## ----------------- ##
2907 ## Output variables. ##
2908 ## ----------------- ##"
2909 echo
2910 for ac_var in $ac_subst_vars
2911 do
2912 eval ac_val=\$$ac_var
2913 case $ac_val in
2914 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2915 esac
2916 printf "%s\n" "$ac_var='\''$ac_val'\''"
2917 done | sort
2918 echo
2919
2920 if test -n "$ac_subst_files"; then
2921 printf "%s\n" "## ------------------- ##
2922 ## File substitutions. ##
2923 ## ------------------- ##"
2924 echo
2925 for ac_var in $ac_subst_files
2926 do
2927 eval ac_val=\$$ac_var
2928 case $ac_val in
2929 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2930 esac
2931 printf "%s\n" "$ac_var='\''$ac_val'\''"
2932 done | sort
2933 echo
2934 fi
2935
2936 if test -s confdefs.h; then
2937 printf "%s\n" "## ----------- ##
2938 ## confdefs.h. ##
2939 ## ----------- ##"
2940 echo
2941 cat confdefs.h
2942 echo
2943 fi
2944 test "$ac_signal" != 0 &&
2945 printf "%s\n" "$as_me: caught signal $ac_signal"
2946 printf "%s\n" "$as_me: exit $exit_status"
2947 } >&5
2948 rm -f core *.core core.conftest.* &&
2949 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2950 exit $exit_status
2951 ' 0
2952 for ac_signal in 1 2 13 15; do
2953 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2954 done
2955 ac_signal=0
2956
2957 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2958 rm -f -r conftest* confdefs.h
2959
2960 printf "%s\n" "/* confdefs.h */" > confdefs.h
2961
2962 # Predefined preprocessor variables.
2963
2964 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2965
2966 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2967
2968 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2969
2970 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2971
2972 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2973
2974 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2975
2976
2977 # Let the site file select an alternate cache file if it wants to.
2978 # Prefer an explicitly selected file to automatically selected ones.
2979 if test -n "$CONFIG_SITE"; then
2980 ac_site_files="$CONFIG_SITE"
2981 elif test "x$prefix" != xNONE; then
2982 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2983 else
2984 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2985 fi
2986
2987 for ac_site_file in $ac_site_files
2988 do
2989 case $ac_site_file in #(
2990 */*) :
2991 ;; #(
2992 *) :
2993 ac_site_file=./$ac_site_file ;;
2994 esac
2995 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2997 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2998 sed 's/^/| /' "$ac_site_file" >&5
2999 . "$ac_site_file" \
3000 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error $? "failed to load site script $ac_site_file
3003 See \`config.log' for more details" "$LINENO" 5; }
3004 fi
3005 done
3006
3007 if test -r "$cache_file"; then
3008 # Some versions of bash will fail to source /dev/null (special files
3009 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3010 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3012 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3013 case $cache_file in
3014 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3015 *) . "./$cache_file";;
3016 esac
3017 fi
3018 else
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3020 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3021 >$cache_file
3022 fi
3023
3024 # Test code for whether the C compiler supports C89 (global declarations)
3025 ac_c_conftest_c89_globals='
3026 /* Does the compiler advertise C89 conformance?
3027 Do not test the value of __STDC__, because some compilers set it to 0
3028 while being otherwise adequately conformant. */
3029 #if !defined __STDC__
3030 # error "Compiler does not advertise C89 conformance"
3031 #endif
3032
3033 #include <stddef.h>
3034 #include <stdarg.h>
3035 struct stat;
3036 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3037 struct buf { int x; };
3038 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3039 static char *e (p, i)
3040 char **p;
3041 int i;
3042 {
3043 return p[i];
3044 }
3045 static char *f (char * (*g) (char **, int), char **p, ...)
3046 {
3047 char *s;
3048 va_list v;
3049 va_start (v,p);
3050 s = g (p, va_arg (v,int));
3051 va_end (v);
3052 return s;
3053 }
3054
3055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3056 function prototypes and stuff, but not \xHH hex character constants.
3057 These do not provoke an error unfortunately, instead are silently treated
3058 as an "x". The following induces an error, until -std is added to get
3059 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3060 array size at least. It is necessary to write \x00 == 0 to get something
3061 that is true only with -std. */
3062 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3063
3064 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3065 inside strings and character constants. */
3066 #define FOO(x) '\''x'\''
3067 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3068
3069 int test (int i, double x);
3070 struct s1 {int (*f) (int a);};
3071 struct s2 {int (*f) (double a);};
3072 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3073 int, int);'
3074
3075 # Test code for whether the C compiler supports C89 (body of main).
3076 ac_c_conftest_c89_main='
3077 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3078 '
3079
3080 # Test code for whether the C compiler supports C99 (global declarations)
3081 ac_c_conftest_c99_globals='
3082 // Does the compiler advertise C99 conformance?
3083 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3084 # error "Compiler does not advertise C99 conformance"
3085 #endif
3086
3087 #include <stdbool.h>
3088 extern int puts (const char *);
3089 extern int printf (const char *, ...);
3090 extern int dprintf (int, const char *, ...);
3091 extern void *malloc (size_t);
3092
3093 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3094 // dprintf is used instead of fprintf to avoid needing to declare
3095 // FILE and stderr.
3096 #define debug(...) dprintf (2, __VA_ARGS__)
3097 #define showlist(...) puts (#__VA_ARGS__)
3098 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3099 static void
3100 test_varargs_macros (void)
3101 {
3102 int x = 1234;
3103 int y = 5678;
3104 debug ("Flag");
3105 debug ("X = %d\n", x);
3106 showlist (The first, second, and third items.);
3107 report (x>y, "x is %d but y is %d", x, y);
3108 }
3109
3110 // Check long long types.
3111 #define BIG64 18446744073709551615ull
3112 #define BIG32 4294967295ul
3113 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3114 #if !BIG_OK
3115 #error "your preprocessor is broken"
3116 #endif
3117 #if BIG_OK
3118 #else
3119 #error "your preprocessor is broken"
3120 #endif
3121 static long long int bignum = -9223372036854775807LL;
3122 static unsigned long long int ubignum = BIG64;
3123
3124 struct incomplete_array
3125 {
3126 int datasize;
3127 double data[];
3128 };
3129
3130 struct named_init {
3131 int number;
3132 const wchar_t *name;
3133 double average;
3134 };
3135
3136 typedef const char *ccp;
3137
3138 static inline int
3139 test_restrict (ccp restrict text)
3140 {
3141 // See if C++-style comments work.
3142 // Iterate through items via the restricted pointer.
3143 // Also check for declarations in for loops.
3144 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3145 continue;
3146 return 0;
3147 }
3148
3149 // Check varargs and va_copy.
3150 static bool
3151 test_varargs (const char *format, ...)
3152 {
3153 va_list args;
3154 va_start (args, format);
3155 va_list args_copy;
3156 va_copy (args_copy, args);
3157
3158 const char *str = "";
3159 int number = 0;
3160 float fnumber = 0;
3161
3162 while (*format)
3163 {
3164 switch (*format++)
3165 {
3166 case '\''s'\'': // string
3167 str = va_arg (args_copy, const char *);
3168 break;
3169 case '\''d'\'': // int
3170 number = va_arg (args_copy, int);
3171 break;
3172 case '\''f'\'': // float
3173 fnumber = va_arg (args_copy, double);
3174 break;
3175 default:
3176 break;
3177 }
3178 }
3179 va_end (args_copy);
3180 va_end (args);
3181
3182 return *str && number && fnumber;
3183 }
3184 '
3185
3186 # Test code for whether the C compiler supports C99 (body of main).
3187 ac_c_conftest_c99_main='
3188 // Check bool.
3189 _Bool success = false;
3190 success |= (argc != 0);
3191
3192 // Check restrict.
3193 if (test_restrict ("String literal") == 0)
3194 success = true;
3195 char *restrict newvar = "Another string";
3196
3197 // Check varargs.
3198 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3199 test_varargs_macros ();
3200
3201 // Check flexible array members.
3202 struct incomplete_array *ia =
3203 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3204 ia->datasize = 10;
3205 for (int i = 0; i < ia->datasize; ++i)
3206 ia->data[i] = i * 1.234;
3207
3208 // Check named initializers.
3209 struct named_init ni = {
3210 .number = 34,
3211 .name = L"Test wide string",
3212 .average = 543.34343,
3213 };
3214
3215 ni.number = 58;
3216
3217 int dynamic_array[ni.number];
3218 dynamic_array[0] = argv[0][0];
3219 dynamic_array[ni.number - 1] = 543;
3220
3221 // work around unused variable warnings
3222 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3223 || dynamic_array[ni.number - 1] != 543);
3224 '
3225
3226 # Test code for whether the C compiler supports C11 (global declarations)
3227 ac_c_conftest_c11_globals='
3228 // Does the compiler advertise C11 conformance?
3229 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3230 # error "Compiler does not advertise C11 conformance"
3231 #endif
3232
3233 // Check _Alignas.
3234 char _Alignas (double) aligned_as_double;
3235 char _Alignas (0) no_special_alignment;
3236 extern char aligned_as_int;
3237 char _Alignas (0) _Alignas (int) aligned_as_int;
3238
3239 // Check _Alignof.
3240 enum
3241 {
3242 int_alignment = _Alignof (int),
3243 int_array_alignment = _Alignof (int[100]),
3244 char_alignment = _Alignof (char)
3245 };
3246 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3247
3248 // Check _Noreturn.
3249 int _Noreturn does_not_return (void) { for (;;) continue; }
3250
3251 // Check _Static_assert.
3252 struct test_static_assert
3253 {
3254 int x;
3255 _Static_assert (sizeof (int) <= sizeof (long int),
3256 "_Static_assert does not work in struct");
3257 long int y;
3258 };
3259
3260 // Check UTF-8 literals.
3261 #define u8 syntax error!
3262 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3263
3264 // Check duplicate typedefs.
3265 typedef long *long_ptr;
3266 typedef long int *long_ptr;
3267 typedef long_ptr long_ptr;
3268
3269 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3270 struct anonymous
3271 {
3272 union {
3273 struct { int i; int j; };
3274 struct { int k; long int l; } w;
3275 };
3276 int m;
3277 } v1;
3278 '
3279
3280 # Test code for whether the C compiler supports C11 (body of main).
3281 ac_c_conftest_c11_main='
3282 _Static_assert ((offsetof (struct anonymous, i)
3283 == offsetof (struct anonymous, w.k)),
3284 "Anonymous union alignment botch");
3285 v1.i = 2;
3286 v1.w.k = 5;
3287 ok |= v1.i != 5;
3288 '
3289
3290 # Test code for whether the C compiler supports C11 (complete).
3291 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3292 ${ac_c_conftest_c99_globals}
3293 ${ac_c_conftest_c11_globals}
3294
3295 int
3296 main (int argc, char **argv)
3297 {
3298 int ok = 0;
3299 ${ac_c_conftest_c89_main}
3300 ${ac_c_conftest_c99_main}
3301 ${ac_c_conftest_c11_main}
3302 return ok;
3303 }
3304 "
3305
3306 # Test code for whether the C compiler supports C99 (complete).
3307 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3308 ${ac_c_conftest_c99_globals}
3309
3310 int
3311 main (int argc, char **argv)
3312 {
3313 int ok = 0;
3314 ${ac_c_conftest_c89_main}
3315 ${ac_c_conftest_c99_main}
3316 return ok;
3317 }
3318 "
3319
3320 # Test code for whether the C compiler supports C89 (complete).
3321 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3322
3323 int
3324 main (int argc, char **argv)
3325 {
3326 int ok = 0;
3327 ${ac_c_conftest_c89_main}
3328 return ok;
3329 }
3330 "
3331
3332 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3333 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3334 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3335 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3336 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3337 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3338 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3339 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3340 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3341 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3342 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3343
3344 # Auxiliary files required by this configure script.
3345 ac_aux_files="install-sh config.guess config.sub"
3346
3347 # Locations in which to look for auxiliary files.
3348 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3349
3350 # Search for a directory containing all of the required auxiliary files,
3351 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3352 # If we don't find one directory that contains all the files we need,
3353 # we report the set of missing files from the *first* directory in
3354 # $ac_aux_dir_candidates and give up.
3355 ac_missing_aux_files=""
3356 ac_first_candidate=:
3357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 as_found=false
3360 for as_dir in $ac_aux_dir_candidates
3361 do
3362 IFS=$as_save_IFS
3363 case $as_dir in #(((
3364 '') as_dir=./ ;;
3365 */) ;;
3366 *) as_dir=$as_dir/ ;;
3367 esac
3368 as_found=:
3369
3370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3371 ac_aux_dir_found=yes
3372 ac_install_sh=
3373 for ac_aux in $ac_aux_files
3374 do
3375 # As a special case, if "install-sh" is required, that requirement
3376 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3377 # and $ac_install_sh is set appropriately for whichever one is found.
3378 if test x"$ac_aux" = x"install-sh"
3379 then
3380 if test -f "${as_dir}install-sh"; then
3381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3382 ac_install_sh="${as_dir}install-sh -c"
3383 elif test -f "${as_dir}install.sh"; then
3384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3385 ac_install_sh="${as_dir}install.sh -c"
3386 elif test -f "${as_dir}shtool"; then
3387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3388 ac_install_sh="${as_dir}shtool install -c"
3389 else
3390 ac_aux_dir_found=no
3391 if $ac_first_candidate; then
3392 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3393 else
3394 break
3395 fi
3396 fi
3397 else
3398 if test -f "${as_dir}${ac_aux}"; then
3399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3400 else
3401 ac_aux_dir_found=no
3402 if $ac_first_candidate; then
3403 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3404 else
3405 break
3406 fi
3407 fi
3408 fi
3409 done
3410 if test "$ac_aux_dir_found" = yes; then
3411 ac_aux_dir="$as_dir"
3412 break
3413 fi
3414 ac_first_candidate=false
3415
3416 as_found=false
3417 done
3418 IFS=$as_save_IFS
3419 if $as_found
3420 then :
3421
3422 else $as_nop
3423 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3424 fi
3425
3426
3427 # These three variables are undocumented and unsupported,
3428 # and are intended to be withdrawn in a future Autoconf release.
3429 # They can cause serious problems if a builder's source tree is in a directory
3430 # whose full name contains unusual characters.
3431 if test -f "${ac_aux_dir}config.guess"; then
3432 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3433 fi
3434 if test -f "${ac_aux_dir}config.sub"; then
3435 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3436 fi
3437 if test -f "$ac_aux_dir/configure"; then
3438 ac_configure="$SHELL ${ac_aux_dir}configure"
3439 fi
3440
3441 # Check that the precious variables saved in the cache have kept the same
3442 # value.
3443 ac_cache_corrupted=false
3444 for ac_var in $ac_precious_vars; do
3445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3446 eval ac_new_set=\$ac_env_${ac_var}_set
3447 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3448 eval ac_new_val=\$ac_env_${ac_var}_value
3449 case $ac_old_set,$ac_new_set in
3450 set,)
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3452 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3453 ac_cache_corrupted=: ;;
3454 ,set)
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3456 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3457 ac_cache_corrupted=: ;;
3458 ,);;
3459 *)
3460 if test "x$ac_old_val" != "x$ac_new_val"; then
3461 # differences in whitespace do not lead to failure.
3462 ac_old_val_w=`echo x $ac_old_val`
3463 ac_new_val_w=`echo x $ac_new_val`
3464 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3466 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3467 ac_cache_corrupted=:
3468 else
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3470 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3471 eval $ac_var=\$ac_old_val
3472 fi
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3474 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3476 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3477 fi;;
3478 esac
3479 # Pass precious variables to config.status.
3480 if test "$ac_new_set" = set; then
3481 case $ac_new_val in
3482 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3483 *) ac_arg=$ac_var=$ac_new_val ;;
3484 esac
3485 case " $ac_configure_args " in
3486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3487 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3488 esac
3489 fi
3490 done
3491 if $ac_cache_corrupted; then
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3495 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3496 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3497 and start over" "$LINENO" 5
3498 fi
3499 ## -------------------- ##
3500 ## Main body of script. ##
3501 ## -------------------- ##
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520 if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
3521 # If we're building out-of-tree, we need to make sure the following
3522 # resources get picked up before their $srcdir counterparts.
3523 # Objects/ -> typeslots.inc
3524 # Include/ -> Python.h
3525 # (A side effect of this is that these resources will automatically be
3526 # regenerated when building out-of-tree, regardless of whether or not
3527 # the $srcdir counterpart is up-to-date. This is an acceptable trade
3528 # off.)
3529 BASECPPFLAGS="-IObjects -IInclude -IPython"
3530 else
3531 BASECPPFLAGS=""
3532 fi
3533
3534
3535
3536
3537
3538 if test -e $srcdir/.git
3539 then
3540 # Extract the first word of "git", so it can be a program name with args.
3541 set dummy git; ac_word=$2
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 printf %s "checking for $ac_word... " >&6; }
3544 if test ${ac_cv_prog_HAS_GIT+y}
3545 then :
3546 printf %s "(cached) " >&6
3547 else $as_nop
3548 if test -n "$HAS_GIT"; then
3549 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_HAS_GIT="found"
3563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
3571 fi
3572 fi
3573 HAS_GIT=$ac_cv_prog_HAS_GIT
3574 if test -n "$HAS_GIT"; then
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
3576 printf "%s\n" "$HAS_GIT" >&6; }
3577 else
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 printf "%s\n" "no" >&6; }
3580 fi
3581
3582
3583 else
3584 HAS_GIT=no-repository
3585 fi
3586 if test $HAS_GIT = found
3587 then
3588 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
3589 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
3590 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
3591 else
3592 GITVERSION=""
3593 GITTAG=""
3594 GITBRANCH=""
3595 fi
3596
3597
3598 ac_config_headers="$ac_config_headers pyconfig.h"
3599
3600
3601
3602
3603
3604 # Make sure we can run config.sub.
3605 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3606 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3607
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3609 printf %s "checking build system type... " >&6; }
3610 if test ${ac_cv_build+y}
3611 then :
3612 printf %s "(cached) " >&6
3613 else $as_nop
3614 ac_build_alias=$build_alias
3615 test "x$ac_build_alias" = x &&
3616 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3617 test "x$ac_build_alias" = x &&
3618 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3619 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3620 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3621
3622 fi
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3624 printf "%s\n" "$ac_cv_build" >&6; }
3625 case $ac_cv_build in
3626 *-*-*) ;;
3627 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3628 esac
3629 build=$ac_cv_build
3630 ac_save_IFS=$IFS; IFS='-'
3631 set x $ac_cv_build
3632 shift
3633 build_cpu=$1
3634 build_vendor=$2
3635 shift; shift
3636 # Remember, the first character of IFS is used to create $*,
3637 # except with old shells:
3638 build_os=$*
3639 IFS=$ac_save_IFS
3640 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3641
3642
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3644 printf %s "checking host system type... " >&6; }
3645 if test ${ac_cv_host+y}
3646 then :
3647 printf %s "(cached) " >&6
3648 else $as_nop
3649 if test "x$host_alias" = x; then
3650 ac_cv_host=$ac_cv_build
3651 else
3652 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3653 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3654 fi
3655
3656 fi
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3658 printf "%s\n" "$ac_cv_host" >&6; }
3659 case $ac_cv_host in
3660 *-*-*) ;;
3661 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3662 esac
3663 host=$ac_cv_host
3664 ac_save_IFS=$IFS; IFS='-'
3665 set x $ac_cv_host
3666 shift
3667 host_cpu=$1
3668 host_vendor=$2
3669 shift; shift
3670 # Remember, the first character of IFS is used to create $*,
3671 # except with old shells:
3672 host_os=$*
3673 IFS=$ac_save_IFS
3674 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3675
3676
3677
3678
3679
3680 if test "x$cross_compiling" = xmaybe
3681 then :
3682 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
3683
3684 fi
3685
3686 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile
3687 rm -f pybuilddir.txt
3688
3689
3690 # Check whether --with-build-python was given.
3691 if test ${with_build_python+y}
3692 then :
3693 withval=$with_build_python;
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-build-python" >&5
3695 printf %s "checking for --with-build-python... " >&6; }
3696
3697 if test "x$with_build_python" = xyes
3698 then :
3699 with_build_python=python$PACKAGE_VERSION
3700 fi
3701 if test "x$with_build_python" = xno
3702 then :
3703 as_fn_error $? "invalid --with-build-python option: expected path or \"yes\", not \"no\"" "$LINENO" 5
3704 fi
3705
3706 if ! $(command -v "$with_build_python" >/dev/null 2>&1); then
3707 as_fn_error $? "invalid or missing build python binary \"$with_build_python\"" "$LINENO" 5
3708 fi
3709 build_python_ver=$($with_build_python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
3710 if test "$build_python_ver" != "$PACKAGE_VERSION"; then
3711 as_fn_error $? "\"$with_build_python\" has incompatible version $build_python_ver (expected: $PACKAGE_VERSION)" "$LINENO" 5
3712 fi
3713 ac_cv_prog_PYTHON_FOR_REGEN=$with_build_python
3714 PYTHON_FOR_FREEZE="$with_build_python"
3715 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) _PYTHON_SYSCONFIGDATA_PATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`) '$with_build_python
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_build_python" >&5
3717 printf "%s\n" "$with_build_python" >&6; }
3718
3719 else $as_nop
3720
3721 if test "x$cross_compiling" = xyes
3722 then :
3723 as_fn_error $? "Cross compiling requires --with-build-python" "$LINENO" 5
3724
3725 fi
3726 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
3727 PYTHON_FOR_FREEZE="./_bootstrap_python"
3728
3729
3730 fi
3731
3732
3733
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python interpreter freezing" >&5
3735 printf %s "checking for Python interpreter freezing... " >&6; }
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_FREEZE" >&5
3737 printf "%s\n" "$PYTHON_FOR_FREEZE" >&6; }
3738
3739
3740 if test "x$cross_compiling" = xyes
3741 then :
3742
3743 FREEZE_MODULE_BOOTSTRAP='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py'
3744 FREEZE_MODULE_BOOTSTRAP_DEPS='$(srcdir)/Programs/_freeze_module.py'
3745 FREEZE_MODULE='$(FREEZE_MODULE_BOOTSTRAP)'
3746 FREEZE_MODULE_DEPS='$(FREEZE_MODULE_BOOTSTRAP_DEPS)'
3747 PYTHON_FOR_BUILD_DEPS=''
3748
3749 else $as_nop
3750
3751 FREEZE_MODULE_BOOTSTRAP='./Programs/_freeze_module'
3752 FREEZE_MODULE_BOOTSTRAP_DEPS="Programs/_freeze_module"
3753 FREEZE_MODULE='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py'
3754 FREEZE_MODULE_DEPS="_bootstrap_python \$(srcdir)/Programs/_freeze_module.py"
3755 PYTHON_FOR_BUILD_DEPS='$(BUILDPYTHON)'
3756
3757
3758 fi
3759
3760
3761
3762
3763
3764
3765 for ac_prog in python$PACKAGE_VERSION python3.15 python 3.14 python3.13 python3.12 python3.11 python3.10 python3 python
3766 do
3767 # Extract the first word of "$ac_prog", so it can be a program name with args.
3768 set dummy $ac_prog; ac_word=$2
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 printf %s "checking for $ac_word... " >&6; }
3771 if test ${ac_cv_prog_PYTHON_FOR_REGEN+y}
3772 then :
3773 printf %s "(cached) " >&6
3774 else $as_nop
3775 if test -n "$PYTHON_FOR_REGEN"; then
3776 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781 IFS=$as_save_IFS
3782 case $as_dir in #(((
3783 '') as_dir=./ ;;
3784 */) ;;
3785 *) as_dir=$as_dir/ ;;
3786 esac
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793 done
3794 done
3795 IFS=$as_save_IFS
3796
3797 fi
3798 fi
3799 PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
3800 if test -n "$PYTHON_FOR_REGEN"; then
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
3802 printf "%s\n" "$PYTHON_FOR_REGEN" >&6; }
3803 else
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 printf "%s\n" "no" >&6; }
3806 fi
3807
3808
3809 test -n "$PYTHON_FOR_REGEN" && break
3810 done
3811 test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
3812
3813
3814
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python for regen version" >&5
3816 printf %s "checking Python for regen version... " >&6; }
3817 if command -v "$PYTHON_FOR_REGEN" >/dev/null 2>&1; then
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $($PYTHON_FOR_REGEN -V 2>/dev/null)" >&5
3819 printf "%s\n" "$($PYTHON_FOR_REGEN -V 2>/dev/null)" >&6; }
3820 else
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5
3822 printf "%s\n" "missing" >&6; }
3823 fi
3824
3825
3826 if test "$prefix" != "/"; then
3827 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
3828 fi
3829
3830
3831
3832
3833 # We don't use PACKAGE_ variables, and they cause conflicts
3834 # with other autoconf-based packages that include Python.h
3835 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
3836 rm confdefs.h
3837 mv confdefs.h.new confdefs.h
3838
3839
3840 VERSION=3.13
3841
3842 # Version number of Python's own shared library file.
3843
3844 SOVERSION=1.0
3845
3846 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3847 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3848 # them.
3849
3850 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3851
3852
3853 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3854 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3855 # them.
3856
3857 printf "%s\n" "#define __BSD_VISIBLE 1" >>confdefs.h
3858
3859
3860 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3861 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3862 # them.
3863
3864 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3865
3866
3867
3868 define_xopen_source=yes
3869
3870 # Arguments passed to configure.
3871
3872 CONFIG_ARGS="$ac_configure_args"
3873
3874
3875 # Check whether --with-pkg-config was given.
3876 if test ${with_pkg_config+y}
3877 then :
3878 withval=$with_pkg_config;
3879 else $as_nop
3880 with_pkg_config=check
3881
3882 fi
3883
3884 case $with_pkg_config in #(
3885 yes|check) :
3886
3887 if test -z "$PKG_CONFIG"; then
3888 { PKG_CONFIG=; unset PKG_CONFIG;}
3889 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
3890 { ac_cv_prog_ac_ct_PKG_CONFIG=; unset ac_cv_prog_ac_ct_PKG_CONFIG;}
3891 fi
3892
3893
3894
3895
3896
3897
3898
3899 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 printf %s "checking for $ac_word... " >&6; }
3905 if test ${ac_cv_path_PKG_CONFIG+y}
3906 then :
3907 printf %s "(cached) " >&6
3908 else $as_nop
3909 case $PKG_CONFIG in
3910 [\\/]* | ?:[\\/]*)
3911 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3912 ;;
3913 *)
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 case $as_dir in #(((
3919 '') as_dir=./ ;;
3920 */) ;;
3921 *) as_dir=$as_dir/ ;;
3922 esac
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3925 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929 done
3930 done
3931 IFS=$as_save_IFS
3932
3933 ;;
3934 esac
3935 fi
3936 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3937 if test -n "$PKG_CONFIG"; then
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3939 printf "%s\n" "$PKG_CONFIG" >&6; }
3940 else
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 printf "%s\n" "no" >&6; }
3943 fi
3944
3945
3946 fi
3947 if test -z "$ac_cv_path_PKG_CONFIG"; then
3948 ac_pt_PKG_CONFIG=$PKG_CONFIG
3949 # Extract the first word of "pkg-config", so it can be a program name with args.
3950 set dummy pkg-config; ac_word=$2
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 printf %s "checking for $ac_word... " >&6; }
3953 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
3954 then :
3955 printf %s "(cached) " >&6
3956 else $as_nop
3957 case $ac_pt_PKG_CONFIG in
3958 [\\/]* | ?:[\\/]*)
3959 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3960 ;;
3961 *)
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965 IFS=$as_save_IFS
3966 case $as_dir in #(((
3967 '') as_dir=./ ;;
3968 */) ;;
3969 *) as_dir=$as_dir/ ;;
3970 esac
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3973 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977 done
3978 done
3979 IFS=$as_save_IFS
3980
3981 ;;
3982 esac
3983 fi
3984 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3985 if test -n "$ac_pt_PKG_CONFIG"; then
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3987 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
3988 else
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 printf "%s\n" "no" >&6; }
3991 fi
3992
3993 if test "x$ac_pt_PKG_CONFIG" = x; then
3994 PKG_CONFIG=""
3995 else
3996 case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4001 esac
4002 PKG_CONFIG=$ac_pt_PKG_CONFIG
4003 fi
4004 else
4005 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4006 fi
4007
4008 fi
4009 if test -n "$PKG_CONFIG"; then
4010 _pkg_min_version=0.9.0
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4012 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4013 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 printf "%s\n" "yes" >&6; }
4016 else
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 printf "%s\n" "no" >&6; }
4019 PKG_CONFIG=""
4020 fi
4021 fi
4022 ;; #(
4023 no) :
4024
4025 PKG_CONFIG=''
4026 ac_cv_path_ac_pt_PKG_CONFIG=''
4027 ac_cv_prog_ac_ct_PKG_CONFIG=''
4028 ;; #(
4029 *) :
4030 as_fn_error $? "invalid argument --with-pkg-config=$with_pkg_config" "$LINENO" 5
4031 ;;
4032 esac
4033 if test "$with_pkg_config" = yes -a -z "$PKG_CONFIG"; then
4034 as_fn_error $? "pkg-config is required" "$LINENO" 5]
4035 fi
4036
4037 # Set name for machine-dependent library files
4038
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
4040 printf %s "checking MACHDEP... " >&6; }
4041 if test -z "$MACHDEP"
4042 then
4043 # avoid using uname for cross builds
4044 if test "$cross_compiling" = yes; then
4045 # ac_sys_system and ac_sys_release are used for setting
4046 # a lot of different things including 'define_xopen_source'
4047 # in the case statement below.
4048 case "$host" in
4049 *-*-linux-android*)
4050 ac_sys_system=Linux-android
4051 ;;
4052 *-*-linux*)
4053 ac_sys_system=Linux
4054 ;;
4055 *-*-cygwin*)
4056 ac_sys_system=Cygwin
4057 ;;
4058 *-apple-ios*)
4059 ac_sys_system=iOS
4060 ;;
4061 *-*-vxworks*)
4062 ac_sys_system=VxWorks
4063 ;;
4064 *-*-emscripten)
4065 ac_sys_system=Emscripten
4066 ;;
4067 *-*-wasi*)
4068 ac_sys_system=WASI
4069 ;;
4070 *)
4071 # for now, limit cross builds to known configurations
4072 MACHDEP="unknown"
4073 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
4074 esac
4075 ac_sys_release=
4076 else
4077 ac_sys_system=`uname -s`
4078 if test "$ac_sys_system" = "AIX" \
4079 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
4080 ac_sys_release=`uname -v`
4081 else
4082 ac_sys_release=`uname -r`
4083 fi
4084 fi
4085 ac_md_system=`echo $ac_sys_system |
4086 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
4087 ac_md_release=`echo $ac_sys_release |
4088 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
4089 MACHDEP="$ac_md_system$ac_md_release"
4090
4091 case $MACHDEP in
4092 aix*) MACHDEP="aix";;
4093 linux-android*) MACHDEP="android";;
4094 linux*) MACHDEP="linux";;
4095 cygwin*) MACHDEP="cygwin";;
4096 darwin*) MACHDEP="darwin";;
4097 '') MACHDEP="unknown";;
4098 esac
4099
4100 if test "$ac_sys_system" = "SunOS"; then
4101 # For Solaris, there isn't an OS version specific macro defined
4102 # in most compilers, so we define one here.
4103 SUNOS_VERSION=`echo $ac_sys_release | sed -e 's!\.\(0-9\)$!.0\1!g' | tr -d '.'`
4104
4105 printf "%s\n" "#define Py_SUNOS_VERSION $SUNOS_VERSION" >>confdefs.h
4106
4107 fi
4108 fi
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5
4110 printf "%s\n" "\"$MACHDEP\"" >&6; }
4111
4112 # On cross-compile builds, configure will look for a host-specific compiler by
4113 # prepending the user-provided host triple to the required binary name.
4114 #
4115 # On iOS, this results in binaries like "arm64-apple-ios13.0-simulator-gcc",
4116 # which isn't a binary that exists, and isn't very convenient, as it contains the
4117 # iOS version. As the default cross-compiler name won't exist, configure falls
4118 # back to gcc, which *definitely* won't work. We're providing wrapper scripts for
4119 # these tools; the binary names of these scripts are better defaults than "gcc".
4120 # This only requires that the user put the platform scripts folder (e.g.,
4121 # "iOS/Resources/bin") in their path, rather than defining platform-specific
4122 # names/paths for AR, CC, CPP, and CXX explicitly; and if the user forgets to
4123 # either put the platform scripts folder in the path, or specify CC etc,
4124 # configure will fail.
4125 if test -z "$AR"; then
4126 case "$host" in
4127 aarch64-apple-ios*-simulator) AR=arm64-apple-ios-simulator-ar ;;
4128 aarch64-apple-ios*) AR=arm64-apple-ios-ar ;;
4129 x86_64-apple-ios*-simulator) AR=x86_64-apple-ios-simulator-ar ;;
4130 *)
4131 esac
4132 fi
4133 if test -z "$CC"; then
4134 case "$host" in
4135 aarch64-apple-ios*-simulator) CC=arm64-apple-ios-simulator-clang ;;
4136 aarch64-apple-ios*) CC=arm64-apple-ios-clang ;;
4137 x86_64-apple-ios*-simulator) CC=x86_64-apple-ios-simulator-clang ;;
4138 *)
4139 esac
4140 fi
4141 if test -z "$CPP"; then
4142 case "$host" in
4143 aarch64-apple-ios*-simulator) CPP=arm64-apple-ios-simulator-cpp ;;
4144 aarch64-apple-ios*) CPP=arm64-apple-ios-cpp ;;
4145 x86_64-apple-ios*-simulator) CPP=x86_64-apple-ios-simulator-cpp ;;
4146 *)
4147 esac
4148 fi
4149 if test -z "$CXX"; then
4150 case "$host" in
4151 aarch64-apple-ios*-simulator) CXX=arm64-apple-ios-simulator-clang++ ;;
4152 aarch64-apple-ios*) CXX=arm64-apple-ios-clang++ ;;
4153 x86_64-apple-ios*-simulator) CXX=x86_64-apple-ios-simulator-clang++ ;;
4154 *)
4155 esac
4156 fi
4157
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
4159 printf %s "checking for --enable-universalsdk... " >&6; }
4160 # Check whether --enable-universalsdk was given.
4161 if test ${enable_universalsdk+y}
4162 then :
4163 enableval=$enable_universalsdk;
4164 case $enableval in
4165 yes)
4166 # Locate the best usable SDK, see Mac/README for more
4167 # information
4168 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
4169 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
4170 then
4171 enableval=/Developer/SDKs/MacOSX10.4u.sdk
4172 if test ! -d "${enableval}"
4173 then
4174 enableval=/
4175 fi
4176 fi
4177 ;;
4178 esac
4179 case $enableval in
4180 no)
4181 UNIVERSALSDK=
4182 enable_universalsdk=
4183 ;;
4184 *)
4185 UNIVERSALSDK=$enableval
4186 if test ! -d "${UNIVERSALSDK}"
4187 then
4188 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
4189 fi
4190 ;;
4191 esac
4192
4193
4194 else $as_nop
4195
4196 UNIVERSALSDK=
4197 enable_universalsdk=
4198
4199 fi
4200
4201 if test -n "${UNIVERSALSDK}"
4202 then
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
4204 printf "%s\n" "${UNIVERSALSDK}" >&6; }
4205 else
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 printf "%s\n" "no" >&6; }
4208 fi
4209
4210
4211
4212 ARCH_RUN_32BIT=""
4213
4214 # For backward compatibility reasons we prefer to select '32-bit' if available,
4215 # otherwise use 'intel'
4216 UNIVERSAL_ARCHS="32-bit"
4217 if test "`uname -s`" = "Darwin"
4218 then
4219 if test -n "${UNIVERSALSDK}"
4220 then
4221 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
4222 then
4223 UNIVERSAL_ARCHS="intel"
4224 fi
4225 fi
4226 fi
4227
4228
4229
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
4231 printf %s "checking for --with-universal-archs... " >&6; }
4232
4233 # Check whether --with-universal-archs was given.
4234 if test ${with_universal_archs+y}
4235 then :
4236 withval=$with_universal_archs;
4237 UNIVERSAL_ARCHS="$withval"
4238
4239 fi
4240
4241 if test -n "${UNIVERSALSDK}"
4242 then
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
4244 printf "%s\n" "${UNIVERSAL_ARCHS}" >&6; }
4245 else
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 printf "%s\n" "no" >&6; }
4248 fi
4249
4250
4251 # Check whether --with-framework-name was given.
4252 if test ${with_framework_name+y}
4253 then :
4254 withval=$with_framework_name;
4255 PYTHONFRAMEWORK=${withval}
4256 PYTHONFRAMEWORKDIR=${withval}.framework
4257 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
4258
4259 else $as_nop
4260
4261 PYTHONFRAMEWORK=Python
4262 PYTHONFRAMEWORKDIR=Python.framework
4263 PYTHONFRAMEWORKIDENTIFIER=org.python.python
4264
4265 fi
4266
4267 # Check whether --enable-framework was given.
4268 if test ${enable_framework+y}
4269 then :
4270 enableval=$enable_framework;
4271 case $enableval in
4272 yes)
4273 case $ac_sys_system in
4274 Darwin) enableval=/Library/Frameworks ;;
4275 iOS) enableval=iOS/Frameworks/\$\(MULTIARCH\) ;;
4276 *) as_fn_error $? "Unknown platform for framework build" "$LINENO" 5
4277 esac
4278 esac
4279
4280 case $enableval in
4281 no)
4282 case $ac_sys_system in
4283 iOS) as_fn_error $? "iOS builds must use --enable-framework" "$LINENO" 5 ;;
4284 *)
4285 PYTHONFRAMEWORK=
4286 PYTHONFRAMEWORKDIR=no-framework
4287 PYTHONFRAMEWORKPREFIX=
4288 PYTHONFRAMEWORKINSTALLDIR=
4289 PYTHONFRAMEWORKINSTALLNAMEPREFIX=
4290 RESSRCDIR=
4291 FRAMEWORKINSTALLFIRST=
4292 FRAMEWORKINSTALLLAST=
4293 FRAMEWORKALTINSTALLFIRST=
4294 FRAMEWORKALTINSTALLLAST=
4295 FRAMEWORKPYTHONW=
4296 INSTALLTARGETS="commoninstall bininstall maninstall"
4297
4298 if test "x${prefix}" = "xNONE"; then
4299 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
4300 else
4301 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
4302 fi
4303 enable_framework=
4304 esac
4305 ;;
4306 *)
4307 PYTHONFRAMEWORKPREFIX="${enableval}"
4308 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
4309
4310 case $ac_sys_system in #(
4311 Darwin) :
4312 FRAMEWORKINSTALLFIRST="frameworkinstallversionedstructure"
4313 FRAMEWORKALTINSTALLFIRST="frameworkinstallversionedstructure "
4314 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
4315 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
4316 FRAMEWORKPYTHONW="frameworkpythonw"
4317 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4318 INSTALLTARGETS="commoninstall bininstall maninstall"
4319
4320 if test "x${prefix}" = "xNONE" ; then
4321 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
4322
4323 else
4324 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
4325 fi
4326
4327 case "${enableval}" in
4328 /System*)
4329 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4330 if test "${prefix}" = "NONE" ; then
4331 # See below
4332 FRAMEWORKUNIXTOOLSPREFIX="/usr"
4333 fi
4334 ;;
4335
4336 /Library*)
4337 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4338 ;;
4339
4340 */Library/Frameworks)
4341 MDIR="`dirname "${enableval}"`"
4342 MDIR="`dirname "${MDIR}"`"
4343 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
4344
4345 if test "${prefix}" = "NONE"; then
4346 # User hasn't specified the
4347 # --prefix option, but wants to install
4348 # the framework in a non-default location,
4349 # ensure that the compatibility links get
4350 # installed relative to that prefix as well
4351 # instead of in /usr/local.
4352 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
4353 fi
4354 ;;
4355
4356 *)
4357 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4358 ;;
4359 esac
4360
4361 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
4362 PYTHONFRAMEWORKINSTALLNAMEPREFIX=${prefix}
4363 RESSRCDIR=Mac/Resources/framework
4364
4365 # Add files for Mac specific code to the list of output
4366 # files:
4367 ac_config_files="$ac_config_files Mac/Makefile"
4368
4369 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
4370
4371 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
4372
4373 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
4374
4375 ;;
4376 iOS) :
4377 FRAMEWORKINSTALLFIRST="frameworkinstallunversionedstructure"
4378 FRAMEWORKALTINSTALLFIRST="frameworkinstallunversionedstructure "
4379 FRAMEWORKINSTALLLAST="frameworkinstallmobileheaders"
4380 FRAMEWORKALTINSTALLLAST="frameworkinstallmobileheaders"
4381 FRAMEWORKPYTHONW=
4382 INSTALLTARGETS="libinstall inclinstall sharedinstall"
4383
4384 prefix=$PYTHONFRAMEWORKPREFIX
4385 PYTHONFRAMEWORKINSTALLNAMEPREFIX="@rpath/$PYTHONFRAMEWORKDIR"
4386 RESSRCDIR=iOS/Resources
4387
4388 ac_config_files="$ac_config_files iOS/Resources/Info.plist"
4389
4390 ;;
4391 *)
4392 as_fn_error $? "Unknown platform for framework build" "$LINENO" 5
4393 ;;
4394 esac
4395 esac
4396
4397 else $as_nop
4398
4399 case $ac_sys_system in
4400 iOS) as_fn_error $? "iOS builds must use --enable-framework" "$LINENO" 5 ;;
4401 *)
4402 PYTHONFRAMEWORK=
4403 PYTHONFRAMEWORKDIR=no-framework
4404 PYTHONFRAMEWORKPREFIX=
4405 PYTHONFRAMEWORKINSTALLDIR=
4406 PYTHONFRAMEWORKINSTALLNAMEPREFIX=
4407 RESSRCDIR=
4408 FRAMEWORKINSTALLFIRST=
4409 FRAMEWORKINSTALLLAST=
4410 FRAMEWORKALTINSTALLFIRST=
4411 FRAMEWORKALTINSTALLLAST=
4412 FRAMEWORKPYTHONW=
4413 INSTALLTARGETS="commoninstall bininstall maninstall"
4414 if test "x${prefix}" = "xNONE" ; then
4415 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
4416 else
4417 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
4418 fi
4419 enable_framework=
4420 esac
4421
4422 fi
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 printf "%s\n" "#define _PYTHONFRAMEWORK \"${PYTHONFRAMEWORK}\"" >>confdefs.h
4442
4443
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-app-store-compliance" >&5
4445 printf %s "checking for --with-app-store-compliance... " >&6; }
4446
4447 # Check whether --with-app_store_compliance was given.
4448 if test ${with_app_store_compliance+y}
4449 then :
4450 withval=$with_app_store_compliance;
4451 case "$withval" in
4452 yes)
4453 case $ac_sys_system in
4454 Darwin|iOS)
4455 # iOS is able to share the macOS patch
4456 APP_STORE_COMPLIANCE_PATCH="Mac/Resources/app-store-compliance.patch"
4457 ;;
4458 *) as_fn_error $? "no default app store compliance patch available for $ac_sys_system" "$LINENO" 5 ;;
4459 esac
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: applying default app store compliance patch" >&5
4461 printf "%s\n" "applying default app store compliance patch" >&6; }
4462 ;;
4463 *)
4464 APP_STORE_COMPLIANCE_PATCH="${withval}"
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: applying custom app store compliance patch" >&5
4466 printf "%s\n" "applying custom app store compliance patch" >&6; }
4467 ;;
4468 esac
4469
4470 else $as_nop
4471
4472 case $ac_sys_system in
4473 iOS)
4474 # Always apply the compliance patch on iOS; we can use the macOS patch
4475 APP_STORE_COMPLIANCE_PATCH="Mac/Resources/app-store-compliance.patch"
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: applying default app store compliance patch" >&5
4477 printf "%s\n" "applying default app store compliance patch" >&6; }
4478 ;;
4479 *)
4480 # No default app compliance patching on any other platform
4481 APP_STORE_COMPLIANCE_PATCH=
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not patching for app store compliance" >&5
4483 printf "%s\n" "not patching for app store compliance" >&6; }
4484 ;;
4485 esac
4486
4487 fi
4488
4489
4490
4491
4492 if test "$cross_compiling" = yes; then
4493 case "$host" in
4494 *-*-linux*)
4495 case "$host_cpu" in
4496 arm*)
4497 _host_ident=arm
4498 ;;
4499 *)
4500 _host_ident=$host_cpu
4501 esac
4502 ;;
4503 *-*-cygwin*)
4504 _host_ident=
4505 ;;
4506 *-apple-ios*)
4507 _host_os=`echo $host | cut -d '-' -f3`
4508 _host_device=`echo $host | cut -d '-' -f4`
4509 _host_device=${_host_device:=os}
4510
4511 # IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking iOS deployment target" >&5
4513 printf %s "checking iOS deployment target... " >&6; }
4514 IPHONEOS_DEPLOYMENT_TARGET=$(echo ${_host_os} | cut -c4-)
4515 IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0}
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPHONEOS_DEPLOYMENT_TARGET" >&5
4517 printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
4518
4519 case "$host_cpu" in
4520 aarch64)
4521 _host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-arm64-iphone${_host_device}
4522 ;;
4523 *)
4524 _host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-$host_cpu-iphone${_host_device}
4525 ;;
4526 esac
4527 ;;
4528 *-*-vxworks*)
4529 _host_ident=$host_cpu
4530 ;;
4531 wasm32-*-* | wasm64-*-*)
4532 _host_ident=$host_cpu
4533 ;;
4534 *)
4535 # for now, limit cross builds to known configurations
4536 MACHDEP="unknown"
4537 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
4538 esac
4539 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_ident:+-$_host_ident}"
4540 fi
4541
4542 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
4543 # disable features if it is defined, without any means to access these
4544 # features as extensions. For these systems, we skip the definition of
4545 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
4546 # some feature, make sure there is no alternative way to access this
4547 # feature. Also, when using wildcards, make sure you have verified the
4548 # need for not defining _XOPEN_SOURCE on all systems matching the
4549 # wildcard, and that the wildcard does not include future systems
4550 # (which may remove their limitations).
4551 case $ac_sys_system/$ac_sys_release in
4552 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
4553 # even though select is a POSIX function. Reported by J. Ribbens.
4554 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
4555 # In addition, Stefan Krah confirms that issue #1244610 exists through
4556 # OpenBSD 4.6, but is fixed in 4.7.
4557 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
4558 define_xopen_source=no
4559 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
4560 # also defined. This can be overridden by defining _BSD_SOURCE
4561 # As this has a different meaning on Linux, only define it on OpenBSD
4562
4563 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
4564
4565 ;;
4566 OpenBSD/*)
4567 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
4568 # also defined. This can be overridden by defining _BSD_SOURCE
4569 # As this has a different meaning on Linux, only define it on OpenBSD
4570
4571 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
4572
4573 ;;
4574 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
4575 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
4576 # Marc Recht
4577 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
4578 define_xopen_source=no;;
4579 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
4580 # request to enable features supported by the standard as a request
4581 # to disable features not supported by the standard. The best way
4582 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
4583 # entirely and define __EXTENSIONS__ instead.
4584 SunOS/*)
4585 define_xopen_source=no;;
4586 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
4587 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
4588 # Reconfirmed for 7.1.4 by Martin v. Loewis.
4589 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
4590 define_xopen_source=no;;
4591 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
4592 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
4593 SCO_SV/3.2)
4594 define_xopen_source=no;;
4595 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
4596 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
4597 # identifies itself as Darwin/7.*
4598 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
4599 # disables platform specific features beyond repair.
4600 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
4601 # has no effect, don't bother defining them
4602 Darwin/[6789].*)
4603 define_xopen_source=no;;
4604 Darwin/[12][0-9].*)
4605 define_xopen_source=no;;
4606 # On iOS, defining _POSIX_C_SOURCE also disables platform specific features.
4607 iOS/*)
4608 define_xopen_source=no;;
4609 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
4610 # defining NI_NUMERICHOST.
4611 QNX/6.3.2)
4612 define_xopen_source=no
4613 ;;
4614 # On VxWorks, defining _XOPEN_SOURCE causes compile failures
4615 # in network headers still using system V types.
4616 VxWorks/*)
4617 define_xopen_source=no
4618 ;;
4619
4620 # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides
4621 # chroot() and other functions
4622 hp*|HP*)
4623 define_xopen_source=no
4624 ;;
4625
4626 esac
4627
4628 if test $define_xopen_source = yes
4629 then
4630 # X/Open 7, incorporating POSIX.1-2008
4631
4632 printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h
4633
4634
4635 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
4636 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
4637 # several APIs are not declared. Since this is also needed in some
4638 # cases for HP-UX, we define it globally.
4639
4640 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4641
4642
4643
4644 printf "%s\n" "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
4645
4646 fi
4647
4648 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
4649 case $ac_sys_system in
4650 hp*|HP*)
4651 define_stdc_a1=yes;;
4652 *)
4653 define_stdc_a1=no;;
4654 esac
4655
4656 if test $define_stdc_a1 = yes
4657 then
4658
4659 printf "%s\n" "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
4660
4661 fi
4662
4663 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
4664 # it may influence the way we can build extensions, so distutils
4665 # needs to check it
4666
4667
4668 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
4669 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
4670
4671 # Record the value of IPHONEOS_DEPLOYMENT_TARGET enforced by the selected host triple.
4672
4673
4674 # checks for alternative programs
4675
4676 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
4677 # for debug/optimization stuff. BASECFLAGS is for flags that are required
4678 # just to get things to compile and link. Users are free to override OPT
4679 # when running configure or make. The build should not break if they do.
4680 # BASECFLAGS should generally not be messed with, however.
4681
4682 # If the user switches compilers, we can't believe the cache
4683 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
4684 then
4685 as_fn_error $? "cached CC is different -- throw away $cache_file
4686 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
4687 fi
4688
4689 # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
4690 # when the compiler supports them, but we don't always want -O2, and
4691 # we set -g later.
4692 if test -z "$CFLAGS"; then
4693 CFLAGS=
4694 fi
4695
4696 case $host in #(
4697 wasm64-*-emscripten) :
4698
4699 as_fn_append CFLAGS " -sMEMORY64=1"
4700 as_fn_append LDFLAGS " -sMEMORY64=1"
4701 ;; #(
4702 *) :
4703 ;;
4704 esac
4705
4706 case $ac_sys_system in #(
4707 iOS) :
4708
4709 as_fn_append CFLAGS " -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
4710 as_fn_append LDFLAGS " -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
4711 ;; #(
4712 *) :
4713 ;;
4714 esac
4715
4716 if test "$ac_sys_system" = "Darwin"
4717 then
4718 # Extract the first word of "xcrun", so it can be a program name with args.
4719 set dummy xcrun; ac_word=$2
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 printf %s "checking for $ac_word... " >&6; }
4722 if test ${ac_cv_prog_HAS_XCRUN+y}
4723 then :
4724 printf %s "(cached) " >&6
4725 else $as_nop
4726 if test -n "$HAS_XCRUN"; then
4727 ac_cv_prog_HAS_XCRUN="$HAS_XCRUN" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732 IFS=$as_save_IFS
4733 case $as_dir in #(((
4734 '') as_dir=./ ;;
4735 */) ;;
4736 *) as_dir=$as_dir/ ;;
4737 esac
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_HAS_XCRUN="yes"
4741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4742 break 2
4743 fi
4744 done
4745 done
4746 IFS=$as_save_IFS
4747
4748 test -z "$ac_cv_prog_HAS_XCRUN" && ac_cv_prog_HAS_XCRUN="missing"
4749 fi
4750 fi
4751 HAS_XCRUN=$ac_cv_prog_HAS_XCRUN
4752 if test -n "$HAS_XCRUN"; then
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_XCRUN" >&5
4754 printf "%s\n" "$HAS_XCRUN" >&6; }
4755 else
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 printf "%s\n" "no" >&6; }
4758 fi
4759
4760
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking macOS SDKROOT" >&5
4762 printf %s "checking macOS SDKROOT... " >&6; }
4763 if test -z "$SDKROOT"; then
4764 if test "$HAS_XCRUN" = "yes"; then
4765 SDKROOT=$(xcrun --show-sdk-path)
4766 else
4767 SDKROOT="/"
4768 fi
4769 fi
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDKROOT" >&5
4771 printf "%s\n" "$SDKROOT" >&6; }
4772
4773 # Compiler selection on MacOSX is more complicated than
4774 # AC_PROG_CC can handle, see Mac/README for more
4775 # information
4776 if test -z "${CC}"
4777 then
4778 found_gcc=
4779 found_clang=
4780 as_save_IFS=$IFS; IFS=:
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 if test -x "${as_dir}/gcc"; then
4785 if test -z "${found_gcc}"; then
4786 found_gcc="${as_dir}/gcc"
4787 fi
4788 fi
4789 if test -x "${as_dir}/clang"; then
4790 if test -z "${found_clang}"; then
4791 found_clang="${as_dir}/clang"
4792 fi
4793 fi
4794 done
4795 IFS=$as_save_IFS
4796
4797 if test -n "$found_gcc" -a -n "$found_clang"
4798 then
4799 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
4800 then
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
4802 printf "%s\n" "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
4803 CC="$found_clang"
4804 CXX="$found_clang++"
4805 fi
4806
4807
4808 elif test -z "$found_gcc" -a -n "$found_clang"
4809 then
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
4811 printf "%s\n" "$as_me: No GCC found, use CLANG" >&6;}
4812 CC="$found_clang"
4813 CXX="$found_clang++"
4814
4815 elif test -z "$found_gcc" -a -z "$found_clang"
4816 then
4817 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
4818 if test -n "${found_clang}"
4819 then
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
4821 printf "%s\n" "$as_me: Using clang from Xcode.app" >&6;}
4822 CC="${found_clang}"
4823 CXX="`/usr/bin/xcrun -find clang++`"
4824
4825 # else: use default behaviour
4826 fi
4827 fi
4828 fi
4829 fi
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 if test -n "$ac_tool_prefix"; then
4845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 printf %s "checking for $ac_word... " >&6; }
4849 if test ${ac_cv_prog_CC+y}
4850 then :
4851 printf %s "(cached) " >&6
4852 else $as_nop
4853 if test -n "$CC"; then
4854 ac_cv_prog_CC="$CC" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859 IFS=$as_save_IFS
4860 case $as_dir in #(((
4861 '') as_dir=./ ;;
4862 */) ;;
4863 *) as_dir=$as_dir/ ;;
4864 esac
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 CC=$ac_cv_prog_CC
4878 if test -n "$CC"; then
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4880 printf "%s\n" "$CC" >&6; }
4881 else
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 printf "%s\n" "no" >&6; }
4884 fi
4885
4886
4887 fi
4888 if test -z "$ac_cv_prog_CC"; then
4889 ac_ct_CC=$CC
4890 # Extract the first word of "gcc", so it can be a program name with args.
4891 set dummy gcc; ac_word=$2
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 printf %s "checking for $ac_word... " >&6; }
4894 if test ${ac_cv_prog_ac_ct_CC+y}
4895 then :
4896 printf %s "(cached) " >&6
4897 else $as_nop
4898 if test -n "$ac_ct_CC"; then
4899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904 IFS=$as_save_IFS
4905 case $as_dir in #(((
4906 '') as_dir=./ ;;
4907 */) ;;
4908 *) as_dir=$as_dir/ ;;
4909 esac
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_ac_ct_CC="gcc"
4913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4923 if test -n "$ac_ct_CC"; then
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4925 printf "%s\n" "$ac_ct_CC" >&6; }
4926 else
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 printf "%s\n" "no" >&6; }
4929 fi
4930
4931 if test "x$ac_ct_CC" = x; then
4932 CC=""
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935 yes:)
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938 ac_tool_warned=yes ;;
4939 esac
4940 CC=$ac_ct_CC
4941 fi
4942 else
4943 CC="$ac_cv_prog_CC"
4944 fi
4945
4946 if test -z "$CC"; then
4947 if test -n "$ac_tool_prefix"; then
4948 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4949 set dummy ${ac_tool_prefix}cc; ac_word=$2
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 printf %s "checking for $ac_word... " >&6; }
4952 if test ${ac_cv_prog_CC+y}
4953 then :
4954 printf %s "(cached) " >&6
4955 else $as_nop
4956 if test -n "$CC"; then
4957 ac_cv_prog_CC="$CC" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962 IFS=$as_save_IFS
4963 case $as_dir in #(((
4964 '') as_dir=./ ;;
4965 */) ;;
4966 *) as_dir=$as_dir/ ;;
4967 esac
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4970 ac_cv_prog_CC="${ac_tool_prefix}cc"
4971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4972 break 2
4973 fi
4974 done
4975 done
4976 IFS=$as_save_IFS
4977
4978 fi
4979 fi
4980 CC=$ac_cv_prog_CC
4981 if test -n "$CC"; then
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4983 printf "%s\n" "$CC" >&6; }
4984 else
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 printf "%s\n" "no" >&6; }
4987 fi
4988
4989
4990 fi
4991 fi
4992 if test -z "$CC"; then
4993 # Extract the first word of "cc", so it can be a program name with args.
4994 set dummy cc; ac_word=$2
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 printf %s "checking for $ac_word... " >&6; }
4997 if test ${ac_cv_prog_CC+y}
4998 then :
4999 printf %s "(cached) " >&6
5000 else $as_nop
5001 if test -n "$CC"; then
5002 ac_cv_prog_CC="$CC" # Let the user override the test.
5003 else
5004 ac_prog_rejected=no
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008 IFS=$as_save_IFS
5009 case $as_dir in #(((
5010 '') as_dir=./ ;;
5011 */) ;;
5012 *) as_dir=$as_dir/ ;;
5013 esac
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5016 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5017 ac_prog_rejected=yes
5018 continue
5019 fi
5020 ac_cv_prog_CC="cc"
5021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024 done
5025 done
5026 IFS=$as_save_IFS
5027
5028 if test $ac_prog_rejected = yes; then
5029 # We found a bogon in the path, so make sure we never use it.
5030 set dummy $ac_cv_prog_CC
5031 shift
5032 if test $# != 0; then
5033 # We chose a different compiler from the bogus one.
5034 # However, it has the same basename, so the bogon will be chosen
5035 # first if we set CC to just the basename; use the full file name.
5036 shift
5037 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5038 fi
5039 fi
5040 fi
5041 fi
5042 CC=$ac_cv_prog_CC
5043 if test -n "$CC"; then
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5045 printf "%s\n" "$CC" >&6; }
5046 else
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 printf "%s\n" "no" >&6; }
5049 fi
5050
5051
5052 fi
5053 if test -z "$CC"; then
5054 if test -n "$ac_tool_prefix"; then
5055 for ac_prog in cl.exe
5056 do
5057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 printf %s "checking for $ac_word... " >&6; }
5061 if test ${ac_cv_prog_CC+y}
5062 then :
5063 printf %s "(cached) " >&6
5064 else $as_nop
5065 if test -n "$CC"; then
5066 ac_cv_prog_CC="$CC" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071 IFS=$as_save_IFS
5072 case $as_dir in #(((
5073 '') as_dir=./ ;;
5074 */) ;;
5075 *) as_dir=$as_dir/ ;;
5076 esac
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 CC=$ac_cv_prog_CC
5090 if test -n "$CC"; then
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5092 printf "%s\n" "$CC" >&6; }
5093 else
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 printf "%s\n" "no" >&6; }
5096 fi
5097
5098
5099 test -n "$CC" && break
5100 done
5101 fi
5102 if test -z "$CC"; then
5103 ac_ct_CC=$CC
5104 for ac_prog in cl.exe
5105 do
5106 # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy $ac_prog; ac_word=$2
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 printf %s "checking for $ac_word... " >&6; }
5110 if test ${ac_cv_prog_ac_ct_CC+y}
5111 then :
5112 printf %s "(cached) " >&6
5113 else $as_nop
5114 if test -n "$ac_ct_CC"; then
5115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120 IFS=$as_save_IFS
5121 case $as_dir in #(((
5122 '') as_dir=./ ;;
5123 */) ;;
5124 *) as_dir=$as_dir/ ;;
5125 esac
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_ac_ct_CC="$ac_prog"
5129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5139 if test -n "$ac_ct_CC"; then
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5141 printf "%s\n" "$ac_ct_CC" >&6; }
5142 else
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 printf "%s\n" "no" >&6; }
5145 fi
5146
5147
5148 test -n "$ac_ct_CC" && break
5149 done
5150
5151 if test "x$ac_ct_CC" = x; then
5152 CC=""
5153 else
5154 case $cross_compiling:$ac_tool_warned in
5155 yes:)
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158 ac_tool_warned=yes ;;
5159 esac
5160 CC=$ac_ct_CC
5161 fi
5162 fi
5163
5164 fi
5165 if test -z "$CC"; then
5166 if test -n "$ac_tool_prefix"; then
5167 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5168 set dummy ${ac_tool_prefix}clang; ac_word=$2
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 printf %s "checking for $ac_word... " >&6; }
5171 if test ${ac_cv_prog_CC+y}
5172 then :
5173 printf %s "(cached) " >&6
5174 else $as_nop
5175 if test -n "$CC"; then
5176 ac_cv_prog_CC="$CC" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181 IFS=$as_save_IFS
5182 case $as_dir in #(((
5183 '') as_dir=./ ;;
5184 */) ;;
5185 *) as_dir=$as_dir/ ;;
5186 esac
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_CC="${ac_tool_prefix}clang"
5190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197 fi
5198 fi
5199 CC=$ac_cv_prog_CC
5200 if test -n "$CC"; then
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5202 printf "%s\n" "$CC" >&6; }
5203 else
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 printf "%s\n" "no" >&6; }
5206 fi
5207
5208
5209 fi
5210 if test -z "$ac_cv_prog_CC"; then
5211 ac_ct_CC=$CC
5212 # Extract the first word of "clang", so it can be a program name with args.
5213 set dummy clang; ac_word=$2
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 printf %s "checking for $ac_word... " >&6; }
5216 if test ${ac_cv_prog_ac_ct_CC+y}
5217 then :
5218 printf %s "(cached) " >&6
5219 else $as_nop
5220 if test -n "$ac_ct_CC"; then
5221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226 IFS=$as_save_IFS
5227 case $as_dir in #(((
5228 '') as_dir=./ ;;
5229 */) ;;
5230 *) as_dir=$as_dir/ ;;
5231 esac
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_CC="clang"
5235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5241
5242 fi
5243 fi
5244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5245 if test -n "$ac_ct_CC"; then
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5247 printf "%s\n" "$ac_ct_CC" >&6; }
5248 else
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 printf "%s\n" "no" >&6; }
5251 fi
5252
5253 if test "x$ac_ct_CC" = x; then
5254 CC=""
5255 else
5256 case $cross_compiling:$ac_tool_warned in
5257 yes:)
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5259 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5260 ac_tool_warned=yes ;;
5261 esac
5262 CC=$ac_ct_CC
5263 fi
5264 else
5265 CC="$ac_cv_prog_CC"
5266 fi
5267
5268 fi
5269
5270
5271 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5272 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5273 as_fn_error $? "no acceptable C compiler found in \$PATH
5274 See \`config.log' for more details" "$LINENO" 5; }
5275
5276 # Provide some information about the compiler.
5277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5278 set X $ac_compile
5279 ac_compiler=$2
5280 for ac_option in --version -v -V -qversion -version; do
5281 { { ac_try="$ac_compiler $ac_option >&5"
5282 case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5287 printf "%s\n" "$ac_try_echo"; } >&5
5288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5289 ac_status=$?
5290 if test -s conftest.err; then
5291 sed '10a\
5292 ... rest of stderr output deleted ...
5293 10q' conftest.err >conftest.er1
5294 cat conftest.er1 >&5
5295 fi
5296 rm -f conftest.er1 conftest.err
5297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298 test $ac_status = 0; }
5299 done
5300
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303
5304 int
5305 main (void)
5306 {
5307
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 ac_clean_files_save=$ac_clean_files
5313 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5314 # Try to create an executable without -o first, disregard a.out.
5315 # It will help us diagnose broken compilers, and finding out an intuition
5316 # of exeext.
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5318 printf %s "checking whether the C compiler works... " >&6; }
5319 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5320
5321 # The possible output files:
5322 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5323
5324 ac_rmfiles=
5325 for ac_file in $ac_files
5326 do
5327 case $ac_file in
5328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5329 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5330 esac
5331 done
5332 rm -f $ac_rmfiles
5333
5334 if { { ac_try="$ac_link_default"
5335 case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338 esac
5339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5340 printf "%s\n" "$ac_try_echo"; } >&5
5341 (eval "$ac_link_default") 2>&5
5342 ac_status=$?
5343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5344 test $ac_status = 0; }
5345 then :
5346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5348 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5349 # so that the user can short-circuit this test for compilers unknown to
5350 # Autoconf.
5351 for ac_file in $ac_files ''
5352 do
5353 test -f "$ac_file" || continue
5354 case $ac_file in
5355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5356 ;;
5357 [ab].out )
5358 # We found the default executable, but exeext='' is most
5359 # certainly right.
5360 break;;
5361 *.* )
5362 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5363 then :; else
5364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5365 fi
5366 # We set ac_cv_exeext here because the later test for it is not
5367 # safe: cross compilers may not add the suffix if given an `-o'
5368 # argument, so we may need to know it at that point already.
5369 # Even if this section looks crufty: it has the advantage of
5370 # actually working.
5371 break;;
5372 * )
5373 break;;
5374 esac
5375 done
5376 test "$ac_cv_exeext" = no && ac_cv_exeext=
5377
5378 else $as_nop
5379 ac_file=''
5380 fi
5381 if test -z "$ac_file"
5382 then :
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 printf "%s\n" "no" >&6; }
5385 printf "%s\n" "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5389 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5390 as_fn_error 77 "C compiler cannot create executables
5391 See \`config.log' for more details" "$LINENO" 5; }
5392 else $as_nop
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394 printf "%s\n" "yes" >&6; }
5395 fi
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5397 printf %s "checking for C compiler default output file name... " >&6; }
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5399 printf "%s\n" "$ac_file" >&6; }
5400 ac_exeext=$ac_cv_exeext
5401
5402 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5403 ac_clean_files=$ac_clean_files_save
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5405 printf %s "checking for suffix of executables... " >&6; }
5406 if { { ac_try="$ac_link"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5412 printf "%s\n" "$ac_try_echo"; } >&5
5413 (eval "$ac_link") 2>&5
5414 ac_status=$?
5415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5416 test $ac_status = 0; }
5417 then :
5418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5420 # work properly (i.e., refer to `conftest.exe'), while it won't with
5421 # `rm'.
5422 for ac_file in conftest.exe conftest conftest.*; do
5423 test -f "$ac_file" || continue
5424 case $ac_file in
5425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5427 break;;
5428 * ) break;;
5429 esac
5430 done
5431 else $as_nop
5432 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5433 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5434 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5435 See \`config.log' for more details" "$LINENO" 5; }
5436 fi
5437 rm -f conftest conftest$ac_cv_exeext
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5439 printf "%s\n" "$ac_cv_exeext" >&6; }
5440
5441 rm -f conftest.$ac_ext
5442 EXEEXT=$ac_cv_exeext
5443 ac_exeext=$EXEEXT
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <stdio.h>
5447 int
5448 main (void)
5449 {
5450 FILE *f = fopen ("conftest.out", "w");
5451 return ferror (f) || fclose (f) != 0;
5452
5453 ;
5454 return 0;
5455 }
5456 _ACEOF
5457 ac_clean_files="$ac_clean_files conftest.out"
5458 # Check that the compiler produces executables we can run. If not, either
5459 # the compiler is broken, or we cross compile.
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5461 printf %s "checking whether we are cross compiling... " >&6; }
5462 if test "$cross_compiling" != yes; then
5463 { { ac_try="$ac_link"
5464 case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5469 printf "%s\n" "$ac_try_echo"; } >&5
5470 (eval "$ac_link") 2>&5
5471 ac_status=$?
5472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }
5474 if { ac_try='./conftest$ac_cv_exeext'
5475 { { case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5480 printf "%s\n" "$ac_try_echo"; } >&5
5481 (eval "$ac_try") 2>&5
5482 ac_status=$?
5483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5484 test $ac_status = 0; }; }; then
5485 cross_compiling=no
5486 else
5487 if test "$cross_compiling" = maybe; then
5488 cross_compiling=yes
5489 else
5490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5491 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5492 as_fn_error 77 "cannot run C compiled programs.
5493 If you meant to cross compile, use \`--host'.
5494 See \`config.log' for more details" "$LINENO" 5; }
5495 fi
5496 fi
5497 fi
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5499 printf "%s\n" "$cross_compiling" >&6; }
5500
5501 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5502 ac_clean_files=$ac_clean_files_save
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5504 printf %s "checking for suffix of object files... " >&6; }
5505 if test ${ac_cv_objext+y}
5506 then :
5507 printf %s "(cached) " >&6
5508 else $as_nop
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511
5512 int
5513 main (void)
5514 {
5515
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.o conftest.obj
5521 if { { ac_try="$ac_compile"
5522 case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525 esac
5526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5527 printf "%s\n" "$ac_try_echo"; } >&5
5528 (eval "$ac_compile") 2>&5
5529 ac_status=$?
5530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531 test $ac_status = 0; }
5532 then :
5533 for ac_file in conftest.o conftest.obj conftest.*; do
5534 test -f "$ac_file" || continue;
5535 case $ac_file in
5536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5537 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5538 break;;
5539 esac
5540 done
5541 else $as_nop
5542 printf "%s\n" "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5546 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5547 as_fn_error $? "cannot compute suffix of object files: cannot compile
5548 See \`config.log' for more details" "$LINENO" 5; }
5549 fi
5550 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5551 fi
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5553 printf "%s\n" "$ac_cv_objext" >&6; }
5554 OBJEXT=$ac_cv_objext
5555 ac_objext=$OBJEXT
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5557 printf %s "checking whether the compiler supports GNU C... " >&6; }
5558 if test ${ac_cv_c_compiler_gnu+y}
5559 then :
5560 printf %s "(cached) " >&6
5561 else $as_nop
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564
5565 int
5566 main (void)
5567 {
5568 #ifndef __GNUC__
5569 choke me
5570 #endif
5571
5572 ;
5573 return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"
5577 then :
5578 ac_compiler_gnu=yes
5579 else $as_nop
5580 ac_compiler_gnu=no
5581 fi
5582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5584
5585 fi
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5587 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5589
5590 if test $ac_compiler_gnu = yes; then
5591 GCC=yes
5592 else
5593 GCC=
5594 fi
5595 ac_test_CFLAGS=${CFLAGS+y}
5596 ac_save_CFLAGS=$CFLAGS
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5598 printf %s "checking whether $CC accepts -g... " >&6; }
5599 if test ${ac_cv_prog_cc_g+y}
5600 then :
5601 printf %s "(cached) " >&6
5602 else $as_nop
5603 ac_save_c_werror_flag=$ac_c_werror_flag
5604 ac_c_werror_flag=yes
5605 ac_cv_prog_cc_g=no
5606 CFLAGS="-g"
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609
5610 int
5611 main (void)
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 if ac_fn_c_try_compile "$LINENO"
5619 then :
5620 ac_cv_prog_cc_g=yes
5621 else $as_nop
5622 CFLAGS=""
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625
5626 int
5627 main (void)
5628 {
5629
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"
5635 then :
5636
5637 else $as_nop
5638 ac_c_werror_flag=$ac_save_c_werror_flag
5639 CFLAGS="-g"
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642
5643 int
5644 main (void)
5645 {
5646
5647 ;
5648 return 0;
5649 }
5650 _ACEOF
5651 if ac_fn_c_try_compile "$LINENO"
5652 then :
5653 ac_cv_prog_cc_g=yes
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5660 ac_c_werror_flag=$ac_save_c_werror_flag
5661 fi
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5663 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5664 if test $ac_test_CFLAGS; then
5665 CFLAGS=$ac_save_CFLAGS
5666 elif test $ac_cv_prog_cc_g = yes; then
5667 if test "$GCC" = yes; then
5668 CFLAGS="-g -O2"
5669 else
5670 CFLAGS="-g"
5671 fi
5672 else
5673 if test "$GCC" = yes; then
5674 CFLAGS="-O2"
5675 else
5676 CFLAGS=
5677 fi
5678 fi
5679 ac_prog_cc_stdc=no
5680 if test x$ac_prog_cc_stdc = xno
5681 then :
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5683 printf %s "checking for $CC option to enable C11 features... " >&6; }
5684 if test ${ac_cv_prog_cc_c11+y}
5685 then :
5686 printf %s "(cached) " >&6
5687 else $as_nop
5688 ac_cv_prog_cc_c11=no
5689 ac_save_CC=$CC
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 $ac_c_conftest_c11_program
5693 _ACEOF
5694 for ac_arg in '' -std=gnu11
5695 do
5696 CC="$ac_save_CC $ac_arg"
5697 if ac_fn_c_try_compile "$LINENO"
5698 then :
5699 ac_cv_prog_cc_c11=$ac_arg
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.beam
5702 test "x$ac_cv_prog_cc_c11" != "xno" && break
5703 done
5704 rm -f conftest.$ac_ext
5705 CC=$ac_save_CC
5706 fi
5707
5708 if test "x$ac_cv_prog_cc_c11" = xno
5709 then :
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5711 printf "%s\n" "unsupported" >&6; }
5712 else $as_nop
5713 if test "x$ac_cv_prog_cc_c11" = x
5714 then :
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5716 printf "%s\n" "none needed" >&6; }
5717 else $as_nop
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5719 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5720 CC="$CC $ac_cv_prog_cc_c11"
5721 fi
5722 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5723 ac_prog_cc_stdc=c11
5724 fi
5725 fi
5726 if test x$ac_prog_cc_stdc = xno
5727 then :
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5729 printf %s "checking for $CC option to enable C99 features... " >&6; }
5730 if test ${ac_cv_prog_cc_c99+y}
5731 then :
5732 printf %s "(cached) " >&6
5733 else $as_nop
5734 ac_cv_prog_cc_c99=no
5735 ac_save_CC=$CC
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 $ac_c_conftest_c99_program
5739 _ACEOF
5740 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5741 do
5742 CC="$ac_save_CC $ac_arg"
5743 if ac_fn_c_try_compile "$LINENO"
5744 then :
5745 ac_cv_prog_cc_c99=$ac_arg
5746 fi
5747 rm -f core conftest.err conftest.$ac_objext conftest.beam
5748 test "x$ac_cv_prog_cc_c99" != "xno" && break
5749 done
5750 rm -f conftest.$ac_ext
5751 CC=$ac_save_CC
5752 fi
5753
5754 if test "x$ac_cv_prog_cc_c99" = xno
5755 then :
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5757 printf "%s\n" "unsupported" >&6; }
5758 else $as_nop
5759 if test "x$ac_cv_prog_cc_c99" = x
5760 then :
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5762 printf "%s\n" "none needed" >&6; }
5763 else $as_nop
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5765 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5766 CC="$CC $ac_cv_prog_cc_c99"
5767 fi
5768 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5769 ac_prog_cc_stdc=c99
5770 fi
5771 fi
5772 if test x$ac_prog_cc_stdc = xno
5773 then :
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5775 printf %s "checking for $CC option to enable C89 features... " >&6; }
5776 if test ${ac_cv_prog_cc_c89+y}
5777 then :
5778 printf %s "(cached) " >&6
5779 else $as_nop
5780 ac_cv_prog_cc_c89=no
5781 ac_save_CC=$CC
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 $ac_c_conftest_c89_program
5785 _ACEOF
5786 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5787 do
5788 CC="$ac_save_CC $ac_arg"
5789 if ac_fn_c_try_compile "$LINENO"
5790 then :
5791 ac_cv_prog_cc_c89=$ac_arg
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.beam
5794 test "x$ac_cv_prog_cc_c89" != "xno" && break
5795 done
5796 rm -f conftest.$ac_ext
5797 CC=$ac_save_CC
5798 fi
5799
5800 if test "x$ac_cv_prog_cc_c89" = xno
5801 then :
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5803 printf "%s\n" "unsupported" >&6; }
5804 else $as_nop
5805 if test "x$ac_cv_prog_cc_c89" = x
5806 then :
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5808 printf "%s\n" "none needed" >&6; }
5809 else $as_nop
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5811 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5812 CC="$CC $ac_cv_prog_cc_c89"
5813 fi
5814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5815 ac_prog_cc_stdc=c89
5816 fi
5817 fi
5818
5819 ac_ext=c
5820 ac_cpp='$CPP $CPPFLAGS'
5821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824
5825 ac_ext=c
5826 ac_cpp='$CPP $CPPFLAGS'
5827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5831 printf %s "checking how to run the C preprocessor... " >&6; }
5832 # On Suns, sometimes $CPP names a directory.
5833 if test -n "$CPP" && test -d "$CPP"; then
5834 CPP=
5835 fi
5836 if test -z "$CPP"; then
5837 if test ${ac_cv_prog_CPP+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else $as_nop
5841 # Double quotes because $CC needs to be expanded
5842 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5843 do
5844 ac_preproc_ok=false
5845 for ac_c_preproc_warn_flag in '' yes
5846 do
5847 # Use a header file that comes with gcc, so configuring glibc
5848 # with a fresh cross-compiler works.
5849 # On the NeXT, cc -E runs the code through the compiler's parser,
5850 # not just through cpp. "Syntax error" is here to catch this case.
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <limits.h>
5854 Syntax error
5855 _ACEOF
5856 if ac_fn_c_try_cpp "$LINENO"
5857 then :
5858
5859 else $as_nop
5860 # Broken: fails on valid input.
5861 continue
5862 fi
5863 rm -f conftest.err conftest.i conftest.$ac_ext
5864
5865 # OK, works on sane cases. Now check whether nonexistent headers
5866 # can be detected and how.
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #include <ac_nonexistent.h>
5870 _ACEOF
5871 if ac_fn_c_try_cpp "$LINENO"
5872 then :
5873 # Broken: success on invalid input.
5874 continue
5875 else $as_nop
5876 # Passes both tests.
5877 ac_preproc_ok=:
5878 break
5879 fi
5880 rm -f conftest.err conftest.i conftest.$ac_ext
5881
5882 done
5883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5884 rm -f conftest.i conftest.err conftest.$ac_ext
5885 if $ac_preproc_ok
5886 then :
5887 break
5888 fi
5889
5890 done
5891 ac_cv_prog_CPP=$CPP
5892
5893 fi
5894 CPP=$ac_cv_prog_CPP
5895 else
5896 ac_cv_prog_CPP=$CPP
5897 fi
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5899 printf "%s\n" "$CPP" >&6; }
5900 ac_preproc_ok=false
5901 for ac_c_preproc_warn_flag in '' yes
5902 do
5903 # Use a header file that comes with gcc, so configuring glibc
5904 # with a fresh cross-compiler works.
5905 # On the NeXT, cc -E runs the code through the compiler's parser,
5906 # not just through cpp. "Syntax error" is here to catch this case.
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <limits.h>
5910 Syntax error
5911 _ACEOF
5912 if ac_fn_c_try_cpp "$LINENO"
5913 then :
5914
5915 else $as_nop
5916 # Broken: fails on valid input.
5917 continue
5918 fi
5919 rm -f conftest.err conftest.i conftest.$ac_ext
5920
5921 # OK, works on sane cases. Now check whether nonexistent headers
5922 # can be detected and how.
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #include <ac_nonexistent.h>
5926 _ACEOF
5927 if ac_fn_c_try_cpp "$LINENO"
5928 then :
5929 # Broken: success on invalid input.
5930 continue
5931 else $as_nop
5932 # Passes both tests.
5933 ac_preproc_ok=:
5934 break
5935 fi
5936 rm -f conftest.err conftest.i conftest.$ac_ext
5937
5938 done
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.i conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok
5942 then :
5943
5944 else $as_nop
5945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5946 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5947 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5948 See \`config.log' for more details" "$LINENO" 5; }
5949 fi
5950
5951 ac_ext=c
5952 ac_cpp='$CPP $CPPFLAGS'
5953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5958 printf %s "checking for grep that handles long lines and -e... " >&6; }
5959 if test ${ac_cv_path_GREP+y}
5960 then :
5961 printf %s "(cached) " >&6
5962 else $as_nop
5963 if test -z "$GREP"; then
5964 ac_path_GREP_found=false
5965 # Loop through the user's path and test for each of PROGNAME-LIST
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5968 do
5969 IFS=$as_save_IFS
5970 case $as_dir in #(((
5971 '') as_dir=./ ;;
5972 */) ;;
5973 *) as_dir=$as_dir/ ;;
5974 esac
5975 for ac_prog in grep ggrep
5976 do
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5979 as_fn_executable_p "$ac_path_GREP" || continue
5980 # Check for GNU ac_path_GREP and select it if it is found.
5981 # Check for GNU $ac_path_GREP
5982 case `"$ac_path_GREP" --version 2>&1` in
5983 *GNU*)
5984 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5985 *)
5986 ac_count=0
5987 printf %s 0123456789 >"conftest.in"
5988 while :
5989 do
5990 cat "conftest.in" "conftest.in" >"conftest.tmp"
5991 mv "conftest.tmp" "conftest.in"
5992 cp "conftest.in" "conftest.nl"
5993 printf "%s\n" 'GREP' >> "conftest.nl"
5994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5996 as_fn_arith $ac_count + 1 && ac_count=$as_val
5997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5998 # Best one so far, save it but keep looking for a better one
5999 ac_cv_path_GREP="$ac_path_GREP"
6000 ac_path_GREP_max=$ac_count
6001 fi
6002 # 10*(2^10) chars as input seems more than enough
6003 test $ac_count -gt 10 && break
6004 done
6005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6006 esac
6007
6008 $ac_path_GREP_found && break 3
6009 done
6010 done
6011 done
6012 IFS=$as_save_IFS
6013 if test -z "$ac_cv_path_GREP"; then
6014 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6015 fi
6016 else
6017 ac_cv_path_GREP=$GREP
6018 fi
6019
6020 fi
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6022 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6023 GREP="$ac_cv_path_GREP"
6024
6025
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6027 printf %s "checking for a sed that does not truncate output... " >&6; }
6028 if test ${ac_cv_path_SED+y}
6029 then :
6030 printf %s "(cached) " >&6
6031 else $as_nop
6032 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6033 for ac_i in 1 2 3 4 5 6 7; do
6034 ac_script="$ac_script$as_nl$ac_script"
6035 done
6036 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6037 { ac_script=; unset ac_script;}
6038 if test -z "$SED"; then
6039 ac_path_SED_found=false
6040 # Loop through the user's path and test for each of PROGNAME-LIST
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044 IFS=$as_save_IFS
6045 case $as_dir in #(((
6046 '') as_dir=./ ;;
6047 */) ;;
6048 *) as_dir=$as_dir/ ;;
6049 esac
6050 for ac_prog in sed gsed
6051 do
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6054 as_fn_executable_p "$ac_path_SED" || continue
6055 # Check for GNU ac_path_SED and select it if it is found.
6056 # Check for GNU $ac_path_SED
6057 case `"$ac_path_SED" --version 2>&1` in
6058 *GNU*)
6059 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6060 *)
6061 ac_count=0
6062 printf %s 0123456789 >"conftest.in"
6063 while :
6064 do
6065 cat "conftest.in" "conftest.in" >"conftest.tmp"
6066 mv "conftest.tmp" "conftest.in"
6067 cp "conftest.in" "conftest.nl"
6068 printf "%s\n" '' >> "conftest.nl"
6069 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6071 as_fn_arith $ac_count + 1 && ac_count=$as_val
6072 if test $ac_count -gt ${ac_path_SED_max-0}; then
6073 # Best one so far, save it but keep looking for a better one
6074 ac_cv_path_SED="$ac_path_SED"
6075 ac_path_SED_max=$ac_count
6076 fi
6077 # 10*(2^10) chars as input seems more than enough
6078 test $ac_count -gt 10 && break
6079 done
6080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6081 esac
6082
6083 $ac_path_SED_found && break 3
6084 done
6085 done
6086 done
6087 IFS=$as_save_IFS
6088 if test -z "$ac_cv_path_SED"; then
6089 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6090 fi
6091 else
6092 ac_cv_path_SED=$SED
6093 fi
6094
6095 fi
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6097 printf "%s\n" "$ac_cv_path_SED" >&6; }
6098 SED="$ac_cv_path_SED"
6099 rm -f conftest.sed
6100
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6102 printf %s "checking for egrep... " >&6; }
6103 if test ${ac_cv_path_EGREP+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else $as_nop
6107 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6108 then ac_cv_path_EGREP="$GREP -E"
6109 else
6110 if test -z "$EGREP"; then
6111 ac_path_EGREP_found=false
6112 # Loop through the user's path and test for each of PROGNAME-LIST
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6115 do
6116 IFS=$as_save_IFS
6117 case $as_dir in #(((
6118 '') as_dir=./ ;;
6119 */) ;;
6120 *) as_dir=$as_dir/ ;;
6121 esac
6122 for ac_prog in egrep
6123 do
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6126 as_fn_executable_p "$ac_path_EGREP" || continue
6127 # Check for GNU ac_path_EGREP and select it if it is found.
6128 # Check for GNU $ac_path_EGREP
6129 case `"$ac_path_EGREP" --version 2>&1` in
6130 *GNU*)
6131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6132 *)
6133 ac_count=0
6134 printf %s 0123456789 >"conftest.in"
6135 while :
6136 do
6137 cat "conftest.in" "conftest.in" >"conftest.tmp"
6138 mv "conftest.tmp" "conftest.in"
6139 cp "conftest.in" "conftest.nl"
6140 printf "%s\n" 'EGREP' >> "conftest.nl"
6141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6143 as_fn_arith $ac_count + 1 && ac_count=$as_val
6144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6145 # Best one so far, save it but keep looking for a better one
6146 ac_cv_path_EGREP="$ac_path_EGREP"
6147 ac_path_EGREP_max=$ac_count
6148 fi
6149 # 10*(2^10) chars as input seems more than enough
6150 test $ac_count -gt 10 && break
6151 done
6152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6153 esac
6154
6155 $ac_path_EGREP_found && break 3
6156 done
6157 done
6158 done
6159 IFS=$as_save_IFS
6160 if test -z "$ac_cv_path_EGREP"; then
6161 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6162 fi
6163 else
6164 ac_cv_path_EGREP=$EGREP
6165 fi
6166
6167 fi
6168 fi
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6170 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6171 EGREP="$ac_cv_path_EGREP"
6172
6173
6174
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC compiler name" >&5
6176 printf %s "checking for CC compiler name... " >&6; }
6177 if test ${ac_cv_cc_name+y}
6178 then :
6179 printf %s "(cached) " >&6
6180 else $as_nop
6181
6182 cat > conftest.c <<EOF
6183 #if defined(__EMSCRIPTEN__)
6184 emcc
6185 #elif defined(__INTEL_COMPILER) || defined(__ICC)
6186 icc
6187 #elif defined(__ibmxl__) || defined(__xlc__) || defined(__xlC__)
6188 xlc
6189 #elif defined(_MSC_VER)
6190 msvc
6191 #elif defined(__clang__)
6192 clang
6193 #elif defined(__GNUC__)
6194 gcc
6195 #else
6196 # error unknown compiler
6197 #endif
6198 EOF
6199
6200 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
6201 ac_cv_cc_name=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
6202 if test $(expr "//$CC" : '.*/\(.*\)') = "mpicc"; then
6203 ac_cv_cc_name="mpicc"
6204 fi
6205 else
6206 ac_cv_cc_name="unknown"
6207 fi
6208 rm -f conftest.c conftest.out
6209
6210 fi
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_name" >&5
6212 printf "%s\n" "$ac_cv_cc_name" >&6; }
6213
6214 # checks for UNIX variants that set C preprocessor variables
6215 # may set _GNU_SOURCE, __EXTENSIONS__, _POSIX_PTHREAD_SEMANTICS,
6216 # _POSIX_SOURCE, _POSIX_1_SOURCE, and more
6217
6218 ac_header= ac_cache=
6219 for ac_item in $ac_header_c_list
6220 do
6221 if test $ac_cache; then
6222 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6223 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6224 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6225 fi
6226 ac_header= ac_cache=
6227 elif test $ac_header; then
6228 ac_cache=$ac_item
6229 else
6230 ac_header=$ac_item
6231 fi
6232 done
6233
6234
6235
6236
6237
6238
6239
6240
6241 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6242 then :
6243
6244 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6245
6246 fi
6247
6248
6249
6250
6251
6252
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6254 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6255 if test ${ac_cv_safe_to_define___extensions__+y}
6256 then :
6257 printf %s "(cached) " >&6
6258 else $as_nop
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261
6262 # define __EXTENSIONS__ 1
6263 $ac_includes_default
6264 int
6265 main (void)
6266 {
6267
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 if ac_fn_c_try_compile "$LINENO"
6273 then :
6274 ac_cv_safe_to_define___extensions__=yes
6275 else $as_nop
6276 ac_cv_safe_to_define___extensions__=no
6277 fi
6278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6279 fi
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6281 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6282
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6284 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6285 if test ${ac_cv_should_define__xopen_source+y}
6286 then :
6287 printf %s "(cached) " >&6
6288 else $as_nop
6289 ac_cv_should_define__xopen_source=no
6290 if test $ac_cv_header_wchar_h = yes
6291 then :
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294
6295 #include <wchar.h>
6296 mbstate_t x;
6297 int
6298 main (void)
6299 {
6300
6301 ;
6302 return 0;
6303 }
6304 _ACEOF
6305 if ac_fn_c_try_compile "$LINENO"
6306 then :
6307
6308 else $as_nop
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311
6312 #define _XOPEN_SOURCE 500
6313 #include <wchar.h>
6314 mbstate_t x;
6315 int
6316 main (void)
6317 {
6318
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 if ac_fn_c_try_compile "$LINENO"
6324 then :
6325 ac_cv_should_define__xopen_source=yes
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6328 fi
6329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6330 fi
6331 fi
6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6333 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6334
6335 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6336
6337 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6338
6339 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6340
6341 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6342
6343 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6344
6345 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6346
6347 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6348
6349 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6350
6351 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6352
6353 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6354
6355 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6356
6357 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6358
6359 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6360
6361 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6362
6363 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6364
6365 if test $ac_cv_header_minix_config_h = yes
6366 then :
6367 MINIX=yes
6368 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6369
6370 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6371
6372 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6373
6374 else $as_nop
6375 MINIX=
6376 fi
6377 if test $ac_cv_safe_to_define___extensions__ = yes
6378 then :
6379 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6380
6381 fi
6382 if test $ac_cv_should_define__xopen_source = yes
6383 then :
6384 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6385
6386 fi
6387
6388
6389
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC compatible compiler" >&5
6391 printf %s "checking for GCC compatible compiler... " >&6; }
6392 if test ${ac_cv_gcc_compat+y}
6393 then :
6394 printf %s "(cached) " >&6
6395 else $as_nop
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398
6399 #if !defined(__GNUC__)
6400 #error "not GCC compatible"
6401 #else
6402 /* GCC compatible! */
6403 #endif
6404
6405 _ACEOF
6406 if ac_fn_c_try_cpp "$LINENO"
6407 then :
6408 ac_cv_gcc_compat=yes
6409 else $as_nop
6410 ac_cv_gcc_compat=no
6411 fi
6412 rm -f conftest.err conftest.i conftest.$ac_ext
6413 fi
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_compat" >&5
6415 printf "%s\n" "$ac_cv_gcc_compat" >&6; }
6416
6417
6418
6419 preset_cxx="$CXX"
6420 if test -z "$CXX"
6421 then
6422 case "$CC" in
6423 gcc) if test -n "$ac_tool_prefix"; then
6424 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
6425 set dummy ${ac_tool_prefix}g++; ac_word=$2
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 printf %s "checking for $ac_word... " >&6; }
6428 if test ${ac_cv_path_CXX+y}
6429 then :
6430 printf %s "(cached) " >&6
6431 else $as_nop
6432 case $CXX in
6433 [\\/]* | ?:[\\/]*)
6434 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6435 ;;
6436 *)
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in notfound
6439 do
6440 IFS=$as_save_IFS
6441 case $as_dir in #(((
6442 '') as_dir=./ ;;
6443 */) ;;
6444 *) as_dir=$as_dir/ ;;
6445 esac
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6448 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 ;;
6457 esac
6458 fi
6459 CXX=$ac_cv_path_CXX
6460 if test -n "$CXX"; then
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6462 printf "%s\n" "$CXX" >&6; }
6463 else
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 printf "%s\n" "no" >&6; }
6466 fi
6467
6468
6469 fi
6470 if test -z "$ac_cv_path_CXX"; then
6471 ac_pt_CXX=$CXX
6472 # Extract the first word of "g++", so it can be a program name with args.
6473 set dummy g++; ac_word=$2
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 printf %s "checking for $ac_word... " >&6; }
6476 if test ${ac_cv_path_ac_pt_CXX+y}
6477 then :
6478 printf %s "(cached) " >&6
6479 else $as_nop
6480 case $ac_pt_CXX in
6481 [\\/]* | ?:[\\/]*)
6482 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6483 ;;
6484 *)
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in notfound
6487 do
6488 IFS=$as_save_IFS
6489 case $as_dir in #(((
6490 '') as_dir=./ ;;
6491 */) ;;
6492 *) as_dir=$as_dir/ ;;
6493 esac
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6496 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6498 break 2
6499 fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 ;;
6505 esac
6506 fi
6507 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6508 if test -n "$ac_pt_CXX"; then
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6510 printf "%s\n" "$ac_pt_CXX" >&6; }
6511 else
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 printf "%s\n" "no" >&6; }
6514 fi
6515
6516 if test "x$ac_pt_CXX" = x; then
6517 CXX="g++"
6518 else
6519 case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525 CXX=$ac_pt_CXX
6526 fi
6527 else
6528 CXX="$ac_cv_path_CXX"
6529 fi
6530 ;;
6531 cc) if test -n "$ac_tool_prefix"; then
6532 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}c++; ac_word=$2
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 printf %s "checking for $ac_word... " >&6; }
6536 if test ${ac_cv_path_CXX+y}
6537 then :
6538 printf %s "(cached) " >&6
6539 else $as_nop
6540 case $CXX in
6541 [\\/]* | ?:[\\/]*)
6542 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6543 ;;
6544 *)
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in notfound
6547 do
6548 IFS=$as_save_IFS
6549 case $as_dir in #(((
6550 '') as_dir=./ ;;
6551 */) ;;
6552 *) as_dir=$as_dir/ ;;
6553 esac
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6556 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560 done
6561 done
6562 IFS=$as_save_IFS
6563
6564 ;;
6565 esac
6566 fi
6567 CXX=$ac_cv_path_CXX
6568 if test -n "$CXX"; then
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6570 printf "%s\n" "$CXX" >&6; }
6571 else
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 printf "%s\n" "no" >&6; }
6574 fi
6575
6576
6577 fi
6578 if test -z "$ac_cv_path_CXX"; then
6579 ac_pt_CXX=$CXX
6580 # Extract the first word of "c++", so it can be a program name with args.
6581 set dummy c++; ac_word=$2
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 printf %s "checking for $ac_word... " >&6; }
6584 if test ${ac_cv_path_ac_pt_CXX+y}
6585 then :
6586 printf %s "(cached) " >&6
6587 else $as_nop
6588 case $ac_pt_CXX in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6591 ;;
6592 *)
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in notfound
6595 do
6596 IFS=$as_save_IFS
6597 case $as_dir in #(((
6598 '') as_dir=./ ;;
6599 */) ;;
6600 *) as_dir=$as_dir/ ;;
6601 esac
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6604 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 ;;
6613 esac
6614 fi
6615 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6616 if test -n "$ac_pt_CXX"; then
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6618 printf "%s\n" "$ac_pt_CXX" >&6; }
6619 else
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 printf "%s\n" "no" >&6; }
6622 fi
6623
6624 if test "x$ac_pt_CXX" = x; then
6625 CXX="c++"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 CXX=$ac_pt_CXX
6634 fi
6635 else
6636 CXX="$ac_cv_path_CXX"
6637 fi
6638 ;;
6639 clang|*/clang) if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}clang++; ac_word=$2
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 printf %s "checking for $ac_word... " >&6; }
6644 if test ${ac_cv_path_CXX+y}
6645 then :
6646 printf %s "(cached) " >&6
6647 else $as_nop
6648 case $CXX in
6649 [\\/]* | ?:[\\/]*)
6650 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6651 ;;
6652 *)
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in notfound
6655 do
6656 IFS=$as_save_IFS
6657 case $as_dir in #(((
6658 '') as_dir=./ ;;
6659 */) ;;
6660 *) as_dir=$as_dir/ ;;
6661 esac
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6664 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672 ;;
6673 esac
6674 fi
6675 CXX=$ac_cv_path_CXX
6676 if test -n "$CXX"; then
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6678 printf "%s\n" "$CXX" >&6; }
6679 else
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 printf "%s\n" "no" >&6; }
6682 fi
6683
6684
6685 fi
6686 if test -z "$ac_cv_path_CXX"; then
6687 ac_pt_CXX=$CXX
6688 # Extract the first word of "clang++", so it can be a program name with args.
6689 set dummy clang++; ac_word=$2
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 printf %s "checking for $ac_word... " >&6; }
6692 if test ${ac_cv_path_ac_pt_CXX+y}
6693 then :
6694 printf %s "(cached) " >&6
6695 else $as_nop
6696 case $ac_pt_CXX in
6697 [\\/]* | ?:[\\/]*)
6698 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6699 ;;
6700 *)
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in notfound
6703 do
6704 IFS=$as_save_IFS
6705 case $as_dir in #(((
6706 '') as_dir=./ ;;
6707 */) ;;
6708 *) as_dir=$as_dir/ ;;
6709 esac
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6712 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 ;;
6721 esac
6722 fi
6723 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6724 if test -n "$ac_pt_CXX"; then
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6726 printf "%s\n" "$ac_pt_CXX" >&6; }
6727 else
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 printf "%s\n" "no" >&6; }
6730 fi
6731
6732 if test "x$ac_pt_CXX" = x; then
6733 CXX="clang++"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736 yes:)
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741 CXX=$ac_pt_CXX
6742 fi
6743 else
6744 CXX="$ac_cv_path_CXX"
6745 fi
6746 ;;
6747 icc|*/icc) if test -n "$ac_tool_prefix"; then
6748 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
6749 set dummy ${ac_tool_prefix}icpc; ac_word=$2
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 printf %s "checking for $ac_word... " >&6; }
6752 if test ${ac_cv_path_CXX+y}
6753 then :
6754 printf %s "(cached) " >&6
6755 else $as_nop
6756 case $CXX in
6757 [\\/]* | ?:[\\/]*)
6758 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6759 ;;
6760 *)
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in notfound
6763 do
6764 IFS=$as_save_IFS
6765 case $as_dir in #(((
6766 '') as_dir=./ ;;
6767 */) ;;
6768 *) as_dir=$as_dir/ ;;
6769 esac
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6772 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 ;;
6781 esac
6782 fi
6783 CXX=$ac_cv_path_CXX
6784 if test -n "$CXX"; then
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6786 printf "%s\n" "$CXX" >&6; }
6787 else
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 printf "%s\n" "no" >&6; }
6790 fi
6791
6792
6793 fi
6794 if test -z "$ac_cv_path_CXX"; then
6795 ac_pt_CXX=$CXX
6796 # Extract the first word of "icpc", so it can be a program name with args.
6797 set dummy icpc; ac_word=$2
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 printf %s "checking for $ac_word... " >&6; }
6800 if test ${ac_cv_path_ac_pt_CXX+y}
6801 then :
6802 printf %s "(cached) " >&6
6803 else $as_nop
6804 case $ac_pt_CXX in
6805 [\\/]* | ?:[\\/]*)
6806 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6807 ;;
6808 *)
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in notfound
6811 do
6812 IFS=$as_save_IFS
6813 case $as_dir in #(((
6814 '') as_dir=./ ;;
6815 */) ;;
6816 *) as_dir=$as_dir/ ;;
6817 esac
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6820 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824 done
6825 done
6826 IFS=$as_save_IFS
6827
6828 ;;
6829 esac
6830 fi
6831 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6832 if test -n "$ac_pt_CXX"; then
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6834 printf "%s\n" "$ac_pt_CXX" >&6; }
6835 else
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 printf "%s\n" "no" >&6; }
6838 fi
6839
6840 if test "x$ac_pt_CXX" = x; then
6841 CXX="icpc"
6842 else
6843 case $cross_compiling:$ac_tool_warned in
6844 yes:)
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847 ac_tool_warned=yes ;;
6848 esac
6849 CXX=$ac_pt_CXX
6850 fi
6851 else
6852 CXX="$ac_cv_path_CXX"
6853 fi
6854 ;;
6855 esac
6856 if test "$CXX" = "notfound"
6857 then
6858 CXX=""
6859 fi
6860 fi
6861 if test -z "$CXX"
6862 then
6863 if test -n "$ac_tool_prefix"; then
6864 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6865 do
6866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 printf %s "checking for $ac_word... " >&6; }
6870 if test ${ac_cv_prog_CXX+y}
6871 then :
6872 printf %s "(cached) " >&6
6873 else $as_nop
6874 if test -n "$CXX"; then
6875 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880 IFS=$as_save_IFS
6881 case $as_dir in #(((
6882 '') as_dir=./ ;;
6883 */) ;;
6884 *) as_dir=$as_dir/ ;;
6885 esac
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 CXX=$ac_cv_prog_CXX
6899 if test -n "$CXX"; then
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6901 printf "%s\n" "$CXX" >&6; }
6902 else
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 printf "%s\n" "no" >&6; }
6905 fi
6906
6907
6908 test -n "$CXX" && break
6909 done
6910 fi
6911 if test -z "$CXX"; then
6912 ac_ct_CXX=$CXX
6913 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6914 do
6915 # Extract the first word of "$ac_prog", so it can be a program name with args.
6916 set dummy $ac_prog; ac_word=$2
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 printf %s "checking for $ac_word... " >&6; }
6919 if test ${ac_cv_prog_ac_ct_CXX+y}
6920 then :
6921 printf %s "(cached) " >&6
6922 else $as_nop
6923 if test -n "$ac_ct_CXX"; then
6924 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929 IFS=$as_save_IFS
6930 case $as_dir in #(((
6931 '') as_dir=./ ;;
6932 */) ;;
6933 *) as_dir=$as_dir/ ;;
6934 esac
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_ac_ct_CXX="$ac_prog"
6938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6944
6945 fi
6946 fi
6947 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6948 if test -n "$ac_ct_CXX"; then
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6950 printf "%s\n" "$ac_ct_CXX" >&6; }
6951 else
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 printf "%s\n" "no" >&6; }
6954 fi
6955
6956
6957 test -n "$ac_ct_CXX" && break
6958 done
6959
6960 if test "x$ac_ct_CXX" = x; then
6961 CXX="notfound"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 CXX=$ac_ct_CXX
6970 fi
6971 fi
6972
6973 if test "$CXX" = "notfound"
6974 then
6975 CXX=""
6976 fi
6977 fi
6978 if test "$preset_cxx" != "$CXX"
6979 then
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
6981
6982 By default, distutils will build C++ extension modules with \"$CXX\".
6983 If this is not intended, then set CXX on the configure command line.
6984 " >&5
6985 printf "%s\n" "$as_me:
6986
6987 By default, distutils will build C++ extension modules with \"$CXX\".
6988 If this is not intended, then set CXX on the configure command line.
6989 " >&6;}
6990 fi
6991
6992
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
6994 printf %s "checking for the platform triplet based on compiler characteristics... " >&6; }
6995 if $CPP $CPPFLAGS $srcdir/Misc/platform_triplet.c >conftest.out 2>/dev/null; then
6996 PLATFORM_TRIPLET=`grep '^PLATFORM_TRIPLET=' conftest.out | tr -d ' '`
6997 PLATFORM_TRIPLET="${PLATFORM_TRIPLET#PLATFORM_TRIPLET=}"
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
6999 printf "%s\n" "$PLATFORM_TRIPLET" >&6; }
7000 else
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7002 printf "%s\n" "none" >&6; }
7003 fi
7004 rm -f conftest.out
7005
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5
7007 printf %s "checking for multiarch... " >&6; }
7008 case $ac_sys_system in #(
7009 Darwin*) :
7010 MULTIARCH="" ;; #(
7011 iOS) :
7012 MULTIARCH="" ;; #(
7013 FreeBSD*) :
7014 MULTIARCH="" ;; #(
7015 *) :
7016 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
7017 ;;
7018 esac
7019
7020
7021 if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
7022 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
7023 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
7024 fi
7025 elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
7026 MULTIARCH=$PLATFORM_TRIPLET
7027 fi
7028
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5
7030 printf "%s\n" "$MULTIARCH" >&6; }
7031
7032 case $ac_sys_system in #(
7033 iOS) :
7034 SOABI_PLATFORM=`echo "$PLATFORM_TRIPLET" | cut -d '-' -f2` ;; #(
7035 *) :
7036 SOABI_PLATFORM=$PLATFORM_TRIPLET
7037 ;;
7038 esac
7039
7040 if test x$MULTIARCH != x; then
7041 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
7042 fi
7043
7044
7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PEP 11 support tier" >&5
7046 printf %s "checking for PEP 11 support tier... " >&6; }
7047 case $host/$ac_cv_cc_name in #(
7048 x86_64-*-linux-gnu/gcc) :
7049 PY_SUPPORT_TIER=1 ;; #(
7050 x86_64-apple-darwin*/clang) :
7051 PY_SUPPORT_TIER=1 ;; #(
7052 aarch64-apple-darwin*/clang) :
7053 PY_SUPPORT_TIER=1 ;; #(
7054 i686-pc-windows-msvc/msvc) :
7055 PY_SUPPORT_TIER=1 ;; #(
7056 x86_64-pc-windows-msvc/msvc) :
7057 PY_SUPPORT_TIER=1 ;; #(
7058
7059 aarch64-*-linux-gnu/gcc) :
7060 PY_SUPPORT_TIER=2 ;; #(
7061 aarch64-*-linux-gnu/clang) :
7062 PY_SUPPORT_TIER=2 ;; #(
7063 powerpc64le-*-linux-gnu/gcc) :
7064 PY_SUPPORT_TIER=2 ;; #(
7065 wasm32-unknown-wasip1/clang) :
7066 PY_SUPPORT_TIER=2 ;; #(
7067 x86_64-*-linux-gnu/clang) :
7068 PY_SUPPORT_TIER=2 ;; #(
7069
7070 aarch64-pc-windows-msvc/msvc) :
7071 PY_SUPPORT_TIER=3 ;; #(
7072 armv7l-*-linux-gnueabihf/gcc) :
7073 PY_SUPPORT_TIER=3 ;; #(
7074 powerpc64le-*-linux-gnu/clang) :
7075 PY_SUPPORT_TIER=3 ;; #(
7076 s390x-*-linux-gnu/gcc) :
7077 PY_SUPPORT_TIER=3 ;; #(
7078 x86_64-*-freebsd*/clang) :
7079 PY_SUPPORT_TIER=3 ;; #(
7080 aarch64-apple-ios*-simulator/clang) :
7081 PY_SUPPORT_TIER=3 ;; #(
7082 aarch64-apple-ios*/clang) :
7083 PY_SUPPORT_TIER=3 ;; #(
7084 aarch64-*-linux-android/clang) :
7085 PY_SUPPORT_TIER=3 ;; #(
7086 x86_64-*-linux-android/clang) :
7087 PY_SUPPORT_TIER=3 ;; #(
7088 *) :
7089
7090 PY_SUPPORT_TIER=0
7091 ;;
7092 esac
7093
7094 case $PY_SUPPORT_TIER in #(
7095 1) :
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 1 (supported)" >&5
7097 printf "%s\n" "$host/$ac_cv_cc_name has tier 1 (supported)" >&6; } ;; #(
7098 2) :
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 2 (supported)" >&5
7100 printf "%s\n" "$host/$ac_cv_cc_name has tier 2 (supported)" >&6; } ;; #(
7101 3) :
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 3 (partially supported)" >&5
7103 printf "%s\n" "$host/$ac_cv_cc_name has tier 3 (partially supported)" >&6; } ;; #(
7104 *) :
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $host/$ac_cv_cc_name is not supported" >&5
7106 printf "%s\n" "$as_me: WARNING: $host/$ac_cv_cc_name is not supported" >&2;}
7107 ;;
7108 esac
7109
7110
7111 printf "%s\n" "#define PY_SUPPORT_TIER $PY_SUPPORT_TIER" >>confdefs.h
7112
7113
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
7115 printf %s "checking for -Wl,--no-as-needed... " >&6; }
7116 if test ${ac_cv_wl_no_as_needed+y}
7117 then :
7118 printf %s "(cached) " >&6
7119 else $as_nop
7120
7121 save_LDFLAGS="$LDFLAGS"
7122 as_fn_append LDFLAGS " -Wl,--no-as-needed"
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125
7126 int
7127 main (void)
7128 {
7129
7130 ;
7131 return 0;
7132 }
7133 _ACEOF
7134 if ac_fn_c_try_link "$LINENO"
7135 then :
7136 NO_AS_NEEDED="-Wl,--no-as-needed"
7137 ac_cv_wl_no_as_needed=yes
7138 else $as_nop
7139 NO_AS_NEEDED=""
7140 ac_cv_wl_no_as_needed=no
7141 fi
7142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7143 conftest$ac_exeext conftest.$ac_ext
7144 LDFLAGS="$save_LDFLAGS"
7145
7146 fi
7147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wl_no_as_needed" >&5
7148 printf "%s\n" "$ac_cv_wl_no_as_needed" >&6; }
7149
7150
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
7152 printf %s "checking for the Android API level... " >&6; }
7153 cat > conftest.c <<EOF
7154 #ifdef __ANDROID__
7155 android_api = __ANDROID_API__
7156 arm_arch = __ARM_ARCH
7157 #else
7158 #error not Android
7159 #endif
7160 EOF
7161
7162 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
7163 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
7164 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
7166 printf "%s\n" "$ANDROID_API_LEVEL" >&6; }
7167 if test -z "$ANDROID_API_LEVEL"; then
7168 as_fn_error $? "Fatal: you must define __ANDROID_API__" "$LINENO" 5
7169 fi
7170
7171 printf "%s\n" "#define ANDROID_API_LEVEL $ANDROID_API_LEVEL" >>confdefs.h
7172
7173
7174 # For __android_log_write() in Python/pylifecycle.c.
7175 LIBS="$LIBS -llog"
7176
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
7178 printf %s "checking for the Android arm ABI... " >&6; }
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
7180 printf "%s\n" "$_arm_arch" >&6; }
7181 if test "$_arm_arch" = 7; then
7182 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
7183 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
7184 fi
7185 else
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
7187 printf "%s\n" "not Android" >&6; }
7188 fi
7189 rm -f conftest.c conftest.out
7190
7191 # Check for unsupported systems
7192 case $ac_sys_system/$ac_sys_release in #(
7193 atheos*|Linux*/1*) :
7194
7195 as_fn_error $? "This system \($ac_sys_system/$ac_sys_release\) is no longer supported. See README for details." "$LINENO" 5
7196
7197 ;; #(
7198 *) :
7199 ;;
7200 esac
7201
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-emscripten-target" >&5
7203 printf %s "checking for --with-emscripten-target... " >&6; }
7204
7205 # Check whether --with-emscripten-target was given.
7206 if test ${with_emscripten_target+y}
7207 then :
7208 withval=$with_emscripten_target;
7209 if test "x$ac_sys_system" = xEmscripten
7210 then :
7211
7212 case $with_emscripten_target in #(
7213 browser) :
7214 ac_sys_emscripten_target=browser ;; #(
7215 node) :
7216 ac_sys_emscripten_target=node ;; #(
7217 browser-debug) :
7218 ac_sys_emscripten_target=browser-debug ;; #(
7219 node-debug) :
7220 ac_sys_emscripten_target=node-debug ;; #(
7221 *) :
7222 as_fn_error $? "Invalid argument: --with-emscripten-target=browser|node" "$LINENO" 5
7223 ;;
7224 esac
7225
7226 else $as_nop
7227
7228 as_fn_error $? "--with-emscripten-target only applies to Emscripten" "$LINENO" 5
7229
7230 fi
7231
7232 else $as_nop
7233
7234 if test "x$ac_sys_system" = xEmscripten
7235 then :
7236 ac_sys_emscripten_target=browser
7237 fi
7238
7239 fi
7240
7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_sys_emscripten_target" >&5
7242 printf "%s\n" "$ac_sys_emscripten_target" >&6; }
7243
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-dynamic-linking" >&5
7245 printf %s "checking for --enable-wasm-dynamic-linking... " >&6; }
7246 # Check whether --enable-wasm-dynamic-linking was given.
7247 if test ${enable_wasm_dynamic_linking+y}
7248 then :
7249 enableval=$enable_wasm_dynamic_linking;
7250 case $ac_sys_system in #(
7251 Emscripten) :
7252 ;; #(
7253 WASI) :
7254 as_fn_error $? "WASI dynamic linking is not implemented yet." "$LINENO" 5 ;; #(
7255 *) :
7256 as_fn_error $? "--enable-wasm-dynamic-linking only applies to Emscripten and WASI" "$LINENO" 5
7257 ;;
7258 esac
7259
7260 else $as_nop
7261
7262 enable_wasm_dynamic_linking=missing
7263
7264 fi
7265
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_dynamic_linking" >&5
7267 printf "%s\n" "$enable_wasm_dynamic_linking" >&6; }
7268
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-pthreads" >&5
7270 printf %s "checking for --enable-wasm-pthreads... " >&6; }
7271 # Check whether --enable-wasm-pthreads was given.
7272 if test ${enable_wasm_pthreads+y}
7273 then :
7274 enableval=$enable_wasm_pthreads;
7275 case $ac_sys_system in #(
7276 Emscripten) :
7277 ;; #(
7278 WASI) :
7279 ;; #(
7280 *) :
7281 as_fn_error $? "--enable-wasm-pthreads only applies to Emscripten and WASI" "$LINENO" 5
7282 ;;
7283 esac
7284
7285 else $as_nop
7286
7287 enable_wasm_pthreads=missing
7288
7289 fi
7290
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_pthreads" >&5
7292 printf "%s\n" "$enable_wasm_pthreads" >&6; }
7293
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
7295 printf %s "checking for --with-suffix... " >&6; }
7296
7297 # Check whether --with-suffix was given.
7298 if test ${with_suffix+y}
7299 then :
7300 withval=$with_suffix;
7301 case $with_suffix in #(
7302 no) :
7303 EXEEXT= ;; #(
7304 yes) :
7305 EXEEXT=.exe ;; #(
7306 *) :
7307 EXEEXT=$with_suffix
7308 ;;
7309 esac
7310
7311 else $as_nop
7312
7313 case $ac_sys_system/$ac_sys_emscripten_target in #(
7314 Emscripten/browser*) :
7315 EXEEXT=.js ;; #(
7316 Emscripten/node*) :
7317 EXEEXT=.js ;; #(
7318 WASI/*) :
7319 EXEEXT=.wasm ;; #(
7320 *) :
7321 EXEEXT=
7322 ;;
7323 esac
7324
7325 fi
7326
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
7328 printf "%s\n" "$EXEEXT" >&6; }
7329
7330 # Make sure we keep EXEEXT and ac_exeext sync'ed.
7331 ac_exeext=$EXEEXT
7332
7333 # Test whether we're running on a non-case-sensitive system, in which
7334 # case we give a warning if no ext is given
7335
7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
7337 printf %s "checking for case-insensitive build directory... " >&6; }
7338 if test ! -d CaseSensitiveTestDir; then
7339 mkdir CaseSensitiveTestDir
7340 fi
7341
7342 if test -d casesensitivetestdir && test -z "$EXEEXT"
7343 then
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7345 printf "%s\n" "yes" >&6; }
7346 BUILDEXEEXT=.exe
7347 else
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 printf "%s\n" "no" >&6; }
7350 BUILDEXEEXT=$EXEEXT
7351 fi
7352 rmdir CaseSensitiveTestDir
7353
7354 case $ac_sys_system in
7355 hp*|HP*)
7356 case $CC in
7357 cc|*/cc) CC="$CC -Ae";;
7358 esac;;
7359 esac
7360
7361
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
7363 printf %s "checking LIBRARY... " >&6; }
7364 if test -z "$LIBRARY"
7365 then
7366 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
7367 fi
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
7369 printf "%s\n" "$LIBRARY" >&6; }
7370
7371 # LDLIBRARY is the name of the library to link against (as opposed to the
7372 # name of the library into which to insert object files). BLDLIBRARY is also
7373 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
7374 # is blank as the main program is not linked directly against LDLIBRARY.
7375 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
7376 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
7377 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
7378 # DLLLIBRARY is the shared (i.e., DLL) library.
7379 #
7380 # RUNSHARED is used to run shared python without installed libraries
7381 #
7382 # INSTSONAME is the name of the shared library that will be use to install
7383 # on the system - some systems like version suffix, others don't
7384 #
7385 # LDVERSION is the shared library version number, normally the Python version
7386 # with the ABI build flags appended.
7387
7388
7389
7390
7391
7392
7393
7394
7395 LDLIBRARY="$LIBRARY"
7396 BLDLIBRARY='$(LDLIBRARY)'
7397 INSTSONAME='$(LDLIBRARY)'
7398 DLLLIBRARY=''
7399 LDLIBRARYDIR=''
7400 RUNSHARED=''
7401 LDVERSION="$VERSION"
7402
7403 # LINKCC is the command that links the python executable -- default is $(CC).
7404 # If CXX is set, and if it is needed to link a main function that was
7405 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
7406 # python might then depend on the C++ runtime
7407
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
7409 printf %s "checking LINKCC... " >&6; }
7410 if test -z "$LINKCC"
7411 then
7412 LINKCC='$(PURIFY) $(CC)'
7413 case $ac_sys_system in
7414 QNX*)
7415 # qcc must be used because the other compilers do not
7416 # support -N.
7417 LINKCC=qcc;;
7418 esac
7419 fi
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
7421 printf "%s\n" "$LINKCC" >&6; }
7422
7423 # EXPORTSYMS holds the list of exported symbols for AIX.
7424 # EXPORTSFROM holds the module name exporting symbols on AIX.
7425 EXPORTSYMS=
7426 EXPORTSFROM=
7427
7428
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5
7430 printf %s "checking EXPORTSYMS... " >&6; }
7431 case $ac_sys_system in
7432 AIX*)
7433 EXPORTSYMS="Modules/python.exp"
7434 EXPORTSFROM=. # the main executable
7435 ;;
7436 esac
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5
7438 printf "%s\n" "$EXPORTSYMS" >&6; }
7439
7440 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
7441 # make sure we default having it set to "no": this is used by
7442 # distutils.unixccompiler to know if it should add --enable-new-dtags
7443 # to linker command lines, and failing to detect GNU ld simply results
7444 # in the same behaviour as before.
7445
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7447 printf %s "checking for GNU ld... " >&6; }
7448 ac_prog=ld
7449 if test "$GCC" = yes; then
7450 ac_prog=`$CC -print-prog-name=ld`
7451 fi
7452 case `"$ac_prog" -V 2>&1 < /dev/null` in
7453 *GNU*)
7454 GNULD=yes;;
7455 *)
7456 GNULD=no;;
7457 esac
7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
7459 printf "%s\n" "$GNULD" >&6; }
7460
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
7462 printf %s "checking for --enable-shared... " >&6; }
7463 # Check whether --enable-shared was given.
7464 if test ${enable_shared+y}
7465 then :
7466 enableval=$enable_shared;
7467 fi
7468
7469
7470 if test -z "$enable_shared"
7471 then
7472 case $ac_sys_system in
7473 CYGWIN*)
7474 enable_shared="yes";;
7475 *)
7476 enable_shared="no";;
7477 esac
7478 fi
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
7480 printf "%s\n" "$enable_shared" >&6; }
7481
7482 # --with-static-libpython
7483 STATIC_LIBPYTHON=1
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5
7485 printf %s "checking for --with-static-libpython... " >&6; }
7486
7487 # Check whether --with-static-libpython was given.
7488 if test ${with_static_libpython+y}
7489 then :
7490 withval=$with_static_libpython;
7491 if test "$withval" = no
7492 then
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 printf "%s\n" "no" >&6; };
7495 STATIC_LIBPYTHON=0
7496 else
7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7498 printf "%s\n" "yes" >&6; };
7499 fi
7500 else $as_nop
7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7502 printf "%s\n" "yes" >&6; }
7503 fi
7504
7505
7506
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
7508 printf %s "checking for --enable-profiling... " >&6; }
7509 # Check whether --enable-profiling was given.
7510 if test ${enable_profiling+y}
7511 then :
7512 enableval=$enable_profiling;
7513 fi
7514
7515 if test "x$enable_profiling" = xyes; then
7516 ac_save_cc="$CC"
7517 CC="$CC -pg"
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 int main(void) { return 0; }
7521 _ACEOF
7522 if ac_fn_c_try_link "$LINENO"
7523 then :
7524
7525 else $as_nop
7526 enable_profiling=no
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7529 conftest$ac_exeext conftest.$ac_ext
7530 CC="$ac_save_cc"
7531 else
7532 enable_profiling=no
7533 fi
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
7535 printf "%s\n" "$enable_profiling" >&6; }
7536
7537 if test "x$enable_profiling" = xyes; then
7538 BASECFLAGS="-pg $BASECFLAGS"
7539 LDFLAGS="-pg $LDFLAGS"
7540 fi
7541
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
7543 printf %s "checking LDLIBRARY... " >&6; }
7544
7545 # Apple framework builds need more magic. LDLIBRARY is the dynamic
7546 # library that we build, but we do not want to link against it (we
7547 # will find it with a -framework option). For this reason there is an
7548 # extra variable BLDLIBRARY against which Python and the extension
7549 # modules are linked, BLDLIBRARY. This is normally the same as
7550 # LDLIBRARY, but empty for MacOSX framework builds. iOS does the same,
7551 # but uses a non-versioned framework layout.
7552 if test "$enable_framework"
7553 then
7554 case $ac_sys_system in
7555 Darwin)
7556 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)';;
7557 iOS)
7558 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)';;
7559 *)
7560 as_fn_error $? "Unknown platform for framework build" "$LINENO" 5;;
7561 esac
7562 BLDLIBRARY=''
7563 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
7564 else
7565 BLDLIBRARY='$(LDLIBRARY)'
7566 fi
7567
7568 # Other platforms follow
7569 if test $enable_shared = "yes"; then
7570 PY_ENABLE_SHARED=1
7571
7572 printf "%s\n" "#define Py_ENABLE_SHARED 1" >>confdefs.h
7573
7574 case $ac_sys_system in
7575 CYGWIN*)
7576 LDLIBRARY='libpython$(LDVERSION).dll.a'
7577 BLDLIBRARY='-L. -lpython$(LDVERSION)'
7578 DLLLIBRARY='libpython$(LDVERSION).dll'
7579 ;;
7580 SunOS*)
7581 LDLIBRARY='libpython$(LDVERSION).so'
7582 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
7583 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
7584 INSTSONAME="$LDLIBRARY".$SOVERSION
7585 if test "$with_pydebug" != yes
7586 then
7587 PY3LIBRARY=libpython3.so
7588 fi
7589 ;;
7590 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*)
7591 LDLIBRARY='libpython$(LDVERSION).so'
7592 BLDLIBRARY='-L. -lpython$(LDVERSION)'
7593 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
7594
7595 # The Android Gradle plugin will only package libraries whose names end
7596 # with ".so".
7597 if test "$ac_sys_system" != "Linux-android"; then
7598 INSTSONAME="$LDLIBRARY".$SOVERSION
7599 fi
7600
7601 if test "$with_pydebug" != yes
7602 then
7603 PY3LIBRARY=libpython3.so
7604 fi
7605 ;;
7606 hp*|HP*)
7607 case `uname -m` in
7608 ia64)
7609 LDLIBRARY='libpython$(LDVERSION).so'
7610 ;;
7611 *)
7612 LDLIBRARY='libpython$(LDVERSION).sl'
7613 ;;
7614 esac
7615 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
7616 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
7617 ;;
7618 Darwin*)
7619 LDLIBRARY='libpython$(LDVERSION).dylib'
7620 BLDLIBRARY='-L. -lpython$(LDVERSION)'
7621 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
7622 ;;
7623 iOS)
7624 LDLIBRARY='libpython$(LDVERSION).dylib'
7625 ;;
7626 AIX*)
7627 LDLIBRARY='libpython$(LDVERSION).so'
7628 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
7629 ;;
7630
7631 esac
7632 else # shared is disabled
7633 PY_ENABLE_SHARED=0
7634 case $ac_sys_system in
7635 CYGWIN*)
7636 BLDLIBRARY='$(LIBRARY)'
7637 LDLIBRARY='libpython$(LDVERSION).dll.a'
7638 ;;
7639 esac
7640 fi
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
7642 printf "%s\n" "$LDLIBRARY" >&6; }
7643
7644 if test "$cross_compiling" = yes; then
7645 RUNSHARED=
7646 fi
7647
7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOSTRUNNER" >&5
7649 printf %s "checking HOSTRUNNER... " >&6; }
7650
7651 if test -z "$HOSTRUNNER"
7652 then
7653 case $ac_sys_system/$ac_sys_emscripten_target in #(
7654 Emscripten/node*) :
7655
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}node", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}node; ac_word=$2
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 printf %s "checking for $ac_word... " >&6; }
7661 if test ${ac_cv_path_NODE+y}
7662 then :
7663 printf %s "(cached) " >&6
7664 else $as_nop
7665 case $NODE in
7666 [\\/]* | ?:[\\/]*)
7667 ac_cv_path_NODE="$NODE" # Let the user override the test with a path.
7668 ;;
7669 *)
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673 IFS=$as_save_IFS
7674 case $as_dir in #(((
7675 '') as_dir=./ ;;
7676 */) ;;
7677 *) as_dir=$as_dir/ ;;
7678 esac
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7681 ac_cv_path_NODE="$as_dir$ac_word$ac_exec_ext"
7682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685 done
7686 done
7687 IFS=$as_save_IFS
7688
7689 ;;
7690 esac
7691 fi
7692 NODE=$ac_cv_path_NODE
7693 if test -n "$NODE"; then
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NODE" >&5
7695 printf "%s\n" "$NODE" >&6; }
7696 else
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 printf "%s\n" "no" >&6; }
7699 fi
7700
7701
7702 fi
7703 if test -z "$ac_cv_path_NODE"; then
7704 ac_pt_NODE=$NODE
7705 # Extract the first word of "node", so it can be a program name with args.
7706 set dummy node; ac_word=$2
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 printf %s "checking for $ac_word... " >&6; }
7709 if test ${ac_cv_path_ac_pt_NODE+y}
7710 then :
7711 printf %s "(cached) " >&6
7712 else $as_nop
7713 case $ac_pt_NODE in
7714 [\\/]* | ?:[\\/]*)
7715 ac_cv_path_ac_pt_NODE="$ac_pt_NODE" # Let the user override the test with a path.
7716 ;;
7717 *)
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721 IFS=$as_save_IFS
7722 case $as_dir in #(((
7723 '') as_dir=./ ;;
7724 */) ;;
7725 *) as_dir=$as_dir/ ;;
7726 esac
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7729 ac_cv_path_ac_pt_NODE="$as_dir$ac_word$ac_exec_ext"
7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733 done
7734 done
7735 IFS=$as_save_IFS
7736
7737 ;;
7738 esac
7739 fi
7740 ac_pt_NODE=$ac_cv_path_ac_pt_NODE
7741 if test -n "$ac_pt_NODE"; then
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NODE" >&5
7743 printf "%s\n" "$ac_pt_NODE" >&6; }
7744 else
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 printf "%s\n" "no" >&6; }
7747 fi
7748
7749 if test "x$ac_pt_NODE" = x; then
7750 NODE="node"
7751 else
7752 case $cross_compiling:$ac_tool_warned in
7753 yes:)
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 ac_tool_warned=yes ;;
7757 esac
7758 NODE=$ac_pt_NODE
7759 fi
7760 else
7761 NODE="$ac_cv_path_NODE"
7762 fi
7763
7764 HOSTRUNNER="$NODE"
7765 # bigint for ctypes c_longlong, c_longdouble
7766 # no longer available in Node 16
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bigint" >&5
7768 printf %s "checking for node --experimental-wasm-bigint... " >&6; }
7769 if test ${ac_cv_tool_node_wasm_bigint+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773
7774 if $NODE -v --experimental-wasm-bigint > /dev/null 2>&1; then
7775 ac_cv_tool_node_wasm_bigint=yes
7776 else
7777 ac_cv_tool_node_wasm_bigint=no
7778 fi
7779
7780 fi
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bigint" >&5
7782 printf "%s\n" "$ac_cv_tool_node_wasm_bigint" >&6; }
7783 if test "x$ac_cv_tool_node_wasm_bigint" = xyes
7784 then :
7785
7786 as_fn_append HOSTRUNNER " --experimental-wasm-bigint"
7787
7788 fi
7789
7790 if test "x$enable_wasm_pthreads" = xyes
7791 then :
7792
7793 as_fn_append HOSTRUNNER " --experimental-wasm-threads"
7794 # no longer available in Node 16
7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bulk-memory" >&5
7796 printf %s "checking for node --experimental-wasm-bulk-memory... " >&6; }
7797 if test ${ac_cv_tool_node_wasm_bulk_memory+y}
7798 then :
7799 printf %s "(cached) " >&6
7800 else $as_nop
7801
7802 if $NODE -v --experimental-wasm-bulk-memory > /dev/null 2>&1; then
7803 ac_cv_tool_node_wasm_bulk_memory=yes
7804 else
7805 ac_cv_tool_node_wasm_bulk_memory=no
7806 fi
7807
7808 fi
7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bulk_memory" >&5
7810 printf "%s\n" "$ac_cv_tool_node_wasm_bulk_memory" >&6; }
7811 if test "x$ac_cv_tool_node_wasm_bulk_memory" = xyes
7812 then :
7813
7814 as_fn_append HOSTRUNNER " --experimental-wasm-bulk-memory"
7815
7816 fi
7817
7818 fi
7819
7820 if test "x$host_cpu" = xwasm64
7821 then :
7822 as_fn_append HOSTRUNNER " --experimental-wasm-memory64"
7823 fi
7824 ;; #(
7825 WASI/*) :
7826 HOSTRUNNER='wasmtime run --wasm max-wasm-stack=8388608 --wasi preview2=n --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --dir $(srcdir)::/' ;; #(
7827 *) :
7828 HOSTRUNNER=''
7829 ;;
7830 esac
7831 fi
7832
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOSTRUNNER" >&5
7834 printf "%s\n" "$HOSTRUNNER" >&6; }
7835
7836 if test -n "$HOSTRUNNER"; then
7837 PYTHON_FOR_BUILD="_PYTHON_HOSTRUNNER='$HOSTRUNNER' $PYTHON_FOR_BUILD"
7838 fi
7839
7840 # LIBRARY_DEPS, LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variable
7841 case $ac_sys_system/$ac_sys_emscripten_target in #(
7842 Emscripten/browser*) :
7843 LIBRARY_DEPS='$(PY3LIBRARY) $(WASM_STDLIB) python.html python.worker.js' ;; #(
7844 *) :
7845 LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)'
7846 ;;
7847 esac
7848 LINK_PYTHON_DEPS='$(LIBRARY_DEPS)'
7849 if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then
7850 LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS"
7851 if test "$STATIC_LIBPYTHON" = 1; then
7852 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS"
7853 fi
7854 # Link Python program to the shared library
7855 LINK_PYTHON_OBJS='$(BLDLIBRARY)'
7856 else
7857 if test "$STATIC_LIBPYTHON" = 0; then
7858 # Build Python needs object files but don't need to build
7859 # Python static library
7860 LINK_PYTHON_DEPS="$LIBRARY_DEPS \$(LIBRARY_OBJS)"
7861 fi
7862 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS"
7863 # Link Python program to object files
7864 LINK_PYTHON_OBJS='$(LIBRARY_OBJS)'
7865 fi
7866
7867
7868
7869
7870 # ar program
7871
7872 if test -n "$ac_tool_prefix"; then
7873 for ac_prog in ar aal
7874 do
7875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 printf %s "checking for $ac_word... " >&6; }
7879 if test ${ac_cv_prog_AR+y}
7880 then :
7881 printf %s "(cached) " >&6
7882 else $as_nop
7883 if test -n "$AR"; then
7884 ac_cv_prog_AR="$AR" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889 IFS=$as_save_IFS
7890 case $as_dir in #(((
7891 '') as_dir=./ ;;
7892 */) ;;
7893 *) as_dir=$as_dir/ ;;
7894 esac
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901 done
7902 done
7903 IFS=$as_save_IFS
7904
7905 fi
7906 fi
7907 AR=$ac_cv_prog_AR
7908 if test -n "$AR"; then
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7910 printf "%s\n" "$AR" >&6; }
7911 else
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 printf "%s\n" "no" >&6; }
7914 fi
7915
7916
7917 test -n "$AR" && break
7918 done
7919 fi
7920 if test -z "$AR"; then
7921 ac_ct_AR=$AR
7922 for ac_prog in ar aal
7923 do
7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
7925 set dummy $ac_prog; ac_word=$2
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 printf %s "checking for $ac_word... " >&6; }
7928 if test ${ac_cv_prog_ac_ct_AR+y}
7929 then :
7930 printf %s "(cached) " >&6
7931 else $as_nop
7932 if test -n "$ac_ct_AR"; then
7933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938 IFS=$as_save_IFS
7939 case $as_dir in #(((
7940 '') as_dir=./ ;;
7941 */) ;;
7942 *) as_dir=$as_dir/ ;;
7943 esac
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_ac_ct_AR="$ac_prog"
7947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7948 break 2
7949 fi
7950 done
7951 done
7952 IFS=$as_save_IFS
7953
7954 fi
7955 fi
7956 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7957 if test -n "$ac_ct_AR"; then
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7959 printf "%s\n" "$ac_ct_AR" >&6; }
7960 else
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 printf "%s\n" "no" >&6; }
7963 fi
7964
7965
7966 test -n "$ac_ct_AR" && break
7967 done
7968
7969 if test "x$ac_ct_AR" = x; then
7970 AR="ar"
7971 else
7972 case $cross_compiling:$ac_tool_warned in
7973 yes:)
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976 ac_tool_warned=yes ;;
7977 esac
7978 AR=$ac_ct_AR
7979 fi
7980 fi
7981
7982
7983 # tweak ARFLAGS only if the user didn't set it on the command line
7984
7985 if test -z "$ARFLAGS"
7986 then
7987 ARFLAGS="rcs"
7988 fi
7989
7990 case $MACHDEP in
7991 hp*|HP*)
7992 # install -d does not work on HP-UX
7993 if test -z "$INSTALL"
7994 then
7995 INSTALL="${srcdir}/install-sh -c"
7996 fi
7997 esac
7998
7999 # Find a good install program. We prefer a C program (faster),
8000 # so one script is as good as another. But avoid the broken or
8001 # incompatible versions:
8002 # SysV /etc/install, /usr/sbin/install
8003 # SunOS /usr/etc/install
8004 # IRIX /sbin/install
8005 # AIX /bin/install
8006 # AmigaOS /C/install, which installs bootblocks on floppy discs
8007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8010 # OS/2's system install, which has a completely different semantic
8011 # ./install, which can be erroneously created by make from ./install.sh.
8012 # Reject install programs that cannot install multiple files.
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8014 printf %s "checking for a BSD-compatible install... " >&6; }
8015 if test -z "$INSTALL"; then
8016 if test ${ac_cv_path_install+y}
8017 then :
8018 printf %s "(cached) " >&6
8019 else $as_nop
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 case $as_dir in #(((
8025 '') as_dir=./ ;;
8026 */) ;;
8027 *) as_dir=$as_dir/ ;;
8028 esac
8029 # Account for fact that we put trailing slashes in our PATH walk.
8030 case $as_dir in #((
8031 ./ | /[cC]/* | \
8032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8033 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8034 /usr/ucb/* ) ;;
8035 *)
8036 # OSF1 and SCO ODT 3.0 have their own names for install.
8037 # Don't use installbsd from OSF since it installs stuff as root
8038 # by default.
8039 for ac_prog in ginstall scoinst install; do
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8042 if test $ac_prog = install &&
8043 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8044 # AIX install. It has an incompatible calling convention.
8045 :
8046 elif test $ac_prog = install &&
8047 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8048 # program-specific install script used by HP pwplus--don't use.
8049 :
8050 else
8051 rm -rf conftest.one conftest.two conftest.dir
8052 echo one > conftest.one
8053 echo two > conftest.two
8054 mkdir conftest.dir
8055 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8056 test -s conftest.one && test -s conftest.two &&
8057 test -s conftest.dir/conftest.one &&
8058 test -s conftest.dir/conftest.two
8059 then
8060 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8061 break 3
8062 fi
8063 fi
8064 fi
8065 done
8066 done
8067 ;;
8068 esac
8069
8070 done
8071 IFS=$as_save_IFS
8072
8073 rm -rf conftest.one conftest.two conftest.dir
8074
8075 fi
8076 if test ${ac_cv_path_install+y}; then
8077 INSTALL=$ac_cv_path_install
8078 else
8079 # As a last resort, use the slow shell script. Don't cache a
8080 # value for INSTALL within a source directory, because that will
8081 # break other packages using the cache if that directory is
8082 # removed, or if the value is a relative name.
8083 INSTALL=$ac_install_sh
8084 fi
8085 fi
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8087 printf "%s\n" "$INSTALL" >&6; }
8088
8089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8090 # It thinks the first close brace ends the variable substitution.
8091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8092
8093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8094
8095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8096
8097
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8099 printf %s "checking for a race-free mkdir -p... " >&6; }
8100 if test -z "$MKDIR_P"; then
8101 if test ${ac_cv_path_mkdir+y}
8102 then :
8103 printf %s "(cached) " >&6
8104 else $as_nop
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8107 do
8108 IFS=$as_save_IFS
8109 case $as_dir in #(((
8110 '') as_dir=./ ;;
8111 */) ;;
8112 *) as_dir=$as_dir/ ;;
8113 esac
8114 for ac_prog in mkdir gmkdir; do
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8117 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8118 'mkdir ('*'coreutils) '* | \
8119 'BusyBox '* | \
8120 'mkdir (fileutils) '4.1*)
8121 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8122 break 3;;
8123 esac
8124 done
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129 fi
8130
8131 test -d ./--version && rmdir ./--version
8132 if test ${ac_cv_path_mkdir+y}; then
8133 MKDIR_P="$ac_cv_path_mkdir -p"
8134 else
8135 # As a last resort, use the slow shell script. Don't cache a
8136 # value for MKDIR_P within a source directory, because that will
8137 # break other packages using the cache if that directory is
8138 # removed, or if the value is a relative name.
8139 MKDIR_P="$ac_install_sh -d"
8140 fi
8141 fi
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8143 printf "%s\n" "$MKDIR_P" >&6; }
8144
8145
8146 # Not every filesystem supports hard links
8147
8148 if test -z "$LN" ; then
8149 case $ac_sys_system in
8150 CYGWIN*) LN="ln -s";;
8151 *) LN=ln;;
8152 esac
8153 fi
8154
8155 # For calculating the .so ABI tag.
8156
8157
8158 ABIFLAGS=""
8159 ABI_THREAD=""
8160
8161 # Check for --disable-gil
8162 # --disable-gil
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5
8164 printf %s "checking for --disable-gil... " >&6; }
8165 # Check whether --enable-gil was given.
8166 if test ${enable_gil+y}
8167 then :
8168 enableval=$enable_gil; if test "x$enable_gil" = xyes
8169 then :
8170 disable_gil=no
8171 else $as_nop
8172 disable_gil=yes
8173 fi
8174 else $as_nop
8175 disable_gil=no
8176
8177 fi
8178
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5
8180 printf "%s\n" "$disable_gil" >&6; }
8181
8182 if test "$disable_gil" = "yes"
8183 then
8184
8185 printf "%s\n" "#define Py_GIL_DISABLED 1" >>confdefs.h
8186
8187 # Add "t" for "threaded"
8188 ABIFLAGS="${ABIFLAGS}t"
8189 ABI_THREAD="t"
8190 fi
8191
8192 # Check for --with-pydebug
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
8194 printf %s "checking for --with-pydebug... " >&6; }
8195
8196 # Check whether --with-pydebug was given.
8197 if test ${with_pydebug+y}
8198 then :
8199 withval=$with_pydebug;
8200 if test "$withval" != no
8201 then
8202
8203 printf "%s\n" "#define Py_DEBUG 1" >>confdefs.h
8204
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8206 printf "%s\n" "yes" >&6; };
8207 Py_DEBUG='true'
8208 ABIFLAGS="${ABIFLAGS}d"
8209 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 printf "%s\n" "no" >&6; }; Py_DEBUG='false'
8211 fi
8212 else $as_nop
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 printf "%s\n" "no" >&6; }
8215 fi
8216
8217
8218 # Check for --with-trace-refs
8219 # --with-trace-refs
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5
8221 printf %s "checking for --with-trace-refs... " >&6; }
8222
8223 # Check whether --with-trace-refs was given.
8224 if test ${with_trace_refs+y}
8225 then :
8226 withval=$with_trace_refs;
8227 else $as_nop
8228 with_trace_refs=no
8229
8230 fi
8231
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5
8233 printf "%s\n" "$with_trace_refs" >&6; }
8234
8235 if test "$with_trace_refs" = "yes"
8236 then
8237
8238 printf "%s\n" "#define Py_TRACE_REFS 1" >>confdefs.h
8239
8240 fi
8241
8242 if test "$disable_gil" = "yes" -a "$with_trace_refs" = "yes";
8243 then
8244 as_fn_error $? "--disable-gil cannot be used with --with-trace-refs" "$LINENO" 5
8245 fi
8246
8247 # Check for --enable-pystats
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-pystats" >&5
8249 printf %s "checking for --enable-pystats... " >&6; }
8250 # Check whether --enable-pystats was given.
8251 if test ${enable_pystats+y}
8252 then :
8253 enableval=$enable_pystats;
8254 else $as_nop
8255 enable_pystats=no
8256
8257 fi
8258
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pystats" >&5
8260 printf "%s\n" "$enable_pystats" >&6; }
8261
8262 if test "x$enable_pystats" = xyes
8263 then :
8264
8265
8266 printf "%s\n" "#define Py_STATS 1" >>confdefs.h
8267
8268
8269 fi
8270
8271 # Check for --with-assertions.
8272 # This allows enabling assertions without Py_DEBUG.
8273 assertions='false'
8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
8275 printf %s "checking for --with-assertions... " >&6; }
8276
8277 # Check whether --with-assertions was given.
8278 if test ${with_assertions+y}
8279 then :
8280 withval=$with_assertions;
8281 if test "$withval" != no
8282 then
8283 assertions='true'
8284 fi
8285 fi
8286
8287 if test "$assertions" = 'true'; then
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8289 printf "%s\n" "yes" >&6; }
8290 elif test "$Py_DEBUG" = 'true'; then
8291 assertions='true'
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
8293 printf "%s\n" "implied by --with-pydebug" >&6; }
8294 else
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 printf "%s\n" "no" >&6; }
8297 fi
8298
8299 # Check for --enable-experimental-jit:
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-experimental-jit" >&5
8301 printf %s "checking for --enable-experimental-jit... " >&6; }
8302 # Check whether --enable-experimental-jit was given.
8303 if test ${enable_experimental_jit+y}
8304 then :
8305 enableval=$enable_experimental_jit;
8306 else $as_nop
8307 enable_experimental_jit=no
8308 fi
8309
8310 case $enable_experimental_jit in
8311 no) jit_flags=""; tier2_flags="" ;;
8312 yes) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=1" ;;
8313 yes-off) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=3" ;;
8314 interpreter) jit_flags=""; tier2_flags="-D_Py_TIER2=4" ;;
8315 interpreter-off) jit_flags=""; tier2_flags="-D_Py_TIER2=6" ;; # Secret option
8316 *) as_fn_error $? "invalid argument: --enable-experimental-jit=$enable_experimental_jit; expected no|yes|yes-off|interpreter" "$LINENO" 5 ;;
8317 esac
8318 if ${tier2_flags:+false} :
8319 then :
8320
8321 else $as_nop
8322 as_fn_append CFLAGS_NODIST " $tier2_flags"
8323 fi
8324 if ${jit_flags:+false} :
8325 then :
8326
8327 else $as_nop
8328 as_fn_append CFLAGS_NODIST " $jit_flags"
8329 REGEN_JIT_COMMAND="\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py $host"
8330 JIT_STENCILS_H="jit_stencils.h"
8331 if test "x$Py_DEBUG" = xtrue
8332 then :
8333 as_fn_append REGEN_JIT_COMMAND " --debug"
8334 fi
8335 fi
8336
8337
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tier2_flags $jit_flags" >&5
8339 printf "%s\n" "$tier2_flags $jit_flags" >&6; }
8340
8341 # Enable optimization flags
8342
8343
8344 Py_OPT='false'
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
8346 printf %s "checking for --enable-optimizations... " >&6; }
8347 # Check whether --enable-optimizations was given.
8348 if test ${enable_optimizations+y}
8349 then :
8350 enableval=$enable_optimizations;
8351 if test "$enableval" != no
8352 then
8353 Py_OPT='true'
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8355 printf "%s\n" "yes" >&6; };
8356 else
8357 Py_OPT='false'
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 printf "%s\n" "no" >&6; };
8360 fi
8361 else $as_nop
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 printf "%s\n" "no" >&6; }
8364 fi
8365
8366
8367 if test "$Py_OPT" = 'true' ; then
8368 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
8369 # compile working code using it and both test_distutils and test_gdb are
8370 # broken when you do manage to get a toolchain that works with it. People
8371 # who want LTO need to use --with-lto themselves.
8372 DEF_MAKE_ALL_RULE="profile-opt"
8373 REQUIRE_PGO="yes"
8374 DEF_MAKE_RULE="build_all"
8375 case $CC in
8376 *gcc*)
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5
8378 printf %s "checking whether C compiler accepts -fno-semantic-interposition... " >&6; }
8379 if test ${ax_cv_check_cflags__Werror__fno_semantic_interposition+y}
8380 then :
8381 printf %s "(cached) " >&6
8382 else $as_nop
8383
8384 ax_check_save_flags=$CFLAGS
8385 CFLAGS="$CFLAGS -Werror -fno-semantic-interposition"
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388
8389 int
8390 main (void)
8391 {
8392
8393 ;
8394 return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_compile "$LINENO"
8398 then :
8399 ax_cv_check_cflags__Werror__fno_semantic_interposition=yes
8400 else $as_nop
8401 ax_cv_check_cflags__Werror__fno_semantic_interposition=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8404 CFLAGS=$ax_check_save_flags
8405 fi
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fno_semantic_interposition" >&5
8407 printf "%s\n" "$ax_cv_check_cflags__Werror__fno_semantic_interposition" >&6; }
8408 if test "x$ax_cv_check_cflags__Werror__fno_semantic_interposition" = xyes
8409 then :
8410
8411 CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition"
8412 LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition"
8413
8414 else $as_nop
8415 :
8416 fi
8417
8418 ;;
8419 esac
8420 elif test "$ac_sys_system" = "Emscripten" -o "$ac_sys_system" = "WASI"; then
8421 DEF_MAKE_ALL_RULE="build_wasm"
8422 REQUIRE_PGO="no"
8423 DEF_MAKE_RULE="all"
8424 else
8425 DEF_MAKE_ALL_RULE="build_all"
8426 REQUIRE_PGO="no"
8427 DEF_MAKE_RULE="all"
8428 fi
8429
8430
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5
8432 printf %s "checking PROFILE_TASK... " >&6; }
8433 if test -z "$PROFILE_TASK"
8434 then
8435 PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)'
8436 fi
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
8438 printf "%s\n" "$PROFILE_TASK" >&6; }
8439
8440 # Make llvm-related checks work on systems where llvm tools are not installed with their
8441 # normal names in the default $PATH (ie: Ubuntu). They exist under the
8442 # non-suffixed name in their versioned llvm directory.
8443
8444 llvm_bin_dir=''
8445 llvm_path="${PATH}"
8446 if test "${CC}" = "clang"
8447 then
8448 clang_bin=`which clang`
8449 # Some systems install clang elsewhere as a symlink to the real path
8450 # which is where the related llvm tools are located.
8451 if test -L "${clang_bin}"
8452 then
8453 clang_dir=`dirname "${clang_bin}"`
8454 clang_bin=`readlink "${clang_bin}"`
8455 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
8456 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
8457 fi
8458 fi
8459
8460 # Enable LTO flags
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
8462 printf %s "checking for --with-lto... " >&6; }
8463
8464 # Check whether --with-lto was given.
8465 if test ${with_lto+y}
8466 then :
8467 withval=$with_lto;
8468 case "$withval" in
8469 full)
8470 Py_LTO='true'
8471 Py_LTO_POLICY='full'
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8473 printf "%s\n" "yes" >&6; }
8474 ;;
8475 thin)
8476 Py_LTO='true'
8477 Py_LTO_POLICY='thin'
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8479 printf "%s\n" "yes" >&6; }
8480 ;;
8481 yes)
8482 Py_LTO='true'
8483 Py_LTO_POLICY='default'
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8485 printf "%s\n" "yes" >&6; }
8486 ;;
8487 no)
8488 Py_LTO='false'
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 printf "%s\n" "no" >&6; }
8491 ;;
8492 *)
8493 Py_LTO='false'
8494 as_fn_error $? "unknown lto option: '$withval'" "$LINENO" 5
8495 ;;
8496 esac
8497
8498 else $as_nop
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 printf "%s\n" "no" >&6; }
8501 fi
8502
8503 if test "$Py_LTO" = 'true' ; then
8504 case $CC in
8505 *clang*)
8506 LDFLAGS_NOLTO="-fno-lto"
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8508 printf %s "checking whether C compiler accepts -flto=thin... " >&6; }
8509 if test ${ax_cv_check_cflags___flto_thin+y}
8510 then :
8511 printf %s "(cached) " >&6
8512 else $as_nop
8513
8514 ax_check_save_flags=$CFLAGS
8515 CFLAGS="$CFLAGS -flto=thin"
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8518
8519 int
8520 main (void)
8521 {
8522
8523 ;
8524 return 0;
8525 }
8526 _ACEOF
8527 if ac_fn_c_try_compile "$LINENO"
8528 then :
8529 ax_cv_check_cflags___flto_thin=yes
8530 else $as_nop
8531 ax_cv_check_cflags___flto_thin=no
8532 fi
8533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8534 CFLAGS=$ax_check_save_flags
8535 fi
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8537 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8538 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8539 then :
8540 LDFLAGS_NOLTO="-flto=thin"
8541 else $as_nop
8542 LDFLAGS_NOLTO="-flto"
8543 fi
8544
8545
8546 if test -n "$ac_tool_prefix"; then
8547 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
8548 set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 printf %s "checking for $ac_word... " >&6; }
8551 if test ${ac_cv_path_LLVM_AR+y}
8552 then :
8553 printf %s "(cached) " >&6
8554 else $as_nop
8555 case $LLVM_AR in
8556 [\\/]* | ?:[\\/]*)
8557 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path.
8558 ;;
8559 *)
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in ${llvm_path}
8562 do
8563 IFS=$as_save_IFS
8564 case $as_dir in #(((
8565 '') as_dir=./ ;;
8566 */) ;;
8567 *) as_dir=$as_dir/ ;;
8568 esac
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8571 ac_cv_path_LLVM_AR="$as_dir$ac_word$ac_exec_ext"
8572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8573 break 2
8574 fi
8575 done
8576 done
8577 IFS=$as_save_IFS
8578
8579 ;;
8580 esac
8581 fi
8582 LLVM_AR=$ac_cv_path_LLVM_AR
8583 if test -n "$LLVM_AR"; then
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
8585 printf "%s\n" "$LLVM_AR" >&6; }
8586 else
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 printf "%s\n" "no" >&6; }
8589 fi
8590
8591
8592 fi
8593 if test -z "$ac_cv_path_LLVM_AR"; then
8594 ac_pt_LLVM_AR=$LLVM_AR
8595 # Extract the first word of "llvm-ar", so it can be a program name with args.
8596 set dummy llvm-ar; ac_word=$2
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 printf %s "checking for $ac_word... " >&6; }
8599 if test ${ac_cv_path_ac_pt_LLVM_AR+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else $as_nop
8603 case $ac_pt_LLVM_AR in
8604 [\\/]* | ?:[\\/]*)
8605 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path.
8606 ;;
8607 *)
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in ${llvm_path}
8610 do
8611 IFS=$as_save_IFS
8612 case $as_dir in #(((
8613 '') as_dir=./ ;;
8614 */) ;;
8615 *) as_dir=$as_dir/ ;;
8616 esac
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8619 ac_cv_path_ac_pt_LLVM_AR="$as_dir$ac_word$ac_exec_ext"
8620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8621 break 2
8622 fi
8623 done
8624 done
8625 IFS=$as_save_IFS
8626
8627 ;;
8628 esac
8629 fi
8630 ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR
8631 if test -n "$ac_pt_LLVM_AR"; then
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
8633 printf "%s\n" "$ac_pt_LLVM_AR" >&6; }
8634 else
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 printf "%s\n" "no" >&6; }
8637 fi
8638
8639 if test "x$ac_pt_LLVM_AR" = x; then
8640 LLVM_AR="''"
8641 else
8642 case $cross_compiling:$ac_tool_warned in
8643 yes:)
8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8645 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8646 ac_tool_warned=yes ;;
8647 esac
8648 LLVM_AR=$ac_pt_LLVM_AR
8649 fi
8650 else
8651 LLVM_AR="$ac_cv_path_LLVM_AR"
8652 fi
8653
8654
8655 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
8656 then
8657 LLVM_AR_FOUND="found"
8658 else
8659 LLVM_AR_FOUND="not-found"
8660 fi
8661 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
8662 then
8663 # The Apple-supplied ar in Xcode or the Command Line Tools is apparently sufficient
8664 found_llvm_ar=`/usr/bin/xcrun -find ar 2>/dev/null`
8665 if test -n "${found_llvm_ar}"
8666 then
8667 LLVM_AR='/usr/bin/xcrun ar'
8668 LLVM_AR_FOUND=found
8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
8670 printf "%s\n" "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
8671 fi
8672 fi
8673 if test $LLVM_AR_FOUND = not-found
8674 then
8675 LLVM_PROFR_ERR=yes
8676 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
8677 else
8678 LLVM_AR_ERR=no
8679 fi
8680 AR="${LLVM_AR}"
8681 case $ac_sys_system in
8682 Darwin*)
8683 # Any changes made here should be reflected in the GCC+Darwin case below
8684 if test $Py_LTO_POLICY = default
8685 then
8686 # Check that ThinLTO is accepted.
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8688 printf %s "checking whether C compiler accepts -flto=thin... " >&6; }
8689 if test ${ax_cv_check_cflags___flto_thin+y}
8690 then :
8691 printf %s "(cached) " >&6
8692 else $as_nop
8693
8694 ax_check_save_flags=$CFLAGS
8695 CFLAGS="$CFLAGS -flto=thin"
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698
8699 int
8700 main (void)
8701 {
8702
8703 ;
8704 return 0;
8705 }
8706 _ACEOF
8707 if ac_fn_c_try_compile "$LINENO"
8708 then :
8709 ax_cv_check_cflags___flto_thin=yes
8710 else $as_nop
8711 ax_cv_check_cflags___flto_thin=no
8712 fi
8713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8714 CFLAGS=$ax_check_save_flags
8715 fi
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8717 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8718 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8719 then :
8720
8721 LTOFLAGS="-flto=thin -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8722 LTOCFLAGS="-flto=thin"
8723
8724 else $as_nop
8725
8726 LTOFLAGS="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8727 LTOCFLAGS="-flto"
8728
8729
8730 fi
8731
8732 else
8733 LTOFLAGS="-flto=${Py_LTO_POLICY} -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8734 LTOCFLAGS="-flto=${Py_LTO_POLICY}"
8735 fi
8736 ;;
8737 *)
8738 if test $Py_LTO_POLICY = default
8739 then
8740 # Check that ThinLTO is accepted
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8742 printf %s "checking whether C compiler accepts -flto=thin... " >&6; }
8743 if test ${ax_cv_check_cflags___flto_thin+y}
8744 then :
8745 printf %s "(cached) " >&6
8746 else $as_nop
8747
8748 ax_check_save_flags=$CFLAGS
8749 CFLAGS="$CFLAGS -flto=thin"
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752
8753 int
8754 main (void)
8755 {
8756
8757 ;
8758 return 0;
8759 }
8760 _ACEOF
8761 if ac_fn_c_try_compile "$LINENO"
8762 then :
8763 ax_cv_check_cflags___flto_thin=yes
8764 else $as_nop
8765 ax_cv_check_cflags___flto_thin=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8768 CFLAGS=$ax_check_save_flags
8769 fi
8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8771 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8772 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8773 then :
8774 LTOFLAGS="-flto=thin"
8775 else $as_nop
8776 LTOFLAGS="-flto"
8777 fi
8778
8779 else
8780 LTOFLAGS="-flto=${Py_LTO_POLICY}"
8781 fi
8782 ;;
8783 esac
8784 ;;
8785 *emcc*)
8786 if test "$Py_LTO_POLICY" != "default"; then
8787 as_fn_error $? "emcc supports only default lto." "$LINENO" 5
8788 fi
8789 LTOFLAGS="-flto"
8790 LTOCFLAGS="-flto"
8791 ;;
8792 *gcc*)
8793 if test $Py_LTO_POLICY = thin
8794 then
8795 as_fn_error $? "thin lto is not supported under gcc compiler." "$LINENO" 5
8796 fi
8797 LDFLAGS_NOLTO="-fno-lto"
8798 case $ac_sys_system in
8799 Darwin*)
8800 LTOFLAGS="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8801 LTOCFLAGS="-flto"
8802 ;;
8803 *)
8804 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
8805 ;;
8806 esac
8807 ;;
8808 esac
8809
8810 if test "$ac_cv_prog_cc_g" = "yes"
8811 then
8812 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
8813 # to get debug symbols.
8814 LTOFLAGS="$LTOFLAGS -g"
8815 fi
8816
8817 CFLAGS_NODIST="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}"
8818 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS"
8819 fi
8820
8821 # Enable PGO flags.
8822
8823
8824
8825
8826
8827
8828 if test -n "$ac_tool_prefix"; then
8829 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args.
8830 set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 printf %s "checking for $ac_word... " >&6; }
8833 if test ${ac_cv_path_LLVM_PROFDATA+y}
8834 then :
8835 printf %s "(cached) " >&6
8836 else $as_nop
8837 case $LLVM_PROFDATA in
8838 [\\/]* | ?:[\\/]*)
8839 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
8840 ;;
8841 *)
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in ${llvm_path}
8844 do
8845 IFS=$as_save_IFS
8846 case $as_dir in #(((
8847 '') as_dir=./ ;;
8848 */) ;;
8849 *) as_dir=$as_dir/ ;;
8850 esac
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8853 ac_cv_path_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext"
8854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8855 break 2
8856 fi
8857 done
8858 done
8859 IFS=$as_save_IFS
8860
8861 ;;
8862 esac
8863 fi
8864 LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
8865 if test -n "$LLVM_PROFDATA"; then
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
8867 printf "%s\n" "$LLVM_PROFDATA" >&6; }
8868 else
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 printf "%s\n" "no" >&6; }
8871 fi
8872
8873
8874 fi
8875 if test -z "$ac_cv_path_LLVM_PROFDATA"; then
8876 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
8877 # Extract the first word of "llvm-profdata", so it can be a program name with args.
8878 set dummy llvm-profdata; ac_word=$2
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 printf %s "checking for $ac_word... " >&6; }
8881 if test ${ac_cv_path_ac_pt_LLVM_PROFDATA+y}
8882 then :
8883 printf %s "(cached) " >&6
8884 else $as_nop
8885 case $ac_pt_LLVM_PROFDATA in
8886 [\\/]* | ?:[\\/]*)
8887 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
8888 ;;
8889 *)
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 for as_dir in ${llvm_path}
8892 do
8893 IFS=$as_save_IFS
8894 case $as_dir in #(((
8895 '') as_dir=./ ;;
8896 */) ;;
8897 *) as_dir=$as_dir/ ;;
8898 esac
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8901 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext"
8902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8903 break 2
8904 fi
8905 done
8906 done
8907 IFS=$as_save_IFS
8908
8909 ;;
8910 esac
8911 fi
8912 ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
8913 if test -n "$ac_pt_LLVM_PROFDATA"; then
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
8915 printf "%s\n" "$ac_pt_LLVM_PROFDATA" >&6; }
8916 else
8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 printf "%s\n" "no" >&6; }
8919 fi
8920
8921 if test "x$ac_pt_LLVM_PROFDATA" = x; then
8922 LLVM_PROFDATA="''"
8923 else
8924 case $cross_compiling:$ac_tool_warned in
8925 yes:)
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8928 ac_tool_warned=yes ;;
8929 esac
8930 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
8931 fi
8932 else
8933 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
8934 fi
8935
8936
8937 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
8938 then
8939 LLVM_PROF_FOUND="found"
8940 else
8941 LLVM_PROF_FOUND="not-found"
8942 fi
8943 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
8944 then
8945 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
8946 if test -n "${found_llvm_profdata}"
8947 then
8948 # llvm-profdata isn't directly in $PATH in some cases.
8949 # https://apple.stackexchange.com/questions/197053/
8950 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
8951 LLVM_PROF_FOUND=found
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
8953 printf "%s\n" "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
8954 fi
8955 fi
8956 LLVM_PROF_ERR=no
8957
8958 # GNU Autoconf recommends the use of expr instead of basename.
8959 CC_BASENAME=$(expr "//$CC" : '.*/\(.*\)')
8960 case "$CC_BASENAME" in
8961 *clang*)
8962 # Any changes made here should be reflected in the GCC+Darwin case below
8963 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
8964 PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
8965 LLVM_PROF_MERGER=" ${LLVM_PROFDATA} merge -output=\"\$(shell pwd)/code.profclangd\" \"\$(shell pwd)\"/*.profclangr "
8966 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
8967 if test $LLVM_PROF_FOUND = not-found
8968 then
8969 LLVM_PROF_ERR=yes
8970 if test "${REQUIRE_PGO}" = "yes"
8971 then
8972 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
8973 fi
8974 fi
8975 ;;
8976 *gcc*)
8977 case $ac_sys_system in
8978 Darwin*)
8979 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
8980 PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
8981 LLVM_PROF_MERGER=" ${LLVM_PROFDATA} merge -output=\"\$(shell pwd)/code.profclangd\" \"\$(shell pwd)\"/*.profclangr "
8982 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
8983 if test "${LLVM_PROF_FOUND}" = "not-found"
8984 then
8985 LLVM_PROF_ERR=yes
8986 if test "${REQUIRE_PGO}" = "yes"
8987 then
8988 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
8989 fi
8990 fi
8991 ;;
8992 *)
8993 PGO_PROF_GEN_FLAG="-fprofile-generate"
8994 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
8995 LLVM_PROF_MERGER="true"
8996 LLVM_PROF_FILE=""
8997 ;;
8998 esac
8999 ;;
9000 *icc*)
9001 PGO_PROF_GEN_FLAG="-prof-gen"
9002 PGO_PROF_USE_FLAG="-prof-use"
9003 LLVM_PROF_MERGER="true"
9004 LLVM_PROF_FILE=""
9005 ;;
9006 esac
9007
9008 # BOLT optimization. Always configured after PGO since it always runs after PGO.
9009 Py_BOLT='false'
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-bolt" >&5
9011 printf %s "checking for --enable-bolt... " >&6; }
9012 # Check whether --enable-bolt was given.
9013 if test ${enable_bolt+y}
9014 then :
9015 enableval=$enable_bolt;
9016 if test "$enableval" != no
9017 then
9018 Py_BOLT='true'
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9020 printf "%s\n" "yes" >&6; };
9021 else
9022 Py_BOLT='false'
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 printf "%s\n" "no" >&6; };
9025 fi
9026 else $as_nop
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 printf "%s\n" "no" >&6; }
9029 fi
9030
9031
9032
9033 if test "$Py_BOLT" = 'true' ; then
9034 PREBOLT_RULE="${DEF_MAKE_ALL_RULE}"
9035 DEF_MAKE_ALL_RULE="bolt-opt"
9036 DEF_MAKE_RULE="build_all"
9037
9038 # -fno-reorder-blocks-and-partition is required for bolt to work.
9039 # Possibly GCC only.
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-reorder-blocks-and-partition" >&5
9041 printf %s "checking whether C compiler accepts -fno-reorder-blocks-and-partition... " >&6; }
9042 if test ${ax_cv_check_cflags___fno_reorder_blocks_and_partition+y}
9043 then :
9044 printf %s "(cached) " >&6
9045 else $as_nop
9046
9047 ax_check_save_flags=$CFLAGS
9048 CFLAGS="$CFLAGS -fno-reorder-blocks-and-partition"
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051
9052 int
9053 main (void)
9054 {
9055
9056 ;
9057 return 0;
9058 }
9059 _ACEOF
9060 if ac_fn_c_try_compile "$LINENO"
9061 then :
9062 ax_cv_check_cflags___fno_reorder_blocks_and_partition=yes
9063 else $as_nop
9064 ax_cv_check_cflags___fno_reorder_blocks_and_partition=no
9065 fi
9066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9067 CFLAGS=$ax_check_save_flags
9068 fi
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&5
9070 printf "%s\n" "$ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&6; }
9071 if test "x$ax_cv_check_cflags___fno_reorder_blocks_and_partition" = xyes
9072 then :
9073
9074 CFLAGS_NODIST="$CFLAGS_NODIST -fno-reorder-blocks-and-partition"
9075
9076 else $as_nop
9077 :
9078 fi
9079
9080
9081 # These flags are required for bolt to work:
9082 LDFLAGS_NODIST="$LDFLAGS_NODIST -Wl,--emit-relocs"
9083
9084 # These flags are required to get good performance from bolt:
9085 CFLAGS_NODIST="$CFLAGS_NODIST -fno-pie"
9086 # We want to add these no-pie flags to linking executables but not shared libraries:
9087 LINKCC="$LINKCC -fno-pie -no-pie"
9088
9089 if test -n "$ac_tool_prefix"; then
9090 # Extract the first word of "${ac_tool_prefix}llvm-bolt", so it can be a program name with args.
9091 set dummy ${ac_tool_prefix}llvm-bolt; ac_word=$2
9092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093 printf %s "checking for $ac_word... " >&6; }
9094 if test ${ac_cv_path_LLVM_BOLT+y}
9095 then :
9096 printf %s "(cached) " >&6
9097 else $as_nop
9098 case $LLVM_BOLT in
9099 [\\/]* | ?:[\\/]*)
9100 ac_cv_path_LLVM_BOLT="$LLVM_BOLT" # Let the user override the test with a path.
9101 ;;
9102 *)
9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 for as_dir in ${llvm_path}
9105 do
9106 IFS=$as_save_IFS
9107 case $as_dir in #(((
9108 '') as_dir=./ ;;
9109 */) ;;
9110 *) as_dir=$as_dir/ ;;
9111 esac
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9114 ac_cv_path_LLVM_BOLT="$as_dir$ac_word$ac_exec_ext"
9115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9116 break 2
9117 fi
9118 done
9119 done
9120 IFS=$as_save_IFS
9121
9122 ;;
9123 esac
9124 fi
9125 LLVM_BOLT=$ac_cv_path_LLVM_BOLT
9126 if test -n "$LLVM_BOLT"; then
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_BOLT" >&5
9128 printf "%s\n" "$LLVM_BOLT" >&6; }
9129 else
9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131 printf "%s\n" "no" >&6; }
9132 fi
9133
9134
9135 fi
9136 if test -z "$ac_cv_path_LLVM_BOLT"; then
9137 ac_pt_LLVM_BOLT=$LLVM_BOLT
9138 # Extract the first word of "llvm-bolt", so it can be a program name with args.
9139 set dummy llvm-bolt; ac_word=$2
9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9141 printf %s "checking for $ac_word... " >&6; }
9142 if test ${ac_cv_path_ac_pt_LLVM_BOLT+y}
9143 then :
9144 printf %s "(cached) " >&6
9145 else $as_nop
9146 case $ac_pt_LLVM_BOLT in
9147 [\\/]* | ?:[\\/]*)
9148 ac_cv_path_ac_pt_LLVM_BOLT="$ac_pt_LLVM_BOLT" # Let the user override the test with a path.
9149 ;;
9150 *)
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in ${llvm_path}
9153 do
9154 IFS=$as_save_IFS
9155 case $as_dir in #(((
9156 '') as_dir=./ ;;
9157 */) ;;
9158 *) as_dir=$as_dir/ ;;
9159 esac
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9162 ac_cv_path_ac_pt_LLVM_BOLT="$as_dir$ac_word$ac_exec_ext"
9163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9164 break 2
9165 fi
9166 done
9167 done
9168 IFS=$as_save_IFS
9169
9170 ;;
9171 esac
9172 fi
9173 ac_pt_LLVM_BOLT=$ac_cv_path_ac_pt_LLVM_BOLT
9174 if test -n "$ac_pt_LLVM_BOLT"; then
9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_BOLT" >&5
9176 printf "%s\n" "$ac_pt_LLVM_BOLT" >&6; }
9177 else
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 printf "%s\n" "no" >&6; }
9180 fi
9181
9182 if test "x$ac_pt_LLVM_BOLT" = x; then
9183 LLVM_BOLT="''"
9184 else
9185 case $cross_compiling:$ac_tool_warned in
9186 yes:)
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189 ac_tool_warned=yes ;;
9190 esac
9191 LLVM_BOLT=$ac_pt_LLVM_BOLT
9192 fi
9193 else
9194 LLVM_BOLT="$ac_cv_path_LLVM_BOLT"
9195 fi
9196
9197 if test -n "${LLVM_BOLT}" -a -x "${LLVM_BOLT}"
9198 then
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found llvm-bolt\"" >&5
9200 printf "%s\n" "\"Found llvm-bolt\"" >&6; }
9201 else
9202 as_fn_error $? "llvm-bolt is required for a --enable-bolt build but could not be found." "$LINENO" 5
9203 fi
9204
9205
9206 if test -n "$ac_tool_prefix"; then
9207 # Extract the first word of "${ac_tool_prefix}merge-fdata", so it can be a program name with args.
9208 set dummy ${ac_tool_prefix}merge-fdata; ac_word=$2
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 printf %s "checking for $ac_word... " >&6; }
9211 if test ${ac_cv_path_MERGE_FDATA+y}
9212 then :
9213 printf %s "(cached) " >&6
9214 else $as_nop
9215 case $MERGE_FDATA in
9216 [\\/]* | ?:[\\/]*)
9217 ac_cv_path_MERGE_FDATA="$MERGE_FDATA" # Let the user override the test with a path.
9218 ;;
9219 *)
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in ${llvm_path}
9222 do
9223 IFS=$as_save_IFS
9224 case $as_dir in #(((
9225 '') as_dir=./ ;;
9226 */) ;;
9227 *) as_dir=$as_dir/ ;;
9228 esac
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9231 ac_cv_path_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext"
9232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9233 break 2
9234 fi
9235 done
9236 done
9237 IFS=$as_save_IFS
9238
9239 ;;
9240 esac
9241 fi
9242 MERGE_FDATA=$ac_cv_path_MERGE_FDATA
9243 if test -n "$MERGE_FDATA"; then
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MERGE_FDATA" >&5
9245 printf "%s\n" "$MERGE_FDATA" >&6; }
9246 else
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 printf "%s\n" "no" >&6; }
9249 fi
9250
9251
9252 fi
9253 if test -z "$ac_cv_path_MERGE_FDATA"; then
9254 ac_pt_MERGE_FDATA=$MERGE_FDATA
9255 # Extract the first word of "merge-fdata", so it can be a program name with args.
9256 set dummy merge-fdata; ac_word=$2
9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258 printf %s "checking for $ac_word... " >&6; }
9259 if test ${ac_cv_path_ac_pt_MERGE_FDATA+y}
9260 then :
9261 printf %s "(cached) " >&6
9262 else $as_nop
9263 case $ac_pt_MERGE_FDATA in
9264 [\\/]* | ?:[\\/]*)
9265 ac_cv_path_ac_pt_MERGE_FDATA="$ac_pt_MERGE_FDATA" # Let the user override the test with a path.
9266 ;;
9267 *)
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in ${llvm_path}
9270 do
9271 IFS=$as_save_IFS
9272 case $as_dir in #(((
9273 '') as_dir=./ ;;
9274 */) ;;
9275 *) as_dir=$as_dir/ ;;
9276 esac
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9279 ac_cv_path_ac_pt_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext"
9280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9281 break 2
9282 fi
9283 done
9284 done
9285 IFS=$as_save_IFS
9286
9287 ;;
9288 esac
9289 fi
9290 ac_pt_MERGE_FDATA=$ac_cv_path_ac_pt_MERGE_FDATA
9291 if test -n "$ac_pt_MERGE_FDATA"; then
9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MERGE_FDATA" >&5
9293 printf "%s\n" "$ac_pt_MERGE_FDATA" >&6; }
9294 else
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 printf "%s\n" "no" >&6; }
9297 fi
9298
9299 if test "x$ac_pt_MERGE_FDATA" = x; then
9300 MERGE_FDATA="''"
9301 else
9302 case $cross_compiling:$ac_tool_warned in
9303 yes:)
9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9306 ac_tool_warned=yes ;;
9307 esac
9308 MERGE_FDATA=$ac_pt_MERGE_FDATA
9309 fi
9310 else
9311 MERGE_FDATA="$ac_cv_path_MERGE_FDATA"
9312 fi
9313
9314 if test -n "${MERGE_FDATA}" -a -x "${MERGE_FDATA}"
9315 then
9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found merge-fdata\"" >&5
9317 printf "%s\n" "\"Found merge-fdata\"" >&6; }
9318 else
9319 as_fn_error $? "merge-fdata is required for a --enable-bolt build but could not be found." "$LINENO" 5
9320 fi
9321 fi
9322
9323
9324 BOLT_BINARIES='$(BUILDPYTHON)'
9325 if test "x$enable_shared" = xyes
9326 then :
9327
9328 BOLT_BINARIES="${BOLT_BINARIES} \$(INSTSONAME)"
9329
9330 fi
9331
9332
9333
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_COMMON_FLAGS" >&5
9335 printf %s "checking BOLT_COMMON_FLAGS... " >&6; }
9336 if test -z "${BOLT_COMMON_FLAGS}"
9337 then
9338 BOLT_COMMON_FLAGS=" -update-debug-sections -skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1 "
9339
9340 fi
9341
9342
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_INSTRUMENT_FLAGS" >&5
9344 printf %s "checking BOLT_INSTRUMENT_FLAGS... " >&6; }
9345 if test -z "${BOLT_INSTRUMENT_FLAGS}"
9346 then
9347 BOLT_INSTRUMENT_FLAGS="${BOLT_COMMON_FLAGS}"
9348 fi
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_INSTRUMENT_FLAGS" >&5
9350 printf "%s\n" "$BOLT_INSTRUMENT_FLAGS" >&6; }
9351
9352
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_APPLY_FLAGS" >&5
9354 printf %s "checking BOLT_APPLY_FLAGS... " >&6; }
9355 if test -z "${BOLT_APPLY_FLAGS}"
9356 then
9357 BOLT_APPLY_FLAGS=" ${BOLT_COMMON_FLAGS} -reorder-blocks=ext-tsp -reorder-functions=cdsort -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot "
9358
9359 fi
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_APPLY_FLAGS" >&5
9361 printf "%s\n" "$BOLT_APPLY_FLAGS" >&6; }
9362
9363 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
9364 # merged with this chunk of code?
9365
9366 # Optimizer/debugger flags
9367 # ------------------------
9368 # (The following bit of code is complicated enough - please keep things
9369 # indented properly. Just pretend you're editing Python code. ;-)
9370
9371 # There are two parallel sets of case statements below, one that checks to
9372 # see if OPT was set and one that does BASECFLAGS setting based upon
9373 # compiler and platform. BASECFLAGS tweaks need to be made even if the
9374 # user set OPT.
9375
9376 case $CC in
9377 *clang*)
9378 cc_is_clang=1
9379 ;;
9380 *)
9381 if $CC --version 2>&1 | grep -q clang
9382 then
9383 cc_is_clang=1
9384 else
9385 cc_is_clang=
9386 fi
9387 esac
9388
9389 save_CFLAGS=$CFLAGS
9390 CFLAGS="-fstrict-overflow -fno-strict-overflow"
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow and -fno-strict-overflow" >&5
9392 printf %s "checking if $CC supports -fstrict-overflow and -fno-strict-overflow... " >&6; }
9393 if test ${ac_cv_cc_supports_fstrict_overflow+y}
9394 then :
9395 printf %s "(cached) " >&6
9396 else $as_nop
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399
9400 int
9401 main (void)
9402 {
9403
9404 ;
9405 return 0;
9406 }
9407 _ACEOF
9408 if ac_fn_c_try_compile "$LINENO"
9409 then :
9410 ac_cv_cc_supports_fstrict_overflow=yes
9411 else $as_nop
9412 ac_cv_cc_supports_fstrict_overflow=no
9413
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9416
9417 fi
9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_fstrict_overflow" >&5
9419 printf "%s\n" "$ac_cv_cc_supports_fstrict_overflow" >&6; }
9420 CFLAGS=$save_CFLAGS
9421
9422 if test "x$ac_cv_cc_supports_fstrict_overflow" = xyes
9423 then :
9424 STRICT_OVERFLOW_CFLAGS="-fstrict-overflow"
9425 NO_STRICT_OVERFLOW_CFLAGS="-fno-strict-overflow"
9426 else $as_nop
9427 STRICT_OVERFLOW_CFLAGS=""
9428 NO_STRICT_OVERFLOW_CFLAGS=""
9429 fi
9430
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-strict-overflow" >&5
9432 printf %s "checking for --with-strict-overflow... " >&6; }
9433
9434 # Check whether --with-strict-overflow was given.
9435 if test ${with_strict_overflow+y}
9436 then :
9437 withval=$with_strict_overflow;
9438 if test "x$ac_cv_cc_supports_fstrict_overflow" = xno
9439 then :
9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&5
9441 printf "%s\n" "$as_me: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&2;}
9442 fi
9443
9444 else $as_nop
9445 with_strict_overflow=no
9446
9447 fi
9448
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_strict_overflow" >&5
9450 printf "%s\n" "$with_strict_overflow" >&6; }
9451
9452 # Check if CC supports -Og optimization level
9453 save_CFLAGS=$CFLAGS
9454 CFLAGS="-Og"
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Og optimization level" >&5
9456 printf %s "checking if $CC supports -Og optimization level... " >&6; }
9457 if test ${ac_cv_cc_supports_og+y}
9458 then :
9459 printf %s "(cached) " >&6
9460 else $as_nop
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463
9464
9465 int
9466 main (void)
9467 {
9468
9469 ;
9470 return 0;
9471 }
9472
9473 _ACEOF
9474 if ac_fn_c_try_compile "$LINENO"
9475 then :
9476
9477 ac_cv_cc_supports_og=yes
9478
9479 else $as_nop
9480
9481 ac_cv_cc_supports_og=no
9482
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9485
9486 fi
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_og" >&5
9488 printf "%s\n" "$ac_cv_cc_supports_og" >&6; }
9489 CFLAGS=$save_CFLAGS
9490
9491 # Optimization messes up debuggers, so turn it off for
9492 # debug builds.
9493 PYDEBUG_CFLAGS="-O0"
9494 if test "x$ac_cv_cc_supports_og" = xyes
9495 then :
9496 PYDEBUG_CFLAGS="-Og"
9497 fi
9498
9499 # tweak OPT based on compiler and platform, only if the user didn't set
9500 # it on the command line
9501
9502
9503 if test "${OPT-unset}" = "unset"
9504 then
9505 case $GCC in
9506 yes)
9507 if test -n "${cc_is_clang}"
9508 then
9509 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
9510 # see Makefile.pre.in for more information
9511 CFLAGS_ALIASING="-fno-strict-aliasing"
9512 fi
9513
9514 case $ac_cv_prog_cc_g in
9515 yes)
9516 if test "$Py_DEBUG" = 'true' ; then
9517 OPT="-g $PYDEBUG_CFLAGS -Wall"
9518 else
9519 OPT="-g -O3 -Wall"
9520 fi
9521 ;;
9522 *)
9523 OPT="-O3 -Wall"
9524 ;;
9525 esac
9526
9527 case $ac_sys_system in
9528 SCO_SV*) OPT="$OPT -m486 -DSCO5"
9529 ;;
9530 esac
9531 ;;
9532
9533 *)
9534 OPT="-O"
9535 ;;
9536 esac
9537 fi
9538
9539 # WASM flags
9540 case $ac_sys_system in #(
9541 Emscripten) :
9542
9543 if test "x$Py_DEBUG" = xyes
9544 then :
9545 wasm_debug=yes
9546 else $as_nop
9547 wasm_debug=no
9548 fi
9549
9550 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sTOTAL_MEMORY=20971520"
9551
9552 as_fn_append LDFLAGS_NODIST " -sWASM_BIGINT"
9553
9554 as_fn_append LDFLAGS_NODIST " -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js"
9555
9556 if test "x$enable_wasm_dynamic_linking" = xyes
9557 then :
9558
9559 as_fn_append LINKFORSHARED " -sMAIN_MODULE"
9560
9561 fi
9562
9563 if test "x$enable_wasm_pthreads" = xyes
9564 then :
9565
9566 as_fn_append CFLAGS_NODIST " -pthread"
9567 as_fn_append LDFLAGS_NODIST " -sUSE_PTHREADS"
9568 as_fn_append LINKFORSHARED " -sPROXY_TO_PTHREAD"
9569
9570 fi
9571
9572 case $ac_sys_emscripten_target in #(
9573 browser*) :
9574
9575 if test "x$ac_sys_emscripten_target" = xbrowser-debug
9576 then :
9577 wasm_debug=yes
9578 fi
9579 as_fn_append LINKFORSHARED " --preload-file=\$(WASM_ASSETS_DIR)"
9580 WASM_ASSETS_DIR=".\$(prefix)"
9581 WASM_STDLIB="\$(WASM_ASSETS_DIR)/local/lib/python\$(VERSION)/os.py"
9582 WASM_LINKFORSHARED_DEBUG="-gsource-map --emit-symbol-map"
9583 ;; #(
9584 node*) :
9585
9586 if test "x$ac_sys_emscripten_target" = xnode-debug
9587 then :
9588 wasm_debug=yes
9589 fi
9590 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sNODERAWFS"
9591 as_fn_append LINKFORSHARED " -sEXIT_RUNTIME"
9592 WASM_LINKFORSHARED_DEBUG="-gseparate-dwarf --emit-symbol-map"
9593
9594 ;; #(
9595 *) :
9596 ;;
9597 esac
9598
9599 if test "x$wasm_debug" = xyes
9600 then :
9601
9602 as_fn_append LDFLAGS_NODIST " -sASSERTIONS"
9603 as_fn_append LINKFORSHARED " $WASM_LINKFORSHARED_DEBUG"
9604
9605 else $as_nop
9606
9607 as_fn_append LINKFORSHARED " -O2 -g0"
9608
9609 fi
9610 ;; #(
9611 WASI) :
9612
9613
9614 printf "%s\n" "#define _WASI_EMULATED_SIGNAL 1" >>confdefs.h
9615
9616
9617 printf "%s\n" "#define _WASI_EMULATED_GETPID 1" >>confdefs.h
9618
9619
9620 printf "%s\n" "#define _WASI_EMULATED_PROCESS_CLOCKS 1" >>confdefs.h
9621
9622 LIBS="$LIBS -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks"
9623 echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
9624
9625 if test "x$enable_wasm_pthreads" = xyes
9626 then :
9627
9628 # Note: update CFLAGS because ac_compile/ac_link needs this too.
9629 # without this, configure fails to find pthread_create, sem_init,
9630 # etc because they are only available in the sysroot for
9631 # wasm32-wasi-threads.
9632 # Note: wasi-threads requires --import-memory.
9633 # Note: wasi requires --export-memory.
9634 # Note: --export-memory is implicit unless --import-memory is given
9635 # Note: this requires LLVM >= 16.
9636 as_fn_append CFLAGS " -target wasm32-wasi-threads -pthread"
9637 as_fn_append CFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
9638 as_fn_append LDFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
9639 as_fn_append LDFLAGS_NODIST " -Wl,--import-memory"
9640 as_fn_append LDFLAGS_NODIST " -Wl,--export-memory"
9641 as_fn_append LDFLAGS_NODIST " -Wl,--max-memory=10485760"
9642
9643 fi
9644
9645 as_fn_append LDFLAGS_NODIST " -z stack-size=8388608 -Wl,--stack-first -Wl,--initial-memory=20971520"
9646
9647 ;; #(
9648 *) :
9649 ;;
9650 esac
9651
9652 case $enable_wasm_dynamic_linking in #(
9653 yes) :
9654 ac_cv_func_dlopen=yes ;; #(
9655 no) :
9656 ac_cv_func_dlopen=no ;; #(
9657 missing) :
9658
9659 ;; #(
9660 *) :
9661 ;;
9662 esac
9663
9664
9665
9666
9667
9668
9669
9670
9671 # The -arch flags for universal builds on macOS
9672 UNIVERSAL_ARCH_FLAGS=
9673
9674
9675
9676
9677 # tweak BASECFLAGS based on compiler and platform
9678 if test "x$with_strict_overflow" = xyes
9679 then :
9680 BASECFLAGS="$BASECFLAGS $STRICT_OVERFLOW_CFLAGS"
9681 else $as_nop
9682 BASECFLAGS="$BASECFLAGS $NO_STRICT_OVERFLOW_CFLAGS"
9683 fi
9684
9685 case $GCC in
9686 yes)
9687 CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
9688
9689
9690
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can add -Wextra" >&5
9692 printf %s "checking if we can add -Wextra... " >&6; }
9693 if test ${ac_cv_enable_extra_warning+y}
9694 then :
9695 printf %s "(cached) " >&6
9696 else $as_nop
9697
9698 py_cflags=$CFLAGS
9699 as_fn_append CFLAGS " -Wextra -Werror"
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702
9703 int
9704 main (void)
9705 {
9706
9707 ;
9708 return 0;
9709 }
9710 _ACEOF
9711 if ac_fn_c_try_compile "$LINENO"
9712 then :
9713 ac_cv_enable_extra_warning=yes
9714 else $as_nop
9715 ac_cv_enable_extra_warning=no
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9718 CFLAGS=$py_cflags
9719
9720 fi
9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_extra_warning" >&5
9722 printf "%s\n" "$ac_cv_enable_extra_warning" >&6; }
9723
9724
9725 if test "x$ac_cv_enable_extra_warning" = xyes
9726 then :
9727 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
9728 fi
9729
9730 # Python doesn't violate C99 aliasing rules, but older versions of
9731 # GCC produce warnings for legal Python code. Enable
9732 # -fno-strict-aliasing on versions of GCC that support but produce
9733 # warnings. See Issue3326
9734 ac_save_cc="$CC"
9735 CC="$CC -fno-strict-aliasing"
9736 save_CFLAGS="$CFLAGS"
9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
9738 printf %s "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
9739 if test ${ac_cv_no_strict_aliasing+y}
9740 then :
9741 printf %s "(cached) " >&6
9742 else $as_nop
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9745
9746
9747 int
9748 main (void)
9749 {
9750
9751 ;
9752 return 0;
9753 }
9754
9755 _ACEOF
9756 if ac_fn_c_try_compile "$LINENO"
9757 then :
9758
9759 CC="$ac_save_cc -fstrict-aliasing"
9760 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763
9764 void f(int **x) {}
9765 int
9766 main (void)
9767 {
9768 double *x; f((int **) &x);
9769 ;
9770 return 0;
9771 }
9772
9773 _ACEOF
9774 if ac_fn_c_try_compile "$LINENO"
9775 then :
9776
9777 ac_cv_no_strict_aliasing=no
9778
9779 else $as_nop
9780
9781 ac_cv_no_strict_aliasing=yes
9782
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9785
9786 else $as_nop
9787
9788 ac_cv_no_strict_aliasing=no
9789
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9792 fi
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
9794 printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; }
9795 CFLAGS="$save_CFLAGS"
9796 CC="$ac_save_cc"
9797 if test "x$ac_cv_no_strict_aliasing" = xyes
9798 then :
9799 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
9800 fi
9801
9802 # ICC doesn't recognize the option, but only emits a warning
9803 ## XXX does it emit an unused result warning and can it be disabled?
9804 case "$CC_BASENAME" in #(
9805 *icc*) :
9806 ac_cv_disable_unused_result_warning=no
9807
9808
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-result warning" >&5
9810 printf %s "checking if we can disable $CC unused-result warning... " >&6; }
9811 if test ${ac_cv_disable_unused_result_warning+y}
9812 then :
9813 printf %s "(cached) " >&6
9814 else $as_nop
9815
9816 py_cflags=$CFLAGS
9817 as_fn_append CFLAGS " -Wunused-result -Werror"
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820
9821 int
9822 main (void)
9823 {
9824
9825 ;
9826 return 0;
9827 }
9828 _ACEOF
9829 if ac_fn_c_try_compile "$LINENO"
9830 then :
9831 ac_cv_disable_unused_result_warning=yes
9832 else $as_nop
9833 ac_cv_disable_unused_result_warning=no
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836 CFLAGS=$py_cflags
9837
9838 fi
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
9840 printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; }
9841
9842 ;; #(
9843 *) :
9844 ;;
9845 esac
9846 if test "x$ac_cv_disable_unused_result_warning" = xyes
9847 then :
9848 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
9849 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
9850 fi
9851
9852
9853
9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-parameter warning" >&5
9855 printf %s "checking if we can disable $CC unused-parameter warning... " >&6; }
9856 if test ${ac_cv_disable_unused_parameter_warning+y}
9857 then :
9858 printf %s "(cached) " >&6
9859 else $as_nop
9860
9861 py_cflags=$CFLAGS
9862 as_fn_append CFLAGS " -Wunused-parameter -Werror"
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865
9866 int
9867 main (void)
9868 {
9869
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 if ac_fn_c_try_compile "$LINENO"
9875 then :
9876 ac_cv_disable_unused_parameter_warning=yes
9877 else $as_nop
9878 ac_cv_disable_unused_parameter_warning=no
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9881 CFLAGS=$py_cflags
9882
9883 fi
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
9885 printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; }
9886
9887
9888 if test "x$ac_cv_disable_unused_parameter_warning" = xyes
9889 then :
9890 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
9891 fi
9892
9893
9894
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC int-conversion warning" >&5
9896 printf %s "checking if we can disable $CC int-conversion warning... " >&6; }
9897 if test ${ac_cv_disable_int_conversion_warning+y}
9898 then :
9899 printf %s "(cached) " >&6
9900 else $as_nop
9901
9902 py_cflags=$CFLAGS
9903 as_fn_append CFLAGS " -Wint-conversion -Werror"
9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h. */
9906
9907 int
9908 main (void)
9909 {
9910
9911 ;
9912 return 0;
9913 }
9914 _ACEOF
9915 if ac_fn_c_try_compile "$LINENO"
9916 then :
9917 ac_cv_disable_int_conversion_warning=yes
9918 else $as_nop
9919 ac_cv_disable_int_conversion_warning=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9922 CFLAGS=$py_cflags
9923
9924 fi
9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_int_conversion_warning" >&5
9926 printf "%s\n" "$ac_cv_disable_int_conversion_warning" >&6; }
9927
9928
9929 if test "x$ac_cv_disable_int_conversion" = xyes
9930 then :
9931 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-int-conversion"
9932 fi
9933
9934
9935
9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5
9937 printf %s "checking if we can disable $CC missing-field-initializers warning... " >&6; }
9938 if test ${ac_cv_disable_missing_field_initializers_warning+y}
9939 then :
9940 printf %s "(cached) " >&6
9941 else $as_nop
9942
9943 py_cflags=$CFLAGS
9944 as_fn_append CFLAGS " -Wmissing-field-initializers -Werror"
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h. */
9947
9948 int
9949 main (void)
9950 {
9951
9952 ;
9953 return 0;
9954 }
9955 _ACEOF
9956 if ac_fn_c_try_compile "$LINENO"
9957 then :
9958 ac_cv_disable_missing_field_initializers_warning=yes
9959 else $as_nop
9960 ac_cv_disable_missing_field_initializers_warning=no
9961 fi
9962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9963 CFLAGS=$py_cflags
9964
9965 fi
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers_warning" >&5
9967 printf "%s\n" "$ac_cv_disable_missing_field_initializers_warning" >&6; }
9968
9969
9970 if test "x$ac_cv_disable_missing_field_initializers_warning" = xyes
9971 then :
9972 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
9973 fi
9974
9975
9976
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC sign-compare warning" >&5
9978 printf %s "checking if we can enable $CC sign-compare warning... " >&6; }
9979 if test ${ac_cv_enable_sign_compare_warning+y}
9980 then :
9981 printf %s "(cached) " >&6
9982 else $as_nop
9983
9984 py_cflags=$CFLAGS
9985 as_fn_append CFLAGS " -Wsign-compare -Werror"
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988
9989 int
9990 main (void)
9991 {
9992
9993 ;
9994 return 0;
9995 }
9996 _ACEOF
9997 if ac_fn_c_try_compile "$LINENO"
9998 then :
9999 ac_cv_enable_sign_compare_warning=yes
10000 else $as_nop
10001 ac_cv_enable_sign_compare_warning=no
10002 fi
10003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10004 CFLAGS=$py_cflags
10005
10006 fi
10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
10008 printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; }
10009
10010
10011 if test "x$ac_cv_enable_sign_compare_warning" = xyes
10012 then :
10013 BASECFLAGS="$BASECFLAGS -Wsign-compare"
10014 fi
10015
10016
10017
10018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC unreachable-code warning" >&5
10019 printf %s "checking if we can enable $CC unreachable-code warning... " >&6; }
10020 if test ${ac_cv_enable_unreachable_code_warning+y}
10021 then :
10022 printf %s "(cached) " >&6
10023 else $as_nop
10024
10025 py_cflags=$CFLAGS
10026 as_fn_append CFLAGS " -Wunreachable-code -Werror"
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029
10030 int
10031 main (void)
10032 {
10033
10034 ;
10035 return 0;
10036 }
10037 _ACEOF
10038 if ac_fn_c_try_compile "$LINENO"
10039 then :
10040 ac_cv_enable_unreachable_code_warning=yes
10041 else $as_nop
10042 ac_cv_enable_unreachable_code_warning=no
10043 fi
10044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10045 CFLAGS=$py_cflags
10046
10047 fi
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
10049 printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; }
10050
10051
10052 # Don't enable unreachable code warning in debug mode, since it usually
10053 # results in non-standard code paths.
10054 # Issue #24324: Unfortunately, the unreachable code warning does not work
10055 # correctly on gcc and has been silently removed from the compiler.
10056 # It is supported on clang but on OS X systems gcc may be an alias
10057 # for clang. Try to determine if the compiler is not really gcc and,
10058 # if so, only then enable the warning.
10059 if test $ac_cv_enable_unreachable_code_warning = yes && \
10060 test "$Py_DEBUG" != "true" && \
10061 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
10062 then
10063 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
10064 else
10065 ac_cv_enable_unreachable_code_warning=no
10066 fi
10067
10068
10069
10070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC strict-prototypes warning" >&5
10071 printf %s "checking if we can enable $CC strict-prototypes warning... " >&6; }
10072 if test ${ac_cv_enable_strict_prototypes_warning+y}
10073 then :
10074 printf %s "(cached) " >&6
10075 else $as_nop
10076
10077 py_cflags=$CFLAGS
10078 as_fn_append CFLAGS " -Wstrict-prototypes -Werror"
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081
10082 int
10083 main (void)
10084 {
10085
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 if ac_fn_c_try_compile "$LINENO"
10091 then :
10092 ac_cv_enable_strict_prototypes_warning=yes
10093 else $as_nop
10094 ac_cv_enable_strict_prototypes_warning=no
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10097 CFLAGS=$py_cflags
10098
10099 fi
10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
10101 printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; }
10102
10103
10104 if test "x$ac_cv_enable_strict_prototypes_warning" = xyes
10105 then :
10106 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
10107 fi
10108
10109 ac_save_cc="$CC"
10110 CC="$CC -Werror=implicit-function-declaration"
10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
10112 printf %s "checking if we can make implicit function declaration an error in $CC... " >&6; }
10113 if test ${ac_cv_enable_implicit_function_declaration_error+y}
10114 then :
10115 printf %s "(cached) " >&6
10116 else $as_nop
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119
10120
10121 int
10122 main (void)
10123 {
10124
10125 ;
10126 return 0;
10127 }
10128
10129 _ACEOF
10130 if ac_fn_c_try_compile "$LINENO"
10131 then :
10132
10133 ac_cv_enable_implicit_function_declaration_error=yes
10134
10135 else $as_nop
10136
10137 ac_cv_enable_implicit_function_declaration_error=no
10138
10139 fi
10140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10141 fi
10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
10143 printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; }
10144 CC="$ac_save_cc"
10145
10146 if test "x$ac_cv_enable_implicit_function_declaration_error" = xyes
10147 then :
10148 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
10149 fi
10150
10151 ac_save_cc="$CC"
10152 CC="$CC -fvisibility=hidden"
10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5
10154 printf %s "checking if we can use visibility in $CC... " >&6; }
10155 if test ${ac_cv_enable_visibility+y}
10156 then :
10157 printf %s "(cached) " >&6
10158 else $as_nop
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161
10162
10163 int
10164 main (void)
10165 {
10166
10167 ;
10168 return 0;
10169 }
10170
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"
10173 then :
10174
10175 ac_cv_enable_visibility=yes
10176
10177 else $as_nop
10178
10179 ac_cv_enable_visibility=no
10180
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10183 fi
10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5
10185 printf "%s\n" "$ac_cv_enable_visibility" >&6; }
10186 CC="$ac_save_cc"
10187
10188 if test "x$ac_cv_enable_visibility" = xyes
10189 then :
10190 CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden"
10191 fi
10192
10193 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
10194 # support. Without this, treatment of subnormals doesn't follow
10195 # the standard.
10196 case $host in
10197 alpha*)
10198 BASECFLAGS="$BASECFLAGS -mieee"
10199 ;;
10200 esac
10201
10202 case $ac_sys_system in
10203 SCO_SV*)
10204 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
10205 ;;
10206
10207 Darwin*)
10208 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
10209 # used to be here, but non-Apple gcc doesn't accept them.
10210 if test "${CC}" = gcc
10211 then
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
10213 printf %s "checking which compiler should be used... " >&6; }
10214 case "${UNIVERSALSDK}" in
10215 */MacOSX10.4u.sdk)
10216 # Build using 10.4 SDK, force usage of gcc when the
10217 # compiler is gcc, otherwise the user will get very
10218 # confusing error messages when building on OSX 10.6
10219 CC=gcc-4.0
10220 CPP=cpp-4.0
10221 ;;
10222 esac
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10224 printf "%s\n" "$CC" >&6; }
10225 fi
10226
10227 LIPO_INTEL64_FLAGS=""
10228 if test "${enable_universalsdk}"
10229 then
10230 case "$UNIVERSAL_ARCHS" in
10231 32-bit)
10232 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
10233 LIPO_32BIT_FLAGS=""
10234 ARCH_RUN_32BIT=""
10235 ;;
10236 64-bit)
10237 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
10238 LIPO_32BIT_FLAGS=""
10239 ARCH_RUN_32BIT="true"
10240 ;;
10241 all)
10242 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
10243 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10244 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10245 ;;
10246 universal2)
10247 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64"
10248 LIPO_32BIT_FLAGS=""
10249 LIPO_INTEL64_FLAGS="-extract x86_64"
10250 ARCH_RUN_32BIT="true"
10251 ;;
10252 intel)
10253 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
10254 LIPO_32BIT_FLAGS="-extract i386"
10255 ARCH_RUN_32BIT="/usr/bin/arch -i386"
10256 ;;
10257 intel-32)
10258 UNIVERSAL_ARCH_FLAGS="-arch i386"
10259 LIPO_32BIT_FLAGS=""
10260 ARCH_RUN_32BIT=""
10261 ;;
10262 intel-64)
10263 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
10264 LIPO_32BIT_FLAGS=""
10265 ARCH_RUN_32BIT="true"
10266 ;;
10267 3-way)
10268 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
10269 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10270 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10271 ;;
10272 *)
10273 as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5
10274 ;;
10275 esac
10276
10277 if test "${UNIVERSALSDK}" != "/"
10278 then
10279 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
10280 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10281 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
10282 else
10283 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
10284 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
10285 fi
10286 fi
10287
10288 # Calculate an appropriate deployment target for this build:
10289 # The deployment target value is used explicitly to enable certain
10290 # features are enabled (such as builtin libedit support for readline)
10291 # through the use of Apple's Availability Macros and is used as a
10292 # component of the string returned by distutils.get_platform().
10293 #
10294 # Use the value from:
10295 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
10296 # 2. the operating system version of the build machine if >= 10.6
10297 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
10298 # below to pick either 10.3, 10.4, or 10.5 as the target.
10299 # 4. If we are running on OS X 10.2 or earlier, good luck!
10300
10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
10302 printf %s "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
10303 cur_target_major=`sw_vers -productVersion | \
10304 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
10305 cur_target_minor=`sw_vers -productVersion | \
10306 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
10307 cur_target="${cur_target_major}.${cur_target_minor}"
10308 if test ${cur_target_major} -eq 10 && \
10309 test ${cur_target_minor} -ge 3 && \
10310 test ${cur_target_minor} -le 5
10311 then
10312 # OS X 10.3 through 10.5
10313 cur_target=10.3
10314 if test ${enable_universalsdk}
10315 then
10316 case "$UNIVERSAL_ARCHS" in
10317 all|3-way|intel|64-bit)
10318 # These configurations were first supported in 10.5
10319 cur_target='10.5'
10320 ;;
10321 esac
10322 else
10323 if test `/usr/bin/arch` = "i386"
10324 then
10325 # 10.4 was the first release to support Intel archs
10326 cur_target="10.4"
10327 fi
10328 fi
10329 fi
10330 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10331
10332 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
10333 # environment with a value that is the same as what we'll use
10334 # in the Makefile to ensure that we'll get the same compiler
10335 # environment during configure and build time.
10336 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
10337 export MACOSX_DEPLOYMENT_TARGET
10338 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
10340 printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; }
10341
10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5
10343 printf %s "checking if specified universal architectures work... " >&6; }
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346 #include <stdio.h>
10347 int
10348 main (void)
10349 {
10350 printf("%d", 42);
10351 ;
10352 return 0;
10353 }
10354 _ACEOF
10355 if ac_fn_c_try_link "$LINENO"
10356 then :
10357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10358 printf "%s\n" "yes" >&6; }
10359 else $as_nop
10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 printf "%s\n" "no" >&6; }
10362 as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5
10363
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10366 conftest$ac_exeext conftest.$ac_ext
10367
10368 # end of Darwin* tests
10369 ;;
10370 esac
10371 ;;
10372
10373 *)
10374 case $ac_sys_system in
10375 OpenUNIX*|UnixWare*)
10376 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
10377 ;;
10378 SCO_SV*)
10379 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
10380 ;;
10381 esac
10382 ;;
10383 esac
10384
10385 case "$CC_BASENAME" in
10386 *mpicc*)
10387 CFLAGS_NODIST="$CFLAGS_NODIST"
10388 ;;
10389 *icc*)
10390 # ICC needs -fp-model strict or floats behave badly
10391 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
10392 ;;
10393 *xlc*)
10394 CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
10395 ;;
10396 esac
10397
10398 if test "$assertions" = 'true'; then
10399 :
10400 else
10401 OPT="-DNDEBUG $OPT"
10402 fi
10403
10404 if test "$ac_arch_flags"
10405 then
10406 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
10407 fi
10408
10409 # On some compilers, pthreads are available without further options
10410 # (e.g. MacOS X). On some of these systems, the compiler will not
10411 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
10412 # So we have to see first whether pthreads are available without
10413 # options before we can check whether -Kpthread improves anything.
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
10415 printf %s "checking whether pthreads are available without options... " >&6; }
10416 if test ${ac_cv_pthread_is_default+y}
10417 then :
10418 printf %s "(cached) " >&6
10419 else $as_nop
10420 if test "$cross_compiling" = yes
10421 then :
10422 ac_cv_pthread_is_default=no
10423 else $as_nop
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426
10427 #include <stdio.h>
10428 #include <pthread.h>
10429
10430 void* routine(void* p){return NULL;}
10431
10432 int main(void){
10433 pthread_t p;
10434 if(pthread_create(&p,NULL,routine,NULL)!=0)
10435 return 1;
10436 (void)pthread_detach(p);
10437 return 0;
10438 }
10439
10440 _ACEOF
10441 if ac_fn_c_try_run "$LINENO"
10442 then :
10443
10444 ac_cv_pthread_is_default=yes
10445 ac_cv_kthread=no
10446 ac_cv_pthread=no
10447
10448 else $as_nop
10449 ac_cv_pthread_is_default=no
10450 fi
10451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10452 conftest.$ac_objext conftest.beam conftest.$ac_ext
10453 fi
10454
10455
10456 fi
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
10458 printf "%s\n" "$ac_cv_pthread_is_default" >&6; }
10459
10460
10461 if test $ac_cv_pthread_is_default = yes
10462 then
10463 ac_cv_kpthread=no
10464 else
10465 # -Kpthread, if available, provides the right #defines
10466 # and linker options to make pthread_create available
10467 # Some compilers won't report that they do not support -Kpthread,
10468 # so we need to run a program to see whether it really made the
10469 # function available.
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
10471 printf %s "checking whether $CC accepts -Kpthread... " >&6; }
10472 if test ${ac_cv_kpthread+y}
10473 then :
10474 printf %s "(cached) " >&6
10475 else $as_nop
10476 ac_save_cc="$CC"
10477 CC="$CC -Kpthread"
10478 if test "$cross_compiling" = yes
10479 then :
10480 ac_cv_kpthread=no
10481 else $as_nop
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10484
10485 #include <stdio.h>
10486 #include <pthread.h>
10487
10488 void* routine(void* p){return NULL;}
10489
10490 int main(void){
10491 pthread_t p;
10492 if(pthread_create(&p,NULL,routine,NULL)!=0)
10493 return 1;
10494 (void)pthread_detach(p);
10495 return 0;
10496 }
10497
10498 _ACEOF
10499 if ac_fn_c_try_run "$LINENO"
10500 then :
10501 ac_cv_kpthread=yes
10502 else $as_nop
10503 ac_cv_kpthread=no
10504 fi
10505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10506 conftest.$ac_objext conftest.beam conftest.$ac_ext
10507 fi
10508
10509 CC="$ac_save_cc"
10510 fi
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
10512 printf "%s\n" "$ac_cv_kpthread" >&6; }
10513 fi
10514
10515 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
10516 then
10517 # -Kthread, if available, provides the right #defines
10518 # and linker options to make pthread_create available
10519 # Some compilers won't report that they do not support -Kthread,
10520 # so we need to run a program to see whether it really made the
10521 # function available.
10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
10523 printf %s "checking whether $CC accepts -Kthread... " >&6; }
10524 if test ${ac_cv_kthread+y}
10525 then :
10526 printf %s "(cached) " >&6
10527 else $as_nop
10528 ac_save_cc="$CC"
10529 CC="$CC -Kthread"
10530 if test "$cross_compiling" = yes
10531 then :
10532 ac_cv_kthread=no
10533 else $as_nop
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536
10537 #include <stdio.h>
10538 #include <pthread.h>
10539
10540 void* routine(void* p){return NULL;}
10541
10542 int main(void){
10543 pthread_t p;
10544 if(pthread_create(&p,NULL,routine,NULL)!=0)
10545 return 1;
10546 (void)pthread_detach(p);
10547 return 0;
10548 }
10549
10550 _ACEOF
10551 if ac_fn_c_try_run "$LINENO"
10552 then :
10553 ac_cv_kthread=yes
10554 else $as_nop
10555 ac_cv_kthread=no
10556 fi
10557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10558 conftest.$ac_objext conftest.beam conftest.$ac_ext
10559 fi
10560
10561 CC="$ac_save_cc"
10562 fi
10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
10564 printf "%s\n" "$ac_cv_kthread" >&6; }
10565 fi
10566
10567 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
10568 then
10569 # -pthread, if available, provides the right #defines
10570 # and linker options to make pthread_create available
10571 # Some compilers won't report that they do not support -pthread,
10572 # so we need to run a program to see whether it really made the
10573 # function available.
10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
10575 printf %s "checking whether $CC accepts -pthread... " >&6; }
10576 if test ${ac_cv_pthread+y}
10577 then :
10578 printf %s "(cached) " >&6
10579 else $as_nop
10580 ac_save_cc="$CC"
10581 CC="$CC -pthread"
10582 if test "$cross_compiling" = yes
10583 then :
10584 ac_cv_pthread=no
10585 else $as_nop
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588
10589 #include <stdio.h>
10590 #include <pthread.h>
10591
10592 void* routine(void* p){return NULL;}
10593
10594 int main(void){
10595 pthread_t p;
10596 if(pthread_create(&p,NULL,routine,NULL)!=0)
10597 return 1;
10598 (void)pthread_detach(p);
10599 return 0;
10600 }
10601
10602 _ACEOF
10603 if ac_fn_c_try_run "$LINENO"
10604 then :
10605 ac_cv_pthread=yes
10606 else $as_nop
10607 ac_cv_pthread=no
10608 fi
10609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10610 conftest.$ac_objext conftest.beam conftest.$ac_ext
10611 fi
10612
10613 CC="$ac_save_cc"
10614 fi
10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
10616 printf "%s\n" "$ac_cv_pthread" >&6; }
10617 fi
10618
10619 # If we have set a CC compiler flag for thread support then
10620 # check if it works for CXX, too.
10621 if test ! -z "$CXX"
10622 then
10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
10624 printf %s "checking whether $CXX also accepts flags for thread support... " >&6; }
10625 if test ${ac_cv_cxx_thread+y}
10626 then :
10627 printf %s "(cached) " >&6
10628 else $as_nop
10629 ac_save_cxx="$CXX"
10630
10631 if test "$ac_cv_kpthread" = "yes"
10632 then
10633 CXX="$CXX -Kpthread"
10634 ac_cv_cxx_thread=yes
10635 elif test "$ac_cv_kthread" = "yes"
10636 then
10637 CXX="$CXX -Kthread"
10638 ac_cv_cxx_thread=yes
10639 elif test "$ac_cv_pthread" = "yes"
10640 then
10641 CXX="$CXX -pthread"
10642 ac_cv_cxx_thread=yes
10643 else
10644 ac_cv_cxx_thread=no
10645 fi
10646
10647 if test $ac_cv_cxx_thread = yes
10648 then
10649 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
10650 $CXX -c conftest.$ac_ext 2>&5
10651 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
10652 && test -s conftest$ac_exeext && ./conftest$ac_exeext
10653 then
10654 ac_cv_cxx_thread=yes
10655 else
10656 ac_cv_cxx_thread=no
10657 fi
10658 rm -fr conftest*
10659 fi
10660 CXX="$ac_save_cxx"
10661 fi
10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
10663 printf "%s\n" "$ac_cv_cxx_thread" >&6; }
10664 else
10665 ac_cv_cxx_thread=no
10666 fi
10667
10668
10669
10670 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10671
10672
10673 # checks for header files
10674 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
10675 if test "x$ac_cv_header_alloca_h" = xyes
10676 then :
10677 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
10678
10679 fi
10680 ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
10681 if test "x$ac_cv_header_asm_types_h" = xyes
10682 then :
10683 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
10684
10685 fi
10686 ac_fn_c_check_header_compile "$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default"
10687 if test "x$ac_cv_header_bluetooth_h" = xyes
10688 then :
10689 printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h
10690
10691 fi
10692 ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default"
10693 if test "x$ac_cv_header_conio_h" = xyes
10694 then :
10695 printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h
10696
10697 fi
10698 ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default"
10699 if test "x$ac_cv_header_direct_h" = xyes
10700 then :
10701 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h
10702
10703 fi
10704 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10705 if test "x$ac_cv_header_dlfcn_h" = xyes
10706 then :
10707 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10708
10709 fi
10710 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
10711 if test "x$ac_cv_header_endian_h" = xyes
10712 then :
10713 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
10714
10715 fi
10716 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
10717 if test "x$ac_cv_header_errno_h" = xyes
10718 then :
10719 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
10720
10721 fi
10722 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
10723 if test "x$ac_cv_header_fcntl_h" = xyes
10724 then :
10725 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
10726
10727 fi
10728 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
10729 if test "x$ac_cv_header_grp_h" = xyes
10730 then :
10731 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
10732
10733 fi
10734 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
10735 if test "x$ac_cv_header_io_h" = xyes
10736 then :
10737 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
10738
10739 fi
10740 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
10741 if test "x$ac_cv_header_langinfo_h" = xyes
10742 then :
10743 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
10744
10745 fi
10746 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10747 if test "x$ac_cv_header_libintl_h" = xyes
10748 then :
10749 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
10750
10751 fi
10752 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
10753 if test "x$ac_cv_header_libutil_h" = xyes
10754 then :
10755 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
10756
10757 fi
10758 ac_fn_c_check_header_compile "$LINENO" "linux/auxvec.h" "ac_cv_header_linux_auxvec_h" "$ac_includes_default"
10759 if test "x$ac_cv_header_linux_auxvec_h" = xyes
10760 then :
10761 printf "%s\n" "#define HAVE_LINUX_AUXVEC_H 1" >>confdefs.h
10762
10763 fi
10764 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
10765 if test "x$ac_cv_header_sys_auxv_h" = xyes
10766 then :
10767 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
10768
10769 fi
10770 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
10771 if test "x$ac_cv_header_linux_fs_h" = xyes
10772 then :
10773 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
10774
10775 fi
10776 ac_fn_c_check_header_compile "$LINENO" "linux/limits.h" "ac_cv_header_linux_limits_h" "$ac_includes_default"
10777 if test "x$ac_cv_header_linux_limits_h" = xyes
10778 then :
10779 printf "%s\n" "#define HAVE_LINUX_LIMITS_H 1" >>confdefs.h
10780
10781 fi
10782 ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default"
10783 if test "x$ac_cv_header_linux_memfd_h" = xyes
10784 then :
10785 printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h
10786
10787 fi
10788 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
10789 if test "x$ac_cv_header_linux_random_h" = xyes
10790 then :
10791 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h
10792
10793 fi
10794 ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
10795 if test "x$ac_cv_header_linux_soundcard_h" = xyes
10796 then :
10797 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h
10798
10799 fi
10800 ac_fn_c_check_header_compile "$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default"
10801 if test "x$ac_cv_header_linux_tipc_h" = xyes
10802 then :
10803 printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h
10804
10805 fi
10806 ac_fn_c_check_header_compile "$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default"
10807 if test "x$ac_cv_header_linux_wait_h" = xyes
10808 then :
10809 printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h
10810
10811 fi
10812 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
10813 if test "x$ac_cv_header_netdb_h" = xyes
10814 then :
10815 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
10816
10817 fi
10818 ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default"
10819 if test "x$ac_cv_header_net_ethernet_h" = xyes
10820 then :
10821 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
10822
10823 fi
10824 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
10825 if test "x$ac_cv_header_netinet_in_h" = xyes
10826 then :
10827 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
10828
10829 fi
10830 ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
10831 if test "x$ac_cv_header_netpacket_packet_h" = xyes
10832 then :
10833 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h
10834
10835 fi
10836 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
10837 if test "x$ac_cv_header_poll_h" = xyes
10838 then :
10839 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
10840
10841 fi
10842 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
10843 if test "x$ac_cv_header_process_h" = xyes
10844 then :
10845 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
10846
10847 fi
10848 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10849 if test "x$ac_cv_header_pthread_h" = xyes
10850 then :
10851 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
10852
10853 fi
10854 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
10855 if test "x$ac_cv_header_pty_h" = xyes
10856 then :
10857 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
10858
10859 fi
10860 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
10861 if test "x$ac_cv_header_sched_h" = xyes
10862 then :
10863 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
10864
10865 fi
10866 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
10867 if test "x$ac_cv_header_setjmp_h" = xyes
10868 then :
10869 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
10870
10871 fi
10872 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
10873 if test "x$ac_cv_header_shadow_h" = xyes
10874 then :
10875 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
10876
10877 fi
10878 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
10879 if test "x$ac_cv_header_signal_h" = xyes
10880 then :
10881 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
10882
10883 fi
10884 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
10885 if test "x$ac_cv_header_spawn_h" = xyes
10886 then :
10887 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
10888
10889 fi
10890 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
10891 if test "x$ac_cv_header_stropts_h" = xyes
10892 then :
10893 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
10894
10895 fi
10896 ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
10897 if test "x$ac_cv_header_sys_audioio_h" = xyes
10898 then :
10899 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
10900
10901 fi
10902 ac_fn_c_check_header_compile "$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default"
10903 if test "x$ac_cv_header_sys_bsdtty_h" = xyes
10904 then :
10905 printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h
10906
10907 fi
10908 ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
10909 if test "x$ac_cv_header_sys_devpoll_h" = xyes
10910 then :
10911 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
10912
10913 fi
10914 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
10915 if test "x$ac_cv_header_sys_endian_h" = xyes
10916 then :
10917 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
10918
10919 fi
10920 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
10921 if test "x$ac_cv_header_sys_epoll_h" = xyes
10922 then :
10923 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
10924
10925 fi
10926 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
10927 if test "x$ac_cv_header_sys_event_h" = xyes
10928 then :
10929 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
10930
10931 fi
10932 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
10933 if test "x$ac_cv_header_sys_eventfd_h" = xyes
10934 then :
10935 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
10936
10937 fi
10938 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
10939 if test "x$ac_cv_header_sys_file_h" = xyes
10940 then :
10941 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
10942
10943 fi
10944 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
10945 if test "x$ac_cv_header_sys_ioctl_h" = xyes
10946 then :
10947 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
10948
10949 fi
10950 ac_fn_c_check_header_compile "$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default"
10951 if test "x$ac_cv_header_sys_kern_control_h" = xyes
10952 then :
10953 printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h
10954
10955 fi
10956 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
10957 if test "x$ac_cv_header_sys_loadavg_h" = xyes
10958 then :
10959 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
10960
10961 fi
10962 ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default"
10963 if test "x$ac_cv_header_sys_lock_h" = xyes
10964 then :
10965 printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h
10966
10967 fi
10968 ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
10969 if test "x$ac_cv_header_sys_memfd_h" = xyes
10970 then :
10971 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h
10972
10973 fi
10974 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
10975 if test "x$ac_cv_header_sys_mkdev_h" = xyes
10976 then :
10977 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
10978
10979 fi
10980 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
10981 if test "x$ac_cv_header_sys_mman_h" = xyes
10982 then :
10983 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
10984
10985 fi
10986 ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
10987 if test "x$ac_cv_header_sys_modem_h" = xyes
10988 then :
10989 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
10990
10991 fi
10992 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
10993 if test "x$ac_cv_header_sys_param_h" = xyes
10994 then :
10995 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
10996
10997 fi
10998 ac_fn_c_check_header_compile "$LINENO" "sys/pidfd.h" "ac_cv_header_sys_pidfd_h" "$ac_includes_default"
10999 if test "x$ac_cv_header_sys_pidfd_h" = xyes
11000 then :
11001 printf "%s\n" "#define HAVE_SYS_PIDFD_H 1" >>confdefs.h
11002
11003 fi
11004 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
11005 if test "x$ac_cv_header_sys_poll_h" = xyes
11006 then :
11007 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
11008
11009 fi
11010 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
11011 if test "x$ac_cv_header_sys_random_h" = xyes
11012 then :
11013 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
11014
11015 fi
11016 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
11017 if test "x$ac_cv_header_sys_resource_h" = xyes
11018 then :
11019 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
11020
11021 fi
11022 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
11023 if test "x$ac_cv_header_sys_select_h" = xyes
11024 then :
11025 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
11026
11027 fi
11028 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
11029 if test "x$ac_cv_header_sys_sendfile_h" = xyes
11030 then :
11031 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
11032
11033 fi
11034 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11035 if test "x$ac_cv_header_sys_socket_h" = xyes
11036 then :
11037 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
11038
11039 fi
11040 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11041 if test "x$ac_cv_header_sys_soundcard_h" = xyes
11042 then :
11043 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
11044
11045 fi
11046 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
11047 if test "x$ac_cv_header_sys_stat_h" = xyes
11048 then :
11049 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
11050
11051 fi
11052 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
11053 if test "x$ac_cv_header_sys_statvfs_h" = xyes
11054 then :
11055 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
11056
11057 fi
11058 ac_fn_c_check_header_compile "$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default"
11059 if test "x$ac_cv_header_sys_sys_domain_h" = xyes
11060 then :
11061 printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h
11062
11063 fi
11064 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
11065 if test "x$ac_cv_header_sys_syscall_h" = xyes
11066 then :
11067 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
11068
11069 fi
11070 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11071 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
11072 then :
11073 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
11074
11075 fi
11076 ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default"
11077 if test "x$ac_cv_header_sys_termio_h" = xyes
11078 then :
11079 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h
11080
11081 fi
11082 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
11083 if test "x$ac_cv_header_sys_time_h" = xyes
11084 then :
11085 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
11086
11087 fi
11088 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
11089 if test "x$ac_cv_header_sys_times_h" = xyes
11090 then :
11091 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
11092
11093 fi
11094 ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
11095 if test "x$ac_cv_header_sys_timerfd_h" = xyes
11096 then :
11097 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
11098
11099 fi
11100 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
11101 if test "x$ac_cv_header_sys_types_h" = xyes
11102 then :
11103 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
11104
11105 fi
11106 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
11107 if test "x$ac_cv_header_sys_uio_h" = xyes
11108 then :
11109 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
11110
11111 fi
11112 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11113 if test "x$ac_cv_header_sys_un_h" = xyes
11114 then :
11115 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
11116
11117 fi
11118 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
11119 if test "x$ac_cv_header_sys_utsname_h" = xyes
11120 then :
11121 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
11122
11123 fi
11124 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
11125 if test "x$ac_cv_header_sys_wait_h" = xyes
11126 then :
11127 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11128
11129 fi
11130 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
11131 if test "x$ac_cv_header_sys_xattr_h" = xyes
11132 then :
11133 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
11134
11135 fi
11136 ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
11137 if test "x$ac_cv_header_sysexits_h" = xyes
11138 then :
11139 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
11140
11141 fi
11142 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
11143 if test "x$ac_cv_header_syslog_h" = xyes
11144 then :
11145 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
11146
11147 fi
11148 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11149 if test "x$ac_cv_header_termios_h" = xyes
11150 then :
11151 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11152
11153 fi
11154 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
11155 if test "x$ac_cv_header_util_h" = xyes
11156 then :
11157 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
11158
11159 fi
11160 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11161 if test "x$ac_cv_header_utime_h" = xyes
11162 then :
11163 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11164
11165 fi
11166 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
11167 if test "x$ac_cv_header_utmp_h" = xyes
11168 then :
11169 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
11170
11171 fi
11172
11173 ac_header_dirent=no
11174 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11175 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11177 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
11178 if eval test \${$as_ac_Header+y}
11179 then :
11180 printf %s "(cached) " >&6
11181 else $as_nop
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 #include <sys/types.h>
11185 #include <$ac_hdr>
11186
11187 int
11188 main (void)
11189 {
11190 if ((DIR *) 0)
11191 return 0;
11192 ;
11193 return 0;
11194 }
11195 _ACEOF
11196 if ac_fn_c_try_compile "$LINENO"
11197 then :
11198 eval "$as_ac_Header=yes"
11199 else $as_nop
11200 eval "$as_ac_Header=no"
11201 fi
11202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11203 fi
11204 eval ac_res=\$$as_ac_Header
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11206 printf "%s\n" "$ac_res" >&6; }
11207 if eval test \"x\$"$as_ac_Header"\" = x"yes"
11208 then :
11209 cat >>confdefs.h <<_ACEOF
11210 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
11211 _ACEOF
11212
11213 ac_header_dirent=$ac_hdr; break
11214 fi
11215
11216 done
11217 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11218 if test $ac_header_dirent = dirent.h; then
11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11220 printf %s "checking for library containing opendir... " >&6; }
11221 if test ${ac_cv_search_opendir+y}
11222 then :
11223 printf %s "(cached) " >&6
11224 else $as_nop
11225 ac_func_search_save_LIBS=$LIBS
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228
11229 /* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11232 char opendir ();
11233 int
11234 main (void)
11235 {
11236 return opendir ();
11237 ;
11238 return 0;
11239 }
11240 _ACEOF
11241 for ac_lib in '' dir
11242 do
11243 if test -z "$ac_lib"; then
11244 ac_res="none required"
11245 else
11246 ac_res=-l$ac_lib
11247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11248 fi
11249 if ac_fn_c_try_link "$LINENO"
11250 then :
11251 ac_cv_search_opendir=$ac_res
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11254 conftest$ac_exeext
11255 if test ${ac_cv_search_opendir+y}
11256 then :
11257 break
11258 fi
11259 done
11260 if test ${ac_cv_search_opendir+y}
11261 then :
11262
11263 else $as_nop
11264 ac_cv_search_opendir=no
11265 fi
11266 rm conftest.$ac_ext
11267 LIBS=$ac_func_search_save_LIBS
11268 fi
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11270 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11271 ac_res=$ac_cv_search_opendir
11272 if test "$ac_res" != no
11273 then :
11274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11275
11276 fi
11277
11278 else
11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11280 printf %s "checking for library containing opendir... " >&6; }
11281 if test ${ac_cv_search_opendir+y}
11282 then :
11283 printf %s "(cached) " >&6
11284 else $as_nop
11285 ac_func_search_save_LIBS=$LIBS
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 char opendir ();
11293 int
11294 main (void)
11295 {
11296 return opendir ();
11297 ;
11298 return 0;
11299 }
11300 _ACEOF
11301 for ac_lib in '' x
11302 do
11303 if test -z "$ac_lib"; then
11304 ac_res="none required"
11305 else
11306 ac_res=-l$ac_lib
11307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11308 fi
11309 if ac_fn_c_try_link "$LINENO"
11310 then :
11311 ac_cv_search_opendir=$ac_res
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11314 conftest$ac_exeext
11315 if test ${ac_cv_search_opendir+y}
11316 then :
11317 break
11318 fi
11319 done
11320 if test ${ac_cv_search_opendir+y}
11321 then :
11322
11323 else $as_nop
11324 ac_cv_search_opendir=no
11325 fi
11326 rm conftest.$ac_ext
11327 LIBS=$ac_func_search_save_LIBS
11328 fi
11329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11330 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11331 ac_res=$ac_cv_search_opendir
11332 if test "$ac_res" != no
11333 then :
11334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11335
11336 fi
11337
11338 fi
11339
11340
11341 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11342 if test "x$ac_cv_header_sys_mkdev_h" = xyes
11343 then :
11344
11345 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
11346
11347 fi
11348
11349 if test $ac_cv_header_sys_mkdev_h = no; then
11350 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11351 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
11352 then :
11353
11354 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
11355
11356 fi
11357
11358 fi
11359
11360
11361 # bluetooth/bluetooth.h has been known to not compile with -std=c99.
11362 # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
11363 SAVE_CFLAGS=$CFLAGS
11364 CFLAGS="-std=c99 $CFLAGS"
11365 ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
11366 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes
11367 then :
11368 printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h
11369
11370 fi
11371
11372 CFLAGS=$SAVE_CFLAGS
11373
11374 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
11375 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
11376 #include <stdlib.h>
11377 #include <stddef.h>
11378 #ifdef HAVE_SYS_SOCKET_H
11379 # include <sys/socket.h>
11380 #endif
11381
11382 "
11383 if test "x$ac_cv_header_net_if_h" = xyes
11384 then :
11385 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
11386
11387 fi
11388
11389
11390 # On Linux, netlink.h requires asm/types.h
11391 # On FreeBSD, netlink.h is located in netlink/netlink.h
11392 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
11393 #ifdef HAVE_ASM_TYPES_H
11394 #include <asm/types.h>
11395 #endif
11396 #ifdef HAVE_SYS_SOCKET_H
11397 #include <sys/socket.h>
11398 #endif
11399
11400 "
11401 if test "x$ac_cv_header_linux_netlink_h" = xyes
11402 then :
11403 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h
11404
11405 fi
11406 ac_fn_c_check_header_compile "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "
11407 #ifdef HAVE_ASM_TYPES_H
11408 #include <asm/types.h>
11409 #endif
11410 #ifdef HAVE_SYS_SOCKET_H
11411 #include <sys/socket.h>
11412 #endif
11413
11414 "
11415 if test "x$ac_cv_header_netlink_netlink_h" = xyes
11416 then :
11417 printf "%s\n" "#define HAVE_NETLINK_NETLINK_H 1" >>confdefs.h
11418
11419 fi
11420
11421
11422 # On Linux, qrtr.h requires asm/types.h
11423 ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
11424 #ifdef HAVE_ASM_TYPES_H
11425 #include <asm/types.h>
11426 #endif
11427 #ifdef HAVE_SYS_SOCKET_H
11428 #include <sys/socket.h>
11429 #endif
11430
11431 "
11432 if test "x$ac_cv_header_linux_qrtr_h" = xyes
11433 then :
11434 printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h
11435
11436 fi
11437
11438
11439 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
11440 #ifdef HAVE_SYS_SOCKET_H
11441 #include <sys/socket.h>
11442 #endif
11443
11444 "
11445 if test "x$ac_cv_header_linux_vm_sockets_h" = xyes
11446 then :
11447 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h
11448
11449 fi
11450
11451
11452 # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h
11453 # On NetBSD, netcan/can.h requires sys/socket.h
11454 ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "
11455 #ifdef HAVE_SYS_SOCKET_H
11456 #include <sys/socket.h>
11457 #endif
11458
11459 "
11460 if test "x$ac_cv_header_linux_can_h" = xyes
11461 then :
11462 printf "%s\n" "#define HAVE_LINUX_CAN_H 1" >>confdefs.h
11463
11464 fi
11465 ac_fn_c_check_header_compile "$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" "
11466 #ifdef HAVE_SYS_SOCKET_H
11467 #include <sys/socket.h>
11468 #endif
11469
11470 "
11471 if test "x$ac_cv_header_linux_can_bcm_h" = xyes
11472 then :
11473 printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h
11474
11475 fi
11476 ac_fn_c_check_header_compile "$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" "
11477 #ifdef HAVE_SYS_SOCKET_H
11478 #include <sys/socket.h>
11479 #endif
11480
11481 "
11482 if test "x$ac_cv_header_linux_can_j1939_h" = xyes
11483 then :
11484 printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h
11485
11486 fi
11487 ac_fn_c_check_header_compile "$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" "
11488 #ifdef HAVE_SYS_SOCKET_H
11489 #include <sys/socket.h>
11490 #endif
11491
11492 "
11493 if test "x$ac_cv_header_linux_can_raw_h" = xyes
11494 then :
11495 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h
11496
11497 fi
11498 ac_fn_c_check_header_compile "$LINENO" "netcan/can.h" "ac_cv_header_netcan_can_h" "
11499 #ifdef HAVE_SYS_SOCKET_H
11500 #include <sys/socket.h>
11501 #endif
11502
11503 "
11504 if test "x$ac_cv_header_netcan_can_h" = xyes
11505 then :
11506 printf "%s\n" "#define HAVE_NETCAN_CAN_H 1" >>confdefs.h
11507
11508 fi
11509
11510
11511 # Check for clock_t in time.h.
11512 ac_fn_c_check_type "$LINENO" "clock_t" "ac_cv_type_clock_t" "#include <time.h>
11513 "
11514 if test "x$ac_cv_type_clock_t" = xyes
11515 then :
11516
11517 printf "%s\n" "#define HAVE_CLOCK_T 1" >>confdefs.h
11518
11519
11520 else $as_nop
11521
11522 printf "%s\n" "#define clock_t long" >>confdefs.h
11523
11524 fi
11525
11526
11527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
11528 printf %s "checking for makedev... " >&6; }
11529 if test ${ac_cv_func_makedev+y}
11530 then :
11531 printf %s "(cached) " >&6
11532 else $as_nop
11533
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536
11537 #if defined(MAJOR_IN_MKDEV)
11538 #include <sys/mkdev.h>
11539 #elif defined(MAJOR_IN_SYSMACROS)
11540 #include <sys/sysmacros.h>
11541 #else
11542 #include <sys/types.h>
11543 #endif
11544
11545 int
11546 main (void)
11547 {
11548
11549 makedev(0, 0)
11550 ;
11551 return 0;
11552 }
11553
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"
11556 then :
11557 ac_cv_func_makedev=yes
11558 else $as_nop
11559 ac_cv_func_makedev=no
11560 fi
11561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11562 conftest$ac_exeext conftest.$ac_ext
11563
11564 fi
11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_makedev" >&5
11566 printf "%s\n" "$ac_cv_func_makedev" >&6; }
11567
11568 if test "x$ac_cv_func_makedev" = xyes
11569 then :
11570
11571
11572 printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h
11573
11574
11575 fi
11576
11577 # byte swapping
11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
11579 printf %s "checking for le64toh... " >&6; }
11580 if test ${ac_cv_func_le64toh+y}
11581 then :
11582 printf %s "(cached) " >&6
11583 else $as_nop
11584
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11587
11588 #ifdef HAVE_ENDIAN_H
11589 #include <endian.h>
11590 #elif defined(HAVE_SYS_ENDIAN_H)
11591 #include <sys/endian.h>
11592 #endif
11593
11594 int
11595 main (void)
11596 {
11597
11598 le64toh(1)
11599 ;
11600 return 0;
11601 }
11602
11603 _ACEOF
11604 if ac_fn_c_try_link "$LINENO"
11605 then :
11606 ac_cv_func_le64toh=yes
11607 else $as_nop
11608 ac_cv_func_le64toh=no
11609 fi
11610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11611 conftest$ac_exeext conftest.$ac_ext
11612
11613 fi
11614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_le64toh" >&5
11615 printf "%s\n" "$ac_cv_func_le64toh" >&6; }
11616
11617 if test "x$ac_cv_func_le64toh" = xyes
11618 then :
11619
11620
11621 printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h
11622
11623
11624 fi
11625
11626 use_lfs=yes
11627 # Don't use largefile support for GNU/Hurd
11628 case $ac_sys_system in GNU*)
11629 use_lfs=no
11630 esac
11631
11632 if test "$use_lfs" = "yes"; then
11633 # Two defines needed to enable largefile support on various platforms
11634 # These may affect some typedefs
11635 case $ac_sys_system/$ac_sys_release in
11636 AIX*)
11637
11638 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11639
11640 ;;
11641 esac
11642
11643 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
11644
11645
11646 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11647
11648 fi
11649
11650 # Add some code to confdefs.h so that the test for off_t works on SCO
11651 cat >> confdefs.h <<\EOF
11652 #if defined(SCO_DS)
11653 #undef _OFF_T
11654 #endif
11655 EOF
11656
11657 # Type availability checks
11658 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11659 if test "x$ac_cv_type_mode_t" = xyes
11660 then :
11661
11662 else $as_nop
11663
11664 printf "%s\n" "#define mode_t int" >>confdefs.h
11665
11666 fi
11667
11668 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11669 if test "x$ac_cv_type_off_t" = xyes
11670 then :
11671
11672 else $as_nop
11673
11674 printf "%s\n" "#define off_t long int" >>confdefs.h
11675
11676 fi
11677
11678
11679 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
11680 "
11681 if test "x$ac_cv_type_pid_t" = xyes
11682 then :
11683
11684 else $as_nop
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687
11688 #if defined _WIN64 && !defined __CYGWIN__
11689 LLP64
11690 #endif
11691
11692 int
11693 main (void)
11694 {
11695
11696 ;
11697 return 0;
11698 }
11699
11700 _ACEOF
11701 if ac_fn_c_try_compile "$LINENO"
11702 then :
11703 ac_pid_type='int'
11704 else $as_nop
11705 ac_pid_type='__int64'
11706 fi
11707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11708
11709 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
11710
11711
11712 fi
11713
11714
11715
11716 printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h
11717
11718 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11719 if test "x$ac_cv_type_size_t" = xyes
11720 then :
11721
11722 else $as_nop
11723
11724 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
11725
11726 fi
11727
11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11729 printf %s "checking for uid_t in sys/types.h... " >&6; }
11730 if test ${ac_cv_type_uid_t+y}
11731 then :
11732 printf %s "(cached) " >&6
11733 else $as_nop
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11736 #include <sys/types.h>
11737
11738 _ACEOF
11739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11740 $EGREP "uid_t" >/dev/null 2>&1
11741 then :
11742 ac_cv_type_uid_t=yes
11743 else $as_nop
11744 ac_cv_type_uid_t=no
11745 fi
11746 rm -rf conftest*
11747
11748 fi
11749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11750 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
11751 if test $ac_cv_type_uid_t = no; then
11752
11753 printf "%s\n" "#define uid_t int" >>confdefs.h
11754
11755
11756 printf "%s\n" "#define gid_t int" >>confdefs.h
11757
11758 fi
11759
11760
11761 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11762 if test "x$ac_cv_type_ssize_t" = xyes
11763 then :
11764
11765 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
11766
11767
11768 fi
11769
11770 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
11771 if test "x$ac_cv_type___uint128_t" = xyes
11772 then :
11773
11774 printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h
11775
11776
11777 printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
11778
11779 fi
11780
11781
11782 # Sizes and alignments of various common basic types
11783 # ANSI C requires sizeof(char) == 1, so no need to check it
11784 # The cast to long int works around a bug in the HP C Compiler
11785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11787 # This bug is HP SR number 8606223364.
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11789 printf %s "checking size of int... " >&6; }
11790 if test ${ac_cv_sizeof_int+y}
11791 then :
11792 printf %s "(cached) " >&6
11793 else $as_nop
11794 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
11795 then :
11796
11797 else $as_nop
11798 if test "$ac_cv_type_int" = yes; then
11799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11800 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11801 as_fn_error 77 "cannot compute sizeof (int)
11802 See \`config.log' for more details" "$LINENO" 5; }
11803 else
11804 ac_cv_sizeof_int=0
11805 fi
11806 fi
11807
11808 fi
11809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11810 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
11811
11812
11813
11814 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
11815
11816
11817 # The cast to long int works around a bug in the HP C Compiler
11818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11820 # This bug is HP SR number 8606223364.
11821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11822 printf %s "checking size of long... " >&6; }
11823 if test ${ac_cv_sizeof_long+y}
11824 then :
11825 printf %s "(cached) " >&6
11826 else $as_nop
11827 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
11828 then :
11829
11830 else $as_nop
11831 if test "$ac_cv_type_long" = yes; then
11832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11833 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11834 as_fn_error 77 "cannot compute sizeof (long)
11835 See \`config.log' for more details" "$LINENO" 5; }
11836 else
11837 ac_cv_sizeof_long=0
11838 fi
11839 fi
11840
11841 fi
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11843 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
11844
11845
11846
11847 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
11848
11849
11850 # The cast to long int works around a bug in the HP C Compiler,
11851 # see AC_CHECK_SIZEOF for more information.
11852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
11853 printf %s "checking alignment of long... " >&6; }
11854 if test ${ac_cv_alignof_long+y}
11855 then :
11856 printf %s "(cached) " >&6
11857 else $as_nop
11858 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
11859 typedef struct { char x; long y; } ac__type_alignof_;"
11860 then :
11861
11862 else $as_nop
11863 if test "$ac_cv_type_long" = yes; then
11864 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11865 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11866 as_fn_error 77 "cannot compute alignment of long
11867 See \`config.log' for more details" "$LINENO" 5; }
11868 else
11869 ac_cv_alignof_long=0
11870 fi
11871 fi
11872
11873 fi
11874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
11875 printf "%s\n" "$ac_cv_alignof_long" >&6; }
11876
11877
11878
11879 printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h
11880
11881
11882 # The cast to long int works around a bug in the HP C Compiler
11883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11885 # This bug is HP SR number 8606223364.
11886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11887 printf %s "checking size of long long... " >&6; }
11888 if test ${ac_cv_sizeof_long_long+y}
11889 then :
11890 printf %s "(cached) " >&6
11891 else $as_nop
11892 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
11893 then :
11894
11895 else $as_nop
11896 if test "$ac_cv_type_long_long" = yes; then
11897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11898 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11899 as_fn_error 77 "cannot compute sizeof (long long)
11900 See \`config.log' for more details" "$LINENO" 5; }
11901 else
11902 ac_cv_sizeof_long_long=0
11903 fi
11904 fi
11905
11906 fi
11907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11908 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
11909
11910
11911
11912 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
11913
11914
11915 # The cast to long int works around a bug in the HP C Compiler
11916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11918 # This bug is HP SR number 8606223364.
11919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11920 printf %s "checking size of void *... " >&6; }
11921 if test ${ac_cv_sizeof_void_p+y}
11922 then :
11923 printf %s "(cached) " >&6
11924 else $as_nop
11925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
11926 then :
11927
11928 else $as_nop
11929 if test "$ac_cv_type_void_p" = yes; then
11930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11931 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11932 as_fn_error 77 "cannot compute sizeof (void *)
11933 See \`config.log' for more details" "$LINENO" 5; }
11934 else
11935 ac_cv_sizeof_void_p=0
11936 fi
11937 fi
11938
11939 fi
11940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11941 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
11942
11943
11944
11945 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
11946
11947
11948 # The cast to long int works around a bug in the HP C Compiler
11949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11951 # This bug is HP SR number 8606223364.
11952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11953 printf %s "checking size of short... " >&6; }
11954 if test ${ac_cv_sizeof_short+y}
11955 then :
11956 printf %s "(cached) " >&6
11957 else $as_nop
11958 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
11959 then :
11960
11961 else $as_nop
11962 if test "$ac_cv_type_short" = yes; then
11963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11964 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11965 as_fn_error 77 "cannot compute sizeof (short)
11966 See \`config.log' for more details" "$LINENO" 5; }
11967 else
11968 ac_cv_sizeof_short=0
11969 fi
11970 fi
11971
11972 fi
11973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11974 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
11975
11976
11977
11978 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
11979
11980
11981 # The cast to long int works around a bug in the HP C Compiler
11982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11984 # This bug is HP SR number 8606223364.
11985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
11986 printf %s "checking size of float... " >&6; }
11987 if test ${ac_cv_sizeof_float+y}
11988 then :
11989 printf %s "(cached) " >&6
11990 else $as_nop
11991 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
11992 then :
11993
11994 else $as_nop
11995 if test "$ac_cv_type_float" = yes; then
11996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11997 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11998 as_fn_error 77 "cannot compute sizeof (float)
11999 See \`config.log' for more details" "$LINENO" 5; }
12000 else
12001 ac_cv_sizeof_float=0
12002 fi
12003 fi
12004
12005 fi
12006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
12007 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
12008
12009
12010
12011 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
12012
12013
12014 # The cast to long int works around a bug in the HP C Compiler
12015 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12016 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12017 # This bug is HP SR number 8606223364.
12018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12019 printf %s "checking size of double... " >&6; }
12020 if test ${ac_cv_sizeof_double+y}
12021 then :
12022 printf %s "(cached) " >&6
12023 else $as_nop
12024 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
12025 then :
12026
12027 else $as_nop
12028 if test "$ac_cv_type_double" = yes; then
12029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12030 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12031 as_fn_error 77 "cannot compute sizeof (double)
12032 See \`config.log' for more details" "$LINENO" 5; }
12033 else
12034 ac_cv_sizeof_double=0
12035 fi
12036 fi
12037
12038 fi
12039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12040 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
12041
12042
12043
12044 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
12045
12046
12047 # The cast to long int works around a bug in the HP C Compiler
12048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12050 # This bug is HP SR number 8606223364.
12051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
12052 printf %s "checking size of fpos_t... " >&6; }
12053 if test ${ac_cv_sizeof_fpos_t+y}
12054 then :
12055 printf %s "(cached) " >&6
12056 else $as_nop
12057 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"
12058 then :
12059
12060 else $as_nop
12061 if test "$ac_cv_type_fpos_t" = yes; then
12062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12063 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12064 as_fn_error 77 "cannot compute sizeof (fpos_t)
12065 See \`config.log' for more details" "$LINENO" 5; }
12066 else
12067 ac_cv_sizeof_fpos_t=0
12068 fi
12069 fi
12070
12071 fi
12072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
12073 printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; }
12074
12075
12076
12077 printf "%s\n" "#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t" >>confdefs.h
12078
12079
12080 # The cast to long int works around a bug in the HP C Compiler
12081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12083 # This bug is HP SR number 8606223364.
12084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12085 printf %s "checking size of size_t... " >&6; }
12086 if test ${ac_cv_sizeof_size_t+y}
12087 then :
12088 printf %s "(cached) " >&6
12089 else $as_nop
12090 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
12091 then :
12092
12093 else $as_nop
12094 if test "$ac_cv_type_size_t" = yes; then
12095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12096 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12097 as_fn_error 77 "cannot compute sizeof (size_t)
12098 See \`config.log' for more details" "$LINENO" 5; }
12099 else
12100 ac_cv_sizeof_size_t=0
12101 fi
12102 fi
12103
12104 fi
12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12106 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
12107
12108
12109
12110 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
12111
12112
12113 # The cast to long int works around a bug in the HP C Compiler,
12114 # see AC_CHECK_SIZEOF for more information.
12115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
12116 printf %s "checking alignment of size_t... " >&6; }
12117 if test ${ac_cv_alignof_size_t+y}
12118 then :
12119 printf %s "(cached) " >&6
12120 else $as_nop
12121 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default
12122 typedef struct { char x; size_t y; } ac__type_alignof_;"
12123 then :
12124
12125 else $as_nop
12126 if test "$ac_cv_type_size_t" = yes; then
12127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12128 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12129 as_fn_error 77 "cannot compute alignment of size_t
12130 See \`config.log' for more details" "$LINENO" 5; }
12131 else
12132 ac_cv_alignof_size_t=0
12133 fi
12134 fi
12135
12136 fi
12137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5
12138 printf "%s\n" "$ac_cv_alignof_size_t" >&6; }
12139
12140
12141
12142 printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h
12143
12144
12145 # The cast to long int works around a bug in the HP C Compiler
12146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12148 # This bug is HP SR number 8606223364.
12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
12150 printf %s "checking size of pid_t... " >&6; }
12151 if test ${ac_cv_sizeof_pid_t+y}
12152 then :
12153 printf %s "(cached) " >&6
12154 else $as_nop
12155 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"
12156 then :
12157
12158 else $as_nop
12159 if test "$ac_cv_type_pid_t" = yes; then
12160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12161 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12162 as_fn_error 77 "cannot compute sizeof (pid_t)
12163 See \`config.log' for more details" "$LINENO" 5; }
12164 else
12165 ac_cv_sizeof_pid_t=0
12166 fi
12167 fi
12168
12169 fi
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
12171 printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; }
12172
12173
12174
12175 printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h
12176
12177
12178 # The cast to long int works around a bug in the HP C Compiler
12179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12181 # This bug is HP SR number 8606223364.
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
12183 printf %s "checking size of uintptr_t... " >&6; }
12184 if test ${ac_cv_sizeof_uintptr_t+y}
12185 then :
12186 printf %s "(cached) " >&6
12187 else $as_nop
12188 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"
12189 then :
12190
12191 else $as_nop
12192 if test "$ac_cv_type_uintptr_t" = yes; then
12193 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12194 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12195 as_fn_error 77 "cannot compute sizeof (uintptr_t)
12196 See \`config.log' for more details" "$LINENO" 5; }
12197 else
12198 ac_cv_sizeof_uintptr_t=0
12199 fi
12200 fi
12201
12202 fi
12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
12204 printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; }
12205
12206
12207
12208 printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h
12209
12210
12211 # The cast to long int works around a bug in the HP C Compiler,
12212 # see AC_CHECK_SIZEOF for more information.
12213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of max_align_t" >&5
12214 printf %s "checking alignment of max_align_t... " >&6; }
12215 if test ${ac_cv_alignof_max_align_t+y}
12216 then :
12217 printf %s "(cached) " >&6
12218 else $as_nop
12219 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_max_align_t" "$ac_includes_default
12220 typedef struct { char x; max_align_t y; } ac__type_alignof_;"
12221 then :
12222
12223 else $as_nop
12224 if test "$ac_cv_type_max_align_t" = yes; then
12225 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12226 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12227 as_fn_error 77 "cannot compute alignment of max_align_t
12228 See \`config.log' for more details" "$LINENO" 5; }
12229 else
12230 ac_cv_alignof_max_align_t=0
12231 fi
12232 fi
12233
12234 fi
12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_max_align_t" >&5
12236 printf "%s\n" "$ac_cv_alignof_max_align_t" >&6; }
12237
12238
12239
12240 printf "%s\n" "#define ALIGNOF_MAX_ALIGN_T $ac_cv_alignof_max_align_t" >>confdefs.h
12241
12242
12243
12244
12245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12246 printf %s "checking for long double... " >&6; }
12247 if test ${ac_cv_type_long_double+y}
12248 then :
12249 printf %s "(cached) " >&6
12250 else $as_nop
12251 if test "$GCC" = yes; then
12252 ac_cv_type_long_double=yes
12253 else
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256 /* The Stardent Vistra knows sizeof (long double), but does
12257 not support it. */
12258 long double foo = 0.0L;
12259 int
12260 main (void)
12261 {
12262 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12263 sizeof (double) <= sizeof (long double))];
12264 test_array [0] = 0;
12265 return test_array [0];
12266
12267 ;
12268 return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_compile "$LINENO"
12272 then :
12273 ac_cv_type_long_double=yes
12274 else $as_nop
12275 ac_cv_type_long_double=no
12276 fi
12277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12278 fi
12279 fi
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
12281 printf "%s\n" "$ac_cv_type_long_double" >&6; }
12282 if test $ac_cv_type_long_double = yes; then
12283
12284 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12285
12286 fi
12287
12288 # The cast to long int works around a bug in the HP C Compiler
12289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12291 # This bug is HP SR number 8606223364.
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12293 printf %s "checking size of long double... " >&6; }
12294 if test ${ac_cv_sizeof_long_double+y}
12295 then :
12296 printf %s "(cached) " >&6
12297 else $as_nop
12298 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
12299 then :
12300
12301 else $as_nop
12302 if test "$ac_cv_type_long_double" = yes; then
12303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12304 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12305 as_fn_error 77 "cannot compute sizeof (long double)
12306 See \`config.log' for more details" "$LINENO" 5; }
12307 else
12308 ac_cv_sizeof_long_double=0
12309 fi
12310 fi
12311
12312 fi
12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12314 printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
12315
12316
12317
12318 printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
12319
12320
12321
12322 # The cast to long int works around a bug in the HP C Compiler
12323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12325 # This bug is HP SR number 8606223364.
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
12327 printf %s "checking size of _Bool... " >&6; }
12328 if test ${ac_cv_sizeof__Bool+y}
12329 then :
12330 printf %s "(cached) " >&6
12331 else $as_nop
12332 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"
12333 then :
12334
12335 else $as_nop
12336 if test "$ac_cv_type__Bool" = yes; then
12337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12338 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12339 as_fn_error 77 "cannot compute sizeof (_Bool)
12340 See \`config.log' for more details" "$LINENO" 5; }
12341 else
12342 ac_cv_sizeof__Bool=0
12343 fi
12344 fi
12345
12346 fi
12347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
12348 printf "%s\n" "$ac_cv_sizeof__Bool" >&6; }
12349
12350
12351
12352 printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h
12353
12354
12355
12356 # The cast to long int works around a bug in the HP C Compiler
12357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12359 # This bug is HP SR number 8606223364.
12360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12361 printf %s "checking size of off_t... " >&6; }
12362 if test ${ac_cv_sizeof_off_t+y}
12363 then :
12364 printf %s "(cached) " >&6
12365 else $as_nop
12366 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
12367 #ifdef HAVE_SYS_TYPES_H
12368 #include <sys/types.h>
12369 #endif
12370
12371 "
12372 then :
12373
12374 else $as_nop
12375 if test "$ac_cv_type_off_t" = yes; then
12376 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12377 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12378 as_fn_error 77 "cannot compute sizeof (off_t)
12379 See \`config.log' for more details" "$LINENO" 5; }
12380 else
12381 ac_cv_sizeof_off_t=0
12382 fi
12383 fi
12384
12385 fi
12386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12387 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12388
12389
12390
12391 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12392
12393
12394
12395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
12396 printf %s "checking whether to enable large file support... " >&6; }
12397 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12398 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12399 have_largefile_support="yes"
12400 else
12401 have_largefile_support="no"
12402 fi
12403 case $ac_sys_system in #(
12404 Emscripten) :
12405 have_largefile_support="no"
12406 ;; #(
12407 *) :
12408 ;;
12409 esac
12410 if test "x$have_largefile_support" = xyes
12411 then :
12412
12413
12414 printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
12415
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12417 printf "%s\n" "yes" >&6; }
12418
12419 else $as_nop
12420
12421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 printf "%s\n" "no" >&6; }
12423
12424 fi
12425
12426 # The cast to long int works around a bug in the HP C Compiler
12427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12429 # This bug is HP SR number 8606223364.
12430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12431 printf %s "checking size of time_t... " >&6; }
12432 if test ${ac_cv_sizeof_time_t+y}
12433 then :
12434 printf %s "(cached) " >&6
12435 else $as_nop
12436 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
12437 #ifdef HAVE_SYS_TYPES_H
12438 #include <sys/types.h>
12439 #endif
12440 #ifdef HAVE_TIME_H
12441 #include <time.h>
12442 #endif
12443
12444 "
12445 then :
12446
12447 else $as_nop
12448 if test "$ac_cv_type_time_t" = yes; then
12449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12450 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12451 as_fn_error 77 "cannot compute sizeof (time_t)
12452 See \`config.log' for more details" "$LINENO" 5; }
12453 else
12454 ac_cv_sizeof_time_t=0
12455 fi
12456 fi
12457
12458 fi
12459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12460 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12461
12462
12463
12464 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12465
12466
12467
12468 # if have pthread_t then define SIZEOF_PTHREAD_T
12469 ac_save_cc="$CC"
12470 if test "$ac_cv_kpthread" = "yes"
12471 then CC="$CC -Kpthread"
12472 elif test "$ac_cv_kthread" = "yes"
12473 then CC="$CC -Kthread"
12474 elif test "$ac_cv_pthread" = "yes"
12475 then CC="$CC -pthread"
12476 fi
12477
12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
12479 printf %s "checking for pthread_t... " >&6; }
12480 if test ${ac_cv_have_pthread_t+y}
12481 then :
12482 printf %s "(cached) " >&6
12483 else $as_nop
12484
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487
12488 #include <pthread.h>
12489 int
12490 main (void)
12491 {
12492 pthread_t x; x = *(pthread_t*)0;
12493 ;
12494 return 0;
12495 }
12496
12497 _ACEOF
12498 if ac_fn_c_try_compile "$LINENO"
12499 then :
12500 ac_cv_have_pthread_t=yes
12501 else $as_nop
12502 ac_cv_have_pthread_t=no
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12505
12506 fi
12507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pthread_t" >&5
12508 printf "%s\n" "$ac_cv_have_pthread_t" >&6; }
12509 if test "x$ac_cv_have_pthread_t" = xyes
12510 then :
12511
12512 # The cast to long int works around a bug in the HP C Compiler
12513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12515 # This bug is HP SR number 8606223364.
12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
12517 printf %s "checking size of pthread_t... " >&6; }
12518 if test ${ac_cv_sizeof_pthread_t+y}
12519 then :
12520 printf %s "(cached) " >&6
12521 else $as_nop
12522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
12523 #ifdef HAVE_PTHREAD_H
12524 #include <pthread.h>
12525 #endif
12526
12527 "
12528 then :
12529
12530 else $as_nop
12531 if test "$ac_cv_type_pthread_t" = yes; then
12532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12533 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12534 as_fn_error 77 "cannot compute sizeof (pthread_t)
12535 See \`config.log' for more details" "$LINENO" 5; }
12536 else
12537 ac_cv_sizeof_pthread_t=0
12538 fi
12539 fi
12540
12541 fi
12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
12543 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
12544
12545
12546
12547 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
12548
12549
12550
12551 fi
12552
12553 # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
12554 # This checking will be unnecessary after removing deprecated TLS API.
12555 # The cast to long int works around a bug in the HP C Compiler
12556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12558 # This bug is HP SR number 8606223364.
12559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
12560 printf %s "checking size of pthread_key_t... " >&6; }
12561 if test ${ac_cv_sizeof_pthread_key_t+y}
12562 then :
12563 printf %s "(cached) " >&6
12564 else $as_nop
12565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h>
12566 "
12567 then :
12568
12569 else $as_nop
12570 if test "$ac_cv_type_pthread_key_t" = yes; then
12571 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12572 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12573 as_fn_error 77 "cannot compute sizeof (pthread_key_t)
12574 See \`config.log' for more details" "$LINENO" 5; }
12575 else
12576 ac_cv_sizeof_pthread_key_t=0
12577 fi
12578 fi
12579
12580 fi
12581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
12582 printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; }
12583
12584
12585
12586 printf "%s\n" "#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t" >>confdefs.h
12587
12588
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
12590 printf %s "checking whether pthread_key_t is compatible with int... " >&6; }
12591 if test ${ac_cv_pthread_key_t_is_arithmetic_type+y}
12592 then :
12593 printf %s "(cached) " >&6
12594 else $as_nop
12595
12596 if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 #include <pthread.h>
12600 int
12601 main (void)
12602 {
12603 pthread_key_t k; k * 1;
12604 ;
12605 return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_compile "$LINENO"
12609 then :
12610 ac_cv_pthread_key_t_is_arithmetic_type=yes
12611 else $as_nop
12612 ac_cv_pthread_key_t_is_arithmetic_type=no
12613
12614 fi
12615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12616 else
12617 ac_cv_pthread_key_t_is_arithmetic_type=no
12618 fi
12619
12620 fi
12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_key_t_is_arithmetic_type" >&5
12622 printf "%s\n" "$ac_cv_pthread_key_t_is_arithmetic_type" >&6; }
12623 if test "x$ac_cv_pthread_key_t_is_arithmetic_type" = xyes
12624 then :
12625
12626
12627 printf "%s\n" "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
12628
12629
12630 fi
12631
12632 CC="$ac_save_cc"
12633
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
12635 printf %s "checking for --enable-framework... " >&6; }
12636 if test "$enable_framework"
12637 then
12638 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12639 # -F. is needed to allow linking to the framework while
12640 # in the build location.
12641
12642 printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
12643
12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12645 printf "%s\n" "yes" >&6; }
12646 if test $enable_shared = "yes"
12647 then
12648 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
12649 fi
12650 else
12651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 printf "%s\n" "no" >&6; }
12653 fi
12654
12655 # Check for --with-dsymutil
12656
12657
12658 DSYMUTIL=
12659 DSYMUTIL_PATH=
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dsymutil" >&5
12661 printf %s "checking for --with-dsymutil... " >&6; }
12662
12663 # Check whether --with-dsymutil was given.
12664 if test ${with_dsymutil+y}
12665 then :
12666 withval=$with_dsymutil;
12667 if test "$withval" != no
12668 then
12669 if test "$MACHDEP" != "darwin"; then
12670 as_fn_error $? "dsymutil debug linking is only available in macOS." "$LINENO" 5
12671 fi
12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673 printf "%s\n" "yes" >&6; };
12674 DSYMUTIL='true'
12675 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 printf "%s\n" "no" >&6; }; DSYMUTIL=
12677 fi
12678 else $as_nop
12679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 printf "%s\n" "no" >&6; }
12681 fi
12682
12683
12684 if test "$DSYMUTIL"; then
12685 # Extract the first word of "dsymutil", so it can be a program name with args.
12686 set dummy dsymutil; ac_word=$2
12687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 printf %s "checking for $ac_word... " >&6; }
12689 if test ${ac_cv_path_DSYMUTIL_PATH+y}
12690 then :
12691 printf %s "(cached) " >&6
12692 else $as_nop
12693 case $DSYMUTIL_PATH in
12694 [\\/]* | ?:[\\/]*)
12695 ac_cv_path_DSYMUTIL_PATH="$DSYMUTIL_PATH" # Let the user override the test with a path.
12696 ;;
12697 *)
12698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $PATH
12700 do
12701 IFS=$as_save_IFS
12702 case $as_dir in #(((
12703 '') as_dir=./ ;;
12704 */) ;;
12705 *) as_dir=$as_dir/ ;;
12706 esac
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12709 ac_cv_path_DSYMUTIL_PATH="$as_dir$ac_word$ac_exec_ext"
12710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12711 break 2
12712 fi
12713 done
12714 done
12715 IFS=$as_save_IFS
12716
12717 test -z "$ac_cv_path_DSYMUTIL_PATH" && ac_cv_path_DSYMUTIL_PATH="not found"
12718 ;;
12719 esac
12720 fi
12721 DSYMUTIL_PATH=$ac_cv_path_DSYMUTIL_PATH
12722 if test -n "$DSYMUTIL_PATH"; then
12723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_PATH" >&5
12724 printf "%s\n" "$DSYMUTIL_PATH" >&6; }
12725 else
12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 printf "%s\n" "no" >&6; }
12728 fi
12729
12730
12731 if test "$DSYMUTIL_PATH" = "not found"; then
12732 as_fn_error $? "dsymutil command not found on \$PATH" "$LINENO" 5
12733 fi
12734 fi
12735
12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
12737 printf %s "checking for dyld... " >&6; }
12738 case $ac_sys_system/$ac_sys_release in
12739 Darwin/*)
12740
12741 printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h
12742
12743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
12744 printf "%s\n" "always on for Darwin" >&6; }
12745 ;;
12746 *)
12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 printf "%s\n" "no" >&6; }
12749 ;;
12750 esac
12751
12752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
12753 printf %s "checking for --with-address-sanitizer... " >&6; }
12754
12755 # Check whether --with-address_sanitizer was given.
12756 if test ${with_address_sanitizer+y}
12757 then :
12758 withval=$with_address_sanitizer;
12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12760 printf "%s\n" "$withval" >&6; }
12761 BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
12762 LDFLAGS="-fsanitize=address $LDFLAGS"
12763 # ASan works by controlling memory allocation, our own malloc interferes.
12764 with_pymalloc="no"
12765
12766 else $as_nop
12767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 printf "%s\n" "no" >&6; }
12769 fi
12770
12771
12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
12773 printf %s "checking for --with-memory-sanitizer... " >&6; }
12774
12775 # Check whether --with-memory_sanitizer was given.
12776 if test ${with_memory_sanitizer+y}
12777 then :
12778 withval=$with_memory_sanitizer;
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12780 printf "%s\n" "$withval" >&6; }
12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5
12782 printf %s "checking whether C compiler accepts -fsanitize=memory... " >&6; }
12783 if test ${ax_cv_check_cflags___fsanitize_memory+y}
12784 then :
12785 printf %s "(cached) " >&6
12786 else $as_nop
12787
12788 ax_check_save_flags=$CFLAGS
12789 CFLAGS="$CFLAGS -fsanitize=memory"
12790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12792
12793 int
12794 main (void)
12795 {
12796
12797 ;
12798 return 0;
12799 }
12800 _ACEOF
12801 if ac_fn_c_try_compile "$LINENO"
12802 then :
12803 ax_cv_check_cflags___fsanitize_memory=yes
12804 else $as_nop
12805 ax_cv_check_cflags___fsanitize_memory=no
12806 fi
12807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12808 CFLAGS=$ax_check_save_flags
12809 fi
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5
12811 printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory" >&6; }
12812 if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes
12813 then :
12814
12815 BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
12816 LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
12817
12818 else $as_nop
12819 as_fn_error $? "The selected compiler doesn't support memory sanitizer" "$LINENO" 5
12820 fi
12821
12822 # MSan works by controlling memory allocation, our own malloc interferes.
12823 with_pymalloc="no"
12824
12825 else $as_nop
12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 printf "%s\n" "no" >&6; }
12828 fi
12829
12830
12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
12832 printf %s "checking for --with-undefined-behavior-sanitizer... " >&6; }
12833
12834 # Check whether --with-undefined_behavior_sanitizer was given.
12835 if test ${with_undefined_behavior_sanitizer+y}
12836 then :
12837 withval=$with_undefined_behavior_sanitizer;
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12839 printf "%s\n" "$withval" >&6; }
12840 BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
12841 LDFLAGS="-fsanitize=undefined $LDFLAGS"
12842 with_ubsan="yes"
12843
12844 else $as_nop
12845
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 printf "%s\n" "no" >&6; }
12848 with_ubsan="no"
12849
12850 fi
12851
12852
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-thread-sanitizer" >&5
12854 printf %s "checking for --with-thread-sanitizer... " >&6; }
12855
12856 # Check whether --with-thread_sanitizer was given.
12857 if test ${with_thread_sanitizer+y}
12858 then :
12859 withval=$with_thread_sanitizer;
12860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12861 printf "%s\n" "$withval" >&6; }
12862 BASECFLAGS="-fsanitize=thread $BASECFLAGS"
12863 LDFLAGS="-fsanitize=thread $LDFLAGS"
12864 with_tsan="yes"
12865
12866 else $as_nop
12867
12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 printf "%s\n" "no" >&6; }
12870 with_tsan="no"
12871
12872 fi
12873
12874
12875 # Set info about shared libraries.
12876
12877
12878
12879
12880
12881
12882
12883 # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
12884 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
12886 printf %s "checking the extension of shared libraries... " >&6; }
12887 if test -z "$SHLIB_SUFFIX"; then
12888 case $ac_sys_system in
12889 hp*|HP*)
12890 case `uname -m` in
12891 ia64) SHLIB_SUFFIX=.so;;
12892 *) SHLIB_SUFFIX=.sl;;
12893 esac
12894 ;;
12895 CYGWIN*) SHLIB_SUFFIX=.dll;;
12896 *) SHLIB_SUFFIX=.so;;
12897 esac
12898 fi
12899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
12900 printf "%s\n" "$SHLIB_SUFFIX" >&6; }
12901
12902 # LDSHARED is the ld *command* used to create shared library
12903 # -- "cc -G" on SunOS 5.x.
12904 # (Shared libraries in this instance are shared modules to be loaded into
12905 # Python, as opposed to building Python itself as a shared library.)
12906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
12907 printf %s "checking LDSHARED... " >&6; }
12908 if test -z "$LDSHARED"
12909 then
12910 case $ac_sys_system/$ac_sys_release in
12911 AIX*)
12912 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12913 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
12914 ;;
12915 SunOS/5*)
12916 if test "$GCC" = "yes" ; then
12917 LDSHARED='$(CC) -shared'
12918 LDCXXSHARED='$(CXX) -shared'
12919 else
12920 LDSHARED='$(CC) -G'
12921 LDCXXSHARED='$(CXX) -G'
12922 fi ;;
12923 hp*|HP*)
12924 if test "$GCC" = "yes" ; then
12925 LDSHARED='$(CC) -shared'
12926 LDCXXSHARED='$(CXX) -shared'
12927 else
12928 LDSHARED='$(CC) -b'
12929 LDCXXSHARED='$(CXX) -b'
12930 fi ;;
12931 Darwin/1.3*)
12932 LDSHARED='$(CC) -bundle'
12933 LDCXXSHARED='$(CXX) -bundle'
12934 if test "$enable_framework" ; then
12935 # Link against the framework. All externals should be defined.
12936 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12937 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12938 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12939 else
12940 # No framework. Ignore undefined symbols, assuming they come from Python
12941 LDSHARED="$LDSHARED -undefined suppress"
12942 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
12943 fi ;;
12944 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12945 LDSHARED='$(CC) -bundle'
12946 LDCXXSHARED='$(CXX) -bundle'
12947 if test "$enable_framework" ; then
12948 # Link against the framework. All externals should be defined.
12949 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12950 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12951 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12952 else
12953 # No framework, use the Python app as bundle-loader
12954 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12955 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12956 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12957 fi ;;
12958 Darwin/*)
12959 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12960 # This allows an extension to be used in any Python
12961
12962 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
12963 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
12964 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
12965 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
12966 if test ${dep_target_major} -eq 10 && \
12967 test ${dep_target_minor} -le 2
12968 then
12969 # building for OS X 10.0 through 10.2
12970 as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5
12971 else
12972 # building for OS X 10.3 and later
12973 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
12974 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
12975 BLDSHARED="$LDSHARED"
12976 fi
12977 ;;
12978 iOS/*)
12979 LDSHARED='$(CC) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
12980 LDCXXSHARED='$(CXX) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
12981 BLDSHARED="$LDSHARED"
12982 ;;
12983 Emscripten*|WASI*)
12984 LDSHARED='$(CC) -shared'
12985 LDCXXSHARED='$(CXX) -shared';;
12986 Linux*|GNU*|QNX*|VxWorks*|Haiku*)
12987 LDSHARED='$(CC) -shared'
12988 LDCXXSHARED='$(CXX) -shared';;
12989 FreeBSD*)
12990 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12991 then
12992 LDSHARED='$(CC) -shared'
12993 LDCXXSHARED='$(CXX) -shared'
12994 else
12995 LDSHARED="ld -Bshareable"
12996 fi;;
12997 OpenBSD*)
12998 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12999 then
13000 LDSHARED='$(CC) -shared $(CCSHARED)'
13001 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
13002 else
13003 case `uname -r` in
13004 [01].* | 2.[0-7] | 2.[0-7].*)
13005 LDSHARED="ld -Bshareable ${LDFLAGS}"
13006 ;;
13007 *)
13008 LDSHARED='$(CC) -shared $(CCSHARED)'
13009 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
13010 ;;
13011 esac
13012 fi;;
13013 NetBSD*|DragonFly*)
13014 LDSHARED='$(CC) -shared'
13015 LDCXXSHARED='$(CXX) -shared';;
13016 OpenUNIX*|UnixWare*)
13017 if test "$GCC" = "yes" ; then
13018 LDSHARED='$(CC) -shared'
13019 LDCXXSHARED='$(CXX) -shared'
13020 else
13021 LDSHARED='$(CC) -G'
13022 LDCXXSHARED='$(CXX) -G'
13023 fi;;
13024 SCO_SV*)
13025 LDSHARED='$(CC) -Wl,-G,-Bexport'
13026 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
13027 WASI*)
13028 if test "x$enable_wasm_dynamic_linking" = xyes
13029 then :
13030
13031
13032 fi;;
13033 CYGWIN*)
13034 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
13035 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
13036 *) LDSHARED="ld";;
13037 esac
13038 fi
13039
13040 if test "$enable_wasm_dynamic_linking" = "yes" -a "$ac_sys_system" = "Emscripten"; then
13041 BLDSHARED='$(CC) -shared -sSIDE_MODULE=1'
13042 fi
13043
13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
13045 printf "%s\n" "$LDSHARED" >&6; }
13046 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
13047
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BLDSHARED flags" >&5
13049 printf %s "checking BLDSHARED flags... " >&6; }
13050 BLDSHARED=${BLDSHARED-$LDSHARED}
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLDSHARED" >&5
13052 printf "%s\n" "$BLDSHARED" >&6; }
13053
13054 # CCSHARED are the C *flags* used to create objects to go into a shared
13055 # library (module) -- this is only needed for a few systems
13056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
13057 printf %s "checking CCSHARED... " >&6; }
13058 if test -z "$CCSHARED"
13059 then
13060 case $ac_sys_system/$ac_sys_release in
13061 SunOS*) if test "$GCC" = yes;
13062 then CCSHARED="-fPIC";
13063 elif test `uname -p` = sparc;
13064 then CCSHARED="-xcode=pic32";
13065 else CCSHARED="-Kpic";
13066 fi;;
13067 hp*|HP*) if test "$GCC" = yes;
13068 then CCSHARED="-fPIC";
13069 else CCSHARED="+z";
13070 fi;;
13071 Linux*|GNU*) CCSHARED="-fPIC";;
13072 Emscripten*|WASI*)
13073 if test "x$enable_wasm_dynamic_linking" = xyes
13074 then :
13075
13076 CCSHARED="-fPIC"
13077
13078 fi;;
13079 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13080 Haiku*) CCSHARED="-fPIC";;
13081 OpenUNIX*|UnixWare*)
13082 if test "$GCC" = "yes"
13083 then CCSHARED="-fPIC"
13084 else CCSHARED="-KPIC"
13085 fi;;
13086 SCO_SV*)
13087 if test "$GCC" = "yes"
13088 then CCSHARED="-fPIC"
13089 else CCSHARED="-Kpic -belf"
13090 fi;;
13091 VxWorks*)
13092 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic"
13093 esac
13094 fi
13095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
13096 printf "%s\n" "$CCSHARED" >&6; }
13097 # LINKFORSHARED are the flags passed to the $(CC) command that links
13098 # the python executable -- this is only needed for a few systems
13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
13100 printf %s "checking LINKFORSHARED... " >&6; }
13101 if test -z "$LINKFORSHARED"
13102 then
13103 case $ac_sys_system/$ac_sys_release in
13104 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13105 hp*|HP*)
13106 LINKFORSHARED="-Wl,-E -Wl,+s";;
13107 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13108 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
13109 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13110 # -u libsys_s pulls in all symbols in libsys
13111 Darwin/*|iOS/*)
13112 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13113
13114 # Issue #18075: the default maximum stack size (8MBytes) is too
13115 # small for the default recursion limit. Increase the stack size
13116 # to ensure that tests don't crash
13117 stack_size="1000000" # 16 MB
13118 if test "$with_ubsan" = "yes"
13119 then
13120 # Undefined behavior sanitizer requires an even deeper stack
13121 stack_size="4000000" # 64 MB
13122 fi
13123
13124
13125 printf "%s\n" "#define THREAD_STACK_SIZE 0x$stack_size" >>confdefs.h
13126
13127
13128 if test $ac_sys_system = "Darwin"; then
13129 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED"
13130
13131 if test "$enable_framework"; then
13132 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13133 fi
13134 LINKFORSHARED="$LINKFORSHARED"
13135 elif test $ac_sys_system = "iOS"; then
13136 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)'
13137 fi
13138 ;;
13139 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13140 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13141 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13142 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13143 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13144 then
13145 LINKFORSHARED="-Wl,--export-dynamic"
13146 fi;;
13147 SunOS/5*) case $CC in
13148 *gcc*)
13149 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13150 then
13151 LINKFORSHARED="-Xlinker --export-dynamic"
13152 fi;;
13153 esac;;
13154 CYGWIN*)
13155 if test $enable_shared = "no"
13156 then
13157 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13158 fi;;
13159 QNX*)
13160 # -Wl,-E causes the symbols to be added to the dynamic
13161 # symbol table so that they can be found when a module
13162 # is loaded. -N 2048K causes the stack size to be set
13163 # to 2048 kilobytes so that the stack doesn't overflow
13164 # when running test_compile.py.
13165 LINKFORSHARED='-Wl,-E -N 2048K';;
13166 VxWorks*)
13167 LINKFORSHARED='-Wl,-export-dynamic';;
13168 esac
13169 fi
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
13171 printf "%s\n" "$LINKFORSHARED" >&6; }
13172
13173
13174
13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
13176 printf %s "checking CFLAGSFORSHARED... " >&6; }
13177 if test ! "$LIBRARY" = "$LDLIBRARY"
13178 then
13179 case $ac_sys_system in
13180 CYGWIN*)
13181 # Cygwin needs CCSHARED when building extension DLLs
13182 # but not when building the interpreter DLL.
13183 CFLAGSFORSHARED='';;
13184 *)
13185 CFLAGSFORSHARED='$(CCSHARED)'
13186 esac
13187 fi
13188
13189 if test "x$enable_wasm_dynamic_linking" = xyes
13190 then :
13191
13192 CFLAGSFORSHARED='$(CCSHARED)'
13193
13194 fi
13195
13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
13197 printf "%s\n" "$CFLAGSFORSHARED" >&6; }
13198
13199 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13200 # library (with --enable-shared).
13201 # For platforms on which shared libraries are not allowed to have unresolved
13202 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13203 # if it is not required, since it creates a dependency of the shared library
13204 # to LIBS. This, in turn, means that applications linking the shared libpython
13205 # don't need to link LIBS explicitly. The default should be only changed
13206 # on systems where this approach causes problems.
13207
13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
13209 printf %s "checking SHLIBS... " >&6; }
13210 case "$ac_sys_system" in
13211 *)
13212 SHLIBS='$(LIBS)';;
13213 esac
13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
13215 printf "%s\n" "$SHLIBS" >&6; }
13216
13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking perf trampoline" >&5
13218 printf %s "checking perf trampoline... " >&6; }
13219 case $PLATFORM_TRIPLET in #(
13220 x86_64-linux-gnu) :
13221 perf_trampoline=yes ;; #(
13222 aarch64-linux-gnu) :
13223 perf_trampoline=yes ;; #(
13224 *) :
13225 perf_trampoline=no
13226 ;;
13227 esac
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perf_trampoline" >&5
13229 printf "%s\n" "$perf_trampoline" >&6; }
13230
13231 if test "x$perf_trampoline" = xyes
13232 then :
13233
13234
13235 printf "%s\n" "#define PY_HAVE_PERF_TRAMPOLINE 1" >>confdefs.h
13236
13237 PERF_TRAMPOLINE_OBJ=Python/asm_trampoline.o
13238
13239 if test "x$Py_DEBUG" = xtrue
13240 then :
13241
13242 as_fn_append BASECFLAGS " -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
13243
13244 fi
13245
13246 fi
13247
13248
13249 # checks for libraries
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
13251 printf %s "checking for sendfile in -lsendfile... " >&6; }
13252 if test ${ac_cv_lib_sendfile_sendfile+y}
13253 then :
13254 printf %s "(cached) " >&6
13255 else $as_nop
13256 ac_check_lib_save_LIBS=$LIBS
13257 LIBS="-lsendfile $LIBS"
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260
13261 /* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13264 char sendfile ();
13265 int
13266 main (void)
13267 {
13268 return sendfile ();
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"
13274 then :
13275 ac_cv_lib_sendfile_sendfile=yes
13276 else $as_nop
13277 ac_cv_lib_sendfile_sendfile=no
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13280 conftest$ac_exeext conftest.$ac_ext
13281 LIBS=$ac_check_lib_save_LIBS
13282 fi
13283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
13284 printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; }
13285 if test "x$ac_cv_lib_sendfile_sendfile" = xyes
13286 then :
13287 printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h
13288
13289 LIBS="-lsendfile $LIBS"
13290
13291 fi
13292
13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13294 printf %s "checking for dlopen in -ldl... " >&6; }
13295 if test ${ac_cv_lib_dl_dlopen+y}
13296 then :
13297 printf %s "(cached) " >&6
13298 else $as_nop
13299 ac_check_lib_save_LIBS=$LIBS
13300 LIBS="-ldl $LIBS"
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303
13304 /* Override any GCC internal prototype to avoid an error.
13305 Use char because int might match the return type of a GCC
13306 builtin and then its argument prototype would still apply. */
13307 char dlopen ();
13308 int
13309 main (void)
13310 {
13311 return dlopen ();
13312 ;
13313 return 0;
13314 }
13315 _ACEOF
13316 if ac_fn_c_try_link "$LINENO"
13317 then :
13318 ac_cv_lib_dl_dlopen=yes
13319 else $as_nop
13320 ac_cv_lib_dl_dlopen=no
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13323 conftest$ac_exeext conftest.$ac_ext
13324 LIBS=$ac_check_lib_save_LIBS
13325 fi
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13327 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13328 if test "x$ac_cv_lib_dl_dlopen" = xyes
13329 then :
13330 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
13331
13332 LIBS="-ldl $LIBS"
13333
13334 fi
13335 # Dynamic linking for SunOS/Solaris and SYSV
13336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13337 printf %s "checking for shl_load in -ldld... " >&6; }
13338 if test ${ac_cv_lib_dld_shl_load+y}
13339 then :
13340 printf %s "(cached) " >&6
13341 else $as_nop
13342 ac_check_lib_save_LIBS=$LIBS
13343 LIBS="-ldld $LIBS"
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346
13347 /* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13350 char shl_load ();
13351 int
13352 main (void)
13353 {
13354 return shl_load ();
13355 ;
13356 return 0;
13357 }
13358 _ACEOF
13359 if ac_fn_c_try_link "$LINENO"
13360 then :
13361 ac_cv_lib_dld_shl_load=yes
13362 else $as_nop
13363 ac_cv_lib_dld_shl_load=no
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13368 fi
13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13370 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13371 if test "x$ac_cv_lib_dld_shl_load" = xyes
13372 then :
13373 printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h
13374
13375 LIBS="-ldld $LIBS"
13376
13377 fi
13378 # Dynamic linking for HP-UX
13379
13380
13381
13382
13383
13384
13385 have_uuid=missing
13386
13387 for ac_header in uuid.h
13388 do :
13389 ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13390 if test "x$ac_cv_header_uuid_h" = xyes
13391 then :
13392 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
13393
13394
13395 for ac_func in uuid_create uuid_enc_be
13396 do :
13397 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
13398 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13399 if eval test \"x\$"$as_ac_var"\" = x"yes"
13400 then :
13401 cat >>confdefs.h <<_ACEOF
13402 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
13403 _ACEOF
13404
13405 have_uuid=yes
13406 ac_cv_have_uuid_h=yes
13407 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13408 LIBUUID_LIBS=${LIBUUID_LIBS-""}
13409
13410 fi
13411
13412 done
13413
13414 fi
13415
13416 done
13417
13418 if test "x$have_uuid" = xmissing
13419 then :
13420
13421
13422 pkg_failed=no
13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid >= 2.20" >&5
13424 printf %s "checking for uuid >= 2.20... " >&6; }
13425
13426 if test -n "$LIBUUID_CFLAGS"; then
13427 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
13428 elif test -n "$PKG_CONFIG"; then
13429 if test -n "$PKG_CONFIG" && \
13430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
13431 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
13432 ac_status=$?
13433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13434 test $ac_status = 0; }; then
13435 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.20" 2>/dev/null`
13436 test "x$?" != "x0" && pkg_failed=yes
13437 else
13438 pkg_failed=yes
13439 fi
13440 else
13441 pkg_failed=untried
13442 fi
13443 if test -n "$LIBUUID_LIBS"; then
13444 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
13445 elif test -n "$PKG_CONFIG"; then
13446 if test -n "$PKG_CONFIG" && \
13447 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
13448 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
13449 ac_status=$?
13450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451 test $ac_status = 0; }; then
13452 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid >= 2.20" 2>/dev/null`
13453 test "x$?" != "x0" && pkg_failed=yes
13454 else
13455 pkg_failed=yes
13456 fi
13457 else
13458 pkg_failed=untried
13459 fi
13460
13461
13462
13463 if test $pkg_failed = yes; then
13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 printf "%s\n" "no" >&6; }
13466
13467 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13468 _pkg_short_errors_supported=yes
13469 else
13470 _pkg_short_errors_supported=no
13471 fi
13472 if test $_pkg_short_errors_supported = yes; then
13473 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
13474 else
13475 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
13476 fi
13477 # Put the nasty error message in config.log where it belongs
13478 echo "$LIBUUID_PKG_ERRORS" >&5
13479
13480
13481 save_CFLAGS=$CFLAGS
13482 save_CPPFLAGS=$CPPFLAGS
13483 save_LDFLAGS=$LDFLAGS
13484 save_LIBS=$LIBS
13485
13486
13487 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
13488 LIBS="$LIBS $LIBUUID_LIBS"
13489 for ac_header in uuid/uuid.h
13490 do :
13491 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13492 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13493 then :
13494 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13495
13496 ac_cv_have_uuid_uuid_h=yes
13497 py_check_lib_save_LIBS=$LIBS
13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
13499 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
13500 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
13501 then :
13502 printf %s "(cached) " >&6
13503 else $as_nop
13504 ac_check_lib_save_LIBS=$LIBS
13505 LIBS="-luuid $LIBS"
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508
13509 /* Override any GCC internal prototype to avoid an error.
13510 Use char because int might match the return type of a GCC
13511 builtin and then its argument prototype would still apply. */
13512 char uuid_generate_time ();
13513 int
13514 main (void)
13515 {
13516 return uuid_generate_time ();
13517 ;
13518 return 0;
13519 }
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"
13522 then :
13523 ac_cv_lib_uuid_uuid_generate_time=yes
13524 else $as_nop
13525 ac_cv_lib_uuid_uuid_generate_time=no
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13528 conftest$ac_exeext conftest.$ac_ext
13529 LIBS=$ac_check_lib_save_LIBS
13530 fi
13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
13532 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
13533 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
13534 then :
13535 have_uuid=yes
13536 fi
13537
13538 LIBS=$py_check_lib_save_LIBS
13539
13540 py_check_lib_save_LIBS=$LIBS
13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
13542 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
13543 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
13544 then :
13545 printf %s "(cached) " >&6
13546 else $as_nop
13547 ac_check_lib_save_LIBS=$LIBS
13548 LIBS="-luuid $LIBS"
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551
13552 /* Override any GCC internal prototype to avoid an error.
13553 Use char because int might match the return type of a GCC
13554 builtin and then its argument prototype would still apply. */
13555 char uuid_generate_time_safe ();
13556 int
13557 main (void)
13558 {
13559 return uuid_generate_time_safe ();
13560 ;
13561 return 0;
13562 }
13563 _ACEOF
13564 if ac_fn_c_try_link "$LINENO"
13565 then :
13566 ac_cv_lib_uuid_uuid_generate_time_safe=yes
13567 else $as_nop
13568 ac_cv_lib_uuid_uuid_generate_time_safe=no
13569 fi
13570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13571 conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS
13573 fi
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
13575 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
13576 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
13577 then :
13578
13579 have_uuid=yes
13580 ac_cv_have_uuid_generate_time_safe=yes
13581
13582 fi
13583
13584 LIBS=$py_check_lib_save_LIBS
13585
13586 fi
13587
13588 done
13589 if test "x$have_uuid" = xyes
13590 then :
13591
13592 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13593 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
13594
13595 fi
13596
13597 CFLAGS=$save_CFLAGS
13598 CPPFLAGS=$save_CPPFLAGS
13599 LDFLAGS=$save_LDFLAGS
13600 LIBS=$save_LIBS
13601
13602
13603
13604
13605 elif test $pkg_failed = untried; then
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 printf "%s\n" "no" >&6; }
13608
13609 save_CFLAGS=$CFLAGS
13610 save_CPPFLAGS=$CPPFLAGS
13611 save_LDFLAGS=$LDFLAGS
13612 save_LIBS=$LIBS
13613
13614
13615 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
13616 LIBS="$LIBS $LIBUUID_LIBS"
13617 for ac_header in uuid/uuid.h
13618 do :
13619 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13620 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13621 then :
13622 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13623
13624 ac_cv_have_uuid_uuid_h=yes
13625 py_check_lib_save_LIBS=$LIBS
13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
13627 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
13628 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
13629 then :
13630 printf %s "(cached) " >&6
13631 else $as_nop
13632 ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-luuid $LIBS"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636
13637 /* Override any GCC internal prototype to avoid an error.
13638 Use char because int might match the return type of a GCC
13639 builtin and then its argument prototype would still apply. */
13640 char uuid_generate_time ();
13641 int
13642 main (void)
13643 {
13644 return uuid_generate_time ();
13645 ;
13646 return 0;
13647 }
13648 _ACEOF
13649 if ac_fn_c_try_link "$LINENO"
13650 then :
13651 ac_cv_lib_uuid_uuid_generate_time=yes
13652 else $as_nop
13653 ac_cv_lib_uuid_uuid_generate_time=no
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13656 conftest$ac_exeext conftest.$ac_ext
13657 LIBS=$ac_check_lib_save_LIBS
13658 fi
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
13660 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
13661 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
13662 then :
13663 have_uuid=yes
13664 fi
13665
13666 LIBS=$py_check_lib_save_LIBS
13667
13668 py_check_lib_save_LIBS=$LIBS
13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
13670 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
13671 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
13672 then :
13673 printf %s "(cached) " >&6
13674 else $as_nop
13675 ac_check_lib_save_LIBS=$LIBS
13676 LIBS="-luuid $LIBS"
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13683 char uuid_generate_time_safe ();
13684 int
13685 main (void)
13686 {
13687 return uuid_generate_time_safe ();
13688 ;
13689 return 0;
13690 }
13691 _ACEOF
13692 if ac_fn_c_try_link "$LINENO"
13693 then :
13694 ac_cv_lib_uuid_uuid_generate_time_safe=yes
13695 else $as_nop
13696 ac_cv_lib_uuid_uuid_generate_time_safe=no
13697 fi
13698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13699 conftest$ac_exeext conftest.$ac_ext
13700 LIBS=$ac_check_lib_save_LIBS
13701 fi
13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
13703 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
13704 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
13705 then :
13706
13707 have_uuid=yes
13708 ac_cv_have_uuid_generate_time_safe=yes
13709
13710 fi
13711
13712 LIBS=$py_check_lib_save_LIBS
13713
13714 fi
13715
13716 done
13717 if test "x$have_uuid" = xyes
13718 then :
13719
13720 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13721 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
13722
13723 fi
13724
13725 CFLAGS=$save_CFLAGS
13726 CPPFLAGS=$save_CPPFLAGS
13727 LDFLAGS=$save_LDFLAGS
13728 LIBS=$save_LIBS
13729
13730
13731
13732
13733 else
13734 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
13735 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13737 printf "%s\n" "yes" >&6; }
13738 have_uuid=yes
13739 ac_cv_have_uuid_generate_time_safe=yes
13740 # The uuid.h file to include may be <uuid.h> *or* <uuid/uuid.h>.
13741 # Since pkg-config --cflags uuid may return -I/usr/include/uuid,
13742 # it's possible to write '#include <uuid.h>' in _uuidmodule.c,
13743 # assuming that the compiler flags are properly updated.
13744 #
13745 # Ideally, we should have defined HAVE_UUID_H if and only if
13746 # #include <uuid.h> can be written, *without* assuming extra
13747 # include path.
13748 ac_cv_have_uuid_h=yes
13749
13750 fi
13751
13752 fi
13753
13754 if test "x$have_uuid" = xmissing
13755 then :
13756
13757 for ac_header in uuid/uuid.h
13758 do :
13759 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13760 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13761 then :
13762 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13763
13764 ac_fn_c_check_func "$LINENO" "uuid_generate_time" "ac_cv_func_uuid_generate_time"
13765 if test "x$ac_cv_func_uuid_generate_time" = xyes
13766 then :
13767
13768 have_uuid=yes
13769 ac_cv_have_uuid_uuid_h=yes
13770 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13771 LIBUUID_LIBS=${LIBUUID_LIBS-""}
13772
13773 fi
13774
13775
13776 fi
13777
13778 done
13779
13780 fi
13781
13782 if test "x$ac_cv_have_uuid_h" = xyes
13783 then :
13784 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
13785
13786 fi
13787 if test "x$ac_cv_have_uuid_uuid_h" = xyes
13788 then :
13789 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13790
13791 fi
13792 if test "x$ac_cv_have_uuid_generate_time_safe" = xyes
13793 then :
13794
13795 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
13796
13797
13798 fi
13799
13800 # gh-124228: While the libuuid library is available on NetBSD, it supports only UUID version 4.
13801 # This restriction inhibits the proper generation of time-based UUIDs.
13802 if test "$ac_sys_system" = "NetBSD"; then
13803 have_uuid=missing
13804 printf "%s\n" "#define HAVE_UUID_H 0" >>confdefs.h
13805
13806 fi
13807
13808 if test "x$have_uuid" = xmissing
13809 then :
13810 have_uuid=no
13811 fi
13812
13813 # gh-132710: The UUID node is fetched by using libuuid when possible
13814 # and cached. While the node is constant within the same process,
13815 # different interpreters may have different values as libuuid may
13816 # randomize the node value if the latter cannot be deduced.
13817 #
13818 # Consumers may define HAVE_UUID_GENERATE_TIME_SAFE_STABLE_MAC
13819 # to indicate that libuuid is unstable and should not be relied
13820 # upon to deduce the MAC address.
13821
13822
13823 if test "$have_uuid" = "yes" -a "$HAVE_UUID_GENERATE_TIME_SAFE" = "1"
13824 then
13825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if uuid_generate_time_safe() node value is stable" >&5
13826 printf %s "checking if uuid_generate_time_safe() node value is stable... " >&6; }
13827 save_CFLAGS=$CFLAGS
13828 save_CPPFLAGS=$CPPFLAGS
13829 save_LDFLAGS=$LDFLAGS
13830 save_LIBS=$LIBS
13831
13832
13833 # Be sure to add the extra include path if we used pkg-config
13834 # as HAVE_UUID_H may be set even though <uuid.h> is only reachable
13835 # by adding extra -I flags.
13836 #
13837 # If the following script does not compile, we simply assume that
13838 # libuuid is missing.
13839 CFLAGS="$CFLAGS $LIBUUID_CFLAGS"
13840 LIBS="$LIBS $LIBUUID_LIBS"
13841 if test "$cross_compiling" = yes
13842 then :
13843
13844
13845 else $as_nop
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848
13849 #include <inttypes.h> // PRIu64
13850 #include <stdint.h> // uint64_t
13851 #include <stdio.h> // fopen(), fclose()
13852
13853 #ifdef HAVE_UUID_H
13854 #include <uuid.h>
13855 #else
13856 #include <uuid/uuid.h>
13857 #endif
13858
13859 #define ERR 1
13860 int main(void) {
13861 uuid_t uuid; // unsigned char[16]
13862 (void)uuid_generate_time_safe(uuid);
13863 uint64_t node = 0;
13864 for (size_t i = 0; i < 6; i++) {
13865 node |= (uint64_t)uuid[15 - i] << (8 * i);
13866 }
13867 FILE *fp = fopen("conftest.out", "w");
13868 if (fp == NULL) {
13869 return ERR;
13870 }
13871 int rc = fprintf(fp, "%" PRIu64 "\n", node) >= 0;
13872 rc |= fclose(fp);
13873 return rc == 0 ? 0 : ERR;
13874 }
13875 _ACEOF
13876 if ac_fn_c_try_run "$LINENO"
13877 then :
13878
13879 py_cv_uuid_node1=`cat conftest.out`
13880
13881 fi
13882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13883 conftest.$ac_objext conftest.beam conftest.$ac_ext
13884 fi
13885
13886 CFLAGS=$save_CFLAGS
13887 CPPFLAGS=$save_CPPFLAGS
13888 LDFLAGS=$save_LDFLAGS
13889 LIBS=$save_LIBS
13890
13891
13892 save_CFLAGS=$CFLAGS
13893 save_CPPFLAGS=$CPPFLAGS
13894 save_LDFLAGS=$LDFLAGS
13895 save_LIBS=$LIBS
13896
13897
13898 # Be sure to add the extra include path if we used pkg-config
13899 # as HAVE_UUID_H may be set even though <uuid.h> is only reachable
13900 # by adding extra -I flags.
13901 #
13902 # If the following script does not compile, we simply assume that
13903 # libuuid is missing.
13904 CFLAGS="$CFLAGS $LIBUUID_CFLAGS"
13905 LIBS="$LIBS $LIBUUID_LIBS"
13906 if test "$cross_compiling" = yes
13907 then :
13908
13909
13910 else $as_nop
13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h. */
13913
13914 #include <inttypes.h> // PRIu64
13915 #include <stdint.h> // uint64_t
13916 #include <stdio.h> // fopen(), fclose()
13917
13918 #ifdef HAVE_UUID_H
13919 #include <uuid.h>
13920 #else
13921 #include <uuid/uuid.h>
13922 #endif
13923
13924 #define ERR 1
13925 int main(void) {
13926 uuid_t uuid; // unsigned char[16]
13927 (void)uuid_generate_time_safe(uuid);
13928 uint64_t node = 0;
13929 for (size_t i = 0; i < 6; i++) {
13930 node |= (uint64_t)uuid[15 - i] << (8 * i);
13931 }
13932 FILE *fp = fopen("conftest.out", "w");
13933 if (fp == NULL) {
13934 return ERR;
13935 }
13936 int rc = fprintf(fp, "%" PRIu64 "\n", node) >= 0;
13937 rc |= fclose(fp);
13938 return rc == 0 ? 0 : ERR;
13939 }
13940 _ACEOF
13941 if ac_fn_c_try_run "$LINENO"
13942 then :
13943
13944 py_cv_uuid_node2=`cat conftest.out`
13945
13946 fi
13947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13948 conftest.$ac_objext conftest.beam conftest.$ac_ext
13949 fi
13950
13951 CFLAGS=$save_CFLAGS
13952 CPPFLAGS=$save_CPPFLAGS
13953 LDFLAGS=$save_LDFLAGS
13954 LIBS=$save_LIBS
13955
13956
13957 if test -n "$py_cv_uuid_node1" -a "$py_cv_uuid_node1" = "$py_cv_uuid_node2"
13958 then
13959 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE_STABLE_MAC 1" >>confdefs.h
13960
13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: stable" >&5
13962 printf "%s\n" "stable" >&6; }
13963 else
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unstable" >&5
13965 printf "%s\n" "unstable" >&6; }
13966 fi
13967 fi
13968
13969 # 'Real Time' functions on Solaris
13970 # posix4 on Solaris 2.6
13971 # pthread (first!) on Linux
13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
13973 printf %s "checking for library containing sem_init... " >&6; }
13974 if test ${ac_cv_search_sem_init+y}
13975 then :
13976 printf %s "(cached) " >&6
13977 else $as_nop
13978 ac_func_search_save_LIBS=$LIBS
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981
13982 /* Override any GCC internal prototype to avoid an error.
13983 Use char because int might match the return type of a GCC
13984 builtin and then its argument prototype would still apply. */
13985 char sem_init ();
13986 int
13987 main (void)
13988 {
13989 return sem_init ();
13990 ;
13991 return 0;
13992 }
13993 _ACEOF
13994 for ac_lib in '' pthread rt posix4
13995 do
13996 if test -z "$ac_lib"; then
13997 ac_res="none required"
13998 else
13999 ac_res=-l$ac_lib
14000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14001 fi
14002 if ac_fn_c_try_link "$LINENO"
14003 then :
14004 ac_cv_search_sem_init=$ac_res
14005 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14007 conftest$ac_exeext
14008 if test ${ac_cv_search_sem_init+y}
14009 then :
14010 break
14011 fi
14012 done
14013 if test ${ac_cv_search_sem_init+y}
14014 then :
14015
14016 else $as_nop
14017 ac_cv_search_sem_init=no
14018 fi
14019 rm conftest.$ac_ext
14020 LIBS=$ac_func_search_save_LIBS
14021 fi
14022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
14023 printf "%s\n" "$ac_cv_search_sem_init" >&6; }
14024 ac_res=$ac_cv_search_sem_init
14025 if test "$ac_res" != no
14026 then :
14027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14028
14029 fi
14030
14031
14032 # check if we need libintl for locale functions
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
14034 printf %s "checking for textdomain in -lintl... " >&6; }
14035 if test ${ac_cv_lib_intl_textdomain+y}
14036 then :
14037 printf %s "(cached) " >&6
14038 else $as_nop
14039 ac_check_lib_save_LIBS=$LIBS
14040 LIBS="-lintl $LIBS"
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14047 char textdomain ();
14048 int
14049 main (void)
14050 {
14051 return textdomain ();
14052 ;
14053 return 0;
14054 }
14055 _ACEOF
14056 if ac_fn_c_try_link "$LINENO"
14057 then :
14058 ac_cv_lib_intl_textdomain=yes
14059 else $as_nop
14060 ac_cv_lib_intl_textdomain=no
14061 fi
14062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14063 conftest$ac_exeext conftest.$ac_ext
14064 LIBS=$ac_check_lib_save_LIBS
14065 fi
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
14067 printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; }
14068 if test "x$ac_cv_lib_intl_textdomain" = xyes
14069 then :
14070
14071 printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h
14072
14073 LIBS="-lintl $LIBS"
14074 fi
14075
14076
14077 # checks for system dependent C++ extensions support
14078 case "$ac_sys_system" in
14079 AIX*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
14080 printf %s "checking for genuine AIX C++ extensions support... " >&6; }
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14083
14084 #include <load.h>
14085 int
14086 main (void)
14087 {
14088 loadAndInit("", 0, "")
14089 ;
14090 return 0;
14091 }
14092
14093 _ACEOF
14094 if ac_fn_c_try_link "$LINENO"
14095 then :
14096
14097
14098 printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
14099
14100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14101 printf "%s\n" "yes" >&6; }
14102
14103 else $as_nop
14104
14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 printf "%s\n" "no" >&6; }
14107
14108 fi
14109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14110 conftest$ac_exeext conftest.$ac_ext
14111 # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag
14112 # of the AIX system used to build/package Python executable. This tag serves
14113 # as a baseline for bdist module packages
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5
14115 printf %s "checking for the system builddate... " >&6; }
14116 AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }')
14117
14118 printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h
14119
14120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5
14121 printf "%s\n" "$AIX_BUILDDATE" >&6; }
14122 ;;
14123 *) ;;
14124 esac
14125
14126 # check for systems that require aligned memory access
14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
14128 printf %s "checking aligned memory access is required... " >&6; }
14129 if test ${ac_cv_aligned_required+y}
14130 then :
14131 printf %s "(cached) " >&6
14132 else $as_nop
14133 if test "$cross_compiling" = yes
14134 then :
14135
14136 # "yes" changes the hash function to FNV, which causes problems with Numba
14137 # (https://github.com/numba/numba/blob/0.59.0/numba/cpython/hashing.py#L470).
14138 if test "$ac_sys_system" = "Linux-android"; then
14139 ac_cv_aligned_required=no
14140 else
14141 ac_cv_aligned_required=yes
14142 fi
14143 else $as_nop
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146
14147 int main(void)
14148 {
14149 char s[16];
14150 int i, *p1, *p2;
14151 for (i=0; i < 16; i++)
14152 s[i] = i;
14153 p1 = (int*)(s+1);
14154 p2 = (int*)(s+2);
14155 if (*p1 == *p2)
14156 return 1;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_run "$LINENO"
14161 then :
14162 ac_cv_aligned_required=no
14163 else $as_nop
14164 ac_cv_aligned_required=yes
14165 fi
14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14167 conftest.$ac_objext conftest.beam conftest.$ac_ext
14168 fi
14169
14170
14171 fi
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
14173 printf "%s\n" "$ac_cv_aligned_required" >&6; }
14174 if test "$ac_cv_aligned_required" = yes ; then
14175
14176 printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
14177
14178 fi
14179
14180 # str, bytes and memoryview hash algorithm
14181
14182
14183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
14184 printf %s "checking for --with-hash-algorithm... " >&6; }
14185
14186 # Check whether --with-hash_algorithm was given.
14187 if test ${with_hash_algorithm+y}
14188 then :
14189 withval=$with_hash_algorithm;
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
14191 printf "%s\n" "$withval" >&6; }
14192 case "$withval" in
14193 siphash13)
14194 printf "%s\n" "#define Py_HASH_ALGORITHM 3" >>confdefs.h
14195
14196 ;;
14197 siphash24)
14198 printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h
14199
14200 ;;
14201 fnv)
14202 printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h
14203
14204 ;;
14205 *)
14206 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
14207 ;;
14208 esac
14209
14210 else $as_nop
14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5
14212 printf "%s\n" "default" >&6; }
14213 fi
14214
14215
14216 validate_tzpath() {
14217 # Checks that each element of the path is an absolute path
14218 if test -z "$1"; then
14219 # Empty string is allowed: it indicates no system TZPATH
14220 return 0
14221 fi
14222
14223 # Bad paths are those that don't start with /
14224 if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then
14225 as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5
14226 return 1;
14227 fi
14228 }
14229
14230 TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo"
14231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5
14232 printf %s "checking for --with-tzpath... " >&6; }
14233
14234 # Check whether --with-tzpath was given.
14235 if test ${with_tzpath+y}
14236 then :
14237 withval=$with_tzpath;
14238 case "$withval" in
14239 yes)
14240 as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5
14241 ;;
14242 *)
14243 validate_tzpath "$withval"
14244 TZPATH="$withval"
14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
14246 printf "%s\n" "\"$withval\"" >&6; }
14247 ;;
14248 esac
14249
14250 else $as_nop
14251 validate_tzpath "$TZPATH"
14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5
14253 printf "%s\n" "\"$TZPATH\"" >&6; }
14254 fi
14255
14256
14257
14258 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
14260 printf %s "checking for t_open in -lnsl... " >&6; }
14261 if test ${ac_cv_lib_nsl_t_open+y}
14262 then :
14263 printf %s "(cached) " >&6
14264 else $as_nop
14265 ac_check_lib_save_LIBS=$LIBS
14266 LIBS="-lnsl $LIBS"
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269
14270 /* Override any GCC internal prototype to avoid an error.
14271 Use char because int might match the return type of a GCC
14272 builtin and then its argument prototype would still apply. */
14273 char t_open ();
14274 int
14275 main (void)
14276 {
14277 return t_open ();
14278 ;
14279 return 0;
14280 }
14281 _ACEOF
14282 if ac_fn_c_try_link "$LINENO"
14283 then :
14284 ac_cv_lib_nsl_t_open=yes
14285 else $as_nop
14286 ac_cv_lib_nsl_t_open=no
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14289 conftest$ac_exeext conftest.$ac_ext
14290 LIBS=$ac_check_lib_save_LIBS
14291 fi
14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
14293 printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; }
14294 if test "x$ac_cv_lib_nsl_t_open" = xyes
14295 then :
14296 LIBS="-lnsl $LIBS"
14297 fi
14298 # SVR4
14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14300 printf %s "checking for socket in -lsocket... " >&6; }
14301 if test ${ac_cv_lib_socket_socket+y}
14302 then :
14303 printf %s "(cached) " >&6
14304 else $as_nop
14305 ac_check_lib_save_LIBS=$LIBS
14306 LIBS="-lsocket $LIBS $LIBS"
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309
14310 /* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14313 char socket ();
14314 int
14315 main (void)
14316 {
14317 return socket ();
14318 ;
14319 return 0;
14320 }
14321 _ACEOF
14322 if ac_fn_c_try_link "$LINENO"
14323 then :
14324 ac_cv_lib_socket_socket=yes
14325 else $as_nop
14326 ac_cv_lib_socket_socket=no
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14329 conftest$ac_exeext conftest.$ac_ext
14330 LIBS=$ac_check_lib_save_LIBS
14331 fi
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14333 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
14334 if test "x$ac_cv_lib_socket_socket" = xyes
14335 then :
14336 LIBS="-lsocket $LIBS"
14337 fi
14338 # SVR4 sockets
14339
14340 case $ac_sys_system/$ac_sys_release in
14341 Haiku*)
14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
14343 printf %s "checking for socket in -lnetwork... " >&6; }
14344 if test ${ac_cv_lib_network_socket+y}
14345 then :
14346 printf %s "(cached) " >&6
14347 else $as_nop
14348 ac_check_lib_save_LIBS=$LIBS
14349 LIBS="-lnetwork $LIBS $LIBS"
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352
14353 /* Override any GCC internal prototype to avoid an error.
14354 Use char because int might match the return type of a GCC
14355 builtin and then its argument prototype would still apply. */
14356 char socket ();
14357 int
14358 main (void)
14359 {
14360 return socket ();
14361 ;
14362 return 0;
14363 }
14364 _ACEOF
14365 if ac_fn_c_try_link "$LINENO"
14366 then :
14367 ac_cv_lib_network_socket=yes
14368 else $as_nop
14369 ac_cv_lib_network_socket=no
14370 fi
14371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14372 conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14374 fi
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
14376 printf "%s\n" "$ac_cv_lib_network_socket" >&6; }
14377 if test "x$ac_cv_lib_network_socket" = xyes
14378 then :
14379 LIBS="-lnetwork $LIBS"
14380 fi
14381
14382 ;;
14383 esac
14384
14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
14386 printf %s "checking for --with-libs... " >&6; }
14387
14388 # Check whether --with-libs was given.
14389 if test ${with_libs+y}
14390 then :
14391 withval=$with_libs;
14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
14393 printf "%s\n" "$withval" >&6; }
14394 LIBS="$withval $LIBS"
14395
14396 else $as_nop
14397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 printf "%s\n" "no" >&6; }
14399 fi
14400
14401
14402 # Check for use of the system expat library
14403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
14404 printf %s "checking for --with-system-expat... " >&6; }
14405
14406 # Check whether --with-system_expat was given.
14407 if test ${with_system_expat+y}
14408 then :
14409 withval=$with_system_expat;
14410 else $as_nop
14411 with_system_expat="no"
14412 fi
14413
14414
14415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
14416 printf "%s\n" "$with_system_expat" >&6; }
14417
14418 if test "x$with_system_expat" = xyes
14419 then :
14420
14421 LIBEXPAT_CFLAGS=${LIBEXPAT_CFLAGS-""}
14422 LIBEXPAT_LDFLAGS=${LIBEXPAT_LDFLAGS-"-lexpat"}
14423 LIBEXPAT_INTERNAL=
14424
14425 else $as_nop
14426
14427 LIBEXPAT_CFLAGS="-I\$(srcdir)/Modules/expat"
14428 LIBEXPAT_LDFLAGS="-lm \$(LIBEXPAT_A)"
14429 LIBEXPAT_INTERNAL="\$(LIBEXPAT_HEADERS) \$(LIBEXPAT_A)"
14430
14431 fi
14432
14433
14434
14435
14436 have_libffi=missing
14437 if test "x$ac_sys_system" = xDarwin
14438 then :
14439
14440 save_CFLAGS=$CFLAGS
14441 save_CPPFLAGS=$CPPFLAGS
14442 save_LDFLAGS=$LDFLAGS
14443 save_LIBS=$LIBS
14444
14445
14446 CFLAGS="-I${SDKROOT}/usr/include/ffi $CFLAGS"
14447 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14448 if test "x$ac_cv_header_ffi_h" = xyes
14449 then :
14450
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14452 printf %s "checking for ffi_call in -lffi... " >&6; }
14453 if test ${ac_cv_lib_ffi_ffi_call+y}
14454 then :
14455 printf %s "(cached) " >&6
14456 else $as_nop
14457 ac_check_lib_save_LIBS=$LIBS
14458 LIBS="-lffi $LIBS"
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14461
14462 /* Override any GCC internal prototype to avoid an error.
14463 Use char because int might match the return type of a GCC
14464 builtin and then its argument prototype would still apply. */
14465 char ffi_call ();
14466 int
14467 main (void)
14468 {
14469 return ffi_call ();
14470 ;
14471 return 0;
14472 }
14473 _ACEOF
14474 if ac_fn_c_try_link "$LINENO"
14475 then :
14476 ac_cv_lib_ffi_ffi_call=yes
14477 else $as_nop
14478 ac_cv_lib_ffi_ffi_call=no
14479 fi
14480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14481 conftest$ac_exeext conftest.$ac_ext
14482 LIBS=$ac_check_lib_save_LIBS
14483 fi
14484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14485 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14486 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14487 then :
14488
14489 have_libffi=yes
14490 LIBFFI_CFLAGS="-I${SDKROOT}/usr/include/ffi -DUSING_APPLE_OS_LIBFFI=1"
14491 LIBFFI_LIBS="-lffi"
14492
14493 fi
14494
14495
14496 fi
14497
14498
14499 CFLAGS=$save_CFLAGS
14500 CPPFLAGS=$save_CPPFLAGS
14501 LDFLAGS=$save_LDFLAGS
14502 LIBS=$save_LIBS
14503
14504
14505
14506 fi
14507 if test "x$have_libffi" = xmissing
14508 then :
14509
14510
14511 pkg_failed=no
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libffi" >&5
14513 printf %s "checking for libffi... " >&6; }
14514
14515 if test -n "$LIBFFI_CFLAGS"; then
14516 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
14517 elif test -n "$PKG_CONFIG"; then
14518 if test -n "$PKG_CONFIG" && \
14519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
14520 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
14521 ac_status=$?
14522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14523 test $ac_status = 0; }; then
14524 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
14525 test "x$?" != "x0" && pkg_failed=yes
14526 else
14527 pkg_failed=yes
14528 fi
14529 else
14530 pkg_failed=untried
14531 fi
14532 if test -n "$LIBFFI_LIBS"; then
14533 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
14534 elif test -n "$PKG_CONFIG"; then
14535 if test -n "$PKG_CONFIG" && \
14536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
14537 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
14538 ac_status=$?
14539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14540 test $ac_status = 0; }; then
14541 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
14542 test "x$?" != "x0" && pkg_failed=yes
14543 else
14544 pkg_failed=yes
14545 fi
14546 else
14547 pkg_failed=untried
14548 fi
14549
14550
14551
14552 if test $pkg_failed = yes; then
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554 printf "%s\n" "no" >&6; }
14555
14556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14557 _pkg_short_errors_supported=yes
14558 else
14559 _pkg_short_errors_supported=no
14560 fi
14561 if test $_pkg_short_errors_supported = yes; then
14562 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
14563 else
14564 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
14565 fi
14566 # Put the nasty error message in config.log where it belongs
14567 echo "$LIBFFI_PKG_ERRORS" >&5
14568
14569
14570 save_CFLAGS=$CFLAGS
14571 save_CPPFLAGS=$CPPFLAGS
14572 save_LDFLAGS=$LDFLAGS
14573 save_LIBS=$LIBS
14574
14575
14576 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
14577 LIBS="$LIBS $LIBFFI_LIBS"
14578 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14579 if test "x$ac_cv_header_ffi_h" = xyes
14580 then :
14581
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14583 printf %s "checking for ffi_call in -lffi... " >&6; }
14584 if test ${ac_cv_lib_ffi_ffi_call+y}
14585 then :
14586 printf %s "(cached) " >&6
14587 else $as_nop
14588 ac_check_lib_save_LIBS=$LIBS
14589 LIBS="-lffi $LIBS"
14590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14592
14593 /* Override any GCC internal prototype to avoid an error.
14594 Use char because int might match the return type of a GCC
14595 builtin and then its argument prototype would still apply. */
14596 char ffi_call ();
14597 int
14598 main (void)
14599 {
14600 return ffi_call ();
14601 ;
14602 return 0;
14603 }
14604 _ACEOF
14605 if ac_fn_c_try_link "$LINENO"
14606 then :
14607 ac_cv_lib_ffi_ffi_call=yes
14608 else $as_nop
14609 ac_cv_lib_ffi_ffi_call=no
14610 fi
14611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14612 conftest$ac_exeext conftest.$ac_ext
14613 LIBS=$ac_check_lib_save_LIBS
14614 fi
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14616 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14617 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14618 then :
14619
14620 have_libffi=yes
14621 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
14622 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
14623
14624 else $as_nop
14625 have_libffi=no
14626 fi
14627
14628
14629 fi
14630
14631
14632 CFLAGS=$save_CFLAGS
14633 CPPFLAGS=$save_CPPFLAGS
14634 LDFLAGS=$save_LDFLAGS
14635 LIBS=$save_LIBS
14636
14637
14638
14639 elif test $pkg_failed = untried; then
14640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14641 printf "%s\n" "no" >&6; }
14642
14643 save_CFLAGS=$CFLAGS
14644 save_CPPFLAGS=$CPPFLAGS
14645 save_LDFLAGS=$LDFLAGS
14646 save_LIBS=$LIBS
14647
14648
14649 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
14650 LIBS="$LIBS $LIBFFI_LIBS"
14651 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14652 if test "x$ac_cv_header_ffi_h" = xyes
14653 then :
14654
14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14656 printf %s "checking for ffi_call in -lffi... " >&6; }
14657 if test ${ac_cv_lib_ffi_ffi_call+y}
14658 then :
14659 printf %s "(cached) " >&6
14660 else $as_nop
14661 ac_check_lib_save_LIBS=$LIBS
14662 LIBS="-lffi $LIBS"
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14665
14666 /* Override any GCC internal prototype to avoid an error.
14667 Use char because int might match the return type of a GCC
14668 builtin and then its argument prototype would still apply. */
14669 char ffi_call ();
14670 int
14671 main (void)
14672 {
14673 return ffi_call ();
14674 ;
14675 return 0;
14676 }
14677 _ACEOF
14678 if ac_fn_c_try_link "$LINENO"
14679 then :
14680 ac_cv_lib_ffi_ffi_call=yes
14681 else $as_nop
14682 ac_cv_lib_ffi_ffi_call=no
14683 fi
14684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14685 conftest$ac_exeext conftest.$ac_ext
14686 LIBS=$ac_check_lib_save_LIBS
14687 fi
14688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14689 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14690 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14691 then :
14692
14693 have_libffi=yes
14694 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
14695 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
14696
14697 else $as_nop
14698 have_libffi=no
14699 fi
14700
14701
14702 fi
14703
14704
14705 CFLAGS=$save_CFLAGS
14706 CPPFLAGS=$save_CPPFLAGS
14707 LDFLAGS=$save_LDFLAGS
14708 LIBS=$save_LIBS
14709
14710
14711
14712 else
14713 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
14714 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14716 printf "%s\n" "yes" >&6; }
14717 have_libffi=yes
14718 fi
14719
14720 fi
14721
14722 if test "x$have_libffi" = xyes
14723 then :
14724
14725 ctypes_malloc_closure=no
14726 case $ac_sys_system in #(
14727 Darwin) :
14728
14729 ctypes_malloc_closure=yes
14730 ;; #(
14731 iOS) :
14732
14733 ctypes_malloc_closure=yes
14734 ;; #(
14735 sunos5) :
14736 as_fn_append LIBFFI_LIBS " -mimpure-text"
14737 ;; #(
14738 *) :
14739 ;;
14740 esac
14741 if test "x$ctypes_malloc_closure" = xyes
14742 then :
14743
14744 MODULE__CTYPES_MALLOC_CLOSURE=_ctypes/malloc_closure.c
14745 as_fn_append LIBFFI_CFLAGS " -DUSING_MALLOC_CLOSURE_DOT_C=1"
14746
14747 fi
14748
14749
14750 if test "x$ac_cv_lib_dl_dlopen" = xyes
14751 then :
14752 as_fn_append LIBFFI_LIBS " -ldl"
14753 fi
14754
14755 save_CFLAGS=$CFLAGS
14756 save_CPPFLAGS=$CPPFLAGS
14757 save_LDFLAGS=$LDFLAGS
14758 save_LIBS=$LIBS
14759
14760
14761 CFLAGS="$CFLAGS $LIBFFI_CFLAGS"
14762 LIBS="$LIBS $LIBFFI_LIBS"
14763
14764
14765
14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_cif_var" >&5
14767 printf %s "checking for ffi_prep_cif_var... " >&6; }
14768 if test ${ac_cv_func_ffi_prep_cif_var+y}
14769 then :
14770 printf %s "(cached) " >&6
14771 else $as_nop
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774 #include <ffi.h>
14775 int
14776 main (void)
14777 {
14778 void *x=ffi_prep_cif_var
14779 ;
14780 return 0;
14781 }
14782 _ACEOF
14783 if ac_fn_c_try_compile "$LINENO"
14784 then :
14785 ac_cv_func_ffi_prep_cif_var=yes
14786 else $as_nop
14787 ac_cv_func_ffi_prep_cif_var=no
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14790
14791 fi
14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_cif_var" >&5
14793 printf "%s\n" "$ac_cv_func_ffi_prep_cif_var" >&6; }
14794 if test "x$ac_cv_func_ffi_prep_cif_var" = xyes
14795 then :
14796
14797 printf "%s\n" "#define HAVE_FFI_PREP_CIF_VAR 1" >>confdefs.h
14798
14799 fi
14800
14801
14802
14803
14804
14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_closure_loc" >&5
14806 printf %s "checking for ffi_prep_closure_loc... " >&6; }
14807 if test ${ac_cv_func_ffi_prep_closure_loc+y}
14808 then :
14809 printf %s "(cached) " >&6
14810 else $as_nop
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813 #include <ffi.h>
14814 int
14815 main (void)
14816 {
14817 void *x=ffi_prep_closure_loc
14818 ;
14819 return 0;
14820 }
14821 _ACEOF
14822 if ac_fn_c_try_compile "$LINENO"
14823 then :
14824 ac_cv_func_ffi_prep_closure_loc=yes
14825 else $as_nop
14826 ac_cv_func_ffi_prep_closure_loc=no
14827 fi
14828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14829
14830 fi
14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_closure_loc" >&5
14832 printf "%s\n" "$ac_cv_func_ffi_prep_closure_loc" >&6; }
14833 if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes
14834 then :
14835
14836 printf "%s\n" "#define HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h
14837
14838 fi
14839
14840
14841
14842
14843
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_closure_alloc" >&5
14845 printf %s "checking for ffi_closure_alloc... " >&6; }
14846 if test ${ac_cv_func_ffi_closure_alloc+y}
14847 then :
14848 printf %s "(cached) " >&6
14849 else $as_nop
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h. */
14852 #include <ffi.h>
14853 int
14854 main (void)
14855 {
14856 void *x=ffi_closure_alloc
14857 ;
14858 return 0;
14859 }
14860 _ACEOF
14861 if ac_fn_c_try_compile "$LINENO"
14862 then :
14863 ac_cv_func_ffi_closure_alloc=yes
14864 else $as_nop
14865 ac_cv_func_ffi_closure_alloc=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14868
14869 fi
14870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_closure_alloc" >&5
14871 printf "%s\n" "$ac_cv_func_ffi_closure_alloc" >&6; }
14872 if test "x$ac_cv_func_ffi_closure_alloc" = xyes
14873 then :
14874
14875 printf "%s\n" "#define HAVE_FFI_CLOSURE_ALLOC 1" >>confdefs.h
14876
14877 fi
14878
14879
14880
14881
14882 CFLAGS=$save_CFLAGS
14883 CPPFLAGS=$save_CPPFLAGS
14884 LDFLAGS=$save_LDFLAGS
14885 LIBS=$save_LIBS
14886
14887
14888
14889 fi
14890
14891 # Check for use of the system libmpdec library
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
14893 printf %s "checking for --with-system-libmpdec... " >&6; }
14894
14895 # Check whether --with-system_libmpdec was given.
14896 if test ${with_system_libmpdec+y}
14897 then :
14898 withval=$with_system_libmpdec;
14899 else $as_nop
14900 with_system_libmpdec="yes"
14901 fi
14902
14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
14904 printf "%s\n" "$with_system_libmpdec" >&6; }
14905
14906
14907
14908 if test "x$with_system_libmpdec" = xyes
14909 then :
14910
14911 pkg_failed=no
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpdec >= 2.5.0" >&5
14913 printf %s "checking for libmpdec >= 2.5.0... " >&6; }
14914
14915 if test -n "$LIBMPDEC_CFLAGS"; then
14916 pkg_cv_LIBMPDEC_CFLAGS="$LIBMPDEC_CFLAGS"
14917 elif test -n "$PKG_CONFIG"; then
14918 if test -n "$PKG_CONFIG" && \
14919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5
14920 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5
14921 ac_status=$?
14922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14923 test $ac_status = 0; }; then
14924 pkg_cv_LIBMPDEC_CFLAGS=`$PKG_CONFIG --cflags "libmpdec >= 2.5.0" 2>/dev/null`
14925 test "x$?" != "x0" && pkg_failed=yes
14926 else
14927 pkg_failed=yes
14928 fi
14929 else
14930 pkg_failed=untried
14931 fi
14932 if test -n "$LIBMPDEC_LIBS"; then
14933 pkg_cv_LIBMPDEC_LIBS="$LIBMPDEC_LIBS"
14934 elif test -n "$PKG_CONFIG"; then
14935 if test -n "$PKG_CONFIG" && \
14936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5
14937 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5
14938 ac_status=$?
14939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14940 test $ac_status = 0; }; then
14941 pkg_cv_LIBMPDEC_LIBS=`$PKG_CONFIG --libs "libmpdec >= 2.5.0" 2>/dev/null`
14942 test "x$?" != "x0" && pkg_failed=yes
14943 else
14944 pkg_failed=yes
14945 fi
14946 else
14947 pkg_failed=untried
14948 fi
14949
14950
14951
14952 if test $pkg_failed = yes; then
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14954 printf "%s\n" "no" >&6; }
14955
14956 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14957 _pkg_short_errors_supported=yes
14958 else
14959 _pkg_short_errors_supported=no
14960 fi
14961 if test $_pkg_short_errors_supported = yes; then
14962 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1`
14963 else
14964 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1`
14965 fi
14966 # Put the nasty error message in config.log where it belongs
14967 echo "$LIBMPDEC_PKG_ERRORS" >&5
14968
14969 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
14970 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
14971 LIBMPDEC_INTERNAL=
14972 elif test $pkg_failed = untried; then
14973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14974 printf "%s\n" "no" >&6; }
14975 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
14976 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
14977 LIBMPDEC_INTERNAL=
14978 else
14979 LIBMPDEC_CFLAGS=$pkg_cv_LIBMPDEC_CFLAGS
14980 LIBMPDEC_LIBS=$pkg_cv_LIBMPDEC_LIBS
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14982 printf "%s\n" "yes" >&6; }
14983
14984 fi
14985 else $as_nop
14986 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
14987 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)"
14988 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
14989 have_mpdec=yes
14990 with_system_libmpdec=no
14991 fi
14992
14993 if test "x$with_system_libmpdec" = xyes
14994 then :
14995 save_CFLAGS=$CFLAGS
14996 save_CPPFLAGS=$CPPFLAGS
14997 save_LDFLAGS=$LDFLAGS
14998 save_LIBS=$LIBS
14999
15000
15001 CPPFLAGS="$CPPFLAGS $LIBMPDEC_CFLAGS"
15002 LIBS="$LIBS $LIBMPDEC_LIBS"
15003
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h. */
15006
15007
15008 #include <mpdecimal.h>
15009 #if MPD_VERSION_HEX < 0x02050000
15010 # error "mpdecimal 2.5.0 or higher required"
15011 #endif
15012
15013 int
15014 main (void)
15015 {
15016 const char *x = mpd_version();
15017 ;
15018 return 0;
15019 }
15020 _ACEOF
15021 if ac_fn_c_try_link "$LINENO"
15022 then :
15023 have_mpdec=yes
15024 else $as_nop
15025 have_mpdec=no
15026 fi
15027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15028 conftest$ac_exeext conftest.$ac_ext
15029
15030 CFLAGS=$save_CFLAGS
15031 CPPFLAGS=$save_CPPFLAGS
15032 LDFLAGS=$save_LDFLAGS
15033 LIBS=$save_LIBS
15034
15035
15036 else $as_nop
15037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the bundled copy of libmpdec is scheduled for removal in Python 3.16; consider using a system installed mpdecimal library." >&5
15038 printf "%s\n" "$as_me: WARNING: the bundled copy of libmpdec is scheduled for removal in Python 3.16; consider using a system installed mpdecimal library." >&2;}
15039 fi
15040
15041 if test "$with_system_libmpdec" = "yes" && test "$have_mpdec" = "no"
15042 then :
15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no system libmpdec found; falling back to bundled libmpdec (deprecated and scheduled for removal in Python 3.16)" >&5
15044 printf "%s\n" "$as_me: WARNING: no system libmpdec found; falling back to bundled libmpdec (deprecated and scheduled for removal in Python 3.16)" >&2;}
15045 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
15046 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)"
15047 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
15048 have_mpdec=yes
15049 with_system_libmpdec=no
15050 fi
15051
15052 # Disable forced inlining in debug builds, see GH-94847
15053 if test "x$with_pydebug" = xyes
15054 then :
15055 as_fn_append LIBMPDEC_CFLAGS " -DTEST_COVERAGE"
15056 fi
15057
15058 # Check whether _decimal should use a coroutine-local or thread-local context
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
15060 printf %s "checking for --with-decimal-contextvar... " >&6; }
15061
15062 # Check whether --with-decimal_contextvar was given.
15063 if test ${with_decimal_contextvar+y}
15064 then :
15065 withval=$with_decimal_contextvar;
15066 else $as_nop
15067 with_decimal_contextvar="yes"
15068 fi
15069
15070
15071 if test "$with_decimal_contextvar" != "no"
15072 then
15073
15074 printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
15075
15076 fi
15077
15078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
15079 printf "%s\n" "$with_decimal_contextvar" >&6; }
15080
15081 if test "x$with_system_libmpdec" = xno
15082 then :
15083 # Check for libmpdec machine flavor
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for decimal libmpdec machine" >&5
15085 printf %s "checking for decimal libmpdec machine... " >&6; }
15086 case $ac_sys_system in #(
15087 Darwin*) :
15088 libmpdec_system=Darwin ;; #(
15089 SunOS*) :
15090 libmpdec_system=sunos ;; #(
15091 *) :
15092 libmpdec_system=other
15093 ;;
15094 esac
15095
15096 libmpdec_machine=unknown
15097 if test "$libmpdec_system" = Darwin; then
15098 # universal here means: build libmpdec with the same arch options
15099 # the python interpreter was built with
15100 libmpdec_machine=universal
15101 elif test $ac_cv_sizeof_size_t -eq 8; then
15102 if test "$ac_cv_gcc_asm_for_x64" = yes; then
15103 libmpdec_machine=x64
15104 elif test "$ac_cv_type___uint128_t" = yes; then
15105 libmpdec_machine=uint128
15106 else
15107 libmpdec_machine=ansi64
15108 fi
15109 elif test $ac_cv_sizeof_size_t -eq 4; then
15110 if test "$ac_cv_gcc_asm_for_x87" = yes -a "$libmpdec_system" != sunos; then
15111 case $CC in #(
15112 *gcc*) :
15113 libmpdec_machine=ppro ;; #(
15114 *clang*) :
15115 libmpdec_machine=ppro ;; #(
15116 *) :
15117 libmpdec_machine=ansi32
15118 ;;
15119 esac
15120 else
15121 libmpdec_machine=ansi32
15122 fi
15123 fi
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libmpdec_machine" >&5
15125 printf "%s\n" "$libmpdec_machine" >&6; }
15126
15127 case $libmpdec_machine in #(
15128 x64) :
15129 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DASM=1" ;; #(
15130 uint128) :
15131 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1" ;; #(
15132 ansi64) :
15133 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1" ;; #(
15134 ppro) :
15135 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DASM=1 -Wno-unknown-pragmas" ;; #(
15136 ansi32) :
15137 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1" ;; #(
15138 ansi-legacy) :
15139 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DLEGACY_COMPILER=1" ;; #(
15140 universal) :
15141 as_fn_append LIBMPDEC_CFLAGS " -DUNIVERSAL=1" ;; #(
15142 *) :
15143 as_fn_error $? "_decimal: unsupported architecture" "$LINENO" 5
15144 ;;
15145 esac
15146 fi
15147
15148 if test "$have_ipa_pure_const_bug" = yes; then
15149 # Some versions of gcc miscompile inline asm:
15150 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
15151 # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
15152 as_fn_append LIBMPDEC_CFLAGS " -fno-ipa-pure-const"
15153 fi
15154
15155 if test "$have_glibc_memmove_bug" = yes; then
15156 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
15157 # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
15158 as_fn_append LIBMPDEC_CFLAGS " -U_FORTIFY_SOURCE"
15159 fi
15160
15161
15162
15163
15164
15165
15166
15167
15168 if test "$ac_sys_system" = "Emscripten" -a -z "$LIBSQLITE3_CFLAGS" -a -z "$LIBSQLITE3_LIBS"
15169 then :
15170
15171 LIBSQLITE3_CFLAGS="-sUSE_SQLITE3"
15172 LIBSQLITE3_LIBS="-sUSE_SQLITE3"
15173
15174 fi
15175
15176
15177
15178
15179
15180 pkg_failed=no
15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.15.2" >&5
15182 printf %s "checking for sqlite3 >= 3.15.2... " >&6; }
15183
15184 if test -n "$LIBSQLITE3_CFLAGS"; then
15185 pkg_cv_LIBSQLITE3_CFLAGS="$LIBSQLITE3_CFLAGS"
15186 elif test -n "$PKG_CONFIG"; then
15187 if test -n "$PKG_CONFIG" && \
15188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
15189 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
15190 ac_status=$?
15191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15192 test $ac_status = 0; }; then
15193 pkg_cv_LIBSQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.15.2" 2>/dev/null`
15194 test "x$?" != "x0" && pkg_failed=yes
15195 else
15196 pkg_failed=yes
15197 fi
15198 else
15199 pkg_failed=untried
15200 fi
15201 if test -n "$LIBSQLITE3_LIBS"; then
15202 pkg_cv_LIBSQLITE3_LIBS="$LIBSQLITE3_LIBS"
15203 elif test -n "$PKG_CONFIG"; then
15204 if test -n "$PKG_CONFIG" && \
15205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
15206 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
15207 ac_status=$?
15208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15209 test $ac_status = 0; }; then
15210 pkg_cv_LIBSQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.15.2" 2>/dev/null`
15211 test "x$?" != "x0" && pkg_failed=yes
15212 else
15213 pkg_failed=yes
15214 fi
15215 else
15216 pkg_failed=untried
15217 fi
15218
15219
15220
15221 if test $pkg_failed = yes; then
15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15223 printf "%s\n" "no" >&6; }
15224
15225 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15226 _pkg_short_errors_supported=yes
15227 else
15228 _pkg_short_errors_supported=no
15229 fi
15230 if test $_pkg_short_errors_supported = yes; then
15231 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
15232 else
15233 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
15234 fi
15235 # Put the nasty error message in config.log where it belongs
15236 echo "$LIBSQLITE3_PKG_ERRORS" >&5
15237
15238
15239 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
15240 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
15241
15242
15243 elif test $pkg_failed = untried; then
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245 printf "%s\n" "no" >&6; }
15246
15247 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
15248 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
15249
15250
15251 else
15252 LIBSQLITE3_CFLAGS=$pkg_cv_LIBSQLITE3_CFLAGS
15253 LIBSQLITE3_LIBS=$pkg_cv_LIBSQLITE3_LIBS
15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15255 printf "%s\n" "yes" >&6; }
15256
15257 fi
15258 as_fn_append LIBSQLITE3_CFLAGS ' -I$(srcdir)/Modules/_sqlite'
15259
15260
15261
15262 save_CFLAGS=$CFLAGS
15263 save_CPPFLAGS=$CPPFLAGS
15264 save_LDFLAGS=$LDFLAGS
15265 save_LIBS=$LIBS
15266
15267
15268 CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS"
15269 LIBS="$LIBS $LIBSQLITE3_LIBS"
15270
15271 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
15272 if test "x$ac_cv_header_sqlite3_h" = xyes
15273 then :
15274
15275 have_sqlite3=yes
15276
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15279
15280
15281 #include <sqlite3.h>
15282 #if SQLITE_VERSION_NUMBER < 3015002
15283 # error "SQLite 3.15.2 or higher required"
15284 #endif
15285
15286 int
15287 main (void)
15288 {
15289
15290 ;
15291 return 0;
15292 }
15293
15294 _ACEOF
15295 if ac_fn_c_try_compile "$LINENO"
15296 then :
15297
15298 have_supported_sqlite3=yes
15299
15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_double in -lsqlite3" >&5
15301 printf %s "checking for sqlite3_bind_double in -lsqlite3... " >&6; }
15302 if test ${ac_cv_lib_sqlite3_sqlite3_bind_double+y}
15303 then :
15304 printf %s "(cached) " >&6
15305 else $as_nop
15306 ac_check_lib_save_LIBS=$LIBS
15307 LIBS="-lsqlite3 $LIBS"
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h. */
15310
15311 /* Override any GCC internal prototype to avoid an error.
15312 Use char because int might match the return type of a GCC
15313 builtin and then its argument prototype would still apply. */
15314 char sqlite3_bind_double ();
15315 int
15316 main (void)
15317 {
15318 return sqlite3_bind_double ();
15319 ;
15320 return 0;
15321 }
15322 _ACEOF
15323 if ac_fn_c_try_link "$LINENO"
15324 then :
15325 ac_cv_lib_sqlite3_sqlite3_bind_double=yes
15326 else $as_nop
15327 ac_cv_lib_sqlite3_sqlite3_bind_double=no
15328 fi
15329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15330 conftest$ac_exeext conftest.$ac_ext
15331 LIBS=$ac_check_lib_save_LIBS
15332 fi
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_double" >&5
15334 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_bind_double" >&6; }
15335 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_double" = xyes
15336 then :
15337 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15338
15339 LIBS="-lsqlite3 $LIBS"
15340
15341 else $as_nop
15342
15343 have_supported_sqlite3=no
15344
15345 fi
15346
15347
15348
15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_decltype in -lsqlite3" >&5
15350 printf %s "checking for sqlite3_column_decltype in -lsqlite3... " >&6; }
15351 if test ${ac_cv_lib_sqlite3_sqlite3_column_decltype+y}
15352 then :
15353 printf %s "(cached) " >&6
15354 else $as_nop
15355 ac_check_lib_save_LIBS=$LIBS
15356 LIBS="-lsqlite3 $LIBS"
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359
15360 /* Override any GCC internal prototype to avoid an error.
15361 Use char because int might match the return type of a GCC
15362 builtin and then its argument prototype would still apply. */
15363 char sqlite3_column_decltype ();
15364 int
15365 main (void)
15366 {
15367 return sqlite3_column_decltype ();
15368 ;
15369 return 0;
15370 }
15371 _ACEOF
15372 if ac_fn_c_try_link "$LINENO"
15373 then :
15374 ac_cv_lib_sqlite3_sqlite3_column_decltype=yes
15375 else $as_nop
15376 ac_cv_lib_sqlite3_sqlite3_column_decltype=no
15377 fi
15378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15379 conftest$ac_exeext conftest.$ac_ext
15380 LIBS=$ac_check_lib_save_LIBS
15381 fi
15382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_decltype" >&5
15383 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_decltype" >&6; }
15384 if test "x$ac_cv_lib_sqlite3_sqlite3_column_decltype" = xyes
15385 then :
15386 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15387
15388 LIBS="-lsqlite3 $LIBS"
15389
15390 else $as_nop
15391
15392 have_supported_sqlite3=no
15393
15394 fi
15395
15396
15397
15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_double in -lsqlite3" >&5
15399 printf %s "checking for sqlite3_column_double in -lsqlite3... " >&6; }
15400 if test ${ac_cv_lib_sqlite3_sqlite3_column_double+y}
15401 then :
15402 printf %s "(cached) " >&6
15403 else $as_nop
15404 ac_check_lib_save_LIBS=$LIBS
15405 LIBS="-lsqlite3 $LIBS"
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408
15409 /* Override any GCC internal prototype to avoid an error.
15410 Use char because int might match the return type of a GCC
15411 builtin and then its argument prototype would still apply. */
15412 char sqlite3_column_double ();
15413 int
15414 main (void)
15415 {
15416 return sqlite3_column_double ();
15417 ;
15418 return 0;
15419 }
15420 _ACEOF
15421 if ac_fn_c_try_link "$LINENO"
15422 then :
15423 ac_cv_lib_sqlite3_sqlite3_column_double=yes
15424 else $as_nop
15425 ac_cv_lib_sqlite3_sqlite3_column_double=no
15426 fi
15427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15428 conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15430 fi
15431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_double" >&5
15432 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_double" >&6; }
15433 if test "x$ac_cv_lib_sqlite3_sqlite3_column_double" = xyes
15434 then :
15435 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15436
15437 LIBS="-lsqlite3 $LIBS"
15438
15439 else $as_nop
15440
15441 have_supported_sqlite3=no
15442
15443 fi
15444
15445
15446
15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_complete in -lsqlite3" >&5
15448 printf %s "checking for sqlite3_complete in -lsqlite3... " >&6; }
15449 if test ${ac_cv_lib_sqlite3_sqlite3_complete+y}
15450 then :
15451 printf %s "(cached) " >&6
15452 else $as_nop
15453 ac_check_lib_save_LIBS=$LIBS
15454 LIBS="-lsqlite3 $LIBS"
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457
15458 /* Override any GCC internal prototype to avoid an error.
15459 Use char because int might match the return type of a GCC
15460 builtin and then its argument prototype would still apply. */
15461 char sqlite3_complete ();
15462 int
15463 main (void)
15464 {
15465 return sqlite3_complete ();
15466 ;
15467 return 0;
15468 }
15469 _ACEOF
15470 if ac_fn_c_try_link "$LINENO"
15471 then :
15472 ac_cv_lib_sqlite3_sqlite3_complete=yes
15473 else $as_nop
15474 ac_cv_lib_sqlite3_sqlite3_complete=no
15475 fi
15476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15477 conftest$ac_exeext conftest.$ac_ext
15478 LIBS=$ac_check_lib_save_LIBS
15479 fi
15480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_complete" >&5
15481 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_complete" >&6; }
15482 if test "x$ac_cv_lib_sqlite3_sqlite3_complete" = xyes
15483 then :
15484 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15485
15486 LIBS="-lsqlite3 $LIBS"
15487
15488 else $as_nop
15489
15490 have_supported_sqlite3=no
15491
15492 fi
15493
15494
15495
15496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_progress_handler in -lsqlite3" >&5
15497 printf %s "checking for sqlite3_progress_handler in -lsqlite3... " >&6; }
15498 if test ${ac_cv_lib_sqlite3_sqlite3_progress_handler+y}
15499 then :
15500 printf %s "(cached) " >&6
15501 else $as_nop
15502 ac_check_lib_save_LIBS=$LIBS
15503 LIBS="-lsqlite3 $LIBS"
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15506
15507 /* Override any GCC internal prototype to avoid an error.
15508 Use char because int might match the return type of a GCC
15509 builtin and then its argument prototype would still apply. */
15510 char sqlite3_progress_handler ();
15511 int
15512 main (void)
15513 {
15514 return sqlite3_progress_handler ();
15515 ;
15516 return 0;
15517 }
15518 _ACEOF
15519 if ac_fn_c_try_link "$LINENO"
15520 then :
15521 ac_cv_lib_sqlite3_sqlite3_progress_handler=yes
15522 else $as_nop
15523 ac_cv_lib_sqlite3_sqlite3_progress_handler=no
15524 fi
15525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15526 conftest$ac_exeext conftest.$ac_ext
15527 LIBS=$ac_check_lib_save_LIBS
15528 fi
15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_progress_handler" >&5
15530 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_progress_handler" >&6; }
15531 if test "x$ac_cv_lib_sqlite3_sqlite3_progress_handler" = xyes
15532 then :
15533 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15534
15535 LIBS="-lsqlite3 $LIBS"
15536
15537 else $as_nop
15538
15539 have_supported_sqlite3=no
15540
15541 fi
15542
15543
15544
15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_double in -lsqlite3" >&5
15546 printf %s "checking for sqlite3_result_double in -lsqlite3... " >&6; }
15547 if test ${ac_cv_lib_sqlite3_sqlite3_result_double+y}
15548 then :
15549 printf %s "(cached) " >&6
15550 else $as_nop
15551 ac_check_lib_save_LIBS=$LIBS
15552 LIBS="-lsqlite3 $LIBS"
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555
15556 /* Override any GCC internal prototype to avoid an error.
15557 Use char because int might match the return type of a GCC
15558 builtin and then its argument prototype would still apply. */
15559 char sqlite3_result_double ();
15560 int
15561 main (void)
15562 {
15563 return sqlite3_result_double ();
15564 ;
15565 return 0;
15566 }
15567 _ACEOF
15568 if ac_fn_c_try_link "$LINENO"
15569 then :
15570 ac_cv_lib_sqlite3_sqlite3_result_double=yes
15571 else $as_nop
15572 ac_cv_lib_sqlite3_sqlite3_result_double=no
15573 fi
15574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15575 conftest$ac_exeext conftest.$ac_ext
15576 LIBS=$ac_check_lib_save_LIBS
15577 fi
15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_double" >&5
15579 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_result_double" >&6; }
15580 if test "x$ac_cv_lib_sqlite3_sqlite3_result_double" = xyes
15581 then :
15582 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15583
15584 LIBS="-lsqlite3 $LIBS"
15585
15586 else $as_nop
15587
15588 have_supported_sqlite3=no
15589
15590 fi
15591
15592
15593
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_set_authorizer in -lsqlite3" >&5
15595 printf %s "checking for sqlite3_set_authorizer in -lsqlite3... " >&6; }
15596 if test ${ac_cv_lib_sqlite3_sqlite3_set_authorizer+y}
15597 then :
15598 printf %s "(cached) " >&6
15599 else $as_nop
15600 ac_check_lib_save_LIBS=$LIBS
15601 LIBS="-lsqlite3 $LIBS"
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15604
15605 /* Override any GCC internal prototype to avoid an error.
15606 Use char because int might match the return type of a GCC
15607 builtin and then its argument prototype would still apply. */
15608 char sqlite3_set_authorizer ();
15609 int
15610 main (void)
15611 {
15612 return sqlite3_set_authorizer ();
15613 ;
15614 return 0;
15615 }
15616 _ACEOF
15617 if ac_fn_c_try_link "$LINENO"
15618 then :
15619 ac_cv_lib_sqlite3_sqlite3_set_authorizer=yes
15620 else $as_nop
15621 ac_cv_lib_sqlite3_sqlite3_set_authorizer=no
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15624 conftest$ac_exeext conftest.$ac_ext
15625 LIBS=$ac_check_lib_save_LIBS
15626 fi
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&5
15628 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&6; }
15629 if test "x$ac_cv_lib_sqlite3_sqlite3_set_authorizer" = xyes
15630 then :
15631 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15632
15633 LIBS="-lsqlite3 $LIBS"
15634
15635 else $as_nop
15636
15637 have_supported_sqlite3=no
15638
15639 fi
15640
15641
15642
15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace_v2 in -lsqlite3" >&5
15644 printf %s "checking for sqlite3_trace_v2 in -lsqlite3... " >&6; }
15645 if test ${ac_cv_lib_sqlite3_sqlite3_trace_v2+y}
15646 then :
15647 printf %s "(cached) " >&6
15648 else $as_nop
15649 ac_check_lib_save_LIBS=$LIBS
15650 LIBS="-lsqlite3 $LIBS"
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653
15654 /* Override any GCC internal prototype to avoid an error.
15655 Use char because int might match the return type of a GCC
15656 builtin and then its argument prototype would still apply. */
15657 char sqlite3_trace_v2 ();
15658 int
15659 main (void)
15660 {
15661 return sqlite3_trace_v2 ();
15662 ;
15663 return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_link "$LINENO"
15667 then :
15668 ac_cv_lib_sqlite3_sqlite3_trace_v2=yes
15669 else $as_nop
15670 ac_cv_lib_sqlite3_sqlite3_trace_v2=no
15671 fi
15672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15673 conftest$ac_exeext conftest.$ac_ext
15674 LIBS=$ac_check_lib_save_LIBS
15675 fi
15676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace_v2" >&5
15677 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace_v2" >&6; }
15678 if test "x$ac_cv_lib_sqlite3_sqlite3_trace_v2" = xyes
15679 then :
15680 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15681
15682 LIBS="-lsqlite3 $LIBS"
15683
15684 else $as_nop
15685
15686
15687
15688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace in -lsqlite3" >&5
15689 printf %s "checking for sqlite3_trace in -lsqlite3... " >&6; }
15690 if test ${ac_cv_lib_sqlite3_sqlite3_trace+y}
15691 then :
15692 printf %s "(cached) " >&6
15693 else $as_nop
15694 ac_check_lib_save_LIBS=$LIBS
15695 LIBS="-lsqlite3 $LIBS"
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15698
15699 /* Override any GCC internal prototype to avoid an error.
15700 Use char because int might match the return type of a GCC
15701 builtin and then its argument prototype would still apply. */
15702 char sqlite3_trace ();
15703 int
15704 main (void)
15705 {
15706 return sqlite3_trace ();
15707 ;
15708 return 0;
15709 }
15710 _ACEOF
15711 if ac_fn_c_try_link "$LINENO"
15712 then :
15713 ac_cv_lib_sqlite3_sqlite3_trace=yes
15714 else $as_nop
15715 ac_cv_lib_sqlite3_sqlite3_trace=no
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15718 conftest$ac_exeext conftest.$ac_ext
15719 LIBS=$ac_check_lib_save_LIBS
15720 fi
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace" >&5
15722 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace" >&6; }
15723 if test "x$ac_cv_lib_sqlite3_sqlite3_trace" = xyes
15724 then :
15725 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15726
15727 LIBS="-lsqlite3 $LIBS"
15728
15729 else $as_nop
15730
15731 have_supported_sqlite3=no
15732
15733 fi
15734
15735
15736
15737
15738 fi
15739
15740
15741
15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_value_double in -lsqlite3" >&5
15743 printf %s "checking for sqlite3_value_double in -lsqlite3... " >&6; }
15744 if test ${ac_cv_lib_sqlite3_sqlite3_value_double+y}
15745 then :
15746 printf %s "(cached) " >&6
15747 else $as_nop
15748 ac_check_lib_save_LIBS=$LIBS
15749 LIBS="-lsqlite3 $LIBS"
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752
15753 /* Override any GCC internal prototype to avoid an error.
15754 Use char because int might match the return type of a GCC
15755 builtin and then its argument prototype would still apply. */
15756 char sqlite3_value_double ();
15757 int
15758 main (void)
15759 {
15760 return sqlite3_value_double ();
15761 ;
15762 return 0;
15763 }
15764 _ACEOF
15765 if ac_fn_c_try_link "$LINENO"
15766 then :
15767 ac_cv_lib_sqlite3_sqlite3_value_double=yes
15768 else $as_nop
15769 ac_cv_lib_sqlite3_sqlite3_value_double=no
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15772 conftest$ac_exeext conftest.$ac_ext
15773 LIBS=$ac_check_lib_save_LIBS
15774 fi
15775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_value_double" >&5
15776 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_value_double" >&6; }
15777 if test "x$ac_cv_lib_sqlite3_sqlite3_value_double" = xyes
15778 then :
15779 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15780
15781 LIBS="-lsqlite3 $LIBS"
15782
15783 else $as_nop
15784
15785 have_supported_sqlite3=no
15786
15787 fi
15788
15789
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
15791 printf %s "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
15792 if test ${ac_cv_lib_sqlite3_sqlite3_load_extension+y}
15793 then :
15794 printf %s "(cached) " >&6
15795 else $as_nop
15796 ac_check_lib_save_LIBS=$LIBS
15797 LIBS="-lsqlite3 $LIBS"
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800
15801 /* Override any GCC internal prototype to avoid an error.
15802 Use char because int might match the return type of a GCC
15803 builtin and then its argument prototype would still apply. */
15804 char sqlite3_load_extension ();
15805 int
15806 main (void)
15807 {
15808 return sqlite3_load_extension ();
15809 ;
15810 return 0;
15811 }
15812 _ACEOF
15813 if ac_fn_c_try_link "$LINENO"
15814 then :
15815 ac_cv_lib_sqlite3_sqlite3_load_extension=yes
15816 else $as_nop
15817 ac_cv_lib_sqlite3_sqlite3_load_extension=no
15818 fi
15819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15820 conftest$ac_exeext conftest.$ac_ext
15821 LIBS=$ac_check_lib_save_LIBS
15822 fi
15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
15824 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
15825 if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes
15826 then :
15827 have_sqlite3_load_extension=yes
15828 else $as_nop
15829 have_sqlite3_load_extension=no
15830
15831 fi
15832
15833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_serialize in -lsqlite3" >&5
15834 printf %s "checking for sqlite3_serialize in -lsqlite3... " >&6; }
15835 if test ${ac_cv_lib_sqlite3_sqlite3_serialize+y}
15836 then :
15837 printf %s "(cached) " >&6
15838 else $as_nop
15839 ac_check_lib_save_LIBS=$LIBS
15840 LIBS="-lsqlite3 $LIBS"
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843
15844 /* Override any GCC internal prototype to avoid an error.
15845 Use char because int might match the return type of a GCC
15846 builtin and then its argument prototype would still apply. */
15847 char sqlite3_serialize ();
15848 int
15849 main (void)
15850 {
15851 return sqlite3_serialize ();
15852 ;
15853 return 0;
15854 }
15855 _ACEOF
15856 if ac_fn_c_try_link "$LINENO"
15857 then :
15858 ac_cv_lib_sqlite3_sqlite3_serialize=yes
15859 else $as_nop
15860 ac_cv_lib_sqlite3_sqlite3_serialize=no
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15863 conftest$ac_exeext conftest.$ac_ext
15864 LIBS=$ac_check_lib_save_LIBS
15865 fi
15866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_serialize" >&5
15867 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_serialize" >&6; }
15868 if test "x$ac_cv_lib_sqlite3_sqlite3_serialize" = xyes
15869 then :
15870
15871
15872 printf "%s\n" "#define PY_SQLITE_HAVE_SERIALIZE 1" >>confdefs.h
15873
15874
15875 fi
15876
15877
15878 else $as_nop
15879
15880 have_supported_sqlite3=no
15881
15882 fi
15883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15884
15885 fi
15886
15887
15888 CFLAGS=$save_CFLAGS
15889 CPPFLAGS=$save_CPPFLAGS
15890 LDFLAGS=$save_LDFLAGS
15891 LIBS=$save_LIBS
15892
15893
15894
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
15896 printf %s "checking for --enable-loadable-sqlite-extensions... " >&6; }
15897 # Check whether --enable-loadable-sqlite-extensions was given.
15898 if test ${enable_loadable_sqlite_extensions+y}
15899 then :
15900 enableval=$enable_loadable_sqlite_extensions;
15901 if test "x$have_sqlite3_load_extension" = xno
15902 then :
15903
15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5
15905 printf "%s\n" "n/a" >&6; }
15906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of SQLite does not support loadable extensions" >&5
15907 printf "%s\n" "$as_me: WARNING: Your version of SQLite does not support loadable extensions" >&2;}
15908
15909 else $as_nop
15910
15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15912 printf "%s\n" "yes" >&6; }
15913
15914 printf "%s\n" "#define PY_SQLITE_ENABLE_LOAD_EXTENSION 1" >>confdefs.h
15915
15916
15917 fi
15918
15919 else $as_nop
15920
15921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 printf "%s\n" "no" >&6; }
15923
15924
15925 fi
15926
15927
15928 found_tcltk=no
15929 for _QUERY in \
15930 "tcl >= 8.5.12 tk >= 8.5.12" \
15931 "tcl8.6 tk8.6" \
15932 "tcl86 tk86" \
15933 "tcl8.5 >= 8.5.12 tk8.5 >= 8.5.12" \
15934 "tcl85 >= 8.5.12 tk85 >= 8.5.12" \
15935 ; do
15936 if test -n "$PKG_CONFIG" && \
15937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
15938 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
15939 ac_status=$?
15940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15941 test $ac_status = 0; }; then
15942
15943
15944 pkg_failed=no
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $_QUERY" >&5
15946 printf %s "checking for $_QUERY... " >&6; }
15947
15948 if test -n "$TCLTK_CFLAGS"; then
15949 pkg_cv_TCLTK_CFLAGS="$TCLTK_CFLAGS"
15950 elif test -n "$PKG_CONFIG"; then
15951 if test -n "$PKG_CONFIG" && \
15952 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
15953 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
15954 ac_status=$?
15955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15956 test $ac_status = 0; }; then
15957 pkg_cv_TCLTK_CFLAGS=`$PKG_CONFIG --cflags "$_QUERY" 2>/dev/null`
15958 test "x$?" != "x0" && pkg_failed=yes
15959 else
15960 pkg_failed=yes
15961 fi
15962 else
15963 pkg_failed=untried
15964 fi
15965 if test -n "$TCLTK_LIBS"; then
15966 pkg_cv_TCLTK_LIBS="$TCLTK_LIBS"
15967 elif test -n "$PKG_CONFIG"; then
15968 if test -n "$PKG_CONFIG" && \
15969 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
15970 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
15971 ac_status=$?
15972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15973 test $ac_status = 0; }; then
15974 pkg_cv_TCLTK_LIBS=`$PKG_CONFIG --libs "$_QUERY" 2>/dev/null`
15975 test "x$?" != "x0" && pkg_failed=yes
15976 else
15977 pkg_failed=yes
15978 fi
15979 else
15980 pkg_failed=untried
15981 fi
15982
15983
15984
15985 if test $pkg_failed = yes; then
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987 printf "%s\n" "no" >&6; }
15988
15989 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15990 _pkg_short_errors_supported=yes
15991 else
15992 _pkg_short_errors_supported=no
15993 fi
15994 if test $_pkg_short_errors_supported = yes; then
15995 TCLTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$_QUERY" 2>&1`
15996 else
15997 TCLTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$_QUERY" 2>&1`
15998 fi
15999 # Put the nasty error message in config.log where it belongs
16000 echo "$TCLTK_PKG_ERRORS" >&5
16001
16002 found_tcltk=no
16003 elif test $pkg_failed = untried; then
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005 printf "%s\n" "no" >&6; }
16006 found_tcltk=no
16007 else
16008 TCLTK_CFLAGS=$pkg_cv_TCLTK_CFLAGS
16009 TCLTK_LIBS=$pkg_cv_TCLTK_LIBS
16010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16011 printf "%s\n" "yes" >&6; }
16012 found_tcltk=yes
16013 fi
16014
16015 fi
16016 if test "x$found_tcltk" = xyes
16017 then :
16018 break
16019 fi
16020 done
16021
16022 if test "x$found_tcltk" = xno
16023 then :
16024
16025 TCLTK_CFLAGS=${TCLTK_CFLAGS-""}
16026 TCLTK_LIBS=${TCLTK_LIBS-""}
16027
16028 fi
16029
16030 case $ac_sys_system in #(
16031 FreeBSD*) :
16032
16033 if test -n "$PKG_CONFIG" && \
16034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16035 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16036 ac_status=$?
16037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16038 test $ac_status = 0; }; then
16039
16040
16041 pkg_failed=no
16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
16043 printf %s "checking for x11... " >&6; }
16044
16045 if test -n "$X11_CFLAGS"; then
16046 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
16047 elif test -n "$PKG_CONFIG"; then
16048 if test -n "$PKG_CONFIG" && \
16049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16050 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16051 ac_status=$?
16052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16053 test $ac_status = 0; }; then
16054 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
16055 test "x$?" != "x0" && pkg_failed=yes
16056 else
16057 pkg_failed=yes
16058 fi
16059 else
16060 pkg_failed=untried
16061 fi
16062 if test -n "$X11_LIBS"; then
16063 pkg_cv_X11_LIBS="$X11_LIBS"
16064 elif test -n "$PKG_CONFIG"; then
16065 if test -n "$PKG_CONFIG" && \
16066 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16067 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16068 ac_status=$?
16069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16070 test $ac_status = 0; }; then
16071 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
16072 test "x$?" != "x0" && pkg_failed=yes
16073 else
16074 pkg_failed=yes
16075 fi
16076 else
16077 pkg_failed=untried
16078 fi
16079
16080
16081
16082 if test $pkg_failed = yes; then
16083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16084 printf "%s\n" "no" >&6; }
16085
16086 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16087 _pkg_short_errors_supported=yes
16088 else
16089 _pkg_short_errors_supported=no
16090 fi
16091 if test $_pkg_short_errors_supported = yes; then
16092 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
16093 else
16094 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
16095 fi
16096 # Put the nasty error message in config.log where it belongs
16097 echo "$X11_PKG_ERRORS" >&5
16098
16099 as_fn_error $? "Package requirements (x11) were not met:
16100
16101 $X11_PKG_ERRORS
16102
16103 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16104 installed software in a non-standard prefix.
16105
16106 Alternatively, you may set the environment variables X11_CFLAGS
16107 and X11_LIBS to avoid the need to call pkg-config.
16108 See the pkg-config man page for more details." "$LINENO" 5
16109 elif test $pkg_failed = untried; then
16110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 printf "%s\n" "no" >&6; }
16112 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16113 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16114 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16115 is in your PATH or set the PKG_CONFIG environment variable to the full
16116 path to pkg-config.
16117
16118 Alternatively, you may set the environment variables X11_CFLAGS
16119 and X11_LIBS to avoid the need to call pkg-config.
16120 See the pkg-config man page for more details.
16121
16122 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16123 See \`config.log' for more details" "$LINENO" 5; }
16124 else
16125 X11_CFLAGS=$pkg_cv_X11_CFLAGS
16126 X11_LIBS=$pkg_cv_X11_LIBS
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16128 printf "%s\n" "yes" >&6; }
16129
16130 TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS"
16131 TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS"
16132
16133 fi
16134
16135 fi
16136
16137 ;; #(
16138 *) :
16139 ;;
16140 esac
16141
16142 save_CFLAGS=$CFLAGS
16143 save_CPPFLAGS=$CPPFLAGS
16144 save_LDFLAGS=$LDFLAGS
16145 save_LIBS=$LIBS
16146
16147
16148 CPPFLAGS="$CPPFLAGS $TCLTK_CFLAGS"
16149 LIBS="$LIBS $TCLTK_LIBS"
16150
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153
16154
16155 #include <tcl.h>
16156 #include <tk.h>
16157 #if defined(TK_HEX_VERSION)
16158 # if TK_HEX_VERSION < 0x0805020c
16159 # error "Tk older than 8.5.12 not supported"
16160 # endif
16161 #endif
16162 #if (TCL_MAJOR_VERSION < 8) || \
16163 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 5)) || \
16164 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION == 5) && (TCL_RELEASE_SERIAL < 12))
16165 # error "Tcl older than 8.5.12 not supported"
16166 #endif
16167 #if (TK_MAJOR_VERSION < 8) || \
16168 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION < 5)) || \
16169 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION == 5) && (TK_RELEASE_SERIAL < 12))
16170 # error "Tk older than 8.5.12 not supported"
16171 #endif
16172
16173 int
16174 main (void)
16175 {
16176
16177 void *x1 = Tcl_Init;
16178 void *x2 = Tk_Init;
16179
16180 ;
16181 return 0;
16182 }
16183
16184 _ACEOF
16185 if ac_fn_c_try_link "$LINENO"
16186 then :
16187
16188 have_tcltk=yes
16189 as_fn_append TCLTK_CFLAGS " -Wno-strict-prototypes -DWITH_APPINIT=1"
16190
16191 else $as_nop
16192
16193 have_tcltk=no
16194
16195 fi
16196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16197 conftest$ac_exeext conftest.$ac_ext
16198
16199 CFLAGS=$save_CFLAGS
16200 CPPFLAGS=$save_CPPFLAGS
16201 LDFLAGS=$save_LDFLAGS
16202 LIBS=$save_LIBS
16203
16204
16205
16206
16207
16208 save_CFLAGS=$CFLAGS
16209 save_CPPFLAGS=$CPPFLAGS
16210 save_LDFLAGS=$LDFLAGS
16211 save_LIBS=$LIBS
16212
16213
16214 CPPFLAGS="$CPPFLAGS $GDBM_CFLAGS"
16215 LIBS="$LIBS $GDBM_LIBS"
16216 for ac_header in gdbm.h
16217 do :
16218 ac_fn_c_check_header_compile "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
16219 if test "x$ac_cv_header_gdbm_h" = xyes
16220 then :
16221 printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h
16222
16223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
16224 printf %s "checking for gdbm_open in -lgdbm... " >&6; }
16225 if test ${ac_cv_lib_gdbm_gdbm_open+y}
16226 then :
16227 printf %s "(cached) " >&6
16228 else $as_nop
16229 ac_check_lib_save_LIBS=$LIBS
16230 LIBS="-lgdbm $LIBS"
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233
16234 /* Override any GCC internal prototype to avoid an error.
16235 Use char because int might match the return type of a GCC
16236 builtin and then its argument prototype would still apply. */
16237 char gdbm_open ();
16238 int
16239 main (void)
16240 {
16241 return gdbm_open ();
16242 ;
16243 return 0;
16244 }
16245 _ACEOF
16246 if ac_fn_c_try_link "$LINENO"
16247 then :
16248 ac_cv_lib_gdbm_gdbm_open=yes
16249 else $as_nop
16250 ac_cv_lib_gdbm_gdbm_open=no
16251 fi
16252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16253 conftest$ac_exeext conftest.$ac_ext
16254 LIBS=$ac_check_lib_save_LIBS
16255 fi
16256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
16257 printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; }
16258 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes
16259 then :
16260
16261 have_gdbm=yes
16262 GDBM_LIBS=${GDBM_LIBS-"-lgdbm"}
16263
16264 else $as_nop
16265 have_gdbm=no
16266 fi
16267
16268
16269 else $as_nop
16270 have_gdbm=no
16271 fi
16272
16273 done
16274
16275 CFLAGS=$save_CFLAGS
16276 CPPFLAGS=$save_CPPFLAGS
16277 LDFLAGS=$save_LDFLAGS
16278 LIBS=$save_LIBS
16279
16280
16281
16282 for ac_header in ndbm.h
16283 do :
16284 ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
16285 if test "x$ac_cv_header_ndbm_h" = xyes
16286 then :
16287 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h
16288
16289 save_CFLAGS=$CFLAGS
16290 save_CPPFLAGS=$CPPFLAGS
16291 save_LDFLAGS=$LDFLAGS
16292 save_LIBS=$LIBS
16293
16294
16295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
16296 printf %s "checking for library containing dbm_open... " >&6; }
16297 if test ${ac_cv_search_dbm_open+y}
16298 then :
16299 printf %s "(cached) " >&6
16300 else $as_nop
16301 ac_func_search_save_LIBS=$LIBS
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304
16305 /* Override any GCC internal prototype to avoid an error.
16306 Use char because int might match the return type of a GCC
16307 builtin and then its argument prototype would still apply. */
16308 char dbm_open ();
16309 int
16310 main (void)
16311 {
16312 return dbm_open ();
16313 ;
16314 return 0;
16315 }
16316 _ACEOF
16317 for ac_lib in '' ndbm gdbm_compat
16318 do
16319 if test -z "$ac_lib"; then
16320 ac_res="none required"
16321 else
16322 ac_res=-l$ac_lib
16323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16324 fi
16325 if ac_fn_c_try_link "$LINENO"
16326 then :
16327 ac_cv_search_dbm_open=$ac_res
16328 fi
16329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16330 conftest$ac_exeext
16331 if test ${ac_cv_search_dbm_open+y}
16332 then :
16333 break
16334 fi
16335 done
16336 if test ${ac_cv_search_dbm_open+y}
16337 then :
16338
16339 else $as_nop
16340 ac_cv_search_dbm_open=no
16341 fi
16342 rm conftest.$ac_ext
16343 LIBS=$ac_func_search_save_LIBS
16344 fi
16345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
16346 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
16347 ac_res=$ac_cv_search_dbm_open
16348 if test "$ac_res" != no
16349 then :
16350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16351
16352 fi
16353
16354
16355 CFLAGS=$save_CFLAGS
16356 CPPFLAGS=$save_CPPFLAGS
16357 LDFLAGS=$save_LDFLAGS
16358 LIBS=$save_LIBS
16359
16360
16361
16362 fi
16363
16364 done
16365
16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ndbm presence and linker args" >&5
16367 printf %s "checking for ndbm presence and linker args... " >&6; }
16368 case $ac_cv_search_dbm_open in #(
16369 *ndbm*|*gdbm_compat*) :
16370
16371 dbm_ndbm="$ac_cv_search_dbm_open"
16372 have_ndbm=yes
16373 ;; #(
16374 none*) :
16375
16376 dbm_ndbm=""
16377 have_ndbm=yes
16378 ;; #(
16379 no) :
16380 have_ndbm=no
16381 ;; #(
16382 *) :
16383 ;;
16384 esac
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ndbm ($dbm_ndbm)" >&5
16386 printf "%s\n" "$have_ndbm ($dbm_ndbm)" >&6; }
16387
16388 { ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
16389 if test ${ac_cv_header_gdbm_slash_ndbm_h+y}
16390 then :
16391 printf %s "(cached) " >&6
16392 else $as_nop
16393
16394 ac_fn_c_check_header_compile "$LINENO" "gdbm/ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
16395 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
16396 then :
16397 ac_cv_header_gdbm_slash_ndbm_h=yes
16398 else $as_nop
16399 ac_cv_header_gdbm_slash_ndbm_h=no
16400
16401 fi
16402
16403
16404 fi
16405
16406 if test "x$ac_cv_header_gdbm_slash_ndbm_h" = xyes
16407 then :
16408
16409
16410 printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h
16411
16412
16413 fi
16414
16415 { ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
16416 if test ${ac_cv_header_gdbm_dash_ndbm_h+y}
16417 then :
16418 printf %s "(cached) " >&6
16419 else $as_nop
16420
16421 ac_fn_c_check_header_compile "$LINENO" "gdbm-ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
16422 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
16423 then :
16424 ac_cv_header_gdbm_dash_ndbm_h=yes
16425 else $as_nop
16426 ac_cv_header_gdbm_dash_ndbm_h=no
16427
16428 fi
16429
16430
16431 fi
16432
16433 if test "x$ac_cv_header_gdbm_dash_ndbm_h" = xyes
16434 then :
16435
16436
16437 printf "%s\n" "#define HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h
16438
16439
16440 fi
16441 { ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
16442
16443 if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then
16444 { ac_cv_search_dbm_open=; unset ac_cv_search_dbm_open;}
16445 save_CFLAGS=$CFLAGS
16446 save_CPPFLAGS=$CPPFLAGS
16447 save_LDFLAGS=$LDFLAGS
16448 save_LIBS=$LIBS
16449
16450
16451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
16452 printf %s "checking for library containing dbm_open... " >&6; }
16453 if test ${ac_cv_search_dbm_open+y}
16454 then :
16455 printf %s "(cached) " >&6
16456 else $as_nop
16457 ac_func_search_save_LIBS=$LIBS
16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h. */
16460
16461 /* Override any GCC internal prototype to avoid an error.
16462 Use char because int might match the return type of a GCC
16463 builtin and then its argument prototype would still apply. */
16464 char dbm_open ();
16465 int
16466 main (void)
16467 {
16468 return dbm_open ();
16469 ;
16470 return 0;
16471 }
16472 _ACEOF
16473 for ac_lib in '' gdbm_compat
16474 do
16475 if test -z "$ac_lib"; then
16476 ac_res="none required"
16477 else
16478 ac_res=-l$ac_lib
16479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16480 fi
16481 if ac_fn_c_try_link "$LINENO"
16482 then :
16483 ac_cv_search_dbm_open=$ac_res
16484 fi
16485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16486 conftest$ac_exeext
16487 if test ${ac_cv_search_dbm_open+y}
16488 then :
16489 break
16490 fi
16491 done
16492 if test ${ac_cv_search_dbm_open+y}
16493 then :
16494
16495 else $as_nop
16496 ac_cv_search_dbm_open=no
16497 fi
16498 rm conftest.$ac_ext
16499 LIBS=$ac_func_search_save_LIBS
16500 fi
16501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
16502 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
16503 ac_res=$ac_cv_search_dbm_open
16504 if test "$ac_res" != no
16505 then :
16506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16507 have_gdbm_compat=yes
16508 else $as_nop
16509 have_gdbm_compat=no
16510 fi
16511
16512
16513 CFLAGS=$save_CFLAGS
16514 CPPFLAGS=$save_CPPFLAGS
16515 LDFLAGS=$save_LDFLAGS
16516 LIBS=$save_LIBS
16517
16518
16519 fi
16520
16521 # Check for libdb >= 5 with dbm_open()
16522 # db.h re-defines the name of the function
16523 for ac_header in db.h
16524 do :
16525 ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
16526 if test "x$ac_cv_header_db_h" = xyes
16527 then :
16528 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h
16529
16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5
16531 printf %s "checking for libdb... " >&6; }
16532 if test ${ac_cv_have_libdb+y}
16533 then :
16534 printf %s "(cached) " >&6
16535 else $as_nop
16536
16537 save_CFLAGS=$CFLAGS
16538 save_CPPFLAGS=$CPPFLAGS
16539 save_LDFLAGS=$LDFLAGS
16540 save_LIBS=$LIBS
16541
16542
16543 LIBS="$LIBS -ldb"
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546
16547 #define DB_DBM_HSEARCH 1
16548 #include <db.h>
16549 #if DB_VERSION_MAJOR < 5
16550 #error "dh.h: DB_VERSION_MAJOR < 5 is not supported."
16551 #endif
16552
16553 int
16554 main (void)
16555 {
16556 DBM *dbm = dbm_open(NULL, 0, 0)
16557 ;
16558 return 0;
16559 }
16560
16561 _ACEOF
16562 if ac_fn_c_try_link "$LINENO"
16563 then :
16564 ac_cv_have_libdb=yes
16565 else $as_nop
16566 ac_cv_have_libdb=no
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16569 conftest$ac_exeext conftest.$ac_ext
16570
16571 CFLAGS=$save_CFLAGS
16572 CPPFLAGS=$save_CPPFLAGS
16573 LDFLAGS=$save_LDFLAGS
16574 LIBS=$save_LIBS
16575
16576
16577
16578 fi
16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libdb" >&5
16580 printf "%s\n" "$ac_cv_have_libdb" >&6; }
16581 if test "x$ac_cv_have_libdb" = xyes
16582 then :
16583
16584
16585 printf "%s\n" "#define HAVE_LIBDB 1" >>confdefs.h
16586
16587
16588 fi
16589
16590 fi
16591
16592 done
16593
16594 # Check for --with-dbmliborder
16595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
16596 printf %s "checking for --with-dbmliborder... " >&6; }
16597
16598 # Check whether --with-dbmliborder was given.
16599 if test ${with_dbmliborder+y}
16600 then :
16601 withval=$with_dbmliborder;
16602 else $as_nop
16603 with_dbmliborder=gdbm:ndbm:bdb
16604 fi
16605
16606
16607 have_gdbm_dbmliborder=no
16608 as_save_IFS=$IFS
16609 IFS=:
16610 for db in $with_dbmliborder; do
16611 case $db in #(
16612 ndbm) :
16613 ;; #(
16614 gdbm) :
16615 have_gdbm_dbmliborder=yes ;; #(
16616 bdb) :
16617 ;; #(
16618 *) :
16619 with_dbmliborder=error
16620 ;;
16621 esac
16622 done
16623 IFS=$as_save_IFS
16624 if test "x$with_dbmliborder" = xerror
16625 then :
16626
16627 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:... (gdbm:ndbm:bdb)" "$LINENO" 5
16628
16629 fi
16630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
16631 printf "%s\n" "$with_dbmliborder" >&6; }
16632
16633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dbm module CFLAGS and LIBS" >&5
16634 printf %s "checking for _dbm module CFLAGS and LIBS... " >&6; }
16635 have_dbm=no
16636 as_save_IFS=$IFS
16637 IFS=:
16638 for db in $with_dbmliborder; do
16639 case "$db" in
16640 ndbm)
16641 if test "$have_ndbm" = yes; then
16642 DBM_CFLAGS="-DUSE_NDBM"
16643 DBM_LIBS="$dbm_ndbm"
16644 have_dbm=yes
16645 break
16646 fi
16647 ;;
16648 gdbm)
16649 if test "$have_gdbm_compat" = yes; then
16650 DBM_CFLAGS="-DUSE_GDBM_COMPAT"
16651 DBM_LIBS="-lgdbm_compat"
16652 have_dbm=yes
16653 break
16654 fi
16655 ;;
16656 bdb)
16657 if test "$ac_cv_have_libdb" = yes; then
16658 DBM_CFLAGS="-DUSE_BERKDB"
16659 DBM_LIBS="-ldb"
16660 have_dbm=yes
16661 break
16662 fi
16663 ;;
16664 esac
16665 done
16666 IFS=$as_save_IFS
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DBM_CFLAGS $DBM_LIBS" >&5
16668 printf "%s\n" "$DBM_CFLAGS $DBM_LIBS" >&6; }
16669
16670 # Templates for things AC_DEFINEd more than once.
16671 # For a single AC_DEFINE, no template is needed.
16672
16673
16674 if test "$ac_cv_pthread_is_default" = yes
16675 then
16676 # Defining _REENTRANT on system with POSIX threads should not hurt.
16677 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
16678
16679 posix_threads=yes
16680 if test "$ac_sys_system" = "SunOS"; then
16681 CFLAGS="$CFLAGS -D_REENTRANT"
16682 fi
16683 elif test "$ac_cv_kpthread" = "yes"
16684 then
16685 CC="$CC -Kpthread"
16686 if test "$ac_cv_cxx_thread" = "yes"; then
16687 CXX="$CXX -Kpthread"
16688 fi
16689 posix_threads=yes
16690 elif test "$ac_cv_kthread" = "yes"
16691 then
16692 CC="$CC -Kthread"
16693 if test "$ac_cv_cxx_thread" = "yes"; then
16694 CXX="$CXX -Kthread"
16695 fi
16696 posix_threads=yes
16697 elif test "$ac_cv_pthread" = "yes"
16698 then
16699 CC="$CC -pthread"
16700 if test "$ac_cv_cxx_thread" = "yes"; then
16701 CXX="$CXX -pthread"
16702 fi
16703 posix_threads=yes
16704 else
16705 if test ! -z "$withval" -a -d "$withval"
16706 then LDFLAGS="$LDFLAGS -L$withval"
16707 fi
16708
16709 # According to the POSIX spec, a pthreads implementation must
16710 # define _POSIX_THREADS in unistd.h. Some apparently don't
16711 # (e.g. gnu pth with pthread emulation)
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
16713 printf %s "checking for _POSIX_THREADS in unistd.h... " >&6; }
16714
16715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS defined in unistd.h" >&5
16716 printf %s "checking for _POSIX_THREADS defined in unistd.h... " >&6; }
16717 if test ${ac_cv_defined__POSIX_THREADS_unistd_h+y}
16718 then :
16719 printf %s "(cached) " >&6
16720 else $as_nop
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 #include <unistd.h>
16724 int
16725 main (void)
16726 {
16727
16728 #ifdef _POSIX_THREADS
16729 int ok;
16730 (void)ok;
16731 #else
16732 choke me
16733 #endif
16734
16735 ;
16736 return 0;
16737 }
16738 _ACEOF
16739 if ac_fn_c_try_compile "$LINENO"
16740 then :
16741 ac_cv_defined__POSIX_THREADS_unistd_h=yes
16742 else $as_nop
16743 ac_cv_defined__POSIX_THREADS_unistd_h=no
16744 fi
16745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16746 fi
16747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__POSIX_THREADS_unistd_h" >&5
16748 printf "%s\n" "$ac_cv_defined__POSIX_THREADS_unistd_h" >&6; }
16749 if test $ac_cv_defined__POSIX_THREADS_unistd_h != "no"
16750 then :
16751 unistd_defines_pthreads=yes
16752 else $as_nop
16753 unistd_defines_pthreads=no
16754 fi
16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
16756 printf "%s\n" "$unistd_defines_pthreads" >&6; }
16757
16758 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
16759
16760 # Just looking for pthread_create in libpthread is not enough:
16761 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16762 # So we really have to include pthread.h, and then link.
16763 _libs=$LIBS
16764 LIBS="$LIBS -lpthread"
16765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16766 printf %s "checking for pthread_create in -lpthread... " >&6; }
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769
16770 #include <stdio.h>
16771 #include <stdlib.h>
16772 #include <pthread.h>
16773
16774 void * start_routine (void *arg) { exit (0); }
16775 int
16776 main (void)
16777 {
16778
16779 pthread_create (NULL, NULL, start_routine, NULL)
16780 ;
16781 return 0;
16782 }
16783 _ACEOF
16784 if ac_fn_c_try_link "$LINENO"
16785 then :
16786
16787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16788 printf "%s\n" "yes" >&6; }
16789 posix_threads=yes
16790
16791 else $as_nop
16792
16793 LIBS=$_libs
16794 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
16795 if test "x$ac_cv_func_pthread_detach" = xyes
16796 then :
16797
16798 posix_threads=yes
16799
16800 else $as_nop
16801
16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
16803 printf %s "checking for pthread_create in -lpthreads... " >&6; }
16804 if test ${ac_cv_lib_pthreads_pthread_create+y}
16805 then :
16806 printf %s "(cached) " >&6
16807 else $as_nop
16808 ac_check_lib_save_LIBS=$LIBS
16809 LIBS="-lpthreads $LIBS"
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812
16813 /* Override any GCC internal prototype to avoid an error.
16814 Use char because int might match the return type of a GCC
16815 builtin and then its argument prototype would still apply. */
16816 char pthread_create ();
16817 int
16818 main (void)
16819 {
16820 return pthread_create ();
16821 ;
16822 return 0;
16823 }
16824 _ACEOF
16825 if ac_fn_c_try_link "$LINENO"
16826 then :
16827 ac_cv_lib_pthreads_pthread_create=yes
16828 else $as_nop
16829 ac_cv_lib_pthreads_pthread_create=no
16830 fi
16831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16832 conftest$ac_exeext conftest.$ac_ext
16833 LIBS=$ac_check_lib_save_LIBS
16834 fi
16835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
16836 printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; }
16837 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
16838 then :
16839
16840 posix_threads=yes
16841 LIBS="$LIBS -lpthreads"
16842
16843 else $as_nop
16844
16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
16846 printf %s "checking for pthread_create in -lc_r... " >&6; }
16847 if test ${ac_cv_lib_c_r_pthread_create+y}
16848 then :
16849 printf %s "(cached) " >&6
16850 else $as_nop
16851 ac_check_lib_save_LIBS=$LIBS
16852 LIBS="-lc_r $LIBS"
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16855
16856 /* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
16859 char pthread_create ();
16860 int
16861 main (void)
16862 {
16863 return pthread_create ();
16864 ;
16865 return 0;
16866 }
16867 _ACEOF
16868 if ac_fn_c_try_link "$LINENO"
16869 then :
16870 ac_cv_lib_c_r_pthread_create=yes
16871 else $as_nop
16872 ac_cv_lib_c_r_pthread_create=no
16873 fi
16874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16875 conftest$ac_exeext conftest.$ac_ext
16876 LIBS=$ac_check_lib_save_LIBS
16877 fi
16878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16879 printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; }
16880 if test "x$ac_cv_lib_c_r_pthread_create" = xyes
16881 then :
16882
16883 posix_threads=yes
16884 LIBS="$LIBS -lc_r"
16885
16886 else $as_nop
16887
16888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
16889 printf %s "checking for __pthread_create_system in -lpthread... " >&6; }
16890 if test ${ac_cv_lib_pthread___pthread_create_system+y}
16891 then :
16892 printf %s "(cached) " >&6
16893 else $as_nop
16894 ac_check_lib_save_LIBS=$LIBS
16895 LIBS="-lpthread $LIBS"
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898
16899 /* Override any GCC internal prototype to avoid an error.
16900 Use char because int might match the return type of a GCC
16901 builtin and then its argument prototype would still apply. */
16902 char __pthread_create_system ();
16903 int
16904 main (void)
16905 {
16906 return __pthread_create_system ();
16907 ;
16908 return 0;
16909 }
16910 _ACEOF
16911 if ac_fn_c_try_link "$LINENO"
16912 then :
16913 ac_cv_lib_pthread___pthread_create_system=yes
16914 else $as_nop
16915 ac_cv_lib_pthread___pthread_create_system=no
16916 fi
16917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16918 conftest$ac_exeext conftest.$ac_ext
16919 LIBS=$ac_check_lib_save_LIBS
16920 fi
16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16922 printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; }
16923 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes
16924 then :
16925
16926 posix_threads=yes
16927 LIBS="$LIBS -lpthread"
16928
16929 else $as_nop
16930
16931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
16932 printf %s "checking for pthread_create in -lcma... " >&6; }
16933 if test ${ac_cv_lib_cma_pthread_create+y}
16934 then :
16935 printf %s "(cached) " >&6
16936 else $as_nop
16937 ac_check_lib_save_LIBS=$LIBS
16938 LIBS="-lcma $LIBS"
16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h. */
16941
16942 /* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16945 char pthread_create ();
16946 int
16947 main (void)
16948 {
16949 return pthread_create ();
16950 ;
16951 return 0;
16952 }
16953 _ACEOF
16954 if ac_fn_c_try_link "$LINENO"
16955 then :
16956 ac_cv_lib_cma_pthread_create=yes
16957 else $as_nop
16958 ac_cv_lib_cma_pthread_create=no
16959 fi
16960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16961 conftest$ac_exeext conftest.$ac_ext
16962 LIBS=$ac_check_lib_save_LIBS
16963 fi
16964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
16965 printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; }
16966 if test "x$ac_cv_lib_cma_pthread_create" = xyes
16967 then :
16968
16969 posix_threads=yes
16970 LIBS="$LIBS -lcma"
16971
16972 else $as_nop
16973
16974 case $ac_sys_system in #(
16975 WASI) :
16976 posix_threads=stub ;; #(
16977 *) :
16978 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
16979 ;;
16980 esac
16981
16982 fi
16983
16984 fi
16985
16986 fi
16987
16988 fi
16989
16990 fi
16991
16992 fi
16993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16994 conftest$ac_exeext conftest.$ac_ext
16995
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
16997 printf %s "checking for usconfig in -lmpc... " >&6; }
16998 if test ${ac_cv_lib_mpc_usconfig+y}
16999 then :
17000 printf %s "(cached) " >&6
17001 else $as_nop
17002 ac_check_lib_save_LIBS=$LIBS
17003 LIBS="-lmpc $LIBS"
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17006
17007 /* Override any GCC internal prototype to avoid an error.
17008 Use char because int might match the return type of a GCC
17009 builtin and then its argument prototype would still apply. */
17010 char usconfig ();
17011 int
17012 main (void)
17013 {
17014 return usconfig ();
17015 ;
17016 return 0;
17017 }
17018 _ACEOF
17019 if ac_fn_c_try_link "$LINENO"
17020 then :
17021 ac_cv_lib_mpc_usconfig=yes
17022 else $as_nop
17023 ac_cv_lib_mpc_usconfig=no
17024 fi
17025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17026 conftest$ac_exeext conftest.$ac_ext
17027 LIBS=$ac_check_lib_save_LIBS
17028 fi
17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
17030 printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; }
17031 if test "x$ac_cv_lib_mpc_usconfig" = xyes
17032 then :
17033
17034 LIBS="$LIBS -lmpc"
17035
17036 fi
17037
17038
17039 fi
17040
17041 if test "$posix_threads" = "yes"; then
17042 if test "$unistd_defines_pthreads" = "no"; then
17043
17044 printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h
17045
17046 fi
17047
17048 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
17049 case $ac_sys_system/$ac_sys_release in
17050 SunOS/5.6)
17051 printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
17052
17053 ;;
17054 SunOS/5.8)
17055 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
17056
17057 ;;
17058 AIX/*)
17059 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
17060
17061 ;;
17062 NetBSD/*)
17063 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
17064
17065 ;;
17066 esac
17067
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
17069 printf %s "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
17070 if test ${ac_cv_pthread_system_supported+y}
17071 then :
17072 printf %s "(cached) " >&6
17073 else $as_nop
17074 if test "$cross_compiling" = yes
17075 then :
17076 ac_cv_pthread_system_supported=no
17077 else $as_nop
17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h. */
17080
17081 #include <stdio.h>
17082 #include <pthread.h>
17083 void *foo(void *parm) {
17084 return NULL;
17085 }
17086 int main(void) {
17087 pthread_attr_t attr;
17088 pthread_t id;
17089 if (pthread_attr_init(&attr)) return (-1);
17090 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
17091 if (pthread_create(&id, &attr, foo, NULL)) return (-1);
17092 return (0);
17093 }
17094 _ACEOF
17095 if ac_fn_c_try_run "$LINENO"
17096 then :
17097 ac_cv_pthread_system_supported=yes
17098 else $as_nop
17099 ac_cv_pthread_system_supported=no
17100 fi
17101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17102 conftest.$ac_objext conftest.beam conftest.$ac_ext
17103 fi
17104
17105
17106 fi
17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
17108 printf "%s\n" "$ac_cv_pthread_system_supported" >&6; }
17109 if test "$ac_cv_pthread_system_supported" = "yes"; then
17110
17111 printf "%s\n" "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
17112
17113 fi
17114
17115 for ac_func in pthread_sigmask
17116 do :
17117 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
17118 if test "x$ac_cv_func_pthread_sigmask" = xyes
17119 then :
17120 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
17121 case $ac_sys_system in
17122 CYGWIN*)
17123
17124 printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
17125
17126 ;;
17127 esac
17128 fi
17129
17130 done
17131 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
17132 if test "x$ac_cv_func_pthread_getcpuclockid" = xyes
17133 then :
17134 printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h
17135
17136 fi
17137
17138 fi
17139
17140 if test "x$posix_threads" = xstub
17141 then :
17142
17143
17144 printf "%s\n" "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h
17145
17146
17147 fi
17148
17149 # Check for enable-ipv6
17150
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
17152 printf %s "checking if --enable-ipv6 is specified... " >&6; }
17153 # Check whether --enable-ipv6 was given.
17154 if test ${enable_ipv6+y}
17155 then :
17156 enableval=$enable_ipv6; case "$enableval" in
17157 no)
17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17159 printf "%s\n" "no" >&6; }
17160 ipv6=no
17161 ;;
17162 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17163 printf "%s\n" "yes" >&6; }
17164 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
17165
17166 ipv6=yes
17167 ;;
17168 esac
17169 else $as_nop
17170
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17173 /* AF_INET6 available check */
17174 #include <sys/types.h>
17175 #include <sys/socket.h>
17176 int
17177 main (void)
17178 {
17179 int domain = AF_INET6;
17180 ;
17181 return 0;
17182 }
17183 _ACEOF
17184 if ac_fn_c_try_compile "$LINENO"
17185 then :
17186
17187 ipv6=yes
17188
17189 else $as_nop
17190
17191 ipv6=no
17192
17193 fi
17194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17195
17196 case $ac_sys_system in #(
17197 WASI) :
17198 ipv6=no
17199 ;; #(
17200 *) :
17201 ;;
17202 esac
17203
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6" >&5
17205 printf "%s\n" "$ipv6" >&6; }
17206
17207 if test "$ipv6" = "yes"; then
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
17209 printf %s "checking if RFC2553 API is available... " >&6; }
17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h. */
17212
17213 #include <sys/types.h>
17214 #include <netinet/in.h>
17215 int
17216 main (void)
17217 {
17218 struct sockaddr_in6 x;
17219 x.sin6_scope_id;
17220 ;
17221 return 0;
17222 }
17223
17224 _ACEOF
17225 if ac_fn_c_try_compile "$LINENO"
17226 then :
17227
17228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17229 printf "%s\n" "yes" >&6; }
17230 ipv6=yes
17231
17232 else $as_nop
17233
17234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17235 printf "%s\n" "no" >&6; }
17236 ipv6=no
17237
17238 fi
17239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17240 fi
17241
17242 if test "$ipv6" = "yes"; then
17243 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
17244
17245 fi
17246
17247 fi
17248
17249
17250 ipv6type=unknown
17251 ipv6lib=none
17252 ipv6trylibc=no
17253
17254 if test "$ipv6" = yes -a "$cross_compiling" = no; then
17255 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17256 do
17257 case $i in
17258 inria)
17259
17260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPV6_INRIA_VERSION defined in netinet/in.h" >&5
17261 printf %s "checking for IPV6_INRIA_VERSION defined in netinet/in.h... " >&6; }
17262 if test ${ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h+y}
17263 then :
17264 printf %s "(cached) " >&6
17265 else $as_nop
17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17267 /* end confdefs.h. */
17268 #include <netinet/in.h>
17269 int
17270 main (void)
17271 {
17272
17273 #ifdef IPV6_INRIA_VERSION
17274 int ok;
17275 (void)ok;
17276 #else
17277 choke me
17278 #endif
17279
17280 ;
17281 return 0;
17282 }
17283 _ACEOF
17284 if ac_fn_c_try_compile "$LINENO"
17285 then :
17286 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=yes
17287 else $as_nop
17288 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=no
17289 fi
17290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17291 fi
17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&5
17293 printf "%s\n" "$ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&6; }
17294 if test $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h != "no"
17295 then :
17296 ipv6type=$i
17297 fi
17298 ;;
17299 kame)
17300
17301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __KAME__ defined in netinet/in.h" >&5
17302 printf %s "checking for __KAME__ defined in netinet/in.h... " >&6; }
17303 if test ${ac_cv_defined___KAME___netinet_in_h+y}
17304 then :
17305 printf %s "(cached) " >&6
17306 else $as_nop
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309 #include <netinet/in.h>
17310 int
17311 main (void)
17312 {
17313
17314 #ifdef __KAME__
17315 int ok;
17316 (void)ok;
17317 #else
17318 choke me
17319 #endif
17320
17321 ;
17322 return 0;
17323 }
17324 _ACEOF
17325 if ac_fn_c_try_compile "$LINENO"
17326 then :
17327 ac_cv_defined___KAME___netinet_in_h=yes
17328 else $as_nop
17329 ac_cv_defined___KAME___netinet_in_h=no
17330 fi
17331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17332 fi
17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___KAME___netinet_in_h" >&5
17334 printf "%s\n" "$ac_cv_defined___KAME___netinet_in_h" >&6; }
17335 if test $ac_cv_defined___KAME___netinet_in_h != "no"
17336 then :
17337 ipv6type=$i
17338 ipv6lib=inet6
17339 ipv6libdir=/usr/local/v6/lib
17340 ipv6trylibc=yes
17341 fi
17342 ;;
17343 linux-glibc)
17344
17345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __GLIBC__ defined in features.h" >&5
17346 printf %s "checking for __GLIBC__ defined in features.h... " >&6; }
17347 if test ${ac_cv_defined___GLIBC___features_h+y}
17348 then :
17349 printf %s "(cached) " >&6
17350 else $as_nop
17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h. */
17353 #include <features.h>
17354 int
17355 main (void)
17356 {
17357
17358 #ifdef __GLIBC__
17359 int ok;
17360 (void)ok;
17361 #else
17362 choke me
17363 #endif
17364
17365 ;
17366 return 0;
17367 }
17368 _ACEOF
17369 if ac_fn_c_try_compile "$LINENO"
17370 then :
17371 ac_cv_defined___GLIBC___features_h=yes
17372 else $as_nop
17373 ac_cv_defined___GLIBC___features_h=no
17374 fi
17375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17376 fi
17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___GLIBC___features_h" >&5
17378 printf "%s\n" "$ac_cv_defined___GLIBC___features_h" >&6; }
17379 if test $ac_cv_defined___GLIBC___features_h != "no"
17380 then :
17381 ipv6type=$i
17382 ipv6trylibc=yes
17383 fi
17384 ;;
17385 linux-inet6)
17386 if test -d /usr/inet6; then
17387 ipv6type=$i
17388 ipv6lib=inet6
17389 ipv6libdir=/usr/inet6/lib
17390 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17391 fi
17392 ;;
17393 solaris)
17394 if test -f /etc/netconfig; then
17395 if $GREP -q tcp6 /etc/netconfig; then
17396 ipv6type=$i
17397 ipv6trylibc=yes
17398 fi
17399 fi
17400 ;;
17401 toshiba)
17402
17403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _TOSHIBA_INET6 defined in sys/param.h" >&5
17404 printf %s "checking for _TOSHIBA_INET6 defined in sys/param.h... " >&6; }
17405 if test ${ac_cv_defined__TOSHIBA_INET6_sys_param_h+y}
17406 then :
17407 printf %s "(cached) " >&6
17408 else $as_nop
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411 #include <sys/param.h>
17412 int
17413 main (void)
17414 {
17415
17416 #ifdef _TOSHIBA_INET6
17417 int ok;
17418 (void)ok;
17419 #else
17420 choke me
17421 #endif
17422
17423 ;
17424 return 0;
17425 }
17426 _ACEOF
17427 if ac_fn_c_try_compile "$LINENO"
17428 then :
17429 ac_cv_defined__TOSHIBA_INET6_sys_param_h=yes
17430 else $as_nop
17431 ac_cv_defined__TOSHIBA_INET6_sys_param_h=no
17432 fi
17433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17434 fi
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&5
17436 printf "%s\n" "$ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&6; }
17437 if test $ac_cv_defined__TOSHIBA_INET6_sys_param_h != "no"
17438 then :
17439 ipv6type=$i
17440 ipv6lib=inet6
17441 ipv6libdir=/usr/local/v6/lib
17442 fi
17443 ;;
17444 v6d)
17445
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h" >&5
17447 printf %s "checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h... " >&6; }
17448 if test ${ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h+y}
17449 then :
17450 printf %s "(cached) " >&6
17451 else $as_nop
17452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453 /* end confdefs.h. */
17454 #include </usr/local/v6/include/sys/v6config.h>
17455 int
17456 main (void)
17457 {
17458
17459 #ifdef __V6D__
17460 int ok;
17461 (void)ok;
17462 #else
17463 choke me
17464 #endif
17465
17466 ;
17467 return 0;
17468 }
17469 _ACEOF
17470 if ac_fn_c_try_compile "$LINENO"
17471 then :
17472 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=yes
17473 else $as_nop
17474 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=no
17475 fi
17476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17477 fi
17478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&5
17479 printf "%s\n" "$ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&6; }
17480 if test $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h != "no"
17481 then :
17482 ipv6type=$i
17483 ipv6lib=v6
17484 ipv6libdir=/usr/local/v6/lib
17485 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17486 fi
17487 ;;
17488 zeta)
17489
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ZETA_MINAMI_INET6 defined in sys/param.h" >&5
17491 printf %s "checking for _ZETA_MINAMI_INET6 defined in sys/param.h... " >&6; }
17492 if test ${ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h+y}
17493 then :
17494 printf %s "(cached) " >&6
17495 else $as_nop
17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17498 #include <sys/param.h>
17499 int
17500 main (void)
17501 {
17502
17503 #ifdef _ZETA_MINAMI_INET6
17504 int ok;
17505 (void)ok;
17506 #else
17507 choke me
17508 #endif
17509
17510 ;
17511 return 0;
17512 }
17513 _ACEOF
17514 if ac_fn_c_try_compile "$LINENO"
17515 then :
17516 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=yes
17517 else $as_nop
17518 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=no
17519 fi
17520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17521 fi
17522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&5
17523 printf "%s\n" "$ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&6; }
17524 if test $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h != "no"
17525 then :
17526 ipv6type=$i
17527 ipv6lib=inet6
17528 ipv6libdir=/usr/local/v6/lib
17529 fi
17530 ;;
17531 esac
17532 if test "$ipv6type" != "unknown"; then
17533 break
17534 fi
17535 done
17536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
17537 printf %s "checking ipv6 stack type... " >&6; }
17538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
17539 printf "%s\n" "$ipv6type" >&6; }
17540 fi
17541
17542 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 library" >&5
17544 printf %s "checking ipv6 library... " >&6; }
17545 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17546 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lib$ipv6lib" >&5
17548 printf "%s\n" "lib$ipv6lib" >&6; }
17549 else
17550 if test "x$ipv6trylibc" = xyes
17551 then :
17552
17553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libc" >&5
17554 printf "%s\n" "libc" >&6; }
17555
17556 else $as_nop
17557
17558 as_fn_error $? "No $ipv6lib library found; cannot continue. You need to fetch lib$ipv6lib.a from appropriate ipv6 kit and compile beforehand." "$LINENO" 5
17559
17560 fi
17561 fi
17562 fi
17563
17564
17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CAN_RAW_FD_FRAMES" >&5
17566 printf %s "checking CAN_RAW_FD_FRAMES... " >&6; }
17567 if test ${ac_cv_can_raw_fd_frames+y}
17568 then :
17569 printf %s "(cached) " >&6
17570 else $as_nop
17571
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17574 /* CAN_RAW_FD_FRAMES available check */
17575 #include <linux/can/raw.h>
17576 int
17577 main (void)
17578 {
17579 int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
17580 ;
17581 return 0;
17582 }
17583 _ACEOF
17584 if ac_fn_c_try_compile "$LINENO"
17585 then :
17586 ac_cv_can_raw_fd_frames=yes
17587 else $as_nop
17588 ac_cv_can_raw_fd_frames=no
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17591
17592 fi
17593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_fd_frames" >&5
17594 printf "%s\n" "$ac_cv_can_raw_fd_frames" >&6; }
17595 if test "x$ac_cv_can_raw_fd_frames" = xyes
17596 then :
17597
17598
17599 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
17600
17601
17602 fi
17603
17604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5
17605 printf %s "checking for CAN_RAW_JOIN_FILTERS... " >&6; }
17606 if test ${ac_cv_can_raw_join_filters+y}
17607 then :
17608 printf %s "(cached) " >&6
17609 else $as_nop
17610
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613
17614 #include <linux/can/raw.h>
17615 int
17616 main (void)
17617 {
17618 int can_raw_join_filters = CAN_RAW_JOIN_FILTERS;
17619 ;
17620 return 0;
17621 }
17622 _ACEOF
17623 if ac_fn_c_try_compile "$LINENO"
17624 then :
17625 ac_cv_can_raw_join_filters=yes
17626 else $as_nop
17627 ac_cv_can_raw_join_filters=no
17628 fi
17629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17630
17631 fi
17632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_join_filters" >&5
17633 printf "%s\n" "$ac_cv_can_raw_join_filters" >&6; }
17634 if test "x$ac_cv_can_raw_join_filters" = xyes
17635 then :
17636
17637
17638 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h
17639
17640
17641 fi
17642
17643 # Check for --with-doc-strings
17644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
17645 printf %s "checking for --with-doc-strings... " >&6; }
17646
17647 # Check whether --with-doc-strings was given.
17648 if test ${with_doc_strings+y}
17649 then :
17650 withval=$with_doc_strings;
17651 fi
17652
17653
17654 if test -z "$with_doc_strings"
17655 then with_doc_strings="yes"
17656 fi
17657 if test "$with_doc_strings" != "no"
17658 then
17659
17660 printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h
17661
17662 fi
17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
17664 printf "%s\n" "$with_doc_strings" >&6; }
17665
17666 # Check for stdatomic.h, required for mimalloc.
17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
17668 printf %s "checking for stdatomic.h... " >&6; }
17669 if test ${ac_cv_header_stdatomic_h+y}
17670 then :
17671 printf %s "(cached) " >&6
17672 else $as_nop
17673
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17676
17677
17678 #include <stdatomic.h>
17679 atomic_int int_var;
17680 atomic_uintptr_t uintptr_var;
17681 int main() {
17682 atomic_store_explicit(&int_var, 5, memory_order_relaxed);
17683 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
17684 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
17685 return 0;
17686 }
17687
17688
17689 _ACEOF
17690 if ac_fn_c_try_link "$LINENO"
17691 then :
17692 ac_cv_header_stdatomic_h=yes
17693 else $as_nop
17694 ac_cv_header_stdatomic_h=no
17695 fi
17696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17697 conftest$ac_exeext conftest.$ac_ext
17698
17699 fi
17700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdatomic_h" >&5
17701 printf "%s\n" "$ac_cv_header_stdatomic_h" >&6; }
17702
17703 if test "x$ac_cv_header_stdatomic_h" = xyes
17704 then :
17705
17706
17707 printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h
17708
17709
17710 fi
17711
17712 # Check for GCC >= 4.7 and clang __atomic builtin functions
17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5
17714 printf %s "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; }
17715 if test ${ac_cv_builtin_atomic+y}
17716 then :
17717 printf %s "(cached) " >&6
17718 else $as_nop
17719
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722
17723
17724 int val;
17725 int main() {
17726 __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
17727 (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
17728 return 0;
17729 }
17730
17731
17732 _ACEOF
17733 if ac_fn_c_try_link "$LINENO"
17734 then :
17735 ac_cv_builtin_atomic=yes
17736 else $as_nop
17737 ac_cv_builtin_atomic=no
17738 fi
17739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17740 conftest$ac_exeext conftest.$ac_ext
17741
17742 fi
17743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_builtin_atomic" >&5
17744 printf "%s\n" "$ac_cv_builtin_atomic" >&6; }
17745
17746 if test "x$ac_cv_builtin_atomic" = xyes
17747 then :
17748
17749
17750 printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
17751
17752
17753 fi
17754
17755 # --with-mimalloc
17756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-mimalloc" >&5
17757 printf %s "checking for --with-mimalloc... " >&6; }
17758
17759 # Check whether --with-mimalloc was given.
17760 if test ${with_mimalloc+y}
17761 then :
17762 withval=$with_mimalloc;
17763 else $as_nop
17764 with_mimalloc="$ac_cv_header_stdatomic_h"
17765
17766 fi
17767
17768
17769 if test "$with_mimalloc" != no; then
17770 if test "$ac_cv_header_stdatomic_h" != yes; then
17771 # mimalloc-atomic.h wants C11 stdatomic.h on POSIX
17772 as_fn_error $? "mimalloc requires stdatomic.h, use --without-mimalloc to disable mimalloc." "$LINENO" 5
17773 fi
17774 with_mimalloc=yes
17775
17776 printf "%s\n" "#define WITH_MIMALLOC 1" >>confdefs.h
17777
17778 MIMALLOC_HEADERS='$(MIMALLOC_HEADERS)'
17779
17780 elif test "$disable_gil" = "yes"; then
17781 as_fn_error $? "--disable-gil requires mimalloc memory allocator (--with-mimalloc)." "$LINENO" 5
17782 fi
17783
17784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_mimalloc" >&5
17785 printf "%s\n" "$with_mimalloc" >&6; }
17786 INSTALL_MIMALLOC=$with_mimalloc
17787
17788
17789
17790 # Check for Python-specific malloc support
17791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
17792 printf %s "checking for --with-pymalloc... " >&6; }
17793
17794 # Check whether --with-pymalloc was given.
17795 if test ${with_pymalloc+y}
17796 then :
17797 withval=$with_pymalloc;
17798 fi
17799
17800
17801 if test -z "$with_pymalloc"
17802 then
17803 case $ac_sys_system in #(
17804 Emscripten) :
17805 with_pymalloc="no" ;; #(
17806 WASI) :
17807 with_pymalloc="no" ;; #(
17808 *) :
17809 with_pymalloc="yes"
17810 ;;
17811 esac
17812 fi
17813 if test "$with_pymalloc" != "no"
17814 then
17815
17816 printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h
17817
17818 fi
17819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
17820 printf "%s\n" "$with_pymalloc" >&6; }
17821
17822 # Check whether objects such as float, tuple and dict are using
17823 # freelists to optimization memory allocation.
17824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-freelists" >&5
17825 printf %s "checking for --with-freelists... " >&6; }
17826
17827 # Check whether --with-freelists was given.
17828 if test ${with_freelists+y}
17829 then :
17830 withval=$with_freelists;
17831 fi
17832
17833
17834 if test -z "$with_freelists"
17835 then
17836 with_freelists="yes"
17837 fi
17838 if test "$with_freelists" != "no"
17839 then
17840
17841 printf "%s\n" "#define WITH_FREELISTS 1" >>confdefs.h
17842
17843 fi
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_freelists" >&5
17845 printf "%s\n" "$with_freelists" >&6; }
17846
17847 # Check for --with-c-locale-coercion
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
17849 printf %s "checking for --with-c-locale-coercion... " >&6; }
17850
17851 # Check whether --with-c-locale-coercion was given.
17852 if test ${with_c_locale_coercion+y}
17853 then :
17854 withval=$with_c_locale_coercion;
17855 fi
17856
17857
17858 if test -z "$with_c_locale_coercion"
17859 then
17860 with_c_locale_coercion="yes"
17861 fi
17862 if test "$with_c_locale_coercion" != "no"
17863 then
17864
17865 printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
17866
17867 fi
17868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
17869 printf "%s\n" "$with_c_locale_coercion" >&6; }
17870
17871 # Check for Valgrind support
17872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
17873 printf %s "checking for --with-valgrind... " >&6; }
17874
17875 # Check whether --with-valgrind was given.
17876 if test ${with_valgrind+y}
17877 then :
17878 withval=$with_valgrind;
17879 else $as_nop
17880 with_valgrind=no
17881
17882 fi
17883
17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
17885 printf "%s\n" "$with_valgrind" >&6; }
17886 if test "$with_valgrind" != no; then
17887 ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
17888 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes
17889 then :
17890
17891 printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h
17892
17893 else $as_nop
17894 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
17895
17896 fi
17897
17898 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
17899 fi
17900
17901 # Check for DTrace support
17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
17903 printf %s "checking for --with-dtrace... " >&6; }
17904
17905 # Check whether --with-dtrace was given.
17906 if test ${with_dtrace+y}
17907 then :
17908 withval=$with_dtrace;
17909 else $as_nop
17910 with_dtrace=no
17911 fi
17912
17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
17914 printf "%s\n" "$with_dtrace" >&6; }
17915
17916
17917
17918
17919
17920 DTRACE=
17921 DTRACE_HEADERS=
17922 DTRACE_OBJS=
17923
17924 if test "$with_dtrace" = "yes"
17925 then
17926 # Extract the first word of "dtrace", so it can be a program name with args.
17927 set dummy dtrace; ac_word=$2
17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17929 printf %s "checking for $ac_word... " >&6; }
17930 if test ${ac_cv_path_DTRACE+y}
17931 then :
17932 printf %s "(cached) " >&6
17933 else $as_nop
17934 case $DTRACE in
17935 [\\/]* | ?:[\\/]*)
17936 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
17937 ;;
17938 *)
17939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17940 for as_dir in $PATH
17941 do
17942 IFS=$as_save_IFS
17943 case $as_dir in #(((
17944 '') as_dir=./ ;;
17945 */) ;;
17946 *) as_dir=$as_dir/ ;;
17947 esac
17948 for ac_exec_ext in '' $ac_executable_extensions; do
17949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17950 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
17951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17952 break 2
17953 fi
17954 done
17955 done
17956 IFS=$as_save_IFS
17957
17958 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
17959 ;;
17960 esac
17961 fi
17962 DTRACE=$ac_cv_path_DTRACE
17963 if test -n "$DTRACE"; then
17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
17965 printf "%s\n" "$DTRACE" >&6; }
17966 else
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968 printf "%s\n" "no" >&6; }
17969 fi
17970
17971
17972 if test "$DTRACE" = "not found"; then
17973 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
17974 fi
17975
17976 printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h
17977
17978 DTRACE_HEADERS="Include/pydtrace_probes.h"
17979
17980 # On OS X, DTrace providers do not need to be explicitly compiled and
17981 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
17982 # generation flag '-G'. We check for presence of this flag, rather than
17983 # hardcoding support by OS, in the interest of robustness.
17984 #
17985 # NetBSD DTrace requires the -x nolibs flag to avoid system library conflicts
17986 # and uses header generation for testing instead of object generation.
17987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
17988 printf %s "checking whether DTrace probes require linking... " >&6; }
17989 if test ${ac_cv_dtrace_link+y}
17990 then :
17991 printf %s "(cached) " >&6
17992 else $as_nop
17993
17994 ac_cv_dtrace_link=no
17995 echo 'BEGIN{}' > conftest.d
17996 case $host in
17997 *netbsd*)
17998 DTRACE_TEST_FLAGS="-x nolibs -h"
17999 ;;
18000 *)
18001 DTRACE_TEST_FLAGS="-G"
18002 ;;
18003 esac
18004 "$DTRACE" $DFLAGS $DTRACE_TEST_FLAGS -s conftest.d -o conftest.o > /dev/null 2>&1 && \
18005 ac_cv_dtrace_link=yes
18006
18007 fi
18008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
18009 printf "%s\n" "$ac_cv_dtrace_link" >&6; }
18010 if test "$ac_cv_dtrace_link" = "yes"; then
18011 DTRACE_OBJS="Python/pydtrace.o"
18012 fi
18013 # Set NetBSD-specific DTrace flags in DFLAGS
18014 case $host in
18015 *netbsd*)
18016 DFLAGS="$DFLAGS -x nolibs"
18017 ;;
18018 esac
18019 fi
18020
18021 PLATFORM_HEADERS=
18022 PLATFORM_OBJS=
18023
18024 case $ac_sys_system in #(
18025 Emscripten) :
18026
18027 as_fn_append PLATFORM_OBJS ' Python/emscripten_signal.o Python/emscripten_trampoline.o'
18028 as_fn_append PLATFORM_HEADERS ' $(srcdir)/Include/internal/pycore_emscripten_signal.h $(srcdir)/Include/internal/pycore_emscripten_trampoline.h'
18029 ;; #(
18030 *) :
18031 ;;
18032 esac
18033
18034
18035
18036 # -I${DLINCLDIR} is added to the compile rule for importdl.o
18037
18038 DLINCLDIR=.
18039
18040 # the dlopen() function means we might want to use dynload_shlib.o. some
18041 # platforms have dlopen(), but don't want to use it.
18042 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18043 if test "x$ac_cv_func_dlopen" = xyes
18044 then :
18045 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
18046
18047 fi
18048
18049
18050 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
18051 # loading of modules.
18052
18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
18054 printf %s "checking DYNLOADFILE... " >&6; }
18055 if test -z "$DYNLOADFILE"
18056 then
18057 case $ac_sys_system/$ac_sys_release in
18058 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
18059 *)
18060 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
18061 # out any dynamic loading
18062 if test "$ac_cv_func_dlopen" = yes
18063 then DYNLOADFILE="dynload_shlib.o"
18064 else DYNLOADFILE="dynload_stub.o"
18065 fi
18066 ;;
18067 esac
18068 fi
18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
18070 printf "%s\n" "$DYNLOADFILE" >&6; }
18071 if test "$DYNLOADFILE" != "dynload_stub.o"
18072 then
18073
18074 printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
18075
18076 fi
18077
18078 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
18079
18080
18081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
18082 printf %s "checking MACHDEP_OBJS... " >&6; }
18083 if test -z "$MACHDEP_OBJS"
18084 then
18085 MACHDEP_OBJS=$extra_machdep_objs
18086 else
18087 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
18088 fi
18089 if test -z "$MACHDEP_OBJS"; then
18090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
18091 printf "%s\n" "none" >&6; }
18092 else
18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
18094 printf "%s\n" "$MACHDEP_OBJS" >&6; }
18095 fi
18096
18097 if test "$ac_sys_system" = "Linux-android"; then
18098 # When these functions are used in an unprivileged process, they crash rather
18099 # than returning an error.
18100 blocked_funcs="chroot initgroups setegid seteuid setgid sethostname
18101 setregid setresgid setresuid setreuid setuid"
18102
18103 # These functions are unimplemented and always return an error
18104 # (https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/android13-release/public/domain.te#1044)
18105 blocked_funcs="$blocked_funcs sem_open sem_unlink"
18106
18107 # Before API level 23, when fchmodat is called with the unimplemented flag
18108 # AT_SYMLINK_NOFOLLOW, instead of returning ENOTSUP as it should, it actually
18109 # follows the symlink.
18110 if test "$ANDROID_API_LEVEL" -lt 23; then
18111 blocked_funcs="$blocked_funcs fchmodat"
18112 fi
18113
18114 for name in $blocked_funcs; do
18115 as_func_var=`printf "%s\n" "ac_cv_func_$name" | $as_tr_sh`
18116
18117 eval "$as_func_var=no"
18118
18119 done
18120 fi
18121
18122 # checks for library functions
18123 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
18124 if test "x$ac_cv_func_accept4" = xyes
18125 then :
18126 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
18127
18128 fi
18129 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
18130 if test "x$ac_cv_func_alarm" = xyes
18131 then :
18132 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
18133
18134 fi
18135 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18136 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
18137 then :
18138 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
18139
18140 fi
18141 ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
18142 if test "x$ac_cv_func_chmod" = xyes
18143 then :
18144 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
18145
18146 fi
18147 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
18148 if test "x$ac_cv_func_chown" = xyes
18149 then :
18150 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
18151
18152 fi
18153 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
18154 if test "x$ac_cv_func_clock" = xyes
18155 then :
18156 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h
18157
18158 fi
18159 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
18160 if test "x$ac_cv_func_closefrom" = xyes
18161 then :
18162 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
18163
18164 fi
18165 ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range"
18166 if test "x$ac_cv_func_close_range" = xyes
18167 then :
18168 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h
18169
18170 fi
18171 ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr"
18172 if test "x$ac_cv_func_confstr" = xyes
18173 then :
18174 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h
18175
18176 fi
18177 ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
18178 if test "x$ac_cv_func_copy_file_range" = xyes
18179 then :
18180 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
18181
18182 fi
18183 ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid"
18184 if test "x$ac_cv_func_ctermid" = xyes
18185 then :
18186 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h
18187
18188 fi
18189 ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup"
18190 if test "x$ac_cv_func_dup" = xyes
18191 then :
18192 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h
18193
18194 fi
18195 ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3"
18196 if test "x$ac_cv_func_dup3" = xyes
18197 then :
18198 printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h
18199
18200 fi
18201 ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv"
18202 if test "x$ac_cv_func_execv" = xyes
18203 then :
18204 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h
18205
18206 fi
18207 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
18208 if test "x$ac_cv_func_explicit_bzero" = xyes
18209 then :
18210 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
18211
18212 fi
18213 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
18214 if test "x$ac_cv_func_explicit_memset" = xyes
18215 then :
18216 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
18217
18218 fi
18219 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
18220 if test "x$ac_cv_func_faccessat" = xyes
18221 then :
18222 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
18223
18224 fi
18225 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
18226 if test "x$ac_cv_func_fchmod" = xyes
18227 then :
18228 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
18229
18230 fi
18231 ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat"
18232 if test "x$ac_cv_func_fchmodat" = xyes
18233 then :
18234 printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h
18235
18236 fi
18237 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
18238 if test "x$ac_cv_func_fchown" = xyes
18239 then :
18240 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
18241
18242 fi
18243 ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat"
18244 if test "x$ac_cv_func_fchownat" = xyes
18245 then :
18246 printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h
18247
18248 fi
18249 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
18250 if test "x$ac_cv_func_fdopendir" = xyes
18251 then :
18252 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
18253
18254 fi
18255 ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk"
18256 if test "x$ac_cv_func_fdwalk" = xyes
18257 then :
18258 printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h
18259
18260 fi
18261 ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve"
18262 if test "x$ac_cv_func_fexecve" = xyes
18263 then :
18264 printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h
18265
18266 fi
18267 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
18268 if test "x$ac_cv_func_fork" = xyes
18269 then :
18270 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
18271
18272 fi
18273 ac_fn_c_check_func "$LINENO" "fork1" "ac_cv_func_fork1"
18274 if test "x$ac_cv_func_fork1" = xyes
18275 then :
18276 printf "%s\n" "#define HAVE_FORK1 1" >>confdefs.h
18277
18278 fi
18279 ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf"
18280 if test "x$ac_cv_func_fpathconf" = xyes
18281 then :
18282 printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h
18283
18284 fi
18285 ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
18286 if test "x$ac_cv_func_fstatat" = xyes
18287 then :
18288 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
18289
18290 fi
18291 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
18292 if test "x$ac_cv_func_ftime" = xyes
18293 then :
18294 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
18295
18296 fi
18297 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
18298 if test "x$ac_cv_func_ftruncate" = xyes
18299 then :
18300 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
18301
18302 fi
18303 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
18304 if test "x$ac_cv_func_futimens" = xyes
18305 then :
18306 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
18307
18308 fi
18309 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
18310 if test "x$ac_cv_func_futimes" = xyes
18311 then :
18312 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
18313
18314 fi
18315 ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"
18316 if test "x$ac_cv_func_futimesat" = xyes
18317 then :
18318 printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h
18319
18320 fi
18321 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
18322 if test "x$ac_cv_func_gai_strerror" = xyes
18323 then :
18324 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
18325
18326 fi
18327 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
18328 if test "x$ac_cv_func_getegid" = xyes
18329 then :
18330 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
18331
18332 fi
18333 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
18334 if test "x$ac_cv_func_geteuid" = xyes
18335 then :
18336 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
18337
18338 fi
18339 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
18340 if test "x$ac_cv_func_getgid" = xyes
18341 then :
18342 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
18343
18344 fi
18345 ac_fn_c_check_func "$LINENO" "getgrent" "ac_cv_func_getgrent"
18346 if test "x$ac_cv_func_getgrent" = xyes
18347 then :
18348 printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h
18349
18350 fi
18351 ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid"
18352 if test "x$ac_cv_func_getgrgid" = xyes
18353 then :
18354 printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h
18355
18356 fi
18357 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
18358 if test "x$ac_cv_func_getgrgid_r" = xyes
18359 then :
18360 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
18361
18362 fi
18363 ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
18364 if test "x$ac_cv_func_getgrnam_r" = xyes
18365 then :
18366 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
18367
18368 fi
18369 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
18370 if test "x$ac_cv_func_getgrouplist" = xyes
18371 then :
18372 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
18373
18374 fi
18375 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
18376 if test "x$ac_cv_func_gethostname" = xyes
18377 then :
18378 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
18379
18380 fi
18381 ac_fn_c_check_func "$LINENO" "getitimer" "ac_cv_func_getitimer"
18382 if test "x$ac_cv_func_getitimer" = xyes
18383 then :
18384 printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h
18385
18386 fi
18387 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18388 if test "x$ac_cv_func_getloadavg" = xyes
18389 then :
18390 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
18391
18392 fi
18393 ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin"
18394 if test "x$ac_cv_func_getlogin" = xyes
18395 then :
18396 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h
18397
18398 fi
18399 ac_fn_c_check_func "$LINENO" "getlogin_r" "ac_cv_func_getlogin_r"
18400 if test "x$ac_cv_func_getlogin_r" = xyes
18401 then :
18402 printf "%s\n" "#define HAVE_GETLOGIN_R 1" >>confdefs.h
18403
18404 fi
18405 ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
18406 if test "x$ac_cv_func_getpeername" = xyes
18407 then :
18408 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
18409
18410 fi
18411 ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid"
18412 if test "x$ac_cv_func_getpgid" = xyes
18413 then :
18414 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h
18415
18416 fi
18417 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
18418 if test "x$ac_cv_func_getpid" = xyes
18419 then :
18420 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
18421
18422 fi
18423 ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid"
18424 if test "x$ac_cv_func_getppid" = xyes
18425 then :
18426 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h
18427
18428 fi
18429 ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority"
18430 if test "x$ac_cv_func_getpriority" = xyes
18431 then :
18432 printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h
18433
18434 fi
18435 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
18436 if test "x$ac_cv_func__getpty" = xyes
18437 then :
18438 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
18439
18440 fi
18441 ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent"
18442 if test "x$ac_cv_func_getpwent" = xyes
18443 then :
18444 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h
18445
18446 fi
18447 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
18448 if test "x$ac_cv_func_getpwnam_r" = xyes
18449 then :
18450 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
18451
18452 fi
18453 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
18454 if test "x$ac_cv_func_getpwuid" = xyes
18455 then :
18456 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
18457
18458 fi
18459 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
18460 if test "x$ac_cv_func_getpwuid_r" = xyes
18461 then :
18462 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
18463
18464 fi
18465 ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"
18466 if test "x$ac_cv_func_getresgid" = xyes
18467 then :
18468 printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h
18469
18470 fi
18471 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
18472 if test "x$ac_cv_func_getresuid" = xyes
18473 then :
18474 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
18475
18476 fi
18477 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
18478 if test "x$ac_cv_func_getrusage" = xyes
18479 then :
18480 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
18481
18482 fi
18483 ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid"
18484 if test "x$ac_cv_func_getsid" = xyes
18485 then :
18486 printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h
18487
18488 fi
18489 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent"
18490 if test "x$ac_cv_func_getspent" = xyes
18491 then :
18492 printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h
18493
18494 fi
18495 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
18496 if test "x$ac_cv_func_getspnam" = xyes
18497 then :
18498 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
18499
18500 fi
18501 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
18502 if test "x$ac_cv_func_getuid" = xyes
18503 then :
18504 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
18505
18506 fi
18507 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
18508 if test "x$ac_cv_func_getwd" = xyes
18509 then :
18510 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
18511
18512 fi
18513 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18514 if test "x$ac_cv_func_grantpt" = xyes
18515 then :
18516 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
18517
18518 fi
18519 ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex"
18520 if test "x$ac_cv_func_if_nameindex" = xyes
18521 then :
18522 printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h
18523
18524 fi
18525 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
18526 if test "x$ac_cv_func_initgroups" = xyes
18527 then :
18528 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
18529
18530 fi
18531 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill"
18532 if test "x$ac_cv_func_kill" = xyes
18533 then :
18534 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
18535
18536 fi
18537 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
18538 if test "x$ac_cv_func_killpg" = xyes
18539 then :
18540 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
18541
18542 fi
18543 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
18544 if test "x$ac_cv_func_lchown" = xyes
18545 then :
18546 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
18547
18548 fi
18549 ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"
18550 if test "x$ac_cv_func_linkat" = xyes
18551 then :
18552 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
18553
18554 fi
18555 ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
18556 if test "x$ac_cv_func_lockf" = xyes
18557 then :
18558 printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
18559
18560 fi
18561 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18562 if test "x$ac_cv_func_lstat" = xyes
18563 then :
18564 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18565
18566 fi
18567 ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
18568 if test "x$ac_cv_func_lutimes" = xyes
18569 then :
18570 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
18571
18572 fi
18573 ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
18574 if test "x$ac_cv_func_madvise" = xyes
18575 then :
18576 printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h
18577
18578 fi
18579 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
18580 if test "x$ac_cv_func_mbrtowc" = xyes
18581 then :
18582 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
18583
18584 fi
18585 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
18586 if test "x$ac_cv_func_memrchr" = xyes
18587 then :
18588 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
18589
18590 fi
18591 ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat"
18592 if test "x$ac_cv_func_mkdirat" = xyes
18593 then :
18594 printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h
18595
18596 fi
18597 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
18598 if test "x$ac_cv_func_mkfifo" = xyes
18599 then :
18600 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
18601
18602 fi
18603 ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat"
18604 if test "x$ac_cv_func_mkfifoat" = xyes
18605 then :
18606 printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h
18607
18608 fi
18609 ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"
18610 if test "x$ac_cv_func_mknod" = xyes
18611 then :
18612 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
18613
18614 fi
18615 ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat"
18616 if test "x$ac_cv_func_mknodat" = xyes
18617 then :
18618 printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h
18619
18620 fi
18621 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
18622 if test "x$ac_cv_func_mktime" = xyes
18623 then :
18624 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
18625
18626 fi
18627 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
18628 if test "x$ac_cv_func_mmap" = xyes
18629 then :
18630 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18631
18632 fi
18633 ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
18634 if test "x$ac_cv_func_mremap" = xyes
18635 then :
18636 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h
18637
18638 fi
18639 ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
18640 if test "x$ac_cv_func_nice" = xyes
18641 then :
18642 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
18643
18644 fi
18645 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
18646 if test "x$ac_cv_func_openat" = xyes
18647 then :
18648 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
18649
18650 fi
18651 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
18652 if test "x$ac_cv_func_opendir" = xyes
18653 then :
18654 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
18655
18656 fi
18657 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
18658 if test "x$ac_cv_func_pathconf" = xyes
18659 then :
18660 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
18661
18662 fi
18663 ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause"
18664 if test "x$ac_cv_func_pause" = xyes
18665 then :
18666 printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h
18667
18668 fi
18669 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
18670 if test "x$ac_cv_func_pipe" = xyes
18671 then :
18672 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
18673
18674 fi
18675 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
18676 if test "x$ac_cv_func_pipe2" = xyes
18677 then :
18678 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
18679
18680 fi
18681 ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock"
18682 if test "x$ac_cv_func_plock" = xyes
18683 then :
18684 printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h
18685
18686 fi
18687 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
18688 if test "x$ac_cv_func_poll" = xyes
18689 then :
18690 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
18691
18692 fi
18693 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
18694 if test "x$ac_cv_func_posix_fadvise" = xyes
18695 then :
18696 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
18697
18698 fi
18699 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
18700 if test "x$ac_cv_func_posix_fallocate" = xyes
18701 then :
18702 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
18703
18704 fi
18705 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
18706 if test "x$ac_cv_func_posix_openpt" = xyes
18707 then :
18708 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
18709
18710 fi
18711 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
18712 if test "x$ac_cv_func_posix_spawn" = xyes
18713 then :
18714 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
18715
18716 fi
18717 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
18718 if test "x$ac_cv_func_posix_spawnp" = xyes
18719 then :
18720 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
18721
18722 fi
18723 ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_addclosefrom_np" "ac_cv_func_posix_spawn_file_actions_addclosefrom_np"
18724 if test "x$ac_cv_func_posix_spawn_file_actions_addclosefrom_np" = xyes
18725 then :
18726 printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP 1" >>confdefs.h
18727
18728 fi
18729 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
18730 if test "x$ac_cv_func_pread" = xyes
18731 then :
18732 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
18733
18734 fi
18735 ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv"
18736 if test "x$ac_cv_func_preadv" = xyes
18737 then :
18738 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h
18739
18740 fi
18741 ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2"
18742 if test "x$ac_cv_func_preadv2" = xyes
18743 then :
18744 printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h
18745
18746 fi
18747 ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv"
18748 if test "x$ac_cv_func_process_vm_readv" = xyes
18749 then :
18750 printf "%s\n" "#define HAVE_PROCESS_VM_READV 1" >>confdefs.h
18751
18752 fi
18753 ac_fn_c_check_func "$LINENO" "pthread_cond_timedwait_relative_np" "ac_cv_func_pthread_cond_timedwait_relative_np"
18754 if test "x$ac_cv_func_pthread_cond_timedwait_relative_np" = xyes
18755 then :
18756 printf "%s\n" "#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP 1" >>confdefs.h
18757
18758 fi
18759 ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
18760 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
18761 then :
18762 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
18763
18764 fi
18765 ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init"
18766 if test "x$ac_cv_func_pthread_init" = xyes
18767 then :
18768 printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h
18769
18770 fi
18771 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
18772 if test "x$ac_cv_func_pthread_kill" = xyes
18773 then :
18774 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
18775
18776 fi
18777 ac_fn_c_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname"
18778 if test "x$ac_cv_func_ptsname" = xyes
18779 then :
18780 printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h
18781
18782 fi
18783 ac_fn_c_check_func "$LINENO" "ptsname_r" "ac_cv_func_ptsname_r"
18784 if test "x$ac_cv_func_ptsname_r" = xyes
18785 then :
18786 printf "%s\n" "#define HAVE_PTSNAME_R 1" >>confdefs.h
18787
18788 fi
18789 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
18790 if test "x$ac_cv_func_pwrite" = xyes
18791 then :
18792 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
18793
18794 fi
18795 ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev"
18796 if test "x$ac_cv_func_pwritev" = xyes
18797 then :
18798 printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h
18799
18800 fi
18801 ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2"
18802 if test "x$ac_cv_func_pwritev2" = xyes
18803 then :
18804 printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h
18805
18806 fi
18807 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
18808 if test "x$ac_cv_func_readlink" = xyes
18809 then :
18810 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
18811
18812 fi
18813 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
18814 if test "x$ac_cv_func_readlinkat" = xyes
18815 then :
18816 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
18817
18818 fi
18819 ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv"
18820 if test "x$ac_cv_func_readv" = xyes
18821 then :
18822 printf "%s\n" "#define HAVE_READV 1" >>confdefs.h
18823
18824 fi
18825 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
18826 if test "x$ac_cv_func_realpath" = xyes
18827 then :
18828 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
18829
18830 fi
18831 ac_fn_c_check_func "$LINENO" "renameat" "ac_cv_func_renameat"
18832 if test "x$ac_cv_func_renameat" = xyes
18833 then :
18834 printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h
18835
18836 fi
18837 ac_fn_c_check_func "$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn"
18838 if test "x$ac_cv_func_rtpSpawn" = xyes
18839 then :
18840 printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h
18841
18842 fi
18843 ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
18844 if test "x$ac_cv_func_sched_get_priority_max" = xyes
18845 then :
18846 printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h
18847
18848 fi
18849 ac_fn_c_check_func "$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval"
18850 if test "x$ac_cv_func_sched_rr_get_interval" = xyes
18851 then :
18852 printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h
18853
18854 fi
18855 ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
18856 if test "x$ac_cv_func_sched_setaffinity" = xyes
18857 then :
18858 printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
18859
18860 fi
18861 ac_fn_c_check_func "$LINENO" "sched_setparam" "ac_cv_func_sched_setparam"
18862 if test "x$ac_cv_func_sched_setparam" = xyes
18863 then :
18864 printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h
18865
18866 fi
18867 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
18868 if test "x$ac_cv_func_sched_setscheduler" = xyes
18869 then :
18870 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
18871
18872 fi
18873 ac_fn_c_check_func "$LINENO" "sem_clockwait" "ac_cv_func_sem_clockwait"
18874 if test "x$ac_cv_func_sem_clockwait" = xyes
18875 then :
18876 printf "%s\n" "#define HAVE_SEM_CLOCKWAIT 1" >>confdefs.h
18877
18878 fi
18879 ac_fn_c_check_func "$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue"
18880 if test "x$ac_cv_func_sem_getvalue" = xyes
18881 then :
18882 printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h
18883
18884 fi
18885 ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open"
18886 if test "x$ac_cv_func_sem_open" = xyes
18887 then :
18888 printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h
18889
18890 fi
18891 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
18892 if test "x$ac_cv_func_sem_timedwait" = xyes
18893 then :
18894 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
18895
18896 fi
18897 ac_fn_c_check_func "$LINENO" "sem_unlink" "ac_cv_func_sem_unlink"
18898 if test "x$ac_cv_func_sem_unlink" = xyes
18899 then :
18900 printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h
18901
18902 fi
18903 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
18904 if test "x$ac_cv_func_sendfile" = xyes
18905 then :
18906 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
18907
18908 fi
18909 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
18910 if test "x$ac_cv_func_setegid" = xyes
18911 then :
18912 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
18913
18914 fi
18915 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
18916 if test "x$ac_cv_func_seteuid" = xyes
18917 then :
18918 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
18919
18920 fi
18921 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
18922 if test "x$ac_cv_func_setgid" = xyes
18923 then :
18924 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
18925
18926 fi
18927 ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname"
18928 if test "x$ac_cv_func_sethostname" = xyes
18929 then :
18930 printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h
18931
18932 fi
18933 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
18934 if test "x$ac_cv_func_setitimer" = xyes
18935 then :
18936 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
18937
18938 fi
18939 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18940 if test "x$ac_cv_func_setlocale" = xyes
18941 then :
18942 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
18943
18944 fi
18945 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
18946 if test "x$ac_cv_func_setpgid" = xyes
18947 then :
18948 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
18949
18950 fi
18951 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
18952 if test "x$ac_cv_func_setpgrp" = xyes
18953 then :
18954 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
18955
18956 fi
18957 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
18958 if test "x$ac_cv_func_setpriority" = xyes
18959 then :
18960 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h
18961
18962 fi
18963 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18964 if test "x$ac_cv_func_setregid" = xyes
18965 then :
18966 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
18967
18968 fi
18969 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18970 if test "x$ac_cv_func_setresgid" = xyes
18971 then :
18972 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
18973
18974 fi
18975 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
18976 if test "x$ac_cv_func_setresuid" = xyes
18977 then :
18978 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
18979
18980 fi
18981 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
18982 if test "x$ac_cv_func_setreuid" = xyes
18983 then :
18984 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
18985
18986 fi
18987 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
18988 if test "x$ac_cv_func_setsid" = xyes
18989 then :
18990 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
18991
18992 fi
18993 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
18994 if test "x$ac_cv_func_setuid" = xyes
18995 then :
18996 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
18997
18998 fi
18999 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
19000 if test "x$ac_cv_func_setvbuf" = xyes
19001 then :
19002 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
19003
19004 fi
19005 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
19006 if test "x$ac_cv_func_shutdown" = xyes
19007 then :
19008 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
19009
19010 fi
19011 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
19012 if test "x$ac_cv_func_sigaction" = xyes
19013 then :
19014 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
19015
19016 fi
19017 ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
19018 if test "x$ac_cv_func_sigaltstack" = xyes
19019 then :
19020 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
19021
19022 fi
19023 ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset"
19024 if test "x$ac_cv_func_sigfillset" = xyes
19025 then :
19026 printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h
19027
19028 fi
19029 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
19030 if test "x$ac_cv_func_siginterrupt" = xyes
19031 then :
19032 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
19033
19034 fi
19035 ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending"
19036 if test "x$ac_cv_func_sigpending" = xyes
19037 then :
19038 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
19039
19040 fi
19041 ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse"
19042 if test "x$ac_cv_func_sigrelse" = xyes
19043 then :
19044 printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h
19045
19046 fi
19047 ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
19048 if test "x$ac_cv_func_sigtimedwait" = xyes
19049 then :
19050 printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
19051
19052 fi
19053 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
19054 if test "x$ac_cv_func_sigwait" = xyes
19055 then :
19056 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
19057
19058 fi
19059 ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo"
19060 if test "x$ac_cv_func_sigwaitinfo" = xyes
19061 then :
19062 printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h
19063
19064 fi
19065 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19066 if test "x$ac_cv_func_snprintf" = xyes
19067 then :
19068 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
19069
19070 fi
19071 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
19072 if test "x$ac_cv_func_splice" = xyes
19073 then :
19074 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
19075
19076 fi
19077 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19078 if test "x$ac_cv_func_strftime" = xyes
19079 then :
19080 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
19081
19082 fi
19083 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19084 if test "x$ac_cv_func_strlcpy" = xyes
19085 then :
19086 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
19087
19088 fi
19089 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
19090 if test "x$ac_cv_func_strsignal" = xyes
19091 then :
19092 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
19093
19094 fi
19095 ac_fn_c_check_func "$LINENO" "symlinkat" "ac_cv_func_symlinkat"
19096 if test "x$ac_cv_func_symlinkat" = xyes
19097 then :
19098 printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h
19099
19100 fi
19101 ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync"
19102 if test "x$ac_cv_func_sync" = xyes
19103 then :
19104 printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h
19105
19106 fi
19107 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
19108 if test "x$ac_cv_func_sysconf" = xyes
19109 then :
19110 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
19111
19112 fi
19113 ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
19114 if test "x$ac_cv_func_tcgetpgrp" = xyes
19115 then :
19116 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h
19117
19118 fi
19119 ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
19120 if test "x$ac_cv_func_tcsetpgrp" = xyes
19121 then :
19122 printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h
19123
19124 fi
19125 ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam"
19126 if test "x$ac_cv_func_tempnam" = xyes
19127 then :
19128 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h
19129
19130 fi
19131 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
19132 if test "x$ac_cv_func_timegm" = xyes
19133 then :
19134 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
19135
19136 fi
19137 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
19138 if test "x$ac_cv_func_times" = xyes
19139 then :
19140 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
19141
19142 fi
19143 ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile"
19144 if test "x$ac_cv_func_tmpfile" = xyes
19145 then :
19146 printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h
19147
19148 fi
19149 ac_fn_c_check_func "$LINENO" "tmpnam" "ac_cv_func_tmpnam"
19150 if test "x$ac_cv_func_tmpnam" = xyes
19151 then :
19152 printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h
19153
19154 fi
19155 ac_fn_c_check_func "$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r"
19156 if test "x$ac_cv_func_tmpnam_r" = xyes
19157 then :
19158 printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h
19159
19160 fi
19161 ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate"
19162 if test "x$ac_cv_func_truncate" = xyes
19163 then :
19164 printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h
19165
19166 fi
19167 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
19168 if test "x$ac_cv_func_ttyname_r" = xyes
19169 then :
19170 printf "%s\n" "#define HAVE_TTYNAME_R 1" >>confdefs.h
19171
19172 fi
19173 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
19174 if test "x$ac_cv_func_umask" = xyes
19175 then :
19176 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
19177
19178 fi
19179 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
19180 if test "x$ac_cv_func_uname" = xyes
19181 then :
19182 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
19183
19184 fi
19185 ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"
19186 if test "x$ac_cv_func_unlinkat" = xyes
19187 then :
19188 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
19189
19190 fi
19191 ac_fn_c_check_func "$LINENO" "unlockpt" "ac_cv_func_unlockpt"
19192 if test "x$ac_cv_func_unlockpt" = xyes
19193 then :
19194 printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h
19195
19196 fi
19197 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
19198 if test "x$ac_cv_func_utimensat" = xyes
19199 then :
19200 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
19201
19202 fi
19203 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
19204 if test "x$ac_cv_func_utimes" = xyes
19205 then :
19206 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
19207
19208 fi
19209 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
19210 if test "x$ac_cv_func_vfork" = xyes
19211 then :
19212 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
19213
19214 fi
19215 ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait"
19216 if test "x$ac_cv_func_wait" = xyes
19217 then :
19218 printf "%s\n" "#define HAVE_WAIT 1" >>confdefs.h
19219
19220 fi
19221 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
19222 if test "x$ac_cv_func_wait3" = xyes
19223 then :
19224 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
19225
19226 fi
19227 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
19228 if test "x$ac_cv_func_wait4" = xyes
19229 then :
19230 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
19231
19232 fi
19233 ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
19234 if test "x$ac_cv_func_waitid" = xyes
19235 then :
19236 printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h
19237
19238 fi
19239 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
19240 if test "x$ac_cv_func_waitpid" = xyes
19241 then :
19242 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
19243
19244 fi
19245 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
19246 if test "x$ac_cv_func_wcscoll" = xyes
19247 then :
19248 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h
19249
19250 fi
19251 ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime"
19252 if test "x$ac_cv_func_wcsftime" = xyes
19253 then :
19254 printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h
19255
19256 fi
19257 ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm"
19258 if test "x$ac_cv_func_wcsxfrm" = xyes
19259 then :
19260 printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h
19261
19262 fi
19263 ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
19264 if test "x$ac_cv_func_wmemcmp" = xyes
19265 then :
19266 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
19267
19268 fi
19269 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
19270 if test "x$ac_cv_func_writev" = xyes
19271 then :
19272 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
19273
19274 fi
19275
19276
19277 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
19278 # links. Some libc implementations have a stub lchmod implementation that always
19279 # returns an error.
19280 if test "$MACHDEP" != linux; then
19281 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
19282 if test "x$ac_cv_func_lchmod" = xyes
19283 then :
19284 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
19285
19286 fi
19287
19288 fi
19289
19290 # iOS defines some system methods that can be linked (so they are
19291 # found by configure), but either raise a compilation error (because the
19292 # header definition prevents usage - autoconf doesn't use the headers), or
19293 # raise an error if used at runtime. Force these symbols off.
19294 if test "$ac_sys_system" != "iOS" ; then
19295 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19296 if test "x$ac_cv_func_getentropy" = xyes
19297 then :
19298 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
19299
19300 fi
19301 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
19302 if test "x$ac_cv_func_getgroups" = xyes
19303 then :
19304 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
19305
19306 fi
19307 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
19308 if test "x$ac_cv_func_system" = xyes
19309 then :
19310 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
19311
19312 fi
19313
19314 fi
19315
19316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
19317 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
19318 if test ${ac_cv_c_undeclared_builtin_options+y}
19319 then :
19320 printf %s "(cached) " >&6
19321 else $as_nop
19322 ac_save_CFLAGS=$CFLAGS
19323 ac_cv_c_undeclared_builtin_options='cannot detect'
19324 for ac_arg in '' -fno-builtin; do
19325 CFLAGS="$ac_save_CFLAGS $ac_arg"
19326 # This test program should *not* compile successfully.
19327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328 /* end confdefs.h. */
19329
19330 int
19331 main (void)
19332 {
19333 (void) strchr;
19334 ;
19335 return 0;
19336 }
19337 _ACEOF
19338 if ac_fn_c_try_compile "$LINENO"
19339 then :
19340
19341 else $as_nop
19342 # This test program should compile successfully.
19343 # No library function is consistently available on
19344 # freestanding implementations, so test against a dummy
19345 # declaration. Include always-available headers on the
19346 # off chance that they somehow elicit warnings.
19347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348 /* end confdefs.h. */
19349 #include <float.h>
19350 #include <limits.h>
19351 #include <stdarg.h>
19352 #include <stddef.h>
19353 extern void ac_decl (int, char *);
19354
19355 int
19356 main (void)
19357 {
19358 (void) ac_decl (0, (char *) 0);
19359 (void) ac_decl;
19360
19361 ;
19362 return 0;
19363 }
19364 _ACEOF
19365 if ac_fn_c_try_compile "$LINENO"
19366 then :
19367 if test x"$ac_arg" = x
19368 then :
19369 ac_cv_c_undeclared_builtin_options='none needed'
19370 else $as_nop
19371 ac_cv_c_undeclared_builtin_options=$ac_arg
19372 fi
19373 break
19374 fi
19375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19376 fi
19377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19378 done
19379 CFLAGS=$ac_save_CFLAGS
19380
19381 fi
19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
19383 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
19384 case $ac_cv_c_undeclared_builtin_options in #(
19385 'cannot detect') :
19386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19387 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19388 as_fn_error $? "cannot make $CC report undeclared builtins
19389 See \`config.log' for more details" "$LINENO" 5; } ;; #(
19390 'none needed') :
19391 ac_c_undeclared_builtin_options='' ;; #(
19392 *) :
19393 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
19394 esac
19395
19396 ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
19397 #include <dirent.h>
19398 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19399 if test "x$ac_cv_have_decl_dirfd" = xyes
19400 then :
19401
19402 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
19403
19404 fi
19405
19406 # For some functions, having a definition is not sufficient, since
19407 # we want to take their address.
19408
19409
19410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
19411 printf %s "checking for chroot... " >&6; }
19412 if test ${ac_cv_func_chroot+y}
19413 then :
19414 printf %s "(cached) " >&6
19415 else $as_nop
19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h. */
19418 #include <unistd.h>
19419 int
19420 main (void)
19421 {
19422 void *x=chroot
19423 ;
19424 return 0;
19425 }
19426 _ACEOF
19427 if ac_fn_c_try_compile "$LINENO"
19428 then :
19429 ac_cv_func_chroot=yes
19430 else $as_nop
19431 ac_cv_func_chroot=no
19432 fi
19433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19434
19435 fi
19436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chroot" >&5
19437 printf "%s\n" "$ac_cv_func_chroot" >&6; }
19438 if test "x$ac_cv_func_chroot" = xyes
19439 then :
19440
19441 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
19442
19443 fi
19444
19445
19446
19447
19448
19449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5
19450 printf %s "checking for link... " >&6; }
19451 if test ${ac_cv_func_link+y}
19452 then :
19453 printf %s "(cached) " >&6
19454 else $as_nop
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h. */
19457 #include <unistd.h>
19458 int
19459 main (void)
19460 {
19461 void *x=link
19462 ;
19463 return 0;
19464 }
19465 _ACEOF
19466 if ac_fn_c_try_compile "$LINENO"
19467 then :
19468 ac_cv_func_link=yes
19469 else $as_nop
19470 ac_cv_func_link=no
19471 fi
19472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19473
19474 fi
19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_link" >&5
19476 printf "%s\n" "$ac_cv_func_link" >&6; }
19477 if test "x$ac_cv_func_link" = xyes
19478 then :
19479
19480 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
19481
19482 fi
19483
19484
19485
19486
19487
19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
19489 printf %s "checking for symlink... " >&6; }
19490 if test ${ac_cv_func_symlink+y}
19491 then :
19492 printf %s "(cached) " >&6
19493 else $as_nop
19494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19496 #include <unistd.h>
19497 int
19498 main (void)
19499 {
19500 void *x=symlink
19501 ;
19502 return 0;
19503 }
19504 _ACEOF
19505 if ac_fn_c_try_compile "$LINENO"
19506 then :
19507 ac_cv_func_symlink=yes
19508 else $as_nop
19509 ac_cv_func_symlink=no
19510 fi
19511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19512
19513 fi
19514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_symlink" >&5
19515 printf "%s\n" "$ac_cv_func_symlink" >&6; }
19516 if test "x$ac_cv_func_symlink" = xyes
19517 then :
19518
19519 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
19520
19521 fi
19522
19523
19524
19525
19526
19527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
19528 printf %s "checking for fchdir... " >&6; }
19529 if test ${ac_cv_func_fchdir+y}
19530 then :
19531 printf %s "(cached) " >&6
19532 else $as_nop
19533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19535 #include <unistd.h>
19536 int
19537 main (void)
19538 {
19539 void *x=fchdir
19540 ;
19541 return 0;
19542 }
19543 _ACEOF
19544 if ac_fn_c_try_compile "$LINENO"
19545 then :
19546 ac_cv_func_fchdir=yes
19547 else $as_nop
19548 ac_cv_func_fchdir=no
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19551
19552 fi
19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fchdir" >&5
19554 printf "%s\n" "$ac_cv_func_fchdir" >&6; }
19555 if test "x$ac_cv_func_fchdir" = xyes
19556 then :
19557
19558 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
19559
19560 fi
19561
19562
19563
19564
19565
19566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
19567 printf %s "checking for fsync... " >&6; }
19568 if test ${ac_cv_func_fsync+y}
19569 then :
19570 printf %s "(cached) " >&6
19571 else $as_nop
19572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19573 /* end confdefs.h. */
19574 #include <unistd.h>
19575 int
19576 main (void)
19577 {
19578 void *x=fsync
19579 ;
19580 return 0;
19581 }
19582 _ACEOF
19583 if ac_fn_c_try_compile "$LINENO"
19584 then :
19585 ac_cv_func_fsync=yes
19586 else $as_nop
19587 ac_cv_func_fsync=no
19588 fi
19589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19590
19591 fi
19592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fsync" >&5
19593 printf "%s\n" "$ac_cv_func_fsync" >&6; }
19594 if test "x$ac_cv_func_fsync" = xyes
19595 then :
19596
19597 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
19598
19599 fi
19600
19601
19602
19603
19604
19605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
19606 printf %s "checking for fdatasync... " >&6; }
19607 if test ${ac_cv_func_fdatasync+y}
19608 then :
19609 printf %s "(cached) " >&6
19610 else $as_nop
19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h. */
19613 #include <unistd.h>
19614 int
19615 main (void)
19616 {
19617 void *x=fdatasync
19618 ;
19619 return 0;
19620 }
19621 _ACEOF
19622 if ac_fn_c_try_compile "$LINENO"
19623 then :
19624 ac_cv_func_fdatasync=yes
19625 else $as_nop
19626 ac_cv_func_fdatasync=no
19627 fi
19628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19629
19630 fi
19631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fdatasync" >&5
19632 printf "%s\n" "$ac_cv_func_fdatasync" >&6; }
19633 if test "x$ac_cv_func_fdatasync" = xyes
19634 then :
19635
19636 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
19637
19638 fi
19639
19640
19641
19642
19643
19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create" >&5
19645 printf %s "checking for epoll_create... " >&6; }
19646 if test ${ac_cv_func_epoll_create+y}
19647 then :
19648 printf %s "(cached) " >&6
19649 else $as_nop
19650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h. */
19652 #include <sys/epoll.h>
19653 int
19654 main (void)
19655 {
19656 void *x=epoll_create
19657 ;
19658 return 0;
19659 }
19660 _ACEOF
19661 if ac_fn_c_try_compile "$LINENO"
19662 then :
19663 ac_cv_func_epoll_create=yes
19664 else $as_nop
19665 ac_cv_func_epoll_create=no
19666 fi
19667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19668
19669 fi
19670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create" >&5
19671 printf "%s\n" "$ac_cv_func_epoll_create" >&6; }
19672 if test "x$ac_cv_func_epoll_create" = xyes
19673 then :
19674
19675 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
19676
19677 fi
19678
19679
19680
19681
19682
19683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
19684 printf %s "checking for epoll_create1... " >&6; }
19685 if test ${ac_cv_func_epoll_create1+y}
19686 then :
19687 printf %s "(cached) " >&6
19688 else $as_nop
19689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19691 #include <sys/epoll.h>
19692 int
19693 main (void)
19694 {
19695 void *x=epoll_create1
19696 ;
19697 return 0;
19698 }
19699 _ACEOF
19700 if ac_fn_c_try_compile "$LINENO"
19701 then :
19702 ac_cv_func_epoll_create1=yes
19703 else $as_nop
19704 ac_cv_func_epoll_create1=no
19705 fi
19706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19707
19708 fi
19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create1" >&5
19710 printf "%s\n" "$ac_cv_func_epoll_create1" >&6; }
19711 if test "x$ac_cv_func_epoll_create1" = xyes
19712 then :
19713
19714 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
19715
19716 fi
19717
19718
19719
19720
19721
19722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
19723 printf %s "checking for kqueue... " >&6; }
19724 if test ${ac_cv_func_kqueue+y}
19725 then :
19726 printf %s "(cached) " >&6
19727 else $as_nop
19728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19729 /* end confdefs.h. */
19730
19731 #include <sys/types.h>
19732 #include <sys/event.h>
19733
19734 int
19735 main (void)
19736 {
19737 void *x=kqueue
19738 ;
19739 return 0;
19740 }
19741 _ACEOF
19742 if ac_fn_c_try_compile "$LINENO"
19743 then :
19744 ac_cv_func_kqueue=yes
19745 else $as_nop
19746 ac_cv_func_kqueue=no
19747 fi
19748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19749
19750 fi
19751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_kqueue" >&5
19752 printf "%s\n" "$ac_cv_func_kqueue" >&6; }
19753 if test "x$ac_cv_func_kqueue" = xyes
19754 then :
19755
19756 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
19757
19758 fi
19759
19760
19761
19762
19763
19764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
19765 printf %s "checking for prlimit... " >&6; }
19766 if test ${ac_cv_func_prlimit+y}
19767 then :
19768 printf %s "(cached) " >&6
19769 else $as_nop
19770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19771 /* end confdefs.h. */
19772
19773 #include <sys/time.h>
19774 #include <sys/resource.h>
19775
19776 int
19777 main (void)
19778 {
19779 void *x=prlimit
19780 ;
19781 return 0;
19782 }
19783 _ACEOF
19784 if ac_fn_c_try_compile "$LINENO"
19785 then :
19786 ac_cv_func_prlimit=yes
19787 else $as_nop
19788 ac_cv_func_prlimit=no
19789 fi
19790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19791
19792 fi
19793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_prlimit" >&5
19794 printf "%s\n" "$ac_cv_func_prlimit" >&6; }
19795 if test "x$ac_cv_func_prlimit" = xyes
19796 then :
19797
19798 printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
19799
19800 fi
19801
19802
19803
19804
19805
19806
19807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5
19808 printf %s "checking for _dyld_shared_cache_contains_path... " >&6; }
19809 if test ${ac_cv_func__dyld_shared_cache_contains_path+y}
19810 then :
19811 printf %s "(cached) " >&6
19812 else $as_nop
19813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19814 /* end confdefs.h. */
19815 #include <mach-o/dyld.h>
19816 int
19817 main (void)
19818 {
19819 void *x=_dyld_shared_cache_contains_path
19820 ;
19821 return 0;
19822 }
19823 _ACEOF
19824 if ac_fn_c_try_compile "$LINENO"
19825 then :
19826 ac_cv_func__dyld_shared_cache_contains_path=yes
19827 else $as_nop
19828 ac_cv_func__dyld_shared_cache_contains_path=no
19829 fi
19830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19831
19832 fi
19833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__dyld_shared_cache_contains_path" >&5
19834 printf "%s\n" "$ac_cv_func__dyld_shared_cache_contains_path" >&6; }
19835 if test "x$ac_cv_func__dyld_shared_cache_contains_path" = xyes
19836 then :
19837
19838 printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h
19839
19840 fi
19841
19842
19843
19844
19845
19846
19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
19848 printf %s "checking for memfd_create... " >&6; }
19849 if test ${ac_cv_func_memfd_create+y}
19850 then :
19851 printf %s "(cached) " >&6
19852 else $as_nop
19853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19854 /* end confdefs.h. */
19855
19856 #ifdef HAVE_SYS_MMAN_H
19857 #include <sys/mman.h>
19858 #endif
19859 #ifdef HAVE_SYS_MEMFD_H
19860 #include <sys/memfd.h>
19861 #endif
19862
19863 int
19864 main (void)
19865 {
19866 void *x=memfd_create
19867 ;
19868 return 0;
19869 }
19870 _ACEOF
19871 if ac_fn_c_try_compile "$LINENO"
19872 then :
19873 ac_cv_func_memfd_create=yes
19874 else $as_nop
19875 ac_cv_func_memfd_create=no
19876 fi
19877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19878
19879 fi
19880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memfd_create" >&5
19881 printf "%s\n" "$ac_cv_func_memfd_create" >&6; }
19882 if test "x$ac_cv_func_memfd_create" = xyes
19883 then :
19884
19885 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
19886
19887 fi
19888
19889
19890
19891
19892
19893
19894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
19895 printf %s "checking for eventfd... " >&6; }
19896 if test ${ac_cv_func_eventfd+y}
19897 then :
19898 printf %s "(cached) " >&6
19899 else $as_nop
19900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19901 /* end confdefs.h. */
19902
19903 #ifdef HAVE_SYS_EVENTFD_H
19904 #include <sys/eventfd.h>
19905 #endif
19906
19907 int
19908 main (void)
19909 {
19910 void *x=eventfd
19911 ;
19912 return 0;
19913 }
19914 _ACEOF
19915 if ac_fn_c_try_compile "$LINENO"
19916 then :
19917 ac_cv_func_eventfd=yes
19918 else $as_nop
19919 ac_cv_func_eventfd=no
19920 fi
19921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19922
19923 fi
19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_eventfd" >&5
19925 printf "%s\n" "$ac_cv_func_eventfd" >&6; }
19926 if test "x$ac_cv_func_eventfd" = xyes
19927 then :
19928
19929 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
19930
19931 fi
19932
19933
19934
19935
19936
19937
19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_create" >&5
19939 printf %s "checking for timerfd_create... " >&6; }
19940 if test ${ac_cv_func_timerfd_create+y}
19941 then :
19942 printf %s "(cached) " >&6
19943 else $as_nop
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19946
19947 #ifdef HAVE_SYS_TIMERFD_H
19948 #include <sys/timerfd.h>
19949 #endif
19950
19951 int
19952 main (void)
19953 {
19954 void *x=timerfd_create
19955 ;
19956 return 0;
19957 }
19958 _ACEOF
19959 if ac_fn_c_try_compile "$LINENO"
19960 then :
19961 ac_cv_func_timerfd_create=yes
19962 else $as_nop
19963 ac_cv_func_timerfd_create=no
19964 fi
19965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19966
19967 fi
19968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_timerfd_create" >&5
19969 printf "%s\n" "$ac_cv_func_timerfd_create" >&6; }
19970 if test "x$ac_cv_func_timerfd_create" = xyes
19971 then :
19972
19973 printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h
19974
19975 fi
19976
19977
19978
19979
19980 # On some systems (eg. FreeBSD 5), we would find a definition of the
19981 # functions ctermid_r, setgroups in the library, but no prototype
19982 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
19983 # address to avoid compiler warnings and potential miscompilations
19984 # because of the missing prototypes.
19985
19986
19987
19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
19989 printf %s "checking for ctermid_r... " >&6; }
19990 if test ${ac_cv_func_ctermid_r+y}
19991 then :
19992 printf %s "(cached) " >&6
19993 else $as_nop
19994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19995 /* end confdefs.h. */
19996 #include <stdio.h>
19997 int
19998 main (void)
19999 {
20000 void *x=ctermid_r
20001 ;
20002 return 0;
20003 }
20004 _ACEOF
20005 if ac_fn_c_try_compile "$LINENO"
20006 then :
20007 ac_cv_func_ctermid_r=yes
20008 else $as_nop
20009 ac_cv_func_ctermid_r=no
20010 fi
20011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20012
20013 fi
20014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctermid_r" >&5
20015 printf "%s\n" "$ac_cv_func_ctermid_r" >&6; }
20016 if test "x$ac_cv_func_ctermid_r" = xyes
20017 then :
20018
20019 printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h
20020
20021 fi
20022
20023
20024
20025
20026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
20027 printf %s "checking for flock declaration... " >&6; }
20028 if test ${ac_cv_flock_decl+y}
20029 then :
20030 printf %s "(cached) " >&6
20031 else $as_nop
20032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h. */
20034 #include <sys/file.h>
20035 int
20036 main (void)
20037 {
20038 void* p = flock
20039
20040 ;
20041 return 0;
20042 }
20043 _ACEOF
20044 if ac_fn_c_try_compile "$LINENO"
20045 then :
20046 ac_cv_flock_decl=yes
20047 else $as_nop
20048 ac_cv_flock_decl=no
20049
20050 fi
20051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20052
20053 fi
20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
20055 printf "%s\n" "$ac_cv_flock_decl" >&6; }
20056 if test "x$ac_cv_flock_decl" = xyes
20057 then :
20058
20059 for ac_func in flock
20060 do :
20061 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
20062 if test "x$ac_cv_func_flock" = xyes
20063 then :
20064 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
20065
20066 else $as_nop
20067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
20068 printf %s "checking for flock in -lbsd... " >&6; }
20069 if test ${ac_cv_lib_bsd_flock+y}
20070 then :
20071 printf %s "(cached) " >&6
20072 else $as_nop
20073 ac_check_lib_save_LIBS=$LIBS
20074 LIBS="-lbsd $LIBS"
20075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h. */
20077
20078 /* Override any GCC internal prototype to avoid an error.
20079 Use char because int might match the return type of a GCC
20080 builtin and then its argument prototype would still apply. */
20081 char flock ();
20082 int
20083 main (void)
20084 {
20085 return flock ();
20086 ;
20087 return 0;
20088 }
20089 _ACEOF
20090 if ac_fn_c_try_link "$LINENO"
20091 then :
20092 ac_cv_lib_bsd_flock=yes
20093 else $as_nop
20094 ac_cv_lib_bsd_flock=no
20095 fi
20096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20097 conftest$ac_exeext conftest.$ac_ext
20098 LIBS=$ac_check_lib_save_LIBS
20099 fi
20100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
20101 printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; }
20102 if test "x$ac_cv_lib_bsd_flock" = xyes
20103 then :
20104 FCNTL_LIBS="-lbsd"
20105 fi
20106
20107 fi
20108
20109 done
20110 fi
20111
20112
20113
20114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
20115 printf %s "checking for getpagesize... " >&6; }
20116 if test ${ac_cv_func_getpagesize+y}
20117 then :
20118 printf %s "(cached) " >&6
20119 else $as_nop
20120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20121 /* end confdefs.h. */
20122 #include <unistd.h>
20123 int
20124 main (void)
20125 {
20126 void *x=getpagesize
20127 ;
20128 return 0;
20129 }
20130 _ACEOF
20131 if ac_fn_c_try_compile "$LINENO"
20132 then :
20133 ac_cv_func_getpagesize=yes
20134 else $as_nop
20135 ac_cv_func_getpagesize=no
20136 fi
20137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20138
20139 fi
20140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpagesize" >&5
20141 printf "%s\n" "$ac_cv_func_getpagesize" >&6; }
20142 if test "x$ac_cv_func_getpagesize" = xyes
20143 then :
20144
20145 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
20146
20147 fi
20148
20149
20150
20151
20152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
20153 printf %s "checking for broken unsetenv... " >&6; }
20154 if test ${ac_cv_broken_unsetenv+y}
20155 then :
20156 printf %s "(cached) " >&6
20157 else $as_nop
20158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159 /* end confdefs.h. */
20160 #include <stdlib.h>
20161 int
20162 main (void)
20163 {
20164 int res = unsetenv("DUMMY")
20165 ;
20166 return 0;
20167 }
20168 _ACEOF
20169 if ac_fn_c_try_compile "$LINENO"
20170 then :
20171 ac_cv_broken_unsetenv=no
20172 else $as_nop
20173 ac_cv_broken_unsetenv=yes
20174
20175 fi
20176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20177
20178 fi
20179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_unsetenv" >&5
20180 printf "%s\n" "$ac_cv_broken_unsetenv" >&6; }
20181 if test "x$ac_cv_broken_unsetenv" = xyes
20182 then :
20183
20184
20185 printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
20186
20187
20188 fi
20189
20190 for ac_prog in true
20191 do
20192 # Extract the first word of "$ac_prog", so it can be a program name with args.
20193 set dummy $ac_prog; ac_word=$2
20194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20195 printf %s "checking for $ac_word... " >&6; }
20196 if test ${ac_cv_prog_TRUE+y}
20197 then :
20198 printf %s "(cached) " >&6
20199 else $as_nop
20200 if test -n "$TRUE"; then
20201 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
20202 else
20203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20204 for as_dir in $PATH
20205 do
20206 IFS=$as_save_IFS
20207 case $as_dir in #(((
20208 '') as_dir=./ ;;
20209 */) ;;
20210 *) as_dir=$as_dir/ ;;
20211 esac
20212 for ac_exec_ext in '' $ac_executable_extensions; do
20213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20214 ac_cv_prog_TRUE="$ac_prog"
20215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20216 break 2
20217 fi
20218 done
20219 done
20220 IFS=$as_save_IFS
20221
20222 fi
20223 fi
20224 TRUE=$ac_cv_prog_TRUE
20225 if test -n "$TRUE"; then
20226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
20227 printf "%s\n" "$TRUE" >&6; }
20228 else
20229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20230 printf "%s\n" "no" >&6; }
20231 fi
20232
20233
20234 test -n "$TRUE" && break
20235 done
20236 test -n "$TRUE" || TRUE="/bin/true"
20237
20238
20239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
20240 printf %s "checking for inet_aton in -lc... " >&6; }
20241 if test ${ac_cv_lib_c_inet_aton+y}
20242 then :
20243 printf %s "(cached) " >&6
20244 else $as_nop
20245 ac_check_lib_save_LIBS=$LIBS
20246 LIBS="-lc $LIBS"
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h. */
20249
20250 /* Override any GCC internal prototype to avoid an error.
20251 Use char because int might match the return type of a GCC
20252 builtin and then its argument prototype would still apply. */
20253 char inet_aton ();
20254 int
20255 main (void)
20256 {
20257 return inet_aton ();
20258 ;
20259 return 0;
20260 }
20261 _ACEOF
20262 if ac_fn_c_try_link "$LINENO"
20263 then :
20264 ac_cv_lib_c_inet_aton=yes
20265 else $as_nop
20266 ac_cv_lib_c_inet_aton=no
20267 fi
20268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20269 conftest$ac_exeext conftest.$ac_ext
20270 LIBS=$ac_check_lib_save_LIBS
20271 fi
20272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
20273 printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; }
20274 if test "x$ac_cv_lib_c_inet_aton" = xyes
20275 then :
20276 $ac_cv_prog_TRUE
20277 else $as_nop
20278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20279 printf %s "checking for inet_aton in -lresolv... " >&6; }
20280 if test ${ac_cv_lib_resolv_inet_aton+y}
20281 then :
20282 printf %s "(cached) " >&6
20283 else $as_nop
20284 ac_check_lib_save_LIBS=$LIBS
20285 LIBS="-lresolv $LIBS"
20286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20287 /* end confdefs.h. */
20288
20289 /* Override any GCC internal prototype to avoid an error.
20290 Use char because int might match the return type of a GCC
20291 builtin and then its argument prototype would still apply. */
20292 char inet_aton ();
20293 int
20294 main (void)
20295 {
20296 return inet_aton ();
20297 ;
20298 return 0;
20299 }
20300 _ACEOF
20301 if ac_fn_c_try_link "$LINENO"
20302 then :
20303 ac_cv_lib_resolv_inet_aton=yes
20304 else $as_nop
20305 ac_cv_lib_resolv_inet_aton=no
20306 fi
20307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20308 conftest$ac_exeext conftest.$ac_ext
20309 LIBS=$ac_check_lib_save_LIBS
20310 fi
20311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20312 printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; }
20313 if test "x$ac_cv_lib_resolv_inet_aton" = xyes
20314 then :
20315 printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
20316
20317 LIBS="-lresolv $LIBS"
20318
20319 fi
20320
20321
20322 fi
20323
20324
20325 # On Tru64, chflags seems to be present, but calling it will
20326 # exit Python
20327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
20328 printf %s "checking for chflags... " >&6; }
20329 if test ${ac_cv_have_chflags+y}
20330 then :
20331 printf %s "(cached) " >&6
20332 else $as_nop
20333 if test "$cross_compiling" = yes
20334 then :
20335 ac_cv_have_chflags=cross
20336 else $as_nop
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20339
20340 #include <sys/stat.h>
20341 #include <unistd.h>
20342 int main(int argc, char *argv[])
20343 {
20344 if(chflags(argv[0], 0) != 0)
20345 return 1;
20346 return 0;
20347 }
20348
20349 _ACEOF
20350 if ac_fn_c_try_run "$LINENO"
20351 then :
20352 ac_cv_have_chflags=yes
20353 else $as_nop
20354 ac_cv_have_chflags=no
20355 fi
20356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20357 conftest.$ac_objext conftest.beam conftest.$ac_ext
20358 fi
20359
20360
20361 fi
20362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
20363 printf "%s\n" "$ac_cv_have_chflags" >&6; }
20364 if test "$ac_cv_have_chflags" = cross ; then
20365 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
20366 if test "x$ac_cv_func_chflags" = xyes
20367 then :
20368 ac_cv_have_chflags="yes"
20369 else $as_nop
20370 ac_cv_have_chflags="no"
20371 fi
20372
20373 fi
20374 if test "$ac_cv_have_chflags" = yes ; then
20375
20376 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
20377
20378 fi
20379
20380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
20381 printf %s "checking for lchflags... " >&6; }
20382 if test ${ac_cv_have_lchflags+y}
20383 then :
20384 printf %s "(cached) " >&6
20385 else $as_nop
20386 if test "$cross_compiling" = yes
20387 then :
20388 ac_cv_have_lchflags=cross
20389 else $as_nop
20390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20391 /* end confdefs.h. */
20392
20393 #include <sys/stat.h>
20394 #include <unistd.h>
20395 int main(int argc, char *argv[])
20396 {
20397 if(lchflags(argv[0], 0) != 0)
20398 return 1;
20399 return 0;
20400 }
20401
20402 _ACEOF
20403 if ac_fn_c_try_run "$LINENO"
20404 then :
20405 ac_cv_have_lchflags=yes
20406 else $as_nop
20407 ac_cv_have_lchflags=no
20408 fi
20409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20410 conftest.$ac_objext conftest.beam conftest.$ac_ext
20411 fi
20412
20413
20414 fi
20415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
20416 printf "%s\n" "$ac_cv_have_lchflags" >&6; }
20417 if test "$ac_cv_have_lchflags" = cross ; then
20418 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
20419 if test "x$ac_cv_func_lchflags" = xyes
20420 then :
20421 ac_cv_have_lchflags="yes"
20422 else $as_nop
20423 ac_cv_have_lchflags="no"
20424 fi
20425
20426 fi
20427 if test "$ac_cv_have_lchflags" = yes ; then
20428
20429 printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
20430
20431 fi
20432
20433
20434
20435
20436
20437
20438 if test "$ac_sys_system" = "Emscripten" -a -z "$ZLIB_CFLAGS" -a -z "$ZLIB_LIBS"
20439 then :
20440
20441 ZLIB_CFLAGS="-sUSE_ZLIB"
20442 ZLIB_LIBS="-sUSE_ZLIB"
20443
20444 fi
20445
20446
20447
20448
20449
20450 pkg_failed=no
20451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0" >&5
20452 printf %s "checking for zlib >= 1.2.0... " >&6; }
20453
20454 if test -n "$ZLIB_CFLAGS"; then
20455 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20456 elif test -n "$PKG_CONFIG"; then
20457 if test -n "$PKG_CONFIG" && \
20458 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
20459 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
20460 ac_status=$?
20461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20462 test $ac_status = 0; }; then
20463 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0" 2>/dev/null`
20464 test "x$?" != "x0" && pkg_failed=yes
20465 else
20466 pkg_failed=yes
20467 fi
20468 else
20469 pkg_failed=untried
20470 fi
20471 if test -n "$ZLIB_LIBS"; then
20472 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20473 elif test -n "$PKG_CONFIG"; then
20474 if test -n "$PKG_CONFIG" && \
20475 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
20476 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
20477 ac_status=$?
20478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20479 test $ac_status = 0; }; then
20480 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0" 2>/dev/null`
20481 test "x$?" != "x0" && pkg_failed=yes
20482 else
20483 pkg_failed=yes
20484 fi
20485 else
20486 pkg_failed=untried
20487 fi
20488
20489
20490
20491 if test $pkg_failed = yes; then
20492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20493 printf "%s\n" "no" >&6; }
20494
20495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20496 _pkg_short_errors_supported=yes
20497 else
20498 _pkg_short_errors_supported=no
20499 fi
20500 if test $_pkg_short_errors_supported = yes; then
20501 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
20502 else
20503 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
20504 fi
20505 # Put the nasty error message in config.log where it belongs
20506 echo "$ZLIB_PKG_ERRORS" >&5
20507
20508
20509 save_CFLAGS=$CFLAGS
20510 save_CPPFLAGS=$CPPFLAGS
20511 save_LDFLAGS=$LDFLAGS
20512 save_LIBS=$LIBS
20513
20514
20515 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
20516 LIBS="$LIBS $ZLIB_LIBS"
20517 for ac_header in zlib.h
20518 do :
20519 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20520 if test "x$ac_cv_header_zlib_h" = xyes
20521 then :
20522 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20523
20524 py_check_lib_save_LIBS=$LIBS
20525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20526 printf %s "checking for gzread in -lz... " >&6; }
20527 if test ${ac_cv_lib_z_gzread+y}
20528 then :
20529 printf %s "(cached) " >&6
20530 else $as_nop
20531 ac_check_lib_save_LIBS=$LIBS
20532 LIBS="-lz $LIBS"
20533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534 /* end confdefs.h. */
20535
20536 /* Override any GCC internal prototype to avoid an error.
20537 Use char because int might match the return type of a GCC
20538 builtin and then its argument prototype would still apply. */
20539 char gzread ();
20540 int
20541 main (void)
20542 {
20543 return gzread ();
20544 ;
20545 return 0;
20546 }
20547 _ACEOF
20548 if ac_fn_c_try_link "$LINENO"
20549 then :
20550 ac_cv_lib_z_gzread=yes
20551 else $as_nop
20552 ac_cv_lib_z_gzread=no
20553 fi
20554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20555 conftest$ac_exeext conftest.$ac_ext
20556 LIBS=$ac_check_lib_save_LIBS
20557 fi
20558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20559 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
20560 if test "x$ac_cv_lib_z_gzread" = xyes
20561 then :
20562 have_zlib=yes
20563 else $as_nop
20564 have_zlib=no
20565 fi
20566
20567 LIBS=$py_check_lib_save_LIBS
20568
20569
20570 else $as_nop
20571 have_zlib=no
20572 fi
20573
20574 done
20575 if test "x$have_zlib" = xyes
20576 then :
20577
20578 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
20579 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
20580 py_check_lib_save_LIBS=$LIBS
20581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
20582 printf %s "checking for inflateCopy in -lz... " >&6; }
20583 if test ${ac_cv_lib_z_inflateCopy+y}
20584 then :
20585 printf %s "(cached) " >&6
20586 else $as_nop
20587 ac_check_lib_save_LIBS=$LIBS
20588 LIBS="-lz $LIBS"
20589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20591
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20595 char inflateCopy ();
20596 int
20597 main (void)
20598 {
20599 return inflateCopy ();
20600 ;
20601 return 0;
20602 }
20603 _ACEOF
20604 if ac_fn_c_try_link "$LINENO"
20605 then :
20606 ac_cv_lib_z_inflateCopy=yes
20607 else $as_nop
20608 ac_cv_lib_z_inflateCopy=no
20609 fi
20610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20611 conftest$ac_exeext conftest.$ac_ext
20612 LIBS=$ac_check_lib_save_LIBS
20613 fi
20614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
20615 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
20616 if test "x$ac_cv_lib_z_inflateCopy" = xyes
20617 then :
20618 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20619
20620 fi
20621
20622 LIBS=$py_check_lib_save_LIBS
20623
20624
20625 fi
20626
20627 CFLAGS=$save_CFLAGS
20628 CPPFLAGS=$save_CPPFLAGS
20629 LDFLAGS=$save_LDFLAGS
20630 LIBS=$save_LIBS
20631
20632
20633
20634 elif test $pkg_failed = untried; then
20635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636 printf "%s\n" "no" >&6; }
20637
20638 save_CFLAGS=$CFLAGS
20639 save_CPPFLAGS=$CPPFLAGS
20640 save_LDFLAGS=$LDFLAGS
20641 save_LIBS=$LIBS
20642
20643
20644 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
20645 LIBS="$LIBS $ZLIB_LIBS"
20646 for ac_header in zlib.h
20647 do :
20648 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20649 if test "x$ac_cv_header_zlib_h" = xyes
20650 then :
20651 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20652
20653 py_check_lib_save_LIBS=$LIBS
20654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20655 printf %s "checking for gzread in -lz... " >&6; }
20656 if test ${ac_cv_lib_z_gzread+y}
20657 then :
20658 printf %s "(cached) " >&6
20659 else $as_nop
20660 ac_check_lib_save_LIBS=$LIBS
20661 LIBS="-lz $LIBS"
20662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20663 /* end confdefs.h. */
20664
20665 /* Override any GCC internal prototype to avoid an error.
20666 Use char because int might match the return type of a GCC
20667 builtin and then its argument prototype would still apply. */
20668 char gzread ();
20669 int
20670 main (void)
20671 {
20672 return gzread ();
20673 ;
20674 return 0;
20675 }
20676 _ACEOF
20677 if ac_fn_c_try_link "$LINENO"
20678 then :
20679 ac_cv_lib_z_gzread=yes
20680 else $as_nop
20681 ac_cv_lib_z_gzread=no
20682 fi
20683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20684 conftest$ac_exeext conftest.$ac_ext
20685 LIBS=$ac_check_lib_save_LIBS
20686 fi
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20688 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
20689 if test "x$ac_cv_lib_z_gzread" = xyes
20690 then :
20691 have_zlib=yes
20692 else $as_nop
20693 have_zlib=no
20694 fi
20695
20696 LIBS=$py_check_lib_save_LIBS
20697
20698
20699 else $as_nop
20700 have_zlib=no
20701 fi
20702
20703 done
20704 if test "x$have_zlib" = xyes
20705 then :
20706
20707 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
20708 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
20709 py_check_lib_save_LIBS=$LIBS
20710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
20711 printf %s "checking for inflateCopy in -lz... " >&6; }
20712 if test ${ac_cv_lib_z_inflateCopy+y}
20713 then :
20714 printf %s "(cached) " >&6
20715 else $as_nop
20716 ac_check_lib_save_LIBS=$LIBS
20717 LIBS="-lz $LIBS"
20718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20720
20721 /* Override any GCC internal prototype to avoid an error.
20722 Use char because int might match the return type of a GCC
20723 builtin and then its argument prototype would still apply. */
20724 char inflateCopy ();
20725 int
20726 main (void)
20727 {
20728 return inflateCopy ();
20729 ;
20730 return 0;
20731 }
20732 _ACEOF
20733 if ac_fn_c_try_link "$LINENO"
20734 then :
20735 ac_cv_lib_z_inflateCopy=yes
20736 else $as_nop
20737 ac_cv_lib_z_inflateCopy=no
20738 fi
20739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20740 conftest$ac_exeext conftest.$ac_ext
20741 LIBS=$ac_check_lib_save_LIBS
20742 fi
20743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
20744 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
20745 if test "x$ac_cv_lib_z_inflateCopy" = xyes
20746 then :
20747 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20748
20749 fi
20750
20751 LIBS=$py_check_lib_save_LIBS
20752
20753
20754 fi
20755
20756 CFLAGS=$save_CFLAGS
20757 CPPFLAGS=$save_CPPFLAGS
20758 LDFLAGS=$save_LDFLAGS
20759 LIBS=$save_LIBS
20760
20761
20762
20763 else
20764 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20765 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20767 printf "%s\n" "yes" >&6; }
20768
20769 have_zlib=yes
20770 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20771
20772
20773 fi
20774
20775 if test "x$have_zlib" = xyes
20776 then :
20777
20778 BINASCII_CFLAGS="-DUSE_ZLIB_CRC32 $ZLIB_CFLAGS"
20779 BINASCII_LIBS="$ZLIB_LIBS"
20780
20781 fi
20782
20783
20784
20785
20786 if test "$ac_sys_system" = "Emscripten" -a -z "$BZIP2_CFLAGS" -a -z "$BZIP2_LIBS"
20787 then :
20788
20789 BZIP2_CFLAGS="-sUSE_BZIP2"
20790 BZIP2_LIBS="-sUSE_BZIP2"
20791
20792 fi
20793
20794
20795
20796
20797
20798 pkg_failed=no
20799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5
20800 printf %s "checking for bzip2... " >&6; }
20801
20802 if test -n "$BZIP2_CFLAGS"; then
20803 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
20804 elif test -n "$PKG_CONFIG"; then
20805 if test -n "$PKG_CONFIG" && \
20806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
20807 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
20808 ac_status=$?
20809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20810 test $ac_status = 0; }; then
20811 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null`
20812 test "x$?" != "x0" && pkg_failed=yes
20813 else
20814 pkg_failed=yes
20815 fi
20816 else
20817 pkg_failed=untried
20818 fi
20819 if test -n "$BZIP2_LIBS"; then
20820 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
20821 elif test -n "$PKG_CONFIG"; then
20822 if test -n "$PKG_CONFIG" && \
20823 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
20824 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
20825 ac_status=$?
20826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20827 test $ac_status = 0; }; then
20828 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "bzip2" 2>/dev/null`
20829 test "x$?" != "x0" && pkg_failed=yes
20830 else
20831 pkg_failed=yes
20832 fi
20833 else
20834 pkg_failed=untried
20835 fi
20836
20837
20838
20839 if test $pkg_failed = yes; then
20840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20841 printf "%s\n" "no" >&6; }
20842
20843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20844 _pkg_short_errors_supported=yes
20845 else
20846 _pkg_short_errors_supported=no
20847 fi
20848 if test $_pkg_short_errors_supported = yes; then
20849 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1`
20850 else
20851 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1`
20852 fi
20853 # Put the nasty error message in config.log where it belongs
20854 echo "$BZIP2_PKG_ERRORS" >&5
20855
20856
20857 save_CFLAGS=$CFLAGS
20858 save_CPPFLAGS=$CPPFLAGS
20859 save_LDFLAGS=$LDFLAGS
20860 save_LIBS=$LIBS
20861
20862
20863 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
20864 LIBS="$LIBS $BZIP2_LIBS"
20865 for ac_header in bzlib.h
20866 do :
20867 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
20868 if test "x$ac_cv_header_bzlib_h" = xyes
20869 then :
20870 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
20871
20872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
20873 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
20874 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
20875 then :
20876 printf %s "(cached) " >&6
20877 else $as_nop
20878 ac_check_lib_save_LIBS=$LIBS
20879 LIBS="-lbz2 $LIBS"
20880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20882
20883 /* Override any GCC internal prototype to avoid an error.
20884 Use char because int might match the return type of a GCC
20885 builtin and then its argument prototype would still apply. */
20886 char BZ2_bzCompress ();
20887 int
20888 main (void)
20889 {
20890 return BZ2_bzCompress ();
20891 ;
20892 return 0;
20893 }
20894 _ACEOF
20895 if ac_fn_c_try_link "$LINENO"
20896 then :
20897 ac_cv_lib_bz2_BZ2_bzCompress=yes
20898 else $as_nop
20899 ac_cv_lib_bz2_BZ2_bzCompress=no
20900 fi
20901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20902 conftest$ac_exeext conftest.$ac_ext
20903 LIBS=$ac_check_lib_save_LIBS
20904 fi
20905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
20906 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
20907 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
20908 then :
20909 have_bzip2=yes
20910 else $as_nop
20911 have_bzip2=no
20912 fi
20913
20914
20915 else $as_nop
20916 have_bzip2=no
20917 fi
20918
20919 done
20920 if test "x$have_bzip2" = xyes
20921 then :
20922
20923 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
20924 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
20925
20926 fi
20927
20928 CFLAGS=$save_CFLAGS
20929 CPPFLAGS=$save_CPPFLAGS
20930 LDFLAGS=$save_LDFLAGS
20931 LIBS=$save_LIBS
20932
20933
20934
20935 elif test $pkg_failed = untried; then
20936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20937 printf "%s\n" "no" >&6; }
20938
20939 save_CFLAGS=$CFLAGS
20940 save_CPPFLAGS=$CPPFLAGS
20941 save_LDFLAGS=$LDFLAGS
20942 save_LIBS=$LIBS
20943
20944
20945 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
20946 LIBS="$LIBS $BZIP2_LIBS"
20947 for ac_header in bzlib.h
20948 do :
20949 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
20950 if test "x$ac_cv_header_bzlib_h" = xyes
20951 then :
20952 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
20953
20954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
20955 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
20956 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
20957 then :
20958 printf %s "(cached) " >&6
20959 else $as_nop
20960 ac_check_lib_save_LIBS=$LIBS
20961 LIBS="-lbz2 $LIBS"
20962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h. */
20964
20965 /* Override any GCC internal prototype to avoid an error.
20966 Use char because int might match the return type of a GCC
20967 builtin and then its argument prototype would still apply. */
20968 char BZ2_bzCompress ();
20969 int
20970 main (void)
20971 {
20972 return BZ2_bzCompress ();
20973 ;
20974 return 0;
20975 }
20976 _ACEOF
20977 if ac_fn_c_try_link "$LINENO"
20978 then :
20979 ac_cv_lib_bz2_BZ2_bzCompress=yes
20980 else $as_nop
20981 ac_cv_lib_bz2_BZ2_bzCompress=no
20982 fi
20983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20984 conftest$ac_exeext conftest.$ac_ext
20985 LIBS=$ac_check_lib_save_LIBS
20986 fi
20987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
20988 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
20989 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
20990 then :
20991 have_bzip2=yes
20992 else $as_nop
20993 have_bzip2=no
20994 fi
20995
20996
20997 else $as_nop
20998 have_bzip2=no
20999 fi
21000
21001 done
21002 if test "x$have_bzip2" = xyes
21003 then :
21004
21005 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
21006 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
21007
21008 fi
21009
21010 CFLAGS=$save_CFLAGS
21011 CPPFLAGS=$save_CPPFLAGS
21012 LDFLAGS=$save_LDFLAGS
21013 LIBS=$save_LIBS
21014
21015
21016
21017 else
21018 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
21019 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
21020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21021 printf "%s\n" "yes" >&6; }
21022 have_bzip2=yes
21023 fi
21024
21025
21026 pkg_failed=no
21027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
21028 printf %s "checking for liblzma... " >&6; }
21029
21030 if test -n "$LIBLZMA_CFLAGS"; then
21031 pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS"
21032 elif test -n "$PKG_CONFIG"; then
21033 if test -n "$PKG_CONFIG" && \
21034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
21035 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
21036 ac_status=$?
21037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21038 test $ac_status = 0; }; then
21039 pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
21040 test "x$?" != "x0" && pkg_failed=yes
21041 else
21042 pkg_failed=yes
21043 fi
21044 else
21045 pkg_failed=untried
21046 fi
21047 if test -n "$LIBLZMA_LIBS"; then
21048 pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS"
21049 elif test -n "$PKG_CONFIG"; then
21050 if test -n "$PKG_CONFIG" && \
21051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
21052 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
21053 ac_status=$?
21054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21055 test $ac_status = 0; }; then
21056 pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
21057 test "x$?" != "x0" && pkg_failed=yes
21058 else
21059 pkg_failed=yes
21060 fi
21061 else
21062 pkg_failed=untried
21063 fi
21064
21065
21066
21067 if test $pkg_failed = yes; then
21068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21069 printf "%s\n" "no" >&6; }
21070
21071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21072 _pkg_short_errors_supported=yes
21073 else
21074 _pkg_short_errors_supported=no
21075 fi
21076 if test $_pkg_short_errors_supported = yes; then
21077 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
21078 else
21079 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
21080 fi
21081 # Put the nasty error message in config.log where it belongs
21082 echo "$LIBLZMA_PKG_ERRORS" >&5
21083
21084
21085 save_CFLAGS=$CFLAGS
21086 save_CPPFLAGS=$CPPFLAGS
21087 save_LDFLAGS=$LDFLAGS
21088 save_LIBS=$LIBS
21089
21090
21091 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
21092 LIBS="$LIBS $LIBLZMA_LIBS"
21093 for ac_header in lzma.h
21094 do :
21095 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
21096 if test "x$ac_cv_header_lzma_h" = xyes
21097 then :
21098 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
21099
21100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
21101 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
21102 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
21103 then :
21104 printf %s "(cached) " >&6
21105 else $as_nop
21106 ac_check_lib_save_LIBS=$LIBS
21107 LIBS="-llzma $LIBS"
21108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21110
21111 /* Override any GCC internal prototype to avoid an error.
21112 Use char because int might match the return type of a GCC
21113 builtin and then its argument prototype would still apply. */
21114 char lzma_easy_encoder ();
21115 int
21116 main (void)
21117 {
21118 return lzma_easy_encoder ();
21119 ;
21120 return 0;
21121 }
21122 _ACEOF
21123 if ac_fn_c_try_link "$LINENO"
21124 then :
21125 ac_cv_lib_lzma_lzma_easy_encoder=yes
21126 else $as_nop
21127 ac_cv_lib_lzma_lzma_easy_encoder=no
21128 fi
21129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21130 conftest$ac_exeext conftest.$ac_ext
21131 LIBS=$ac_check_lib_save_LIBS
21132 fi
21133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
21134 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
21135 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
21136 then :
21137 have_liblzma=yes
21138 else $as_nop
21139 have_liblzma=no
21140 fi
21141
21142
21143 else $as_nop
21144 have_liblzma=no
21145 fi
21146
21147 done
21148 if test "x$have_liblzma" = xyes
21149 then :
21150
21151 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
21152 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
21153
21154 fi
21155
21156 CFLAGS=$save_CFLAGS
21157 CPPFLAGS=$save_CPPFLAGS
21158 LDFLAGS=$save_LDFLAGS
21159 LIBS=$save_LIBS
21160
21161
21162
21163 elif test $pkg_failed = untried; then
21164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165 printf "%s\n" "no" >&6; }
21166
21167 save_CFLAGS=$CFLAGS
21168 save_CPPFLAGS=$CPPFLAGS
21169 save_LDFLAGS=$LDFLAGS
21170 save_LIBS=$LIBS
21171
21172
21173 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
21174 LIBS="$LIBS $LIBLZMA_LIBS"
21175 for ac_header in lzma.h
21176 do :
21177 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
21178 if test "x$ac_cv_header_lzma_h" = xyes
21179 then :
21180 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
21181
21182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
21183 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
21184 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
21185 then :
21186 printf %s "(cached) " >&6
21187 else $as_nop
21188 ac_check_lib_save_LIBS=$LIBS
21189 LIBS="-llzma $LIBS"
21190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21191 /* end confdefs.h. */
21192
21193 /* Override any GCC internal prototype to avoid an error.
21194 Use char because int might match the return type of a GCC
21195 builtin and then its argument prototype would still apply. */
21196 char lzma_easy_encoder ();
21197 int
21198 main (void)
21199 {
21200 return lzma_easy_encoder ();
21201 ;
21202 return 0;
21203 }
21204 _ACEOF
21205 if ac_fn_c_try_link "$LINENO"
21206 then :
21207 ac_cv_lib_lzma_lzma_easy_encoder=yes
21208 else $as_nop
21209 ac_cv_lib_lzma_lzma_easy_encoder=no
21210 fi
21211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21212 conftest$ac_exeext conftest.$ac_ext
21213 LIBS=$ac_check_lib_save_LIBS
21214 fi
21215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
21216 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
21217 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
21218 then :
21219 have_liblzma=yes
21220 else $as_nop
21221 have_liblzma=no
21222 fi
21223
21224
21225 else $as_nop
21226 have_liblzma=no
21227 fi
21228
21229 done
21230 if test "x$have_liblzma" = xyes
21231 then :
21232
21233 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
21234 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
21235
21236 fi
21237
21238 CFLAGS=$save_CFLAGS
21239 CPPFLAGS=$save_CPPFLAGS
21240 LDFLAGS=$save_LDFLAGS
21241 LIBS=$save_LIBS
21242
21243
21244
21245 else
21246 LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS
21247 LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS
21248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21249 printf "%s\n" "yes" >&6; }
21250 have_liblzma=yes
21251 fi
21252
21253
21254
21255
21256
21257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
21258 printf %s "checking for hstrerror... " >&6; }
21259 if test ${ac_cv_func_hstrerror+y}
21260 then :
21261 printf %s "(cached) " >&6
21262 else $as_nop
21263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h. */
21265 #include <netdb.h>
21266 int
21267 main (void)
21268 {
21269 void *x=hstrerror
21270 ;
21271 return 0;
21272 }
21273 _ACEOF
21274 if ac_fn_c_try_compile "$LINENO"
21275 then :
21276 ac_cv_func_hstrerror=yes
21277 else $as_nop
21278 ac_cv_func_hstrerror=no
21279 fi
21280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21281
21282 fi
21283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror" >&5
21284 printf "%s\n" "$ac_cv_func_hstrerror" >&6; }
21285 if test "x$ac_cv_func_hstrerror" = xyes
21286 then :
21287
21288 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
21289
21290 fi
21291
21292
21293
21294
21295
21296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname" >&5
21297 printf %s "checking for getservbyname... " >&6; }
21298 if test ${ac_cv_func_getservbyname+y}
21299 then :
21300 printf %s "(cached) " >&6
21301 else $as_nop
21302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21303 /* end confdefs.h. */
21304 #include <netdb.h>
21305 int
21306 main (void)
21307 {
21308 void *x=getservbyname
21309 ;
21310 return 0;
21311 }
21312 _ACEOF
21313 if ac_fn_c_try_compile "$LINENO"
21314 then :
21315 ac_cv_func_getservbyname=yes
21316 else $as_nop
21317 ac_cv_func_getservbyname=no
21318 fi
21319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21320
21321 fi
21322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname" >&5
21323 printf "%s\n" "$ac_cv_func_getservbyname" >&6; }
21324 if test "x$ac_cv_func_getservbyname" = xyes
21325 then :
21326
21327 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
21328
21329 fi
21330
21331
21332
21333
21334
21335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyport" >&5
21336 printf %s "checking for getservbyport... " >&6; }
21337 if test ${ac_cv_func_getservbyport+y}
21338 then :
21339 printf %s "(cached) " >&6
21340 else $as_nop
21341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21342 /* end confdefs.h. */
21343 #include <netdb.h>
21344 int
21345 main (void)
21346 {
21347 void *x=getservbyport
21348 ;
21349 return 0;
21350 }
21351 _ACEOF
21352 if ac_fn_c_try_compile "$LINENO"
21353 then :
21354 ac_cv_func_getservbyport=yes
21355 else $as_nop
21356 ac_cv_func_getservbyport=no
21357 fi
21358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21359
21360 fi
21361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyport" >&5
21362 printf "%s\n" "$ac_cv_func_getservbyport" >&6; }
21363 if test "x$ac_cv_func_getservbyport" = xyes
21364 then :
21365
21366 printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h
21367
21368 fi
21369
21370
21371
21372
21373
21374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
21375 printf %s "checking for gethostbyname... " >&6; }
21376 if test ${ac_cv_func_gethostbyname+y}
21377 then :
21378 printf %s "(cached) " >&6
21379 else $as_nop
21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21381 /* end confdefs.h. */
21382 #include <netdb.h>
21383 int
21384 main (void)
21385 {
21386 void *x=gethostbyname
21387 ;
21388 return 0;
21389 }
21390 _ACEOF
21391 if ac_fn_c_try_compile "$LINENO"
21392 then :
21393 ac_cv_func_gethostbyname=yes
21394 else $as_nop
21395 ac_cv_func_gethostbyname=no
21396 fi
21397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21398
21399 fi
21400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname" >&5
21401 printf "%s\n" "$ac_cv_func_gethostbyname" >&6; }
21402 if test "x$ac_cv_func_gethostbyname" = xyes
21403 then :
21404
21405 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
21406
21407 fi
21408
21409
21410
21411
21412
21413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5
21414 printf %s "checking for gethostbyaddr... " >&6; }
21415 if test ${ac_cv_func_gethostbyaddr+y}
21416 then :
21417 printf %s "(cached) " >&6
21418 else $as_nop
21419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21420 /* end confdefs.h. */
21421 #include <netdb.h>
21422 int
21423 main (void)
21424 {
21425 void *x=gethostbyaddr
21426 ;
21427 return 0;
21428 }
21429 _ACEOF
21430 if ac_fn_c_try_compile "$LINENO"
21431 then :
21432 ac_cv_func_gethostbyaddr=yes
21433 else $as_nop
21434 ac_cv_func_gethostbyaddr=no
21435 fi
21436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21437
21438 fi
21439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr" >&5
21440 printf "%s\n" "$ac_cv_func_gethostbyaddr" >&6; }
21441 if test "x$ac_cv_func_gethostbyaddr" = xyes
21442 then :
21443
21444 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
21445
21446 fi
21447
21448
21449
21450
21451
21452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprotobyname" >&5
21453 printf %s "checking for getprotobyname... " >&6; }
21454 if test ${ac_cv_func_getprotobyname+y}
21455 then :
21456 printf %s "(cached) " >&6
21457 else $as_nop
21458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21459 /* end confdefs.h. */
21460 #include <netdb.h>
21461 int
21462 main (void)
21463 {
21464 void *x=getprotobyname
21465 ;
21466 return 0;
21467 }
21468 _ACEOF
21469 if ac_fn_c_try_compile "$LINENO"
21470 then :
21471 ac_cv_func_getprotobyname=yes
21472 else $as_nop
21473 ac_cv_func_getprotobyname=no
21474 fi
21475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21476
21477 fi
21478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobyname" >&5
21479 printf "%s\n" "$ac_cv_func_getprotobyname" >&6; }
21480 if test "x$ac_cv_func_getprotobyname" = xyes
21481 then :
21482
21483 printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h
21484
21485 fi
21486
21487
21488
21489
21490
21491
21492
21493
21494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
21495 printf %s "checking for inet_aton... " >&6; }
21496 if test ${ac_cv_func_inet_aton+y}
21497 then :
21498 printf %s "(cached) " >&6
21499 else $as_nop
21500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21501 /* end confdefs.h. */
21502
21503 #include <sys/types.h>
21504 #include <sys/socket.h>
21505 #include <netinet/in.h>
21506 #include <arpa/inet.h>
21507
21508 int
21509 main (void)
21510 {
21511 void *x=inet_aton
21512 ;
21513 return 0;
21514 }
21515 _ACEOF
21516 if ac_fn_c_try_compile "$LINENO"
21517 then :
21518 ac_cv_func_inet_aton=yes
21519 else $as_nop
21520 ac_cv_func_inet_aton=no
21521 fi
21522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21523
21524 fi
21525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton" >&5
21526 printf "%s\n" "$ac_cv_func_inet_aton" >&6; }
21527 if test "x$ac_cv_func_inet_aton" = xyes
21528 then :
21529
21530 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
21531
21532 fi
21533
21534
21535
21536
21537
21538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa" >&5
21539 printf %s "checking for inet_ntoa... " >&6; }
21540 if test ${ac_cv_func_inet_ntoa+y}
21541 then :
21542 printf %s "(cached) " >&6
21543 else $as_nop
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h. */
21546
21547 #include <sys/types.h>
21548 #include <sys/socket.h>
21549 #include <netinet/in.h>
21550 #include <arpa/inet.h>
21551
21552 int
21553 main (void)
21554 {
21555 void *x=inet_ntoa
21556 ;
21557 return 0;
21558 }
21559 _ACEOF
21560 if ac_fn_c_try_compile "$LINENO"
21561 then :
21562 ac_cv_func_inet_ntoa=yes
21563 else $as_nop
21564 ac_cv_func_inet_ntoa=no
21565 fi
21566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21567
21568 fi
21569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_ntoa" >&5
21570 printf "%s\n" "$ac_cv_func_inet_ntoa" >&6; }
21571 if test "x$ac_cv_func_inet_ntoa" = xyes
21572 then :
21573
21574 printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
21575
21576 fi
21577
21578
21579
21580
21581
21582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
21583 printf %s "checking for inet_pton... " >&6; }
21584 if test ${ac_cv_func_inet_pton+y}
21585 then :
21586 printf %s "(cached) " >&6
21587 else $as_nop
21588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21589 /* end confdefs.h. */
21590
21591 #include <sys/types.h>
21592 #include <sys/socket.h>
21593 #include <netinet/in.h>
21594 #include <arpa/inet.h>
21595
21596 int
21597 main (void)
21598 {
21599 void *x=inet_pton
21600 ;
21601 return 0;
21602 }
21603 _ACEOF
21604 if ac_fn_c_try_compile "$LINENO"
21605 then :
21606 ac_cv_func_inet_pton=yes
21607 else $as_nop
21608 ac_cv_func_inet_pton=no
21609 fi
21610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21611
21612 fi
21613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_pton" >&5
21614 printf "%s\n" "$ac_cv_func_inet_pton" >&6; }
21615 if test "x$ac_cv_func_inet_pton" = xyes
21616 then :
21617
21618 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
21619
21620 fi
21621
21622
21623
21624
21625
21626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername" >&5
21627 printf %s "checking for getpeername... " >&6; }
21628 if test ${ac_cv_func_getpeername+y}
21629 then :
21630 printf %s "(cached) " >&6
21631 else $as_nop
21632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21633 /* end confdefs.h. */
21634
21635 #include <sys/types.h>
21636 #include <sys/socket.h>
21637 #include <netinet/in.h>
21638 #include <arpa/inet.h>
21639
21640 int
21641 main (void)
21642 {
21643 void *x=getpeername
21644 ;
21645 return 0;
21646 }
21647 _ACEOF
21648 if ac_fn_c_try_compile "$LINENO"
21649 then :
21650 ac_cv_func_getpeername=yes
21651 else $as_nop
21652 ac_cv_func_getpeername=no
21653 fi
21654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21655
21656 fi
21657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpeername" >&5
21658 printf "%s\n" "$ac_cv_func_getpeername" >&6; }
21659 if test "x$ac_cv_func_getpeername" = xyes
21660 then :
21661
21662 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
21663
21664 fi
21665
21666
21667
21668
21669
21670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockname" >&5
21671 printf %s "checking for getsockname... " >&6; }
21672 if test ${ac_cv_func_getsockname+y}
21673 then :
21674 printf %s "(cached) " >&6
21675 else $as_nop
21676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21677 /* end confdefs.h. */
21678
21679 #include <sys/types.h>
21680 #include <sys/socket.h>
21681 #include <netinet/in.h>
21682 #include <arpa/inet.h>
21683
21684 int
21685 main (void)
21686 {
21687 void *x=getsockname
21688 ;
21689 return 0;
21690 }
21691 _ACEOF
21692 if ac_fn_c_try_compile "$LINENO"
21693 then :
21694 ac_cv_func_getsockname=yes
21695 else $as_nop
21696 ac_cv_func_getsockname=no
21697 fi
21698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21699
21700 fi
21701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname" >&5
21702 printf "%s\n" "$ac_cv_func_getsockname" >&6; }
21703 if test "x$ac_cv_func_getsockname" = xyes
21704 then :
21705
21706 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
21707
21708 fi
21709
21710
21711
21712
21713
21714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept" >&5
21715 printf %s "checking for accept... " >&6; }
21716 if test ${ac_cv_func_accept+y}
21717 then :
21718 printf %s "(cached) " >&6
21719 else $as_nop
21720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21721 /* end confdefs.h. */
21722
21723 #include <sys/types.h>
21724 #include <sys/socket.h>
21725 #include <netinet/in.h>
21726 #include <arpa/inet.h>
21727
21728 int
21729 main (void)
21730 {
21731 void *x=accept
21732 ;
21733 return 0;
21734 }
21735 _ACEOF
21736 if ac_fn_c_try_compile "$LINENO"
21737 then :
21738 ac_cv_func_accept=yes
21739 else $as_nop
21740 ac_cv_func_accept=no
21741 fi
21742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21743
21744 fi
21745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept" >&5
21746 printf "%s\n" "$ac_cv_func_accept" >&6; }
21747 if test "x$ac_cv_func_accept" = xyes
21748 then :
21749
21750 printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h
21751
21752 fi
21753
21754
21755
21756
21757
21758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind" >&5
21759 printf %s "checking for bind... " >&6; }
21760 if test ${ac_cv_func_bind+y}
21761 then :
21762 printf %s "(cached) " >&6
21763 else $as_nop
21764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765 /* end confdefs.h. */
21766
21767 #include <sys/types.h>
21768 #include <sys/socket.h>
21769 #include <netinet/in.h>
21770 #include <arpa/inet.h>
21771
21772 int
21773 main (void)
21774 {
21775 void *x=bind
21776 ;
21777 return 0;
21778 }
21779 _ACEOF
21780 if ac_fn_c_try_compile "$LINENO"
21781 then :
21782 ac_cv_func_bind=yes
21783 else $as_nop
21784 ac_cv_func_bind=no
21785 fi
21786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21787
21788 fi
21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_bind" >&5
21790 printf "%s\n" "$ac_cv_func_bind" >&6; }
21791 if test "x$ac_cv_func_bind" = xyes
21792 then :
21793
21794 printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h
21795
21796 fi
21797
21798
21799
21800
21801
21802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect" >&5
21803 printf %s "checking for connect... " >&6; }
21804 if test ${ac_cv_func_connect+y}
21805 then :
21806 printf %s "(cached) " >&6
21807 else $as_nop
21808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21809 /* end confdefs.h. */
21810
21811 #include <sys/types.h>
21812 #include <sys/socket.h>
21813 #include <netinet/in.h>
21814 #include <arpa/inet.h>
21815
21816 int
21817 main (void)
21818 {
21819 void *x=connect
21820 ;
21821 return 0;
21822 }
21823 _ACEOF
21824 if ac_fn_c_try_compile "$LINENO"
21825 then :
21826 ac_cv_func_connect=yes
21827 else $as_nop
21828 ac_cv_func_connect=no
21829 fi
21830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21831
21832 fi
21833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_connect" >&5
21834 printf "%s\n" "$ac_cv_func_connect" >&6; }
21835 if test "x$ac_cv_func_connect" = xyes
21836 then :
21837
21838 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
21839
21840 fi
21841
21842
21843
21844
21845
21846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for listen" >&5
21847 printf %s "checking for listen... " >&6; }
21848 if test ${ac_cv_func_listen+y}
21849 then :
21850 printf %s "(cached) " >&6
21851 else $as_nop
21852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21853 /* end confdefs.h. */
21854
21855 #include <sys/types.h>
21856 #include <sys/socket.h>
21857 #include <netinet/in.h>
21858 #include <arpa/inet.h>
21859
21860 int
21861 main (void)
21862 {
21863 void *x=listen
21864 ;
21865 return 0;
21866 }
21867 _ACEOF
21868 if ac_fn_c_try_compile "$LINENO"
21869 then :
21870 ac_cv_func_listen=yes
21871 else $as_nop
21872 ac_cv_func_listen=no
21873 fi
21874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21875
21876 fi
21877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_listen" >&5
21878 printf "%s\n" "$ac_cv_func_listen" >&6; }
21879 if test "x$ac_cv_func_listen" = xyes
21880 then :
21881
21882 printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h
21883
21884 fi
21885
21886
21887
21888
21889
21890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
21891 printf %s "checking for recvfrom... " >&6; }
21892 if test ${ac_cv_func_recvfrom+y}
21893 then :
21894 printf %s "(cached) " >&6
21895 else $as_nop
21896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21897 /* end confdefs.h. */
21898
21899 #include <sys/types.h>
21900 #include <sys/socket.h>
21901 #include <netinet/in.h>
21902 #include <arpa/inet.h>
21903
21904 int
21905 main (void)
21906 {
21907 void *x=recvfrom
21908 ;
21909 return 0;
21910 }
21911 _ACEOF
21912 if ac_fn_c_try_compile "$LINENO"
21913 then :
21914 ac_cv_func_recvfrom=yes
21915 else $as_nop
21916 ac_cv_func_recvfrom=no
21917 fi
21918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21919
21920 fi
21921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_recvfrom" >&5
21922 printf "%s\n" "$ac_cv_func_recvfrom" >&6; }
21923 if test "x$ac_cv_func_recvfrom" = xyes
21924 then :
21925
21926 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
21927
21928 fi
21929
21930
21931
21932
21933
21934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendto" >&5
21935 printf %s "checking for sendto... " >&6; }
21936 if test ${ac_cv_func_sendto+y}
21937 then :
21938 printf %s "(cached) " >&6
21939 else $as_nop
21940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21941 /* end confdefs.h. */
21942
21943 #include <sys/types.h>
21944 #include <sys/socket.h>
21945 #include <netinet/in.h>
21946 #include <arpa/inet.h>
21947
21948 int
21949 main (void)
21950 {
21951 void *x=sendto
21952 ;
21953 return 0;
21954 }
21955 _ACEOF
21956 if ac_fn_c_try_compile "$LINENO"
21957 then :
21958 ac_cv_func_sendto=yes
21959 else $as_nop
21960 ac_cv_func_sendto=no
21961 fi
21962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21963
21964 fi
21965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sendto" >&5
21966 printf "%s\n" "$ac_cv_func_sendto" >&6; }
21967 if test "x$ac_cv_func_sendto" = xyes
21968 then :
21969
21970 printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h
21971
21972 fi
21973
21974
21975
21976
21977
21978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
21979 printf %s "checking for setsockopt... " >&6; }
21980 if test ${ac_cv_func_setsockopt+y}
21981 then :
21982 printf %s "(cached) " >&6
21983 else $as_nop
21984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h. */
21986
21987 #include <sys/types.h>
21988 #include <sys/socket.h>
21989 #include <netinet/in.h>
21990 #include <arpa/inet.h>
21991
21992 int
21993 main (void)
21994 {
21995 void *x=setsockopt
21996 ;
21997 return 0;
21998 }
21999 _ACEOF
22000 if ac_fn_c_try_compile "$LINENO"
22001 then :
22002 ac_cv_func_setsockopt=yes
22003 else $as_nop
22004 ac_cv_func_setsockopt=no
22005 fi
22006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22007
22008 fi
22009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setsockopt" >&5
22010 printf "%s\n" "$ac_cv_func_setsockopt" >&6; }
22011 if test "x$ac_cv_func_setsockopt" = xyes
22012 then :
22013
22014 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
22015
22016 fi
22017
22018
22019
22020
22021
22022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
22023 printf %s "checking for socket... " >&6; }
22024 if test ${ac_cv_func_socket+y}
22025 then :
22026 printf %s "(cached) " >&6
22027 else $as_nop
22028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h. */
22030
22031 #include <sys/types.h>
22032 #include <sys/socket.h>
22033 #include <netinet/in.h>
22034 #include <arpa/inet.h>
22035
22036 int
22037 main (void)
22038 {
22039 void *x=socket
22040 ;
22041 return 0;
22042 }
22043 _ACEOF
22044 if ac_fn_c_try_compile "$LINENO"
22045 then :
22046 ac_cv_func_socket=yes
22047 else $as_nop
22048 ac_cv_func_socket=no
22049 fi
22050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22051
22052 fi
22053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socket" >&5
22054 printf "%s\n" "$ac_cv_func_socket" >&6; }
22055 if test "x$ac_cv_func_socket" = xyes
22056 then :
22057
22058 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
22059
22060 fi
22061
22062
22063
22064
22065 # On some systems, setgroups is in unistd.h, on others, in grp.h
22066
22067
22068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
22069 printf %s "checking for setgroups... " >&6; }
22070 if test ${ac_cv_func_setgroups+y}
22071 then :
22072 printf %s "(cached) " >&6
22073 else $as_nop
22074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h. */
22076
22077 #include <unistd.h>
22078 #ifdef HAVE_GRP_H
22079 #include <grp.h>
22080 #endif
22081
22082 int
22083 main (void)
22084 {
22085 void *x=setgroups
22086 ;
22087 return 0;
22088 }
22089 _ACEOF
22090 if ac_fn_c_try_compile "$LINENO"
22091 then :
22092 ac_cv_func_setgroups=yes
22093 else $as_nop
22094 ac_cv_func_setgroups=no
22095 fi
22096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22097
22098 fi
22099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgroups" >&5
22100 printf "%s\n" "$ac_cv_func_setgroups" >&6; }
22101 if test "x$ac_cv_func_setgroups" = xyes
22102 then :
22103
22104 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
22105
22106 fi
22107
22108
22109
22110
22111 ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include <sys/param.h>
22112 " "$ac_c_undeclared_builtin_options" "CFLAGS"
22113 if test "x$ac_cv_have_decl_MAXLOGNAME" = xyes
22114 then :
22115
22116 printf "%s\n" "#define HAVE_MAXLOGNAME 1" >>confdefs.h
22117
22118 fi
22119
22120 ac_fn_check_decl "$LINENO" "UT_NAMESIZE" "ac_cv_have_decl_UT_NAMESIZE" "#include <utmp.h>
22121 " "$ac_c_undeclared_builtin_options" "CFLAGS"
22122 if test "x$ac_cv_have_decl_UT_NAMESIZE" = xyes
22123 then :
22124 ac_have_decl=1
22125 else $as_nop
22126 ac_have_decl=0
22127 fi
22128 printf "%s\n" "#define HAVE_DECL_UT_NAMESIZE $ac_have_decl" >>confdefs.h
22129 if test $ac_have_decl = 1
22130 then :
22131
22132 printf "%s\n" "#define HAVE_UT_NAMESIZE 1" >>confdefs.h
22133
22134 fi
22135
22136
22137 # check for openpty, login_tty, and forkpty
22138
22139
22140 for ac_func in openpty
22141 do :
22142 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
22143 if test "x$ac_cv_func_openpty" = xyes
22144 then :
22145 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
22146
22147 else $as_nop
22148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22149 printf %s "checking for openpty in -lutil... " >&6; }
22150 if test ${ac_cv_lib_util_openpty+y}
22151 then :
22152 printf %s "(cached) " >&6
22153 else $as_nop
22154 ac_check_lib_save_LIBS=$LIBS
22155 LIBS="-lutil $LIBS"
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h. */
22158
22159 /* Override any GCC internal prototype to avoid an error.
22160 Use char because int might match the return type of a GCC
22161 builtin and then its argument prototype would still apply. */
22162 char openpty ();
22163 int
22164 main (void)
22165 {
22166 return openpty ();
22167 ;
22168 return 0;
22169 }
22170 _ACEOF
22171 if ac_fn_c_try_link "$LINENO"
22172 then :
22173 ac_cv_lib_util_openpty=yes
22174 else $as_nop
22175 ac_cv_lib_util_openpty=no
22176 fi
22177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22178 conftest$ac_exeext conftest.$ac_ext
22179 LIBS=$ac_check_lib_save_LIBS
22180 fi
22181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22182 printf "%s\n" "$ac_cv_lib_util_openpty" >&6; }
22183 if test "x$ac_cv_lib_util_openpty" = xyes
22184 then :
22185 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
22186 LIBS="$LIBS -lutil"
22187 else $as_nop
22188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
22189 printf %s "checking for openpty in -lbsd... " >&6; }
22190 if test ${ac_cv_lib_bsd_openpty+y}
22191 then :
22192 printf %s "(cached) " >&6
22193 else $as_nop
22194 ac_check_lib_save_LIBS=$LIBS
22195 LIBS="-lbsd $LIBS"
22196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h. */
22198
22199 /* Override any GCC internal prototype to avoid an error.
22200 Use char because int might match the return type of a GCC
22201 builtin and then its argument prototype would still apply. */
22202 char openpty ();
22203 int
22204 main (void)
22205 {
22206 return openpty ();
22207 ;
22208 return 0;
22209 }
22210 _ACEOF
22211 if ac_fn_c_try_link "$LINENO"
22212 then :
22213 ac_cv_lib_bsd_openpty=yes
22214 else $as_nop
22215 ac_cv_lib_bsd_openpty=no
22216 fi
22217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22218 conftest$ac_exeext conftest.$ac_ext
22219 LIBS=$ac_check_lib_save_LIBS
22220 fi
22221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
22222 printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; }
22223 if test "x$ac_cv_lib_bsd_openpty" = xyes
22224 then :
22225 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
22226 LIBS="$LIBS -lbsd"
22227 fi
22228
22229 fi
22230
22231 fi
22232
22233 done
22234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login_tty" >&5
22235 printf %s "checking for library containing login_tty... " >&6; }
22236 if test ${ac_cv_search_login_tty+y}
22237 then :
22238 printf %s "(cached) " >&6
22239 else $as_nop
22240 ac_func_search_save_LIBS=$LIBS
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22243
22244 /* Override any GCC internal prototype to avoid an error.
22245 Use char because int might match the return type of a GCC
22246 builtin and then its argument prototype would still apply. */
22247 char login_tty ();
22248 int
22249 main (void)
22250 {
22251 return login_tty ();
22252 ;
22253 return 0;
22254 }
22255 _ACEOF
22256 for ac_lib in '' util
22257 do
22258 if test -z "$ac_lib"; then
22259 ac_res="none required"
22260 else
22261 ac_res=-l$ac_lib
22262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22263 fi
22264 if ac_fn_c_try_link "$LINENO"
22265 then :
22266 ac_cv_search_login_tty=$ac_res
22267 fi
22268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22269 conftest$ac_exeext
22270 if test ${ac_cv_search_login_tty+y}
22271 then :
22272 break
22273 fi
22274 done
22275 if test ${ac_cv_search_login_tty+y}
22276 then :
22277
22278 else $as_nop
22279 ac_cv_search_login_tty=no
22280 fi
22281 rm conftest.$ac_ext
22282 LIBS=$ac_func_search_save_LIBS
22283 fi
22284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login_tty" >&5
22285 printf "%s\n" "$ac_cv_search_login_tty" >&6; }
22286 ac_res=$ac_cv_search_login_tty
22287 if test "$ac_res" != no
22288 then :
22289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22290
22291 printf "%s\n" "#define HAVE_LOGIN_TTY 1" >>confdefs.h
22292
22293
22294 fi
22295
22296
22297 for ac_func in forkpty
22298 do :
22299 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
22300 if test "x$ac_cv_func_forkpty" = xyes
22301 then :
22302 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
22303
22304 else $as_nop
22305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
22306 printf %s "checking for forkpty in -lutil... " >&6; }
22307 if test ${ac_cv_lib_util_forkpty+y}
22308 then :
22309 printf %s "(cached) " >&6
22310 else $as_nop
22311 ac_check_lib_save_LIBS=$LIBS
22312 LIBS="-lutil $LIBS"
22313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22314 /* end confdefs.h. */
22315
22316 /* Override any GCC internal prototype to avoid an error.
22317 Use char because int might match the return type of a GCC
22318 builtin and then its argument prototype would still apply. */
22319 char forkpty ();
22320 int
22321 main (void)
22322 {
22323 return forkpty ();
22324 ;
22325 return 0;
22326 }
22327 _ACEOF
22328 if ac_fn_c_try_link "$LINENO"
22329 then :
22330 ac_cv_lib_util_forkpty=yes
22331 else $as_nop
22332 ac_cv_lib_util_forkpty=no
22333 fi
22334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22335 conftest$ac_exeext conftest.$ac_ext
22336 LIBS=$ac_check_lib_save_LIBS
22337 fi
22338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
22339 printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; }
22340 if test "x$ac_cv_lib_util_forkpty" = xyes
22341 then :
22342 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
22343 LIBS="$LIBS -lutil"
22344 else $as_nop
22345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
22346 printf %s "checking for forkpty in -lbsd... " >&6; }
22347 if test ${ac_cv_lib_bsd_forkpty+y}
22348 then :
22349 printf %s "(cached) " >&6
22350 else $as_nop
22351 ac_check_lib_save_LIBS=$LIBS
22352 LIBS="-lbsd $LIBS"
22353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22354 /* end confdefs.h. */
22355
22356 /* Override any GCC internal prototype to avoid an error.
22357 Use char because int might match the return type of a GCC
22358 builtin and then its argument prototype would still apply. */
22359 char forkpty ();
22360 int
22361 main (void)
22362 {
22363 return forkpty ();
22364 ;
22365 return 0;
22366 }
22367 _ACEOF
22368 if ac_fn_c_try_link "$LINENO"
22369 then :
22370 ac_cv_lib_bsd_forkpty=yes
22371 else $as_nop
22372 ac_cv_lib_bsd_forkpty=no
22373 fi
22374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22375 conftest$ac_exeext conftest.$ac_ext
22376 LIBS=$ac_check_lib_save_LIBS
22377 fi
22378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
22379 printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; }
22380 if test "x$ac_cv_lib_bsd_forkpty" = xyes
22381 then :
22382 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
22383 LIBS="$LIBS -lbsd"
22384 fi
22385
22386 fi
22387
22388 fi
22389
22390 done
22391
22392 # check for long file support functions
22393 ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64"
22394 if test "x$ac_cv_func_fseek64" = xyes
22395 then :
22396 printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h
22397
22398 fi
22399 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
22400 if test "x$ac_cv_func_fseeko" = xyes
22401 then :
22402 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
22403
22404 fi
22405 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
22406 if test "x$ac_cv_func_fstatvfs" = xyes
22407 then :
22408 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
22409
22410 fi
22411 ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64"
22412 if test "x$ac_cv_func_ftell64" = xyes
22413 then :
22414 printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h
22415
22416 fi
22417 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
22418 if test "x$ac_cv_func_ftello" = xyes
22419 then :
22420 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
22421
22422 fi
22423 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
22424 if test "x$ac_cv_func_statvfs" = xyes
22425 then :
22426 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
22427
22428 fi
22429
22430
22431 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
22432 if test "x$ac_cv_func_dup2" = xyes
22433 then :
22434 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
22435
22436 else $as_nop
22437 case " $LIBOBJS " in
22438 *" dup2.$ac_objext "* ) ;;
22439 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
22440 ;;
22441 esac
22442
22443 fi
22444
22445
22446 for ac_func in getpgrp
22447 do :
22448 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
22449 if test "x$ac_cv_func_getpgrp" = xyes
22450 then :
22451 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h
22452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22453 /* end confdefs.h. */
22454 #include <unistd.h>
22455 int
22456 main (void)
22457 {
22458 getpgrp(0);
22459 ;
22460 return 0;
22461 }
22462 _ACEOF
22463 if ac_fn_c_try_compile "$LINENO"
22464 then :
22465
22466 printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
22467
22468 fi
22469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22470 fi
22471
22472 done
22473
22474 for ac_func in setpgrp
22475 do :
22476 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
22477 if test "x$ac_cv_func_setpgrp" = xyes
22478 then :
22479 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
22480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22481 /* end confdefs.h. */
22482 #include <unistd.h>
22483 int
22484 main (void)
22485 {
22486 setpgrp(0,0);
22487 ;
22488 return 0;
22489 }
22490 _ACEOF
22491 if ac_fn_c_try_compile "$LINENO"
22492 then :
22493
22494 printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
22495
22496 fi
22497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22498 fi
22499
22500 done
22501
22502 # check for namespace functions
22503 ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
22504 if test "x$ac_cv_func_setns" = xyes
22505 then :
22506 printf "%s\n" "#define HAVE_SETNS 1" >>confdefs.h
22507
22508 fi
22509 ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
22510 if test "x$ac_cv_func_unshare" = xyes
22511 then :
22512 printf "%s\n" "#define HAVE_UNSHARE 1" >>confdefs.h
22513
22514 fi
22515
22516
22517
22518 for ac_func in clock_gettime
22519 do :
22520 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22521 if test "x$ac_cv_func_clock_gettime" = xyes
22522 then :
22523 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22524
22525 else $as_nop
22526
22527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22528 printf %s "checking for clock_gettime in -lrt... " >&6; }
22529 if test ${ac_cv_lib_rt_clock_gettime+y}
22530 then :
22531 printf %s "(cached) " >&6
22532 else $as_nop
22533 ac_check_lib_save_LIBS=$LIBS
22534 LIBS="-lrt $LIBS"
22535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22536 /* end confdefs.h. */
22537
22538 /* Override any GCC internal prototype to avoid an error.
22539 Use char because int might match the return type of a GCC
22540 builtin and then its argument prototype would still apply. */
22541 char clock_gettime ();
22542 int
22543 main (void)
22544 {
22545 return clock_gettime ();
22546 ;
22547 return 0;
22548 }
22549 _ACEOF
22550 if ac_fn_c_try_link "$LINENO"
22551 then :
22552 ac_cv_lib_rt_clock_gettime=yes
22553 else $as_nop
22554 ac_cv_lib_rt_clock_gettime=no
22555 fi
22556 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22557 conftest$ac_exeext conftest.$ac_ext
22558 LIBS=$ac_check_lib_save_LIBS
22559 fi
22560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22561 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
22562 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
22563 then :
22564
22565 LIBS="$LIBS -lrt"
22566 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22567
22568
22569 printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h
22570
22571
22572 fi
22573
22574
22575 fi
22576
22577 done
22578
22579
22580 for ac_func in clock_getres
22581 do :
22582 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
22583 if test "x$ac_cv_func_clock_getres" = xyes
22584 then :
22585 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
22586
22587 else $as_nop
22588
22589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
22590 printf %s "checking for clock_getres in -lrt... " >&6; }
22591 if test ${ac_cv_lib_rt_clock_getres+y}
22592 then :
22593 printf %s "(cached) " >&6
22594 else $as_nop
22595 ac_check_lib_save_LIBS=$LIBS
22596 LIBS="-lrt $LIBS"
22597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22598 /* end confdefs.h. */
22599
22600 /* Override any GCC internal prototype to avoid an error.
22601 Use char because int might match the return type of a GCC
22602 builtin and then its argument prototype would still apply. */
22603 char clock_getres ();
22604 int
22605 main (void)
22606 {
22607 return clock_getres ();
22608 ;
22609 return 0;
22610 }
22611 _ACEOF
22612 if ac_fn_c_try_link "$LINENO"
22613 then :
22614 ac_cv_lib_rt_clock_getres=yes
22615 else $as_nop
22616 ac_cv_lib_rt_clock_getres=no
22617 fi
22618 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22619 conftest$ac_exeext conftest.$ac_ext
22620 LIBS=$ac_check_lib_save_LIBS
22621 fi
22622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
22623 printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; }
22624 if test "x$ac_cv_lib_rt_clock_getres" = xyes
22625 then :
22626
22627 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
22628
22629
22630 fi
22631
22632
22633 fi
22634
22635 done
22636
22637 # On Android and iOS, clock_settime can be linked (so it is found by
22638 # configure), but when used in an unprivileged process, it crashes rather than
22639 # returning an error. Force the symbol off.
22640 if test "$ac_sys_system" != "Linux-android" && test "$ac_sys_system" != "iOS"
22641 then
22642
22643 for ac_func in clock_settime
22644 do :
22645 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
22646 if test "x$ac_cv_func_clock_settime" = xyes
22647 then :
22648 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
22649
22650 else $as_nop
22651
22652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
22653 printf %s "checking for clock_settime in -lrt... " >&6; }
22654 if test ${ac_cv_lib_rt_clock_settime+y}
22655 then :
22656 printf %s "(cached) " >&6
22657 else $as_nop
22658 ac_check_lib_save_LIBS=$LIBS
22659 LIBS="-lrt $LIBS"
22660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22661 /* end confdefs.h. */
22662
22663 /* Override any GCC internal prototype to avoid an error.
22664 Use char because int might match the return type of a GCC
22665 builtin and then its argument prototype would still apply. */
22666 char clock_settime ();
22667 int
22668 main (void)
22669 {
22670 return clock_settime ();
22671 ;
22672 return 0;
22673 }
22674 _ACEOF
22675 if ac_fn_c_try_link "$LINENO"
22676 then :
22677 ac_cv_lib_rt_clock_settime=yes
22678 else $as_nop
22679 ac_cv_lib_rt_clock_settime=no
22680 fi
22681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22682 conftest$ac_exeext conftest.$ac_ext
22683 LIBS=$ac_check_lib_save_LIBS
22684 fi
22685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
22686 printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; }
22687 if test "x$ac_cv_lib_rt_clock_settime" = xyes
22688 then :
22689
22690 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
22691
22692
22693 fi
22694
22695
22696 fi
22697
22698 done
22699 fi
22700
22701 # On Android before API level 23, clock_nanosleep returns the wrong value when
22702 # interrupted by a signal (https://issuetracker.google.com/issues/216495770).
22703 if ! { test "$ac_sys_system" = "Linux-android" &&
22704 test "$ANDROID_API_LEVEL" -lt 23; }; then
22705
22706 for ac_func in clock_nanosleep
22707 do :
22708 ac_fn_c_check_func "$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep"
22709 if test "x$ac_cv_func_clock_nanosleep" = xyes
22710 then :
22711 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
22712
22713 else $as_nop
22714
22715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5
22716 printf %s "checking for clock_nanosleep in -lrt... " >&6; }
22717 if test ${ac_cv_lib_rt_clock_nanosleep+y}
22718 then :
22719 printf %s "(cached) " >&6
22720 else $as_nop
22721 ac_check_lib_save_LIBS=$LIBS
22722 LIBS="-lrt $LIBS"
22723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22724 /* end confdefs.h. */
22725
22726 /* Override any GCC internal prototype to avoid an error.
22727 Use char because int might match the return type of a GCC
22728 builtin and then its argument prototype would still apply. */
22729 char clock_nanosleep ();
22730 int
22731 main (void)
22732 {
22733 return clock_nanosleep ();
22734 ;
22735 return 0;
22736 }
22737 _ACEOF
22738 if ac_fn_c_try_link "$LINENO"
22739 then :
22740 ac_cv_lib_rt_clock_nanosleep=yes
22741 else $as_nop
22742 ac_cv_lib_rt_clock_nanosleep=no
22743 fi
22744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22745 conftest$ac_exeext conftest.$ac_ext
22746 LIBS=$ac_check_lib_save_LIBS
22747 fi
22748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5
22749 printf "%s\n" "$ac_cv_lib_rt_clock_nanosleep" >&6; }
22750 if test "x$ac_cv_lib_rt_clock_nanosleep" = xyes
22751 then :
22752
22753 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
22754
22755
22756 fi
22757
22758
22759 fi
22760
22761 done
22762 fi
22763
22764
22765 for ac_func in nanosleep
22766 do :
22767 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
22768 if test "x$ac_cv_func_nanosleep" = xyes
22769 then :
22770 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22771
22772 else $as_nop
22773
22774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
22775 printf %s "checking for nanosleep in -lrt... " >&6; }
22776 if test ${ac_cv_lib_rt_nanosleep+y}
22777 then :
22778 printf %s "(cached) " >&6
22779 else $as_nop
22780 ac_check_lib_save_LIBS=$LIBS
22781 LIBS="-lrt $LIBS"
22782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22783 /* end confdefs.h. */
22784
22785 /* Override any GCC internal prototype to avoid an error.
22786 Use char because int might match the return type of a GCC
22787 builtin and then its argument prototype would still apply. */
22788 char nanosleep ();
22789 int
22790 main (void)
22791 {
22792 return nanosleep ();
22793 ;
22794 return 0;
22795 }
22796 _ACEOF
22797 if ac_fn_c_try_link "$LINENO"
22798 then :
22799 ac_cv_lib_rt_nanosleep=yes
22800 else $as_nop
22801 ac_cv_lib_rt_nanosleep=no
22802 fi
22803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22804 conftest$ac_exeext conftest.$ac_ext
22805 LIBS=$ac_check_lib_save_LIBS
22806 fi
22807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
22808 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
22809 if test "x$ac_cv_lib_rt_nanosleep" = xyes
22810 then :
22811
22812 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22813
22814
22815 fi
22816
22817
22818 fi
22819
22820 done
22821
22822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major, minor, and makedev" >&5
22823 printf %s "checking for major, minor, and makedev... " >&6; }
22824 if test ${ac_cv_device_macros+y}
22825 then :
22826 printf %s "(cached) " >&6
22827 else $as_nop
22828
22829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22830 /* end confdefs.h. */
22831
22832 #if defined(MAJOR_IN_MKDEV)
22833 #include <sys/mkdev.h>
22834 #elif defined(MAJOR_IN_SYSMACROS)
22835 #include <sys/types.h>
22836 #include <sys/sysmacros.h>
22837 #else
22838 #include <sys/types.h>
22839 #endif
22840
22841 int
22842 main (void)
22843 {
22844
22845 makedev(major(0),minor(0));
22846
22847 ;
22848 return 0;
22849 }
22850 _ACEOF
22851 if ac_fn_c_try_link "$LINENO"
22852 then :
22853 ac_cv_device_macros=yes
22854 else $as_nop
22855 ac_cv_device_macros=no
22856 fi
22857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22858 conftest$ac_exeext conftest.$ac_ext
22859
22860 fi
22861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_device_macros" >&5
22862 printf "%s\n" "$ac_cv_device_macros" >&6; }
22863 if test "x$ac_cv_device_macros" = xyes
22864 then :
22865
22866
22867 printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
22868
22869
22870 fi
22871
22872
22873 printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
22874
22875
22876 # On OSF/1 V5.1, getaddrinfo is available, but a define
22877 # for [no]getaddrinfo in netdb.h.
22878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
22879 printf %s "checking for getaddrinfo... " >&6; }
22880 if test ${ac_cv_func_getaddrinfo+y}
22881 then :
22882 printf %s "(cached) " >&6
22883 else $as_nop
22884
22885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22886 /* end confdefs.h. */
22887
22888 #include <sys/types.h>
22889 #include <sys/socket.h>
22890 #include <netdb.h>
22891 #include <stdio.h>
22892
22893 int
22894 main (void)
22895 {
22896 getaddrinfo(NULL, NULL, NULL, NULL);
22897 ;
22898 return 0;
22899 }
22900 _ACEOF
22901 if ac_fn_c_try_link "$LINENO"
22902 then :
22903 ac_cv_func_getaddrinfo=yes
22904 else $as_nop
22905 ac_cv_func_getaddrinfo=no
22906 fi
22907 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22908 conftest$ac_exeext conftest.$ac_ext
22909
22910 fi
22911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
22912 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
22913
22914 if test "x$ac_cv_func_getaddrinfo" = xyes
22915 then :
22916
22917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
22918 printf %s "checking getaddrinfo bug... " >&6; }
22919 if test ${ac_cv_buggy_getaddrinfo+y}
22920 then :
22921 printf %s "(cached) " >&6
22922 else $as_nop
22923 if test "$cross_compiling" = yes
22924 then :
22925
22926 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
22927 ac_cv_buggy_getaddrinfo="no"
22928 elif test "${enable_ipv6+set}" = set; then
22929 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
22930 else
22931 ac_cv_buggy_getaddrinfo=yes
22932 fi
22933 else $as_nop
22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935 /* end confdefs.h. */
22936
22937 #include <stdio.h>
22938 #include <sys/types.h>
22939 #include <netdb.h>
22940 #include <string.h>
22941 #include <sys/socket.h>
22942 #include <netinet/in.h>
22943
22944 int main(void)
22945 {
22946 int passive, gaierr, inet4 = 0, inet6 = 0;
22947 struct addrinfo hints, *ai, *aitop;
22948 char straddr[INET6_ADDRSTRLEN], strport[16];
22949
22950 for (passive = 0; passive <= 1; passive++) {
22951 memset(&hints, 0, sizeof(hints));
22952 hints.ai_family = AF_UNSPEC;
22953 hints.ai_flags = passive ? AI_PASSIVE : 0;
22954 hints.ai_socktype = SOCK_STREAM;
22955 hints.ai_protocol = IPPROTO_TCP;
22956 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
22957 (void)gai_strerror(gaierr);
22958 goto bad;
22959 }
22960 for (ai = aitop; ai; ai = ai->ai_next) {
22961 if (ai->ai_addr == NULL ||
22962 ai->ai_addrlen == 0 ||
22963 getnameinfo(ai->ai_addr, ai->ai_addrlen,
22964 straddr, sizeof(straddr), strport, sizeof(strport),
22965 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
22966 goto bad;
22967 }
22968 switch (ai->ai_family) {
22969 case AF_INET:
22970 if (strcmp(strport, "54321") != 0) {
22971 goto bad;
22972 }
22973 if (passive) {
22974 if (strcmp(straddr, "0.0.0.0") != 0) {
22975 goto bad;
22976 }
22977 } else {
22978 if (strcmp(straddr, "127.0.0.1") != 0) {
22979 goto bad;
22980 }
22981 }
22982 inet4++;
22983 break;
22984 case AF_INET6:
22985 if (strcmp(strport, "54321") != 0) {
22986 goto bad;
22987 }
22988 if (passive) {
22989 if (strcmp(straddr, "::") != 0) {
22990 goto bad;
22991 }
22992 } else {
22993 if (strcmp(straddr, "::1") != 0) {
22994 goto bad;
22995 }
22996 }
22997 inet6++;
22998 break;
22999 case AF_UNSPEC:
23000 goto bad;
23001 break;
23002 default:
23003 /* another family support? */
23004 break;
23005 }
23006 }
23007 freeaddrinfo(aitop);
23008 aitop = NULL;
23009 }
23010
23011 if (!(inet4 == 0 || inet4 == 2))
23012 goto bad;
23013 if (!(inet6 == 0 || inet6 == 2))
23014 goto bad;
23015
23016 if (aitop)
23017 freeaddrinfo(aitop);
23018 return 0;
23019
23020 bad:
23021 if (aitop)
23022 freeaddrinfo(aitop);
23023 return 1;
23024 }
23025
23026 _ACEOF
23027 if ac_fn_c_try_run "$LINENO"
23028 then :
23029 ac_cv_buggy_getaddrinfo=no
23030 else $as_nop
23031 ac_cv_buggy_getaddrinfo=yes
23032 fi
23033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23034 conftest.$ac_objext conftest.beam conftest.$ac_ext
23035 fi
23036
23037 fi
23038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
23039 printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; }
23040
23041
23042 fi
23043
23044 if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes
23045 then
23046 if test "x$ipv6" = xyes
23047 then :
23048
23049 as_fn_error $? "You must get working getaddrinfo() function or pass the \"--disable-ipv6\" option to configure." "$LINENO" 5
23050
23051 fi
23052 else
23053
23054 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
23055
23056 fi
23057
23058 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
23059 if test "x$ac_cv_func_getnameinfo" = xyes
23060 then :
23061 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
23062
23063 fi
23064
23065
23066 # checks for structures
23067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
23068 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23069 if test ${ac_cv_struct_tm+y}
23070 then :
23071 printf %s "(cached) " >&6
23072 else $as_nop
23073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23074 /* end confdefs.h. */
23075 #include <sys/types.h>
23076 #include <time.h>
23077
23078 int
23079 main (void)
23080 {
23081 struct tm tm;
23082 int *p = &tm.tm_sec;
23083 return !p;
23084 ;
23085 return 0;
23086 }
23087 _ACEOF
23088 if ac_fn_c_try_compile "$LINENO"
23089 then :
23090 ac_cv_struct_tm=time.h
23091 else $as_nop
23092 ac_cv_struct_tm=sys/time.h
23093 fi
23094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23095 fi
23096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
23097 printf "%s\n" "$ac_cv_struct_tm" >&6; }
23098 if test $ac_cv_struct_tm = sys/time.h; then
23099
23100 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
23101
23102 fi
23103
23104 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
23105 #include <$ac_cv_struct_tm>
23106
23107 "
23108 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
23109 then :
23110
23111 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
23112
23113
23114 fi
23115
23116 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23117
23118 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
23119
23120 else
23121 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23122 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23123 if test "x$ac_cv_have_decl_tzname" = xyes
23124 then :
23125 ac_have_decl=1
23126 else $as_nop
23127 ac_have_decl=0
23128 fi
23129 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
23130
23131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23132 printf %s "checking for tzname... " >&6; }
23133 if test ${ac_cv_var_tzname+y}
23134 then :
23135 printf %s "(cached) " >&6
23136 else $as_nop
23137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23138 /* end confdefs.h. */
23139 #include <time.h>
23140 #if !HAVE_DECL_TZNAME
23141 extern char *tzname[];
23142 #endif
23143
23144 int
23145 main (void)
23146 {
23147 return tzname[0][0];
23148 ;
23149 return 0;
23150 }
23151 _ACEOF
23152 if ac_fn_c_try_link "$LINENO"
23153 then :
23154 ac_cv_var_tzname=yes
23155 else $as_nop
23156 ac_cv_var_tzname=no
23157 fi
23158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23159 conftest$ac_exeext conftest.$ac_ext
23160 fi
23161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23162 printf "%s\n" "$ac_cv_var_tzname" >&6; }
23163 if test $ac_cv_var_tzname = yes; then
23164
23165 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
23166
23167 fi
23168 fi
23169
23170 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
23171 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
23172 then :
23173
23174 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
23175
23176
23177 fi
23178
23179 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
23180 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
23181 then :
23182
23183 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
23184
23185
23186 fi
23187
23188 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
23189 if test "x$ac_cv_member_struct_stat_st_flags" = xyes
23190 then :
23191
23192 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
23193
23194
23195 fi
23196
23197 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
23198 if test "x$ac_cv_member_struct_stat_st_gen" = xyes
23199 then :
23200
23201 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h
23202
23203
23204 fi
23205
23206 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
23207 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
23208 then :
23209
23210 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
23211
23212
23213 fi
23214
23215 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
23216 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
23217 then :
23218
23219 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
23220
23221
23222 fi
23223
23224 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
23225 #include <sys/types.h>
23226 #include <pwd.h>
23227
23228 "
23229 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes
23230 then :
23231
23232 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h
23233
23234
23235 fi
23236 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
23237 #include <sys/types.h>
23238 #include <pwd.h>
23239
23240 "
23241 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes
23242 then :
23243
23244 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h
23245
23246
23247 fi
23248
23249 # Issue #21085: In Cygwin, siginfo_t does not have si_band field.
23250 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
23251 "
23252 if test "x$ac_cv_member_siginfo_t_si_band" = xyes
23253 then :
23254
23255 printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h
23256
23257
23258 fi
23259
23260
23261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
23262 printf %s "checking for time.h that defines altzone... " >&6; }
23263 if test ${ac_cv_header_time_altzone+y}
23264 then :
23265 printf %s "(cached) " >&6
23266 else $as_nop
23267
23268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23269 /* end confdefs.h. */
23270 #include <time.h>
23271 int
23272 main (void)
23273 {
23274 return altzone;
23275 ;
23276 return 0;
23277 }
23278 _ACEOF
23279 if ac_fn_c_try_compile "$LINENO"
23280 then :
23281 ac_cv_header_time_altzone=yes
23282 else $as_nop
23283 ac_cv_header_time_altzone=no
23284 fi
23285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23286
23287 fi
23288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
23289 printf "%s\n" "$ac_cv_header_time_altzone" >&6; }
23290 if test $ac_cv_header_time_altzone = yes; then
23291
23292 printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h
23293
23294 fi
23295
23296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
23297 printf %s "checking for addrinfo... " >&6; }
23298 if test ${ac_cv_struct_addrinfo+y}
23299 then :
23300 printf %s "(cached) " >&6
23301 else $as_nop
23302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23303 /* end confdefs.h. */
23304 #include <netdb.h>
23305 int
23306 main (void)
23307 {
23308 struct addrinfo a
23309 ;
23310 return 0;
23311 }
23312 _ACEOF
23313 if ac_fn_c_try_compile "$LINENO"
23314 then :
23315 ac_cv_struct_addrinfo=yes
23316 else $as_nop
23317 ac_cv_struct_addrinfo=no
23318 fi
23319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23320 fi
23321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
23322 printf "%s\n" "$ac_cv_struct_addrinfo" >&6; }
23323 if test $ac_cv_struct_addrinfo = yes; then
23324
23325 printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h
23326
23327 fi
23328
23329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
23330 printf %s "checking for sockaddr_storage... " >&6; }
23331 if test ${ac_cv_struct_sockaddr_storage+y}
23332 then :
23333 printf %s "(cached) " >&6
23334 else $as_nop
23335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23336 /* end confdefs.h. */
23337
23338 # include <sys/types.h>
23339 # include <sys/socket.h>
23340 int
23341 main (void)
23342 {
23343 struct sockaddr_storage s
23344 ;
23345 return 0;
23346 }
23347 _ACEOF
23348 if ac_fn_c_try_compile "$LINENO"
23349 then :
23350 ac_cv_struct_sockaddr_storage=yes
23351 else $as_nop
23352 ac_cv_struct_sockaddr_storage=no
23353 fi
23354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23355 fi
23356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
23357 printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; }
23358 if test $ac_cv_struct_sockaddr_storage = yes; then
23359
23360 printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
23361
23362 fi
23363
23364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
23365 printf %s "checking for sockaddr_alg... " >&6; }
23366 if test ${ac_cv_struct_sockaddr_alg+y}
23367 then :
23368 printf %s "(cached) " >&6
23369 else $as_nop
23370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23371 /* end confdefs.h. */
23372
23373 # include <sys/types.h>
23374 # include <sys/socket.h>
23375 # include <linux/if_alg.h>
23376 int
23377 main (void)
23378 {
23379 struct sockaddr_alg s
23380 ;
23381 return 0;
23382 }
23383 _ACEOF
23384 if ac_fn_c_try_compile "$LINENO"
23385 then :
23386 ac_cv_struct_sockaddr_alg=yes
23387 else $as_nop
23388 ac_cv_struct_sockaddr_alg=no
23389 fi
23390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23391 fi
23392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
23393 printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; }
23394 if test $ac_cv_struct_sockaddr_alg = yes; then
23395
23396 printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
23397
23398 fi
23399
23400 # checks for compiler characteristics
23401
23402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23403 printf %s "checking for an ANSI C-conforming const... " >&6; }
23404 if test ${ac_cv_c_const+y}
23405 then :
23406 printf %s "(cached) " >&6
23407 else $as_nop
23408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h. */
23410
23411 int
23412 main (void)
23413 {
23414
23415 #ifndef __cplusplus
23416 /* Ultrix mips cc rejects this sort of thing. */
23417 typedef int charset[2];
23418 const charset cs = { 0, 0 };
23419 /* SunOS 4.1.1 cc rejects this. */
23420 char const *const *pcpcc;
23421 char **ppc;
23422 /* NEC SVR4.0.2 mips cc rejects this. */
23423 struct point {int x, y;};
23424 static struct point const zero = {0,0};
23425 /* IBM XL C 1.02.0.0 rejects this.
23426 It does not let you subtract one const X* pointer from another in
23427 an arm of an if-expression whose if-part is not a constant
23428 expression */
23429 const char *g = "string";
23430 pcpcc = &g + (g ? g-g : 0);
23431 /* HPUX 7.0 cc rejects these. */
23432 ++pcpcc;
23433 ppc = (char**) pcpcc;
23434 pcpcc = (char const *const *) ppc;
23435 { /* SCO 3.2v4 cc rejects this sort of thing. */
23436 char tx;
23437 char *t = &tx;
23438 char const *s = 0 ? (char *) 0 : (char const *) 0;
23439
23440 *t++ = 0;
23441 if (s) return 0;
23442 }
23443 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23444 int x[] = {25, 17};
23445 const int *foo = &x[0];
23446 ++foo;
23447 }
23448 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23449 typedef const int *iptr;
23450 iptr p = 0;
23451 ++p;
23452 }
23453 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
23454 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23455 struct s { int j; const int *ap[3]; } bx;
23456 struct s *b = &bx; b->j = 5;
23457 }
23458 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23459 const int foo = 10;
23460 if (!foo) return 0;
23461 }
23462 return !cs[0] && !zero.x;
23463 #endif
23464
23465 ;
23466 return 0;
23467 }
23468 _ACEOF
23469 if ac_fn_c_try_compile "$LINENO"
23470 then :
23471 ac_cv_c_const=yes
23472 else $as_nop
23473 ac_cv_c_const=no
23474 fi
23475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23476 fi
23477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23478 printf "%s\n" "$ac_cv_c_const" >&6; }
23479 if test $ac_cv_c_const = no; then
23480
23481 printf "%s\n" "#define const /**/" >>confdefs.h
23482
23483 fi
23484
23485
23486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
23487 printf %s "checking for working signed char... " >&6; }
23488 if test ${ac_cv_working_signed_char_c+y}
23489 then :
23490 printf %s "(cached) " >&6
23491 else $as_nop
23492
23493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23494 /* end confdefs.h. */
23495
23496 int
23497 main (void)
23498 {
23499 signed char c;
23500 ;
23501 return 0;
23502 }
23503 _ACEOF
23504 if ac_fn_c_try_compile "$LINENO"
23505 then :
23506 ac_cv_working_signed_char_c=yes
23507 else $as_nop
23508 ac_cv_working_signed_char_c=no
23509 fi
23510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23511
23512 fi
23513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_signed_char_c" >&5
23514 printf "%s\n" "$ac_cv_working_signed_char_c" >&6; }
23515 if test "x$ac_cv_working_signed_char_c" = xno
23516 then :
23517
23518
23519 printf "%s\n" "#define signed /**/" >>confdefs.h
23520
23521
23522 fi
23523
23524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
23525 printf %s "checking for prototypes... " >&6; }
23526 if test ${ac_cv_function_prototypes+y}
23527 then :
23528 printf %s "(cached) " >&6
23529 else $as_nop
23530
23531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23532 /* end confdefs.h. */
23533 int foo(int x) { return 0; }
23534 int
23535 main (void)
23536 {
23537 return foo(10);
23538 ;
23539 return 0;
23540 }
23541 _ACEOF
23542 if ac_fn_c_try_compile "$LINENO"
23543 then :
23544 ac_cv_function_prototypes=yes
23545 else $as_nop
23546 ac_cv_function_prototypes=no
23547 fi
23548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23549
23550 fi
23551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_function_prototypes" >&5
23552 printf "%s\n" "$ac_cv_function_prototypes" >&6; }
23553 if test "x$ac_cv_function_prototypes" = xyes
23554 then :
23555
23556
23557 printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h
23558
23559
23560 fi
23561
23562
23563 # check for socketpair
23564
23565
23566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
23567 printf %s "checking for socketpair... " >&6; }
23568 if test ${ac_cv_func_socketpair+y}
23569 then :
23570 printf %s "(cached) " >&6
23571 else $as_nop
23572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23573 /* end confdefs.h. */
23574
23575 #include <sys/types.h>
23576 #include <sys/socket.h>
23577
23578 int
23579 main (void)
23580 {
23581 void *x=socketpair
23582 ;
23583 return 0;
23584 }
23585 _ACEOF
23586 if ac_fn_c_try_compile "$LINENO"
23587 then :
23588 ac_cv_func_socketpair=yes
23589 else $as_nop
23590 ac_cv_func_socketpair=no
23591 fi
23592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23593
23594 fi
23595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socketpair" >&5
23596 printf "%s\n" "$ac_cv_func_socketpair" >&6; }
23597 if test "x$ac_cv_func_socketpair" = xyes
23598 then :
23599
23600 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
23601
23602 fi
23603
23604
23605
23606
23607 # check if sockaddr has sa_len member
23608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
23609 printf %s "checking if sockaddr has sa_len member... " >&6; }
23610 if test ${ac_cv_struct_sockaddr_sa_len+y}
23611 then :
23612 printf %s "(cached) " >&6
23613 else $as_nop
23614
23615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23616 /* end confdefs.h. */
23617 #include <sys/types.h>
23618 #include <sys/socket.h>
23619 int
23620 main (void)
23621 {
23622 struct sockaddr x;
23623 x.sa_len = 0;
23624 ;
23625 return 0;
23626 }
23627 _ACEOF
23628 if ac_fn_c_try_compile "$LINENO"
23629 then :
23630 ac_cv_struct_sockaddr_sa_len=yes
23631 else $as_nop
23632 ac_cv_struct_sockaddr_sa_len=no
23633 fi
23634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23635
23636 fi
23637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
23638 printf "%s\n" "$ac_cv_struct_sockaddr_sa_len" >&6; }
23639 if test "x$ac_cv_struct_sockaddr_sa_len" = xyes
23640 then :
23641
23642
23643 printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
23644
23645
23646 fi
23647
23648 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
23649
23650
23651 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
23652 if test "x$ac_cv_func_gethostbyname_r" = xyes
23653 then :
23654 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23655
23656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
23657 printf %s "checking gethostbyname_r with 6 args... " >&6; }
23658 OLD_CFLAGS=$CFLAGS
23659 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23661 /* end confdefs.h. */
23662
23663 # include <netdb.h>
23664
23665 int
23666 main (void)
23667 {
23668
23669 char *name;
23670 struct hostent *he, *res;
23671 char buffer[2048];
23672 int buflen = 2048;
23673 int h_errnop;
23674
23675 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23676
23677 ;
23678 return 0;
23679 }
23680 _ACEOF
23681 if ac_fn_c_try_compile "$LINENO"
23682 then :
23683
23684 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23685
23686
23687 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
23688
23689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23690 printf "%s\n" "yes" >&6; }
23691
23692 else $as_nop
23693
23694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23695 printf "%s\n" "no" >&6; }
23696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
23697 printf %s "checking gethostbyname_r with 5 args... " >&6; }
23698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699 /* end confdefs.h. */
23700
23701 # include <netdb.h>
23702
23703 int
23704 main (void)
23705 {
23706
23707 char *name;
23708 struct hostent *he;
23709 char buffer[2048];
23710 int buflen = 2048;
23711 int h_errnop;
23712
23713 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23714
23715 ;
23716 return 0;
23717 }
23718 _ACEOF
23719 if ac_fn_c_try_compile "$LINENO"
23720 then :
23721
23722 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23723
23724
23725 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
23726
23727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23728 printf "%s\n" "yes" >&6; }
23729
23730 else $as_nop
23731
23732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23733 printf "%s\n" "no" >&6; }
23734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
23735 printf %s "checking gethostbyname_r with 3 args... " >&6; }
23736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23737 /* end confdefs.h. */
23738
23739 # include <netdb.h>
23740
23741 int
23742 main (void)
23743 {
23744
23745 char *name;
23746 struct hostent *he;
23747 struct hostent_data data;
23748
23749 (void) gethostbyname_r(name, he, &data);
23750
23751 ;
23752 return 0;
23753 }
23754 _ACEOF
23755 if ac_fn_c_try_compile "$LINENO"
23756 then :
23757
23758 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23759
23760
23761 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
23762
23763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23764 printf "%s\n" "yes" >&6; }
23765
23766 else $as_nop
23767
23768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23769 printf "%s\n" "no" >&6; }
23770
23771 fi
23772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23773
23774 fi
23775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23776
23777 fi
23778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23779 CFLAGS=$OLD_CFLAGS
23780
23781 else $as_nop
23782
23783 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23784 if test "x$ac_cv_func_gethostbyname" = xyes
23785 then :
23786 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
23787
23788 fi
23789
23790
23791 fi
23792
23793
23794
23795
23796
23797
23798
23799 # checks for system services
23800 # (none yet)
23801
23802 # Linux requires this for correct f.p. operations
23803 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
23804 if test "x$ac_cv_func___fpu_control" = xyes
23805 then :
23806
23807 else $as_nop
23808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
23809 printf %s "checking for __fpu_control in -lieee... " >&6; }
23810 if test ${ac_cv_lib_ieee___fpu_control+y}
23811 then :
23812 printf %s "(cached) " >&6
23813 else $as_nop
23814 ac_check_lib_save_LIBS=$LIBS
23815 LIBS="-lieee $LIBS"
23816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23817 /* end confdefs.h. */
23818
23819 /* Override any GCC internal prototype to avoid an error.
23820 Use char because int might match the return type of a GCC
23821 builtin and then its argument prototype would still apply. */
23822 char __fpu_control ();
23823 int
23824 main (void)
23825 {
23826 return __fpu_control ();
23827 ;
23828 return 0;
23829 }
23830 _ACEOF
23831 if ac_fn_c_try_link "$LINENO"
23832 then :
23833 ac_cv_lib_ieee___fpu_control=yes
23834 else $as_nop
23835 ac_cv_lib_ieee___fpu_control=no
23836 fi
23837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23838 conftest$ac_exeext conftest.$ac_ext
23839 LIBS=$ac_check_lib_save_LIBS
23840 fi
23841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
23842 printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; }
23843 if test "x$ac_cv_lib_ieee___fpu_control" = xyes
23844 then :
23845 printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h
23846
23847 LIBS="-lieee $LIBS"
23848
23849 fi
23850
23851
23852 fi
23853
23854
23855 # check for --with-libm=...
23856
23857 case $ac_sys_system in
23858 Darwin) ;;
23859 *) LIBM=-lm
23860 esac
23861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
23862 printf %s "checking for --with-libm=STRING... " >&6; }
23863
23864 # Check whether --with-libm was given.
23865 if test ${with_libm+y}
23866 then :
23867 withval=$with_libm;
23868 if test "$withval" = no
23869 then LIBM=
23870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
23871 printf "%s\n" "force LIBM empty" >&6; }
23872 elif test "$withval" != yes
23873 then LIBM=$withval
23874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
23875 printf "%s\n" "set LIBM=\"$withval\"" >&6; }
23876 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
23877 fi
23878 else $as_nop
23879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
23880 printf "%s\n" "default LIBM=\"$LIBM\"" >&6; }
23881 fi
23882
23883
23884 # check for --with-libc=...
23885
23886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
23887 printf %s "checking for --with-libc=STRING... " >&6; }
23888
23889 # Check whether --with-libc was given.
23890 if test ${with_libc+y}
23891 then :
23892 withval=$with_libc;
23893 if test "$withval" = no
23894 then LIBC=
23895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
23896 printf "%s\n" "force LIBC empty" >&6; }
23897 elif test "$withval" != yes
23898 then LIBC=$withval
23899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
23900 printf "%s\n" "set LIBC=\"$withval\"" >&6; }
23901 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
23902 fi
23903 else $as_nop
23904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
23905 printf "%s\n" "default LIBC=\"$LIBC\"" >&6; }
23906 fi
23907
23908
23909 # **************************************
23910 # * Check for gcc x64 inline assembler *
23911 # **************************************
23912
23913
23914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
23915 printf %s "checking for x64 gcc inline assembler... " >&6; }
23916 if test ${ac_cv_gcc_asm_for_x64+y}
23917 then :
23918 printf %s "(cached) " >&6
23919 else $as_nop
23920
23921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23922 /* end confdefs.h. */
23923
23924 int
23925 main (void)
23926 {
23927
23928 __asm__ __volatile__ ("movq %rcx, %rax");
23929
23930 ;
23931 return 0;
23932 }
23933 _ACEOF
23934 if ac_fn_c_try_link "$LINENO"
23935 then :
23936 ac_cv_gcc_asm_for_x64=yes
23937 else $as_nop
23938 ac_cv_gcc_asm_for_x64=no
23939 fi
23940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23941 conftest$ac_exeext conftest.$ac_ext
23942
23943 fi
23944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x64" >&5
23945 printf "%s\n" "$ac_cv_gcc_asm_for_x64" >&6; }
23946
23947 if test "x$ac_cv_gcc_asm_for_x64" = xyes
23948 then :
23949
23950
23951 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
23952
23953
23954 fi
23955
23956 # **************************************************
23957 # * Check for various properties of floating point *
23958 # **************************************************
23959
23960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
23961 printf %s "checking whether float word ordering is bigendian... " >&6; }
23962 if test ${ax_cv_c_float_words_bigendian+y}
23963 then :
23964 printf %s "(cached) " >&6
23965 else $as_nop
23966
23967
23968 ax_cv_c_float_words_bigendian=unknown
23969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23970 /* end confdefs.h. */
23971
23972
23973 #include <stdlib.h>
23974
23975 static double m[] = {9.090423496703681e+223, 0.0};
23976
23977 int main (int argc, char *argv[])
23978 {
23979 m[atoi (argv[1])] += atof (argv[2]);
23980 return m[atoi (argv[3])] > 0.0;
23981 }
23982
23983
23984 _ACEOF
23985 if ac_fn_c_try_link "$LINENO"
23986 then :
23987
23988
23989 if grep noonsees conftest$EXEEXT >/dev/null ; then
23990 ax_cv_c_float_words_bigendian=yes
23991 fi
23992 if grep seesnoon conftest$EXEEXT >/dev/null ; then
23993 if test "$ax_cv_c_float_words_bigendian" = unknown; then
23994 ax_cv_c_float_words_bigendian=no
23995 else
23996 ax_cv_c_float_words_bigendian=unknown
23997 fi
23998 fi
23999
24000
24001 fi
24002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24003 conftest$ac_exeext conftest.$ac_ext
24004 fi
24005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
24006 printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; }
24007
24008 case $ax_cv_c_float_words_bigendian in
24009 yes)
24010
24011 printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
24012 ;;
24013 no)
24014
24015 printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
24016 ;;
24017 *)
24018 case $host_cpu in #(
24019 *arm*) :
24020 # Some ARM platforms use a mixed-endian representation for
24021 # doubles. While Python doesn't currently have full support
24022 # for these platforms (see e.g., issue 1762561), we can at
24023 # least make sure that float <-> string conversions work.
24024 # FLOAT_WORDS_BIGENDIAN doesn't actually detect this case,
24025 # but if it's not big or little, then it must be this?
24026
24027 printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
24028 ;; #(
24029 wasm*) :
24030
24031 printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
24032 ;; #(
24033 *) :
24034 ;;
24035 esac ;;
24036 esac
24037
24038
24039
24040 # The short float repr introduced in Python 3.1 requires the
24041 # correctly-rounded string <-> double conversion functions from
24042 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
24043 # rounding; this is a problem on x86, where the x87 FPU has a default
24044 # rounding precision of 64 bits. For gcc/x86, we can fix this by
24045 # using inline assembler to get and set the x87 FPU control word.
24046
24047 # This inline assembler syntax may also work for suncc and icc,
24048 # so we try it on all platforms.
24049
24050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
24051 printf %s "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
24052 if test ${ac_cv_gcc_asm_for_x87+y}
24053 then :
24054 printf %s "(cached) " >&6
24055 else $as_nop
24056
24057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24058 /* end confdefs.h. */
24059
24060 int
24061 main (void)
24062 {
24063
24064 unsigned short cw;
24065 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
24066 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
24067
24068 ;
24069 return 0;
24070 }
24071 _ACEOF
24072 if ac_fn_c_try_link "$LINENO"
24073 then :
24074 ac_cv_gcc_asm_for_x87=yes
24075 else $as_nop
24076 ac_cv_gcc_asm_for_x87=no
24077 fi
24078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24079 conftest$ac_exeext conftest.$ac_ext
24080
24081 fi
24082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x87" >&5
24083 printf "%s\n" "$ac_cv_gcc_asm_for_x87" >&6; }
24084 if test "x$ac_cv_gcc_asm_for_x87" = xyes
24085 then :
24086
24087
24088 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
24089
24090
24091 fi
24092
24093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
24094 printf %s "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
24095 if test ${ac_cv_gcc_asm_for_mc68881+y}
24096 then :
24097 printf %s "(cached) " >&6
24098 else $as_nop
24099
24100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24101 /* end confdefs.h. */
24102
24103 int
24104 main (void)
24105 {
24106
24107 unsigned int fpcr;
24108 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=dm" (fpcr));
24109 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "dm" (fpcr));
24110
24111 ;
24112 return 0;
24113 }
24114 _ACEOF
24115 if ac_fn_c_try_link "$LINENO"
24116 then :
24117 ac_cv_gcc_asm_for_mc68881=yes
24118 else $as_nop
24119 ac_cv_gcc_asm_for_mc68881=no
24120 fi
24121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24122 conftest$ac_exeext conftest.$ac_ext
24123
24124 fi
24125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_mc68881" >&5
24126 printf "%s\n" "$ac_cv_gcc_asm_for_mc68881" >&6; }
24127 if test "x$ac_cv_gcc_asm_for_mc68881" = xyes
24128 then :
24129
24130
24131 printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
24132
24133
24134 fi
24135
24136 # Detect whether system arithmetic is subject to x87-style double
24137 # rounding issues. The result of this test has little meaning on non
24138 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
24139 # mode is round-to-nearest and double rounding issues are present, and
24140 # 0 otherwise. See https://github.com/python/cpython/issues/47186 for more info.
24141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
24142 printf %s "checking for x87-style double rounding... " >&6; }
24143 if test ${ac_cv_x87_double_rounding+y}
24144 then :
24145 printf %s "(cached) " >&6
24146 else $as_nop
24147
24148 # $BASECFLAGS may affect the result
24149 ac_save_cc="$CC"
24150 CC="$CC $BASECFLAGS"
24151 if test "$cross_compiling" = yes
24152 then :
24153 ac_cv_x87_double_rounding=no
24154 else $as_nop
24155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24156 /* end confdefs.h. */
24157
24158 #include <stdlib.h>
24159 #include <math.h>
24160 int main(void) {
24161 volatile double x, y, z;
24162 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
24163 x = 0.99999999999999989; /* 1-2**-53 */
24164 y = 1./x;
24165 if (y != 1.)
24166 exit(0);
24167 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
24168 x = 1e16;
24169 y = 2.99999;
24170 z = x + y;
24171 if (z != 1e16+4.)
24172 exit(0);
24173 /* both tests show evidence of double rounding */
24174 exit(1);
24175 }
24176
24177 _ACEOF
24178 if ac_fn_c_try_run "$LINENO"
24179 then :
24180 ac_cv_x87_double_rounding=no
24181 else $as_nop
24182 ac_cv_x87_double_rounding=yes
24183 fi
24184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24185 conftest.$ac_objext conftest.beam conftest.$ac_ext
24186 fi
24187
24188 CC="$ac_save_cc"
24189
24190 fi
24191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
24192 printf "%s\n" "$ac_cv_x87_double_rounding" >&6; }
24193
24194 if test "x$ac_cv_x87_double_rounding" = xyes
24195 then :
24196
24197
24198 printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
24199
24200
24201 fi
24202
24203 # ************************************
24204 # * Check for mathematical functions *
24205 # ************************************
24206
24207 LIBS_SAVE=$LIBS
24208 LIBS="$LIBS $LIBM"
24209
24210
24211 for ac_func in acosh asinh atanh erf erfc expm1 log1p log2
24212 do :
24213 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
24214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24215 if eval test \"x\$"$as_ac_var"\" = x"yes"
24216 then :
24217 cat >>confdefs.h <<_ACEOF
24218 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
24219 _ACEOF
24220
24221 else $as_nop
24222 as_fn_error $? "Python requires C99 compatible libm" "$LINENO" 5
24223
24224 fi
24225
24226 done
24227 LIBS=$LIBS_SAVE
24228
24229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
24230 printf %s "checking whether POSIX semaphores are enabled... " >&6; }
24231 if test ${ac_cv_posix_semaphores_enabled+y}
24232 then :
24233 printf %s "(cached) " >&6
24234 else $as_nop
24235 if test "$cross_compiling" = yes
24236 then :
24237 ac_cv_posix_semaphores_enabled=yes
24238 else $as_nop
24239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24240 /* end confdefs.h. */
24241
24242
24243 #include <unistd.h>
24244 #include <fcntl.h>
24245 #include <stdio.h>
24246 #include <semaphore.h>
24247 #include <sys/stat.h>
24248
24249 int main(void) {
24250 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24251 if (a == SEM_FAILED) {
24252 perror("sem_open");
24253 return 1;
24254 }
24255 sem_close(a);
24256 sem_unlink("/autoconf");
24257 return 0;
24258 }
24259
24260
24261 _ACEOF
24262 if ac_fn_c_try_run "$LINENO"
24263 then :
24264 ac_cv_posix_semaphores_enabled=yes
24265 else $as_nop
24266 ac_cv_posix_semaphores_enabled=no
24267 fi
24268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24269 conftest.$ac_objext conftest.beam conftest.$ac_ext
24270 fi
24271
24272
24273 fi
24274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
24275 printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; }
24276 if test "x$ac_cv_posix_semaphores_enabled" = xno
24277 then :
24278
24279
24280 printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
24281
24282
24283 fi
24284
24285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
24286 printf %s "checking for broken sem_getvalue... " >&6; }
24287 if test ${ac_cv_broken_sem_getvalue+y}
24288 then :
24289 printf %s "(cached) " >&6
24290 else $as_nop
24291 if test "$cross_compiling" = yes
24292 then :
24293 ac_cv_broken_sem_getvalue=yes
24294 else $as_nop
24295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24296 /* end confdefs.h. */
24297
24298
24299 #include <unistd.h>
24300 #include <fcntl.h>
24301 #include <stdio.h>
24302 #include <semaphore.h>
24303 #include <sys/stat.h>
24304
24305 int main(void){
24306 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
24307 int count;
24308 int res;
24309 if(a==SEM_FAILED){
24310 perror("sem_open");
24311 return 1;
24312
24313 }
24314 res = sem_getvalue(a, &count);
24315 sem_close(a);
24316 sem_unlink("/autocftw");
24317 return res==-1 ? 1 : 0;
24318 }
24319
24320
24321 _ACEOF
24322 if ac_fn_c_try_run "$LINENO"
24323 then :
24324 ac_cv_broken_sem_getvalue=no
24325 else $as_nop
24326 ac_cv_broken_sem_getvalue=yes
24327 fi
24328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24329 conftest.$ac_objext conftest.beam conftest.$ac_ext
24330 fi
24331
24332
24333 fi
24334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
24335 printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; }
24336 if test "x$ac_cv_broken_sem_getvalue" = xyes
24337 then :
24338
24339
24340 printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
24341
24342
24343 fi
24344
24345 ac_fn_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
24346 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24347 if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes
24348 then :
24349 ac_have_decl=1
24350 else $as_nop
24351 ac_have_decl=0
24352 fi
24353 printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h
24354 ac_fn_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
24355 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24356 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
24357 then :
24358 ac_have_decl=1
24359 else $as_nop
24360 ac_have_decl=0
24361 fi
24362 printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h
24363 ac_fn_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
24364 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24365 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
24366 then :
24367 ac_have_decl=1
24368 else $as_nop
24369 ac_have_decl=0
24370 fi
24371 printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h
24372 ac_fn_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
24373 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24374 if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes
24375 then :
24376 ac_have_decl=1
24377 else $as_nop
24378 ac_have_decl=0
24379 fi
24380 printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h
24381 ac_fn_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
24382 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24383 if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes
24384 then :
24385 ac_have_decl=1
24386 else $as_nop
24387 ac_have_decl=0
24388 fi
24389 printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h
24390 ac_fn_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
24391 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24392 if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes
24393 then :
24394 ac_have_decl=1
24395 else $as_nop
24396 ac_have_decl=0
24397 fi
24398 printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h
24399 ac_fn_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
24400 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24401 if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes
24402 then :
24403 ac_have_decl=1
24404 else $as_nop
24405 ac_have_decl=0
24406 fi
24407 printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h
24408 ac_fn_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
24409 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24410 if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes
24411 then :
24412 ac_have_decl=1
24413 else $as_nop
24414 ac_have_decl=0
24415 fi
24416 printf "%s\n" "#define HAVE_DECL_RTLD_MEMBER $ac_have_decl" >>confdefs.h
24417
24418
24419 # determine what size digit to use for Python's longs
24420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
24421 printf %s "checking digit size for Python's longs... " >&6; }
24422 # Check whether --enable-big-digits was given.
24423 if test ${enable_big_digits+y}
24424 then :
24425 enableval=$enable_big_digits; case $enable_big_digits in
24426 yes)
24427 enable_big_digits=30 ;;
24428 no)
24429 enable_big_digits=15 ;;
24430 15|30)
24431 ;;
24432 *)
24433 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
24434 esac
24435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
24436 printf "%s\n" "$enable_big_digits" >&6; }
24437
24438 printf "%s\n" "#define PYLONG_BITS_IN_DIGIT $enable_big_digits" >>confdefs.h
24439
24440
24441 else $as_nop
24442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
24443 printf "%s\n" "no value specified" >&6; }
24444 fi
24445
24446
24447 # check for wchar.h
24448 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
24449 if test "x$ac_cv_header_wchar_h" = xyes
24450 then :
24451
24452
24453 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
24454
24455 wchar_h="yes"
24456
24457 else $as_nop
24458 wchar_h="no"
24459
24460 fi
24461
24462
24463 # determine wchar_t size
24464 if test "$wchar_h" = yes
24465 then
24466 # The cast to long int works around a bug in the HP C Compiler
24467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24469 # This bug is HP SR number 8606223364.
24470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
24471 printf %s "checking size of wchar_t... " >&6; }
24472 if test ${ac_cv_sizeof_wchar_t+y}
24473 then :
24474 printf %s "(cached) " >&6
24475 else $as_nop
24476 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
24477 "
24478 then :
24479
24480 else $as_nop
24481 if test "$ac_cv_type_wchar_t" = yes; then
24482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24483 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24484 as_fn_error 77 "cannot compute sizeof (wchar_t)
24485 See \`config.log' for more details" "$LINENO" 5; }
24486 else
24487 ac_cv_sizeof_wchar_t=0
24488 fi
24489 fi
24490
24491 fi
24492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
24493 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
24494
24495
24496
24497 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
24498
24499
24500 fi
24501
24502 # check whether wchar_t is signed or not
24503 if test "$wchar_h" = yes
24504 then
24505 # check whether wchar_t is signed or not
24506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
24507 printf %s "checking whether wchar_t is signed... " >&6; }
24508 if test ${ac_cv_wchar_t_signed+y}
24509 then :
24510 printf %s "(cached) " >&6
24511 else $as_nop
24512
24513 if test "$cross_compiling" = yes
24514 then :
24515 ac_cv_wchar_t_signed=yes
24516 else $as_nop
24517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24518 /* end confdefs.h. */
24519
24520 #include <wchar.h>
24521 int main()
24522 {
24523 /* Success: exit code 0 */
24524 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24525 }
24526
24527 _ACEOF
24528 if ac_fn_c_try_run "$LINENO"
24529 then :
24530 ac_cv_wchar_t_signed=yes
24531 else $as_nop
24532 ac_cv_wchar_t_signed=no
24533 fi
24534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24535 conftest.$ac_objext conftest.beam conftest.$ac_ext
24536 fi
24537
24538 fi
24539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
24540 printf "%s\n" "$ac_cv_wchar_t_signed" >&6; }
24541 fi
24542
24543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
24544 printf %s "checking whether wchar_t is usable... " >&6; }
24545 # wchar_t is only usable if it maps to an unsigned type
24546 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
24547 -a "$ac_cv_wchar_t_signed" = "no"
24548 then
24549
24550 printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
24551
24552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24553 printf "%s\n" "yes" >&6; }
24554 else
24555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24556 printf "%s\n" "no" >&6; }
24557 fi
24558
24559 case $ac_sys_system/$ac_sys_release in
24560 SunOS/*)
24561 if test -f /etc/os-release; then
24562 OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release)
24563 if test "x$OS_NAME" = "xOracle Solaris"; then
24564 # bpo-43667: In Oracle Solaris, the internal form of wchar_t in
24565 # non-Unicode locales is not Unicode and hence cannot be used directly.
24566 # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html
24567
24568 printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h
24569
24570 fi
24571 fi
24572 ;;
24573 esac
24574
24575 # check for endianness
24576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24577 printf %s "checking whether byte ordering is bigendian... " >&6; }
24578 if test ${ac_cv_c_bigendian+y}
24579 then :
24580 printf %s "(cached) " >&6
24581 else $as_nop
24582 ac_cv_c_bigendian=unknown
24583 # See if we're dealing with a universal compiler.
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24586 #ifndef __APPLE_CC__
24587 not a universal capable compiler
24588 #endif
24589 typedef int dummy;
24590
24591 _ACEOF
24592 if ac_fn_c_try_compile "$LINENO"
24593 then :
24594
24595 # Check for potential -arch flags. It is not universal unless
24596 # there are at least two -arch flags with different values.
24597 ac_arch=
24598 ac_prev=
24599 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24600 if test -n "$ac_prev"; then
24601 case $ac_word in
24602 i?86 | x86_64 | ppc | ppc64)
24603 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24604 ac_arch=$ac_word
24605 else
24606 ac_cv_c_bigendian=universal
24607 break
24608 fi
24609 ;;
24610 esac
24611 ac_prev=
24612 elif test "x$ac_word" = "x-arch"; then
24613 ac_prev=arch
24614 fi
24615 done
24616 fi
24617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24618 if test $ac_cv_c_bigendian = unknown; then
24619 # See if sys/param.h defines the BYTE_ORDER macro.
24620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621 /* end confdefs.h. */
24622 #include <sys/types.h>
24623 #include <sys/param.h>
24624
24625 int
24626 main (void)
24627 {
24628 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24629 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24630 && LITTLE_ENDIAN)
24631 bogus endian macros
24632 #endif
24633
24634 ;
24635 return 0;
24636 }
24637 _ACEOF
24638 if ac_fn_c_try_compile "$LINENO"
24639 then :
24640 # It does; now see whether it defined to BIG_ENDIAN or not.
24641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24642 /* end confdefs.h. */
24643 #include <sys/types.h>
24644 #include <sys/param.h>
24645
24646 int
24647 main (void)
24648 {
24649 #if BYTE_ORDER != BIG_ENDIAN
24650 not big endian
24651 #endif
24652
24653 ;
24654 return 0;
24655 }
24656 _ACEOF
24657 if ac_fn_c_try_compile "$LINENO"
24658 then :
24659 ac_cv_c_bigendian=yes
24660 else $as_nop
24661 ac_cv_c_bigendian=no
24662 fi
24663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24664 fi
24665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24666 fi
24667 if test $ac_cv_c_bigendian = unknown; then
24668 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670 /* end confdefs.h. */
24671 #include <limits.h>
24672
24673 int
24674 main (void)
24675 {
24676 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24677 bogus endian macros
24678 #endif
24679
24680 ;
24681 return 0;
24682 }
24683 _ACEOF
24684 if ac_fn_c_try_compile "$LINENO"
24685 then :
24686 # It does; now see whether it defined to _BIG_ENDIAN or not.
24687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24688 /* end confdefs.h. */
24689 #include <limits.h>
24690
24691 int
24692 main (void)
24693 {
24694 #ifndef _BIG_ENDIAN
24695 not big endian
24696 #endif
24697
24698 ;
24699 return 0;
24700 }
24701 _ACEOF
24702 if ac_fn_c_try_compile "$LINENO"
24703 then :
24704 ac_cv_c_bigendian=yes
24705 else $as_nop
24706 ac_cv_c_bigendian=no
24707 fi
24708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24709 fi
24710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24711 fi
24712 if test $ac_cv_c_bigendian = unknown; then
24713 # Compile a test program.
24714 if test "$cross_compiling" = yes
24715 then :
24716 # Try to guess by grepping values from an object file.
24717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24718 /* end confdefs.h. */
24719 unsigned short int ascii_mm[] =
24720 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24721 unsigned short int ascii_ii[] =
24722 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24723 int use_ascii (int i) {
24724 return ascii_mm[i] + ascii_ii[i];
24725 }
24726 unsigned short int ebcdic_ii[] =
24727 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24728 unsigned short int ebcdic_mm[] =
24729 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24730 int use_ebcdic (int i) {
24731 return ebcdic_mm[i] + ebcdic_ii[i];
24732 }
24733 extern int foo;
24734
24735 int
24736 main (void)
24737 {
24738 return use_ascii (foo) == use_ebcdic (foo);
24739 ;
24740 return 0;
24741 }
24742 _ACEOF
24743 if ac_fn_c_try_compile "$LINENO"
24744 then :
24745 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24746 ac_cv_c_bigendian=yes
24747 fi
24748 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24749 if test "$ac_cv_c_bigendian" = unknown; then
24750 ac_cv_c_bigendian=no
24751 else
24752 # finding both strings is unlikely to happen, but who knows?
24753 ac_cv_c_bigendian=unknown
24754 fi
24755 fi
24756 fi
24757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24758 else $as_nop
24759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24760 /* end confdefs.h. */
24761 $ac_includes_default
24762 int
24763 main (void)
24764 {
24765
24766 /* Are we little or big endian? From Harbison&Steele. */
24767 union
24768 {
24769 long int l;
24770 char c[sizeof (long int)];
24771 } u;
24772 u.l = 1;
24773 return u.c[sizeof (long int) - 1] == 1;
24774
24775 ;
24776 return 0;
24777 }
24778 _ACEOF
24779 if ac_fn_c_try_run "$LINENO"
24780 then :
24781 ac_cv_c_bigendian=no
24782 else $as_nop
24783 ac_cv_c_bigendian=yes
24784 fi
24785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24786 conftest.$ac_objext conftest.beam conftest.$ac_ext
24787 fi
24788
24789 fi
24790 fi
24791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24792 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
24793 case $ac_cv_c_bigendian in #(
24794 yes)
24795 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
24796 ;; #(
24797 no)
24798 ;; #(
24799 universal)
24800
24801 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24802
24803 ;; #(
24804 *)
24805 as_fn_error $? "unknown endianness
24806 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24807 esac
24808
24809
24810 # ABI version string for Python extension modules. This appears between the
24811 # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
24812 # from the following attributes which affect the ABI of this Python build (in
24813 # this order):
24814 #
24815 # * The Python implementation (always 'cpython-' for us)
24816 # * The major and minor version numbers
24817 # * --disable-gil (adds a 't')
24818 # * --with-pydebug (adds a 'd')
24819 #
24820 # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
24821 # would get a shared library ABI version tag of 'cpython-32dmu' and shared
24822 # libraries would be named 'foo.cpython-32dmu.so'.
24823 #
24824 # In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
24825 # In Python 3.7 and older, --with-pymalloc added a 'm' flag.
24826
24827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
24828 printf %s "checking ABIFLAGS... " >&6; }
24829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
24830 printf "%s\n" "$ABIFLAGS" >&6; }
24831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
24832 printf %s "checking SOABI... " >&6; }
24833 SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${SOABI_PLATFORM:+-$SOABI_PLATFORM}
24834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
24835 printf "%s\n" "$SOABI" >&6; }
24836
24837 # Release build, debug build (Py_DEBUG), and trace refs build (Py_TRACE_REFS)
24838 # are ABI compatible
24839 if test "$Py_DEBUG" = 'true'; then
24840 # Similar to SOABI but remove "d" flag from ABIFLAGS
24841
24842 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${SOABI_PLATFORM:+-$SOABI_PLATFORM}
24843
24844 printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h
24845
24846 fi
24847
24848
24849 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
24850
24851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
24852 printf %s "checking LDVERSION... " >&6; }
24853 LDVERSION='$(VERSION)$(ABIFLAGS)'
24854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
24855 printf "%s\n" "$LDVERSION" >&6; }
24856
24857 # Configure the flags and dependencies used when compiling shared modules.
24858 # Do not rename LIBPYTHON - it's accessed via sysconfig by package build
24859 # systems (e.g. Meson) to decide whether to link extension modules against
24860 # libpython.
24861
24862
24863 MODULE_DEPS_SHARED='$(MODULE_DEPS_STATIC) $(EXPORTSYMS)'
24864 LIBPYTHON=''
24865
24866 # On Android and Cygwin the shared libraries must be linked with libpython.
24867 if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then
24868 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(LDLIBRARY)"
24869 LIBPYTHON="\$(BLDLIBRARY)"
24870 fi
24871
24872 # On iOS the shared libraries must be linked with the Python framework
24873 if test "$ac_sys_system" = "iOS"; then
24874 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(PYTHONFRAMEWORKDIR)/\$(PYTHONFRAMEWORK)"
24875 fi
24876
24877
24878
24879 BINLIBDEST='$(LIBDIR)/python$(VERSION)$(ABI_THREAD)'
24880
24881
24882 # Check for --with-platlibdir
24883 # /usr/$PLATLIBDIR/python$(VERSION)$(ABI_THREAD)
24884
24885 PLATLIBDIR="lib"
24886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5
24887 printf %s "checking for --with-platlibdir... " >&6; }
24888
24889 # Check whether --with-platlibdir was given.
24890 if test ${with_platlibdir+y}
24891 then :
24892 withval=$with_platlibdir;
24893 # ignore 3 options:
24894 # --with-platlibdir
24895 # --with-platlibdir=
24896 # --without-platlibdir
24897 if test -n "$withval" -a "$withval" != yes -a "$withval" != no
24898 then
24899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24900 printf "%s\n" "yes" >&6; }
24901 PLATLIBDIR="$withval"
24902 BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)$(ABI_THREAD)'
24903 else
24904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24905 printf "%s\n" "no" >&6; }
24906 fi
24907 else $as_nop
24908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24909 printf "%s\n" "no" >&6; }
24910 fi
24911
24912
24913
24914
24915 if test x$PLATFORM_TRIPLET = x; then
24916 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}"
24917 else
24918 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
24919 fi
24920
24921
24922 # Check for --with-wheel-pkg-dir=PATH
24923
24924 WHEEL_PKG_DIR=""
24925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5
24926 printf %s "checking for --with-wheel-pkg-dir... " >&6; }
24927
24928 # Check whether --with-wheel-pkg-dir was given.
24929 if test ${with_wheel_pkg_dir+y}
24930 then :
24931 withval=$with_wheel_pkg_dir;
24932 if test -n "$withval"; then
24933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24934 printf "%s\n" "yes" >&6; }
24935 WHEEL_PKG_DIR="$withval"
24936 else
24937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24938 printf "%s\n" "no" >&6; }
24939 fi
24940 else $as_nop
24941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24942 printf "%s\n" "no" >&6; }
24943 fi
24944
24945
24946 # Check whether right shifting a negative integer extends the sign bit
24947 # or fills with zeros (like the Cray J90, according to Tim Peters).
24948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
24949 printf %s "checking whether right shift extends the sign bit... " >&6; }
24950 if test ${ac_cv_rshift_extends_sign+y}
24951 then :
24952 printf %s "(cached) " >&6
24953 else $as_nop
24954
24955 if test "$cross_compiling" = yes
24956 then :
24957 ac_cv_rshift_extends_sign=yes
24958 else $as_nop
24959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24960 /* end confdefs.h. */
24961
24962 int main(void)
24963 {
24964 return (((-1)>>3 == -1) ? 0 : 1);
24965 }
24966
24967 _ACEOF
24968 if ac_fn_c_try_run "$LINENO"
24969 then :
24970 ac_cv_rshift_extends_sign=yes
24971 else $as_nop
24972 ac_cv_rshift_extends_sign=no
24973 fi
24974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24975 conftest.$ac_objext conftest.beam conftest.$ac_ext
24976 fi
24977
24978 fi
24979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
24980 printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; }
24981 if test "$ac_cv_rshift_extends_sign" = no
24982 then
24983
24984 printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
24985
24986 fi
24987
24988 # check for getc_unlocked and related locking functions
24989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
24990 printf %s "checking for getc_unlocked() and friends... " >&6; }
24991 if test ${ac_cv_have_getc_unlocked+y}
24992 then :
24993 printf %s "(cached) " >&6
24994 else $as_nop
24995
24996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24997 /* end confdefs.h. */
24998 #include <stdio.h>
24999 int
25000 main (void)
25001 {
25002
25003 FILE *f = fopen("/dev/null", "r");
25004 flockfile(f);
25005 getc_unlocked(f);
25006 funlockfile(f);
25007
25008 ;
25009 return 0;
25010 }
25011 _ACEOF
25012 if ac_fn_c_try_link "$LINENO"
25013 then :
25014 ac_cv_have_getc_unlocked=yes
25015 else $as_nop
25016 ac_cv_have_getc_unlocked=no
25017 fi
25018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25019 conftest$ac_exeext conftest.$ac_ext
25020 fi
25021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
25022 printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; }
25023 if test "$ac_cv_have_getc_unlocked" = yes
25024 then
25025
25026 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
25027
25028 fi
25029
25030
25031
25032
25033
25034 # Check whether --with-readline was given.
25035 if test ${with_readline+y}
25036 then :
25037 withval=$with_readline;
25038 case $with_readline in #(
25039 editline|edit) :
25040 with_readline=edit ;; #(
25041 yes|readline) :
25042 with_readline=readline ;; #(
25043 no) :
25044 ;; #(
25045 *) :
25046 as_fn_error $? "proper usage is --with(out)-readline[=editline|readline|no]" "$LINENO" 5
25047 ;;
25048 esac
25049
25050 else $as_nop
25051 with_readline=readline
25052
25053 fi
25054
25055
25056 if test "x$with_readline" = xreadline
25057 then :
25058
25059
25060 pkg_failed=no
25061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
25062 printf %s "checking for readline... " >&6; }
25063
25064 if test -n "$LIBREADLINE_CFLAGS"; then
25065 pkg_cv_LIBREADLINE_CFLAGS="$LIBREADLINE_CFLAGS"
25066 elif test -n "$PKG_CONFIG"; then
25067 if test -n "$PKG_CONFIG" && \
25068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25069 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25070 ac_status=$?
25071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25072 test $ac_status = 0; }; then
25073 pkg_cv_LIBREADLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
25074 test "x$?" != "x0" && pkg_failed=yes
25075 else
25076 pkg_failed=yes
25077 fi
25078 else
25079 pkg_failed=untried
25080 fi
25081 if test -n "$LIBREADLINE_LIBS"; then
25082 pkg_cv_LIBREADLINE_LIBS="$LIBREADLINE_LIBS"
25083 elif test -n "$PKG_CONFIG"; then
25084 if test -n "$PKG_CONFIG" && \
25085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25086 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25087 ac_status=$?
25088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25089 test $ac_status = 0; }; then
25090 pkg_cv_LIBREADLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
25091 test "x$?" != "x0" && pkg_failed=yes
25092 else
25093 pkg_failed=yes
25094 fi
25095 else
25096 pkg_failed=untried
25097 fi
25098
25099
25100
25101 if test $pkg_failed = yes; then
25102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25103 printf "%s\n" "no" >&6; }
25104
25105 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25106 _pkg_short_errors_supported=yes
25107 else
25108 _pkg_short_errors_supported=no
25109 fi
25110 if test $_pkg_short_errors_supported = yes; then
25111 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
25112 else
25113 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
25114 fi
25115 # Put the nasty error message in config.log where it belongs
25116 echo "$LIBREADLINE_PKG_ERRORS" >&5
25117
25118
25119 save_CFLAGS=$CFLAGS
25120 save_CPPFLAGS=$CPPFLAGS
25121 save_LDFLAGS=$LDFLAGS
25122 save_LIBS=$LIBS
25123
25124
25125 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
25126 LIBS="$LIBS $LIBREADLINE_LIBS"
25127 for ac_header in readline/readline.h
25128 do :
25129 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
25130 if test "x$ac_cv_header_readline_readline_h" = xyes
25131 then :
25132 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
25133
25134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
25135 printf %s "checking for readline in -lreadline... " >&6; }
25136 if test ${ac_cv_lib_readline_readline+y}
25137 then :
25138 printf %s "(cached) " >&6
25139 else $as_nop
25140 ac_check_lib_save_LIBS=$LIBS
25141 LIBS="-lreadline $LIBS"
25142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h. */
25144
25145 /* Override any GCC internal prototype to avoid an error.
25146 Use char because int might match the return type of a GCC
25147 builtin and then its argument prototype would still apply. */
25148 char readline ();
25149 int
25150 main (void)
25151 {
25152 return readline ();
25153 ;
25154 return 0;
25155 }
25156 _ACEOF
25157 if ac_fn_c_try_link "$LINENO"
25158 then :
25159 ac_cv_lib_readline_readline=yes
25160 else $as_nop
25161 ac_cv_lib_readline_readline=no
25162 fi
25163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25164 conftest$ac_exeext conftest.$ac_ext
25165 LIBS=$ac_check_lib_save_LIBS
25166 fi
25167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
25168 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
25169 if test "x$ac_cv_lib_readline_readline" = xyes
25170 then :
25171
25172 LIBREADLINE=readline
25173 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
25174 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
25175
25176 else $as_nop
25177 with_readline=no
25178 fi
25179
25180
25181 else $as_nop
25182 with_readline=no
25183 fi
25184
25185 done
25186
25187 CFLAGS=$save_CFLAGS
25188 CPPFLAGS=$save_CPPFLAGS
25189 LDFLAGS=$save_LDFLAGS
25190 LIBS=$save_LIBS
25191
25192
25193
25194 elif test $pkg_failed = untried; then
25195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25196 printf "%s\n" "no" >&6; }
25197
25198 save_CFLAGS=$CFLAGS
25199 save_CPPFLAGS=$CPPFLAGS
25200 save_LDFLAGS=$LDFLAGS
25201 save_LIBS=$LIBS
25202
25203
25204 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
25205 LIBS="$LIBS $LIBREADLINE_LIBS"
25206 for ac_header in readline/readline.h
25207 do :
25208 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
25209 if test "x$ac_cv_header_readline_readline_h" = xyes
25210 then :
25211 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
25212
25213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
25214 printf %s "checking for readline in -lreadline... " >&6; }
25215 if test ${ac_cv_lib_readline_readline+y}
25216 then :
25217 printf %s "(cached) " >&6
25218 else $as_nop
25219 ac_check_lib_save_LIBS=$LIBS
25220 LIBS="-lreadline $LIBS"
25221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25222 /* end confdefs.h. */
25223
25224 /* Override any GCC internal prototype to avoid an error.
25225 Use char because int might match the return type of a GCC
25226 builtin and then its argument prototype would still apply. */
25227 char readline ();
25228 int
25229 main (void)
25230 {
25231 return readline ();
25232 ;
25233 return 0;
25234 }
25235 _ACEOF
25236 if ac_fn_c_try_link "$LINENO"
25237 then :
25238 ac_cv_lib_readline_readline=yes
25239 else $as_nop
25240 ac_cv_lib_readline_readline=no
25241 fi
25242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25243 conftest$ac_exeext conftest.$ac_ext
25244 LIBS=$ac_check_lib_save_LIBS
25245 fi
25246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
25247 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
25248 if test "x$ac_cv_lib_readline_readline" = xyes
25249 then :
25250
25251 LIBREADLINE=readline
25252 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
25253 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
25254
25255 else $as_nop
25256 with_readline=no
25257 fi
25258
25259
25260 else $as_nop
25261 with_readline=no
25262 fi
25263
25264 done
25265
25266 CFLAGS=$save_CFLAGS
25267 CPPFLAGS=$save_CPPFLAGS
25268 LDFLAGS=$save_LDFLAGS
25269 LIBS=$save_LIBS
25270
25271
25272
25273 else
25274 LIBREADLINE_CFLAGS=$pkg_cv_LIBREADLINE_CFLAGS
25275 LIBREADLINE_LIBS=$pkg_cv_LIBREADLINE_LIBS
25276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25277 printf "%s\n" "yes" >&6; }
25278
25279 LIBREADLINE=readline
25280 READLINE_CFLAGS=$LIBREADLINE_CFLAGS
25281 READLINE_LIBS=$LIBREADLINE_LIBS
25282
25283 fi
25284
25285 fi
25286
25287 if test "x$with_readline" = xedit
25288 then :
25289
25290
25291 pkg_failed=no
25292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
25293 printf %s "checking for libedit... " >&6; }
25294
25295 if test -n "$LIBEDIT_CFLAGS"; then
25296 pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
25297 elif test -n "$PKG_CONFIG"; then
25298 if test -n "$PKG_CONFIG" && \
25299 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
25300 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
25301 ac_status=$?
25302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; then
25304 pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
25305 test "x$?" != "x0" && pkg_failed=yes
25306 else
25307 pkg_failed=yes
25308 fi
25309 else
25310 pkg_failed=untried
25311 fi
25312 if test -n "$LIBEDIT_LIBS"; then
25313 pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
25314 elif test -n "$PKG_CONFIG"; then
25315 if test -n "$PKG_CONFIG" && \
25316 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
25317 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
25318 ac_status=$?
25319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; then
25321 pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
25322 test "x$?" != "x0" && pkg_failed=yes
25323 else
25324 pkg_failed=yes
25325 fi
25326 else
25327 pkg_failed=untried
25328 fi
25329
25330
25331
25332 if test $pkg_failed = yes; then
25333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25334 printf "%s\n" "no" >&6; }
25335
25336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25337 _pkg_short_errors_supported=yes
25338 else
25339 _pkg_short_errors_supported=no
25340 fi
25341 if test $_pkg_short_errors_supported = yes; then
25342 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
25343 else
25344 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
25345 fi
25346 # Put the nasty error message in config.log where it belongs
25347 echo "$LIBEDIT_PKG_ERRORS" >&5
25348
25349
25350 save_CFLAGS=$CFLAGS
25351 save_CPPFLAGS=$CPPFLAGS
25352 save_LDFLAGS=$LDFLAGS
25353 save_LIBS=$LIBS
25354
25355
25356 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
25357 LIBS="$LIBS $LIBEDIT_LIBS"
25358 for ac_header in editline/readline.h
25359 do :
25360 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
25361 if test "x$ac_cv_header_editline_readline_h" = xyes
25362 then :
25363 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
25364
25365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
25366 printf %s "checking for readline in -ledit... " >&6; }
25367 if test ${ac_cv_lib_edit_readline+y}
25368 then :
25369 printf %s "(cached) " >&6
25370 else $as_nop
25371 ac_check_lib_save_LIBS=$LIBS
25372 LIBS="-ledit $LIBS"
25373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25374 /* end confdefs.h. */
25375
25376 /* Override any GCC internal prototype to avoid an error.
25377 Use char because int might match the return type of a GCC
25378 builtin and then its argument prototype would still apply. */
25379 char readline ();
25380 int
25381 main (void)
25382 {
25383 return readline ();
25384 ;
25385 return 0;
25386 }
25387 _ACEOF
25388 if ac_fn_c_try_link "$LINENO"
25389 then :
25390 ac_cv_lib_edit_readline=yes
25391 else $as_nop
25392 ac_cv_lib_edit_readline=no
25393 fi
25394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25395 conftest$ac_exeext conftest.$ac_ext
25396 LIBS=$ac_check_lib_save_LIBS
25397 fi
25398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
25399 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
25400 if test "x$ac_cv_lib_edit_readline" = xyes
25401 then :
25402
25403 LIBREADLINE=edit
25404 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25405
25406 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
25407 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
25408
25409 else $as_nop
25410 with_readline=no
25411 fi
25412
25413
25414 else $as_nop
25415 with_readline=no
25416 fi
25417
25418 done
25419
25420 CFLAGS=$save_CFLAGS
25421 CPPFLAGS=$save_CPPFLAGS
25422 LDFLAGS=$save_LDFLAGS
25423 LIBS=$save_LIBS
25424
25425
25426
25427 elif test $pkg_failed = untried; then
25428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25429 printf "%s\n" "no" >&6; }
25430
25431 save_CFLAGS=$CFLAGS
25432 save_CPPFLAGS=$CPPFLAGS
25433 save_LDFLAGS=$LDFLAGS
25434 save_LIBS=$LIBS
25435
25436
25437 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
25438 LIBS="$LIBS $LIBEDIT_LIBS"
25439 for ac_header in editline/readline.h
25440 do :
25441 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
25442 if test "x$ac_cv_header_editline_readline_h" = xyes
25443 then :
25444 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
25445
25446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
25447 printf %s "checking for readline in -ledit... " >&6; }
25448 if test ${ac_cv_lib_edit_readline+y}
25449 then :
25450 printf %s "(cached) " >&6
25451 else $as_nop
25452 ac_check_lib_save_LIBS=$LIBS
25453 LIBS="-ledit $LIBS"
25454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25455 /* end confdefs.h. */
25456
25457 /* Override any GCC internal prototype to avoid an error.
25458 Use char because int might match the return type of a GCC
25459 builtin and then its argument prototype would still apply. */
25460 char readline ();
25461 int
25462 main (void)
25463 {
25464 return readline ();
25465 ;
25466 return 0;
25467 }
25468 _ACEOF
25469 if ac_fn_c_try_link "$LINENO"
25470 then :
25471 ac_cv_lib_edit_readline=yes
25472 else $as_nop
25473 ac_cv_lib_edit_readline=no
25474 fi
25475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25476 conftest$ac_exeext conftest.$ac_ext
25477 LIBS=$ac_check_lib_save_LIBS
25478 fi
25479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
25480 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
25481 if test "x$ac_cv_lib_edit_readline" = xyes
25482 then :
25483
25484 LIBREADLINE=edit
25485 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25486
25487 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
25488 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
25489
25490 else $as_nop
25491 with_readline=no
25492 fi
25493
25494
25495 else $as_nop
25496 with_readline=no
25497 fi
25498
25499 done
25500
25501 CFLAGS=$save_CFLAGS
25502 CPPFLAGS=$save_CPPFLAGS
25503 LDFLAGS=$save_LDFLAGS
25504 LIBS=$save_LIBS
25505
25506
25507
25508 else
25509 LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
25510 LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
25511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25512 printf "%s\n" "yes" >&6; }
25513
25514 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25515
25516 LIBREADLINE=edit
25517 READLINE_CFLAGS=$LIBEDIT_CFLAGS
25518 READLINE_LIBS=$LIBEDIT_LIBS
25519
25520 fi
25521
25522 fi
25523
25524 READLINE_CFLAGS=$(echo $READLINE_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
25525
25526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline" >&5
25527 printf %s "checking how to link readline... " >&6; }
25528 if test "x$with_readline" = xno
25529 then :
25530
25531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25532 printf "%s\n" "no" >&6; }
25533
25534 else $as_nop
25535
25536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&5
25537 printf "%s\n" "$with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&6; }
25538
25539 save_CFLAGS=$CFLAGS
25540 save_CPPFLAGS=$CPPFLAGS
25541 save_LDFLAGS=$LDFLAGS
25542 save_LIBS=$LIBS
25543
25544
25545 CPPFLAGS="$CPPFLAGS $READLINE_CFLAGS"
25546 LIBS="$LIBS $READLINE_LIBS"
25547 LIBS_SAVE=$LIBS
25548
25549
25550
25551 # check for readline 2.2
25552 ac_fn_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" "
25553 #include <stdio.h> /* Must be first for Gnu Readline */
25554 #ifdef WITH_EDITLINE
25555 # include <editline/readline.h>
25556 #else
25557 # include <readline/readline.h>
25558 # include <readline/history.h>
25559 #endif
25560
25561 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25562 if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes
25563 then :
25564
25565
25566 printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
25567
25568
25569 fi
25570
25571 ac_fn_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" "
25572 #include <stdio.h> /* Must be first for Gnu Readline */
25573 #ifdef WITH_EDITLINE
25574 # include <editline/readline.h>
25575 #else
25576 # include <readline/readline.h>
25577 # include <readline/history.h>
25578 #endif
25579
25580 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25581 if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes
25582 then :
25583
25584
25585 printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
25586
25587
25588 fi
25589
25590 # check for readline 4.0
25591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5
25592 printf %s "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; }
25593 if test ${ac_cv_readline_rl_pre_input_hook+y}
25594 then :
25595 printf %s "(cached) " >&6
25596 else $as_nop
25597
25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599 /* end confdefs.h. */
25600
25601 #include <stdio.h> /* Must be first for Gnu Readline */
25602 #ifdef WITH_EDITLINE
25603 # include <editline/readline.h>
25604 #else
25605 # include <readline/readline.h>
25606 # include <readline/history.h>
25607 #endif
25608
25609 int
25610 main (void)
25611 {
25612 void *x = rl_pre_input_hook
25613 ;
25614 return 0;
25615 }
25616 _ACEOF
25617 if ac_fn_c_try_link "$LINENO"
25618 then :
25619 ac_cv_readline_rl_pre_input_hook=yes
25620 else $as_nop
25621 ac_cv_readline_rl_pre_input_hook=no
25622
25623 fi
25624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25625 conftest$ac_exeext conftest.$ac_ext
25626
25627 fi
25628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_pre_input_hook" >&5
25629 printf "%s\n" "$ac_cv_readline_rl_pre_input_hook" >&6; }
25630 if test "x$ac_cv_readline_rl_pre_input_hook" = xyes
25631 then :
25632
25633
25634 printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
25635
25636
25637 fi
25638
25639 # also in 4.0
25640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5
25641 printf %s "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; }
25642 if test ${ac_cv_readline_rl_completion_display_matches_hook+y}
25643 then :
25644 printf %s "(cached) " >&6
25645 else $as_nop
25646
25647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25648 /* end confdefs.h. */
25649
25650 #include <stdio.h> /* Must be first for Gnu Readline */
25651 #ifdef WITH_EDITLINE
25652 # include <editline/readline.h>
25653 #else
25654 # include <readline/readline.h>
25655 # include <readline/history.h>
25656 #endif
25657
25658 int
25659 main (void)
25660 {
25661 void *x = rl_completion_display_matches_hook
25662 ;
25663 return 0;
25664 }
25665 _ACEOF
25666 if ac_fn_c_try_link "$LINENO"
25667 then :
25668 ac_cv_readline_rl_completion_display_matches_hook=yes
25669 else $as_nop
25670 ac_cv_readline_rl_completion_display_matches_hook=no
25671
25672 fi
25673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25674 conftest$ac_exeext conftest.$ac_ext
25675
25676 fi
25677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_display_matches_hook" >&5
25678 printf "%s\n" "$ac_cv_readline_rl_completion_display_matches_hook" >&6; }
25679 if test "x$ac_cv_readline_rl_completion_display_matches_hook" = xyes
25680 then :
25681
25682
25683 printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
25684
25685
25686 fi
25687
25688 # also in 4.0, but not in editline
25689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5
25690 printf %s "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; }
25691 if test ${ac_cv_readline_rl_resize_terminal+y}
25692 then :
25693 printf %s "(cached) " >&6
25694 else $as_nop
25695
25696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25697 /* end confdefs.h. */
25698
25699 #include <stdio.h> /* Must be first for Gnu Readline */
25700 #ifdef WITH_EDITLINE
25701 # include <editline/readline.h>
25702 #else
25703 # include <readline/readline.h>
25704 # include <readline/history.h>
25705 #endif
25706
25707 int
25708 main (void)
25709 {
25710 void *x = rl_resize_terminal
25711 ;
25712 return 0;
25713 }
25714 _ACEOF
25715 if ac_fn_c_try_link "$LINENO"
25716 then :
25717 ac_cv_readline_rl_resize_terminal=yes
25718 else $as_nop
25719 ac_cv_readline_rl_resize_terminal=no
25720
25721 fi
25722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25723 conftest$ac_exeext conftest.$ac_ext
25724
25725 fi
25726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_resize_terminal" >&5
25727 printf "%s\n" "$ac_cv_readline_rl_resize_terminal" >&6; }
25728 if test "x$ac_cv_readline_rl_resize_terminal" = xyes
25729 then :
25730
25731
25732 printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
25733
25734
25735 fi
25736
25737 # check for readline 4.2
25738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5
25739 printf %s "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; }
25740 if test ${ac_cv_readline_rl_completion_matches+y}
25741 then :
25742 printf %s "(cached) " >&6
25743 else $as_nop
25744
25745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25746 /* end confdefs.h. */
25747
25748 #include <stdio.h> /* Must be first for Gnu Readline */
25749 #ifdef WITH_EDITLINE
25750 # include <editline/readline.h>
25751 #else
25752 # include <readline/readline.h>
25753 # include <readline/history.h>
25754 #endif
25755
25756 int
25757 main (void)
25758 {
25759 void *x = rl_completion_matches
25760 ;
25761 return 0;
25762 }
25763 _ACEOF
25764 if ac_fn_c_try_link "$LINENO"
25765 then :
25766 ac_cv_readline_rl_completion_matches=yes
25767 else $as_nop
25768 ac_cv_readline_rl_completion_matches=no
25769
25770 fi
25771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25772 conftest$ac_exeext conftest.$ac_ext
25773
25774 fi
25775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_matches" >&5
25776 printf "%s\n" "$ac_cv_readline_rl_completion_matches" >&6; }
25777 if test "x$ac_cv_readline_rl_completion_matches" = xyes
25778 then :
25779
25780
25781 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
25782
25783
25784 fi
25785
25786 # also in readline 4.2
25787 ac_fn_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" "
25788 #include <stdio.h> /* Must be first for Gnu Readline */
25789 #ifdef WITH_EDITLINE
25790 # include <editline/readline.h>
25791 #else
25792 # include <readline/readline.h>
25793 # include <readline/history.h>
25794 #endif
25795
25796 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25797 if test "x$ac_cv_have_decl_rl_catch_signals" = xyes
25798 then :
25799
25800
25801 printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
25802
25803
25804 fi
25805
25806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5
25807 printf %s "checking for append_history in -l$LIBREADLINE... " >&6; }
25808 if test ${ac_cv_readline_append_history+y}
25809 then :
25810 printf %s "(cached) " >&6
25811 else $as_nop
25812
25813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25814 /* end confdefs.h. */
25815
25816 #include <stdio.h> /* Must be first for Gnu Readline */
25817 #ifdef WITH_EDITLINE
25818 # include <editline/readline.h>
25819 #else
25820 # include <readline/readline.h>
25821 # include <readline/history.h>
25822 #endif
25823
25824 int
25825 main (void)
25826 {
25827 void *x = append_history
25828 ;
25829 return 0;
25830 }
25831 _ACEOF
25832 if ac_fn_c_try_link "$LINENO"
25833 then :
25834 ac_cv_readline_append_history=yes
25835 else $as_nop
25836 ac_cv_readline_append_history=no
25837
25838 fi
25839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25840 conftest$ac_exeext conftest.$ac_ext
25841
25842 fi
25843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_append_history" >&5
25844 printf "%s\n" "$ac_cv_readline_append_history" >&6; }
25845 if test "x$ac_cv_readline_append_history" = xyes
25846 then :
25847
25848
25849 printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
25850
25851
25852 fi
25853
25854 # in readline as well as newer editline (April 2023)
25855 ac_fn_c_check_type "$LINENO" "rl_compdisp_func_t" "ac_cv_type_rl_compdisp_func_t" "
25856 #include <stdio.h> /* Must be first for Gnu Readline */
25857 #ifdef WITH_EDITLINE
25858 # include <editline/readline.h>
25859 #else
25860 # include <readline/readline.h>
25861 # include <readline/history.h>
25862 #endif
25863
25864 "
25865 if test "x$ac_cv_type_rl_compdisp_func_t" = xyes
25866 then :
25867
25868 printf "%s\n" "#define HAVE_RL_COMPDISP_FUNC_T 1" >>confdefs.h
25869
25870
25871 fi
25872
25873
25874 # Some editline versions declare rl_startup_hook as taking no args, others
25875 # declare it as taking 2.
25876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rl_startup_hook takes arguments" >&5
25877 printf %s "checking if rl_startup_hook takes arguments... " >&6; }
25878 if test ${ac_cv_readline_rl_startup_hook_takes_args+y}
25879 then :
25880 printf %s "(cached) " >&6
25881 else $as_nop
25882
25883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25884 /* end confdefs.h. */
25885
25886 #include <stdio.h> /* Must be first for Gnu Readline */
25887 #ifdef WITH_EDITLINE
25888 # include <editline/readline.h>
25889 #else
25890 # include <readline/readline.h>
25891 # include <readline/history.h>
25892 #endif
25893
25894 extern int test_hook_func(const char *text, int state);
25895 int
25896 main (void)
25897 {
25898 rl_startup_hook=test_hook_func;
25899 ;
25900 return 0;
25901 }
25902 _ACEOF
25903 if ac_fn_c_try_compile "$LINENO"
25904 then :
25905 ac_cv_readline_rl_startup_hook_takes_args=yes
25906 else $as_nop
25907 ac_cv_readline_rl_startup_hook_takes_args=no
25908
25909 fi
25910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25911
25912 fi
25913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_startup_hook_takes_args" >&5
25914 printf "%s\n" "$ac_cv_readline_rl_startup_hook_takes_args" >&6; }
25915 if test "x$ac_cv_readline_rl_startup_hook_takes_args" = xyes
25916 then :
25917
25918
25919 printf "%s\n" "#define Py_RL_STARTUP_HOOK_TAKES_ARGS 1" >>confdefs.h
25920
25921
25922 fi
25923
25924
25925
25926 CFLAGS=$save_CFLAGS
25927 CPPFLAGS=$save_CPPFLAGS
25928 LDFLAGS=$save_LDFLAGS
25929 LIBS=$save_LIBS
25930
25931
25932 fi
25933
25934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
25935 printf %s "checking for broken nice()... " >&6; }
25936 if test ${ac_cv_broken_nice+y}
25937 then :
25938 printf %s "(cached) " >&6
25939 else $as_nop
25940
25941 if test "$cross_compiling" = yes
25942 then :
25943 ac_cv_broken_nice=no
25944 else $as_nop
25945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25946 /* end confdefs.h. */
25947
25948 #include <stdlib.h>
25949 #include <unistd.h>
25950 int main(void)
25951 {
25952 int val1 = nice(1);
25953 if (val1 != -1 && val1 == nice(2))
25954 exit(0);
25955 exit(1);
25956 }
25957
25958 _ACEOF
25959 if ac_fn_c_try_run "$LINENO"
25960 then :
25961 ac_cv_broken_nice=yes
25962 else $as_nop
25963 ac_cv_broken_nice=no
25964 fi
25965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25966 conftest.$ac_objext conftest.beam conftest.$ac_ext
25967 fi
25968
25969 fi
25970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
25971 printf "%s\n" "$ac_cv_broken_nice" >&6; }
25972 if test "$ac_cv_broken_nice" = yes
25973 then
25974
25975 printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h
25976
25977 fi
25978
25979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
25980 printf %s "checking for broken poll()... " >&6; }
25981 if test ${ac_cv_broken_poll+y}
25982 then :
25983 printf %s "(cached) " >&6
25984 else $as_nop
25985 if test "$cross_compiling" = yes
25986 then :
25987 ac_cv_broken_poll=no
25988 else $as_nop
25989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25990 /* end confdefs.h. */
25991
25992 #include <poll.h>
25993 #include <unistd.h>
25994
25995 int main(void)
25996 {
25997 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25998 int poll_test;
25999
26000 close (42);
26001
26002 poll_test = poll(&poll_struct, 1, 0);
26003 if (poll_test < 0)
26004 return 0;
26005 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26006 return 0;
26007 else
26008 return 1;
26009 }
26010
26011 _ACEOF
26012 if ac_fn_c_try_run "$LINENO"
26013 then :
26014 ac_cv_broken_poll=yes
26015 else $as_nop
26016 ac_cv_broken_poll=no
26017 fi
26018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26019 conftest.$ac_objext conftest.beam conftest.$ac_ext
26020 fi
26021
26022 fi
26023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
26024 printf "%s\n" "$ac_cv_broken_poll" >&6; }
26025 if test "$ac_cv_broken_poll" = yes
26026 then
26027
26028 printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h
26029
26030 fi
26031
26032 # check tzset(3) exists and works like we expect it to
26033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
26034 printf %s "checking for working tzset()... " >&6; }
26035 if test ${ac_cv_working_tzset+y}
26036 then :
26037 printf %s "(cached) " >&6
26038 else $as_nop
26039
26040 if test "$cross_compiling" = yes
26041 then :
26042 ac_cv_working_tzset=no
26043 else $as_nop
26044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26045 /* end confdefs.h. */
26046
26047 #include <stdlib.h>
26048 #include <time.h>
26049 #include <string.h>
26050
26051 #if HAVE_TZNAME
26052 extern char *tzname[];
26053 #endif
26054
26055 int main(void)
26056 {
26057 /* Note that we need to ensure that not only does tzset(3)
26058 do 'something' with localtime, but it works as documented
26059 in the library reference and as expected by the test suite.
26060 This includes making sure that tzname is set properly if
26061 tm->tm_zone does not exist since it is the alternative way
26062 of getting timezone info.
26063
26064 Red Hat 6.2 doesn't understand the southern hemisphere
26065 after New Year's Day.
26066 */
26067
26068 time_t groundhogday = 1044144000; /* GMT-based */
26069 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26070
26071 putenv("TZ=UTC+0");
26072 tzset();
26073 if (localtime(&groundhogday)->tm_hour != 0)
26074 exit(1);
26075 #if HAVE_TZNAME
26076 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26077 if (strcmp(tzname[0], "UTC") ||
26078 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26079 exit(1);
26080 #endif
26081
26082 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26083 tzset();
26084 if (localtime(&groundhogday)->tm_hour != 19)
26085 exit(1);
26086 #if HAVE_TZNAME
26087 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26088 exit(1);
26089 #endif
26090
26091 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26092 tzset();
26093 if (localtime(&groundhogday)->tm_hour != 11)
26094 exit(1);
26095 #if HAVE_TZNAME
26096 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26097 exit(1);
26098 #endif
26099
26100 #if HAVE_STRUCT_TM_TM_ZONE
26101 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26102 exit(1);
26103 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26104 exit(1);
26105 #endif
26106
26107 exit(0);
26108 }
26109
26110 _ACEOF
26111 if ac_fn_c_try_run "$LINENO"
26112 then :
26113 ac_cv_working_tzset=yes
26114 else $as_nop
26115 ac_cv_working_tzset=no
26116 fi
26117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26118 conftest.$ac_objext conftest.beam conftest.$ac_ext
26119 fi
26120
26121 fi
26122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
26123 printf "%s\n" "$ac_cv_working_tzset" >&6; }
26124 if test "$ac_cv_working_tzset" = yes
26125 then
26126
26127 printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h
26128
26129 fi
26130
26131 # Look for subsecond timestamps in struct stat
26132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
26133 printf %s "checking for tv_nsec in struct stat... " >&6; }
26134 if test ${ac_cv_stat_tv_nsec+y}
26135 then :
26136 printf %s "(cached) " >&6
26137 else $as_nop
26138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26139 /* end confdefs.h. */
26140 #include <sys/stat.h>
26141 int
26142 main (void)
26143 {
26144
26145 struct stat st;
26146 st.st_mtim.tv_nsec = 1;
26147
26148 ;
26149 return 0;
26150 }
26151 _ACEOF
26152 if ac_fn_c_try_compile "$LINENO"
26153 then :
26154 ac_cv_stat_tv_nsec=yes
26155 else $as_nop
26156 ac_cv_stat_tv_nsec=no
26157 fi
26158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26159 fi
26160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
26161 printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; }
26162 if test "$ac_cv_stat_tv_nsec" = yes
26163 then
26164
26165 printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
26166
26167 fi
26168
26169 # Look for BSD style subsecond timestamps in struct stat
26170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
26171 printf %s "checking for tv_nsec2 in struct stat... " >&6; }
26172 if test ${ac_cv_stat_tv_nsec2+y}
26173 then :
26174 printf %s "(cached) " >&6
26175 else $as_nop
26176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26177 /* end confdefs.h. */
26178 #include <sys/stat.h>
26179 int
26180 main (void)
26181 {
26182
26183 struct stat st;
26184 st.st_mtimespec.tv_nsec = 1;
26185
26186 ;
26187 return 0;
26188 }
26189 _ACEOF
26190 if ac_fn_c_try_compile "$LINENO"
26191 then :
26192 ac_cv_stat_tv_nsec2=yes
26193 else $as_nop
26194 ac_cv_stat_tv_nsec2=no
26195 fi
26196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26197 fi
26198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
26199 printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; }
26200 if test "$ac_cv_stat_tv_nsec2" = yes
26201 then
26202
26203 printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
26204
26205 fi
26206
26207 have_curses=no
26208 have_panel=no
26209
26210
26211
26212 # Check for ncursesw/panelw first. If that fails, try ncurses/panel.
26213
26214
26215
26216 pkg_failed=no
26217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
26218 printf %s "checking for ncursesw... " >&6; }
26219
26220 if test -n "$CURSES_CFLAGS"; then
26221 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
26222 elif test -n "$PKG_CONFIG"; then
26223 if test -n "$PKG_CONFIG" && \
26224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
26225 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
26226 ac_status=$?
26227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26228 test $ac_status = 0; }; then
26229 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
26230 test "x$?" != "x0" && pkg_failed=yes
26231 else
26232 pkg_failed=yes
26233 fi
26234 else
26235 pkg_failed=untried
26236 fi
26237 if test -n "$CURSES_LIBS"; then
26238 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
26239 elif test -n "$PKG_CONFIG"; then
26240 if test -n "$PKG_CONFIG" && \
26241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
26242 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
26243 ac_status=$?
26244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26245 test $ac_status = 0; }; then
26246 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
26247 test "x$?" != "x0" && pkg_failed=yes
26248 else
26249 pkg_failed=yes
26250 fi
26251 else
26252 pkg_failed=untried
26253 fi
26254
26255
26256
26257 if test $pkg_failed = yes; then
26258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26259 printf "%s\n" "no" >&6; }
26260
26261 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26262 _pkg_short_errors_supported=yes
26263 else
26264 _pkg_short_errors_supported=no
26265 fi
26266 if test $_pkg_short_errors_supported = yes; then
26267 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
26268 else
26269 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
26270 fi
26271 # Put the nasty error message in config.log where it belongs
26272 echo "$CURSES_PKG_ERRORS" >&5
26273
26274 have_curses=no
26275 elif test $pkg_failed = untried; then
26276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26277 printf "%s\n" "no" >&6; }
26278 have_curses=no
26279 else
26280 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
26281 CURSES_LIBS=$pkg_cv_CURSES_LIBS
26282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26283 printf "%s\n" "yes" >&6; }
26284
26285 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
26286
26287 have_curses=yes
26288
26289 pkg_failed=no
26290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panelw" >&5
26291 printf %s "checking for panelw... " >&6; }
26292
26293 if test -n "$PANEL_CFLAGS"; then
26294 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
26295 elif test -n "$PKG_CONFIG"; then
26296 if test -n "$PKG_CONFIG" && \
26297 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
26298 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
26299 ac_status=$?
26300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26301 test $ac_status = 0; }; then
26302 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panelw" 2>/dev/null`
26303 test "x$?" != "x0" && pkg_failed=yes
26304 else
26305 pkg_failed=yes
26306 fi
26307 else
26308 pkg_failed=untried
26309 fi
26310 if test -n "$PANEL_LIBS"; then
26311 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
26312 elif test -n "$PKG_CONFIG"; then
26313 if test -n "$PKG_CONFIG" && \
26314 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
26315 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
26316 ac_status=$?
26317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; then
26319 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panelw" 2>/dev/null`
26320 test "x$?" != "x0" && pkg_failed=yes
26321 else
26322 pkg_failed=yes
26323 fi
26324 else
26325 pkg_failed=untried
26326 fi
26327
26328
26329
26330 if test $pkg_failed = yes; then
26331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26332 printf "%s\n" "no" >&6; }
26333
26334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26335 _pkg_short_errors_supported=yes
26336 else
26337 _pkg_short_errors_supported=no
26338 fi
26339 if test $_pkg_short_errors_supported = yes; then
26340 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panelw" 2>&1`
26341 else
26342 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panelw" 2>&1`
26343 fi
26344 # Put the nasty error message in config.log where it belongs
26345 echo "$PANEL_PKG_ERRORS" >&5
26346
26347 have_panel=no
26348 elif test $pkg_failed = untried; then
26349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26350 printf "%s\n" "no" >&6; }
26351 have_panel=no
26352 else
26353 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
26354 PANEL_LIBS=$pkg_cv_PANEL_LIBS
26355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26356 printf "%s\n" "yes" >&6; }
26357
26358 printf "%s\n" "#define HAVE_PANELW 1" >>confdefs.h
26359
26360 have_panel=yes
26361 fi
26362 fi
26363
26364
26365 if test "x$have_curses" = xno
26366 then :
26367
26368
26369
26370 pkg_failed=no
26371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
26372 printf %s "checking for ncurses... " >&6; }
26373
26374 if test -n "$CURSES_CFLAGS"; then
26375 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
26376 elif test -n "$PKG_CONFIG"; then
26377 if test -n "$PKG_CONFIG" && \
26378 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
26379 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
26380 ac_status=$?
26381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26382 test $ac_status = 0; }; then
26383 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
26384 test "x$?" != "x0" && pkg_failed=yes
26385 else
26386 pkg_failed=yes
26387 fi
26388 else
26389 pkg_failed=untried
26390 fi
26391 if test -n "$CURSES_LIBS"; then
26392 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
26393 elif test -n "$PKG_CONFIG"; then
26394 if test -n "$PKG_CONFIG" && \
26395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
26396 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
26397 ac_status=$?
26398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26399 test $ac_status = 0; }; then
26400 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
26401 test "x$?" != "x0" && pkg_failed=yes
26402 else
26403 pkg_failed=yes
26404 fi
26405 else
26406 pkg_failed=untried
26407 fi
26408
26409
26410
26411 if test $pkg_failed = yes; then
26412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26413 printf "%s\n" "no" >&6; }
26414
26415 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26416 _pkg_short_errors_supported=yes
26417 else
26418 _pkg_short_errors_supported=no
26419 fi
26420 if test $_pkg_short_errors_supported = yes; then
26421 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
26422 else
26423 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
26424 fi
26425 # Put the nasty error message in config.log where it belongs
26426 echo "$CURSES_PKG_ERRORS" >&5
26427
26428 have_curses=no
26429 elif test $pkg_failed = untried; then
26430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26431 printf "%s\n" "no" >&6; }
26432 have_curses=no
26433 else
26434 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
26435 CURSES_LIBS=$pkg_cv_CURSES_LIBS
26436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26437 printf "%s\n" "yes" >&6; }
26438
26439 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
26440
26441 have_curses=yes
26442
26443 pkg_failed=no
26444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panel" >&5
26445 printf %s "checking for panel... " >&6; }
26446
26447 if test -n "$PANEL_CFLAGS"; then
26448 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
26449 elif test -n "$PKG_CONFIG"; then
26450 if test -n "$PKG_CONFIG" && \
26451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
26452 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
26453 ac_status=$?
26454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; then
26456 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panel" 2>/dev/null`
26457 test "x$?" != "x0" && pkg_failed=yes
26458 else
26459 pkg_failed=yes
26460 fi
26461 else
26462 pkg_failed=untried
26463 fi
26464 if test -n "$PANEL_LIBS"; then
26465 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
26466 elif test -n "$PKG_CONFIG"; then
26467 if test -n "$PKG_CONFIG" && \
26468 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
26469 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
26470 ac_status=$?
26471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26472 test $ac_status = 0; }; then
26473 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panel" 2>/dev/null`
26474 test "x$?" != "x0" && pkg_failed=yes
26475 else
26476 pkg_failed=yes
26477 fi
26478 else
26479 pkg_failed=untried
26480 fi
26481
26482
26483
26484 if test $pkg_failed = yes; then
26485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26486 printf "%s\n" "no" >&6; }
26487
26488 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26489 _pkg_short_errors_supported=yes
26490 else
26491 _pkg_short_errors_supported=no
26492 fi
26493 if test $_pkg_short_errors_supported = yes; then
26494 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panel" 2>&1`
26495 else
26496 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panel" 2>&1`
26497 fi
26498 # Put the nasty error message in config.log where it belongs
26499 echo "$PANEL_PKG_ERRORS" >&5
26500
26501 have_panel=no
26502 elif test $pkg_failed = untried; then
26503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26504 printf "%s\n" "no" >&6; }
26505 have_panel=no
26506 else
26507 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
26508 PANEL_LIBS=$pkg_cv_PANEL_LIBS
26509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26510 printf "%s\n" "yes" >&6; }
26511
26512 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
26513
26514 have_panel=yes
26515 fi
26516 fi
26517
26518
26519 fi
26520
26521 save_CFLAGS=$CFLAGS
26522 save_CPPFLAGS=$CPPFLAGS
26523 save_LDFLAGS=$LDFLAGS
26524 save_LIBS=$LIBS
26525
26526
26527 # Make sure we've got the header defines.
26528 as_fn_append CPPFLAGS " $CURSES_CFLAGS $PANEL_CFLAGS"
26529 ac_fn_c_check_header_compile "$LINENO" "ncursesw/curses.h" "ac_cv_header_ncursesw_curses_h" "$ac_includes_default"
26530 if test "x$ac_cv_header_ncursesw_curses_h" = xyes
26531 then :
26532 printf "%s\n" "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h
26533
26534 fi
26535 ac_fn_c_check_header_compile "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
26536 if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes
26537 then :
26538 printf "%s\n" "#define HAVE_NCURSESW_NCURSES_H 1" >>confdefs.h
26539
26540 fi
26541 ac_fn_c_check_header_compile "$LINENO" "ncursesw/panel.h" "ac_cv_header_ncursesw_panel_h" "$ac_includes_default"
26542 if test "x$ac_cv_header_ncursesw_panel_h" = xyes
26543 then :
26544 printf "%s\n" "#define HAVE_NCURSESW_PANEL_H 1" >>confdefs.h
26545
26546 fi
26547 ac_fn_c_check_header_compile "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
26548 if test "x$ac_cv_header_ncurses_curses_h" = xyes
26549 then :
26550 printf "%s\n" "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h
26551
26552 fi
26553 ac_fn_c_check_header_compile "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default"
26554 if test "x$ac_cv_header_ncurses_ncurses_h" = xyes
26555 then :
26556 printf "%s\n" "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h
26557
26558 fi
26559 ac_fn_c_check_header_compile "$LINENO" "ncurses/panel.h" "ac_cv_header_ncurses_panel_h" "$ac_includes_default"
26560 if test "x$ac_cv_header_ncurses_panel_h" = xyes
26561 then :
26562 printf "%s\n" "#define HAVE_NCURSES_PANEL_H 1" >>confdefs.h
26563
26564 fi
26565 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
26566 if test "x$ac_cv_header_curses_h" = xyes
26567 then :
26568 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
26569
26570 fi
26571 ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
26572 if test "x$ac_cv_header_ncurses_h" = xyes
26573 then :
26574 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
26575
26576 fi
26577 ac_fn_c_check_header_compile "$LINENO" "panel.h" "ac_cv_header_panel_h" "$ac_includes_default"
26578 if test "x$ac_cv_header_panel_h" = xyes
26579 then :
26580 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
26581
26582 fi
26583
26584
26585 # Check that we're able to link with crucial curses/panel functions. This
26586 # also serves as a fallback in case pkg-config failed.
26587 as_fn_append LIBS " $CURSES_LIBS $PANEL_LIBS"
26588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5
26589 printf %s "checking for library containing initscr... " >&6; }
26590 if test ${ac_cv_search_initscr+y}
26591 then :
26592 printf %s "(cached) " >&6
26593 else $as_nop
26594 ac_func_search_save_LIBS=$LIBS
26595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26596 /* end confdefs.h. */
26597
26598 /* Override any GCC internal prototype to avoid an error.
26599 Use char because int might match the return type of a GCC
26600 builtin and then its argument prototype would still apply. */
26601 char initscr ();
26602 int
26603 main (void)
26604 {
26605 return initscr ();
26606 ;
26607 return 0;
26608 }
26609 _ACEOF
26610 for ac_lib in '' ncursesw ncurses
26611 do
26612 if test -z "$ac_lib"; then
26613 ac_res="none required"
26614 else
26615 ac_res=-l$ac_lib
26616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26617 fi
26618 if ac_fn_c_try_link "$LINENO"
26619 then :
26620 ac_cv_search_initscr=$ac_res
26621 fi
26622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26623 conftest$ac_exeext
26624 if test ${ac_cv_search_initscr+y}
26625 then :
26626 break
26627 fi
26628 done
26629 if test ${ac_cv_search_initscr+y}
26630 then :
26631
26632 else $as_nop
26633 ac_cv_search_initscr=no
26634 fi
26635 rm conftest.$ac_ext
26636 LIBS=$ac_func_search_save_LIBS
26637 fi
26638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5
26639 printf "%s\n" "$ac_cv_search_initscr" >&6; }
26640 ac_res=$ac_cv_search_initscr
26641 if test "$ac_res" != no
26642 then :
26643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26644 if test "x$have_curses" = xno
26645 then :
26646 have_curses=yes
26647 CURSES_LIBS=${CURSES_LIBS-"$ac_cv_search_initscr"}
26648 fi
26649 else $as_nop
26650 have_curses=no
26651 fi
26652
26653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing update_panels" >&5
26654 printf %s "checking for library containing update_panels... " >&6; }
26655 if test ${ac_cv_search_update_panels+y}
26656 then :
26657 printf %s "(cached) " >&6
26658 else $as_nop
26659 ac_func_search_save_LIBS=$LIBS
26660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26661 /* end confdefs.h. */
26662
26663 /* Override any GCC internal prototype to avoid an error.
26664 Use char because int might match the return type of a GCC
26665 builtin and then its argument prototype would still apply. */
26666 char update_panels ();
26667 int
26668 main (void)
26669 {
26670 return update_panels ();
26671 ;
26672 return 0;
26673 }
26674 _ACEOF
26675 for ac_lib in '' panelw panel
26676 do
26677 if test -z "$ac_lib"; then
26678 ac_res="none required"
26679 else
26680 ac_res=-l$ac_lib
26681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26682 fi
26683 if ac_fn_c_try_link "$LINENO"
26684 then :
26685 ac_cv_search_update_panels=$ac_res
26686 fi
26687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26688 conftest$ac_exeext
26689 if test ${ac_cv_search_update_panels+y}
26690 then :
26691 break
26692 fi
26693 done
26694 if test ${ac_cv_search_update_panels+y}
26695 then :
26696
26697 else $as_nop
26698 ac_cv_search_update_panels=no
26699 fi
26700 rm conftest.$ac_ext
26701 LIBS=$ac_func_search_save_LIBS
26702 fi
26703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_update_panels" >&5
26704 printf "%s\n" "$ac_cv_search_update_panels" >&6; }
26705 ac_res=$ac_cv_search_update_panels
26706 if test "$ac_res" != no
26707 then :
26708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26709 if test "x$have_panel" = xno
26710 then :
26711 have_panel=yes
26712 PANEL_LIBS=${PANEL_LIBS-"$ac_cv_search_update_panels"}
26713 fi
26714 else $as_nop
26715 have_panel=no
26716 fi
26717
26718
26719
26720
26721 if test "have_curses" != "no"
26722 then :
26723
26724 CURSES_CFLAGS=$(echo $CURSES_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
26725
26726 if test "x$ac_sys_system" = xDarwin
26727 then :
26728
26729
26730 as_fn_append CURSES_CFLAGS " -D_XOPEN_SOURCE_EXTENDED=1"
26731
26732 fi
26733
26734 PANEL_CFLAGS=$(echo $PANEL_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
26735
26736 # On Solaris, term.h requires curses.h
26737 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
26738 #define NCURSES_OPAQUE 0
26739 #if defined(HAVE_NCURSESW_NCURSES_H)
26740 # include <ncursesw/ncurses.h>
26741 #elif defined(HAVE_NCURSESW_CURSES_H)
26742 # include <ncursesw/curses.h>
26743 #elif defined(HAVE_NCURSES_NCURSES_H)
26744 # include <ncurses/ncurses.h>
26745 #elif defined(HAVE_NCURSES_CURSES_H)
26746 # include <ncurses/curses.h>
26747 #elif defined(HAVE_NCURSES_H)
26748 # include <ncurses.h>
26749 #elif defined(HAVE_CURSES_H)
26750 # include <curses.h>
26751 #endif
26752
26753 "
26754 if test "x$ac_cv_header_term_h" = xyes
26755 then :
26756 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
26757
26758 fi
26759
26760
26761 # On HP/UX 11.0, mvwdelch is a block with a return statement
26762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
26763 printf %s "checking whether mvwdelch is an expression... " >&6; }
26764 if test ${ac_cv_mvwdelch_is_expression+y}
26765 then :
26766 printf %s "(cached) " >&6
26767 else $as_nop
26768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26769 /* end confdefs.h. */
26770
26771 #define NCURSES_OPAQUE 0
26772 #if defined(HAVE_NCURSESW_NCURSES_H)
26773 # include <ncursesw/ncurses.h>
26774 #elif defined(HAVE_NCURSESW_CURSES_H)
26775 # include <ncursesw/curses.h>
26776 #elif defined(HAVE_NCURSES_NCURSES_H)
26777 # include <ncurses/ncurses.h>
26778 #elif defined(HAVE_NCURSES_CURSES_H)
26779 # include <ncurses/curses.h>
26780 #elif defined(HAVE_NCURSES_H)
26781 # include <ncurses.h>
26782 #elif defined(HAVE_CURSES_H)
26783 # include <curses.h>
26784 #endif
26785
26786 int
26787 main (void)
26788 {
26789
26790 int rtn;
26791 rtn = mvwdelch(0,0,0);
26792
26793 ;
26794 return 0;
26795 }
26796 _ACEOF
26797 if ac_fn_c_try_compile "$LINENO"
26798 then :
26799 ac_cv_mvwdelch_is_expression=yes
26800 else $as_nop
26801 ac_cv_mvwdelch_is_expression=no
26802 fi
26803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26804 fi
26805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
26806 printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; }
26807
26808 if test "$ac_cv_mvwdelch_is_expression" = yes
26809 then
26810
26811 printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
26812
26813 fi
26814
26815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
26816 printf %s "checking whether WINDOW has _flags... " >&6; }
26817 if test ${ac_cv_window_has_flags+y}
26818 then :
26819 printf %s "(cached) " >&6
26820 else $as_nop
26821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26822 /* end confdefs.h. */
26823
26824 #define NCURSES_OPAQUE 0
26825 #if defined(HAVE_NCURSESW_NCURSES_H)
26826 # include <ncursesw/ncurses.h>
26827 #elif defined(HAVE_NCURSESW_CURSES_H)
26828 # include <ncursesw/curses.h>
26829 #elif defined(HAVE_NCURSES_NCURSES_H)
26830 # include <ncurses/ncurses.h>
26831 #elif defined(HAVE_NCURSES_CURSES_H)
26832 # include <ncurses/curses.h>
26833 #elif defined(HAVE_NCURSES_H)
26834 # include <ncurses.h>
26835 #elif defined(HAVE_CURSES_H)
26836 # include <curses.h>
26837 #endif
26838
26839 int
26840 main (void)
26841 {
26842
26843 WINDOW *w;
26844 w->_flags = 0;
26845
26846 ;
26847 return 0;
26848 }
26849 _ACEOF
26850 if ac_fn_c_try_compile "$LINENO"
26851 then :
26852 ac_cv_window_has_flags=yes
26853 else $as_nop
26854 ac_cv_window_has_flags=no
26855 fi
26856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26857 fi
26858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
26859 printf "%s\n" "$ac_cv_window_has_flags" >&6; }
26860
26861
26862 if test "$ac_cv_window_has_flags" = yes
26863 then
26864
26865 printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
26866
26867 fi
26868
26869
26870
26871
26872
26873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_pad" >&5
26874 printf %s "checking for curses function is_pad... " >&6; }
26875 if test ${ac_cv_lib_curses_is_pad+y}
26876 then :
26877 printf %s "(cached) " >&6
26878 else $as_nop
26879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26880 /* end confdefs.h. */
26881
26882 #define NCURSES_OPAQUE 0
26883 #if defined(HAVE_NCURSESW_NCURSES_H)
26884 # include <ncursesw/ncurses.h>
26885 #elif defined(HAVE_NCURSESW_CURSES_H)
26886 # include <ncursesw/curses.h>
26887 #elif defined(HAVE_NCURSES_NCURSES_H)
26888 # include <ncurses/ncurses.h>
26889 #elif defined(HAVE_NCURSES_CURSES_H)
26890 # include <ncurses/curses.h>
26891 #elif defined(HAVE_NCURSES_H)
26892 # include <ncurses.h>
26893 #elif defined(HAVE_CURSES_H)
26894 # include <curses.h>
26895 #endif
26896
26897 int
26898 main (void)
26899 {
26900
26901 #ifndef is_pad
26902 void *x=is_pad
26903 #endif
26904
26905 ;
26906 return 0;
26907 }
26908 _ACEOF
26909 if ac_fn_c_try_compile "$LINENO"
26910 then :
26911 ac_cv_lib_curses_is_pad=yes
26912 else $as_nop
26913 ac_cv_lib_curses_is_pad=no
26914 fi
26915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26916
26917 fi
26918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_pad" >&5
26919 printf "%s\n" "$ac_cv_lib_curses_is_pad" >&6; }
26920 if test "x$ac_cv_lib_curses_is_pad" = xyes
26921 then :
26922
26923 printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
26924
26925 fi
26926
26927
26928
26929
26930
26931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_term_resized" >&5
26932 printf %s "checking for curses function is_term_resized... " >&6; }
26933 if test ${ac_cv_lib_curses_is_term_resized+y}
26934 then :
26935 printf %s "(cached) " >&6
26936 else $as_nop
26937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26938 /* end confdefs.h. */
26939
26940 #define NCURSES_OPAQUE 0
26941 #if defined(HAVE_NCURSESW_NCURSES_H)
26942 # include <ncursesw/ncurses.h>
26943 #elif defined(HAVE_NCURSESW_CURSES_H)
26944 # include <ncursesw/curses.h>
26945 #elif defined(HAVE_NCURSES_NCURSES_H)
26946 # include <ncurses/ncurses.h>
26947 #elif defined(HAVE_NCURSES_CURSES_H)
26948 # include <ncurses/curses.h>
26949 #elif defined(HAVE_NCURSES_H)
26950 # include <ncurses.h>
26951 #elif defined(HAVE_CURSES_H)
26952 # include <curses.h>
26953 #endif
26954
26955 int
26956 main (void)
26957 {
26958
26959 #ifndef is_term_resized
26960 void *x=is_term_resized
26961 #endif
26962
26963 ;
26964 return 0;
26965 }
26966 _ACEOF
26967 if ac_fn_c_try_compile "$LINENO"
26968 then :
26969 ac_cv_lib_curses_is_term_resized=yes
26970 else $as_nop
26971 ac_cv_lib_curses_is_term_resized=no
26972 fi
26973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26974
26975 fi
26976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_term_resized" >&5
26977 printf "%s\n" "$ac_cv_lib_curses_is_term_resized" >&6; }
26978 if test "x$ac_cv_lib_curses_is_term_resized" = xyes
26979 then :
26980
26981 printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
26982
26983 fi
26984
26985
26986
26987
26988
26989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resize_term" >&5
26990 printf %s "checking for curses function resize_term... " >&6; }
26991 if test ${ac_cv_lib_curses_resize_term+y}
26992 then :
26993 printf %s "(cached) " >&6
26994 else $as_nop
26995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26996 /* end confdefs.h. */
26997
26998 #define NCURSES_OPAQUE 0
26999 #if defined(HAVE_NCURSESW_NCURSES_H)
27000 # include <ncursesw/ncurses.h>
27001 #elif defined(HAVE_NCURSESW_CURSES_H)
27002 # include <ncursesw/curses.h>
27003 #elif defined(HAVE_NCURSES_NCURSES_H)
27004 # include <ncurses/ncurses.h>
27005 #elif defined(HAVE_NCURSES_CURSES_H)
27006 # include <ncurses/curses.h>
27007 #elif defined(HAVE_NCURSES_H)
27008 # include <ncurses.h>
27009 #elif defined(HAVE_CURSES_H)
27010 # include <curses.h>
27011 #endif
27012
27013 int
27014 main (void)
27015 {
27016
27017 #ifndef resize_term
27018 void *x=resize_term
27019 #endif
27020
27021 ;
27022 return 0;
27023 }
27024 _ACEOF
27025 if ac_fn_c_try_compile "$LINENO"
27026 then :
27027 ac_cv_lib_curses_resize_term=yes
27028 else $as_nop
27029 ac_cv_lib_curses_resize_term=no
27030 fi
27031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27032
27033 fi
27034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resize_term" >&5
27035 printf "%s\n" "$ac_cv_lib_curses_resize_term" >&6; }
27036 if test "x$ac_cv_lib_curses_resize_term" = xyes
27037 then :
27038
27039 printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
27040
27041 fi
27042
27043
27044
27045
27046
27047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resizeterm" >&5
27048 printf %s "checking for curses function resizeterm... " >&6; }
27049 if test ${ac_cv_lib_curses_resizeterm+y}
27050 then :
27051 printf %s "(cached) " >&6
27052 else $as_nop
27053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27054 /* end confdefs.h. */
27055
27056 #define NCURSES_OPAQUE 0
27057 #if defined(HAVE_NCURSESW_NCURSES_H)
27058 # include <ncursesw/ncurses.h>
27059 #elif defined(HAVE_NCURSESW_CURSES_H)
27060 # include <ncursesw/curses.h>
27061 #elif defined(HAVE_NCURSES_NCURSES_H)
27062 # include <ncurses/ncurses.h>
27063 #elif defined(HAVE_NCURSES_CURSES_H)
27064 # include <ncurses/curses.h>
27065 #elif defined(HAVE_NCURSES_H)
27066 # include <ncurses.h>
27067 #elif defined(HAVE_CURSES_H)
27068 # include <curses.h>
27069 #endif
27070
27071 int
27072 main (void)
27073 {
27074
27075 #ifndef resizeterm
27076 void *x=resizeterm
27077 #endif
27078
27079 ;
27080 return 0;
27081 }
27082 _ACEOF
27083 if ac_fn_c_try_compile "$LINENO"
27084 then :
27085 ac_cv_lib_curses_resizeterm=yes
27086 else $as_nop
27087 ac_cv_lib_curses_resizeterm=no
27088 fi
27089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27090
27091 fi
27092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resizeterm" >&5
27093 printf "%s\n" "$ac_cv_lib_curses_resizeterm" >&6; }
27094 if test "x$ac_cv_lib_curses_resizeterm" = xyes
27095 then :
27096
27097 printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
27098
27099 fi
27100
27101
27102
27103
27104
27105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function immedok" >&5
27106 printf %s "checking for curses function immedok... " >&6; }
27107 if test ${ac_cv_lib_curses_immedok+y}
27108 then :
27109 printf %s "(cached) " >&6
27110 else $as_nop
27111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27112 /* end confdefs.h. */
27113
27114 #define NCURSES_OPAQUE 0
27115 #if defined(HAVE_NCURSESW_NCURSES_H)
27116 # include <ncursesw/ncurses.h>
27117 #elif defined(HAVE_NCURSESW_CURSES_H)
27118 # include <ncursesw/curses.h>
27119 #elif defined(HAVE_NCURSES_NCURSES_H)
27120 # include <ncurses/ncurses.h>
27121 #elif defined(HAVE_NCURSES_CURSES_H)
27122 # include <ncurses/curses.h>
27123 #elif defined(HAVE_NCURSES_H)
27124 # include <ncurses.h>
27125 #elif defined(HAVE_CURSES_H)
27126 # include <curses.h>
27127 #endif
27128
27129 int
27130 main (void)
27131 {
27132
27133 #ifndef immedok
27134 void *x=immedok
27135 #endif
27136
27137 ;
27138 return 0;
27139 }
27140 _ACEOF
27141 if ac_fn_c_try_compile "$LINENO"
27142 then :
27143 ac_cv_lib_curses_immedok=yes
27144 else $as_nop
27145 ac_cv_lib_curses_immedok=no
27146 fi
27147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27148
27149 fi
27150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_immedok" >&5
27151 printf "%s\n" "$ac_cv_lib_curses_immedok" >&6; }
27152 if test "x$ac_cv_lib_curses_immedok" = xyes
27153 then :
27154
27155 printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
27156
27157 fi
27158
27159
27160
27161
27162
27163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function syncok" >&5
27164 printf %s "checking for curses function syncok... " >&6; }
27165 if test ${ac_cv_lib_curses_syncok+y}
27166 then :
27167 printf %s "(cached) " >&6
27168 else $as_nop
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27171
27172 #define NCURSES_OPAQUE 0
27173 #if defined(HAVE_NCURSESW_NCURSES_H)
27174 # include <ncursesw/ncurses.h>
27175 #elif defined(HAVE_NCURSESW_CURSES_H)
27176 # include <ncursesw/curses.h>
27177 #elif defined(HAVE_NCURSES_NCURSES_H)
27178 # include <ncurses/ncurses.h>
27179 #elif defined(HAVE_NCURSES_CURSES_H)
27180 # include <ncurses/curses.h>
27181 #elif defined(HAVE_NCURSES_H)
27182 # include <ncurses.h>
27183 #elif defined(HAVE_CURSES_H)
27184 # include <curses.h>
27185 #endif
27186
27187 int
27188 main (void)
27189 {
27190
27191 #ifndef syncok
27192 void *x=syncok
27193 #endif
27194
27195 ;
27196 return 0;
27197 }
27198 _ACEOF
27199 if ac_fn_c_try_compile "$LINENO"
27200 then :
27201 ac_cv_lib_curses_syncok=yes
27202 else $as_nop
27203 ac_cv_lib_curses_syncok=no
27204 fi
27205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27206
27207 fi
27208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_syncok" >&5
27209 printf "%s\n" "$ac_cv_lib_curses_syncok" >&6; }
27210 if test "x$ac_cv_lib_curses_syncok" = xyes
27211 then :
27212
27213 printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
27214
27215 fi
27216
27217
27218
27219
27220
27221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function wchgat" >&5
27222 printf %s "checking for curses function wchgat... " >&6; }
27223 if test ${ac_cv_lib_curses_wchgat+y}
27224 then :
27225 printf %s "(cached) " >&6
27226 else $as_nop
27227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27228 /* end confdefs.h. */
27229
27230 #define NCURSES_OPAQUE 0
27231 #if defined(HAVE_NCURSESW_NCURSES_H)
27232 # include <ncursesw/ncurses.h>
27233 #elif defined(HAVE_NCURSESW_CURSES_H)
27234 # include <ncursesw/curses.h>
27235 #elif defined(HAVE_NCURSES_NCURSES_H)
27236 # include <ncurses/ncurses.h>
27237 #elif defined(HAVE_NCURSES_CURSES_H)
27238 # include <ncurses/curses.h>
27239 #elif defined(HAVE_NCURSES_H)
27240 # include <ncurses.h>
27241 #elif defined(HAVE_CURSES_H)
27242 # include <curses.h>
27243 #endif
27244
27245 int
27246 main (void)
27247 {
27248
27249 #ifndef wchgat
27250 void *x=wchgat
27251 #endif
27252
27253 ;
27254 return 0;
27255 }
27256 _ACEOF
27257 if ac_fn_c_try_compile "$LINENO"
27258 then :
27259 ac_cv_lib_curses_wchgat=yes
27260 else $as_nop
27261 ac_cv_lib_curses_wchgat=no
27262 fi
27263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27264
27265 fi
27266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wchgat" >&5
27267 printf "%s\n" "$ac_cv_lib_curses_wchgat" >&6; }
27268 if test "x$ac_cv_lib_curses_wchgat" = xyes
27269 then :
27270
27271 printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
27272
27273 fi
27274
27275
27276
27277
27278
27279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function filter" >&5
27280 printf %s "checking for curses function filter... " >&6; }
27281 if test ${ac_cv_lib_curses_filter+y}
27282 then :
27283 printf %s "(cached) " >&6
27284 else $as_nop
27285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27286 /* end confdefs.h. */
27287
27288 #define NCURSES_OPAQUE 0
27289 #if defined(HAVE_NCURSESW_NCURSES_H)
27290 # include <ncursesw/ncurses.h>
27291 #elif defined(HAVE_NCURSESW_CURSES_H)
27292 # include <ncursesw/curses.h>
27293 #elif defined(HAVE_NCURSES_NCURSES_H)
27294 # include <ncurses/ncurses.h>
27295 #elif defined(HAVE_NCURSES_CURSES_H)
27296 # include <ncurses/curses.h>
27297 #elif defined(HAVE_NCURSES_H)
27298 # include <ncurses.h>
27299 #elif defined(HAVE_CURSES_H)
27300 # include <curses.h>
27301 #endif
27302
27303 int
27304 main (void)
27305 {
27306
27307 #ifndef filter
27308 void *x=filter
27309 #endif
27310
27311 ;
27312 return 0;
27313 }
27314 _ACEOF
27315 if ac_fn_c_try_compile "$LINENO"
27316 then :
27317 ac_cv_lib_curses_filter=yes
27318 else $as_nop
27319 ac_cv_lib_curses_filter=no
27320 fi
27321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27322
27323 fi
27324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_filter" >&5
27325 printf "%s\n" "$ac_cv_lib_curses_filter" >&6; }
27326 if test "x$ac_cv_lib_curses_filter" = xyes
27327 then :
27328
27329 printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h
27330
27331 fi
27332
27333
27334
27335
27336
27337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function has_key" >&5
27338 printf %s "checking for curses function has_key... " >&6; }
27339 if test ${ac_cv_lib_curses_has_key+y}
27340 then :
27341 printf %s "(cached) " >&6
27342 else $as_nop
27343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27344 /* end confdefs.h. */
27345
27346 #define NCURSES_OPAQUE 0
27347 #if defined(HAVE_NCURSESW_NCURSES_H)
27348 # include <ncursesw/ncurses.h>
27349 #elif defined(HAVE_NCURSESW_CURSES_H)
27350 # include <ncursesw/curses.h>
27351 #elif defined(HAVE_NCURSES_NCURSES_H)
27352 # include <ncurses/ncurses.h>
27353 #elif defined(HAVE_NCURSES_CURSES_H)
27354 # include <ncurses/curses.h>
27355 #elif defined(HAVE_NCURSES_H)
27356 # include <ncurses.h>
27357 #elif defined(HAVE_CURSES_H)
27358 # include <curses.h>
27359 #endif
27360
27361 int
27362 main (void)
27363 {
27364
27365 #ifndef has_key
27366 void *x=has_key
27367 #endif
27368
27369 ;
27370 return 0;
27371 }
27372 _ACEOF
27373 if ac_fn_c_try_compile "$LINENO"
27374 then :
27375 ac_cv_lib_curses_has_key=yes
27376 else $as_nop
27377 ac_cv_lib_curses_has_key=no
27378 fi
27379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27380
27381 fi
27382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_has_key" >&5
27383 printf "%s\n" "$ac_cv_lib_curses_has_key" >&6; }
27384 if test "x$ac_cv_lib_curses_has_key" = xyes
27385 then :
27386
27387 printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
27388
27389 fi
27390
27391
27392
27393
27394
27395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function typeahead" >&5
27396 printf %s "checking for curses function typeahead... " >&6; }
27397 if test ${ac_cv_lib_curses_typeahead+y}
27398 then :
27399 printf %s "(cached) " >&6
27400 else $as_nop
27401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27402 /* end confdefs.h. */
27403
27404 #define NCURSES_OPAQUE 0
27405 #if defined(HAVE_NCURSESW_NCURSES_H)
27406 # include <ncursesw/ncurses.h>
27407 #elif defined(HAVE_NCURSESW_CURSES_H)
27408 # include <ncursesw/curses.h>
27409 #elif defined(HAVE_NCURSES_NCURSES_H)
27410 # include <ncurses/ncurses.h>
27411 #elif defined(HAVE_NCURSES_CURSES_H)
27412 # include <ncurses/curses.h>
27413 #elif defined(HAVE_NCURSES_H)
27414 # include <ncurses.h>
27415 #elif defined(HAVE_CURSES_H)
27416 # include <curses.h>
27417 #endif
27418
27419 int
27420 main (void)
27421 {
27422
27423 #ifndef typeahead
27424 void *x=typeahead
27425 #endif
27426
27427 ;
27428 return 0;
27429 }
27430 _ACEOF
27431 if ac_fn_c_try_compile "$LINENO"
27432 then :
27433 ac_cv_lib_curses_typeahead=yes
27434 else $as_nop
27435 ac_cv_lib_curses_typeahead=no
27436 fi
27437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27438
27439 fi
27440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_typeahead" >&5
27441 printf "%s\n" "$ac_cv_lib_curses_typeahead" >&6; }
27442 if test "x$ac_cv_lib_curses_typeahead" = xyes
27443 then :
27444
27445 printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
27446
27447 fi
27448
27449
27450
27451
27452
27453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function use_env" >&5
27454 printf %s "checking for curses function use_env... " >&6; }
27455 if test ${ac_cv_lib_curses_use_env+y}
27456 then :
27457 printf %s "(cached) " >&6
27458 else $as_nop
27459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27460 /* end confdefs.h. */
27461
27462 #define NCURSES_OPAQUE 0
27463 #if defined(HAVE_NCURSESW_NCURSES_H)
27464 # include <ncursesw/ncurses.h>
27465 #elif defined(HAVE_NCURSESW_CURSES_H)
27466 # include <ncursesw/curses.h>
27467 #elif defined(HAVE_NCURSES_NCURSES_H)
27468 # include <ncurses/ncurses.h>
27469 #elif defined(HAVE_NCURSES_CURSES_H)
27470 # include <ncurses/curses.h>
27471 #elif defined(HAVE_NCURSES_H)
27472 # include <ncurses.h>
27473 #elif defined(HAVE_CURSES_H)
27474 # include <curses.h>
27475 #endif
27476
27477 int
27478 main (void)
27479 {
27480
27481 #ifndef use_env
27482 void *x=use_env
27483 #endif
27484
27485 ;
27486 return 0;
27487 }
27488 _ACEOF
27489 if ac_fn_c_try_compile "$LINENO"
27490 then :
27491 ac_cv_lib_curses_use_env=yes
27492 else $as_nop
27493 ac_cv_lib_curses_use_env=no
27494 fi
27495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27496
27497 fi
27498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_use_env" >&5
27499 printf "%s\n" "$ac_cv_lib_curses_use_env" >&6; }
27500 if test "x$ac_cv_lib_curses_use_env" = xyes
27501 then :
27502
27503 printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
27504
27505 fi
27506
27507
27508
27509 CPPFLAGS=$ac_save_cppflags
27510
27511 fi
27512 CFLAGS=$save_CFLAGS
27513 CPPFLAGS=$save_CPPFLAGS
27514 LDFLAGS=$save_LDFLAGS
27515 LIBS=$save_LIBS
27516
27517
27518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
27519 printf "%s\n" "$as_me: checking for device files" >&6;}
27520
27521 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
27522 ac_cv_file__dev_ptmx=no
27523 ac_cv_file__dev_ptc=no
27524 else
27525 if test "x$cross_compiling" = xyes; then
27526 if test "${ac_cv_file__dev_ptmx+set}" != set; then
27527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27528 printf %s "checking for /dev/ptmx... " >&6; }
27529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
27530 printf "%s\n" "not set" >&6; }
27531 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
27532 fi
27533 if test "${ac_cv_file__dev_ptc+set}" != set; then
27534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
27535 printf %s "checking for /dev/ptc... " >&6; }
27536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
27537 printf "%s\n" "not set" >&6; }
27538 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
27539 fi
27540 fi
27541
27542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27543 printf %s "checking for /dev/ptmx... " >&6; }
27544 if test ${ac_cv_file__dev_ptmx+y}
27545 then :
27546 printf %s "(cached) " >&6
27547 else $as_nop
27548 test "$cross_compiling" = yes &&
27549 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27550 if test -r "/dev/ptmx"; then
27551 ac_cv_file__dev_ptmx=yes
27552 else
27553 ac_cv_file__dev_ptmx=no
27554 fi
27555 fi
27556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
27557 printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; }
27558 if test "x$ac_cv_file__dev_ptmx" = xyes
27559 then :
27560
27561 fi
27562
27563 if test "x$ac_cv_file__dev_ptmx" = xyes; then
27564
27565 printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h
27566
27567 fi
27568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
27569 printf %s "checking for /dev/ptc... " >&6; }
27570 if test ${ac_cv_file__dev_ptc+y}
27571 then :
27572 printf %s "(cached) " >&6
27573 else $as_nop
27574 test "$cross_compiling" = yes &&
27575 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27576 if test -r "/dev/ptc"; then
27577 ac_cv_file__dev_ptc=yes
27578 else
27579 ac_cv_file__dev_ptc=no
27580 fi
27581 fi
27582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
27583 printf "%s\n" "$ac_cv_file__dev_ptc" >&6; }
27584 if test "x$ac_cv_file__dev_ptc" = xyes
27585 then :
27586
27587 fi
27588
27589 if test "x$ac_cv_file__dev_ptc" = xyes; then
27590
27591 printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h
27592
27593 fi
27594 fi
27595
27596 if test $ac_sys_system = Darwin
27597 then
27598 LIBS="$LIBS -framework CoreFoundation"
27599 fi
27600
27601 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27602 #ifdef HAVE_SYS_TYPES_H
27603 #include <sys/types.h>
27604 #endif
27605 #ifdef HAVE_SYS_SOCKET_H
27606 #include <sys/socket.h>
27607 #endif
27608
27609 "
27610 if test "x$ac_cv_type_socklen_t" = xyes
27611 then :
27612
27613 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
27614
27615
27616 else $as_nop
27617
27618 printf "%s\n" "#define socklen_t int" >>confdefs.h
27619
27620 fi
27621
27622
27623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
27624 printf %s "checking for broken mbstowcs... " >&6; }
27625 if test ${ac_cv_broken_mbstowcs+y}
27626 then :
27627 printf %s "(cached) " >&6
27628 else $as_nop
27629 if test "$cross_compiling" = yes
27630 then :
27631 ac_cv_broken_mbstowcs=no
27632 else $as_nop
27633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27634 /* end confdefs.h. */
27635
27636 #include <stddef.h>
27637 #include <stdio.h>
27638 #include <stdlib.h>
27639 int main(void) {
27640 size_t len = -1;
27641 const char *str = "text";
27642 len = mbstowcs(NULL, str, 0);
27643 return (len != 4);
27644 }
27645
27646 _ACEOF
27647 if ac_fn_c_try_run "$LINENO"
27648 then :
27649 ac_cv_broken_mbstowcs=no
27650 else $as_nop
27651 ac_cv_broken_mbstowcs=yes
27652 fi
27653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27654 conftest.$ac_objext conftest.beam conftest.$ac_ext
27655 fi
27656
27657 fi
27658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
27659 printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; }
27660 if test "$ac_cv_broken_mbstowcs" = yes
27661 then
27662
27663 printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
27664
27665 fi
27666
27667 # Check for --with-computed-gotos
27668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
27669 printf %s "checking for --with-computed-gotos... " >&6; }
27670
27671 # Check whether --with-computed-gotos was given.
27672 if test ${with_computed_gotos+y}
27673 then :
27674 withval=$with_computed_gotos;
27675 if test "$withval" = yes
27676 then
27677
27678 printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
27679
27680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27681 printf "%s\n" "yes" >&6; }
27682 fi
27683 if test "$withval" = no
27684 then
27685
27686 printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
27687
27688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27689 printf "%s\n" "no" >&6; }
27690 fi
27691
27692 else $as_nop
27693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
27694 printf "%s\n" "no value specified" >&6; }
27695 fi
27696
27697
27698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
27699 printf %s "checking whether $CC supports computed gotos... " >&6; }
27700 if test ${ac_cv_computed_gotos+y}
27701 then :
27702 printf %s "(cached) " >&6
27703 else $as_nop
27704 if test "$cross_compiling" = yes
27705 then :
27706 if test "${with_computed_gotos+set}" = set; then
27707 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
27708 else
27709 ac_cv_computed_gotos=no
27710 fi
27711 else $as_nop
27712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27713 /* end confdefs.h. */
27714
27715 int main(int argc, char **argv)
27716 {
27717 static void *targets[1] = { &&LABEL1 };
27718 goto LABEL2;
27719 LABEL1:
27720 return 0;
27721 LABEL2:
27722 goto *targets[0];
27723 return 1;
27724 }
27725
27726 _ACEOF
27727 if ac_fn_c_try_run "$LINENO"
27728 then :
27729 ac_cv_computed_gotos=yes
27730 else $as_nop
27731 ac_cv_computed_gotos=no
27732 fi
27733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27734 conftest.$ac_objext conftest.beam conftest.$ac_ext
27735 fi
27736
27737 fi
27738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
27739 printf "%s\n" "$ac_cv_computed_gotos" >&6; }
27740 case "$ac_cv_computed_gotos" in yes*)
27741
27742 printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
27743
27744 esac
27745
27746 case $ac_sys_system in
27747 AIX*)
27748
27749 printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
27750 ;;
27751 esac
27752
27753
27754
27755
27756 for h in `(cd $srcdir;echo Python/thread_*.h)`
27757 do
27758 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27759 done
27760
27761
27762 SRCDIRS="\
27763 Modules \
27764 Modules/_blake2 \
27765 Modules/_ctypes \
27766 Modules/_decimal \
27767 Modules/_decimal/libmpdec \
27768 Modules/_hacl \
27769 Modules/_io \
27770 Modules/_multiprocessing \
27771 Modules/_sqlite \
27772 Modules/_sre \
27773 Modules/_testcapi \
27774 Modules/_testinternalcapi \
27775 Modules/_testlimitedcapi \
27776 Modules/_xxtestfuzz \
27777 Modules/cjkcodecs \
27778 Modules/expat \
27779 Objects \
27780 Objects/mimalloc \
27781 Objects/mimalloc/prim \
27782 Parser \
27783 Parser/tokenizer \
27784 Parser/lexer \
27785 Programs \
27786 Python \
27787 Python/frozen_modules"
27788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
27789 printf %s "checking for build directories... " >&6; }
27790 for dir in $SRCDIRS; do
27791 if test ! -d $dir; then
27792 mkdir $dir
27793 fi
27794 done
27795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
27796 printf "%s\n" "done" >&6; }
27797
27798 # Availability of -O2:
27799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
27800 printf %s "checking for -O2... " >&6; }
27801 if test ${ac_cv_compile_o2+y}
27802 then :
27803 printf %s "(cached) " >&6
27804 else $as_nop
27805
27806 saved_cflags="$CFLAGS"
27807 CFLAGS="-O2"
27808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27809 /* end confdefs.h. */
27810
27811 int
27812 main (void)
27813 {
27814
27815 ;
27816 return 0;
27817 }
27818 _ACEOF
27819 if ac_fn_c_try_compile "$LINENO"
27820 then :
27821 ac_cv_compile_o2=yes
27822 else $as_nop
27823 ac_cv_compile_o2=no
27824 fi
27825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27826 CFLAGS="$saved_cflags"
27827
27828 fi
27829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compile_o2" >&5
27830 printf "%s\n" "$ac_cv_compile_o2" >&6; }
27831
27832 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
27833 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
27834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
27835 printf %s "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
27836 saved_cflags="$CFLAGS"
27837 CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
27838 if test "$ac_cv_compile_o2" = no; then
27839 CFLAGS=""
27840 fi
27841 if test "$cross_compiling" = yes
27842 then :
27843 have_glibc_memmove_bug=undefined
27844 else $as_nop
27845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27846 /* end confdefs.h. */
27847
27848 #include <stdio.h>
27849 #include <stdlib.h>
27850 #include <string.h>
27851 void foo(void *p, void *q) { memmove(p, q, 19); }
27852 int main(void) {
27853 char a[32] = "123456789000000000";
27854 foo(&a[9], a);
27855 if (strcmp(a, "123456789123456789000000000") != 0)
27856 return 1;
27857 foo(a, &a[9]);
27858 if (strcmp(a, "123456789000000000") != 0)
27859 return 1;
27860 return 0;
27861 }
27862
27863 _ACEOF
27864 if ac_fn_c_try_run "$LINENO"
27865 then :
27866 have_glibc_memmove_bug=no
27867 else $as_nop
27868 have_glibc_memmove_bug=yes
27869 fi
27870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27871 conftest.$ac_objext conftest.beam conftest.$ac_ext
27872 fi
27873
27874 CFLAGS="$saved_cflags"
27875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
27876 printf "%s\n" "$have_glibc_memmove_bug" >&6; }
27877 if test "$have_glibc_memmove_bug" = yes; then
27878
27879 printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
27880
27881 fi
27882
27883 if test "$ac_cv_gcc_asm_for_x87" = yes; then
27884 # Some versions of gcc miscompile inline asm:
27885 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
27886 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
27887 case $CC in
27888 *gcc*)
27889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
27890 printf %s "checking for gcc ipa-pure-const bug... " >&6; }
27891 saved_cflags="$CFLAGS"
27892 CFLAGS="-O2"
27893 if test "$cross_compiling" = yes
27894 then :
27895 have_ipa_pure_const_bug=undefined
27896 else $as_nop
27897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27898 /* end confdefs.h. */
27899
27900 __attribute__((noinline)) int
27901 foo(int *p) {
27902 int r;
27903 asm ( "movl \$6, (%1)\n\t"
27904 "xorl %0, %0\n\t"
27905 : "=r" (r) : "r" (p) : "memory"
27906 );
27907 return r;
27908 }
27909 int main(void) {
27910 int p = 8;
27911 if ((foo(&p) ? : p) != 6)
27912 return 1;
27913 return 0;
27914 }
27915
27916 _ACEOF
27917 if ac_fn_c_try_run "$LINENO"
27918 then :
27919 have_ipa_pure_const_bug=no
27920 else $as_nop
27921 have_ipa_pure_const_bug=yes
27922 fi
27923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27924 conftest.$ac_objext conftest.beam conftest.$ac_ext
27925 fi
27926
27927 CFLAGS="$saved_cflags"
27928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
27929 printf "%s\n" "$have_ipa_pure_const_bug" >&6; }
27930 if test "$have_ipa_pure_const_bug" = yes; then
27931
27932 printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
27933
27934 fi
27935 ;;
27936 esac
27937 fi
27938
27939 # ensurepip option
27940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
27941 printf %s "checking for ensurepip... " >&6; }
27942
27943 # Check whether --with-ensurepip was given.
27944 if test ${with_ensurepip+y}
27945 then :
27946 withval=$with_ensurepip;
27947 else $as_nop
27948
27949 case $ac_sys_system in #(
27950 Emscripten) :
27951 with_ensurepip=no ;; #(
27952 WASI) :
27953 with_ensurepip=no ;; #(
27954 iOS) :
27955 with_ensurepip=no ;; #(
27956 *) :
27957 with_ensurepip=upgrade
27958 ;;
27959 esac
27960
27961 fi
27962
27963 case $with_ensurepip in #(
27964 yes|upgrade) :
27965 ENSUREPIP=upgrade ;; #(
27966 install) :
27967 ENSUREPIP=install ;; #(
27968 no) :
27969 ENSUREPIP=no ;; #(
27970 *) :
27971 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
27972 esac
27973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
27974 printf "%s\n" "$ENSUREPIP" >&6; }
27975
27976
27977 # check if the dirent structure of a d_type field and DT_UNKNOWN is defined
27978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
27979 printf %s "checking if the dirent structure of a d_type field... " >&6; }
27980 if test ${ac_cv_dirent_d_type+y}
27981 then :
27982 printf %s "(cached) " >&6
27983 else $as_nop
27984
27985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27986 /* end confdefs.h. */
27987
27988
27989 #include <dirent.h>
27990
27991 int main(void) {
27992 struct dirent entry;
27993 return entry.d_type == DT_UNKNOWN;
27994 }
27995
27996
27997 _ACEOF
27998 if ac_fn_c_try_link "$LINENO"
27999 then :
28000 ac_cv_dirent_d_type=yes
28001 else $as_nop
28002 ac_cv_dirent_d_type=no
28003 fi
28004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28005 conftest$ac_exeext conftest.$ac_ext
28006
28007 fi
28008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_type" >&5
28009 printf "%s\n" "$ac_cv_dirent_d_type" >&6; }
28010
28011 if test "x$ac_cv_dirent_d_type" = xyes
28012 then :
28013
28014
28015 printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
28016
28017
28018 fi
28019
28020 # check if the Linux getrandom() syscall is available
28021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
28022 printf %s "checking for the Linux getrandom() syscall... " >&6; }
28023 if test ${ac_cv_getrandom_syscall+y}
28024 then :
28025 printf %s "(cached) " >&6
28026 else $as_nop
28027
28028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28029 /* end confdefs.h. */
28030
28031
28032 #include <stddef.h>
28033 #include <unistd.h>
28034 #include <sys/syscall.h>
28035 #include <linux/random.h>
28036
28037 int main(void) {
28038 char buffer[1];
28039 const size_t buflen = sizeof(buffer);
28040 const int flags = GRND_NONBLOCK;
28041 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
28042 (void)syscall(SYS_getrandom, buffer, buflen, flags);
28043 return 0;
28044 }
28045
28046
28047 _ACEOF
28048 if ac_fn_c_try_link "$LINENO"
28049 then :
28050 ac_cv_getrandom_syscall=yes
28051 else $as_nop
28052 ac_cv_getrandom_syscall=no
28053 fi
28054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28055 conftest$ac_exeext conftest.$ac_ext
28056
28057 fi
28058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getrandom_syscall" >&5
28059 printf "%s\n" "$ac_cv_getrandom_syscall" >&6; }
28060
28061 if test "x$ac_cv_getrandom_syscall" = xyes
28062 then :
28063
28064
28065 printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
28066
28067
28068 fi
28069
28070 # check if the getrandom() function is available
28071 # the test was written for the Solaris function of <sys/random.h>
28072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
28073 printf %s "checking for the getrandom() function... " >&6; }
28074 if test ${ac_cv_func_getrandom+y}
28075 then :
28076 printf %s "(cached) " >&6
28077 else $as_nop
28078
28079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28080 /* end confdefs.h. */
28081
28082
28083 #include <stddef.h>
28084 #include <sys/random.h>
28085
28086 int main(void) {
28087 char buffer[1];
28088 const size_t buflen = sizeof(buffer);
28089 const int flags = 0;
28090 /* ignore the result, Python checks for ENOSYS at runtime */
28091 (void)getrandom(buffer, buflen, flags);
28092 return 0;
28093 }
28094
28095
28096 _ACEOF
28097 if ac_fn_c_try_link "$LINENO"
28098 then :
28099 ac_cv_func_getrandom=yes
28100 else $as_nop
28101 ac_cv_func_getrandom=no
28102 fi
28103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28104 conftest$ac_exeext conftest.$ac_ext
28105
28106 fi
28107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getrandom" >&5
28108 printf "%s\n" "$ac_cv_func_getrandom" >&6; }
28109
28110 if test "x$ac_cv_func_getrandom" = xyes
28111 then :
28112
28113
28114 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
28115
28116
28117 fi
28118
28119 # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
28120 # shm_* may only be available if linking against librt
28121 POSIXSHMEM_CFLAGS='-I$(srcdir)/Modules/_multiprocessing'
28122 save_CFLAGS=$CFLAGS
28123 save_CPPFLAGS=$CPPFLAGS
28124 save_LDFLAGS=$LDFLAGS
28125 save_LIBS=$LIBS
28126
28127
28128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
28129 printf %s "checking for library containing shm_open... " >&6; }
28130 if test ${ac_cv_search_shm_open+y}
28131 then :
28132 printf %s "(cached) " >&6
28133 else $as_nop
28134 ac_func_search_save_LIBS=$LIBS
28135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28136 /* end confdefs.h. */
28137
28138 /* Override any GCC internal prototype to avoid an error.
28139 Use char because int might match the return type of a GCC
28140 builtin and then its argument prototype would still apply. */
28141 char shm_open ();
28142 int
28143 main (void)
28144 {
28145 return shm_open ();
28146 ;
28147 return 0;
28148 }
28149 _ACEOF
28150 for ac_lib in '' rt
28151 do
28152 if test -z "$ac_lib"; then
28153 ac_res="none required"
28154 else
28155 ac_res=-l$ac_lib
28156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28157 fi
28158 if ac_fn_c_try_link "$LINENO"
28159 then :
28160 ac_cv_search_shm_open=$ac_res
28161 fi
28162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28163 conftest$ac_exeext
28164 if test ${ac_cv_search_shm_open+y}
28165 then :
28166 break
28167 fi
28168 done
28169 if test ${ac_cv_search_shm_open+y}
28170 then :
28171
28172 else $as_nop
28173 ac_cv_search_shm_open=no
28174 fi
28175 rm conftest.$ac_ext
28176 LIBS=$ac_func_search_save_LIBS
28177 fi
28178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
28179 printf "%s\n" "$ac_cv_search_shm_open" >&6; }
28180 ac_res=$ac_cv_search_shm_open
28181 if test "$ac_res" != no
28182 then :
28183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28184
28185 fi
28186
28187 if test "x$ac_cv_search_shm_open" = x-lrt
28188 then :
28189 POSIXSHMEM_LIBS="-lrt"
28190 fi
28191
28192 save_ac_includes_default=$ac_includes_default
28193 ac_includes_default="\
28194 ${ac_includes_default}
28195 #ifndef __cplusplus
28196 # ifdef HAVE_SYS_MMAN_H
28197 # include <sys/mman.h>
28198 # endif
28199 #endif
28200 "
28201
28202 for ac_func in shm_open shm_unlink
28203 do :
28204 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
28205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28206 if eval test \"x\$"$as_ac_var"\" = x"yes"
28207 then :
28208 cat >>confdefs.h <<_ACEOF
28209 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
28210 _ACEOF
28211 have_posix_shmem=yes
28212 else $as_nop
28213 have_posix_shmem=no
28214 fi
28215
28216 done
28217 ac_includes_default=$save_ac_includes_default
28218
28219 CFLAGS=$save_CFLAGS
28220 CPPFLAGS=$save_CPPFLAGS
28221 LDFLAGS=$save_LDFLAGS
28222 LIBS=$save_LIBS
28223
28224
28225
28226 # Check for usable OpenSSL
28227
28228 found=false
28229
28230 # Check whether --with-openssl was given.
28231 if test ${with_openssl+y}
28232 then :
28233 withval=$with_openssl;
28234 case "$withval" in
28235 "" | y | ye | yes | n | no)
28236 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
28237 ;;
28238 *) ssldirs="$withval"
28239 ;;
28240 esac
28241
28242 else $as_nop
28243
28244 # if pkg-config is installed and openssl has installed a .pc file,
28245 # then use that information and don't search ssldirs
28246 if test -n "$ac_tool_prefix"; then
28247 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28248 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28250 printf %s "checking for $ac_word... " >&6; }
28251 if test ${ac_cv_prog_PKG_CONFIG+y}
28252 then :
28253 printf %s "(cached) " >&6
28254 else $as_nop
28255 if test -n "$PKG_CONFIG"; then
28256 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
28257 else
28258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28259 for as_dir in $PATH
28260 do
28261 IFS=$as_save_IFS
28262 case $as_dir in #(((
28263 '') as_dir=./ ;;
28264 */) ;;
28265 *) as_dir=$as_dir/ ;;
28266 esac
28267 for ac_exec_ext in '' $ac_executable_extensions; do
28268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28269 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
28270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28271 break 2
28272 fi
28273 done
28274 done
28275 IFS=$as_save_IFS
28276
28277 fi
28278 fi
28279 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
28280 if test -n "$PKG_CONFIG"; then
28281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
28282 printf "%s\n" "$PKG_CONFIG" >&6; }
28283 else
28284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28285 printf "%s\n" "no" >&6; }
28286 fi
28287
28288
28289 fi
28290 if test -z "$ac_cv_prog_PKG_CONFIG"; then
28291 ac_ct_PKG_CONFIG=$PKG_CONFIG
28292 # Extract the first word of "pkg-config", so it can be a program name with args.
28293 set dummy pkg-config; ac_word=$2
28294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28295 printf %s "checking for $ac_word... " >&6; }
28296 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
28297 then :
28298 printf %s "(cached) " >&6
28299 else $as_nop
28300 if test -n "$ac_ct_PKG_CONFIG"; then
28301 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
28302 else
28303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28304 for as_dir in $PATH
28305 do
28306 IFS=$as_save_IFS
28307 case $as_dir in #(((
28308 '') as_dir=./ ;;
28309 */) ;;
28310 *) as_dir=$as_dir/ ;;
28311 esac
28312 for ac_exec_ext in '' $ac_executable_extensions; do
28313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28314 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
28315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28316 break 2
28317 fi
28318 done
28319 done
28320 IFS=$as_save_IFS
28321
28322 fi
28323 fi
28324 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
28325 if test -n "$ac_ct_PKG_CONFIG"; then
28326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
28327 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
28328 else
28329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28330 printf "%s\n" "no" >&6; }
28331 fi
28332
28333 if test "x$ac_ct_PKG_CONFIG" = x; then
28334 PKG_CONFIG=""
28335 else
28336 case $cross_compiling:$ac_tool_warned in
28337 yes:)
28338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28339 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28340 ac_tool_warned=yes ;;
28341 esac
28342 PKG_CONFIG=$ac_ct_PKG_CONFIG
28343 fi
28344 else
28345 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
28346 fi
28347
28348 if test x"$PKG_CONFIG" != x""; then
28349 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
28350 if test $? = 0; then
28351 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
28352 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
28353 found=true
28354 fi
28355 fi
28356
28357 # no such luck; use some default ssldirs
28358 if ! $found; then
28359 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
28360 fi
28361
28362
28363 fi
28364
28365
28366
28367 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
28368 # an 'openssl' subdirectory
28369
28370 if ! $found; then
28371 OPENSSL_INCLUDES=
28372 for ssldir in $ssldirs; do
28373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
28374 printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; }
28375 if test -f "$ssldir/include/openssl/ssl.h"; then
28376 OPENSSL_INCLUDES="-I$ssldir/include"
28377 OPENSSL_LDFLAGS="-L$ssldir/lib"
28378 OPENSSL_LIBS="-lssl -lcrypto"
28379 found=true
28380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28381 printf "%s\n" "yes" >&6; }
28382 break
28383 else
28384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28385 printf "%s\n" "no" >&6; }
28386 fi
28387 done
28388
28389 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
28390 # it will just work!
28391 fi
28392
28393 # try the preprocessor and linker with our new flags,
28394 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
28395
28396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
28397 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
28398 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
28399 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
28400
28401 save_LIBS="$LIBS"
28402 save_LDFLAGS="$LDFLAGS"
28403 save_CPPFLAGS="$CPPFLAGS"
28404 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
28405 LIBS="$OPENSSL_LIBS $LIBS"
28406 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
28407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28408 /* end confdefs.h. */
28409 #include <openssl/ssl.h>
28410 int
28411 main (void)
28412 {
28413 SSL_new(NULL)
28414 ;
28415 return 0;
28416 }
28417 _ACEOF
28418 if ac_fn_c_try_link "$LINENO"
28419 then :
28420
28421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28422 printf "%s\n" "yes" >&6; }
28423 have_openssl=yes
28424
28425 else $as_nop
28426
28427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28428 printf "%s\n" "no" >&6; }
28429 have_openssl=no
28430
28431 fi
28432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28433 conftest$ac_exeext conftest.$ac_ext
28434 CPPFLAGS="$save_CPPFLAGS"
28435 LDFLAGS="$save_LDFLAGS"
28436 LIBS="$save_LIBS"
28437
28438
28439
28440
28441
28442
28443 # rpath to libssl and libcrypto
28444 if test "x$GNULD" = xyes
28445 then :
28446
28447 rpath_arg="-Wl,--enable-new-dtags,-rpath="
28448
28449 else $as_nop
28450
28451 if test "$ac_sys_system" = "Darwin"
28452 then
28453 rpath_arg="-Wl,-rpath,"
28454 else
28455 rpath_arg="-Wl,-rpath="
28456 fi
28457
28458 fi
28459
28460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5
28461 printf %s "checking for --with-openssl-rpath... " >&6; }
28462
28463 # Check whether --with-openssl-rpath was given.
28464 if test ${with_openssl_rpath+y}
28465 then :
28466 withval=$with_openssl_rpath;
28467 else $as_nop
28468 with_openssl_rpath=no
28469
28470 fi
28471
28472 case $with_openssl_rpath in #(
28473 auto|yes) :
28474
28475 OPENSSL_RPATH=auto
28476 for arg in "$OPENSSL_LDFLAGS"; do
28477 case $arg in #(
28478 -L*) :
28479 OPENSSL_LDFLAGS_RPATH="$OPENSSL_LDFLAGS_RPATH ${rpath_arg}$(echo $arg | cut -c3-)"
28480 ;; #(
28481 *) :
28482 ;;
28483 esac
28484 done
28485 ;; #(
28486 no) :
28487 OPENSSL_RPATH= ;; #(
28488 *) :
28489 if test -d "$with_openssl_rpath"
28490 then :
28491
28492 OPENSSL_RPATH="$with_openssl_rpath"
28493 OPENSSL_LDFLAGS_RPATH="${rpath_arg}$with_openssl_rpath"
28494
28495 else $as_nop
28496 as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5
28497 fi
28498
28499 ;;
28500 esac
28501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5
28502 printf "%s\n" "$OPENSSL_RPATH" >&6; }
28503
28504 # This static linking is NOT OFFICIALLY SUPPORTED and not advertised.
28505 # Requires static OpenSSL build with position-independent code. Some features
28506 # like DSO engines or external OSSL providers don't work. Only tested with GCC
28507 # and clang on X86_64.
28508 if test "x$PY_UNSUPPORTED_OPENSSL_BUILD" = xstatic
28509 then :
28510
28511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsupported static openssl build" >&5
28512 printf %s "checking for unsupported static openssl build... " >&6; }
28513 new_OPENSSL_LIBS=
28514 for arg in $OPENSSL_LIBS; do
28515 case $arg in #(
28516 -l*) :
28517
28518 libname=$(echo $arg | cut -c3-)
28519 new_OPENSSL_LIBS="$new_OPENSSL_LIBS -l:lib${libname}.a -Wl,--exclude-libs,lib${libname}.a"
28520 ;; #(
28521 *) :
28522 new_OPENSSL_LIBS="$new_OPENSSL_LIBS $arg"
28523 ;;
28524 esac
28525 done
28526 OPENSSL_LIBS="$new_OPENSSL_LIBS $ZLIB_LIBS"
28527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5
28528 printf "%s\n" "$OPENSSL_LIBS" >&6; }
28529
28530 fi
28531
28532 LIBCRYPTO_LIBS=
28533 for arg in $OPENSSL_LIBS; do
28534 case $arg in #(
28535 -l*ssl*|-Wl*ssl*) :
28536 ;; #(
28537 *) :
28538 LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS $arg"
28539 ;;
28540 esac
28541 done
28542
28543 # check if OpenSSL libraries work as expected
28544 save_CFLAGS=$CFLAGS
28545 save_CPPFLAGS=$CPPFLAGS
28546 save_LDFLAGS=$LDFLAGS
28547 save_LIBS=$LIBS
28548
28549
28550 LIBS="$LIBS $OPENSSL_LIBS"
28551 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
28552 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
28553
28554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required ssl module APIs" >&5
28555 printf %s "checking whether OpenSSL provides required ssl module APIs... " >&6; }
28556 if test ${ac_cv_working_openssl_ssl+y}
28557 then :
28558 printf %s "(cached) " >&6
28559 else $as_nop
28560
28561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28562 /* end confdefs.h. */
28563
28564 #include <openssl/opensslv.h>
28565 #include <openssl/ssl.h>
28566 #if OPENSSL_VERSION_NUMBER < 0x10101000L
28567 #error "OpenSSL >= 1.1.1 is required"
28568 #endif
28569 static void keylog_cb(const SSL *ssl, const char *line) {}
28570
28571 int
28572 main (void)
28573 {
28574
28575 SSL_CTX *ctx = SSL_CTX_new(TLS_client_method());
28576 SSL_CTX_set_keylog_callback(ctx, keylog_cb);
28577 SSL *ssl = SSL_new(ctx);
28578 X509_VERIFY_PARAM *param = SSL_get0_param(ssl);
28579 X509_VERIFY_PARAM_set1_host(param, "python.org", 0);
28580 SSL_free(ssl);
28581 SSL_CTX_free(ctx);
28582
28583 ;
28584 return 0;
28585 }
28586 _ACEOF
28587 if ac_fn_c_try_link "$LINENO"
28588 then :
28589 ac_cv_working_openssl_ssl=yes
28590 else $as_nop
28591 ac_cv_working_openssl_ssl=no
28592 fi
28593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28594 conftest$ac_exeext conftest.$ac_ext
28595
28596 fi
28597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_ssl" >&5
28598 printf "%s\n" "$ac_cv_working_openssl_ssl" >&6; }
28599
28600 CFLAGS=$save_CFLAGS
28601 CPPFLAGS=$save_CPPFLAGS
28602 LDFLAGS=$save_LDFLAGS
28603 LIBS=$save_LIBS
28604
28605
28606
28607 save_CFLAGS=$CFLAGS
28608 save_CPPFLAGS=$CPPFLAGS
28609 save_LDFLAGS=$LDFLAGS
28610 save_LIBS=$LIBS
28611
28612
28613 LIBS="$LIBS $LIBCRYPTO_LIBS"
28614 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
28615 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
28616
28617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required hashlib module APIs" >&5
28618 printf %s "checking whether OpenSSL provides required hashlib module APIs... " >&6; }
28619 if test ${ac_cv_working_openssl_hashlib+y}
28620 then :
28621 printf %s "(cached) " >&6
28622 else $as_nop
28623
28624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28625 /* end confdefs.h. */
28626
28627 #include <openssl/opensslv.h>
28628 #include <openssl/evp.h>
28629 #if OPENSSL_VERSION_NUMBER < 0x10101000L
28630 #error "OpenSSL >= 1.1.1 is required"
28631 #endif
28632
28633 int
28634 main (void)
28635 {
28636
28637 OBJ_nid2sn(NID_md5);
28638 OBJ_nid2sn(NID_sha1);
28639 OBJ_nid2sn(NID_sha3_512);
28640 OBJ_nid2sn(NID_blake2b512);
28641 EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0);
28642
28643 ;
28644 return 0;
28645 }
28646 _ACEOF
28647 if ac_fn_c_try_link "$LINENO"
28648 then :
28649 ac_cv_working_openssl_hashlib=yes
28650 else $as_nop
28651 ac_cv_working_openssl_hashlib=no
28652 fi
28653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28654 conftest$ac_exeext conftest.$ac_ext
28655
28656 fi
28657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_hashlib" >&5
28658 printf "%s\n" "$ac_cv_working_openssl_hashlib" >&6; }
28659
28660 CFLAGS=$save_CFLAGS
28661 CPPFLAGS=$save_CPPFLAGS
28662 LDFLAGS=$save_LDFLAGS
28663 LIBS=$save_LIBS
28664
28665
28666
28667 # ssl module default cipher suite string
28668
28669
28670
28671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
28672 printf %s "checking for --with-ssl-default-suites... " >&6; }
28673
28674 # Check whether --with-ssl-default-suites was given.
28675 if test ${with_ssl_default_suites+y}
28676 then :
28677 withval=$with_ssl_default_suites;
28678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
28679 printf "%s\n" "$withval" >&6; }
28680 case "$withval" in
28681 python)
28682 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
28683
28684 ;;
28685 openssl)
28686 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
28687
28688 ;;
28689 *)
28690 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
28691
28692 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h
28693
28694 ;;
28695 esac
28696
28697 else $as_nop
28698
28699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5
28700 printf "%s\n" "python" >&6; }
28701 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
28702
28703
28704 fi
28705
28706
28707 # builtin hash modules
28708 default_hashlib_hashes="md5,sha1,sha2,sha3,blake2"
28709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5
28710 printf %s "checking for --with-builtin-hashlib-hashes... " >&6; }
28711
28712 # Check whether --with-builtin-hashlib-hashes was given.
28713 if test ${with_builtin_hashlib_hashes+y}
28714 then :
28715 withval=$with_builtin_hashlib_hashes;
28716 case $with_builtin_hashlib_hashes in #(
28717 yes) :
28718 with_builtin_hashlib_hashes=$default_hashlib_hashes ;; #(
28719 no) :
28720 with_builtin_hashlib_hashes=""
28721 ;; #(
28722 *) :
28723 ;;
28724 esac
28725
28726 else $as_nop
28727 with_builtin_hashlib_hashes=$default_hashlib_hashes
28728 fi
28729
28730
28731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_builtin_hashlib_hashes" >&5
28732 printf "%s\n" "$with_builtin_hashlib_hashes" >&6; }
28733
28734 printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$with_builtin_hashlib_hashes\"" >>confdefs.h
28735
28736
28737 as_save_IFS=$IFS
28738 IFS=,
28739 for builtin_hash in $with_builtin_hashlib_hashes; do
28740 case $builtin_hash in #(
28741 md5) :
28742 with_builtin_md5=yes ;; #(
28743 sha1) :
28744 with_builtin_sha1=yes ;; #(
28745 sha2) :
28746 with_builtin_sha2=yes ;; #(
28747 sha3) :
28748 with_builtin_sha3=yes ;; #(
28749 blake2) :
28750 with_builtin_blake2=yes
28751 ;; #(
28752 *) :
28753 ;;
28754 esac
28755 done
28756 IFS=$as_save_IFS
28757
28758 if test "x$with_builtin_blake2" = xyes
28759 then :
28760
28761
28762 pkg_failed=no
28763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libb2" >&5
28764 printf %s "checking for libb2... " >&6; }
28765
28766 if test -n "$LIBB2_CFLAGS"; then
28767 pkg_cv_LIBB2_CFLAGS="$LIBB2_CFLAGS"
28768 elif test -n "$PKG_CONFIG"; then
28769 if test -n "$PKG_CONFIG" && \
28770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5
28771 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5
28772 ac_status=$?
28773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28774 test $ac_status = 0; }; then
28775 pkg_cv_LIBB2_CFLAGS=`$PKG_CONFIG --cflags "libb2" 2>/dev/null`
28776 test "x$?" != "x0" && pkg_failed=yes
28777 else
28778 pkg_failed=yes
28779 fi
28780 else
28781 pkg_failed=untried
28782 fi
28783 if test -n "$LIBB2_LIBS"; then
28784 pkg_cv_LIBB2_LIBS="$LIBB2_LIBS"
28785 elif test -n "$PKG_CONFIG"; then
28786 if test -n "$PKG_CONFIG" && \
28787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5
28788 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5
28789 ac_status=$?
28790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28791 test $ac_status = 0; }; then
28792 pkg_cv_LIBB2_LIBS=`$PKG_CONFIG --libs "libb2" 2>/dev/null`
28793 test "x$?" != "x0" && pkg_failed=yes
28794 else
28795 pkg_failed=yes
28796 fi
28797 else
28798 pkg_failed=untried
28799 fi
28800
28801
28802
28803 if test $pkg_failed = yes; then
28804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28805 printf "%s\n" "no" >&6; }
28806
28807 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28808 _pkg_short_errors_supported=yes
28809 else
28810 _pkg_short_errors_supported=no
28811 fi
28812 if test $_pkg_short_errors_supported = yes; then
28813 LIBB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libb2" 2>&1`
28814 else
28815 LIBB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libb2" 2>&1`
28816 fi
28817 # Put the nasty error message in config.log where it belongs
28818 echo "$LIBB2_PKG_ERRORS" >&5
28819
28820 have_libb2=no
28821 elif test $pkg_failed = untried; then
28822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28823 printf "%s\n" "no" >&6; }
28824 have_libb2=no
28825 else
28826 LIBB2_CFLAGS=$pkg_cv_LIBB2_CFLAGS
28827 LIBB2_LIBS=$pkg_cv_LIBB2_LIBS
28828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28829 printf "%s\n" "yes" >&6; }
28830
28831 have_libb2=yes
28832
28833 printf "%s\n" "#define HAVE_LIBB2 1" >>confdefs.h
28834
28835
28836 fi
28837
28838 fi
28839
28840 # Check whether to disable test modules. Once set, setup.py will not build
28841 # test extension modules and "make install" will not install test suites.
28842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5
28843 printf %s "checking for --disable-test-modules... " >&6; }
28844 # Check whether --enable-test-modules was given.
28845 if test ${enable_test_modules+y}
28846 then :
28847 enableval=$enable_test_modules;
28848 if test "x$enable_test_modules" = xyes
28849 then :
28850 TEST_MODULES=yes
28851 else $as_nop
28852 TEST_MODULES=no
28853 fi
28854
28855 else $as_nop
28856
28857 case $ac_sys_system/$ac_sys_emscripten_target in #(
28858 Emscripten/browser*) :
28859 TEST_MODULES=no ;; #(
28860 *) :
28861 TEST_MODULES=yes
28862 ;;
28863 esac
28864
28865 fi
28866
28867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEST_MODULES" >&5
28868 printf "%s\n" "$TEST_MODULES" >&6; }
28869
28870
28871 # gh-109054: Check if -latomic is needed to get <pyatomic.h> atomic functions.
28872 # On Linux aarch64, GCC may require programs and libraries to be linked
28873 # explicitly to libatomic. Call _Py_atomic_or_uint64() which may require
28874 # libatomic __atomic_fetch_or_8(), or not, depending on the C compiler and the
28875 # compiler flags.
28876 #
28877 # gh-112779: On RISC-V, GCC 12 and earlier require libatomic support for 1-byte
28878 # and 2-byte operations, but not for 8-byte operations.
28879 #
28880 # Avoid #include <Python.h> or #include <pyport.h>. The <Python.h> header
28881 # requires <pyconfig.h> header which is only written below by AC_OUTPUT below.
28882 # If the check is done after AC_OUTPUT, modifying LIBS has no effect
28883 # anymore. <pyport.h> cannot be included alone, it's designed to be included
28884 # by <Python.h>: it expects other includes and macros to be defined.
28885 save_CPPFLAGS=$CPPFLAGS
28886 CPPFLAGS="${BASECPPFLAGS} -I. -I${srcdir}/Include ${CPPFLAGS}"
28887
28888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libatomic is needed by <pyatomic.h>" >&5
28889 printf %s "checking whether libatomic is needed by <pyatomic.h>... " >&6; }
28890 if test ${ac_cv_libatomic_needed+y}
28891 then :
28892 printf %s "(cached) " >&6
28893 else $as_nop
28894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28895 /* end confdefs.h. */
28896
28897 // pyatomic.h needs uint64_t and Py_ssize_t types
28898 #include <stdint.h> // int64_t, intptr_t
28899 #ifdef HAVE_SYS_TYPES_H
28900 # include <sys/types.h> // ssize_t
28901 #endif
28902 // Code adapted from Include/pyport.h
28903 #if HAVE_SSIZE_T
28904 typedef ssize_t Py_ssize_t;
28905 #elif SIZEOF_VOID_P == SIZEOF_SIZE_T
28906 typedef intptr_t Py_ssize_t;
28907 #else
28908 # error "unable to define Py_ssize_t"
28909 #endif
28910
28911 #include "pyatomic.h"
28912
28913 int main()
28914 {
28915 uint64_t value;
28916 _Py_atomic_store_uint64(&value, 2);
28917 if (_Py_atomic_or_uint64(&value, 8) != 2) {
28918 return 1; // error
28919 }
28920 if (_Py_atomic_load_uint64(&value) != 10) {
28921 return 1; // error
28922 }
28923 uint8_t byte = 0xb8;
28924 if (_Py_atomic_or_uint8(&byte, 0x2d) != 0xb8) {
28925 return 1; // error
28926 }
28927 if (_Py_atomic_load_uint8(&byte) != 0xbd) {
28928 return 1; // error
28929 }
28930 return 0; // all good
28931 }
28932
28933 _ACEOF
28934 if ac_fn_c_try_link "$LINENO"
28935 then :
28936 ac_cv_libatomic_needed=no
28937 else $as_nop
28938 ac_cv_libatomic_needed=yes
28939 fi
28940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28941 conftest$ac_exeext conftest.$ac_ext
28942 fi
28943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5
28944 printf "%s\n" "$ac_cv_libatomic_needed" >&6; }
28945
28946 if test "x$ac_cv_libatomic_needed" = xyes
28947 then :
28948 LIBS="${LIBS} -latomic"
28949 LIBATOMIC=${LIBATOMIC-"-latomic"}
28950 fi
28951 CPPFLAGS=$save_CPPFLAGS
28952
28953
28954 # stdlib
28955
28956
28957 # stdlib not available
28958 case $ac_sys_system in #(
28959 AIX) :
28960
28961
28962 py_cv_module__scproxy=n/a
28963 ;; #(
28964 VxWorks*) :
28965
28966
28967 py_cv_module__scproxy=n/a
28968 py_cv_module_termios=n/a
28969 py_cv_module_grp=n/a
28970 ;; #(
28971 Darwin) :
28972 ;; #(
28973 iOS) :
28974
28975
28976
28977 py_cv_module__curses=n/a
28978 py_cv_module__curses_panel=n/a
28979 py_cv_module__gdbm=n/a
28980 py_cv_module__multiprocessing=n/a
28981 py_cv_module__posixshmem=n/a
28982 py_cv_module__posixsubprocess=n/a
28983 py_cv_module__scproxy=n/a
28984 py_cv_module__tkinter=n/a
28985 py_cv_module_grp=n/a
28986 py_cv_module_nis=n/a
28987 py_cv_module_readline=n/a
28988 py_cv_module_pwd=n/a
28989 py_cv_module_spwd=n/a
28990 py_cv_module_syslog=n/a
28991 py_cv_module_=n/a
28992
28993 ;; #(
28994 CYGWIN*) :
28995
28996
28997 py_cv_module__scproxy=n/a
28998 ;; #(
28999 QNX*) :
29000
29001
29002 py_cv_module__scproxy=n/a
29003 ;; #(
29004 FreeBSD*) :
29005
29006
29007 py_cv_module__scproxy=n/a
29008 ;; #(
29009 Emscripten|WASI) :
29010
29011
29012
29013 py_cv_module__curses=n/a
29014 py_cv_module__curses_panel=n/a
29015 py_cv_module__dbm=n/a
29016 py_cv_module__gdbm=n/a
29017 py_cv_module__multiprocessing=n/a
29018 py_cv_module__posixshmem=n/a
29019 py_cv_module__posixsubprocess=n/a
29020 py_cv_module__scproxy=n/a
29021 py_cv_module__tkinter=n/a
29022 py_cv_module__interpreters=n/a
29023 py_cv_module__interpchannels=n/a
29024 py_cv_module__interpqueues=n/a
29025 py_cv_module_grp=n/a
29026 py_cv_module_pwd=n/a
29027 py_cv_module_resource=n/a
29028 py_cv_module_syslog=n/a
29029 py_cv_module_=n/a
29030
29031 case $ac_sys_system/$ac_sys_emscripten_target in #(
29032 Emscripten/browser*) :
29033
29034
29035
29036 py_cv_module_fcntl=n/a
29037 py_cv_module_readline=n/a
29038 py_cv_module_termios=n/a
29039 py_cv_module_=n/a
29040
29041 ;; #(
29042 Emscripten/node*) :
29043 ;; #(
29044 WASI/*) :
29045
29046
29047
29048 py_cv_module__ctypes_test=n/a
29049 py_cv_module__testexternalinspection=n/a
29050 py_cv_module__testimportmultiple=n/a
29051 py_cv_module__testmultiphase=n/a
29052 py_cv_module__testsinglephase=n/a
29053 py_cv_module_fcntl=n/a
29054 py_cv_module_mmap=n/a
29055 py_cv_module_termios=n/a
29056 py_cv_module_xxlimited=n/a
29057 py_cv_module_xxlimited_35=n/a
29058 py_cv_module_=n/a
29059
29060
29061 ;; #(
29062 *) :
29063 ;;
29064 esac
29065 ;; #(
29066 *) :
29067
29068
29069 py_cv_module__scproxy=n/a
29070
29071 ;;
29072 esac
29073
29074
29075 case $host_cpu in #(
29076 wasm32|wasm64) :
29077 MODULE_BUILDTYPE=static ;; #(
29078 *) :
29079 MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared}
29080 ;;
29081 esac
29082
29083
29084
29085 MODULE_BLOCK=
29086
29087
29088
29089
29090
29091
29092 if test "$py_cv_module__io" != "n/a"
29093 then :
29094 py_cv_module__io=yes
29095 fi
29096 if test "$py_cv_module__io" = yes; then
29097 MODULE__IO_TRUE=
29098 MODULE__IO_FALSE='#'
29099 else
29100 MODULE__IO_TRUE='#'
29101 MODULE__IO_FALSE=
29102 fi
29103
29104 as_fn_append MODULE_BLOCK "MODULE__IO_STATE=$py_cv_module__io$as_nl"
29105 if test "x$py_cv_module__io" = xyes
29106 then :
29107
29108 as_fn_append MODULE_BLOCK "MODULE__IO_CFLAGS=-I\$(srcdir)/Modules/_io$as_nl"
29109
29110
29111 fi
29112
29113
29114 if test "$py_cv_module_time" != "n/a"
29115 then :
29116 py_cv_module_time=yes
29117 fi
29118 if test "$py_cv_module_time" = yes; then
29119 MODULE_TIME_TRUE=
29120 MODULE_TIME_FALSE='#'
29121 else
29122 MODULE_TIME_TRUE='#'
29123 MODULE_TIME_FALSE=
29124 fi
29125
29126 as_fn_append MODULE_BLOCK "MODULE_TIME_STATE=$py_cv_module_time$as_nl"
29127 if test "x$py_cv_module_time" = xyes
29128 then :
29129
29130
29131 as_fn_append MODULE_BLOCK "MODULE_TIME_LDFLAGS=$TIMEMODULE_LIB$as_nl"
29132
29133 fi
29134
29135
29136
29137 if test "$py_cv_module_array" != "n/a"
29138 then :
29139 py_cv_module_array=yes
29140 fi
29141 if test "$py_cv_module_array" = yes; then
29142 MODULE_ARRAY_TRUE=
29143 MODULE_ARRAY_FALSE='#'
29144 else
29145 MODULE_ARRAY_TRUE='#'
29146 MODULE_ARRAY_FALSE=
29147 fi
29148
29149 as_fn_append MODULE_BLOCK "MODULE_ARRAY_STATE=$py_cv_module_array$as_nl"
29150 if test "x$py_cv_module_array" = xyes
29151 then :
29152
29153
29154
29155
29156 fi
29157
29158
29159 if test "$py_cv_module__asyncio" != "n/a"
29160 then :
29161 py_cv_module__asyncio=yes
29162 fi
29163 if test "$py_cv_module__asyncio" = yes; then
29164 MODULE__ASYNCIO_TRUE=
29165 MODULE__ASYNCIO_FALSE='#'
29166 else
29167 MODULE__ASYNCIO_TRUE='#'
29168 MODULE__ASYNCIO_FALSE=
29169 fi
29170
29171 as_fn_append MODULE_BLOCK "MODULE__ASYNCIO_STATE=$py_cv_module__asyncio$as_nl"
29172 if test "x$py_cv_module__asyncio" = xyes
29173 then :
29174
29175
29176
29177
29178 fi
29179
29180
29181 if test "$py_cv_module__bisect" != "n/a"
29182 then :
29183 py_cv_module__bisect=yes
29184 fi
29185 if test "$py_cv_module__bisect" = yes; then
29186 MODULE__BISECT_TRUE=
29187 MODULE__BISECT_FALSE='#'
29188 else
29189 MODULE__BISECT_TRUE='#'
29190 MODULE__BISECT_FALSE=
29191 fi
29192
29193 as_fn_append MODULE_BLOCK "MODULE__BISECT_STATE=$py_cv_module__bisect$as_nl"
29194 if test "x$py_cv_module__bisect" = xyes
29195 then :
29196
29197
29198
29199
29200 fi
29201
29202
29203 if test "$py_cv_module__contextvars" != "n/a"
29204 then :
29205 py_cv_module__contextvars=yes
29206 fi
29207 if test "$py_cv_module__contextvars" = yes; then
29208 MODULE__CONTEXTVARS_TRUE=
29209 MODULE__CONTEXTVARS_FALSE='#'
29210 else
29211 MODULE__CONTEXTVARS_TRUE='#'
29212 MODULE__CONTEXTVARS_FALSE=
29213 fi
29214
29215 as_fn_append MODULE_BLOCK "MODULE__CONTEXTVARS_STATE=$py_cv_module__contextvars$as_nl"
29216 if test "x$py_cv_module__contextvars" = xyes
29217 then :
29218
29219
29220
29221
29222 fi
29223
29224
29225 if test "$py_cv_module__csv" != "n/a"
29226 then :
29227 py_cv_module__csv=yes
29228 fi
29229 if test "$py_cv_module__csv" = yes; then
29230 MODULE__CSV_TRUE=
29231 MODULE__CSV_FALSE='#'
29232 else
29233 MODULE__CSV_TRUE='#'
29234 MODULE__CSV_FALSE=
29235 fi
29236
29237 as_fn_append MODULE_BLOCK "MODULE__CSV_STATE=$py_cv_module__csv$as_nl"
29238 if test "x$py_cv_module__csv" = xyes
29239 then :
29240
29241
29242
29243
29244 fi
29245
29246
29247 if test "$py_cv_module__heapq" != "n/a"
29248 then :
29249 py_cv_module__heapq=yes
29250 fi
29251 if test "$py_cv_module__heapq" = yes; then
29252 MODULE__HEAPQ_TRUE=
29253 MODULE__HEAPQ_FALSE='#'
29254 else
29255 MODULE__HEAPQ_TRUE='#'
29256 MODULE__HEAPQ_FALSE=
29257 fi
29258
29259 as_fn_append MODULE_BLOCK "MODULE__HEAPQ_STATE=$py_cv_module__heapq$as_nl"
29260 if test "x$py_cv_module__heapq" = xyes
29261 then :
29262
29263
29264
29265
29266 fi
29267
29268
29269 if test "$py_cv_module__json" != "n/a"
29270 then :
29271 py_cv_module__json=yes
29272 fi
29273 if test "$py_cv_module__json" = yes; then
29274 MODULE__JSON_TRUE=
29275 MODULE__JSON_FALSE='#'
29276 else
29277 MODULE__JSON_TRUE='#'
29278 MODULE__JSON_FALSE=
29279 fi
29280
29281 as_fn_append MODULE_BLOCK "MODULE__JSON_STATE=$py_cv_module__json$as_nl"
29282 if test "x$py_cv_module__json" = xyes
29283 then :
29284
29285
29286
29287
29288 fi
29289
29290
29291 if test "$py_cv_module__lsprof" != "n/a"
29292 then :
29293 py_cv_module__lsprof=yes
29294 fi
29295 if test "$py_cv_module__lsprof" = yes; then
29296 MODULE__LSPROF_TRUE=
29297 MODULE__LSPROF_FALSE='#'
29298 else
29299 MODULE__LSPROF_TRUE='#'
29300 MODULE__LSPROF_FALSE=
29301 fi
29302
29303 as_fn_append MODULE_BLOCK "MODULE__LSPROF_STATE=$py_cv_module__lsprof$as_nl"
29304 if test "x$py_cv_module__lsprof" = xyes
29305 then :
29306
29307
29308
29309
29310 fi
29311
29312
29313 if test "$py_cv_module__opcode" != "n/a"
29314 then :
29315 py_cv_module__opcode=yes
29316 fi
29317 if test "$py_cv_module__opcode" = yes; then
29318 MODULE__OPCODE_TRUE=
29319 MODULE__OPCODE_FALSE='#'
29320 else
29321 MODULE__OPCODE_TRUE='#'
29322 MODULE__OPCODE_FALSE=
29323 fi
29324
29325 as_fn_append MODULE_BLOCK "MODULE__OPCODE_STATE=$py_cv_module__opcode$as_nl"
29326 if test "x$py_cv_module__opcode" = xyes
29327 then :
29328
29329
29330
29331
29332 fi
29333
29334
29335 if test "$py_cv_module__pickle" != "n/a"
29336 then :
29337 py_cv_module__pickle=yes
29338 fi
29339 if test "$py_cv_module__pickle" = yes; then
29340 MODULE__PICKLE_TRUE=
29341 MODULE__PICKLE_FALSE='#'
29342 else
29343 MODULE__PICKLE_TRUE='#'
29344 MODULE__PICKLE_FALSE=
29345 fi
29346
29347 as_fn_append MODULE_BLOCK "MODULE__PICKLE_STATE=$py_cv_module__pickle$as_nl"
29348 if test "x$py_cv_module__pickle" = xyes
29349 then :
29350
29351
29352
29353
29354 fi
29355
29356
29357 if test "$py_cv_module__posixsubprocess" != "n/a"
29358 then :
29359 py_cv_module__posixsubprocess=yes
29360 fi
29361 if test "$py_cv_module__posixsubprocess" = yes; then
29362 MODULE__POSIXSUBPROCESS_TRUE=
29363 MODULE__POSIXSUBPROCESS_FALSE='#'
29364 else
29365 MODULE__POSIXSUBPROCESS_TRUE='#'
29366 MODULE__POSIXSUBPROCESS_FALSE=
29367 fi
29368
29369 as_fn_append MODULE_BLOCK "MODULE__POSIXSUBPROCESS_STATE=$py_cv_module__posixsubprocess$as_nl"
29370 if test "x$py_cv_module__posixsubprocess" = xyes
29371 then :
29372
29373
29374
29375
29376 fi
29377
29378
29379 if test "$py_cv_module__queue" != "n/a"
29380 then :
29381 py_cv_module__queue=yes
29382 fi
29383 if test "$py_cv_module__queue" = yes; then
29384 MODULE__QUEUE_TRUE=
29385 MODULE__QUEUE_FALSE='#'
29386 else
29387 MODULE__QUEUE_TRUE='#'
29388 MODULE__QUEUE_FALSE=
29389 fi
29390
29391 as_fn_append MODULE_BLOCK "MODULE__QUEUE_STATE=$py_cv_module__queue$as_nl"
29392 if test "x$py_cv_module__queue" = xyes
29393 then :
29394
29395
29396
29397
29398 fi
29399
29400
29401 if test "$py_cv_module__random" != "n/a"
29402 then :
29403 py_cv_module__random=yes
29404 fi
29405 if test "$py_cv_module__random" = yes; then
29406 MODULE__RANDOM_TRUE=
29407 MODULE__RANDOM_FALSE='#'
29408 else
29409 MODULE__RANDOM_TRUE='#'
29410 MODULE__RANDOM_FALSE=
29411 fi
29412
29413 as_fn_append MODULE_BLOCK "MODULE__RANDOM_STATE=$py_cv_module__random$as_nl"
29414 if test "x$py_cv_module__random" = xyes
29415 then :
29416
29417
29418
29419
29420 fi
29421
29422
29423 if test "$py_cv_module_select" != "n/a"
29424 then :
29425 py_cv_module_select=yes
29426 fi
29427 if test "$py_cv_module_select" = yes; then
29428 MODULE_SELECT_TRUE=
29429 MODULE_SELECT_FALSE='#'
29430 else
29431 MODULE_SELECT_TRUE='#'
29432 MODULE_SELECT_FALSE=
29433 fi
29434
29435 as_fn_append MODULE_BLOCK "MODULE_SELECT_STATE=$py_cv_module_select$as_nl"
29436 if test "x$py_cv_module_select" = xyes
29437 then :
29438
29439
29440
29441
29442 fi
29443
29444
29445 if test "$py_cv_module__struct" != "n/a"
29446 then :
29447 py_cv_module__struct=yes
29448 fi
29449 if test "$py_cv_module__struct" = yes; then
29450 MODULE__STRUCT_TRUE=
29451 MODULE__STRUCT_FALSE='#'
29452 else
29453 MODULE__STRUCT_TRUE='#'
29454 MODULE__STRUCT_FALSE=
29455 fi
29456
29457 as_fn_append MODULE_BLOCK "MODULE__STRUCT_STATE=$py_cv_module__struct$as_nl"
29458 if test "x$py_cv_module__struct" = xyes
29459 then :
29460
29461
29462
29463
29464 fi
29465
29466
29467 if test "$py_cv_module__typing" != "n/a"
29468 then :
29469 py_cv_module__typing=yes
29470 fi
29471 if test "$py_cv_module__typing" = yes; then
29472 MODULE__TYPING_TRUE=
29473 MODULE__TYPING_FALSE='#'
29474 else
29475 MODULE__TYPING_TRUE='#'
29476 MODULE__TYPING_FALSE=
29477 fi
29478
29479 as_fn_append MODULE_BLOCK "MODULE__TYPING_STATE=$py_cv_module__typing$as_nl"
29480 if test "x$py_cv_module__typing" = xyes
29481 then :
29482
29483
29484
29485
29486 fi
29487
29488
29489 if test "$py_cv_module__interpreters" != "n/a"
29490 then :
29491 py_cv_module__interpreters=yes
29492 fi
29493 if test "$py_cv_module__interpreters" = yes; then
29494 MODULE__INTERPRETERS_TRUE=
29495 MODULE__INTERPRETERS_FALSE='#'
29496 else
29497 MODULE__INTERPRETERS_TRUE='#'
29498 MODULE__INTERPRETERS_FALSE=
29499 fi
29500
29501 as_fn_append MODULE_BLOCK "MODULE__INTERPRETERS_STATE=$py_cv_module__interpreters$as_nl"
29502 if test "x$py_cv_module__interpreters" = xyes
29503 then :
29504
29505
29506
29507
29508 fi
29509
29510
29511 if test "$py_cv_module__interpchannels" != "n/a"
29512 then :
29513 py_cv_module__interpchannels=yes
29514 fi
29515 if test "$py_cv_module__interpchannels" = yes; then
29516 MODULE__INTERPCHANNELS_TRUE=
29517 MODULE__INTERPCHANNELS_FALSE='#'
29518 else
29519 MODULE__INTERPCHANNELS_TRUE='#'
29520 MODULE__INTERPCHANNELS_FALSE=
29521 fi
29522
29523 as_fn_append MODULE_BLOCK "MODULE__INTERPCHANNELS_STATE=$py_cv_module__interpchannels$as_nl"
29524 if test "x$py_cv_module__interpchannels" = xyes
29525 then :
29526
29527
29528
29529
29530 fi
29531
29532
29533 if test "$py_cv_module__interpqueues" != "n/a"
29534 then :
29535 py_cv_module__interpqueues=yes
29536 fi
29537 if test "$py_cv_module__interpqueues" = yes; then
29538 MODULE__INTERPQUEUES_TRUE=
29539 MODULE__INTERPQUEUES_FALSE='#'
29540 else
29541 MODULE__INTERPQUEUES_TRUE='#'
29542 MODULE__INTERPQUEUES_FALSE=
29543 fi
29544
29545 as_fn_append MODULE_BLOCK "MODULE__INTERPQUEUES_STATE=$py_cv_module__interpqueues$as_nl"
29546 if test "x$py_cv_module__interpqueues" = xyes
29547 then :
29548
29549
29550
29551
29552 fi
29553
29554
29555 if test "$py_cv_module__zoneinfo" != "n/a"
29556 then :
29557 py_cv_module__zoneinfo=yes
29558 fi
29559 if test "$py_cv_module__zoneinfo" = yes; then
29560 MODULE__ZONEINFO_TRUE=
29561 MODULE__ZONEINFO_FALSE='#'
29562 else
29563 MODULE__ZONEINFO_TRUE='#'
29564 MODULE__ZONEINFO_FALSE=
29565 fi
29566
29567 as_fn_append MODULE_BLOCK "MODULE__ZONEINFO_STATE=$py_cv_module__zoneinfo$as_nl"
29568 if test "x$py_cv_module__zoneinfo" = xyes
29569 then :
29570
29571
29572
29573
29574 fi
29575
29576
29577
29578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _multiprocessing" >&5
29579 printf %s "checking for stdlib extension module _multiprocessing... " >&6; }
29580 if test "$py_cv_module__multiprocessing" != "n/a"
29581 then :
29582
29583 if true
29584 then :
29585 if test "$ac_cv_func_sem_unlink" = "yes"
29586 then :
29587 py_cv_module__multiprocessing=yes
29588 else $as_nop
29589 py_cv_module__multiprocessing=missing
29590 fi
29591 else $as_nop
29592 py_cv_module__multiprocessing=disabled
29593 fi
29594
29595 fi
29596 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_STATE=$py_cv_module__multiprocessing$as_nl"
29597 if test "x$py_cv_module__multiprocessing" = xyes
29598 then :
29599
29600 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_CFLAGS=-I\$(srcdir)/Modules/_multiprocessing$as_nl"
29601
29602
29603 fi
29604 if test "$py_cv_module__multiprocessing" = yes; then
29605 MODULE__MULTIPROCESSING_TRUE=
29606 MODULE__MULTIPROCESSING_FALSE='#'
29607 else
29608 MODULE__MULTIPROCESSING_TRUE='#'
29609 MODULE__MULTIPROCESSING_FALSE=
29610 fi
29611
29612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__multiprocessing" >&5
29613 printf "%s\n" "$py_cv_module__multiprocessing" >&6; }
29614
29615
29616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5
29617 printf %s "checking for stdlib extension module _posixshmem... " >&6; }
29618 if test "$py_cv_module__posixshmem" != "n/a"
29619 then :
29620
29621 if true
29622 then :
29623 if test "$have_posix_shmem" = "yes"
29624 then :
29625 py_cv_module__posixshmem=yes
29626 else $as_nop
29627 py_cv_module__posixshmem=missing
29628 fi
29629 else $as_nop
29630 py_cv_module__posixshmem=disabled
29631 fi
29632
29633 fi
29634 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_STATE=$py_cv_module__posixshmem$as_nl"
29635 if test "x$py_cv_module__posixshmem" = xyes
29636 then :
29637
29638 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl"
29639 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl"
29640
29641 fi
29642 if test "$py_cv_module__posixshmem" = yes; then
29643 MODULE__POSIXSHMEM_TRUE=
29644 MODULE__POSIXSHMEM_FALSE='#'
29645 else
29646 MODULE__POSIXSHMEM_TRUE='#'
29647 MODULE__POSIXSHMEM_FALSE=
29648 fi
29649
29650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5
29651 printf "%s\n" "$py_cv_module__posixshmem" >&6; }
29652
29653
29654
29655 if test "$py_cv_module__statistics" != "n/a"
29656 then :
29657 py_cv_module__statistics=yes
29658 fi
29659 if test "$py_cv_module__statistics" = yes; then
29660 MODULE__STATISTICS_TRUE=
29661 MODULE__STATISTICS_FALSE='#'
29662 else
29663 MODULE__STATISTICS_TRUE='#'
29664 MODULE__STATISTICS_FALSE=
29665 fi
29666
29667 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_STATE=$py_cv_module__statistics$as_nl"
29668 if test "x$py_cv_module__statistics" = xyes
29669 then :
29670
29671
29672 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_LDFLAGS=$LIBM$as_nl"
29673
29674 fi
29675
29676
29677 if test "$py_cv_module_cmath" != "n/a"
29678 then :
29679 py_cv_module_cmath=yes
29680 fi
29681 if test "$py_cv_module_cmath" = yes; then
29682 MODULE_CMATH_TRUE=
29683 MODULE_CMATH_FALSE='#'
29684 else
29685 MODULE_CMATH_TRUE='#'
29686 MODULE_CMATH_FALSE=
29687 fi
29688
29689 as_fn_append MODULE_BLOCK "MODULE_CMATH_STATE=$py_cv_module_cmath$as_nl"
29690 if test "x$py_cv_module_cmath" = xyes
29691 then :
29692
29693
29694 as_fn_append MODULE_BLOCK "MODULE_CMATH_LDFLAGS=$LIBM$as_nl"
29695
29696 fi
29697
29698
29699 if test "$py_cv_module_math" != "n/a"
29700 then :
29701 py_cv_module_math=yes
29702 fi
29703 if test "$py_cv_module_math" = yes; then
29704 MODULE_MATH_TRUE=
29705 MODULE_MATH_FALSE='#'
29706 else
29707 MODULE_MATH_TRUE='#'
29708 MODULE_MATH_FALSE=
29709 fi
29710
29711 as_fn_append MODULE_BLOCK "MODULE_MATH_STATE=$py_cv_module_math$as_nl"
29712 if test "x$py_cv_module_math" = xyes
29713 then :
29714
29715
29716 as_fn_append MODULE_BLOCK "MODULE_MATH_LDFLAGS=$LIBM$as_nl"
29717
29718 fi
29719
29720
29721
29722 if test "$py_cv_module__datetime" != "n/a"
29723 then :
29724 py_cv_module__datetime=yes
29725 fi
29726 if test "$py_cv_module__datetime" = yes; then
29727 MODULE__DATETIME_TRUE=
29728 MODULE__DATETIME_FALSE='#'
29729 else
29730 MODULE__DATETIME_TRUE='#'
29731 MODULE__DATETIME_FALSE=
29732 fi
29733
29734 as_fn_append MODULE_BLOCK "MODULE__DATETIME_STATE=$py_cv_module__datetime$as_nl"
29735 if test "x$py_cv_module__datetime" = xyes
29736 then :
29737
29738
29739 as_fn_append MODULE_BLOCK "MODULE__DATETIME_LDFLAGS=$TIMEMODULE_LIB $LIBM$as_nl"
29740
29741 fi
29742
29743
29744
29745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module fcntl" >&5
29746 printf %s "checking for stdlib extension module fcntl... " >&6; }
29747 if test "$py_cv_module_fcntl" != "n/a"
29748 then :
29749
29750 if true
29751 then :
29752 if test "$ac_cv_header_sys_ioctl_h" = "yes" -a "$ac_cv_header_fcntl_h" = "yes"
29753 then :
29754 py_cv_module_fcntl=yes
29755 else $as_nop
29756 py_cv_module_fcntl=missing
29757 fi
29758 else $as_nop
29759 py_cv_module_fcntl=disabled
29760 fi
29761
29762 fi
29763 as_fn_append MODULE_BLOCK "MODULE_FCNTL_STATE=$py_cv_module_fcntl$as_nl"
29764 if test "x$py_cv_module_fcntl" = xyes
29765 then :
29766
29767
29768 as_fn_append MODULE_BLOCK "MODULE_FCNTL_LDFLAGS=$FCNTL_LIBS$as_nl"
29769
29770 fi
29771 if test "$py_cv_module_fcntl" = yes; then
29772 MODULE_FCNTL_TRUE=
29773 MODULE_FCNTL_FALSE='#'
29774 else
29775 MODULE_FCNTL_TRUE='#'
29776 MODULE_FCNTL_FALSE=
29777 fi
29778
29779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_fcntl" >&5
29780 printf "%s\n" "$py_cv_module_fcntl" >&6; }
29781
29782
29783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module mmap" >&5
29784 printf %s "checking for stdlib extension module mmap... " >&6; }
29785 if test "$py_cv_module_mmap" != "n/a"
29786 then :
29787
29788 if true
29789 then :
29790 if test "$ac_cv_header_sys_mman_h" = "yes" -a "$ac_cv_header_sys_stat_h" = "yes"
29791 then :
29792 py_cv_module_mmap=yes
29793 else $as_nop
29794 py_cv_module_mmap=missing
29795 fi
29796 else $as_nop
29797 py_cv_module_mmap=disabled
29798 fi
29799
29800 fi
29801 as_fn_append MODULE_BLOCK "MODULE_MMAP_STATE=$py_cv_module_mmap$as_nl"
29802 if test "x$py_cv_module_mmap" = xyes
29803 then :
29804
29805
29806
29807
29808 fi
29809 if test "$py_cv_module_mmap" = yes; then
29810 MODULE_MMAP_TRUE=
29811 MODULE_MMAP_FALSE='#'
29812 else
29813 MODULE_MMAP_TRUE='#'
29814 MODULE_MMAP_FALSE=
29815 fi
29816
29817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_mmap" >&5
29818 printf "%s\n" "$py_cv_module_mmap" >&6; }
29819
29820
29821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _socket" >&5
29822 printf %s "checking for stdlib extension module _socket... " >&6; }
29823 if test "$py_cv_module__socket" != "n/a"
29824 then :
29825
29826 if true
29827 then :
29828 if test "$ac_cv_header_sys_socket_h" = "yes" -a "$ac_cv_header_sys_types_h" = "yes" -a "$ac_cv_header_netinet_in_h" = "yes"
29829 then :
29830 py_cv_module__socket=yes
29831 else $as_nop
29832 py_cv_module__socket=missing
29833 fi
29834 else $as_nop
29835 py_cv_module__socket=disabled
29836 fi
29837
29838 fi
29839 as_fn_append MODULE_BLOCK "MODULE__SOCKET_STATE=$py_cv_module__socket$as_nl"
29840 if test "x$py_cv_module__socket" = xyes
29841 then :
29842
29843
29844
29845
29846 fi
29847 if test "$py_cv_module__socket" = yes; then
29848 MODULE__SOCKET_TRUE=
29849 MODULE__SOCKET_FALSE='#'
29850 else
29851 MODULE__SOCKET_TRUE='#'
29852 MODULE__SOCKET_FALSE=
29853 fi
29854
29855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__socket" >&5
29856 printf "%s\n" "$py_cv_module__socket" >&6; }
29857
29858
29859
29860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module grp" >&5
29861 printf %s "checking for stdlib extension module grp... " >&6; }
29862 if test "$py_cv_module_grp" != "n/a"
29863 then :
29864
29865 if true
29866 then :
29867 if test "$ac_cv_func_getgrent" = "yes" &&
29868 { test "$ac_cv_func_getgrgid" = "yes" || test "$ac_cv_func_getgrgid_r" = "yes"; }
29869 then :
29870 py_cv_module_grp=yes
29871 else $as_nop
29872 py_cv_module_grp=missing
29873 fi
29874 else $as_nop
29875 py_cv_module_grp=disabled
29876 fi
29877
29878 fi
29879 as_fn_append MODULE_BLOCK "MODULE_GRP_STATE=$py_cv_module_grp$as_nl"
29880 if test "x$py_cv_module_grp" = xyes
29881 then :
29882
29883
29884
29885
29886 fi
29887 if test "$py_cv_module_grp" = yes; then
29888 MODULE_GRP_TRUE=
29889 MODULE_GRP_FALSE='#'
29890 else
29891 MODULE_GRP_TRUE='#'
29892 MODULE_GRP_FALSE=
29893 fi
29894
29895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_grp" >&5
29896 printf "%s\n" "$py_cv_module_grp" >&6; }
29897
29898
29899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pwd" >&5
29900 printf %s "checking for stdlib extension module pwd... " >&6; }
29901 if test "$py_cv_module_pwd" != "n/a"
29902 then :
29903
29904 if true
29905 then :
29906 if test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes
29907 then :
29908 py_cv_module_pwd=yes
29909 else $as_nop
29910 py_cv_module_pwd=missing
29911 fi
29912 else $as_nop
29913 py_cv_module_pwd=disabled
29914 fi
29915
29916 fi
29917 as_fn_append MODULE_BLOCK "MODULE_PWD_STATE=$py_cv_module_pwd$as_nl"
29918 if test "x$py_cv_module_pwd" = xyes
29919 then :
29920
29921
29922
29923
29924 fi
29925 if test "$py_cv_module_pwd" = yes; then
29926 MODULE_PWD_TRUE=
29927 MODULE_PWD_FALSE='#'
29928 else
29929 MODULE_PWD_TRUE='#'
29930 MODULE_PWD_FALSE=
29931 fi
29932
29933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pwd" >&5
29934 printf "%s\n" "$py_cv_module_pwd" >&6; }
29935
29936
29937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module resource" >&5
29938 printf %s "checking for stdlib extension module resource... " >&6; }
29939 if test "$py_cv_module_resource" != "n/a"
29940 then :
29941
29942 if true
29943 then :
29944 if test "$ac_cv_header_sys_resource_h" = yes
29945 then :
29946 py_cv_module_resource=yes
29947 else $as_nop
29948 py_cv_module_resource=missing
29949 fi
29950 else $as_nop
29951 py_cv_module_resource=disabled
29952 fi
29953
29954 fi
29955 as_fn_append MODULE_BLOCK "MODULE_RESOURCE_STATE=$py_cv_module_resource$as_nl"
29956 if test "x$py_cv_module_resource" = xyes
29957 then :
29958
29959
29960
29961
29962 fi
29963 if test "$py_cv_module_resource" = yes; then
29964 MODULE_RESOURCE_TRUE=
29965 MODULE_RESOURCE_FALSE='#'
29966 else
29967 MODULE_RESOURCE_TRUE='#'
29968 MODULE_RESOURCE_FALSE=
29969 fi
29970
29971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_resource" >&5
29972 printf "%s\n" "$py_cv_module_resource" >&6; }
29973
29974
29975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _scproxy" >&5
29976 printf %s "checking for stdlib extension module _scproxy... " >&6; }
29977 if test "$py_cv_module__scproxy" != "n/a"
29978 then :
29979
29980 if test "$ac_sys_system" = "Darwin"
29981 then :
29982 if true
29983 then :
29984 py_cv_module__scproxy=yes
29985 else $as_nop
29986 py_cv_module__scproxy=missing
29987 fi
29988 else $as_nop
29989 py_cv_module__scproxy=disabled
29990 fi
29991
29992 fi
29993 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_STATE=$py_cv_module__scproxy$as_nl"
29994 if test "x$py_cv_module__scproxy" = xyes
29995 then :
29996
29997
29998 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_LDFLAGS=-framework SystemConfiguration -framework CoreFoundation$as_nl"
29999
30000 fi
30001 if test "$py_cv_module__scproxy" = yes; then
30002 MODULE__SCPROXY_TRUE=
30003 MODULE__SCPROXY_FALSE='#'
30004 else
30005 MODULE__SCPROXY_TRUE='#'
30006 MODULE__SCPROXY_FALSE=
30007 fi
30008
30009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__scproxy" >&5
30010 printf "%s\n" "$py_cv_module__scproxy" >&6; }
30011
30012
30013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module syslog" >&5
30014 printf %s "checking for stdlib extension module syslog... " >&6; }
30015 if test "$py_cv_module_syslog" != "n/a"
30016 then :
30017
30018 if true
30019 then :
30020 if test "$ac_cv_header_syslog_h" = yes
30021 then :
30022 py_cv_module_syslog=yes
30023 else $as_nop
30024 py_cv_module_syslog=missing
30025 fi
30026 else $as_nop
30027 py_cv_module_syslog=disabled
30028 fi
30029
30030 fi
30031 as_fn_append MODULE_BLOCK "MODULE_SYSLOG_STATE=$py_cv_module_syslog$as_nl"
30032 if test "x$py_cv_module_syslog" = xyes
30033 then :
30034
30035
30036
30037
30038 fi
30039 if test "$py_cv_module_syslog" = yes; then
30040 MODULE_SYSLOG_TRUE=
30041 MODULE_SYSLOG_FALSE='#'
30042 else
30043 MODULE_SYSLOG_TRUE='#'
30044 MODULE_SYSLOG_FALSE=
30045 fi
30046
30047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_syslog" >&5
30048 printf "%s\n" "$py_cv_module_syslog" >&6; }
30049
30050
30051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module termios" >&5
30052 printf %s "checking for stdlib extension module termios... " >&6; }
30053 if test "$py_cv_module_termios" != "n/a"
30054 then :
30055
30056 if true
30057 then :
30058 if test "$ac_cv_header_termios_h" = yes
30059 then :
30060 py_cv_module_termios=yes
30061 else $as_nop
30062 py_cv_module_termios=missing
30063 fi
30064 else $as_nop
30065 py_cv_module_termios=disabled
30066 fi
30067
30068 fi
30069 as_fn_append MODULE_BLOCK "MODULE_TERMIOS_STATE=$py_cv_module_termios$as_nl"
30070 if test "x$py_cv_module_termios" = xyes
30071 then :
30072
30073
30074
30075
30076 fi
30077 if test "$py_cv_module_termios" = yes; then
30078 MODULE_TERMIOS_TRUE=
30079 MODULE_TERMIOS_FALSE='#'
30080 else
30081 MODULE_TERMIOS_TRUE='#'
30082 MODULE_TERMIOS_FALSE=
30083 fi
30084
30085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_termios" >&5
30086 printf "%s\n" "$py_cv_module_termios" >&6; }
30087
30088
30089
30090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pyexpat" >&5
30091 printf %s "checking for stdlib extension module pyexpat... " >&6; }
30092 if test "$py_cv_module_pyexpat" != "n/a"
30093 then :
30094
30095 if true
30096 then :
30097 if test "$ac_cv_header_sys_time_h" = "yes"
30098 then :
30099 py_cv_module_pyexpat=yes
30100 else $as_nop
30101 py_cv_module_pyexpat=missing
30102 fi
30103 else $as_nop
30104 py_cv_module_pyexpat=disabled
30105 fi
30106
30107 fi
30108 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_STATE=$py_cv_module_pyexpat$as_nl"
30109 if test "x$py_cv_module_pyexpat" = xyes
30110 then :
30111
30112 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
30113 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_LDFLAGS=$LIBEXPAT_LDFLAGS$as_nl"
30114
30115 fi
30116 if test "$py_cv_module_pyexpat" = yes; then
30117 MODULE_PYEXPAT_TRUE=
30118 MODULE_PYEXPAT_FALSE='#'
30119 else
30120 MODULE_PYEXPAT_TRUE='#'
30121 MODULE_PYEXPAT_FALSE=
30122 fi
30123
30124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pyexpat" >&5
30125 printf "%s\n" "$py_cv_module_pyexpat" >&6; }
30126
30127
30128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _elementtree" >&5
30129 printf %s "checking for stdlib extension module _elementtree... " >&6; }
30130 if test "$py_cv_module__elementtree" != "n/a"
30131 then :
30132
30133 if true
30134 then :
30135 if true
30136 then :
30137 py_cv_module__elementtree=yes
30138 else $as_nop
30139 py_cv_module__elementtree=missing
30140 fi
30141 else $as_nop
30142 py_cv_module__elementtree=disabled
30143 fi
30144
30145 fi
30146 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_STATE=$py_cv_module__elementtree$as_nl"
30147 if test "x$py_cv_module__elementtree" = xyes
30148 then :
30149
30150 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
30151
30152
30153 fi
30154 if test "$py_cv_module__elementtree" = yes; then
30155 MODULE__ELEMENTTREE_TRUE=
30156 MODULE__ELEMENTTREE_FALSE='#'
30157 else
30158 MODULE__ELEMENTTREE_TRUE='#'
30159 MODULE__ELEMENTTREE_FALSE=
30160 fi
30161
30162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__elementtree" >&5
30163 printf "%s\n" "$py_cv_module__elementtree" >&6; }
30164
30165
30166 if test "$py_cv_module__codecs_cn" != "n/a"
30167 then :
30168 py_cv_module__codecs_cn=yes
30169 fi
30170 if test "$py_cv_module__codecs_cn" = yes; then
30171 MODULE__CODECS_CN_TRUE=
30172 MODULE__CODECS_CN_FALSE='#'
30173 else
30174 MODULE__CODECS_CN_TRUE='#'
30175 MODULE__CODECS_CN_FALSE=
30176 fi
30177
30178 as_fn_append MODULE_BLOCK "MODULE__CODECS_CN_STATE=$py_cv_module__codecs_cn$as_nl"
30179 if test "x$py_cv_module__codecs_cn" = xyes
30180 then :
30181
30182
30183
30184
30185 fi
30186
30187
30188 if test "$py_cv_module__codecs_hk" != "n/a"
30189 then :
30190 py_cv_module__codecs_hk=yes
30191 fi
30192 if test "$py_cv_module__codecs_hk" = yes; then
30193 MODULE__CODECS_HK_TRUE=
30194 MODULE__CODECS_HK_FALSE='#'
30195 else
30196 MODULE__CODECS_HK_TRUE='#'
30197 MODULE__CODECS_HK_FALSE=
30198 fi
30199
30200 as_fn_append MODULE_BLOCK "MODULE__CODECS_HK_STATE=$py_cv_module__codecs_hk$as_nl"
30201 if test "x$py_cv_module__codecs_hk" = xyes
30202 then :
30203
30204
30205
30206
30207 fi
30208
30209
30210 if test "$py_cv_module__codecs_iso2022" != "n/a"
30211 then :
30212 py_cv_module__codecs_iso2022=yes
30213 fi
30214 if test "$py_cv_module__codecs_iso2022" = yes; then
30215 MODULE__CODECS_ISO2022_TRUE=
30216 MODULE__CODECS_ISO2022_FALSE='#'
30217 else
30218 MODULE__CODECS_ISO2022_TRUE='#'
30219 MODULE__CODECS_ISO2022_FALSE=
30220 fi
30221
30222 as_fn_append MODULE_BLOCK "MODULE__CODECS_ISO2022_STATE=$py_cv_module__codecs_iso2022$as_nl"
30223 if test "x$py_cv_module__codecs_iso2022" = xyes
30224 then :
30225
30226
30227
30228
30229 fi
30230
30231
30232 if test "$py_cv_module__codecs_jp" != "n/a"
30233 then :
30234 py_cv_module__codecs_jp=yes
30235 fi
30236 if test "$py_cv_module__codecs_jp" = yes; then
30237 MODULE__CODECS_JP_TRUE=
30238 MODULE__CODECS_JP_FALSE='#'
30239 else
30240 MODULE__CODECS_JP_TRUE='#'
30241 MODULE__CODECS_JP_FALSE=
30242 fi
30243
30244 as_fn_append MODULE_BLOCK "MODULE__CODECS_JP_STATE=$py_cv_module__codecs_jp$as_nl"
30245 if test "x$py_cv_module__codecs_jp" = xyes
30246 then :
30247
30248
30249
30250
30251 fi
30252
30253
30254 if test "$py_cv_module__codecs_kr" != "n/a"
30255 then :
30256 py_cv_module__codecs_kr=yes
30257 fi
30258 if test "$py_cv_module__codecs_kr" = yes; then
30259 MODULE__CODECS_KR_TRUE=
30260 MODULE__CODECS_KR_FALSE='#'
30261 else
30262 MODULE__CODECS_KR_TRUE='#'
30263 MODULE__CODECS_KR_FALSE=
30264 fi
30265
30266 as_fn_append MODULE_BLOCK "MODULE__CODECS_KR_STATE=$py_cv_module__codecs_kr$as_nl"
30267 if test "x$py_cv_module__codecs_kr" = xyes
30268 then :
30269
30270
30271
30272
30273 fi
30274
30275
30276 if test "$py_cv_module__codecs_tw" != "n/a"
30277 then :
30278 py_cv_module__codecs_tw=yes
30279 fi
30280 if test "$py_cv_module__codecs_tw" = yes; then
30281 MODULE__CODECS_TW_TRUE=
30282 MODULE__CODECS_TW_FALSE='#'
30283 else
30284 MODULE__CODECS_TW_TRUE='#'
30285 MODULE__CODECS_TW_FALSE=
30286 fi
30287
30288 as_fn_append MODULE_BLOCK "MODULE__CODECS_TW_STATE=$py_cv_module__codecs_tw$as_nl"
30289 if test "x$py_cv_module__codecs_tw" = xyes
30290 then :
30291
30292
30293
30294
30295 fi
30296
30297
30298 if test "$py_cv_module__multibytecodec" != "n/a"
30299 then :
30300 py_cv_module__multibytecodec=yes
30301 fi
30302 if test "$py_cv_module__multibytecodec" = yes; then
30303 MODULE__MULTIBYTECODEC_TRUE=
30304 MODULE__MULTIBYTECODEC_FALSE='#'
30305 else
30306 MODULE__MULTIBYTECODEC_TRUE='#'
30307 MODULE__MULTIBYTECODEC_FALSE=
30308 fi
30309
30310 as_fn_append MODULE_BLOCK "MODULE__MULTIBYTECODEC_STATE=$py_cv_module__multibytecodec$as_nl"
30311 if test "x$py_cv_module__multibytecodec" = xyes
30312 then :
30313
30314
30315
30316
30317 fi
30318
30319
30320 if test "$py_cv_module_unicodedata" != "n/a"
30321 then :
30322 py_cv_module_unicodedata=yes
30323 fi
30324 if test "$py_cv_module_unicodedata" = yes; then
30325 MODULE_UNICODEDATA_TRUE=
30326 MODULE_UNICODEDATA_FALSE='#'
30327 else
30328 MODULE_UNICODEDATA_TRUE='#'
30329 MODULE_UNICODEDATA_FALSE=
30330 fi
30331
30332 as_fn_append MODULE_BLOCK "MODULE_UNICODEDATA_STATE=$py_cv_module_unicodedata$as_nl"
30333 if test "x$py_cv_module_unicodedata" = xyes
30334 then :
30335
30336
30337
30338
30339 fi
30340
30341
30342
30343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _md5" >&5
30344 printf %s "checking for stdlib extension module _md5... " >&6; }
30345 if test "$py_cv_module__md5" != "n/a"
30346 then :
30347
30348 if test "$with_builtin_md5" = yes
30349 then :
30350 if true
30351 then :
30352 py_cv_module__md5=yes
30353 else $as_nop
30354 py_cv_module__md5=missing
30355 fi
30356 else $as_nop
30357 py_cv_module__md5=disabled
30358 fi
30359
30360 fi
30361 as_fn_append MODULE_BLOCK "MODULE__MD5_STATE=$py_cv_module__md5$as_nl"
30362 if test "x$py_cv_module__md5" = xyes
30363 then :
30364
30365 as_fn_append MODULE_BLOCK "MODULE__MD5_CFLAGS=-I\$(srcdir)/Modules/_hacl/include -I\$(srcdir)/Modules/_hacl/internal -D_BSD_SOURCE -D_DEFAULT_SOURCE$as_nl"
30366
30367
30368 fi
30369 if test "$py_cv_module__md5" = yes; then
30370 MODULE__MD5_TRUE=
30371 MODULE__MD5_FALSE='#'
30372 else
30373 MODULE__MD5_TRUE='#'
30374 MODULE__MD5_FALSE=
30375 fi
30376
30377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__md5" >&5
30378 printf "%s\n" "$py_cv_module__md5" >&6; }
30379
30380
30381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha1" >&5
30382 printf %s "checking for stdlib extension module _sha1... " >&6; }
30383 if test "$py_cv_module__sha1" != "n/a"
30384 then :
30385
30386 if test "$with_builtin_sha1" = yes
30387 then :
30388 if true
30389 then :
30390 py_cv_module__sha1=yes
30391 else $as_nop
30392 py_cv_module__sha1=missing
30393 fi
30394 else $as_nop
30395 py_cv_module__sha1=disabled
30396 fi
30397
30398 fi
30399 as_fn_append MODULE_BLOCK "MODULE__SHA1_STATE=$py_cv_module__sha1$as_nl"
30400 if test "x$py_cv_module__sha1" = xyes
30401 then :
30402
30403 as_fn_append MODULE_BLOCK "MODULE__SHA1_CFLAGS=-I\$(srcdir)/Modules/_hacl/include -I\$(srcdir)/Modules/_hacl/internal -D_BSD_SOURCE -D_DEFAULT_SOURCE$as_nl"
30404
30405
30406 fi
30407 if test "$py_cv_module__sha1" = yes; then
30408 MODULE__SHA1_TRUE=
30409 MODULE__SHA1_FALSE='#'
30410 else
30411 MODULE__SHA1_TRUE='#'
30412 MODULE__SHA1_FALSE=
30413 fi
30414
30415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha1" >&5
30416 printf "%s\n" "$py_cv_module__sha1" >&6; }
30417
30418
30419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha2" >&5
30420 printf %s "checking for stdlib extension module _sha2... " >&6; }
30421 if test "$py_cv_module__sha2" != "n/a"
30422 then :
30423
30424 if test "$with_builtin_sha2" = yes
30425 then :
30426 if true
30427 then :
30428 py_cv_module__sha2=yes
30429 else $as_nop
30430 py_cv_module__sha2=missing
30431 fi
30432 else $as_nop
30433 py_cv_module__sha2=disabled
30434 fi
30435
30436 fi
30437 as_fn_append MODULE_BLOCK "MODULE__SHA2_STATE=$py_cv_module__sha2$as_nl"
30438 if test "x$py_cv_module__sha2" = xyes
30439 then :
30440
30441 as_fn_append MODULE_BLOCK "MODULE__SHA2_CFLAGS=-I\$(srcdir)/Modules/_hacl/include -I\$(srcdir)/Modules/_hacl/internal -D_BSD_SOURCE -D_DEFAULT_SOURCE$as_nl"
30442
30443
30444 fi
30445 if test "$py_cv_module__sha2" = yes; then
30446 MODULE__SHA2_TRUE=
30447 MODULE__SHA2_FALSE='#'
30448 else
30449 MODULE__SHA2_TRUE='#'
30450 MODULE__SHA2_FALSE=
30451 fi
30452
30453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha2" >&5
30454 printf "%s\n" "$py_cv_module__sha2" >&6; }
30455
30456
30457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha3" >&5
30458 printf %s "checking for stdlib extension module _sha3... " >&6; }
30459 if test "$py_cv_module__sha3" != "n/a"
30460 then :
30461
30462 if test "$with_builtin_sha3" = yes
30463 then :
30464 if true
30465 then :
30466 py_cv_module__sha3=yes
30467 else $as_nop
30468 py_cv_module__sha3=missing
30469 fi
30470 else $as_nop
30471 py_cv_module__sha3=disabled
30472 fi
30473
30474 fi
30475 as_fn_append MODULE_BLOCK "MODULE__SHA3_STATE=$py_cv_module__sha3$as_nl"
30476 if test "x$py_cv_module__sha3" = xyes
30477 then :
30478
30479
30480
30481
30482 fi
30483 if test "$py_cv_module__sha3" = yes; then
30484 MODULE__SHA3_TRUE=
30485 MODULE__SHA3_FALSE='#'
30486 else
30487 MODULE__SHA3_TRUE='#'
30488 MODULE__SHA3_FALSE=
30489 fi
30490
30491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha3" >&5
30492 printf "%s\n" "$py_cv_module__sha3" >&6; }
30493
30494
30495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _blake2" >&5
30496 printf %s "checking for stdlib extension module _blake2... " >&6; }
30497 if test "$py_cv_module__blake2" != "n/a"
30498 then :
30499
30500 if test "$with_builtin_blake2" = yes
30501 then :
30502 if true
30503 then :
30504 py_cv_module__blake2=yes
30505 else $as_nop
30506 py_cv_module__blake2=missing
30507 fi
30508 else $as_nop
30509 py_cv_module__blake2=disabled
30510 fi
30511
30512 fi
30513 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_STATE=$py_cv_module__blake2$as_nl"
30514 if test "x$py_cv_module__blake2" = xyes
30515 then :
30516
30517 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_CFLAGS=$LIBB2_CFLAGS$as_nl"
30518 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_LDFLAGS=$LIBB2_LIBS$as_nl"
30519
30520 fi
30521 if test "$py_cv_module__blake2" = yes; then
30522 MODULE__BLAKE2_TRUE=
30523 MODULE__BLAKE2_FALSE='#'
30524 else
30525 MODULE__BLAKE2_TRUE='#'
30526 MODULE__BLAKE2_FALSE=
30527 fi
30528
30529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__blake2" >&5
30530 printf "%s\n" "$py_cv_module__blake2" >&6; }
30531
30532
30533
30534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes" >&5
30535 printf %s "checking for stdlib extension module _ctypes... " >&6; }
30536 if test "$py_cv_module__ctypes" != "n/a"
30537 then :
30538
30539 if true
30540 then :
30541 if test "$have_libffi" = yes
30542 then :
30543 py_cv_module__ctypes=yes
30544 else $as_nop
30545 py_cv_module__ctypes=missing
30546 fi
30547 else $as_nop
30548 py_cv_module__ctypes=disabled
30549 fi
30550
30551 fi
30552 as_fn_append MODULE_BLOCK "MODULE__CTYPES_STATE=$py_cv_module__ctypes$as_nl"
30553 if test "x$py_cv_module__ctypes" = xyes
30554 then :
30555
30556 as_fn_append MODULE_BLOCK "MODULE__CTYPES_CFLAGS=$NO_STRICT_OVERFLOW_CFLAGS $LIBFFI_CFLAGS$as_nl"
30557 as_fn_append MODULE_BLOCK "MODULE__CTYPES_LDFLAGS=$LIBFFI_LIBS$as_nl"
30558
30559 fi
30560 if test "$py_cv_module__ctypes" = yes; then
30561 MODULE__CTYPES_TRUE=
30562 MODULE__CTYPES_FALSE='#'
30563 else
30564 MODULE__CTYPES_TRUE='#'
30565 MODULE__CTYPES_FALSE=
30566 fi
30567
30568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes" >&5
30569 printf "%s\n" "$py_cv_module__ctypes" >&6; }
30570
30571
30572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses" >&5
30573 printf %s "checking for stdlib extension module _curses... " >&6; }
30574 if test "$py_cv_module__curses" != "n/a"
30575 then :
30576
30577 if true
30578 then :
30579 if test "$have_curses" = "yes"
30580 then :
30581 py_cv_module__curses=yes
30582 else $as_nop
30583 py_cv_module__curses=missing
30584 fi
30585 else $as_nop
30586 py_cv_module__curses=disabled
30587 fi
30588
30589 fi
30590 as_fn_append MODULE_BLOCK "MODULE__CURSES_STATE=$py_cv_module__curses$as_nl"
30591 if test "x$py_cv_module__curses" = xyes
30592 then :
30593
30594 as_fn_append MODULE_BLOCK "MODULE__CURSES_CFLAGS=$CURSES_CFLAGS$as_nl"
30595 as_fn_append MODULE_BLOCK "MODULE__CURSES_LDFLAGS=$CURSES_LIBS
30596 $as_nl"
30597
30598 fi
30599 if test "$py_cv_module__curses" = yes; then
30600 MODULE__CURSES_TRUE=
30601 MODULE__CURSES_FALSE='#'
30602 else
30603 MODULE__CURSES_TRUE='#'
30604 MODULE__CURSES_FALSE=
30605 fi
30606
30607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses" >&5
30608 printf "%s\n" "$py_cv_module__curses" >&6; }
30609
30610
30611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses_panel" >&5
30612 printf %s "checking for stdlib extension module _curses_panel... " >&6; }
30613 if test "$py_cv_module__curses_panel" != "n/a"
30614 then :
30615
30616 if true
30617 then :
30618 if test "$have_curses" = "yes" && test "$have_panel" = "yes"
30619 then :
30620 py_cv_module__curses_panel=yes
30621 else $as_nop
30622 py_cv_module__curses_panel=missing
30623 fi
30624 else $as_nop
30625 py_cv_module__curses_panel=disabled
30626 fi
30627
30628 fi
30629 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_STATE=$py_cv_module__curses_panel$as_nl"
30630 if test "x$py_cv_module__curses_panel" = xyes
30631 then :
30632
30633 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_CFLAGS=$PANEL_CFLAGS $CURSES_CFLAGS$as_nl"
30634 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_LDFLAGS=$PANEL_LIBS $CURSES_LIBS
30635 $as_nl"
30636
30637 fi
30638 if test "$py_cv_module__curses_panel" = yes; then
30639 MODULE__CURSES_PANEL_TRUE=
30640 MODULE__CURSES_PANEL_FALSE='#'
30641 else
30642 MODULE__CURSES_PANEL_TRUE='#'
30643 MODULE__CURSES_PANEL_FALSE=
30644 fi
30645
30646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses_panel" >&5
30647 printf "%s\n" "$py_cv_module__curses_panel" >&6; }
30648
30649
30650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _decimal" >&5
30651 printf %s "checking for stdlib extension module _decimal... " >&6; }
30652 if test "$py_cv_module__decimal" != "n/a"
30653 then :
30654
30655 if true
30656 then :
30657 if test "$have_mpdec" = "yes"
30658 then :
30659 py_cv_module__decimal=yes
30660 else $as_nop
30661 py_cv_module__decimal=missing
30662 fi
30663 else $as_nop
30664 py_cv_module__decimal=disabled
30665 fi
30666
30667 fi
30668 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_STATE=$py_cv_module__decimal$as_nl"
30669 if test "x$py_cv_module__decimal" = xyes
30670 then :
30671
30672 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_CFLAGS=$LIBMPDEC_CFLAGS$as_nl"
30673 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_LDFLAGS=$LIBMPDEC_LIBS$as_nl"
30674
30675 fi
30676 if test "$py_cv_module__decimal" = yes; then
30677 MODULE__DECIMAL_TRUE=
30678 MODULE__DECIMAL_FALSE='#'
30679 else
30680 MODULE__DECIMAL_TRUE='#'
30681 MODULE__DECIMAL_FALSE=
30682 fi
30683
30684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__decimal" >&5
30685 printf "%s\n" "$py_cv_module__decimal" >&6; }
30686
30687
30688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _dbm" >&5
30689 printf %s "checking for stdlib extension module _dbm... " >&6; }
30690 if test "$py_cv_module__dbm" != "n/a"
30691 then :
30692
30693 if test -n "$with_dbmliborder"
30694 then :
30695 if test "$have_dbm" != "no"
30696 then :
30697 py_cv_module__dbm=yes
30698 else $as_nop
30699 py_cv_module__dbm=missing
30700 fi
30701 else $as_nop
30702 py_cv_module__dbm=disabled
30703 fi
30704
30705 fi
30706 as_fn_append MODULE_BLOCK "MODULE__DBM_STATE=$py_cv_module__dbm$as_nl"
30707 if test "x$py_cv_module__dbm" = xyes
30708 then :
30709
30710 as_fn_append MODULE_BLOCK "MODULE__DBM_CFLAGS=$DBM_CFLAGS$as_nl"
30711 as_fn_append MODULE_BLOCK "MODULE__DBM_LDFLAGS=$DBM_LIBS$as_nl"
30712
30713 fi
30714 if test "$py_cv_module__dbm" = yes; then
30715 MODULE__DBM_TRUE=
30716 MODULE__DBM_FALSE='#'
30717 else
30718 MODULE__DBM_TRUE='#'
30719 MODULE__DBM_FALSE=
30720 fi
30721
30722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__dbm" >&5
30723 printf "%s\n" "$py_cv_module__dbm" >&6; }
30724
30725
30726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _gdbm" >&5
30727 printf %s "checking for stdlib extension module _gdbm... " >&6; }
30728 if test "$py_cv_module__gdbm" != "n/a"
30729 then :
30730
30731 if test "$have_gdbm_dbmliborder" = yes
30732 then :
30733 if test "$have_gdbm" = yes
30734 then :
30735 py_cv_module__gdbm=yes
30736 else $as_nop
30737 py_cv_module__gdbm=missing
30738 fi
30739 else $as_nop
30740 py_cv_module__gdbm=disabled
30741 fi
30742
30743 fi
30744 as_fn_append MODULE_BLOCK "MODULE__GDBM_STATE=$py_cv_module__gdbm$as_nl"
30745 if test "x$py_cv_module__gdbm" = xyes
30746 then :
30747
30748 as_fn_append MODULE_BLOCK "MODULE__GDBM_CFLAGS=$GDBM_CFLAGS$as_nl"
30749 as_fn_append MODULE_BLOCK "MODULE__GDBM_LDFLAGS=$GDBM_LIBS$as_nl"
30750
30751 fi
30752 if test "$py_cv_module__gdbm" = yes; then
30753 MODULE__GDBM_TRUE=
30754 MODULE__GDBM_FALSE='#'
30755 else
30756 MODULE__GDBM_TRUE='#'
30757 MODULE__GDBM_FALSE=
30758 fi
30759
30760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__gdbm" >&5
30761 printf "%s\n" "$py_cv_module__gdbm" >&6; }
30762
30763
30764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module readline" >&5
30765 printf %s "checking for stdlib extension module readline... " >&6; }
30766 if test "$py_cv_module_readline" != "n/a"
30767 then :
30768
30769 if true
30770 then :
30771 if test "$with_readline" != "no"
30772 then :
30773 py_cv_module_readline=yes
30774 else $as_nop
30775 py_cv_module_readline=missing
30776 fi
30777 else $as_nop
30778 py_cv_module_readline=disabled
30779 fi
30780
30781 fi
30782 as_fn_append MODULE_BLOCK "MODULE_READLINE_STATE=$py_cv_module_readline$as_nl"
30783 if test "x$py_cv_module_readline" = xyes
30784 then :
30785
30786 as_fn_append MODULE_BLOCK "MODULE_READLINE_CFLAGS=$READLINE_CFLAGS$as_nl"
30787 as_fn_append MODULE_BLOCK "MODULE_READLINE_LDFLAGS=$READLINE_LIBS$as_nl"
30788
30789 fi
30790 if test "$py_cv_module_readline" = yes; then
30791 MODULE_READLINE_TRUE=
30792 MODULE_READLINE_FALSE='#'
30793 else
30794 MODULE_READLINE_TRUE='#'
30795 MODULE_READLINE_FALSE=
30796 fi
30797
30798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_readline" >&5
30799 printf "%s\n" "$py_cv_module_readline" >&6; }
30800
30801
30802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sqlite3" >&5
30803 printf %s "checking for stdlib extension module _sqlite3... " >&6; }
30804 if test "$py_cv_module__sqlite3" != "n/a"
30805 then :
30806
30807 if test "$have_sqlite3" = "yes"
30808 then :
30809 if test "$have_supported_sqlite3" = "yes"
30810 then :
30811 py_cv_module__sqlite3=yes
30812 else $as_nop
30813 py_cv_module__sqlite3=missing
30814 fi
30815 else $as_nop
30816 py_cv_module__sqlite3=disabled
30817 fi
30818
30819 fi
30820 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_STATE=$py_cv_module__sqlite3$as_nl"
30821 if test "x$py_cv_module__sqlite3" = xyes
30822 then :
30823
30824 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_CFLAGS=$LIBSQLITE3_CFLAGS$as_nl"
30825 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_LDFLAGS=$LIBSQLITE3_LIBS$as_nl"
30826
30827 fi
30828 if test "$py_cv_module__sqlite3" = yes; then
30829 MODULE__SQLITE3_TRUE=
30830 MODULE__SQLITE3_FALSE='#'
30831 else
30832 MODULE__SQLITE3_TRUE='#'
30833 MODULE__SQLITE3_FALSE=
30834 fi
30835
30836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sqlite3" >&5
30837 printf "%s\n" "$py_cv_module__sqlite3" >&6; }
30838
30839
30840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _tkinter" >&5
30841 printf %s "checking for stdlib extension module _tkinter... " >&6; }
30842 if test "$py_cv_module__tkinter" != "n/a"
30843 then :
30844
30845 if true
30846 then :
30847 if test "$have_tcltk" = "yes"
30848 then :
30849 py_cv_module__tkinter=yes
30850 else $as_nop
30851 py_cv_module__tkinter=missing
30852 fi
30853 else $as_nop
30854 py_cv_module__tkinter=disabled
30855 fi
30856
30857 fi
30858 as_fn_append MODULE_BLOCK "MODULE__TKINTER_STATE=$py_cv_module__tkinter$as_nl"
30859 if test "x$py_cv_module__tkinter" = xyes
30860 then :
30861
30862 as_fn_append MODULE_BLOCK "MODULE__TKINTER_CFLAGS=$TCLTK_CFLAGS$as_nl"
30863 as_fn_append MODULE_BLOCK "MODULE__TKINTER_LDFLAGS=$TCLTK_LIBS$as_nl"
30864
30865 fi
30866 if test "$py_cv_module__tkinter" = yes; then
30867 MODULE__TKINTER_TRUE=
30868 MODULE__TKINTER_FALSE='#'
30869 else
30870 MODULE__TKINTER_TRUE='#'
30871 MODULE__TKINTER_FALSE=
30872 fi
30873
30874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__tkinter" >&5
30875 printf "%s\n" "$py_cv_module__tkinter" >&6; }
30876
30877
30878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _uuid" >&5
30879 printf %s "checking for stdlib extension module _uuid... " >&6; }
30880 if test "$py_cv_module__uuid" != "n/a"
30881 then :
30882
30883 if true
30884 then :
30885 if test "$have_uuid" = "yes"
30886 then :
30887 py_cv_module__uuid=yes
30888 else $as_nop
30889 py_cv_module__uuid=missing
30890 fi
30891 else $as_nop
30892 py_cv_module__uuid=disabled
30893 fi
30894
30895 fi
30896 as_fn_append MODULE_BLOCK "MODULE__UUID_STATE=$py_cv_module__uuid$as_nl"
30897 if test "x$py_cv_module__uuid" = xyes
30898 then :
30899
30900 as_fn_append MODULE_BLOCK "MODULE__UUID_CFLAGS=$LIBUUID_CFLAGS$as_nl"
30901 as_fn_append MODULE_BLOCK "MODULE__UUID_LDFLAGS=$LIBUUID_LIBS$as_nl"
30902
30903 fi
30904 if test "$py_cv_module__uuid" = yes; then
30905 MODULE__UUID_TRUE=
30906 MODULE__UUID_FALSE='#'
30907 else
30908 MODULE__UUID_TRUE='#'
30909 MODULE__UUID_FALSE=
30910 fi
30911
30912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__uuid" >&5
30913 printf "%s\n" "$py_cv_module__uuid" >&6; }
30914
30915
30916
30917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module zlib" >&5
30918 printf %s "checking for stdlib extension module zlib... " >&6; }
30919 if test "$py_cv_module_zlib" != "n/a"
30920 then :
30921
30922 if true
30923 then :
30924 if test "$have_zlib" = yes
30925 then :
30926 py_cv_module_zlib=yes
30927 else $as_nop
30928 py_cv_module_zlib=missing
30929 fi
30930 else $as_nop
30931 py_cv_module_zlib=disabled
30932 fi
30933
30934 fi
30935 as_fn_append MODULE_BLOCK "MODULE_ZLIB_STATE=$py_cv_module_zlib$as_nl"
30936 if test "x$py_cv_module_zlib" = xyes
30937 then :
30938
30939 as_fn_append MODULE_BLOCK "MODULE_ZLIB_CFLAGS=$ZLIB_CFLAGS$as_nl"
30940 as_fn_append MODULE_BLOCK "MODULE_ZLIB_LDFLAGS=$ZLIB_LIBS$as_nl"
30941
30942 fi
30943 if test "$py_cv_module_zlib" = yes; then
30944 MODULE_ZLIB_TRUE=
30945 MODULE_ZLIB_FALSE='#'
30946 else
30947 MODULE_ZLIB_TRUE='#'
30948 MODULE_ZLIB_FALSE=
30949 fi
30950
30951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_zlib" >&5
30952 printf "%s\n" "$py_cv_module_zlib" >&6; }
30953
30954
30955 if test "$py_cv_module_binascii" != "n/a"
30956 then :
30957 py_cv_module_binascii=yes
30958 fi
30959 if test "$py_cv_module_binascii" = yes; then
30960 MODULE_BINASCII_TRUE=
30961 MODULE_BINASCII_FALSE='#'
30962 else
30963 MODULE_BINASCII_TRUE='#'
30964 MODULE_BINASCII_FALSE=
30965 fi
30966
30967 as_fn_append MODULE_BLOCK "MODULE_BINASCII_STATE=$py_cv_module_binascii$as_nl"
30968 if test "x$py_cv_module_binascii" = xyes
30969 then :
30970
30971 as_fn_append MODULE_BLOCK "MODULE_BINASCII_CFLAGS=$BINASCII_CFLAGS$as_nl"
30972 as_fn_append MODULE_BLOCK "MODULE_BINASCII_LDFLAGS=$BINASCII_LIBS$as_nl"
30973
30974 fi
30975
30976
30977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _bz2" >&5
30978 printf %s "checking for stdlib extension module _bz2... " >&6; }
30979 if test "$py_cv_module__bz2" != "n/a"
30980 then :
30981
30982 if true
30983 then :
30984 if test "$have_bzip2" = yes
30985 then :
30986 py_cv_module__bz2=yes
30987 else $as_nop
30988 py_cv_module__bz2=missing
30989 fi
30990 else $as_nop
30991 py_cv_module__bz2=disabled
30992 fi
30993
30994 fi
30995 as_fn_append MODULE_BLOCK "MODULE__BZ2_STATE=$py_cv_module__bz2$as_nl"
30996 if test "x$py_cv_module__bz2" = xyes
30997 then :
30998
30999 as_fn_append MODULE_BLOCK "MODULE__BZ2_CFLAGS=$BZIP2_CFLAGS$as_nl"
31000 as_fn_append MODULE_BLOCK "MODULE__BZ2_LDFLAGS=$BZIP2_LIBS$as_nl"
31001
31002 fi
31003 if test "$py_cv_module__bz2" = yes; then
31004 MODULE__BZ2_TRUE=
31005 MODULE__BZ2_FALSE='#'
31006 else
31007 MODULE__BZ2_TRUE='#'
31008 MODULE__BZ2_FALSE=
31009 fi
31010
31011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__bz2" >&5
31012 printf "%s\n" "$py_cv_module__bz2" >&6; }
31013
31014
31015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _lzma" >&5
31016 printf %s "checking for stdlib extension module _lzma... " >&6; }
31017 if test "$py_cv_module__lzma" != "n/a"
31018 then :
31019
31020 if true
31021 then :
31022 if test "$have_liblzma" = yes
31023 then :
31024 py_cv_module__lzma=yes
31025 else $as_nop
31026 py_cv_module__lzma=missing
31027 fi
31028 else $as_nop
31029 py_cv_module__lzma=disabled
31030 fi
31031
31032 fi
31033 as_fn_append MODULE_BLOCK "MODULE__LZMA_STATE=$py_cv_module__lzma$as_nl"
31034 if test "x$py_cv_module__lzma" = xyes
31035 then :
31036
31037 as_fn_append MODULE_BLOCK "MODULE__LZMA_CFLAGS=$LIBLZMA_CFLAGS$as_nl"
31038 as_fn_append MODULE_BLOCK "MODULE__LZMA_LDFLAGS=$LIBLZMA_LIBS$as_nl"
31039
31040 fi
31041 if test "$py_cv_module__lzma" = yes; then
31042 MODULE__LZMA_TRUE=
31043 MODULE__LZMA_FALSE='#'
31044 else
31045 MODULE__LZMA_TRUE='#'
31046 MODULE__LZMA_FALSE=
31047 fi
31048
31049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__lzma" >&5
31050 printf "%s\n" "$py_cv_module__lzma" >&6; }
31051
31052
31053
31054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ssl" >&5
31055 printf %s "checking for stdlib extension module _ssl... " >&6; }
31056 if test "$py_cv_module__ssl" != "n/a"
31057 then :
31058
31059 if true
31060 then :
31061 if test "$ac_cv_working_openssl_ssl" = yes
31062 then :
31063 py_cv_module__ssl=yes
31064 else $as_nop
31065 py_cv_module__ssl=missing
31066 fi
31067 else $as_nop
31068 py_cv_module__ssl=disabled
31069 fi
31070
31071 fi
31072 as_fn_append MODULE_BLOCK "MODULE__SSL_STATE=$py_cv_module__ssl$as_nl"
31073 if test "x$py_cv_module__ssl" = xyes
31074 then :
31075
31076 as_fn_append MODULE_BLOCK "MODULE__SSL_CFLAGS=$OPENSSL_INCLUDES$as_nl"
31077 as_fn_append MODULE_BLOCK "MODULE__SSL_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $OPENSSL_LIBS$as_nl"
31078
31079 fi
31080 if test "$py_cv_module__ssl" = yes; then
31081 MODULE__SSL_TRUE=
31082 MODULE__SSL_FALSE='#'
31083 else
31084 MODULE__SSL_TRUE='#'
31085 MODULE__SSL_FALSE=
31086 fi
31087
31088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ssl" >&5
31089 printf "%s\n" "$py_cv_module__ssl" >&6; }
31090
31091
31092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hashlib" >&5
31093 printf %s "checking for stdlib extension module _hashlib... " >&6; }
31094 if test "$py_cv_module__hashlib" != "n/a"
31095 then :
31096
31097 if true
31098 then :
31099 if test "$ac_cv_working_openssl_hashlib" = yes
31100 then :
31101 py_cv_module__hashlib=yes
31102 else $as_nop
31103 py_cv_module__hashlib=missing
31104 fi
31105 else $as_nop
31106 py_cv_module__hashlib=disabled
31107 fi
31108
31109 fi
31110 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_STATE=$py_cv_module__hashlib$as_nl"
31111 if test "x$py_cv_module__hashlib" = xyes
31112 then :
31113
31114 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_CFLAGS=$OPENSSL_INCLUDES$as_nl"
31115 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS$as_nl"
31116
31117 fi
31118 if test "$py_cv_module__hashlib" = yes; then
31119 MODULE__HASHLIB_TRUE=
31120 MODULE__HASHLIB_FALSE='#'
31121 else
31122 MODULE__HASHLIB_TRUE='#'
31123 MODULE__HASHLIB_FALSE=
31124 fi
31125
31126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hashlib" >&5
31127 printf "%s\n" "$py_cv_module__hashlib" >&6; }
31128
31129
31130
31131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testcapi" >&5
31132 printf %s "checking for stdlib extension module _testcapi... " >&6; }
31133 if test "$py_cv_module__testcapi" != "n/a"
31134 then :
31135
31136 if test "$TEST_MODULES" = yes
31137 then :
31138 if true
31139 then :
31140 py_cv_module__testcapi=yes
31141 else $as_nop
31142 py_cv_module__testcapi=missing
31143 fi
31144 else $as_nop
31145 py_cv_module__testcapi=disabled
31146 fi
31147
31148 fi
31149 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_STATE=$py_cv_module__testcapi$as_nl"
31150 if test "x$py_cv_module__testcapi" = xyes
31151 then :
31152
31153
31154 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_LDFLAGS=$LIBATOMIC$as_nl"
31155
31156 fi
31157 if test "$py_cv_module__testcapi" = yes; then
31158 MODULE__TESTCAPI_TRUE=
31159 MODULE__TESTCAPI_FALSE='#'
31160 else
31161 MODULE__TESTCAPI_TRUE='#'
31162 MODULE__TESTCAPI_FALSE=
31163 fi
31164
31165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testcapi" >&5
31166 printf "%s\n" "$py_cv_module__testcapi" >&6; }
31167
31168
31169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic" >&5
31170 printf %s "checking for stdlib extension module _testclinic... " >&6; }
31171 if test "$py_cv_module__testclinic" != "n/a"
31172 then :
31173
31174 if test "$TEST_MODULES" = yes
31175 then :
31176 if true
31177 then :
31178 py_cv_module__testclinic=yes
31179 else $as_nop
31180 py_cv_module__testclinic=missing
31181 fi
31182 else $as_nop
31183 py_cv_module__testclinic=disabled
31184 fi
31185
31186 fi
31187 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_STATE=$py_cv_module__testclinic$as_nl"
31188 if test "x$py_cv_module__testclinic" = xyes
31189 then :
31190
31191
31192
31193
31194 fi
31195 if test "$py_cv_module__testclinic" = yes; then
31196 MODULE__TESTCLINIC_TRUE=
31197 MODULE__TESTCLINIC_FALSE='#'
31198 else
31199 MODULE__TESTCLINIC_TRUE='#'
31200 MODULE__TESTCLINIC_FALSE=
31201 fi
31202
31203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic" >&5
31204 printf "%s\n" "$py_cv_module__testclinic" >&6; }
31205
31206
31207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic_limited" >&5
31208 printf %s "checking for stdlib extension module _testclinic_limited... " >&6; }
31209 if test "$py_cv_module__testclinic_limited" != "n/a"
31210 then :
31211
31212 if test "$TEST_MODULES" = yes
31213 then :
31214 if true
31215 then :
31216 py_cv_module__testclinic_limited=yes
31217 else $as_nop
31218 py_cv_module__testclinic_limited=missing
31219 fi
31220 else $as_nop
31221 py_cv_module__testclinic_limited=disabled
31222 fi
31223
31224 fi
31225 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_LIMITED_STATE=$py_cv_module__testclinic_limited$as_nl"
31226 if test "x$py_cv_module__testclinic_limited" = xyes
31227 then :
31228
31229
31230
31231
31232 fi
31233 if test "$py_cv_module__testclinic_limited" = yes; then
31234 MODULE__TESTCLINIC_LIMITED_TRUE=
31235 MODULE__TESTCLINIC_LIMITED_FALSE='#'
31236 else
31237 MODULE__TESTCLINIC_LIMITED_TRUE='#'
31238 MODULE__TESTCLINIC_LIMITED_FALSE=
31239 fi
31240
31241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic_limited" >&5
31242 printf "%s\n" "$py_cv_module__testclinic_limited" >&6; }
31243
31244
31245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testlimitedcapi" >&5
31246 printf %s "checking for stdlib extension module _testlimitedcapi... " >&6; }
31247 if test "$py_cv_module__testlimitedcapi" != "n/a"
31248 then :
31249
31250 if test "$TEST_MODULES" = yes
31251 then :
31252 if true
31253 then :
31254 py_cv_module__testlimitedcapi=yes
31255 else $as_nop
31256 py_cv_module__testlimitedcapi=missing
31257 fi
31258 else $as_nop
31259 py_cv_module__testlimitedcapi=disabled
31260 fi
31261
31262 fi
31263 as_fn_append MODULE_BLOCK "MODULE__TESTLIMITEDCAPI_STATE=$py_cv_module__testlimitedcapi$as_nl"
31264 if test "x$py_cv_module__testlimitedcapi" = xyes
31265 then :
31266
31267
31268
31269
31270 fi
31271 if test "$py_cv_module__testlimitedcapi" = yes; then
31272 MODULE__TESTLIMITEDCAPI_TRUE=
31273 MODULE__TESTLIMITEDCAPI_FALSE='#'
31274 else
31275 MODULE__TESTLIMITEDCAPI_TRUE='#'
31276 MODULE__TESTLIMITEDCAPI_FALSE=
31277 fi
31278
31279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testlimitedcapi" >&5
31280 printf "%s\n" "$py_cv_module__testlimitedcapi" >&6; }
31281
31282
31283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5
31284 printf %s "checking for stdlib extension module _testinternalcapi... " >&6; }
31285 if test "$py_cv_module__testinternalcapi" != "n/a"
31286 then :
31287
31288 if test "$TEST_MODULES" = yes
31289 then :
31290 if true
31291 then :
31292 py_cv_module__testinternalcapi=yes
31293 else $as_nop
31294 py_cv_module__testinternalcapi=missing
31295 fi
31296 else $as_nop
31297 py_cv_module__testinternalcapi=disabled
31298 fi
31299
31300 fi
31301 as_fn_append MODULE_BLOCK "MODULE__TESTINTERNALCAPI_STATE=$py_cv_module__testinternalcapi$as_nl"
31302 if test "x$py_cv_module__testinternalcapi" = xyes
31303 then :
31304
31305
31306
31307
31308 fi
31309 if test "$py_cv_module__testinternalcapi" = yes; then
31310 MODULE__TESTINTERNALCAPI_TRUE=
31311 MODULE__TESTINTERNALCAPI_FALSE='#'
31312 else
31313 MODULE__TESTINTERNALCAPI_TRUE='#'
31314 MODULE__TESTINTERNALCAPI_FALSE=
31315 fi
31316
31317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testinternalcapi" >&5
31318 printf "%s\n" "$py_cv_module__testinternalcapi" >&6; }
31319
31320
31321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testbuffer" >&5
31322 printf %s "checking for stdlib extension module _testbuffer... " >&6; }
31323 if test "$py_cv_module__testbuffer" != "n/a"
31324 then :
31325
31326 if test "$TEST_MODULES" = yes
31327 then :
31328 if true
31329 then :
31330 py_cv_module__testbuffer=yes
31331 else $as_nop
31332 py_cv_module__testbuffer=missing
31333 fi
31334 else $as_nop
31335 py_cv_module__testbuffer=disabled
31336 fi
31337
31338 fi
31339 as_fn_append MODULE_BLOCK "MODULE__TESTBUFFER_STATE=$py_cv_module__testbuffer$as_nl"
31340 if test "x$py_cv_module__testbuffer" = xyes
31341 then :
31342
31343
31344
31345
31346 fi
31347 if test "$py_cv_module__testbuffer" = yes; then
31348 MODULE__TESTBUFFER_TRUE=
31349 MODULE__TESTBUFFER_FALSE='#'
31350 else
31351 MODULE__TESTBUFFER_TRUE='#'
31352 MODULE__TESTBUFFER_FALSE=
31353 fi
31354
31355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testbuffer" >&5
31356 printf "%s\n" "$py_cv_module__testbuffer" >&6; }
31357
31358
31359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testimportmultiple" >&5
31360 printf %s "checking for stdlib extension module _testimportmultiple... " >&6; }
31361 if test "$py_cv_module__testimportmultiple" != "n/a"
31362 then :
31363
31364 if test "$TEST_MODULES" = yes
31365 then :
31366 if test "$ac_cv_func_dlopen" = yes
31367 then :
31368 py_cv_module__testimportmultiple=yes
31369 else $as_nop
31370 py_cv_module__testimportmultiple=missing
31371 fi
31372 else $as_nop
31373 py_cv_module__testimportmultiple=disabled
31374 fi
31375
31376 fi
31377 as_fn_append MODULE_BLOCK "MODULE__TESTIMPORTMULTIPLE_STATE=$py_cv_module__testimportmultiple$as_nl"
31378 if test "x$py_cv_module__testimportmultiple" = xyes
31379 then :
31380
31381
31382
31383
31384 fi
31385 if test "$py_cv_module__testimportmultiple" = yes; then
31386 MODULE__TESTIMPORTMULTIPLE_TRUE=
31387 MODULE__TESTIMPORTMULTIPLE_FALSE='#'
31388 else
31389 MODULE__TESTIMPORTMULTIPLE_TRUE='#'
31390 MODULE__TESTIMPORTMULTIPLE_FALSE=
31391 fi
31392
31393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testimportmultiple" >&5
31394 printf "%s\n" "$py_cv_module__testimportmultiple" >&6; }
31395
31396
31397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testmultiphase" >&5
31398 printf %s "checking for stdlib extension module _testmultiphase... " >&6; }
31399 if test "$py_cv_module__testmultiphase" != "n/a"
31400 then :
31401
31402 if test "$TEST_MODULES" = yes
31403 then :
31404 if test "$ac_cv_func_dlopen" = yes
31405 then :
31406 py_cv_module__testmultiphase=yes
31407 else $as_nop
31408 py_cv_module__testmultiphase=missing
31409 fi
31410 else $as_nop
31411 py_cv_module__testmultiphase=disabled
31412 fi
31413
31414 fi
31415 as_fn_append MODULE_BLOCK "MODULE__TESTMULTIPHASE_STATE=$py_cv_module__testmultiphase$as_nl"
31416 if test "x$py_cv_module__testmultiphase" = xyes
31417 then :
31418
31419
31420
31421
31422 fi
31423 if test "$py_cv_module__testmultiphase" = yes; then
31424 MODULE__TESTMULTIPHASE_TRUE=
31425 MODULE__TESTMULTIPHASE_FALSE='#'
31426 else
31427 MODULE__TESTMULTIPHASE_TRUE='#'
31428 MODULE__TESTMULTIPHASE_FALSE=
31429 fi
31430
31431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testmultiphase" >&5
31432 printf "%s\n" "$py_cv_module__testmultiphase" >&6; }
31433
31434
31435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testsinglephase" >&5
31436 printf %s "checking for stdlib extension module _testsinglephase... " >&6; }
31437 if test "$py_cv_module__testsinglephase" != "n/a"
31438 then :
31439
31440 if test "$TEST_MODULES" = yes
31441 then :
31442 if test "$ac_cv_func_dlopen" = yes
31443 then :
31444 py_cv_module__testsinglephase=yes
31445 else $as_nop
31446 py_cv_module__testsinglephase=missing
31447 fi
31448 else $as_nop
31449 py_cv_module__testsinglephase=disabled
31450 fi
31451
31452 fi
31453 as_fn_append MODULE_BLOCK "MODULE__TESTSINGLEPHASE_STATE=$py_cv_module__testsinglephase$as_nl"
31454 if test "x$py_cv_module__testsinglephase" = xyes
31455 then :
31456
31457
31458
31459
31460 fi
31461 if test "$py_cv_module__testsinglephase" = yes; then
31462 MODULE__TESTSINGLEPHASE_TRUE=
31463 MODULE__TESTSINGLEPHASE_FALSE='#'
31464 else
31465 MODULE__TESTSINGLEPHASE_TRUE='#'
31466 MODULE__TESTSINGLEPHASE_FALSE=
31467 fi
31468
31469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testsinglephase" >&5
31470 printf "%s\n" "$py_cv_module__testsinglephase" >&6; }
31471
31472
31473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testexternalinspection" >&5
31474 printf %s "checking for stdlib extension module _testexternalinspection... " >&6; }
31475 if test "$py_cv_module__testexternalinspection" != "n/a"
31476 then :
31477
31478 if test "$TEST_MODULES" = yes
31479 then :
31480 if true
31481 then :
31482 py_cv_module__testexternalinspection=yes
31483 else $as_nop
31484 py_cv_module__testexternalinspection=missing
31485 fi
31486 else $as_nop
31487 py_cv_module__testexternalinspection=disabled
31488 fi
31489
31490 fi
31491 as_fn_append MODULE_BLOCK "MODULE__TESTEXTERNALINSPECTION_STATE=$py_cv_module__testexternalinspection$as_nl"
31492 if test "x$py_cv_module__testexternalinspection" = xyes
31493 then :
31494
31495
31496
31497
31498 fi
31499 if test "$py_cv_module__testexternalinspection" = yes; then
31500 MODULE__TESTEXTERNALINSPECTION_TRUE=
31501 MODULE__TESTEXTERNALINSPECTION_FALSE='#'
31502 else
31503 MODULE__TESTEXTERNALINSPECTION_TRUE='#'
31504 MODULE__TESTEXTERNALINSPECTION_FALSE=
31505 fi
31506
31507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testexternalinspection" >&5
31508 printf "%s\n" "$py_cv_module__testexternalinspection" >&6; }
31509
31510
31511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxsubtype" >&5
31512 printf %s "checking for stdlib extension module xxsubtype... " >&6; }
31513 if test "$py_cv_module_xxsubtype" != "n/a"
31514 then :
31515
31516 if test "$TEST_MODULES" = yes
31517 then :
31518 if true
31519 then :
31520 py_cv_module_xxsubtype=yes
31521 else $as_nop
31522 py_cv_module_xxsubtype=missing
31523 fi
31524 else $as_nop
31525 py_cv_module_xxsubtype=disabled
31526 fi
31527
31528 fi
31529 as_fn_append MODULE_BLOCK "MODULE_XXSUBTYPE_STATE=$py_cv_module_xxsubtype$as_nl"
31530 if test "x$py_cv_module_xxsubtype" = xyes
31531 then :
31532
31533
31534
31535
31536 fi
31537 if test "$py_cv_module_xxsubtype" = yes; then
31538 MODULE_XXSUBTYPE_TRUE=
31539 MODULE_XXSUBTYPE_FALSE='#'
31540 else
31541 MODULE_XXSUBTYPE_TRUE='#'
31542 MODULE_XXSUBTYPE_FALSE=
31543 fi
31544
31545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxsubtype" >&5
31546 printf "%s\n" "$py_cv_module_xxsubtype" >&6; }
31547
31548
31549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _xxtestfuzz" >&5
31550 printf %s "checking for stdlib extension module _xxtestfuzz... " >&6; }
31551 if test "$py_cv_module__xxtestfuzz" != "n/a"
31552 then :
31553
31554 if test "$TEST_MODULES" = yes
31555 then :
31556 if true
31557 then :
31558 py_cv_module__xxtestfuzz=yes
31559 else $as_nop
31560 py_cv_module__xxtestfuzz=missing
31561 fi
31562 else $as_nop
31563 py_cv_module__xxtestfuzz=disabled
31564 fi
31565
31566 fi
31567 as_fn_append MODULE_BLOCK "MODULE__XXTESTFUZZ_STATE=$py_cv_module__xxtestfuzz$as_nl"
31568 if test "x$py_cv_module__xxtestfuzz" = xyes
31569 then :
31570
31571
31572
31573
31574 fi
31575 if test "$py_cv_module__xxtestfuzz" = yes; then
31576 MODULE__XXTESTFUZZ_TRUE=
31577 MODULE__XXTESTFUZZ_FALSE='#'
31578 else
31579 MODULE__XXTESTFUZZ_TRUE='#'
31580 MODULE__XXTESTFUZZ_FALSE=
31581 fi
31582
31583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__xxtestfuzz" >&5
31584 printf "%s\n" "$py_cv_module__xxtestfuzz" >&6; }
31585
31586
31587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes_test" >&5
31588 printf %s "checking for stdlib extension module _ctypes_test... " >&6; }
31589 if test "$py_cv_module__ctypes_test" != "n/a"
31590 then :
31591
31592 if test "$TEST_MODULES" = yes
31593 then :
31594 if test "$have_libffi" = yes -a "$ac_cv_func_dlopen" = yes
31595 then :
31596 py_cv_module__ctypes_test=yes
31597 else $as_nop
31598 py_cv_module__ctypes_test=missing
31599 fi
31600 else $as_nop
31601 py_cv_module__ctypes_test=disabled
31602 fi
31603
31604 fi
31605 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_STATE=$py_cv_module__ctypes_test$as_nl"
31606 if test "x$py_cv_module__ctypes_test" = xyes
31607 then :
31608
31609
31610 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_LDFLAGS=$LIBM$as_nl"
31611
31612 fi
31613 if test "$py_cv_module__ctypes_test" = yes; then
31614 MODULE__CTYPES_TEST_TRUE=
31615 MODULE__CTYPES_TEST_FALSE='#'
31616 else
31617 MODULE__CTYPES_TEST_TRUE='#'
31618 MODULE__CTYPES_TEST_FALSE=
31619 fi
31620
31621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes_test" >&5
31622 printf "%s\n" "$py_cv_module__ctypes_test" >&6; }
31623
31624
31625
31626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited" >&5
31627 printf %s "checking for stdlib extension module xxlimited... " >&6; }
31628 if test "$py_cv_module_xxlimited" != "n/a"
31629 then :
31630
31631 if test "$TEST_MODULES" = yes
31632 then :
31633 if test "$ac_cv_func_dlopen" = yes
31634 then :
31635 py_cv_module_xxlimited=yes
31636 else $as_nop
31637 py_cv_module_xxlimited=missing
31638 fi
31639 else $as_nop
31640 py_cv_module_xxlimited=disabled
31641 fi
31642
31643 fi
31644 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_STATE=$py_cv_module_xxlimited$as_nl"
31645 if test "x$py_cv_module_xxlimited" = xyes
31646 then :
31647
31648
31649
31650
31651 fi
31652 if test "$py_cv_module_xxlimited" = yes; then
31653 MODULE_XXLIMITED_TRUE=
31654 MODULE_XXLIMITED_FALSE='#'
31655 else
31656 MODULE_XXLIMITED_TRUE='#'
31657 MODULE_XXLIMITED_FALSE=
31658 fi
31659
31660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited" >&5
31661 printf "%s\n" "$py_cv_module_xxlimited" >&6; }
31662
31663
31664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited_35" >&5
31665 printf %s "checking for stdlib extension module xxlimited_35... " >&6; }
31666 if test "$py_cv_module_xxlimited_35" != "n/a"
31667 then :
31668
31669 if test "$TEST_MODULES" = yes
31670 then :
31671 if test "$ac_cv_func_dlopen" = yes
31672 then :
31673 py_cv_module_xxlimited_35=yes
31674 else $as_nop
31675 py_cv_module_xxlimited_35=missing
31676 fi
31677 else $as_nop
31678 py_cv_module_xxlimited_35=disabled
31679 fi
31680
31681 fi
31682 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_35_STATE=$py_cv_module_xxlimited_35$as_nl"
31683 if test "x$py_cv_module_xxlimited_35" = xyes
31684 then :
31685
31686
31687
31688
31689 fi
31690 if test "$py_cv_module_xxlimited_35" = yes; then
31691 MODULE_XXLIMITED_35_TRUE=
31692 MODULE_XXLIMITED_35_FALSE='#'
31693 else
31694 MODULE_XXLIMITED_35_TRUE='#'
31695 MODULE_XXLIMITED_35_FALSE=
31696 fi
31697
31698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited_35" >&5
31699 printf "%s\n" "$py_cv_module_xxlimited_35" >&6; }
31700
31701
31702 # substitute multiline block, must come after last PY_STDLIB_MOD()
31703
31704
31705 # generate output files
31706 ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
31707
31708 ac_config_files="$ac_config_files Modules/Setup.bootstrap Modules/Setup.stdlib"
31709
31710 ac_config_files="$ac_config_files Modules/ld_so_aix"
31711
31712 # Generate files like pyconfig.h
31713 cat >confcache <<\_ACEOF
31714 # This file is a shell script that caches the results of configure
31715 # tests run on this system so they can be shared between configure
31716 # scripts and configure runs, see configure's option --config-cache.
31717 # It is not useful on other systems. If it contains results you don't
31718 # want to keep, you may remove or edit it.
31719 #
31720 # config.status only pays attention to the cache file if you give it
31721 # the --recheck option to rerun configure.
31722 #
31723 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31724 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31725 # following values.
31726
31727 _ACEOF
31728
31729 # The following way of writing the cache mishandles newlines in values,
31730 # but we know of no workaround that is simple, portable, and efficient.
31731 # So, we kill variables containing newlines.
31732 # Ultrix sh set writes to stderr and can't be redirected directly,
31733 # and sets the high bit in the cache file unless we assign to the vars.
31734 (
31735 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31736 eval ac_val=\$$ac_var
31737 case $ac_val in #(
31738 *${as_nl}*)
31739 case $ac_var in #(
31740 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31741 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31742 esac
31743 case $ac_var in #(
31744 _ | IFS | as_nl) ;; #(
31745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31746 *) { eval $ac_var=; unset $ac_var;} ;;
31747 esac ;;
31748 esac
31749 done
31750
31751 (set) 2>&1 |
31752 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31753 *${as_nl}ac_space=\ *)
31754 # `set' does not quote correctly, so add quotes: double-quote
31755 # substitution turns \\\\ into \\, and sed turns \\ into \.
31756 sed -n \
31757 "s/'/'\\\\''/g;
31758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31759 ;; #(
31760 *)
31761 # `set' quotes correctly as required by POSIX, so do not add quotes.
31762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31763 ;;
31764 esac |
31765 sort
31766 ) |
31767 sed '
31768 /^ac_cv_env_/b end
31769 t clear
31770 :clear
31771 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
31772 t end
31773 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31774 :end' >>confcache
31775 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31776 if test -w "$cache_file"; then
31777 if test "x$cache_file" != "x/dev/null"; then
31778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31779 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
31780 if test ! -f "$cache_file" || test -h "$cache_file"; then
31781 cat confcache >"$cache_file"
31782 else
31783 case $cache_file in #(
31784 */* | ?:*)
31785 mv -f confcache "$cache_file"$$ &&
31786 mv -f "$cache_file"$$ "$cache_file" ;; #(
31787 *)
31788 mv -f confcache "$cache_file" ;;
31789 esac
31790 fi
31791 fi
31792 else
31793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31794 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
31795 fi
31796 fi
31797 rm -f confcache
31798
31799 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31800 # Let make expand exec_prefix.
31801 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31802
31803 DEFS=-DHAVE_CONFIG_H
31804
31805 ac_libobjs=
31806 ac_ltlibobjs=
31807 U=
31808 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31809 # 1. Remove the extension, and $U if already installed.
31810 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31811 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
31812 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31813 # will be set to the directory where LIBOBJS objects are built.
31814 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31815 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31816 done
31817 LIBOBJS=$ac_libobjs
31818
31819 LTLIBOBJS=$ac_ltlibobjs
31820
31821
31822
31823 if test -z "${MODULE__IO_TRUE}" && test -z "${MODULE__IO_FALSE}"; then
31824 as_fn_error $? "conditional \"MODULE__IO\" was never defined.
31825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31826 fi
31827 if test -z "${MODULE_TIME_TRUE}" && test -z "${MODULE_TIME_FALSE}"; then
31828 as_fn_error $? "conditional \"MODULE_TIME\" was never defined.
31829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31830 fi
31831 if test -z "${MODULE_ARRAY_TRUE}" && test -z "${MODULE_ARRAY_FALSE}"; then
31832 as_fn_error $? "conditional \"MODULE_ARRAY\" was never defined.
31833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31834 fi
31835 if test -z "${MODULE__ASYNCIO_TRUE}" && test -z "${MODULE__ASYNCIO_FALSE}"; then
31836 as_fn_error $? "conditional \"MODULE__ASYNCIO\" was never defined.
31837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31838 fi
31839 if test -z "${MODULE__BISECT_TRUE}" && test -z "${MODULE__BISECT_FALSE}"; then
31840 as_fn_error $? "conditional \"MODULE__BISECT\" was never defined.
31841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31842 fi
31843 if test -z "${MODULE__CONTEXTVARS_TRUE}" && test -z "${MODULE__CONTEXTVARS_FALSE}"; then
31844 as_fn_error $? "conditional \"MODULE__CONTEXTVARS\" was never defined.
31845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31846 fi
31847 if test -z "${MODULE__CSV_TRUE}" && test -z "${MODULE__CSV_FALSE}"; then
31848 as_fn_error $? "conditional \"MODULE__CSV\" was never defined.
31849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31850 fi
31851 if test -z "${MODULE__HEAPQ_TRUE}" && test -z "${MODULE__HEAPQ_FALSE}"; then
31852 as_fn_error $? "conditional \"MODULE__HEAPQ\" was never defined.
31853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31854 fi
31855 if test -z "${MODULE__JSON_TRUE}" && test -z "${MODULE__JSON_FALSE}"; then
31856 as_fn_error $? "conditional \"MODULE__JSON\" was never defined.
31857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31858 fi
31859 if test -z "${MODULE__LSPROF_TRUE}" && test -z "${MODULE__LSPROF_FALSE}"; then
31860 as_fn_error $? "conditional \"MODULE__LSPROF\" was never defined.
31861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31862 fi
31863 if test -z "${MODULE__OPCODE_TRUE}" && test -z "${MODULE__OPCODE_FALSE}"; then
31864 as_fn_error $? "conditional \"MODULE__OPCODE\" was never defined.
31865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31866 fi
31867 if test -z "${MODULE__PICKLE_TRUE}" && test -z "${MODULE__PICKLE_FALSE}"; then
31868 as_fn_error $? "conditional \"MODULE__PICKLE\" was never defined.
31869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31870 fi
31871 if test -z "${MODULE__POSIXSUBPROCESS_TRUE}" && test -z "${MODULE__POSIXSUBPROCESS_FALSE}"; then
31872 as_fn_error $? "conditional \"MODULE__POSIXSUBPROCESS\" was never defined.
31873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31874 fi
31875 if test -z "${MODULE__QUEUE_TRUE}" && test -z "${MODULE__QUEUE_FALSE}"; then
31876 as_fn_error $? "conditional \"MODULE__QUEUE\" was never defined.
31877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31878 fi
31879 if test -z "${MODULE__RANDOM_TRUE}" && test -z "${MODULE__RANDOM_FALSE}"; then
31880 as_fn_error $? "conditional \"MODULE__RANDOM\" was never defined.
31881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31882 fi
31883 if test -z "${MODULE_SELECT_TRUE}" && test -z "${MODULE_SELECT_FALSE}"; then
31884 as_fn_error $? "conditional \"MODULE_SELECT\" was never defined.
31885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31886 fi
31887 if test -z "${MODULE__STRUCT_TRUE}" && test -z "${MODULE__STRUCT_FALSE}"; then
31888 as_fn_error $? "conditional \"MODULE__STRUCT\" was never defined.
31889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31890 fi
31891 if test -z "${MODULE__TYPING_TRUE}" && test -z "${MODULE__TYPING_FALSE}"; then
31892 as_fn_error $? "conditional \"MODULE__TYPING\" was never defined.
31893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31894 fi
31895 if test -z "${MODULE__INTERPRETERS_TRUE}" && test -z "${MODULE__INTERPRETERS_FALSE}"; then
31896 as_fn_error $? "conditional \"MODULE__INTERPRETERS\" was never defined.
31897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31898 fi
31899 if test -z "${MODULE__INTERPCHANNELS_TRUE}" && test -z "${MODULE__INTERPCHANNELS_FALSE}"; then
31900 as_fn_error $? "conditional \"MODULE__INTERPCHANNELS\" was never defined.
31901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31902 fi
31903 if test -z "${MODULE__INTERPQUEUES_TRUE}" && test -z "${MODULE__INTERPQUEUES_FALSE}"; then
31904 as_fn_error $? "conditional \"MODULE__INTERPQUEUES\" was never defined.
31905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31906 fi
31907 if test -z "${MODULE__ZONEINFO_TRUE}" && test -z "${MODULE__ZONEINFO_FALSE}"; then
31908 as_fn_error $? "conditional \"MODULE__ZONEINFO\" was never defined.
31909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31910 fi
31911 if test -z "${MODULE__MULTIPROCESSING_TRUE}" && test -z "${MODULE__MULTIPROCESSING_FALSE}"; then
31912 as_fn_error $? "conditional \"MODULE__MULTIPROCESSING\" was never defined.
31913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31914 fi
31915 if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then
31916 as_fn_error $? "conditional \"MODULE__POSIXSHMEM\" was never defined.
31917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31918 fi
31919 if test -z "${MODULE__STATISTICS_TRUE}" && test -z "${MODULE__STATISTICS_FALSE}"; then
31920 as_fn_error $? "conditional \"MODULE__STATISTICS\" was never defined.
31921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31922 fi
31923 if test -z "${MODULE_CMATH_TRUE}" && test -z "${MODULE_CMATH_FALSE}"; then
31924 as_fn_error $? "conditional \"MODULE_CMATH\" was never defined.
31925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31926 fi
31927 if test -z "${MODULE_MATH_TRUE}" && test -z "${MODULE_MATH_FALSE}"; then
31928 as_fn_error $? "conditional \"MODULE_MATH\" was never defined.
31929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31930 fi
31931 if test -z "${MODULE__DATETIME_TRUE}" && test -z "${MODULE__DATETIME_FALSE}"; then
31932 as_fn_error $? "conditional \"MODULE__DATETIME\" was never defined.
31933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31934 fi
31935 if test -z "${MODULE_FCNTL_TRUE}" && test -z "${MODULE_FCNTL_FALSE}"; then
31936 as_fn_error $? "conditional \"MODULE_FCNTL\" was never defined.
31937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31938 fi
31939 if test -z "${MODULE_MMAP_TRUE}" && test -z "${MODULE_MMAP_FALSE}"; then
31940 as_fn_error $? "conditional \"MODULE_MMAP\" was never defined.
31941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31942 fi
31943 if test -z "${MODULE__SOCKET_TRUE}" && test -z "${MODULE__SOCKET_FALSE}"; then
31944 as_fn_error $? "conditional \"MODULE__SOCKET\" was never defined.
31945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31946 fi
31947 if test -z "${MODULE_GRP_TRUE}" && test -z "${MODULE_GRP_FALSE}"; then
31948 as_fn_error $? "conditional \"MODULE_GRP\" was never defined.
31949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31950 fi
31951 if test -z "${MODULE_PWD_TRUE}" && test -z "${MODULE_PWD_FALSE}"; then
31952 as_fn_error $? "conditional \"MODULE_PWD\" was never defined.
31953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31954 fi
31955 if test -z "${MODULE_RESOURCE_TRUE}" && test -z "${MODULE_RESOURCE_FALSE}"; then
31956 as_fn_error $? "conditional \"MODULE_RESOURCE\" was never defined.
31957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31958 fi
31959 if test -z "${MODULE__SCPROXY_TRUE}" && test -z "${MODULE__SCPROXY_FALSE}"; then
31960 as_fn_error $? "conditional \"MODULE__SCPROXY\" was never defined.
31961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31962 fi
31963 if test -z "${MODULE_SYSLOG_TRUE}" && test -z "${MODULE_SYSLOG_FALSE}"; then
31964 as_fn_error $? "conditional \"MODULE_SYSLOG\" was never defined.
31965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31966 fi
31967 if test -z "${MODULE_TERMIOS_TRUE}" && test -z "${MODULE_TERMIOS_FALSE}"; then
31968 as_fn_error $? "conditional \"MODULE_TERMIOS\" was never defined.
31969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31970 fi
31971 if test -z "${MODULE_PYEXPAT_TRUE}" && test -z "${MODULE_PYEXPAT_FALSE}"; then
31972 as_fn_error $? "conditional \"MODULE_PYEXPAT\" was never defined.
31973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31974 fi
31975 if test -z "${MODULE__ELEMENTTREE_TRUE}" && test -z "${MODULE__ELEMENTTREE_FALSE}"; then
31976 as_fn_error $? "conditional \"MODULE__ELEMENTTREE\" was never defined.
31977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31978 fi
31979 if test -z "${MODULE__CODECS_CN_TRUE}" && test -z "${MODULE__CODECS_CN_FALSE}"; then
31980 as_fn_error $? "conditional \"MODULE__CODECS_CN\" was never defined.
31981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31982 fi
31983 if test -z "${MODULE__CODECS_HK_TRUE}" && test -z "${MODULE__CODECS_HK_FALSE}"; then
31984 as_fn_error $? "conditional \"MODULE__CODECS_HK\" was never defined.
31985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31986 fi
31987 if test -z "${MODULE__CODECS_ISO2022_TRUE}" && test -z "${MODULE__CODECS_ISO2022_FALSE}"; then
31988 as_fn_error $? "conditional \"MODULE__CODECS_ISO2022\" was never defined.
31989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31990 fi
31991 if test -z "${MODULE__CODECS_JP_TRUE}" && test -z "${MODULE__CODECS_JP_FALSE}"; then
31992 as_fn_error $? "conditional \"MODULE__CODECS_JP\" was never defined.
31993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31994 fi
31995 if test -z "${MODULE__CODECS_KR_TRUE}" && test -z "${MODULE__CODECS_KR_FALSE}"; then
31996 as_fn_error $? "conditional \"MODULE__CODECS_KR\" was never defined.
31997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31998 fi
31999 if test -z "${MODULE__CODECS_TW_TRUE}" && test -z "${MODULE__CODECS_TW_FALSE}"; then
32000 as_fn_error $? "conditional \"MODULE__CODECS_TW\" was never defined.
32001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32002 fi
32003 if test -z "${MODULE__MULTIBYTECODEC_TRUE}" && test -z "${MODULE__MULTIBYTECODEC_FALSE}"; then
32004 as_fn_error $? "conditional \"MODULE__MULTIBYTECODEC\" was never defined.
32005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32006 fi
32007 if test -z "${MODULE_UNICODEDATA_TRUE}" && test -z "${MODULE_UNICODEDATA_FALSE}"; then
32008 as_fn_error $? "conditional \"MODULE_UNICODEDATA\" was never defined.
32009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32010 fi
32011 if test -z "${MODULE__MD5_TRUE}" && test -z "${MODULE__MD5_FALSE}"; then
32012 as_fn_error $? "conditional \"MODULE__MD5\" was never defined.
32013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32014 fi
32015 if test -z "${MODULE__SHA1_TRUE}" && test -z "${MODULE__SHA1_FALSE}"; then
32016 as_fn_error $? "conditional \"MODULE__SHA1\" was never defined.
32017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32018 fi
32019 if test -z "${MODULE__SHA2_TRUE}" && test -z "${MODULE__SHA2_FALSE}"; then
32020 as_fn_error $? "conditional \"MODULE__SHA2\" was never defined.
32021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32022 fi
32023 if test -z "${MODULE__SHA3_TRUE}" && test -z "${MODULE__SHA3_FALSE}"; then
32024 as_fn_error $? "conditional \"MODULE__SHA3\" was never defined.
32025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32026 fi
32027 if test -z "${MODULE__BLAKE2_TRUE}" && test -z "${MODULE__BLAKE2_FALSE}"; then
32028 as_fn_error $? "conditional \"MODULE__BLAKE2\" was never defined.
32029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32030 fi
32031 if test -z "${MODULE__CTYPES_TRUE}" && test -z "${MODULE__CTYPES_FALSE}"; then
32032 as_fn_error $? "conditional \"MODULE__CTYPES\" was never defined.
32033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32034 fi
32035 if test -z "${MODULE__CURSES_TRUE}" && test -z "${MODULE__CURSES_FALSE}"; then
32036 as_fn_error $? "conditional \"MODULE__CURSES\" was never defined.
32037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32038 fi
32039 if test -z "${MODULE__CURSES_PANEL_TRUE}" && test -z "${MODULE__CURSES_PANEL_FALSE}"; then
32040 as_fn_error $? "conditional \"MODULE__CURSES_PANEL\" was never defined.
32041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32042 fi
32043 if test -z "${MODULE__DECIMAL_TRUE}" && test -z "${MODULE__DECIMAL_FALSE}"; then
32044 as_fn_error $? "conditional \"MODULE__DECIMAL\" was never defined.
32045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32046 fi
32047 if test -z "${MODULE__DBM_TRUE}" && test -z "${MODULE__DBM_FALSE}"; then
32048 as_fn_error $? "conditional \"MODULE__DBM\" was never defined.
32049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32050 fi
32051 if test -z "${MODULE__GDBM_TRUE}" && test -z "${MODULE__GDBM_FALSE}"; then
32052 as_fn_error $? "conditional \"MODULE__GDBM\" was never defined.
32053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32054 fi
32055 if test -z "${MODULE_READLINE_TRUE}" && test -z "${MODULE_READLINE_FALSE}"; then
32056 as_fn_error $? "conditional \"MODULE_READLINE\" was never defined.
32057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32058 fi
32059 if test -z "${MODULE__SQLITE3_TRUE}" && test -z "${MODULE__SQLITE3_FALSE}"; then
32060 as_fn_error $? "conditional \"MODULE__SQLITE3\" was never defined.
32061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32062 fi
32063 if test -z "${MODULE__TKINTER_TRUE}" && test -z "${MODULE__TKINTER_FALSE}"; then
32064 as_fn_error $? "conditional \"MODULE__TKINTER\" was never defined.
32065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32066 fi
32067 if test -z "${MODULE__UUID_TRUE}" && test -z "${MODULE__UUID_FALSE}"; then
32068 as_fn_error $? "conditional \"MODULE__UUID\" was never defined.
32069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32070 fi
32071 if test -z "${MODULE_ZLIB_TRUE}" && test -z "${MODULE_ZLIB_FALSE}"; then
32072 as_fn_error $? "conditional \"MODULE_ZLIB\" was never defined.
32073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32074 fi
32075 if test -z "${MODULE_BINASCII_TRUE}" && test -z "${MODULE_BINASCII_FALSE}"; then
32076 as_fn_error $? "conditional \"MODULE_BINASCII\" was never defined.
32077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32078 fi
32079 if test -z "${MODULE__BZ2_TRUE}" && test -z "${MODULE__BZ2_FALSE}"; then
32080 as_fn_error $? "conditional \"MODULE__BZ2\" was never defined.
32081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32082 fi
32083 if test -z "${MODULE__LZMA_TRUE}" && test -z "${MODULE__LZMA_FALSE}"; then
32084 as_fn_error $? "conditional \"MODULE__LZMA\" was never defined.
32085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32086 fi
32087 if test -z "${MODULE__SSL_TRUE}" && test -z "${MODULE__SSL_FALSE}"; then
32088 as_fn_error $? "conditional \"MODULE__SSL\" was never defined.
32089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32090 fi
32091 if test -z "${MODULE__HASHLIB_TRUE}" && test -z "${MODULE__HASHLIB_FALSE}"; then
32092 as_fn_error $? "conditional \"MODULE__HASHLIB\" was never defined.
32093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32094 fi
32095 if test -z "${MODULE__TESTCAPI_TRUE}" && test -z "${MODULE__TESTCAPI_FALSE}"; then
32096 as_fn_error $? "conditional \"MODULE__TESTCAPI\" was never defined.
32097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32098 fi
32099 if test -z "${MODULE__TESTCLINIC_TRUE}" && test -z "${MODULE__TESTCLINIC_FALSE}"; then
32100 as_fn_error $? "conditional \"MODULE__TESTCLINIC\" was never defined.
32101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32102 fi
32103 if test -z "${MODULE__TESTCLINIC_LIMITED_TRUE}" && test -z "${MODULE__TESTCLINIC_LIMITED_FALSE}"; then
32104 as_fn_error $? "conditional \"MODULE__TESTCLINIC_LIMITED\" was never defined.
32105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32106 fi
32107 if test -z "${MODULE__TESTLIMITEDCAPI_TRUE}" && test -z "${MODULE__TESTLIMITEDCAPI_FALSE}"; then
32108 as_fn_error $? "conditional \"MODULE__TESTLIMITEDCAPI\" was never defined.
32109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32110 fi
32111 if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then
32112 as_fn_error $? "conditional \"MODULE__TESTINTERNALCAPI\" was never defined.
32113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32114 fi
32115 if test -z "${MODULE__TESTBUFFER_TRUE}" && test -z "${MODULE__TESTBUFFER_FALSE}"; then
32116 as_fn_error $? "conditional \"MODULE__TESTBUFFER\" was never defined.
32117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32118 fi
32119 if test -z "${MODULE__TESTIMPORTMULTIPLE_TRUE}" && test -z "${MODULE__TESTIMPORTMULTIPLE_FALSE}"; then
32120 as_fn_error $? "conditional \"MODULE__TESTIMPORTMULTIPLE\" was never defined.
32121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32122 fi
32123 if test -z "${MODULE__TESTMULTIPHASE_TRUE}" && test -z "${MODULE__TESTMULTIPHASE_FALSE}"; then
32124 as_fn_error $? "conditional \"MODULE__TESTMULTIPHASE\" was never defined.
32125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32126 fi
32127 if test -z "${MODULE__TESTSINGLEPHASE_TRUE}" && test -z "${MODULE__TESTSINGLEPHASE_FALSE}"; then
32128 as_fn_error $? "conditional \"MODULE__TESTSINGLEPHASE\" was never defined.
32129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32130 fi
32131 if test -z "${MODULE__TESTEXTERNALINSPECTION_TRUE}" && test -z "${MODULE__TESTEXTERNALINSPECTION_FALSE}"; then
32132 as_fn_error $? "conditional \"MODULE__TESTEXTERNALINSPECTION\" was never defined.
32133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32134 fi
32135 if test -z "${MODULE_XXSUBTYPE_TRUE}" && test -z "${MODULE_XXSUBTYPE_FALSE}"; then
32136 as_fn_error $? "conditional \"MODULE_XXSUBTYPE\" was never defined.
32137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32138 fi
32139 if test -z "${MODULE__XXTESTFUZZ_TRUE}" && test -z "${MODULE__XXTESTFUZZ_FALSE}"; then
32140 as_fn_error $? "conditional \"MODULE__XXTESTFUZZ\" was never defined.
32141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32142 fi
32143 if test -z "${MODULE__CTYPES_TEST_TRUE}" && test -z "${MODULE__CTYPES_TEST_FALSE}"; then
32144 as_fn_error $? "conditional \"MODULE__CTYPES_TEST\" was never defined.
32145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32146 fi
32147 if test -z "${MODULE_XXLIMITED_TRUE}" && test -z "${MODULE_XXLIMITED_FALSE}"; then
32148 as_fn_error $? "conditional \"MODULE_XXLIMITED\" was never defined.
32149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32150 fi
32151 if test -z "${MODULE_XXLIMITED_35_TRUE}" && test -z "${MODULE_XXLIMITED_35_FALSE}"; then
32152 as_fn_error $? "conditional \"MODULE_XXLIMITED_35\" was never defined.
32153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32154 fi
32155
32156 : "${CONFIG_STATUS=./config.status}"
32157 ac_write_fail=0
32158 ac_clean_files_save=$ac_clean_files
32159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32161 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
32162 as_write_fail=0
32163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32164 #! $SHELL
32165 # Generated by $as_me.
32166 # Run this file to recreate the current configuration.
32167 # Compiler output produced by configure, useful for debugging
32168 # configure, is in config.log if it exists.
32169
32170 debug=false
32171 ac_cs_recheck=false
32172 ac_cs_silent=false
32173
32174 SHELL=\${CONFIG_SHELL-$SHELL}
32175 export SHELL
32176 _ASEOF
32177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32178 ## -------------------- ##
32179 ## M4sh Initialization. ##
32180 ## -------------------- ##
32181
32182 # Be more Bourne compatible
32183 DUALCASE=1; export DUALCASE # for MKS sh
32184 as_nop=:
32185 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
32186 then :
32187 emulate sh
32188 NULLCMD=:
32189 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32190 # is contrary to our usage. Disable this feature.
32191 alias -g '${1+"$@"}'='"$@"'
32192 setopt NO_GLOB_SUBST
32193 else $as_nop
32194 case `(set -o) 2>/dev/null` in #(
32195 *posix*) :
32196 set -o posix ;; #(
32197 *) :
32198 ;;
32199 esac
32200 fi
32201
32202
32203
32204 # Reset variables that may have inherited troublesome values from
32205 # the environment.
32206
32207 # IFS needs to be set, to space, tab, and newline, in precisely that order.
32208 # (If _AS_PATH_WALK were called with IFS unset, it would have the
32209 # side effect of setting IFS to empty, thus disabling word splitting.)
32210 # Quoting is to prevent editors from complaining about space-tab.
32211 as_nl='
32212 '
32213 export as_nl
32214 IFS=" "" $as_nl"
32215
32216 PS1='$ '
32217 PS2='> '
32218 PS4='+ '
32219
32220 # Ensure predictable behavior from utilities with locale-dependent output.
32221 LC_ALL=C
32222 export LC_ALL
32223 LANGUAGE=C
32224 export LANGUAGE
32225
32226 # We cannot yet rely on "unset" to work, but we need these variables
32227 # to be unset--not just set to an empty or harmless value--now, to
32228 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
32229 # also avoids known problems related to "unset" and subshell syntax
32230 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
32231 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
32232 do eval test \${$as_var+y} \
32233 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32234 done
32235
32236 # Ensure that fds 0, 1, and 2 are open.
32237 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
32238 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
32239 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
32240
32241 # The user is always right.
32242 if ${PATH_SEPARATOR+false} :; then
32243 PATH_SEPARATOR=:
32244 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32245 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32246 PATH_SEPARATOR=';'
32247 }
32248 fi
32249
32250
32251 # Find who we are. Look in the path if we contain no directory separator.
32252 as_myself=
32253 case $0 in #((
32254 *[\\/]* ) as_myself=$0 ;;
32255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32256 for as_dir in $PATH
32257 do
32258 IFS=$as_save_IFS
32259 case $as_dir in #(((
32260 '') as_dir=./ ;;
32261 */) ;;
32262 *) as_dir=$as_dir/ ;;
32263 esac
32264 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
32265 done
32266 IFS=$as_save_IFS
32267
32268 ;;
32269 esac
32270 # We did not find ourselves, most probably we were run as `sh COMMAND'
32271 # in which case we are not to be found in the path.
32272 if test "x$as_myself" = x; then
32273 as_myself=$0
32274 fi
32275 if test ! -f "$as_myself"; then
32276 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32277 exit 1
32278 fi
32279
32280
32281
32282 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32283 # ----------------------------------------
32284 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32285 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32286 # script with STATUS, using 1 if that was 0.
32287 as_fn_error ()
32288 {
32289 as_status=$1; test $as_status -eq 0 && as_status=1
32290 if test "$4"; then
32291 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32293 fi
32294 printf "%s\n" "$as_me: error: $2" >&2
32295 as_fn_exit $as_status
32296 } # as_fn_error
32297
32298
32299
32300 # as_fn_set_status STATUS
32301 # -----------------------
32302 # Set $? to STATUS, without forking.
32303 as_fn_set_status ()
32304 {
32305 return $1
32306 } # as_fn_set_status
32307
32308 # as_fn_exit STATUS
32309 # -----------------
32310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32311 as_fn_exit ()
32312 {
32313 set +e
32314 as_fn_set_status $1
32315 exit $1
32316 } # as_fn_exit
32317
32318 # as_fn_unset VAR
32319 # ---------------
32320 # Portably unset VAR.
32321 as_fn_unset ()
32322 {
32323 { eval $1=; unset $1;}
32324 }
32325 as_unset=as_fn_unset
32326
32327 # as_fn_append VAR VALUE
32328 # ----------------------
32329 # Append the text in VALUE to the end of the definition contained in VAR. Take
32330 # advantage of any shell optimizations that allow amortized linear growth over
32331 # repeated appends, instead of the typical quadratic growth present in naive
32332 # implementations.
32333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
32334 then :
32335 eval 'as_fn_append ()
32336 {
32337 eval $1+=\$2
32338 }'
32339 else $as_nop
32340 as_fn_append ()
32341 {
32342 eval $1=\$$1\$2
32343 }
32344 fi # as_fn_append
32345
32346 # as_fn_arith ARG...
32347 # ------------------
32348 # Perform arithmetic evaluation on the ARGs, and store the result in the
32349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32350 # must be portable across $(()) and expr.
32351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
32352 then :
32353 eval 'as_fn_arith ()
32354 {
32355 as_val=$(( $* ))
32356 }'
32357 else $as_nop
32358 as_fn_arith ()
32359 {
32360 as_val=`expr "$@" || test $? -eq 1`
32361 }
32362 fi # as_fn_arith
32363
32364
32365 if expr a : '\(a\)' >/dev/null 2>&1 &&
32366 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32367 as_expr=expr
32368 else
32369 as_expr=false
32370 fi
32371
32372 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32373 as_basename=basename
32374 else
32375 as_basename=false
32376 fi
32377
32378 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32379 as_dirname=dirname
32380 else
32381 as_dirname=false
32382 fi
32383
32384 as_me=`$as_basename -- "$0" ||
32385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32386 X"$0" : 'X\(//\)$' \| \
32387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32388 printf "%s\n" X/"$0" |
32389 sed '/^.*\/\([^/][^/]*\)\/*$/{
32390 s//\1/
32391 q
32392 }
32393 /^X\/\(\/\/\)$/{
32394 s//\1/
32395 q
32396 }
32397 /^X\/\(\/\).*/{
32398 s//\1/
32399 q
32400 }
32401 s/.*/./; q'`
32402
32403 # Avoid depending upon Character Ranges.
32404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32407 as_cr_digits='0123456789'
32408 as_cr_alnum=$as_cr_Letters$as_cr_digits
32409
32410
32411 # Determine whether it's possible to make 'echo' print without a newline.
32412 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
32413 # for compatibility with existing Makefiles.
32414 ECHO_C= ECHO_N= ECHO_T=
32415 case `echo -n x` in #(((((
32416 -n*)
32417 case `echo 'xy\c'` in
32418 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32419 xy) ECHO_C='\c';;
32420 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32421 ECHO_T=' ';;
32422 esac;;
32423 *)
32424 ECHO_N='-n';;
32425 esac
32426
32427 # For backward compatibility with old third-party macros, we provide
32428 # the shell variables $as_echo and $as_echo_n. New code should use
32429 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
32430 as_echo='printf %s\n'
32431 as_echo_n='printf %s'
32432
32433 rm -f conf$$ conf$$.exe conf$$.file
32434 if test -d conf$$.dir; then
32435 rm -f conf$$.dir/conf$$.file
32436 else
32437 rm -f conf$$.dir
32438 mkdir conf$$.dir 2>/dev/null
32439 fi
32440 if (echo >conf$$.file) 2>/dev/null; then
32441 if ln -s conf$$.file conf$$ 2>/dev/null; then
32442 as_ln_s='ln -s'
32443 # ... but there are two gotchas:
32444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32446 # In both cases, we have to default to `cp -pR'.
32447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32448 as_ln_s='cp -pR'
32449 elif ln conf$$.file conf$$ 2>/dev/null; then
32450 as_ln_s=ln
32451 else
32452 as_ln_s='cp -pR'
32453 fi
32454 else
32455 as_ln_s='cp -pR'
32456 fi
32457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32458 rmdir conf$$.dir 2>/dev/null
32459
32460
32461 # as_fn_mkdir_p
32462 # -------------
32463 # Create "$as_dir" as a directory, including parents if necessary.
32464 as_fn_mkdir_p ()
32465 {
32466
32467 case $as_dir in #(
32468 -*) as_dir=./$as_dir;;
32469 esac
32470 test -d "$as_dir" || eval $as_mkdir_p || {
32471 as_dirs=
32472 while :; do
32473 case $as_dir in #(
32474 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32475 *) as_qdir=$as_dir;;
32476 esac
32477 as_dirs="'$as_qdir' $as_dirs"
32478 as_dir=`$as_dirname -- "$as_dir" ||
32479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32480 X"$as_dir" : 'X\(//\)[^/]' \| \
32481 X"$as_dir" : 'X\(//\)$' \| \
32482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32483 printf "%s\n" X"$as_dir" |
32484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32485 s//\1/
32486 q
32487 }
32488 /^X\(\/\/\)[^/].*/{
32489 s//\1/
32490 q
32491 }
32492 /^X\(\/\/\)$/{
32493 s//\1/
32494 q
32495 }
32496 /^X\(\/\).*/{
32497 s//\1/
32498 q
32499 }
32500 s/.*/./; q'`
32501 test -d "$as_dir" && break
32502 done
32503 test -z "$as_dirs" || eval "mkdir $as_dirs"
32504 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32505
32506
32507 } # as_fn_mkdir_p
32508 if mkdir -p . 2>/dev/null; then
32509 as_mkdir_p='mkdir -p "$as_dir"'
32510 else
32511 test -d ./-p && rmdir ./-p
32512 as_mkdir_p=false
32513 fi
32514
32515
32516 # as_fn_executable_p FILE
32517 # -----------------------
32518 # Test if FILE is an executable regular file.
32519 as_fn_executable_p ()
32520 {
32521 test -f "$1" && test -x "$1"
32522 } # as_fn_executable_p
32523 as_test_x='test -x'
32524 as_executable_p=as_fn_executable_p
32525
32526 # Sed expression to map a string onto a valid CPP name.
32527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32528
32529 # Sed expression to map a string onto a valid variable name.
32530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32531
32532
32533 exec 6>&1
32534 ## ----------------------------------- ##
32535 ## Main body of $CONFIG_STATUS script. ##
32536 ## ----------------------------------- ##
32537 _ASEOF
32538 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32539
32540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32541 # Save the log message, to keep $0 and so on meaningful, and to
32542 # report actual input values of CONFIG_FILES etc. instead of their
32543 # values after options handling.
32544 ac_log="
32545 This file was extended by python $as_me 3.13, which was
32546 generated by GNU Autoconf 2.71. Invocation command line was
32547
32548 CONFIG_FILES = $CONFIG_FILES
32549 CONFIG_HEADERS = $CONFIG_HEADERS
32550 CONFIG_LINKS = $CONFIG_LINKS
32551 CONFIG_COMMANDS = $CONFIG_COMMANDS
32552 $ $0 $@
32553
32554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32555 "
32556
32557 _ACEOF
32558
32559 case $ac_config_files in *"
32560 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32561 esac
32562
32563 case $ac_config_headers in *"
32564 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32565 esac
32566
32567
32568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32569 # Files that config.status was made for.
32570 config_files="$ac_config_files"
32571 config_headers="$ac_config_headers"
32572
32573 _ACEOF
32574
32575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32576 ac_cs_usage="\
32577 \`$as_me' instantiates files and other configuration actions
32578 from templates according to the current configuration. Unless the files
32579 and actions are specified as TAGs, all are instantiated by default.
32580
32581 Usage: $0 [OPTION]... [TAG]...
32582
32583 -h, --help print this help, then exit
32584 -V, --version print version number and configuration settings, then exit
32585 --config print configuration, then exit
32586 -q, --quiet, --silent
32587 do not print progress messages
32588 -d, --debug don't remove temporary files
32589 --recheck update $as_me by reconfiguring in the same conditions
32590 --file=FILE[:TEMPLATE]
32591 instantiate the configuration file FILE
32592 --header=FILE[:TEMPLATE]
32593 instantiate the configuration header FILE
32594
32595 Configuration files:
32596 $config_files
32597
32598 Configuration headers:
32599 $config_headers
32600
32601 Report bugs to <https://github.com/python/cpython/issues/>."
32602
32603 _ACEOF
32604 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
32605 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
32606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32607 ac_cs_config='$ac_cs_config_escaped'
32608 ac_cs_version="\\
32609 python config.status 3.13
32610 configured by $0, generated by GNU Autoconf 2.71,
32611 with options \\"\$ac_cs_config\\"
32612
32613 Copyright (C) 2021 Free Software Foundation, Inc.
32614 This config.status script is free software; the Free Software Foundation
32615 gives unlimited permission to copy, distribute and modify it."
32616
32617 ac_pwd='$ac_pwd'
32618 srcdir='$srcdir'
32619 INSTALL='$INSTALL'
32620 MKDIR_P='$MKDIR_P'
32621 test -n "\$AWK" || AWK=awk
32622 _ACEOF
32623
32624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32625 # The default lists apply if the user does not specify any file.
32626 ac_need_defaults=:
32627 while test $# != 0
32628 do
32629 case $1 in
32630 --*=?*)
32631 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32632 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32633 ac_shift=:
32634 ;;
32635 --*=)
32636 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32637 ac_optarg=
32638 ac_shift=:
32639 ;;
32640 *)
32641 ac_option=$1
32642 ac_optarg=$2
32643 ac_shift=shift
32644 ;;
32645 esac
32646
32647 case $ac_option in
32648 # Handling of the options.
32649 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32650 ac_cs_recheck=: ;;
32651 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32652 printf "%s\n" "$ac_cs_version"; exit ;;
32653 --config | --confi | --conf | --con | --co | --c )
32654 printf "%s\n" "$ac_cs_config"; exit ;;
32655 --debug | --debu | --deb | --de | --d | -d )
32656 debug=: ;;
32657 --file | --fil | --fi | --f )
32658 $ac_shift
32659 case $ac_optarg in
32660 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32661 '') as_fn_error $? "missing file argument" ;;
32662 esac
32663 as_fn_append CONFIG_FILES " '$ac_optarg'"
32664 ac_need_defaults=false;;
32665 --header | --heade | --head | --hea )
32666 $ac_shift
32667 case $ac_optarg in
32668 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32669 esac
32670 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32671 ac_need_defaults=false;;
32672 --he | --h)
32673 # Conflict between --help and --header
32674 as_fn_error $? "ambiguous option: \`$1'
32675 Try \`$0 --help' for more information.";;
32676 --help | --hel | -h )
32677 printf "%s\n" "$ac_cs_usage"; exit ;;
32678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32679 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32680 ac_cs_silent=: ;;
32681
32682 # This is an error.
32683 -*) as_fn_error $? "unrecognized option: \`$1'
32684 Try \`$0 --help' for more information." ;;
32685
32686 *) as_fn_append ac_config_targets " $1"
32687 ac_need_defaults=false ;;
32688
32689 esac
32690 shift
32691 done
32692
32693 ac_configure_extra_args=
32694
32695 if $ac_cs_silent; then
32696 exec 6>/dev/null
32697 ac_configure_extra_args="$ac_configure_extra_args --silent"
32698 fi
32699
32700 _ACEOF
32701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32702 if \$ac_cs_recheck; then
32703 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32704 shift
32705 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
32706 CONFIG_SHELL='$SHELL'
32707 export CONFIG_SHELL
32708 exec "\$@"
32709 fi
32710
32711 _ACEOF
32712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32713 exec 5>>config.log
32714 {
32715 echo
32716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32717 ## Running $as_me. ##
32718 _ASBOX
32719 printf "%s\n" "$ac_log"
32720 } >&5
32721
32722 _ACEOF
32723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32724 _ACEOF
32725
32726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32727
32728 # Handling of arguments.
32729 for ac_config_target in $ac_config_targets
32730 do
32731 case $ac_config_target in
32732 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
32733 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
32734 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
32735 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
32736 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
32737 "iOS/Resources/Info.plist") CONFIG_FILES="$CONFIG_FILES iOS/Resources/Info.plist" ;;
32738 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
32739 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
32740 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;;
32741 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
32742 "Modules/Setup.bootstrap") CONFIG_FILES="$CONFIG_FILES Modules/Setup.bootstrap" ;;
32743 "Modules/Setup.stdlib") CONFIG_FILES="$CONFIG_FILES Modules/Setup.stdlib" ;;
32744 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
32745
32746 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32747 esac
32748 done
32749
32750
32751 # If the user did not use the arguments to specify the items to instantiate,
32752 # then the envvar interface is used. Set only those that are not.
32753 # We use the long form for the default assignment because of an extremely
32754 # bizarre bug on SunOS 4.1.3.
32755 if $ac_need_defaults; then
32756 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
32757 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
32758 fi
32759
32760 # Have a temporary directory for convenience. Make it in the build tree
32761 # simply because there is no reason against having it here, and in addition,
32762 # creating and moving files from /tmp can sometimes cause problems.
32763 # Hook for its removal unless debugging.
32764 # Note that there is a small window in which the directory will not be cleaned:
32765 # after its creation but before its name has been assigned to `$tmp'.
32766 $debug ||
32767 {
32768 tmp= ac_tmp=
32769 trap 'exit_status=$?
32770 : "${ac_tmp:=$tmp}"
32771 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32772 ' 0
32773 trap 'as_fn_exit 1' 1 2 13 15
32774 }
32775 # Create a (secure) tmp directory for tmp files.
32776
32777 {
32778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32779 test -d "$tmp"
32780 } ||
32781 {
32782 tmp=./conf$$-$RANDOM
32783 (umask 077 && mkdir "$tmp")
32784 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32785 ac_tmp=$tmp
32786
32787 # Set up the scripts for CONFIG_FILES section.
32788 # No need to generate them if there are no CONFIG_FILES.
32789 # This happens for instance with `./config.status config.h'.
32790 if test -n "$CONFIG_FILES"; then
32791
32792
32793 ac_cr=`echo X | tr X '\015'`
32794 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32795 # But we know of no other shell where ac_cr would be empty at this
32796 # point, so we can use a bashism as a fallback.
32797 if test "x$ac_cr" = x; then
32798 eval ac_cr=\$\'\\r\'
32799 fi
32800 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32801 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32802 ac_cs_awk_cr='\\r'
32803 else
32804 ac_cs_awk_cr=$ac_cr
32805 fi
32806
32807 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32808 _ACEOF
32809
32810
32811 {
32812 echo "cat >conf$$subs.awk <<_ACEOF" &&
32813 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32814 echo "_ACEOF"
32815 } >conf$$subs.sh ||
32816 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32817 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32818 ac_delim='%!_!# '
32819 for ac_last_try in false false false false false :; do
32820 . ./conf$$subs.sh ||
32821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32822
32823 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32824 if test $ac_delim_n = $ac_delim_num; then
32825 break
32826 elif $ac_last_try; then
32827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32828 else
32829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32830 fi
32831 done
32832 rm -f conf$$subs.sh
32833
32834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32835 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32836 _ACEOF
32837 sed -n '
32838 h
32839 s/^/S["/; s/!.*/"]=/
32840 p
32841 g
32842 s/^[^!]*!//
32843 :repl
32844 t repl
32845 s/'"$ac_delim"'$//
32846 t delim
32847 :nl
32848 h
32849 s/\(.\{148\}\)..*/\1/
32850 t more1
32851 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32852 p
32853 n
32854 b repl
32855 :more1
32856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32857 p
32858 g
32859 s/.\{148\}//
32860 t nl
32861 :delim
32862 h
32863 s/\(.\{148\}\)..*/\1/
32864 t more2
32865 s/["\\]/\\&/g; s/^/"/; s/$/"/
32866 p
32867 b
32868 :more2
32869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32870 p
32871 g
32872 s/.\{148\}//
32873 t delim
32874 ' <conf$$subs.awk | sed '
32875 /^[^""]/{
32876 N
32877 s/\n//
32878 }
32879 ' >>$CONFIG_STATUS || ac_write_fail=1
32880 rm -f conf$$subs.awk
32881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32882 _ACAWK
32883 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32884 for (key in S) S_is_set[key] = 1
32885 FS = ""
32886
32887 }
32888 {
32889 line = $ 0
32890 nfields = split(line, field, "@")
32891 substed = 0
32892 len = length(field[1])
32893 for (i = 2; i < nfields; i++) {
32894 key = field[i]
32895 keylen = length(key)
32896 if (S_is_set[key]) {
32897 value = S[key]
32898 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32899 len += length(value) + length(field[++i])
32900 substed = 1
32901 } else
32902 len += 1 + keylen
32903 }
32904
32905 print line
32906 }
32907
32908 _ACAWK
32909 _ACEOF
32910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32911 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32912 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32913 else
32914 cat
32915 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32916 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32917 _ACEOF
32918
32919 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32920 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32921 # trailing colons and then remove the whole line if VPATH becomes empty
32922 # (actually we leave an empty line to preserve line numbers).
32923 if test "x$srcdir" = x.; then
32924 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32925 h
32926 s///
32927 s/^/:/
32928 s/[ ]*$/:/
32929 s/:\$(srcdir):/:/g
32930 s/:\${srcdir}:/:/g
32931 s/:@srcdir@:/:/g
32932 s/^:*//
32933 s/:*$//
32934 x
32935 s/\(=[ ]*\).*/\1/
32936 G
32937 s/\n//
32938 s/^[^=]*=[ ]*$//
32939 }'
32940 fi
32941
32942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32943 fi # test -n "$CONFIG_FILES"
32944
32945 # Set up the scripts for CONFIG_HEADERS section.
32946 # No need to generate them if there are no CONFIG_HEADERS.
32947 # This happens for instance with `./config.status Makefile'.
32948 if test -n "$CONFIG_HEADERS"; then
32949 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32950 BEGIN {
32951 _ACEOF
32952
32953 # Transform confdefs.h into an awk script `defines.awk', embedded as
32954 # here-document in config.status, that substitutes the proper values into
32955 # config.h.in to produce config.h.
32956
32957 # Create a delimiter string that does not exist in confdefs.h, to ease
32958 # handling of long lines.
32959 ac_delim='%!_!# '
32960 for ac_last_try in false false :; do
32961 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32962 if test -z "$ac_tt"; then
32963 break
32964 elif $ac_last_try; then
32965 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32966 else
32967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32968 fi
32969 done
32970
32971 # For the awk script, D is an array of macro values keyed by name,
32972 # likewise P contains macro parameters if any. Preserve backslash
32973 # newline sequences.
32974
32975 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32976 sed -n '
32977 s/.\{148\}/&'"$ac_delim"'/g
32978 t rset
32979 :rset
32980 s/^[ ]*#[ ]*define[ ][ ]*/ /
32981 t def
32982 d
32983 :def
32984 s/\\$//
32985 t bsnl
32986 s/["\\]/\\&/g
32987 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32988 D["\1"]=" \3"/p
32989 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32990 d
32991 :bsnl
32992 s/["\\]/\\&/g
32993 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32994 D["\1"]=" \3\\\\\\n"\\/p
32995 t cont
32996 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32997 t cont
32998 d
32999 :cont
33000 n
33001 s/.\{148\}/&'"$ac_delim"'/g
33002 t clear
33003 :clear
33004 s/\\$//
33005 t bsnlc
33006 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33007 d
33008 :bsnlc
33009 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33010 b cont
33011 ' <confdefs.h | sed '
33012 s/'"$ac_delim"'/"\\\
33013 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33014
33015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33016 for (key in D) D_is_set[key] = 1
33017 FS = ""
33018 }
33019 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33020 line = \$ 0
33021 split(line, arg, " ")
33022 if (arg[1] == "#") {
33023 defundef = arg[2]
33024 mac1 = arg[3]
33025 } else {
33026 defundef = substr(arg[1], 2)
33027 mac1 = arg[2]
33028 }
33029 split(mac1, mac2, "(") #)
33030 macro = mac2[1]
33031 prefix = substr(line, 1, index(line, defundef) - 1)
33032 if (D_is_set[macro]) {
33033 # Preserve the white space surrounding the "#".
33034 print prefix "define", macro P[macro] D[macro]
33035 next
33036 } else {
33037 # Replace #undef with comments. This is necessary, for example,
33038 # in the case of _POSIX_SOURCE, which is predefined and required
33039 # on some systems where configure will not decide to define it.
33040 if (defundef == "undef") {
33041 print "/*", prefix defundef, macro, "*/"
33042 next
33043 }
33044 }
33045 }
33046 { print }
33047 _ACAWK
33048 _ACEOF
33049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33050 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33051 fi # test -n "$CONFIG_HEADERS"
33052
33053
33054 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
33055 shift
33056 for ac_tag
33057 do
33058 case $ac_tag in
33059 :[FHLC]) ac_mode=$ac_tag; continue;;
33060 esac
33061 case $ac_mode$ac_tag in
33062 :[FHL]*:*);;
33063 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33064 :[FH]-) ac_tag=-:-;;
33065 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33066 esac
33067 ac_save_IFS=$IFS
33068 IFS=:
33069 set x $ac_tag
33070 IFS=$ac_save_IFS
33071 shift
33072 ac_file=$1
33073 shift
33074
33075 case $ac_mode in
33076 :L) ac_source=$1;;
33077 :[FH])
33078 ac_file_inputs=
33079 for ac_f
33080 do
33081 case $ac_f in
33082 -) ac_f="$ac_tmp/stdin";;
33083 *) # Look for the file first in the build tree, then in the source tree
33084 # (if the path is not absolute). The absolute path cannot be DOS-style,
33085 # because $ac_f cannot contain `:'.
33086 test -f "$ac_f" ||
33087 case $ac_f in
33088 [\\/$]*) false;;
33089 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33090 esac ||
33091 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33092 esac
33093 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33094 as_fn_append ac_file_inputs " '$ac_f'"
33095 done
33096
33097 # Let's still pretend it is `configure' which instantiates (i.e., don't
33098 # use $as_me), people would be surprised to read:
33099 # /* config.h. Generated by config.status. */
33100 configure_input='Generated from '`
33101 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33102 `' by configure.'
33103 if test x"$ac_file" != x-; then
33104 configure_input="$ac_file. $configure_input"
33105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33106 printf "%s\n" "$as_me: creating $ac_file" >&6;}
33107 fi
33108 # Neutralize special characters interpreted by sed in replacement strings.
33109 case $configure_input in #(
33110 *\&* | *\|* | *\\* )
33111 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
33112 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33113 *) ac_sed_conf_input=$configure_input;;
33114 esac
33115
33116 case $ac_tag in
33117 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33119 esac
33120 ;;
33121 esac
33122
33123 ac_dir=`$as_dirname -- "$ac_file" ||
33124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33125 X"$ac_file" : 'X\(//\)[^/]' \| \
33126 X"$ac_file" : 'X\(//\)$' \| \
33127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33128 printf "%s\n" X"$ac_file" |
33129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33130 s//\1/
33131 q
33132 }
33133 /^X\(\/\/\)[^/].*/{
33134 s//\1/
33135 q
33136 }
33137 /^X\(\/\/\)$/{
33138 s//\1/
33139 q
33140 }
33141 /^X\(\/\).*/{
33142 s//\1/
33143 q
33144 }
33145 s/.*/./; q'`
33146 as_dir="$ac_dir"; as_fn_mkdir_p
33147 ac_builddir=.
33148
33149 case "$ac_dir" in
33150 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33151 *)
33152 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
33153 # A ".." for each directory in $ac_dir_suffix.
33154 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33155 case $ac_top_builddir_sub in
33156 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33157 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33158 esac ;;
33159 esac
33160 ac_abs_top_builddir=$ac_pwd
33161 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33162 # for backward compatibility:
33163 ac_top_builddir=$ac_top_build_prefix
33164
33165 case $srcdir in
33166 .) # We are building in place.
33167 ac_srcdir=.
33168 ac_top_srcdir=$ac_top_builddir_sub
33169 ac_abs_top_srcdir=$ac_pwd ;;
33170 [\\/]* | ?:[\\/]* ) # Absolute name.
33171 ac_srcdir=$srcdir$ac_dir_suffix;
33172 ac_top_srcdir=$srcdir
33173 ac_abs_top_srcdir=$srcdir ;;
33174 *) # Relative name.
33175 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33176 ac_top_srcdir=$ac_top_build_prefix$srcdir
33177 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33178 esac
33179 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33180
33181
33182 case $ac_mode in
33183 :F)
33184 #
33185 # CONFIG_FILE
33186 #
33187
33188 case $INSTALL in
33189 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33190 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33191 esac
33192 ac_MKDIR_P=$MKDIR_P
33193 case $MKDIR_P in
33194 [\\/$]* | ?:[\\/]* ) ;;
33195 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33196 esac
33197 _ACEOF
33198
33199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33200 # If the template does not know about datarootdir, expand it.
33201 # FIXME: This hack should be removed a few years after 2.60.
33202 ac_datarootdir_hack=; ac_datarootdir_seen=
33203 ac_sed_dataroot='
33204 /datarootdir/ {
33205 p
33206 q
33207 }
33208 /@datadir@/p
33209 /@docdir@/p
33210 /@infodir@/p
33211 /@localedir@/p
33212 /@mandir@/p'
33213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33214 *datarootdir*) ac_datarootdir_seen=yes;;
33215 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33217 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33218 _ACEOF
33219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33220 ac_datarootdir_hack='
33221 s&@datadir@&$datadir&g
33222 s&@docdir@&$docdir&g
33223 s&@infodir@&$infodir&g
33224 s&@localedir@&$localedir&g
33225 s&@mandir@&$mandir&g
33226 s&\\\${datarootdir}&$datarootdir&g' ;;
33227 esac
33228 _ACEOF
33229
33230 # Neutralize VPATH when `$srcdir' = `.'.
33231 # Shell code in configure.ac might set extrasub.
33232 # FIXME: do we really want to maintain this feature?
33233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33234 ac_sed_extra="$ac_vpsub
33235 $extrasub
33236 _ACEOF
33237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33238 :t
33239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33240 s|@configure_input@|$ac_sed_conf_input|;t t
33241 s&@top_builddir@&$ac_top_builddir_sub&;t t
33242 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33243 s&@srcdir@&$ac_srcdir&;t t
33244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33245 s&@top_srcdir@&$ac_top_srcdir&;t t
33246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33247 s&@builddir@&$ac_builddir&;t t
33248 s&@abs_builddir@&$ac_abs_builddir&;t t
33249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33250 s&@INSTALL@&$ac_INSTALL&;t t
33251 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33252 $ac_datarootdir_hack
33253 "
33254 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33255 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33256
33257 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33258 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33259 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33260 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33262 which seems to be undefined. Please make sure it is defined" >&5
33263 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33264 which seems to be undefined. Please make sure it is defined" >&2;}
33265
33266 rm -f "$ac_tmp/stdin"
33267 case $ac_file in
33268 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33269 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33270 esac \
33271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33272 ;;
33273 :H)
33274 #
33275 # CONFIG_HEADER
33276 #
33277 if test x"$ac_file" != x-; then
33278 {
33279 printf "%s\n" "/* $configure_input */" >&1 \
33280 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33281 } >"$ac_tmp/config.h" \
33282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33283 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33285 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
33286 else
33287 rm -f "$ac_file"
33288 mv "$ac_tmp/config.h" "$ac_file" \
33289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33290 fi
33291 else
33292 printf "%s\n" "/* $configure_input */" >&1 \
33293 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33294 || as_fn_error $? "could not create -" "$LINENO" 5
33295 fi
33296 ;;
33297
33298
33299 esac
33300
33301
33302 case $ac_file$ac_mode in
33303 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
33304
33305 esac
33306 done # for ac_tag
33307
33308
33309 as_fn_exit 0
33310 _ACEOF
33311 ac_clean_files=$ac_clean_files_save
33312
33313 test $ac_write_fail = 0 ||
33314 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33315
33316
33317 # configure is writing to config.log, and then calls config.status.
33318 # config.status does its own redirection, appending to config.log.
33319 # Unfortunately, on DOS this fails, as config.log is still kept open
33320 # by configure, so config.status won't be able to write to it; its
33321 # output is simply discarded. So we exec the FD to /dev/null,
33322 # effectively closing config.log, so it can be properly (re)opened and
33323 # appended to by config.status. When coming back to configure, we
33324 # need to make the FD available again.
33325 if test "$no_create" != yes; then
33326 ac_cs_success=:
33327 ac_config_status_args=
33328 test "$silent" = yes &&
33329 ac_config_status_args="$ac_config_status_args --quiet"
33330 exec 5>/dev/null
33331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33332 exec 5>>config.log
33333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33334 # would make configure fail if this is the last instruction.
33335 $ac_cs_success || as_fn_exit 1
33336 fi
33337 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33339 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33340 fi
33341
33342
33343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Modules/Setup.local" >&5
33344 printf "%s\n" "$as_me: creating Modules/Setup.local" >&6;}
33345 if test ! -f Modules/Setup.local
33346 then
33347 echo "# Edit this file for local setup changes" >Modules/Setup.local
33348 fi
33349
33350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5
33351 printf "%s\n" "$as_me: creating Makefile" >&6;}
33352 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
33353 -s Modules \
33354 Modules/Setup.local Modules/Setup.stdlib Modules/Setup.bootstrap $srcdir/Modules/Setup
33355 if test $? -ne 0; then
33356 as_fn_error $? "makesetup failed" "$LINENO" 5
33357 fi
33358
33359 mv config.c Modules
33360
33361 if test -z "$PKG_CONFIG"; then
33362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&5
33363 printf "%s\n" "$as_me: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&2;}
33364 fi
33365
33366 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
33367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
33368
33369 If you want a release build with all stable optimizations active (PGO, etc),
33370 please run ./configure --enable-optimizations
33371 " >&5
33372 printf "%s\n" "$as_me:
33373
33374 If you want a release build with all stable optimizations active (PGO, etc),
33375 please run ./configure --enable-optimizations
33376 " >&6;}
33377 fi
33378
33379 if test "x$PY_SUPPORT_TIER" = x0
33380 then :
33381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
33382
33383 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
33384 CPython core team, see https://peps.python.org/pep-0011/ for more information.
33385 " >&5
33386 printf "%s\n" "$as_me: WARNING:
33387
33388 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
33389 CPython core team, see https://peps.python.org/pep-0011/ for more information.
33390 " >&2;}
33391 fi
33392
33393 if test "$ac_cv_header_stdatomic_h" != "yes"; then
33394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your compiler or platform does have a working C11 stdatomic.h. A future version of Python may require stdatomic.h." >&5
33395 printf "%s\n" "$as_me: Your compiler or platform does have a working C11 stdatomic.h. A future version of Python may require stdatomic.h." >&6;}
33396 fi
33397