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 # Check for 32-bit x86 ISA
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for i686" >&5
8995 printf %s "checking for i686... " >&6; }
8996 if test ${ac_cv_i686+y}
8997 then :
8998 printf %s "(cached) " >&6
8999 else $as_nop
9000
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9003
9004
9005 #ifdef __i386__
9006 # error "i386"
9007 #endif
9008
9009 int
9010 main (void)
9011 {
9012
9013 ;
9014 return 0;
9015 }
9016
9017 _ACEOF
9018 if ac_fn_c_try_compile "$LINENO"
9019 then :
9020 ac_cv_i686=no
9021 else $as_nop
9022 ac_cv_i686=yes
9023 fi
9024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9025
9026 fi
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_i686" >&5
9028 printf "%s\n" "$ac_cv_i686" >&6; }
9029
9030 PGO_PROF_GEN_FLAG="-fprofile-generate"
9031
9032 # Use -fprofile-update=atomic to fix a random GCC internal error on PGO
9033 # build (gh-145801) caused by corruption of profile data (.gcda files).
9034 #
9035 # gh-148535: On i686, using -fprofile-update=atomic makes the PGO build
9036 # way slower (up to 47x slower). So far, the GCC internal error on PGO
9037 # build was not seen on i686, so don't use this flag on i686.
9038 if test "x$ac_cv_i686" = xno
9039 then :
9040
9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fprofile-update=atomic" >&5
9042 printf %s "checking whether C compiler accepts -fprofile-update=atomic... " >&6; }
9043 if test ${ax_cv_check_cflags___fprofile_update_atomic+y}
9044 then :
9045 printf %s "(cached) " >&6
9046 else $as_nop
9047
9048 ax_check_save_flags=$CFLAGS
9049 CFLAGS="$CFLAGS -fprofile-update=atomic"
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9052
9053 int
9054 main (void)
9055 {
9056
9057 ;
9058 return 0;
9059 }
9060 _ACEOF
9061 if ac_fn_c_try_compile "$LINENO"
9062 then :
9063 ax_cv_check_cflags___fprofile_update_atomic=yes
9064 else $as_nop
9065 ax_cv_check_cflags___fprofile_update_atomic=no
9066 fi
9067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9068 CFLAGS=$ax_check_save_flags
9069 fi
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fprofile_update_atomic" >&5
9071 printf "%s\n" "$ax_cv_check_cflags___fprofile_update_atomic" >&6; }
9072 if test "x$ax_cv_check_cflags___fprofile_update_atomic" = xyes
9073 then :
9074 PGO_PROF_GEN_FLAG="$PGO_PROF_GEN_FLAG -fprofile-update=atomic"
9075 else $as_nop
9076 :
9077 fi
9078
9079
9080 fi
9081
9082 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
9083 LLVM_PROF_MERGER="true"
9084 LLVM_PROF_FILE=""
9085 ;;
9086 esac
9087 ;;
9088 *icc*)
9089 PGO_PROF_GEN_FLAG="-prof-gen"
9090 PGO_PROF_USE_FLAG="-prof-use"
9091 LLVM_PROF_MERGER="true"
9092 LLVM_PROF_FILE=""
9093 ;;
9094 esac
9095
9096 # BOLT optimization. Always configured after PGO since it always runs after PGO.
9097 Py_BOLT='false'
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-bolt" >&5
9099 printf %s "checking for --enable-bolt... " >&6; }
9100 # Check whether --enable-bolt was given.
9101 if test ${enable_bolt+y}
9102 then :
9103 enableval=$enable_bolt;
9104 if test "$enableval" != no
9105 then
9106 Py_BOLT='true'
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9108 printf "%s\n" "yes" >&6; };
9109 else
9110 Py_BOLT='false'
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 printf "%s\n" "no" >&6; };
9113 fi
9114 else $as_nop
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 printf "%s\n" "no" >&6; }
9117 fi
9118
9119
9120
9121 if test "$Py_BOLT" = 'true' ; then
9122 PREBOLT_RULE="${DEF_MAKE_ALL_RULE}"
9123 DEF_MAKE_ALL_RULE="bolt-opt"
9124 DEF_MAKE_RULE="build_all"
9125
9126 # -fno-reorder-blocks-and-partition is required for bolt to work.
9127 # Possibly GCC only.
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-reorder-blocks-and-partition" >&5
9129 printf %s "checking whether C compiler accepts -fno-reorder-blocks-and-partition... " >&6; }
9130 if test ${ax_cv_check_cflags___fno_reorder_blocks_and_partition+y}
9131 then :
9132 printf %s "(cached) " >&6
9133 else $as_nop
9134
9135 ax_check_save_flags=$CFLAGS
9136 CFLAGS="$CFLAGS -fno-reorder-blocks-and-partition"
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139
9140 int
9141 main (void)
9142 {
9143
9144 ;
9145 return 0;
9146 }
9147 _ACEOF
9148 if ac_fn_c_try_compile "$LINENO"
9149 then :
9150 ax_cv_check_cflags___fno_reorder_blocks_and_partition=yes
9151 else $as_nop
9152 ax_cv_check_cflags___fno_reorder_blocks_and_partition=no
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9155 CFLAGS=$ax_check_save_flags
9156 fi
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&5
9158 printf "%s\n" "$ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&6; }
9159 if test "x$ax_cv_check_cflags___fno_reorder_blocks_and_partition" = xyes
9160 then :
9161
9162 CFLAGS_NODIST="$CFLAGS_NODIST -fno-reorder-blocks-and-partition"
9163
9164 else $as_nop
9165 :
9166 fi
9167
9168
9169 # These flags are required for bolt to work:
9170 LDFLAGS_NODIST="$LDFLAGS_NODIST -Wl,--emit-relocs"
9171
9172 # These flags are required to get good performance from bolt:
9173 CFLAGS_NODIST="$CFLAGS_NODIST -fno-pie"
9174 # We want to add these no-pie flags to linking executables but not shared libraries:
9175 LINKCC="$LINKCC -fno-pie -no-pie"
9176
9177 if test -n "$ac_tool_prefix"; then
9178 # Extract the first word of "${ac_tool_prefix}llvm-bolt", so it can be a program name with args.
9179 set dummy ${ac_tool_prefix}llvm-bolt; ac_word=$2
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 printf %s "checking for $ac_word... " >&6; }
9182 if test ${ac_cv_path_LLVM_BOLT+y}
9183 then :
9184 printf %s "(cached) " >&6
9185 else $as_nop
9186 case $LLVM_BOLT in
9187 [\\/]* | ?:[\\/]*)
9188 ac_cv_path_LLVM_BOLT="$LLVM_BOLT" # Let the user override the test with a path.
9189 ;;
9190 *)
9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 for as_dir in ${llvm_path}
9193 do
9194 IFS=$as_save_IFS
9195 case $as_dir in #(((
9196 '') as_dir=./ ;;
9197 */) ;;
9198 *) as_dir=$as_dir/ ;;
9199 esac
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9202 ac_cv_path_LLVM_BOLT="$as_dir$ac_word$ac_exec_ext"
9203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9204 break 2
9205 fi
9206 done
9207 done
9208 IFS=$as_save_IFS
9209
9210 ;;
9211 esac
9212 fi
9213 LLVM_BOLT=$ac_cv_path_LLVM_BOLT
9214 if test -n "$LLVM_BOLT"; then
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_BOLT" >&5
9216 printf "%s\n" "$LLVM_BOLT" >&6; }
9217 else
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 printf "%s\n" "no" >&6; }
9220 fi
9221
9222
9223 fi
9224 if test -z "$ac_cv_path_LLVM_BOLT"; then
9225 ac_pt_LLVM_BOLT=$LLVM_BOLT
9226 # Extract the first word of "llvm-bolt", so it can be a program name with args.
9227 set dummy llvm-bolt; ac_word=$2
9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 printf %s "checking for $ac_word... " >&6; }
9230 if test ${ac_cv_path_ac_pt_LLVM_BOLT+y}
9231 then :
9232 printf %s "(cached) " >&6
9233 else $as_nop
9234 case $ac_pt_LLVM_BOLT in
9235 [\\/]* | ?:[\\/]*)
9236 ac_cv_path_ac_pt_LLVM_BOLT="$ac_pt_LLVM_BOLT" # Let the user override the test with a path.
9237 ;;
9238 *)
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in ${llvm_path}
9241 do
9242 IFS=$as_save_IFS
9243 case $as_dir in #(((
9244 '') as_dir=./ ;;
9245 */) ;;
9246 *) as_dir=$as_dir/ ;;
9247 esac
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9250 ac_cv_path_ac_pt_LLVM_BOLT="$as_dir$ac_word$ac_exec_ext"
9251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9252 break 2
9253 fi
9254 done
9255 done
9256 IFS=$as_save_IFS
9257
9258 ;;
9259 esac
9260 fi
9261 ac_pt_LLVM_BOLT=$ac_cv_path_ac_pt_LLVM_BOLT
9262 if test -n "$ac_pt_LLVM_BOLT"; then
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_BOLT" >&5
9264 printf "%s\n" "$ac_pt_LLVM_BOLT" >&6; }
9265 else
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 printf "%s\n" "no" >&6; }
9268 fi
9269
9270 if test "x$ac_pt_LLVM_BOLT" = x; then
9271 LLVM_BOLT="''"
9272 else
9273 case $cross_compiling:$ac_tool_warned in
9274 yes:)
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9277 ac_tool_warned=yes ;;
9278 esac
9279 LLVM_BOLT=$ac_pt_LLVM_BOLT
9280 fi
9281 else
9282 LLVM_BOLT="$ac_cv_path_LLVM_BOLT"
9283 fi
9284
9285 if test -n "${LLVM_BOLT}" -a -x "${LLVM_BOLT}"
9286 then
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found llvm-bolt\"" >&5
9288 printf "%s\n" "\"Found llvm-bolt\"" >&6; }
9289 else
9290 as_fn_error $? "llvm-bolt is required for a --enable-bolt build but could not be found." "$LINENO" 5
9291 fi
9292
9293
9294 if test -n "$ac_tool_prefix"; then
9295 # Extract the first word of "${ac_tool_prefix}merge-fdata", so it can be a program name with args.
9296 set dummy ${ac_tool_prefix}merge-fdata; ac_word=$2
9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9298 printf %s "checking for $ac_word... " >&6; }
9299 if test ${ac_cv_path_MERGE_FDATA+y}
9300 then :
9301 printf %s "(cached) " >&6
9302 else $as_nop
9303 case $MERGE_FDATA in
9304 [\\/]* | ?:[\\/]*)
9305 ac_cv_path_MERGE_FDATA="$MERGE_FDATA" # Let the user override the test with a path.
9306 ;;
9307 *)
9308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309 for as_dir in ${llvm_path}
9310 do
9311 IFS=$as_save_IFS
9312 case $as_dir in #(((
9313 '') as_dir=./ ;;
9314 */) ;;
9315 *) as_dir=$as_dir/ ;;
9316 esac
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9319 ac_cv_path_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext"
9320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9321 break 2
9322 fi
9323 done
9324 done
9325 IFS=$as_save_IFS
9326
9327 ;;
9328 esac
9329 fi
9330 MERGE_FDATA=$ac_cv_path_MERGE_FDATA
9331 if test -n "$MERGE_FDATA"; then
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MERGE_FDATA" >&5
9333 printf "%s\n" "$MERGE_FDATA" >&6; }
9334 else
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 printf "%s\n" "no" >&6; }
9337 fi
9338
9339
9340 fi
9341 if test -z "$ac_cv_path_MERGE_FDATA"; then
9342 ac_pt_MERGE_FDATA=$MERGE_FDATA
9343 # Extract the first word of "merge-fdata", so it can be a program name with args.
9344 set dummy merge-fdata; ac_word=$2
9345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 printf %s "checking for $ac_word... " >&6; }
9347 if test ${ac_cv_path_ac_pt_MERGE_FDATA+y}
9348 then :
9349 printf %s "(cached) " >&6
9350 else $as_nop
9351 case $ac_pt_MERGE_FDATA in
9352 [\\/]* | ?:[\\/]*)
9353 ac_cv_path_ac_pt_MERGE_FDATA="$ac_pt_MERGE_FDATA" # Let the user override the test with a path.
9354 ;;
9355 *)
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 for as_dir in ${llvm_path}
9358 do
9359 IFS=$as_save_IFS
9360 case $as_dir in #(((
9361 '') as_dir=./ ;;
9362 */) ;;
9363 *) as_dir=$as_dir/ ;;
9364 esac
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9367 ac_cv_path_ac_pt_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext"
9368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9369 break 2
9370 fi
9371 done
9372 done
9373 IFS=$as_save_IFS
9374
9375 ;;
9376 esac
9377 fi
9378 ac_pt_MERGE_FDATA=$ac_cv_path_ac_pt_MERGE_FDATA
9379 if test -n "$ac_pt_MERGE_FDATA"; then
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MERGE_FDATA" >&5
9381 printf "%s\n" "$ac_pt_MERGE_FDATA" >&6; }
9382 else
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9384 printf "%s\n" "no" >&6; }
9385 fi
9386
9387 if test "x$ac_pt_MERGE_FDATA" = x; then
9388 MERGE_FDATA="''"
9389 else
9390 case $cross_compiling:$ac_tool_warned in
9391 yes:)
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9393 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9394 ac_tool_warned=yes ;;
9395 esac
9396 MERGE_FDATA=$ac_pt_MERGE_FDATA
9397 fi
9398 else
9399 MERGE_FDATA="$ac_cv_path_MERGE_FDATA"
9400 fi
9401
9402 if test -n "${MERGE_FDATA}" -a -x "${MERGE_FDATA}"
9403 then
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found merge-fdata\"" >&5
9405 printf "%s\n" "\"Found merge-fdata\"" >&6; }
9406 else
9407 as_fn_error $? "merge-fdata is required for a --enable-bolt build but could not be found." "$LINENO" 5
9408 fi
9409 fi
9410
9411
9412 BOLT_BINARIES='$(BUILDPYTHON)'
9413 if test "x$enable_shared" = xyes
9414 then :
9415
9416 BOLT_BINARIES="${BOLT_BINARIES} \$(INSTSONAME)"
9417
9418 fi
9419
9420
9421
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_COMMON_FLAGS" >&5
9423 printf %s "checking BOLT_COMMON_FLAGS... " >&6; }
9424 if test -z "${BOLT_COMMON_FLAGS}"
9425 then
9426 BOLT_COMMON_FLAGS=" -update-debug-sections -skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1 "
9427
9428 fi
9429
9430
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_INSTRUMENT_FLAGS" >&5
9432 printf %s "checking BOLT_INSTRUMENT_FLAGS... " >&6; }
9433 if test -z "${BOLT_INSTRUMENT_FLAGS}"
9434 then
9435 BOLT_INSTRUMENT_FLAGS="${BOLT_COMMON_FLAGS}"
9436 fi
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_INSTRUMENT_FLAGS" >&5
9438 printf "%s\n" "$BOLT_INSTRUMENT_FLAGS" >&6; }
9439
9440
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_APPLY_FLAGS" >&5
9442 printf %s "checking BOLT_APPLY_FLAGS... " >&6; }
9443 if test -z "${BOLT_APPLY_FLAGS}"
9444 then
9445 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 "
9446
9447 fi
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_APPLY_FLAGS" >&5
9449 printf "%s\n" "$BOLT_APPLY_FLAGS" >&6; }
9450
9451 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
9452 # merged with this chunk of code?
9453
9454 # Optimizer/debugger flags
9455 # ------------------------
9456 # (The following bit of code is complicated enough - please keep things
9457 # indented properly. Just pretend you're editing Python code. ;-)
9458
9459 # There are two parallel sets of case statements below, one that checks to
9460 # see if OPT was set and one that does BASECFLAGS setting based upon
9461 # compiler and platform. BASECFLAGS tweaks need to be made even if the
9462 # user set OPT.
9463
9464 case $CC in
9465 *clang*)
9466 cc_is_clang=1
9467 ;;
9468 *)
9469 if $CC --version 2>&1 | grep -q clang
9470 then
9471 cc_is_clang=1
9472 else
9473 cc_is_clang=
9474 fi
9475 esac
9476
9477 save_CFLAGS=$CFLAGS
9478 CFLAGS="-fstrict-overflow -fno-strict-overflow"
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow and -fno-strict-overflow" >&5
9480 printf %s "checking if $CC supports -fstrict-overflow and -fno-strict-overflow... " >&6; }
9481 if test ${ac_cv_cc_supports_fstrict_overflow+y}
9482 then :
9483 printf %s "(cached) " >&6
9484 else $as_nop
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9487
9488 int
9489 main (void)
9490 {
9491
9492 ;
9493 return 0;
9494 }
9495 _ACEOF
9496 if ac_fn_c_try_compile "$LINENO"
9497 then :
9498 ac_cv_cc_supports_fstrict_overflow=yes
9499 else $as_nop
9500 ac_cv_cc_supports_fstrict_overflow=no
9501
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9504
9505 fi
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_fstrict_overflow" >&5
9507 printf "%s\n" "$ac_cv_cc_supports_fstrict_overflow" >&6; }
9508 CFLAGS=$save_CFLAGS
9509
9510 if test "x$ac_cv_cc_supports_fstrict_overflow" = xyes
9511 then :
9512 STRICT_OVERFLOW_CFLAGS="-fstrict-overflow"
9513 NO_STRICT_OVERFLOW_CFLAGS="-fno-strict-overflow"
9514 else $as_nop
9515 STRICT_OVERFLOW_CFLAGS=""
9516 NO_STRICT_OVERFLOW_CFLAGS=""
9517 fi
9518
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-strict-overflow" >&5
9520 printf %s "checking for --with-strict-overflow... " >&6; }
9521
9522 # Check whether --with-strict-overflow was given.
9523 if test ${with_strict_overflow+y}
9524 then :
9525 withval=$with_strict_overflow;
9526 if test "x$ac_cv_cc_supports_fstrict_overflow" = xno
9527 then :
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&5
9529 printf "%s\n" "$as_me: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&2;}
9530 fi
9531
9532 else $as_nop
9533 with_strict_overflow=no
9534
9535 fi
9536
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_strict_overflow" >&5
9538 printf "%s\n" "$with_strict_overflow" >&6; }
9539
9540 # Check if CC supports -Og optimization level
9541 save_CFLAGS=$CFLAGS
9542 CFLAGS="-Og"
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Og optimization level" >&5
9544 printf %s "checking if $CC supports -Og optimization level... " >&6; }
9545 if test ${ac_cv_cc_supports_og+y}
9546 then :
9547 printf %s "(cached) " >&6
9548 else $as_nop
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551
9552
9553 int
9554 main (void)
9555 {
9556
9557 ;
9558 return 0;
9559 }
9560
9561 _ACEOF
9562 if ac_fn_c_try_compile "$LINENO"
9563 then :
9564
9565 ac_cv_cc_supports_og=yes
9566
9567 else $as_nop
9568
9569 ac_cv_cc_supports_og=no
9570
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9573
9574 fi
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_og" >&5
9576 printf "%s\n" "$ac_cv_cc_supports_og" >&6; }
9577 CFLAGS=$save_CFLAGS
9578
9579 # Optimization messes up debuggers, so turn it off for
9580 # debug builds.
9581 PYDEBUG_CFLAGS="-O0"
9582 if test "x$ac_cv_cc_supports_og" = xyes
9583 then :
9584 PYDEBUG_CFLAGS="-Og"
9585 fi
9586
9587 # tweak OPT based on compiler and platform, only if the user didn't set
9588 # it on the command line
9589
9590
9591 if test "${OPT-unset}" = "unset"
9592 then
9593 case $GCC in
9594 yes)
9595 if test -n "${cc_is_clang}"
9596 then
9597 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
9598 # see Makefile.pre.in for more information
9599 CFLAGS_ALIASING="-fno-strict-aliasing"
9600 fi
9601
9602 case $ac_cv_prog_cc_g in
9603 yes)
9604 if test "$Py_DEBUG" = 'true' ; then
9605 OPT="-g $PYDEBUG_CFLAGS -Wall"
9606 else
9607 OPT="-g -O3 -Wall"
9608 fi
9609 ;;
9610 *)
9611 OPT="-O3 -Wall"
9612 ;;
9613 esac
9614
9615 case $ac_sys_system in
9616 SCO_SV*) OPT="$OPT -m486 -DSCO5"
9617 ;;
9618 esac
9619 ;;
9620
9621 *)
9622 OPT="-O"
9623 ;;
9624 esac
9625 fi
9626
9627 # WASM flags
9628 case $ac_sys_system in #(
9629 Emscripten) :
9630
9631 if test "x$Py_DEBUG" = xyes
9632 then :
9633 wasm_debug=yes
9634 else $as_nop
9635 wasm_debug=no
9636 fi
9637
9638 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sTOTAL_MEMORY=20971520"
9639
9640 as_fn_append LDFLAGS_NODIST " -sWASM_BIGINT"
9641
9642 as_fn_append LDFLAGS_NODIST " -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js"
9643
9644 if test "x$enable_wasm_dynamic_linking" = xyes
9645 then :
9646
9647 as_fn_append LINKFORSHARED " -sMAIN_MODULE"
9648
9649 fi
9650
9651 if test "x$enable_wasm_pthreads" = xyes
9652 then :
9653
9654 as_fn_append CFLAGS_NODIST " -pthread"
9655 as_fn_append LDFLAGS_NODIST " -sUSE_PTHREADS"
9656 as_fn_append LINKFORSHARED " -sPROXY_TO_PTHREAD"
9657
9658 fi
9659
9660 case $ac_sys_emscripten_target in #(
9661 browser*) :
9662
9663 if test "x$ac_sys_emscripten_target" = xbrowser-debug
9664 then :
9665 wasm_debug=yes
9666 fi
9667 as_fn_append LINKFORSHARED " --preload-file=\$(WASM_ASSETS_DIR)"
9668 WASM_ASSETS_DIR=".\$(prefix)"
9669 WASM_STDLIB="\$(WASM_ASSETS_DIR)/local/lib/python\$(VERSION)/os.py"
9670 WASM_LINKFORSHARED_DEBUG="-gsource-map --emit-symbol-map"
9671 ;; #(
9672 node*) :
9673
9674 if test "x$ac_sys_emscripten_target" = xnode-debug
9675 then :
9676 wasm_debug=yes
9677 fi
9678 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sNODERAWFS"
9679 as_fn_append LINKFORSHARED " -sEXIT_RUNTIME"
9680 WASM_LINKFORSHARED_DEBUG="-gseparate-dwarf --emit-symbol-map"
9681
9682 ;; #(
9683 *) :
9684 ;;
9685 esac
9686
9687 if test "x$wasm_debug" = xyes
9688 then :
9689
9690 as_fn_append LDFLAGS_NODIST " -sASSERTIONS"
9691 as_fn_append LINKFORSHARED " $WASM_LINKFORSHARED_DEBUG"
9692
9693 else $as_nop
9694
9695 as_fn_append LINKFORSHARED " -O2 -g0"
9696
9697 fi
9698 ;; #(
9699 WASI) :
9700
9701
9702 printf "%s\n" "#define _WASI_EMULATED_SIGNAL 1" >>confdefs.h
9703
9704
9705 printf "%s\n" "#define _WASI_EMULATED_GETPID 1" >>confdefs.h
9706
9707
9708 printf "%s\n" "#define _WASI_EMULATED_PROCESS_CLOCKS 1" >>confdefs.h
9709
9710 LIBS="$LIBS -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks"
9711 echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
9712
9713 if test "x$enable_wasm_pthreads" = xyes
9714 then :
9715
9716 # Note: update CFLAGS because ac_compile/ac_link needs this too.
9717 # without this, configure fails to find pthread_create, sem_init,
9718 # etc because they are only available in the sysroot for
9719 # wasm32-wasi-threads.
9720 # Note: wasi-threads requires --import-memory.
9721 # Note: wasi requires --export-memory.
9722 # Note: --export-memory is implicit unless --import-memory is given
9723 # Note: this requires LLVM >= 16.
9724 as_fn_append CFLAGS " -target wasm32-wasi-threads -pthread"
9725 as_fn_append CFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
9726 as_fn_append LDFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
9727 as_fn_append LDFLAGS_NODIST " -Wl,--import-memory"
9728 as_fn_append LDFLAGS_NODIST " -Wl,--export-memory"
9729 as_fn_append LDFLAGS_NODIST " -Wl,--max-memory=10485760"
9730
9731 fi
9732
9733 as_fn_append LDFLAGS_NODIST " -z stack-size=8388608 -Wl,--stack-first -Wl,--initial-memory=20971520"
9734
9735 ;; #(
9736 *) :
9737 ;;
9738 esac
9739
9740 case $enable_wasm_dynamic_linking in #(
9741 yes) :
9742 ac_cv_func_dlopen=yes ;; #(
9743 no) :
9744 ac_cv_func_dlopen=no ;; #(
9745 missing) :
9746
9747 ;; #(
9748 *) :
9749 ;;
9750 esac
9751
9752
9753
9754
9755
9756
9757
9758
9759 # The -arch flags for universal builds on macOS
9760 UNIVERSAL_ARCH_FLAGS=
9761
9762
9763
9764
9765 # tweak BASECFLAGS based on compiler and platform
9766 if test "x$with_strict_overflow" = xyes
9767 then :
9768 BASECFLAGS="$BASECFLAGS $STRICT_OVERFLOW_CFLAGS"
9769 else $as_nop
9770 BASECFLAGS="$BASECFLAGS $NO_STRICT_OVERFLOW_CFLAGS"
9771 fi
9772
9773 case $GCC in
9774 yes)
9775 CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
9776
9777
9778
9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can add -Wextra" >&5
9780 printf %s "checking if we can add -Wextra... " >&6; }
9781 if test ${ac_cv_enable_extra_warning+y}
9782 then :
9783 printf %s "(cached) " >&6
9784 else $as_nop
9785
9786 py_cflags=$CFLAGS
9787 as_fn_append CFLAGS " -Wextra -Werror"
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790
9791 int
9792 main (void)
9793 {
9794
9795 ;
9796 return 0;
9797 }
9798 _ACEOF
9799 if ac_fn_c_try_compile "$LINENO"
9800 then :
9801 ac_cv_enable_extra_warning=yes
9802 else $as_nop
9803 ac_cv_enable_extra_warning=no
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9806 CFLAGS=$py_cflags
9807
9808 fi
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_extra_warning" >&5
9810 printf "%s\n" "$ac_cv_enable_extra_warning" >&6; }
9811
9812
9813 if test "x$ac_cv_enable_extra_warning" = xyes
9814 then :
9815 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
9816 fi
9817
9818 # Python doesn't violate C99 aliasing rules, but older versions of
9819 # GCC produce warnings for legal Python code. Enable
9820 # -fno-strict-aliasing on versions of GCC that support but produce
9821 # warnings. See Issue3326
9822 ac_save_cc="$CC"
9823 CC="$CC -fno-strict-aliasing"
9824 save_CFLAGS="$CFLAGS"
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
9826 printf %s "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
9827 if test ${ac_cv_no_strict_aliasing+y}
9828 then :
9829 printf %s "(cached) " >&6
9830 else $as_nop
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9833
9834
9835 int
9836 main (void)
9837 {
9838
9839 ;
9840 return 0;
9841 }
9842
9843 _ACEOF
9844 if ac_fn_c_try_compile "$LINENO"
9845 then :
9846
9847 CC="$ac_save_cc -fstrict-aliasing"
9848 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9851
9852 void f(int **x) {}
9853 int
9854 main (void)
9855 {
9856 double *x; f((int **) &x);
9857 ;
9858 return 0;
9859 }
9860
9861 _ACEOF
9862 if ac_fn_c_try_compile "$LINENO"
9863 then :
9864
9865 ac_cv_no_strict_aliasing=no
9866
9867 else $as_nop
9868
9869 ac_cv_no_strict_aliasing=yes
9870
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9873
9874 else $as_nop
9875
9876 ac_cv_no_strict_aliasing=no
9877
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9880 fi
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
9882 printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; }
9883 CFLAGS="$save_CFLAGS"
9884 CC="$ac_save_cc"
9885 if test "x$ac_cv_no_strict_aliasing" = xyes
9886 then :
9887 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
9888 fi
9889
9890 # ICC doesn't recognize the option, but only emits a warning
9891 ## XXX does it emit an unused result warning and can it be disabled?
9892 case "$CC_BASENAME" in #(
9893 *icc*) :
9894 ac_cv_disable_unused_result_warning=no
9895
9896
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-result warning" >&5
9898 printf %s "checking if we can disable $CC unused-result warning... " >&6; }
9899 if test ${ac_cv_disable_unused_result_warning+y}
9900 then :
9901 printf %s "(cached) " >&6
9902 else $as_nop
9903
9904 py_cflags=$CFLAGS
9905 as_fn_append CFLAGS " -Wunused-result -Werror"
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908
9909 int
9910 main (void)
9911 {
9912
9913 ;
9914 return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"
9918 then :
9919 ac_cv_disable_unused_result_warning=yes
9920 else $as_nop
9921 ac_cv_disable_unused_result_warning=no
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9924 CFLAGS=$py_cflags
9925
9926 fi
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
9928 printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; }
9929
9930 ;; #(
9931 *) :
9932 ;;
9933 esac
9934 if test "x$ac_cv_disable_unused_result_warning" = xyes
9935 then :
9936 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
9937 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
9938 fi
9939
9940
9941
9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-parameter warning" >&5
9943 printf %s "checking if we can disable $CC unused-parameter warning... " >&6; }
9944 if test ${ac_cv_disable_unused_parameter_warning+y}
9945 then :
9946 printf %s "(cached) " >&6
9947 else $as_nop
9948
9949 py_cflags=$CFLAGS
9950 as_fn_append CFLAGS " -Wunused-parameter -Werror"
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953
9954 int
9955 main (void)
9956 {
9957
9958 ;
9959 return 0;
9960 }
9961 _ACEOF
9962 if ac_fn_c_try_compile "$LINENO"
9963 then :
9964 ac_cv_disable_unused_parameter_warning=yes
9965 else $as_nop
9966 ac_cv_disable_unused_parameter_warning=no
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9969 CFLAGS=$py_cflags
9970
9971 fi
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
9973 printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; }
9974
9975
9976 if test "x$ac_cv_disable_unused_parameter_warning" = xyes
9977 then :
9978 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
9979 fi
9980
9981
9982
9983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC int-conversion warning" >&5
9984 printf %s "checking if we can disable $CC int-conversion warning... " >&6; }
9985 if test ${ac_cv_disable_int_conversion_warning+y}
9986 then :
9987 printf %s "(cached) " >&6
9988 else $as_nop
9989
9990 py_cflags=$CFLAGS
9991 as_fn_append CFLAGS " -Wint-conversion -Werror"
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994
9995 int
9996 main (void)
9997 {
9998
9999 ;
10000 return 0;
10001 }
10002 _ACEOF
10003 if ac_fn_c_try_compile "$LINENO"
10004 then :
10005 ac_cv_disable_int_conversion_warning=yes
10006 else $as_nop
10007 ac_cv_disable_int_conversion_warning=no
10008 fi
10009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10010 CFLAGS=$py_cflags
10011
10012 fi
10013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_int_conversion_warning" >&5
10014 printf "%s\n" "$ac_cv_disable_int_conversion_warning" >&6; }
10015
10016
10017 if test "x$ac_cv_disable_int_conversion" = xyes
10018 then :
10019 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-int-conversion"
10020 fi
10021
10022
10023
10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5
10025 printf %s "checking if we can disable $CC missing-field-initializers warning... " >&6; }
10026 if test ${ac_cv_disable_missing_field_initializers_warning+y}
10027 then :
10028 printf %s "(cached) " >&6
10029 else $as_nop
10030
10031 py_cflags=$CFLAGS
10032 as_fn_append CFLAGS " -Wmissing-field-initializers -Werror"
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10035
10036 int
10037 main (void)
10038 {
10039
10040 ;
10041 return 0;
10042 }
10043 _ACEOF
10044 if ac_fn_c_try_compile "$LINENO"
10045 then :
10046 ac_cv_disable_missing_field_initializers_warning=yes
10047 else $as_nop
10048 ac_cv_disable_missing_field_initializers_warning=no
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10051 CFLAGS=$py_cflags
10052
10053 fi
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers_warning" >&5
10055 printf "%s\n" "$ac_cv_disable_missing_field_initializers_warning" >&6; }
10056
10057
10058 if test "x$ac_cv_disable_missing_field_initializers_warning" = xyes
10059 then :
10060 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
10061 fi
10062
10063
10064
10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC sign-compare warning" >&5
10066 printf %s "checking if we can enable $CC sign-compare warning... " >&6; }
10067 if test ${ac_cv_enable_sign_compare_warning+y}
10068 then :
10069 printf %s "(cached) " >&6
10070 else $as_nop
10071
10072 py_cflags=$CFLAGS
10073 as_fn_append CFLAGS " -Wsign-compare -Werror"
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10076
10077 int
10078 main (void)
10079 {
10080
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_compile "$LINENO"
10086 then :
10087 ac_cv_enable_sign_compare_warning=yes
10088 else $as_nop
10089 ac_cv_enable_sign_compare_warning=no
10090 fi
10091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10092 CFLAGS=$py_cflags
10093
10094 fi
10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
10096 printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; }
10097
10098
10099 if test "x$ac_cv_enable_sign_compare_warning" = xyes
10100 then :
10101 BASECFLAGS="$BASECFLAGS -Wsign-compare"
10102 fi
10103
10104
10105
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC unreachable-code warning" >&5
10107 printf %s "checking if we can enable $CC unreachable-code warning... " >&6; }
10108 if test ${ac_cv_enable_unreachable_code_warning+y}
10109 then :
10110 printf %s "(cached) " >&6
10111 else $as_nop
10112
10113 py_cflags=$CFLAGS
10114 as_fn_append CFLAGS " -Wunreachable-code -Werror"
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10117
10118 int
10119 main (void)
10120 {
10121
10122 ;
10123 return 0;
10124 }
10125 _ACEOF
10126 if ac_fn_c_try_compile "$LINENO"
10127 then :
10128 ac_cv_enable_unreachable_code_warning=yes
10129 else $as_nop
10130 ac_cv_enable_unreachable_code_warning=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10133 CFLAGS=$py_cflags
10134
10135 fi
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
10137 printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; }
10138
10139
10140 # Don't enable unreachable code warning in debug mode, since it usually
10141 # results in non-standard code paths.
10142 # Issue #24324: Unfortunately, the unreachable code warning does not work
10143 # correctly on gcc and has been silently removed from the compiler.
10144 # It is supported on clang but on OS X systems gcc may be an alias
10145 # for clang. Try to determine if the compiler is not really gcc and,
10146 # if so, only then enable the warning.
10147 if test $ac_cv_enable_unreachable_code_warning = yes && \
10148 test "$Py_DEBUG" != "true" && \
10149 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
10150 then
10151 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
10152 else
10153 ac_cv_enable_unreachable_code_warning=no
10154 fi
10155
10156
10157
10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC strict-prototypes warning" >&5
10159 printf %s "checking if we can enable $CC strict-prototypes warning... " >&6; }
10160 if test ${ac_cv_enable_strict_prototypes_warning+y}
10161 then :
10162 printf %s "(cached) " >&6
10163 else $as_nop
10164
10165 py_cflags=$CFLAGS
10166 as_fn_append CFLAGS " -Wstrict-prototypes -Werror"
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10169
10170 int
10171 main (void)
10172 {
10173
10174 ;
10175 return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_c_try_compile "$LINENO"
10179 then :
10180 ac_cv_enable_strict_prototypes_warning=yes
10181 else $as_nop
10182 ac_cv_enable_strict_prototypes_warning=no
10183 fi
10184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10185 CFLAGS=$py_cflags
10186
10187 fi
10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
10189 printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; }
10190
10191
10192 if test "x$ac_cv_enable_strict_prototypes_warning" = xyes
10193 then :
10194 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
10195 fi
10196
10197 ac_save_cc="$CC"
10198 CC="$CC -Werror=implicit-function-declaration"
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
10200 printf %s "checking if we can make implicit function declaration an error in $CC... " >&6; }
10201 if test ${ac_cv_enable_implicit_function_declaration_error+y}
10202 then :
10203 printf %s "(cached) " >&6
10204 else $as_nop
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207
10208
10209 int
10210 main (void)
10211 {
10212
10213 ;
10214 return 0;
10215 }
10216
10217 _ACEOF
10218 if ac_fn_c_try_compile "$LINENO"
10219 then :
10220
10221 ac_cv_enable_implicit_function_declaration_error=yes
10222
10223 else $as_nop
10224
10225 ac_cv_enable_implicit_function_declaration_error=no
10226
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10229 fi
10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
10231 printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; }
10232 CC="$ac_save_cc"
10233
10234 if test "x$ac_cv_enable_implicit_function_declaration_error" = xyes
10235 then :
10236 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
10237 fi
10238
10239 ac_save_cc="$CC"
10240 CC="$CC -fvisibility=hidden"
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5
10242 printf %s "checking if we can use visibility in $CC... " >&6; }
10243 if test ${ac_cv_enable_visibility+y}
10244 then :
10245 printf %s "(cached) " >&6
10246 else $as_nop
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249
10250
10251 int
10252 main (void)
10253 {
10254
10255 ;
10256 return 0;
10257 }
10258
10259 _ACEOF
10260 if ac_fn_c_try_compile "$LINENO"
10261 then :
10262
10263 ac_cv_enable_visibility=yes
10264
10265 else $as_nop
10266
10267 ac_cv_enable_visibility=no
10268
10269 fi
10270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10271 fi
10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5
10273 printf "%s\n" "$ac_cv_enable_visibility" >&6; }
10274 CC="$ac_save_cc"
10275
10276 if test "x$ac_cv_enable_visibility" = xyes
10277 then :
10278 CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden"
10279 fi
10280
10281 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
10282 # support. Without this, treatment of subnormals doesn't follow
10283 # the standard.
10284 case $host in
10285 alpha*)
10286 BASECFLAGS="$BASECFLAGS -mieee"
10287 ;;
10288 esac
10289
10290 case $ac_sys_system in
10291 SCO_SV*)
10292 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
10293 ;;
10294
10295 Darwin*)
10296 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
10297 # used to be here, but non-Apple gcc doesn't accept them.
10298 if test "${CC}" = gcc
10299 then
10300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
10301 printf %s "checking which compiler should be used... " >&6; }
10302 case "${UNIVERSALSDK}" in
10303 */MacOSX10.4u.sdk)
10304 # Build using 10.4 SDK, force usage of gcc when the
10305 # compiler is gcc, otherwise the user will get very
10306 # confusing error messages when building on OSX 10.6
10307 CC=gcc-4.0
10308 CPP=cpp-4.0
10309 ;;
10310 esac
10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10312 printf "%s\n" "$CC" >&6; }
10313 fi
10314
10315 LIPO_INTEL64_FLAGS=""
10316 if test "${enable_universalsdk}"
10317 then
10318 case "$UNIVERSAL_ARCHS" in
10319 32-bit)
10320 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
10321 LIPO_32BIT_FLAGS=""
10322 ARCH_RUN_32BIT=""
10323 ;;
10324 64-bit)
10325 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
10326 LIPO_32BIT_FLAGS=""
10327 ARCH_RUN_32BIT="true"
10328 ;;
10329 all)
10330 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
10331 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10332 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10333 ;;
10334 universal2)
10335 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64"
10336 LIPO_32BIT_FLAGS=""
10337 LIPO_INTEL64_FLAGS="-extract x86_64"
10338 ARCH_RUN_32BIT="true"
10339 ;;
10340 intel)
10341 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
10342 LIPO_32BIT_FLAGS="-extract i386"
10343 ARCH_RUN_32BIT="/usr/bin/arch -i386"
10344 ;;
10345 intel-32)
10346 UNIVERSAL_ARCH_FLAGS="-arch i386"
10347 LIPO_32BIT_FLAGS=""
10348 ARCH_RUN_32BIT=""
10349 ;;
10350 intel-64)
10351 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
10352 LIPO_32BIT_FLAGS=""
10353 ARCH_RUN_32BIT="true"
10354 ;;
10355 3-way)
10356 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
10357 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10358 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10359 ;;
10360 *)
10361 as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5
10362 ;;
10363 esac
10364
10365 if test "${UNIVERSALSDK}" != "/"
10366 then
10367 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
10368 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10369 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
10370 else
10371 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
10372 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
10373 fi
10374 fi
10375
10376 # Calculate an appropriate deployment target for this build:
10377 # The deployment target value is used explicitly to enable certain
10378 # features are enabled (such as builtin libedit support for readline)
10379 # through the use of Apple's Availability Macros and is used as a
10380 # component of the string returned by distutils.get_platform().
10381 #
10382 # Use the value from:
10383 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
10384 # 2. the operating system version of the build machine if >= 10.6
10385 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
10386 # below to pick either 10.3, 10.4, or 10.5 as the target.
10387 # 4. If we are running on OS X 10.2 or earlier, good luck!
10388
10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
10390 printf %s "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
10391 cur_target_major=`sw_vers -productVersion | \
10392 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
10393 cur_target_minor=`sw_vers -productVersion | \
10394 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
10395 cur_target="${cur_target_major}.${cur_target_minor}"
10396 if test ${cur_target_major} -eq 10 && \
10397 test ${cur_target_minor} -ge 3 && \
10398 test ${cur_target_minor} -le 5
10399 then
10400 # OS X 10.3 through 10.5
10401 cur_target=10.3
10402 if test ${enable_universalsdk}
10403 then
10404 case "$UNIVERSAL_ARCHS" in
10405 all|3-way|intel|64-bit)
10406 # These configurations were first supported in 10.5
10407 cur_target='10.5'
10408 ;;
10409 esac
10410 else
10411 if test `/usr/bin/arch` = "i386"
10412 then
10413 # 10.4 was the first release to support Intel archs
10414 cur_target="10.4"
10415 fi
10416 fi
10417 fi
10418 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10419
10420 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
10421 # environment with a value that is the same as what we'll use
10422 # in the Makefile to ensure that we'll get the same compiler
10423 # environment during configure and build time.
10424 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
10425 export MACOSX_DEPLOYMENT_TARGET
10426 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
10428 printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; }
10429
10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5
10431 printf %s "checking if specified universal architectures work... " >&6; }
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434 #include <stdio.h>
10435 int
10436 main (void)
10437 {
10438 printf("%d", 42);
10439 ;
10440 return 0;
10441 }
10442 _ACEOF
10443 if ac_fn_c_try_link "$LINENO"
10444 then :
10445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10446 printf "%s\n" "yes" >&6; }
10447 else $as_nop
10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 printf "%s\n" "no" >&6; }
10450 as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5
10451
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10454 conftest$ac_exeext conftest.$ac_ext
10455
10456 # end of Darwin* tests
10457 ;;
10458 esac
10459 ;;
10460
10461 *)
10462 case $ac_sys_system in
10463 OpenUNIX*|UnixWare*)
10464 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
10465 ;;
10466 SCO_SV*)
10467 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
10468 ;;
10469 esac
10470 ;;
10471 esac
10472
10473 case "$CC_BASENAME" in
10474 *mpicc*)
10475 CFLAGS_NODIST="$CFLAGS_NODIST"
10476 ;;
10477 *icc*)
10478 # ICC needs -fp-model strict or floats behave badly
10479 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
10480 ;;
10481 *xlc*)
10482 CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
10483 ;;
10484 esac
10485
10486 if test "$assertions" = 'true'; then
10487 :
10488 else
10489 OPT="-DNDEBUG $OPT"
10490 fi
10491
10492 if test "$ac_arch_flags"
10493 then
10494 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
10495 fi
10496
10497 # On some compilers, pthreads are available without further options
10498 # (e.g. MacOS X). On some of these systems, the compiler will not
10499 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
10500 # So we have to see first whether pthreads are available without
10501 # options before we can check whether -Kpthread improves anything.
10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
10503 printf %s "checking whether pthreads are available without options... " >&6; }
10504 if test ${ac_cv_pthread_is_default+y}
10505 then :
10506 printf %s "(cached) " >&6
10507 else $as_nop
10508 if test "$cross_compiling" = yes
10509 then :
10510 ac_cv_pthread_is_default=no
10511 else $as_nop
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10514
10515 #include <stdio.h>
10516 #include <pthread.h>
10517
10518 void* routine(void* p){return NULL;}
10519
10520 int main(void){
10521 pthread_t p;
10522 if(pthread_create(&p,NULL,routine,NULL)!=0)
10523 return 1;
10524 (void)pthread_detach(p);
10525 return 0;
10526 }
10527
10528 _ACEOF
10529 if ac_fn_c_try_run "$LINENO"
10530 then :
10531
10532 ac_cv_pthread_is_default=yes
10533 ac_cv_kthread=no
10534 ac_cv_pthread=no
10535
10536 else $as_nop
10537 ac_cv_pthread_is_default=no
10538 fi
10539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10540 conftest.$ac_objext conftest.beam conftest.$ac_ext
10541 fi
10542
10543
10544 fi
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
10546 printf "%s\n" "$ac_cv_pthread_is_default" >&6; }
10547
10548
10549 if test $ac_cv_pthread_is_default = yes
10550 then
10551 ac_cv_kpthread=no
10552 else
10553 # -Kpthread, if available, provides the right #defines
10554 # and linker options to make pthread_create available
10555 # Some compilers won't report that they do not support -Kpthread,
10556 # so we need to run a program to see whether it really made the
10557 # function available.
10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
10559 printf %s "checking whether $CC accepts -Kpthread... " >&6; }
10560 if test ${ac_cv_kpthread+y}
10561 then :
10562 printf %s "(cached) " >&6
10563 else $as_nop
10564 ac_save_cc="$CC"
10565 CC="$CC -Kpthread"
10566 if test "$cross_compiling" = yes
10567 then :
10568 ac_cv_kpthread=no
10569 else $as_nop
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10572
10573 #include <stdio.h>
10574 #include <pthread.h>
10575
10576 void* routine(void* p){return NULL;}
10577
10578 int main(void){
10579 pthread_t p;
10580 if(pthread_create(&p,NULL,routine,NULL)!=0)
10581 return 1;
10582 (void)pthread_detach(p);
10583 return 0;
10584 }
10585
10586 _ACEOF
10587 if ac_fn_c_try_run "$LINENO"
10588 then :
10589 ac_cv_kpthread=yes
10590 else $as_nop
10591 ac_cv_kpthread=no
10592 fi
10593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10594 conftest.$ac_objext conftest.beam conftest.$ac_ext
10595 fi
10596
10597 CC="$ac_save_cc"
10598 fi
10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
10600 printf "%s\n" "$ac_cv_kpthread" >&6; }
10601 fi
10602
10603 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
10604 then
10605 # -Kthread, if available, provides the right #defines
10606 # and linker options to make pthread_create available
10607 # Some compilers won't report that they do not support -Kthread,
10608 # so we need to run a program to see whether it really made the
10609 # function available.
10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
10611 printf %s "checking whether $CC accepts -Kthread... " >&6; }
10612 if test ${ac_cv_kthread+y}
10613 then :
10614 printf %s "(cached) " >&6
10615 else $as_nop
10616 ac_save_cc="$CC"
10617 CC="$CC -Kthread"
10618 if test "$cross_compiling" = yes
10619 then :
10620 ac_cv_kthread=no
10621 else $as_nop
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624
10625 #include <stdio.h>
10626 #include <pthread.h>
10627
10628 void* routine(void* p){return NULL;}
10629
10630 int main(void){
10631 pthread_t p;
10632 if(pthread_create(&p,NULL,routine,NULL)!=0)
10633 return 1;
10634 (void)pthread_detach(p);
10635 return 0;
10636 }
10637
10638 _ACEOF
10639 if ac_fn_c_try_run "$LINENO"
10640 then :
10641 ac_cv_kthread=yes
10642 else $as_nop
10643 ac_cv_kthread=no
10644 fi
10645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10646 conftest.$ac_objext conftest.beam conftest.$ac_ext
10647 fi
10648
10649 CC="$ac_save_cc"
10650 fi
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
10652 printf "%s\n" "$ac_cv_kthread" >&6; }
10653 fi
10654
10655 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
10656 then
10657 # -pthread, if available, provides the right #defines
10658 # and linker options to make pthread_create available
10659 # Some compilers won't report that they do not support -pthread,
10660 # so we need to run a program to see whether it really made the
10661 # function available.
10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
10663 printf %s "checking whether $CC accepts -pthread... " >&6; }
10664 if test ${ac_cv_pthread+y}
10665 then :
10666 printf %s "(cached) " >&6
10667 else $as_nop
10668 ac_save_cc="$CC"
10669 CC="$CC -pthread"
10670 if test "$cross_compiling" = yes
10671 then :
10672 ac_cv_pthread=no
10673 else $as_nop
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676
10677 #include <stdio.h>
10678 #include <pthread.h>
10679
10680 void* routine(void* p){return NULL;}
10681
10682 int main(void){
10683 pthread_t p;
10684 if(pthread_create(&p,NULL,routine,NULL)!=0)
10685 return 1;
10686 (void)pthread_detach(p);
10687 return 0;
10688 }
10689
10690 _ACEOF
10691 if ac_fn_c_try_run "$LINENO"
10692 then :
10693 ac_cv_pthread=yes
10694 else $as_nop
10695 ac_cv_pthread=no
10696 fi
10697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10698 conftest.$ac_objext conftest.beam conftest.$ac_ext
10699 fi
10700
10701 CC="$ac_save_cc"
10702 fi
10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
10704 printf "%s\n" "$ac_cv_pthread" >&6; }
10705 fi
10706
10707 # If we have set a CC compiler flag for thread support then
10708 # check if it works for CXX, too.
10709 if test ! -z "$CXX"
10710 then
10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
10712 printf %s "checking whether $CXX also accepts flags for thread support... " >&6; }
10713 if test ${ac_cv_cxx_thread+y}
10714 then :
10715 printf %s "(cached) " >&6
10716 else $as_nop
10717 ac_save_cxx="$CXX"
10718
10719 if test "$ac_cv_kpthread" = "yes"
10720 then
10721 CXX="$CXX -Kpthread"
10722 ac_cv_cxx_thread=yes
10723 elif test "$ac_cv_kthread" = "yes"
10724 then
10725 CXX="$CXX -Kthread"
10726 ac_cv_cxx_thread=yes
10727 elif test "$ac_cv_pthread" = "yes"
10728 then
10729 CXX="$CXX -pthread"
10730 ac_cv_cxx_thread=yes
10731 else
10732 ac_cv_cxx_thread=no
10733 fi
10734
10735 if test $ac_cv_cxx_thread = yes
10736 then
10737 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
10738 $CXX -c conftest.$ac_ext 2>&5
10739 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
10740 && test -s conftest$ac_exeext && ./conftest$ac_exeext
10741 then
10742 ac_cv_cxx_thread=yes
10743 else
10744 ac_cv_cxx_thread=no
10745 fi
10746 rm -fr conftest*
10747 fi
10748 CXX="$ac_save_cxx"
10749 fi
10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
10751 printf "%s\n" "$ac_cv_cxx_thread" >&6; }
10752 else
10753 ac_cv_cxx_thread=no
10754 fi
10755
10756
10757
10758 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10759
10760
10761 # checks for header files
10762 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
10763 if test "x$ac_cv_header_alloca_h" = xyes
10764 then :
10765 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
10766
10767 fi
10768 ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
10769 if test "x$ac_cv_header_asm_types_h" = xyes
10770 then :
10771 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
10772
10773 fi
10774 ac_fn_c_check_header_compile "$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default"
10775 if test "x$ac_cv_header_bluetooth_h" = xyes
10776 then :
10777 printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h
10778
10779 fi
10780 ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default"
10781 if test "x$ac_cv_header_conio_h" = xyes
10782 then :
10783 printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h
10784
10785 fi
10786 ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default"
10787 if test "x$ac_cv_header_direct_h" = xyes
10788 then :
10789 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h
10790
10791 fi
10792 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10793 if test "x$ac_cv_header_dlfcn_h" = xyes
10794 then :
10795 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10796
10797 fi
10798 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
10799 if test "x$ac_cv_header_endian_h" = xyes
10800 then :
10801 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
10802
10803 fi
10804 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
10805 if test "x$ac_cv_header_errno_h" = xyes
10806 then :
10807 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
10808
10809 fi
10810 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
10811 if test "x$ac_cv_header_fcntl_h" = xyes
10812 then :
10813 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
10814
10815 fi
10816 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
10817 if test "x$ac_cv_header_grp_h" = xyes
10818 then :
10819 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
10820
10821 fi
10822 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
10823 if test "x$ac_cv_header_io_h" = xyes
10824 then :
10825 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
10826
10827 fi
10828 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
10829 if test "x$ac_cv_header_langinfo_h" = xyes
10830 then :
10831 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
10832
10833 fi
10834 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10835 if test "x$ac_cv_header_libintl_h" = xyes
10836 then :
10837 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
10838
10839 fi
10840 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
10841 if test "x$ac_cv_header_libutil_h" = xyes
10842 then :
10843 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
10844
10845 fi
10846 ac_fn_c_check_header_compile "$LINENO" "linux/auxvec.h" "ac_cv_header_linux_auxvec_h" "$ac_includes_default"
10847 if test "x$ac_cv_header_linux_auxvec_h" = xyes
10848 then :
10849 printf "%s\n" "#define HAVE_LINUX_AUXVEC_H 1" >>confdefs.h
10850
10851 fi
10852 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
10853 if test "x$ac_cv_header_sys_auxv_h" = xyes
10854 then :
10855 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
10856
10857 fi
10858 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
10859 if test "x$ac_cv_header_linux_fs_h" = xyes
10860 then :
10861 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
10862
10863 fi
10864 ac_fn_c_check_header_compile "$LINENO" "linux/limits.h" "ac_cv_header_linux_limits_h" "$ac_includes_default"
10865 if test "x$ac_cv_header_linux_limits_h" = xyes
10866 then :
10867 printf "%s\n" "#define HAVE_LINUX_LIMITS_H 1" >>confdefs.h
10868
10869 fi
10870 ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default"
10871 if test "x$ac_cv_header_linux_memfd_h" = xyes
10872 then :
10873 printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h
10874
10875 fi
10876 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
10877 if test "x$ac_cv_header_linux_random_h" = xyes
10878 then :
10879 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h
10880
10881 fi
10882 ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
10883 if test "x$ac_cv_header_linux_soundcard_h" = xyes
10884 then :
10885 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h
10886
10887 fi
10888 ac_fn_c_check_header_compile "$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default"
10889 if test "x$ac_cv_header_linux_tipc_h" = xyes
10890 then :
10891 printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h
10892
10893 fi
10894 ac_fn_c_check_header_compile "$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default"
10895 if test "x$ac_cv_header_linux_wait_h" = xyes
10896 then :
10897 printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h
10898
10899 fi
10900 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
10901 if test "x$ac_cv_header_netdb_h" = xyes
10902 then :
10903 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
10904
10905 fi
10906 ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default"
10907 if test "x$ac_cv_header_net_ethernet_h" = xyes
10908 then :
10909 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
10910
10911 fi
10912 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
10913 if test "x$ac_cv_header_netinet_in_h" = xyes
10914 then :
10915 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
10916
10917 fi
10918 ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
10919 if test "x$ac_cv_header_netpacket_packet_h" = xyes
10920 then :
10921 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h
10922
10923 fi
10924 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
10925 if test "x$ac_cv_header_poll_h" = xyes
10926 then :
10927 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
10928
10929 fi
10930 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
10931 if test "x$ac_cv_header_process_h" = xyes
10932 then :
10933 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
10934
10935 fi
10936 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10937 if test "x$ac_cv_header_pthread_h" = xyes
10938 then :
10939 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
10940
10941 fi
10942 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
10943 if test "x$ac_cv_header_pty_h" = xyes
10944 then :
10945 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
10946
10947 fi
10948 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
10949 if test "x$ac_cv_header_sched_h" = xyes
10950 then :
10951 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
10952
10953 fi
10954 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
10955 if test "x$ac_cv_header_setjmp_h" = xyes
10956 then :
10957 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
10958
10959 fi
10960 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
10961 if test "x$ac_cv_header_shadow_h" = xyes
10962 then :
10963 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
10964
10965 fi
10966 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
10967 if test "x$ac_cv_header_signal_h" = xyes
10968 then :
10969 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
10970
10971 fi
10972 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
10973 if test "x$ac_cv_header_spawn_h" = xyes
10974 then :
10975 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
10976
10977 fi
10978 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
10979 if test "x$ac_cv_header_stropts_h" = xyes
10980 then :
10981 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
10982
10983 fi
10984 ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
10985 if test "x$ac_cv_header_sys_audioio_h" = xyes
10986 then :
10987 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
10988
10989 fi
10990 ac_fn_c_check_header_compile "$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default"
10991 if test "x$ac_cv_header_sys_bsdtty_h" = xyes
10992 then :
10993 printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h
10994
10995 fi
10996 ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
10997 if test "x$ac_cv_header_sys_devpoll_h" = xyes
10998 then :
10999 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
11000
11001 fi
11002 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
11003 if test "x$ac_cv_header_sys_endian_h" = xyes
11004 then :
11005 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
11006
11007 fi
11008 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
11009 if test "x$ac_cv_header_sys_epoll_h" = xyes
11010 then :
11011 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
11012
11013 fi
11014 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
11015 if test "x$ac_cv_header_sys_event_h" = xyes
11016 then :
11017 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
11018
11019 fi
11020 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
11021 if test "x$ac_cv_header_sys_eventfd_h" = xyes
11022 then :
11023 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
11024
11025 fi
11026 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
11027 if test "x$ac_cv_header_sys_file_h" = xyes
11028 then :
11029 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
11030
11031 fi
11032 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
11033 if test "x$ac_cv_header_sys_ioctl_h" = xyes
11034 then :
11035 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
11036
11037 fi
11038 ac_fn_c_check_header_compile "$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default"
11039 if test "x$ac_cv_header_sys_kern_control_h" = xyes
11040 then :
11041 printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h
11042
11043 fi
11044 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
11045 if test "x$ac_cv_header_sys_loadavg_h" = xyes
11046 then :
11047 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
11048
11049 fi
11050 ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default"
11051 if test "x$ac_cv_header_sys_lock_h" = xyes
11052 then :
11053 printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h
11054
11055 fi
11056 ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
11057 if test "x$ac_cv_header_sys_memfd_h" = xyes
11058 then :
11059 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h
11060
11061 fi
11062 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11063 if test "x$ac_cv_header_sys_mkdev_h" = xyes
11064 then :
11065 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
11066
11067 fi
11068 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11069 if test "x$ac_cv_header_sys_mman_h" = xyes
11070 then :
11071 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
11072
11073 fi
11074 ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
11075 if test "x$ac_cv_header_sys_modem_h" = xyes
11076 then :
11077 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
11078
11079 fi
11080 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
11081 if test "x$ac_cv_header_sys_param_h" = xyes
11082 then :
11083 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
11084
11085 fi
11086 ac_fn_c_check_header_compile "$LINENO" "sys/pidfd.h" "ac_cv_header_sys_pidfd_h" "$ac_includes_default"
11087 if test "x$ac_cv_header_sys_pidfd_h" = xyes
11088 then :
11089 printf "%s\n" "#define HAVE_SYS_PIDFD_H 1" >>confdefs.h
11090
11091 fi
11092 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
11093 if test "x$ac_cv_header_sys_poll_h" = xyes
11094 then :
11095 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
11096
11097 fi
11098 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
11099 if test "x$ac_cv_header_sys_random_h" = xyes
11100 then :
11101 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
11102
11103 fi
11104 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
11105 if test "x$ac_cv_header_sys_resource_h" = xyes
11106 then :
11107 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
11108
11109 fi
11110 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
11111 if test "x$ac_cv_header_sys_select_h" = xyes
11112 then :
11113 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
11114
11115 fi
11116 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
11117 if test "x$ac_cv_header_sys_sendfile_h" = xyes
11118 then :
11119 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
11120
11121 fi
11122 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11123 if test "x$ac_cv_header_sys_socket_h" = xyes
11124 then :
11125 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
11126
11127 fi
11128 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11129 if test "x$ac_cv_header_sys_soundcard_h" = xyes
11130 then :
11131 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
11132
11133 fi
11134 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
11135 if test "x$ac_cv_header_sys_stat_h" = xyes
11136 then :
11137 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
11138
11139 fi
11140 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
11141 if test "x$ac_cv_header_sys_statvfs_h" = xyes
11142 then :
11143 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
11144
11145 fi
11146 ac_fn_c_check_header_compile "$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default"
11147 if test "x$ac_cv_header_sys_sys_domain_h" = xyes
11148 then :
11149 printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h
11150
11151 fi
11152 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
11153 if test "x$ac_cv_header_sys_syscall_h" = xyes
11154 then :
11155 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
11156
11157 fi
11158 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
11159 if test "x$ac_cv_header_sys_sysctl_h" = xyes
11160 then :
11161 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
11162
11163 fi
11164 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11165 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
11166 then :
11167 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
11168
11169 fi
11170 ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default"
11171 if test "x$ac_cv_header_sys_termio_h" = xyes
11172 then :
11173 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h
11174
11175 fi
11176 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
11177 if test "x$ac_cv_header_sys_time_h" = xyes
11178 then :
11179 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
11180
11181 fi
11182 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
11183 if test "x$ac_cv_header_sys_times_h" = xyes
11184 then :
11185 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
11186
11187 fi
11188 ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
11189 if test "x$ac_cv_header_sys_timerfd_h" = xyes
11190 then :
11191 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
11192
11193 fi
11194 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
11195 if test "x$ac_cv_header_sys_types_h" = xyes
11196 then :
11197 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
11198
11199 fi
11200 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
11201 if test "x$ac_cv_header_sys_uio_h" = xyes
11202 then :
11203 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
11204
11205 fi
11206 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11207 if test "x$ac_cv_header_sys_un_h" = xyes
11208 then :
11209 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
11210
11211 fi
11212 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
11213 if test "x$ac_cv_header_sys_utsname_h" = xyes
11214 then :
11215 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
11216
11217 fi
11218 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
11219 if test "x$ac_cv_header_sys_wait_h" = xyes
11220 then :
11221 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11222
11223 fi
11224 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
11225 if test "x$ac_cv_header_sys_xattr_h" = xyes
11226 then :
11227 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
11228
11229 fi
11230 ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
11231 if test "x$ac_cv_header_sysexits_h" = xyes
11232 then :
11233 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
11234
11235 fi
11236 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
11237 if test "x$ac_cv_header_syslog_h" = xyes
11238 then :
11239 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
11240
11241 fi
11242 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11243 if test "x$ac_cv_header_termios_h" = xyes
11244 then :
11245 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11246
11247 fi
11248 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
11249 if test "x$ac_cv_header_util_h" = xyes
11250 then :
11251 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
11252
11253 fi
11254 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11255 if test "x$ac_cv_header_utime_h" = xyes
11256 then :
11257 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11258
11259 fi
11260 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
11261 if test "x$ac_cv_header_utmp_h" = xyes
11262 then :
11263 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
11264
11265 fi
11266
11267 ac_header_dirent=no
11268 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11269 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11271 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
11272 if eval test \${$as_ac_Header+y}
11273 then :
11274 printf %s "(cached) " >&6
11275 else $as_nop
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11278 #include <sys/types.h>
11279 #include <$ac_hdr>
11280
11281 int
11282 main (void)
11283 {
11284 if ((DIR *) 0)
11285 return 0;
11286 ;
11287 return 0;
11288 }
11289 _ACEOF
11290 if ac_fn_c_try_compile "$LINENO"
11291 then :
11292 eval "$as_ac_Header=yes"
11293 else $as_nop
11294 eval "$as_ac_Header=no"
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11297 fi
11298 eval ac_res=\$$as_ac_Header
11299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11300 printf "%s\n" "$ac_res" >&6; }
11301 if eval test \"x\$"$as_ac_Header"\" = x"yes"
11302 then :
11303 cat >>confdefs.h <<_ACEOF
11304 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
11305 _ACEOF
11306
11307 ac_header_dirent=$ac_hdr; break
11308 fi
11309
11310 done
11311 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11312 if test $ac_header_dirent = dirent.h; then
11313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11314 printf %s "checking for library containing opendir... " >&6; }
11315 if test ${ac_cv_search_opendir+y}
11316 then :
11317 printf %s "(cached) " >&6
11318 else $as_nop
11319 ac_func_search_save_LIBS=$LIBS
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11322
11323 /* Override any GCC internal prototype to avoid an error.
11324 Use char because int might match the return type of a GCC
11325 builtin and then its argument prototype would still apply. */
11326 char opendir ();
11327 int
11328 main (void)
11329 {
11330 return opendir ();
11331 ;
11332 return 0;
11333 }
11334 _ACEOF
11335 for ac_lib in '' dir
11336 do
11337 if test -z "$ac_lib"; then
11338 ac_res="none required"
11339 else
11340 ac_res=-l$ac_lib
11341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11342 fi
11343 if ac_fn_c_try_link "$LINENO"
11344 then :
11345 ac_cv_search_opendir=$ac_res
11346 fi
11347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11348 conftest$ac_exeext
11349 if test ${ac_cv_search_opendir+y}
11350 then :
11351 break
11352 fi
11353 done
11354 if test ${ac_cv_search_opendir+y}
11355 then :
11356
11357 else $as_nop
11358 ac_cv_search_opendir=no
11359 fi
11360 rm conftest.$ac_ext
11361 LIBS=$ac_func_search_save_LIBS
11362 fi
11363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11364 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11365 ac_res=$ac_cv_search_opendir
11366 if test "$ac_res" != no
11367 then :
11368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11369
11370 fi
11371
11372 else
11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11374 printf %s "checking for library containing opendir... " >&6; }
11375 if test ${ac_cv_search_opendir+y}
11376 then :
11377 printf %s "(cached) " >&6
11378 else $as_nop
11379 ac_func_search_save_LIBS=$LIBS
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11386 char opendir ();
11387 int
11388 main (void)
11389 {
11390 return opendir ();
11391 ;
11392 return 0;
11393 }
11394 _ACEOF
11395 for ac_lib in '' x
11396 do
11397 if test -z "$ac_lib"; then
11398 ac_res="none required"
11399 else
11400 ac_res=-l$ac_lib
11401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11402 fi
11403 if ac_fn_c_try_link "$LINENO"
11404 then :
11405 ac_cv_search_opendir=$ac_res
11406 fi
11407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11408 conftest$ac_exeext
11409 if test ${ac_cv_search_opendir+y}
11410 then :
11411 break
11412 fi
11413 done
11414 if test ${ac_cv_search_opendir+y}
11415 then :
11416
11417 else $as_nop
11418 ac_cv_search_opendir=no
11419 fi
11420 rm conftest.$ac_ext
11421 LIBS=$ac_func_search_save_LIBS
11422 fi
11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11424 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11425 ac_res=$ac_cv_search_opendir
11426 if test "$ac_res" != no
11427 then :
11428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11429
11430 fi
11431
11432 fi
11433
11434
11435 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11436 if test "x$ac_cv_header_sys_mkdev_h" = xyes
11437 then :
11438
11439 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
11440
11441 fi
11442
11443 if test $ac_cv_header_sys_mkdev_h = no; then
11444 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11445 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
11446 then :
11447
11448 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
11449
11450 fi
11451
11452 fi
11453
11454
11455 # bluetooth/bluetooth.h has been known to not compile with -std=c99.
11456 # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
11457 SAVE_CFLAGS=$CFLAGS
11458 CFLAGS="-std=c99 $CFLAGS"
11459 ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
11460 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes
11461 then :
11462 printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h
11463
11464 fi
11465
11466 CFLAGS=$SAVE_CFLAGS
11467
11468 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
11469 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
11470 #include <stdlib.h>
11471 #include <stddef.h>
11472 #ifdef HAVE_SYS_SOCKET_H
11473 # include <sys/socket.h>
11474 #endif
11475
11476 "
11477 if test "x$ac_cv_header_net_if_h" = xyes
11478 then :
11479 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
11480
11481 fi
11482
11483
11484 # On Linux, netlink.h requires asm/types.h
11485 # On FreeBSD, netlink.h is located in netlink/netlink.h
11486 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
11487 #ifdef HAVE_ASM_TYPES_H
11488 #include <asm/types.h>
11489 #endif
11490 #ifdef HAVE_SYS_SOCKET_H
11491 #include <sys/socket.h>
11492 #endif
11493
11494 "
11495 if test "x$ac_cv_header_linux_netlink_h" = xyes
11496 then :
11497 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h
11498
11499 fi
11500 ac_fn_c_check_header_compile "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "
11501 #ifdef HAVE_ASM_TYPES_H
11502 #include <asm/types.h>
11503 #endif
11504 #ifdef HAVE_SYS_SOCKET_H
11505 #include <sys/socket.h>
11506 #endif
11507
11508 "
11509 if test "x$ac_cv_header_netlink_netlink_h" = xyes
11510 then :
11511 printf "%s\n" "#define HAVE_NETLINK_NETLINK_H 1" >>confdefs.h
11512
11513 fi
11514
11515
11516 # On Linux, qrtr.h requires asm/types.h
11517 ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
11518 #ifdef HAVE_ASM_TYPES_H
11519 #include <asm/types.h>
11520 #endif
11521 #ifdef HAVE_SYS_SOCKET_H
11522 #include <sys/socket.h>
11523 #endif
11524
11525 "
11526 if test "x$ac_cv_header_linux_qrtr_h" = xyes
11527 then :
11528 printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h
11529
11530 fi
11531
11532
11533 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
11534 #ifdef HAVE_SYS_SOCKET_H
11535 #include <sys/socket.h>
11536 #endif
11537
11538 "
11539 if test "x$ac_cv_header_linux_vm_sockets_h" = xyes
11540 then :
11541 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h
11542
11543 fi
11544
11545
11546 # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h
11547 # On NetBSD, netcan/can.h requires sys/socket.h
11548 ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "
11549 #ifdef HAVE_SYS_SOCKET_H
11550 #include <sys/socket.h>
11551 #endif
11552
11553 "
11554 if test "x$ac_cv_header_linux_can_h" = xyes
11555 then :
11556 printf "%s\n" "#define HAVE_LINUX_CAN_H 1" >>confdefs.h
11557
11558 fi
11559 ac_fn_c_check_header_compile "$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" "
11560 #ifdef HAVE_SYS_SOCKET_H
11561 #include <sys/socket.h>
11562 #endif
11563
11564 "
11565 if test "x$ac_cv_header_linux_can_bcm_h" = xyes
11566 then :
11567 printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h
11568
11569 fi
11570 ac_fn_c_check_header_compile "$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" "
11571 #ifdef HAVE_SYS_SOCKET_H
11572 #include <sys/socket.h>
11573 #endif
11574
11575 "
11576 if test "x$ac_cv_header_linux_can_j1939_h" = xyes
11577 then :
11578 printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h
11579
11580 fi
11581 ac_fn_c_check_header_compile "$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" "
11582 #ifdef HAVE_SYS_SOCKET_H
11583 #include <sys/socket.h>
11584 #endif
11585
11586 "
11587 if test "x$ac_cv_header_linux_can_raw_h" = xyes
11588 then :
11589 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h
11590
11591 fi
11592 ac_fn_c_check_header_compile "$LINENO" "netcan/can.h" "ac_cv_header_netcan_can_h" "
11593 #ifdef HAVE_SYS_SOCKET_H
11594 #include <sys/socket.h>
11595 #endif
11596
11597 "
11598 if test "x$ac_cv_header_netcan_can_h" = xyes
11599 then :
11600 printf "%s\n" "#define HAVE_NETCAN_CAN_H 1" >>confdefs.h
11601
11602 fi
11603
11604
11605 # Check for clock_t in time.h.
11606 ac_fn_c_check_type "$LINENO" "clock_t" "ac_cv_type_clock_t" "#include <time.h>
11607 "
11608 if test "x$ac_cv_type_clock_t" = xyes
11609 then :
11610
11611 printf "%s\n" "#define HAVE_CLOCK_T 1" >>confdefs.h
11612
11613
11614 else $as_nop
11615
11616 printf "%s\n" "#define clock_t long" >>confdefs.h
11617
11618 fi
11619
11620
11621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
11622 printf %s "checking for makedev... " >&6; }
11623 if test ${ac_cv_func_makedev+y}
11624 then :
11625 printf %s "(cached) " >&6
11626 else $as_nop
11627
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h. */
11630
11631 #if defined(MAJOR_IN_MKDEV)
11632 #include <sys/mkdev.h>
11633 #elif defined(MAJOR_IN_SYSMACROS)
11634 #include <sys/sysmacros.h>
11635 #else
11636 #include <sys/types.h>
11637 #endif
11638
11639 int
11640 main (void)
11641 {
11642
11643 makedev(0, 0)
11644 ;
11645 return 0;
11646 }
11647
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"
11650 then :
11651 ac_cv_func_makedev=yes
11652 else $as_nop
11653 ac_cv_func_makedev=no
11654 fi
11655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11656 conftest$ac_exeext conftest.$ac_ext
11657
11658 fi
11659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_makedev" >&5
11660 printf "%s\n" "$ac_cv_func_makedev" >&6; }
11661
11662 if test "x$ac_cv_func_makedev" = xyes
11663 then :
11664
11665
11666 printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h
11667
11668
11669 fi
11670
11671 # byte swapping
11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
11673 printf %s "checking for le64toh... " >&6; }
11674 if test ${ac_cv_func_le64toh+y}
11675 then :
11676 printf %s "(cached) " >&6
11677 else $as_nop
11678
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11681
11682 #ifdef HAVE_ENDIAN_H
11683 #include <endian.h>
11684 #elif defined(HAVE_SYS_ENDIAN_H)
11685 #include <sys/endian.h>
11686 #endif
11687
11688 int
11689 main (void)
11690 {
11691
11692 le64toh(1)
11693 ;
11694 return 0;
11695 }
11696
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"
11699 then :
11700 ac_cv_func_le64toh=yes
11701 else $as_nop
11702 ac_cv_func_le64toh=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11705 conftest$ac_exeext conftest.$ac_ext
11706
11707 fi
11708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_le64toh" >&5
11709 printf "%s\n" "$ac_cv_func_le64toh" >&6; }
11710
11711 if test "x$ac_cv_func_le64toh" = xyes
11712 then :
11713
11714
11715 printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h
11716
11717
11718 fi
11719
11720 use_lfs=yes
11721 # Don't use largefile support for GNU/Hurd
11722 case $ac_sys_system in GNU*)
11723 use_lfs=no
11724 esac
11725
11726 if test "$use_lfs" = "yes"; then
11727 # Two defines needed to enable largefile support on various platforms
11728 # These may affect some typedefs
11729 case $ac_sys_system/$ac_sys_release in
11730 AIX*)
11731
11732 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11733
11734 ;;
11735 esac
11736
11737 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
11738
11739
11740 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11741
11742 fi
11743
11744 # Add some code to confdefs.h so that the test for off_t works on SCO
11745 cat >> confdefs.h <<\EOF
11746 #if defined(SCO_DS)
11747 #undef _OFF_T
11748 #endif
11749 EOF
11750
11751 # Type availability checks
11752 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11753 if test "x$ac_cv_type_mode_t" = xyes
11754 then :
11755
11756 else $as_nop
11757
11758 printf "%s\n" "#define mode_t int" >>confdefs.h
11759
11760 fi
11761
11762 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11763 if test "x$ac_cv_type_off_t" = xyes
11764 then :
11765
11766 else $as_nop
11767
11768 printf "%s\n" "#define off_t long int" >>confdefs.h
11769
11770 fi
11771
11772
11773 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
11774 "
11775 if test "x$ac_cv_type_pid_t" = xyes
11776 then :
11777
11778 else $as_nop
11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h. */
11781
11782 #if defined _WIN64 && !defined __CYGWIN__
11783 LLP64
11784 #endif
11785
11786 int
11787 main (void)
11788 {
11789
11790 ;
11791 return 0;
11792 }
11793
11794 _ACEOF
11795 if ac_fn_c_try_compile "$LINENO"
11796 then :
11797 ac_pid_type='int'
11798 else $as_nop
11799 ac_pid_type='__int64'
11800 fi
11801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11802
11803 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
11804
11805
11806 fi
11807
11808
11809
11810 printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h
11811
11812 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11813 if test "x$ac_cv_type_size_t" = xyes
11814 then :
11815
11816 else $as_nop
11817
11818 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
11819
11820 fi
11821
11822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11823 printf %s "checking for uid_t in sys/types.h... " >&6; }
11824 if test ${ac_cv_type_uid_t+y}
11825 then :
11826 printf %s "(cached) " >&6
11827 else $as_nop
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 #include <sys/types.h>
11831
11832 _ACEOF
11833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11834 $EGREP "uid_t" >/dev/null 2>&1
11835 then :
11836 ac_cv_type_uid_t=yes
11837 else $as_nop
11838 ac_cv_type_uid_t=no
11839 fi
11840 rm -rf conftest*
11841
11842 fi
11843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11844 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
11845 if test $ac_cv_type_uid_t = no; then
11846
11847 printf "%s\n" "#define uid_t int" >>confdefs.h
11848
11849
11850 printf "%s\n" "#define gid_t int" >>confdefs.h
11851
11852 fi
11853
11854
11855 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11856 if test "x$ac_cv_type_ssize_t" = xyes
11857 then :
11858
11859 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
11860
11861
11862 fi
11863
11864 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
11865 if test "x$ac_cv_type___uint128_t" = xyes
11866 then :
11867
11868 printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h
11869
11870
11871 printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
11872
11873 fi
11874
11875
11876 # Sizes and alignments of various common basic types
11877 # ANSI C requires sizeof(char) == 1, so no need to check it
11878 # The cast to long int works around a bug in the HP C Compiler
11879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11881 # This bug is HP SR number 8606223364.
11882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11883 printf %s "checking size of int... " >&6; }
11884 if test ${ac_cv_sizeof_int+y}
11885 then :
11886 printf %s "(cached) " >&6
11887 else $as_nop
11888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
11889 then :
11890
11891 else $as_nop
11892 if test "$ac_cv_type_int" = yes; then
11893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11895 as_fn_error 77 "cannot compute sizeof (int)
11896 See \`config.log' for more details" "$LINENO" 5; }
11897 else
11898 ac_cv_sizeof_int=0
11899 fi
11900 fi
11901
11902 fi
11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11904 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
11905
11906
11907
11908 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
11909
11910
11911 # The cast to long int works around a bug in the HP C Compiler
11912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11914 # This bug is HP SR number 8606223364.
11915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11916 printf %s "checking size of long... " >&6; }
11917 if test ${ac_cv_sizeof_long+y}
11918 then :
11919 printf %s "(cached) " >&6
11920 else $as_nop
11921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
11922 then :
11923
11924 else $as_nop
11925 if test "$ac_cv_type_long" = yes; then
11926 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11927 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11928 as_fn_error 77 "cannot compute sizeof (long)
11929 See \`config.log' for more details" "$LINENO" 5; }
11930 else
11931 ac_cv_sizeof_long=0
11932 fi
11933 fi
11934
11935 fi
11936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11937 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
11938
11939
11940
11941 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
11942
11943
11944 # The cast to long int works around a bug in the HP C Compiler,
11945 # see AC_CHECK_SIZEOF for more information.
11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
11947 printf %s "checking alignment of long... " >&6; }
11948 if test ${ac_cv_alignof_long+y}
11949 then :
11950 printf %s "(cached) " >&6
11951 else $as_nop
11952 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
11953 typedef struct { char x; long y; } ac__type_alignof_;"
11954 then :
11955
11956 else $as_nop
11957 if test "$ac_cv_type_long" = yes; then
11958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11959 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11960 as_fn_error 77 "cannot compute alignment of long
11961 See \`config.log' for more details" "$LINENO" 5; }
11962 else
11963 ac_cv_alignof_long=0
11964 fi
11965 fi
11966
11967 fi
11968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
11969 printf "%s\n" "$ac_cv_alignof_long" >&6; }
11970
11971
11972
11973 printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h
11974
11975
11976 # The cast to long int works around a bug in the HP C Compiler
11977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11979 # This bug is HP SR number 8606223364.
11980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11981 printf %s "checking size of long long... " >&6; }
11982 if test ${ac_cv_sizeof_long_long+y}
11983 then :
11984 printf %s "(cached) " >&6
11985 else $as_nop
11986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
11987 then :
11988
11989 else $as_nop
11990 if test "$ac_cv_type_long_long" = yes; then
11991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11992 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11993 as_fn_error 77 "cannot compute sizeof (long long)
11994 See \`config.log' for more details" "$LINENO" 5; }
11995 else
11996 ac_cv_sizeof_long_long=0
11997 fi
11998 fi
11999
12000 fi
12001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12002 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12003
12004
12005
12006 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12007
12008
12009 # The cast to long int works around a bug in the HP C Compiler
12010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12012 # This bug is HP SR number 8606223364.
12013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12014 printf %s "checking size of void *... " >&6; }
12015 if test ${ac_cv_sizeof_void_p+y}
12016 then :
12017 printf %s "(cached) " >&6
12018 else $as_nop
12019 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
12020 then :
12021
12022 else $as_nop
12023 if test "$ac_cv_type_void_p" = yes; then
12024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12025 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12026 as_fn_error 77 "cannot compute sizeof (void *)
12027 See \`config.log' for more details" "$LINENO" 5; }
12028 else
12029 ac_cv_sizeof_void_p=0
12030 fi
12031 fi
12032
12033 fi
12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12035 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
12036
12037
12038
12039 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
12040
12041
12042 # The cast to long int works around a bug in the HP C Compiler
12043 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12044 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12045 # This bug is HP SR number 8606223364.
12046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12047 printf %s "checking size of short... " >&6; }
12048 if test ${ac_cv_sizeof_short+y}
12049 then :
12050 printf %s "(cached) " >&6
12051 else $as_nop
12052 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12053 then :
12054
12055 else $as_nop
12056 if test "$ac_cv_type_short" = yes; then
12057 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12058 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12059 as_fn_error 77 "cannot compute sizeof (short)
12060 See \`config.log' for more details" "$LINENO" 5; }
12061 else
12062 ac_cv_sizeof_short=0
12063 fi
12064 fi
12065
12066 fi
12067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12068 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12069
12070
12071
12072 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12073
12074
12075 # The cast to long int works around a bug in the HP C Compiler
12076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12078 # This bug is HP SR number 8606223364.
12079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
12080 printf %s "checking size of float... " >&6; }
12081 if test ${ac_cv_sizeof_float+y}
12082 then :
12083 printf %s "(cached) " >&6
12084 else $as_nop
12085 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
12086 then :
12087
12088 else $as_nop
12089 if test "$ac_cv_type_float" = yes; then
12090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12091 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12092 as_fn_error 77 "cannot compute sizeof (float)
12093 See \`config.log' for more details" "$LINENO" 5; }
12094 else
12095 ac_cv_sizeof_float=0
12096 fi
12097 fi
12098
12099 fi
12100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
12101 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
12102
12103
12104
12105 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
12106
12107
12108 # The cast to long int works around a bug in the HP C Compiler
12109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12111 # This bug is HP SR number 8606223364.
12112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12113 printf %s "checking size of double... " >&6; }
12114 if test ${ac_cv_sizeof_double+y}
12115 then :
12116 printf %s "(cached) " >&6
12117 else $as_nop
12118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
12119 then :
12120
12121 else $as_nop
12122 if test "$ac_cv_type_double" = yes; then
12123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12124 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12125 as_fn_error 77 "cannot compute sizeof (double)
12126 See \`config.log' for more details" "$LINENO" 5; }
12127 else
12128 ac_cv_sizeof_double=0
12129 fi
12130 fi
12131
12132 fi
12133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12134 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
12135
12136
12137
12138 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
12139
12140
12141 # The cast to long int works around a bug in the HP C Compiler
12142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12144 # This bug is HP SR number 8606223364.
12145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
12146 printf %s "checking size of fpos_t... " >&6; }
12147 if test ${ac_cv_sizeof_fpos_t+y}
12148 then :
12149 printf %s "(cached) " >&6
12150 else $as_nop
12151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"
12152 then :
12153
12154 else $as_nop
12155 if test "$ac_cv_type_fpos_t" = yes; then
12156 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12157 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12158 as_fn_error 77 "cannot compute sizeof (fpos_t)
12159 See \`config.log' for more details" "$LINENO" 5; }
12160 else
12161 ac_cv_sizeof_fpos_t=0
12162 fi
12163 fi
12164
12165 fi
12166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
12167 printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; }
12168
12169
12170
12171 printf "%s\n" "#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t" >>confdefs.h
12172
12173
12174 # The cast to long int works around a bug in the HP C Compiler
12175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12177 # This bug is HP SR number 8606223364.
12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12179 printf %s "checking size of size_t... " >&6; }
12180 if test ${ac_cv_sizeof_size_t+y}
12181 then :
12182 printf %s "(cached) " >&6
12183 else $as_nop
12184 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
12185 then :
12186
12187 else $as_nop
12188 if test "$ac_cv_type_size_t" = yes; then
12189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12190 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12191 as_fn_error 77 "cannot compute sizeof (size_t)
12192 See \`config.log' for more details" "$LINENO" 5; }
12193 else
12194 ac_cv_sizeof_size_t=0
12195 fi
12196 fi
12197
12198 fi
12199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12200 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
12201
12202
12203
12204 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
12205
12206
12207 # The cast to long int works around a bug in the HP C Compiler,
12208 # see AC_CHECK_SIZEOF for more information.
12209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
12210 printf %s "checking alignment of size_t... " >&6; }
12211 if test ${ac_cv_alignof_size_t+y}
12212 then :
12213 printf %s "(cached) " >&6
12214 else $as_nop
12215 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default
12216 typedef struct { char x; size_t y; } ac__type_alignof_;"
12217 then :
12218
12219 else $as_nop
12220 if test "$ac_cv_type_size_t" = yes; then
12221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12222 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12223 as_fn_error 77 "cannot compute alignment of size_t
12224 See \`config.log' for more details" "$LINENO" 5; }
12225 else
12226 ac_cv_alignof_size_t=0
12227 fi
12228 fi
12229
12230 fi
12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5
12232 printf "%s\n" "$ac_cv_alignof_size_t" >&6; }
12233
12234
12235
12236 printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h
12237
12238
12239 # The cast to long int works around a bug in the HP C Compiler
12240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12242 # This bug is HP SR number 8606223364.
12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
12244 printf %s "checking size of pid_t... " >&6; }
12245 if test ${ac_cv_sizeof_pid_t+y}
12246 then :
12247 printf %s "(cached) " >&6
12248 else $as_nop
12249 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"
12250 then :
12251
12252 else $as_nop
12253 if test "$ac_cv_type_pid_t" = yes; then
12254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12256 as_fn_error 77 "cannot compute sizeof (pid_t)
12257 See \`config.log' for more details" "$LINENO" 5; }
12258 else
12259 ac_cv_sizeof_pid_t=0
12260 fi
12261 fi
12262
12263 fi
12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
12265 printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; }
12266
12267
12268
12269 printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h
12270
12271
12272 # The cast to long int works around a bug in the HP C Compiler
12273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12275 # This bug is HP SR number 8606223364.
12276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
12277 printf %s "checking size of uintptr_t... " >&6; }
12278 if test ${ac_cv_sizeof_uintptr_t+y}
12279 then :
12280 printf %s "(cached) " >&6
12281 else $as_nop
12282 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"
12283 then :
12284
12285 else $as_nop
12286 if test "$ac_cv_type_uintptr_t" = yes; then
12287 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12288 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12289 as_fn_error 77 "cannot compute sizeof (uintptr_t)
12290 See \`config.log' for more details" "$LINENO" 5; }
12291 else
12292 ac_cv_sizeof_uintptr_t=0
12293 fi
12294 fi
12295
12296 fi
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
12298 printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; }
12299
12300
12301
12302 printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h
12303
12304
12305 # The cast to long int works around a bug in the HP C Compiler,
12306 # see AC_CHECK_SIZEOF for more information.
12307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of max_align_t" >&5
12308 printf %s "checking alignment of max_align_t... " >&6; }
12309 if test ${ac_cv_alignof_max_align_t+y}
12310 then :
12311 printf %s "(cached) " >&6
12312 else $as_nop
12313 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_max_align_t" "$ac_includes_default
12314 typedef struct { char x; max_align_t y; } ac__type_alignof_;"
12315 then :
12316
12317 else $as_nop
12318 if test "$ac_cv_type_max_align_t" = yes; then
12319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12320 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12321 as_fn_error 77 "cannot compute alignment of max_align_t
12322 See \`config.log' for more details" "$LINENO" 5; }
12323 else
12324 ac_cv_alignof_max_align_t=0
12325 fi
12326 fi
12327
12328 fi
12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_max_align_t" >&5
12330 printf "%s\n" "$ac_cv_alignof_max_align_t" >&6; }
12331
12332
12333
12334 printf "%s\n" "#define ALIGNOF_MAX_ALIGN_T $ac_cv_alignof_max_align_t" >>confdefs.h
12335
12336
12337
12338
12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12340 printf %s "checking for long double... " >&6; }
12341 if test ${ac_cv_type_long_double+y}
12342 then :
12343 printf %s "(cached) " >&6
12344 else $as_nop
12345 if test "$GCC" = yes; then
12346 ac_cv_type_long_double=yes
12347 else
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350 /* The Stardent Vistra knows sizeof (long double), but does
12351 not support it. */
12352 long double foo = 0.0L;
12353 int
12354 main (void)
12355 {
12356 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12357 sizeof (double) <= sizeof (long double))];
12358 test_array [0] = 0;
12359 return test_array [0];
12360
12361 ;
12362 return 0;
12363 }
12364 _ACEOF
12365 if ac_fn_c_try_compile "$LINENO"
12366 then :
12367 ac_cv_type_long_double=yes
12368 else $as_nop
12369 ac_cv_type_long_double=no
12370 fi
12371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12372 fi
12373 fi
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
12375 printf "%s\n" "$ac_cv_type_long_double" >&6; }
12376 if test $ac_cv_type_long_double = yes; then
12377
12378 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12379
12380 fi
12381
12382 # The cast to long int works around a bug in the HP C Compiler
12383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12385 # This bug is HP SR number 8606223364.
12386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12387 printf %s "checking size of long double... " >&6; }
12388 if test ${ac_cv_sizeof_long_double+y}
12389 then :
12390 printf %s "(cached) " >&6
12391 else $as_nop
12392 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
12393 then :
12394
12395 else $as_nop
12396 if test "$ac_cv_type_long_double" = yes; then
12397 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12398 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12399 as_fn_error 77 "cannot compute sizeof (long double)
12400 See \`config.log' for more details" "$LINENO" 5; }
12401 else
12402 ac_cv_sizeof_long_double=0
12403 fi
12404 fi
12405
12406 fi
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12408 printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
12409
12410
12411
12412 printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
12413
12414
12415
12416 # The cast to long int works around a bug in the HP C Compiler
12417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12419 # This bug is HP SR number 8606223364.
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
12421 printf %s "checking size of _Bool... " >&6; }
12422 if test ${ac_cv_sizeof__Bool+y}
12423 then :
12424 printf %s "(cached) " >&6
12425 else $as_nop
12426 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"
12427 then :
12428
12429 else $as_nop
12430 if test "$ac_cv_type__Bool" = yes; then
12431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12432 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12433 as_fn_error 77 "cannot compute sizeof (_Bool)
12434 See \`config.log' for more details" "$LINENO" 5; }
12435 else
12436 ac_cv_sizeof__Bool=0
12437 fi
12438 fi
12439
12440 fi
12441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
12442 printf "%s\n" "$ac_cv_sizeof__Bool" >&6; }
12443
12444
12445
12446 printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h
12447
12448
12449
12450 # The cast to long int works around a bug in the HP C Compiler
12451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12453 # This bug is HP SR number 8606223364.
12454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12455 printf %s "checking size of off_t... " >&6; }
12456 if test ${ac_cv_sizeof_off_t+y}
12457 then :
12458 printf %s "(cached) " >&6
12459 else $as_nop
12460 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
12461 #ifdef HAVE_SYS_TYPES_H
12462 #include <sys/types.h>
12463 #endif
12464
12465 "
12466 then :
12467
12468 else $as_nop
12469 if test "$ac_cv_type_off_t" = yes; then
12470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12471 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12472 as_fn_error 77 "cannot compute sizeof (off_t)
12473 See \`config.log' for more details" "$LINENO" 5; }
12474 else
12475 ac_cv_sizeof_off_t=0
12476 fi
12477 fi
12478
12479 fi
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12481 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12482
12483
12484
12485 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12486
12487
12488
12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
12490 printf %s "checking whether to enable large file support... " >&6; }
12491 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12492 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12493 have_largefile_support="yes"
12494 else
12495 have_largefile_support="no"
12496 fi
12497 case $ac_sys_system in #(
12498 Emscripten) :
12499 have_largefile_support="no"
12500 ;; #(
12501 *) :
12502 ;;
12503 esac
12504 if test "x$have_largefile_support" = xyes
12505 then :
12506
12507
12508 printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
12509
12510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12511 printf "%s\n" "yes" >&6; }
12512
12513 else $as_nop
12514
12515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 printf "%s\n" "no" >&6; }
12517
12518 fi
12519
12520 # The cast to long int works around a bug in the HP C Compiler
12521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12523 # This bug is HP SR number 8606223364.
12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12525 printf %s "checking size of time_t... " >&6; }
12526 if test ${ac_cv_sizeof_time_t+y}
12527 then :
12528 printf %s "(cached) " >&6
12529 else $as_nop
12530 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
12531 #ifdef HAVE_SYS_TYPES_H
12532 #include <sys/types.h>
12533 #endif
12534 #ifdef HAVE_TIME_H
12535 #include <time.h>
12536 #endif
12537
12538 "
12539 then :
12540
12541 else $as_nop
12542 if test "$ac_cv_type_time_t" = yes; then
12543 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12544 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12545 as_fn_error 77 "cannot compute sizeof (time_t)
12546 See \`config.log' for more details" "$LINENO" 5; }
12547 else
12548 ac_cv_sizeof_time_t=0
12549 fi
12550 fi
12551
12552 fi
12553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12554 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12555
12556
12557
12558 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12559
12560
12561
12562 # if have pthread_t then define SIZEOF_PTHREAD_T
12563 ac_save_cc="$CC"
12564 if test "$ac_cv_kpthread" = "yes"
12565 then CC="$CC -Kpthread"
12566 elif test "$ac_cv_kthread" = "yes"
12567 then CC="$CC -Kthread"
12568 elif test "$ac_cv_pthread" = "yes"
12569 then CC="$CC -pthread"
12570 fi
12571
12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
12573 printf %s "checking for pthread_t... " >&6; }
12574 if test ${ac_cv_have_pthread_t+y}
12575 then :
12576 printf %s "(cached) " >&6
12577 else $as_nop
12578
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581
12582 #include <pthread.h>
12583 int
12584 main (void)
12585 {
12586 pthread_t x; x = *(pthread_t*)0;
12587 ;
12588 return 0;
12589 }
12590
12591 _ACEOF
12592 if ac_fn_c_try_compile "$LINENO"
12593 then :
12594 ac_cv_have_pthread_t=yes
12595 else $as_nop
12596 ac_cv_have_pthread_t=no
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12599
12600 fi
12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pthread_t" >&5
12602 printf "%s\n" "$ac_cv_have_pthread_t" >&6; }
12603 if test "x$ac_cv_have_pthread_t" = xyes
12604 then :
12605
12606 # The cast to long int works around a bug in the HP C Compiler
12607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12609 # This bug is HP SR number 8606223364.
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
12611 printf %s "checking size of pthread_t... " >&6; }
12612 if test ${ac_cv_sizeof_pthread_t+y}
12613 then :
12614 printf %s "(cached) " >&6
12615 else $as_nop
12616 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
12617 #ifdef HAVE_PTHREAD_H
12618 #include <pthread.h>
12619 #endif
12620
12621 "
12622 then :
12623
12624 else $as_nop
12625 if test "$ac_cv_type_pthread_t" = yes; then
12626 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12627 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12628 as_fn_error 77 "cannot compute sizeof (pthread_t)
12629 See \`config.log' for more details" "$LINENO" 5; }
12630 else
12631 ac_cv_sizeof_pthread_t=0
12632 fi
12633 fi
12634
12635 fi
12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
12637 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
12638
12639
12640
12641 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
12642
12643
12644
12645 fi
12646
12647 # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
12648 # This checking will be unnecessary after removing deprecated TLS API.
12649 # The cast to long int works around a bug in the HP C Compiler
12650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12652 # This bug is HP SR number 8606223364.
12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
12654 printf %s "checking size of pthread_key_t... " >&6; }
12655 if test ${ac_cv_sizeof_pthread_key_t+y}
12656 then :
12657 printf %s "(cached) " >&6
12658 else $as_nop
12659 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h>
12660 "
12661 then :
12662
12663 else $as_nop
12664 if test "$ac_cv_type_pthread_key_t" = yes; then
12665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12666 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12667 as_fn_error 77 "cannot compute sizeof (pthread_key_t)
12668 See \`config.log' for more details" "$LINENO" 5; }
12669 else
12670 ac_cv_sizeof_pthread_key_t=0
12671 fi
12672 fi
12673
12674 fi
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
12676 printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; }
12677
12678
12679
12680 printf "%s\n" "#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t" >>confdefs.h
12681
12682
12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
12684 printf %s "checking whether pthread_key_t is compatible with int... " >&6; }
12685 if test ${ac_cv_pthread_key_t_is_arithmetic_type+y}
12686 then :
12687 printf %s "(cached) " >&6
12688 else $as_nop
12689
12690 if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 #include <pthread.h>
12694 int
12695 main (void)
12696 {
12697 pthread_key_t k; k * 1;
12698 ;
12699 return 0;
12700 }
12701 _ACEOF
12702 if ac_fn_c_try_compile "$LINENO"
12703 then :
12704 ac_cv_pthread_key_t_is_arithmetic_type=yes
12705 else $as_nop
12706 ac_cv_pthread_key_t_is_arithmetic_type=no
12707
12708 fi
12709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12710 else
12711 ac_cv_pthread_key_t_is_arithmetic_type=no
12712 fi
12713
12714 fi
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_key_t_is_arithmetic_type" >&5
12716 printf "%s\n" "$ac_cv_pthread_key_t_is_arithmetic_type" >&6; }
12717 if test "x$ac_cv_pthread_key_t_is_arithmetic_type" = xyes
12718 then :
12719
12720
12721 printf "%s\n" "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
12722
12723
12724 fi
12725
12726 CC="$ac_save_cc"
12727
12728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
12729 printf %s "checking for --enable-framework... " >&6; }
12730 if test "$enable_framework"
12731 then
12732 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12733 # -F. is needed to allow linking to the framework while
12734 # in the build location.
12735
12736 printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
12737
12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12739 printf "%s\n" "yes" >&6; }
12740 if test $enable_shared = "yes"
12741 then
12742 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
12743 fi
12744 else
12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 printf "%s\n" "no" >&6; }
12747 fi
12748
12749 # Check for --with-dsymutil
12750
12751
12752 DSYMUTIL=
12753 DSYMUTIL_PATH=
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dsymutil" >&5
12755 printf %s "checking for --with-dsymutil... " >&6; }
12756
12757 # Check whether --with-dsymutil was given.
12758 if test ${with_dsymutil+y}
12759 then :
12760 withval=$with_dsymutil;
12761 if test "$withval" != no
12762 then
12763 if test "$MACHDEP" != "darwin"; then
12764 as_fn_error $? "dsymutil debug linking is only available in macOS." "$LINENO" 5
12765 fi
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12767 printf "%s\n" "yes" >&6; };
12768 DSYMUTIL='true'
12769 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 printf "%s\n" "no" >&6; }; DSYMUTIL=
12771 fi
12772 else $as_nop
12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 printf "%s\n" "no" >&6; }
12775 fi
12776
12777
12778 if test "$DSYMUTIL"; then
12779 # Extract the first word of "dsymutil", so it can be a program name with args.
12780 set dummy dsymutil; ac_word=$2
12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12782 printf %s "checking for $ac_word... " >&6; }
12783 if test ${ac_cv_path_DSYMUTIL_PATH+y}
12784 then :
12785 printf %s "(cached) " >&6
12786 else $as_nop
12787 case $DSYMUTIL_PATH in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_DSYMUTIL_PATH="$DSYMUTIL_PATH" # Let the user override the test with a path.
12790 ;;
12791 *)
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12794 do
12795 IFS=$as_save_IFS
12796 case $as_dir in #(((
12797 '') as_dir=./ ;;
12798 */) ;;
12799 *) as_dir=$as_dir/ ;;
12800 esac
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12803 ac_cv_path_DSYMUTIL_PATH="$as_dir$ac_word$ac_exec_ext"
12804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12805 break 2
12806 fi
12807 done
12808 done
12809 IFS=$as_save_IFS
12810
12811 test -z "$ac_cv_path_DSYMUTIL_PATH" && ac_cv_path_DSYMUTIL_PATH="not found"
12812 ;;
12813 esac
12814 fi
12815 DSYMUTIL_PATH=$ac_cv_path_DSYMUTIL_PATH
12816 if test -n "$DSYMUTIL_PATH"; then
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_PATH" >&5
12818 printf "%s\n" "$DSYMUTIL_PATH" >&6; }
12819 else
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821 printf "%s\n" "no" >&6; }
12822 fi
12823
12824
12825 if test "$DSYMUTIL_PATH" = "not found"; then
12826 as_fn_error $? "dsymutil command not found on \$PATH" "$LINENO" 5
12827 fi
12828 fi
12829
12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
12831 printf %s "checking for dyld... " >&6; }
12832 case $ac_sys_system/$ac_sys_release in
12833 Darwin/*)
12834
12835 printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h
12836
12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
12838 printf "%s\n" "always on for Darwin" >&6; }
12839 ;;
12840 *)
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 printf "%s\n" "no" >&6; }
12843 ;;
12844 esac
12845
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
12847 printf %s "checking for --with-address-sanitizer... " >&6; }
12848
12849 # Check whether --with-address_sanitizer was given.
12850 if test ${with_address_sanitizer+y}
12851 then :
12852 withval=$with_address_sanitizer;
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12854 printf "%s\n" "$withval" >&6; }
12855 BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
12856 LDFLAGS="-fsanitize=address $LDFLAGS"
12857 # ASan works by controlling memory allocation, our own malloc interferes.
12858 with_pymalloc="no"
12859
12860 else $as_nop
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 printf "%s\n" "no" >&6; }
12863 fi
12864
12865
12866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
12867 printf %s "checking for --with-memory-sanitizer... " >&6; }
12868
12869 # Check whether --with-memory_sanitizer was given.
12870 if test ${with_memory_sanitizer+y}
12871 then :
12872 withval=$with_memory_sanitizer;
12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12874 printf "%s\n" "$withval" >&6; }
12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5
12876 printf %s "checking whether C compiler accepts -fsanitize=memory... " >&6; }
12877 if test ${ax_cv_check_cflags___fsanitize_memory+y}
12878 then :
12879 printf %s "(cached) " >&6
12880 else $as_nop
12881
12882 ax_check_save_flags=$CFLAGS
12883 CFLAGS="$CFLAGS -fsanitize=memory"
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12886
12887 int
12888 main (void)
12889 {
12890
12891 ;
12892 return 0;
12893 }
12894 _ACEOF
12895 if ac_fn_c_try_compile "$LINENO"
12896 then :
12897 ax_cv_check_cflags___fsanitize_memory=yes
12898 else $as_nop
12899 ax_cv_check_cflags___fsanitize_memory=no
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12902 CFLAGS=$ax_check_save_flags
12903 fi
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5
12905 printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory" >&6; }
12906 if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes
12907 then :
12908
12909 BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
12910 LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
12911
12912 else $as_nop
12913 as_fn_error $? "The selected compiler doesn't support memory sanitizer" "$LINENO" 5
12914 fi
12915
12916 # MSan works by controlling memory allocation, our own malloc interferes.
12917 with_pymalloc="no"
12918
12919 else $as_nop
12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 printf "%s\n" "no" >&6; }
12922 fi
12923
12924
12925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
12926 printf %s "checking for --with-undefined-behavior-sanitizer... " >&6; }
12927
12928 # Check whether --with-undefined_behavior_sanitizer was given.
12929 if test ${with_undefined_behavior_sanitizer+y}
12930 then :
12931 withval=$with_undefined_behavior_sanitizer;
12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12933 printf "%s\n" "$withval" >&6; }
12934 BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
12935 LDFLAGS="-fsanitize=undefined $LDFLAGS"
12936 with_ubsan="yes"
12937
12938 else $as_nop
12939
12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 printf "%s\n" "no" >&6; }
12942 with_ubsan="no"
12943
12944 fi
12945
12946
12947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-thread-sanitizer" >&5
12948 printf %s "checking for --with-thread-sanitizer... " >&6; }
12949
12950 # Check whether --with-thread_sanitizer was given.
12951 if test ${with_thread_sanitizer+y}
12952 then :
12953 withval=$with_thread_sanitizer;
12954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12955 printf "%s\n" "$withval" >&6; }
12956 BASECFLAGS="-fsanitize=thread $BASECFLAGS"
12957 LDFLAGS="-fsanitize=thread $LDFLAGS"
12958 with_tsan="yes"
12959
12960 else $as_nop
12961
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 printf "%s\n" "no" >&6; }
12964 with_tsan="no"
12965
12966 fi
12967
12968
12969 # Set info about shared libraries.
12970
12971
12972
12973
12974
12975
12976
12977 # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
12978 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
12980 printf %s "checking the extension of shared libraries... " >&6; }
12981 if test -z "$SHLIB_SUFFIX"; then
12982 case $ac_sys_system in
12983 hp*|HP*)
12984 case `uname -m` in
12985 ia64) SHLIB_SUFFIX=.so;;
12986 *) SHLIB_SUFFIX=.sl;;
12987 esac
12988 ;;
12989 CYGWIN*) SHLIB_SUFFIX=.dll;;
12990 *) SHLIB_SUFFIX=.so;;
12991 esac
12992 fi
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
12994 printf "%s\n" "$SHLIB_SUFFIX" >&6; }
12995
12996 # LDSHARED is the ld *command* used to create shared library
12997 # -- "cc -G" on SunOS 5.x.
12998 # (Shared libraries in this instance are shared modules to be loaded into
12999 # Python, as opposed to building Python itself as a shared library.)
13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
13001 printf %s "checking LDSHARED... " >&6; }
13002 if test -z "$LDSHARED"
13003 then
13004 case $ac_sys_system/$ac_sys_release in
13005 AIX*)
13006 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13007 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
13008 ;;
13009 SunOS/5*)
13010 if test "$GCC" = "yes" ; then
13011 LDSHARED='$(CC) -shared'
13012 LDCXXSHARED='$(CXX) -shared'
13013 else
13014 LDSHARED='$(CC) -G'
13015 LDCXXSHARED='$(CXX) -G'
13016 fi ;;
13017 hp*|HP*)
13018 if test "$GCC" = "yes" ; then
13019 LDSHARED='$(CC) -shared'
13020 LDCXXSHARED='$(CXX) -shared'
13021 else
13022 LDSHARED='$(CC) -b'
13023 LDCXXSHARED='$(CXX) -b'
13024 fi ;;
13025 Darwin/1.3*)
13026 LDSHARED='$(CC) -bundle'
13027 LDCXXSHARED='$(CXX) -bundle'
13028 if test "$enable_framework" ; then
13029 # Link against the framework. All externals should be defined.
13030 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13031 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13032 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13033 else
13034 # No framework. Ignore undefined symbols, assuming they come from Python
13035 LDSHARED="$LDSHARED -undefined suppress"
13036 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
13037 fi ;;
13038 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13039 LDSHARED='$(CC) -bundle'
13040 LDCXXSHARED='$(CXX) -bundle'
13041 if test "$enable_framework" ; then
13042 # Link against the framework. All externals should be defined.
13043 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13044 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13045 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13046 else
13047 # No framework, use the Python app as bundle-loader
13048 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13049 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13050 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13051 fi ;;
13052 Darwin/*)
13053 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13054 # This allows an extension to be used in any Python
13055
13056 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
13057 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
13058 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
13059 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
13060 if test ${dep_target_major} -eq 10 && \
13061 test ${dep_target_minor} -le 2
13062 then
13063 # building for OS X 10.0 through 10.2
13064 as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5
13065 else
13066 # building for OS X 10.3 and later
13067 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
13068 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
13069 BLDSHARED="$LDSHARED"
13070 fi
13071 ;;
13072 iOS/*)
13073 LDSHARED='$(CC) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
13074 LDCXXSHARED='$(CXX) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
13075 BLDSHARED="$LDSHARED"
13076 ;;
13077 Emscripten*|WASI*)
13078 LDSHARED='$(CC) -shared'
13079 LDCXXSHARED='$(CXX) -shared';;
13080 Linux*|GNU*|QNX*|VxWorks*|Haiku*)
13081 LDSHARED='$(CC) -shared'
13082 LDCXXSHARED='$(CXX) -shared';;
13083 FreeBSD*)
13084 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13085 then
13086 LDSHARED='$(CC) -shared'
13087 LDCXXSHARED='$(CXX) -shared'
13088 else
13089 LDSHARED="ld -Bshareable"
13090 fi;;
13091 OpenBSD*)
13092 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13093 then
13094 LDSHARED='$(CC) -shared $(CCSHARED)'
13095 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
13096 else
13097 case `uname -r` in
13098 [01].* | 2.[0-7] | 2.[0-7].*)
13099 LDSHARED="ld -Bshareable ${LDFLAGS}"
13100 ;;
13101 *)
13102 LDSHARED='$(CC) -shared $(CCSHARED)'
13103 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
13104 ;;
13105 esac
13106 fi;;
13107 NetBSD*|DragonFly*)
13108 LDSHARED='$(CC) -shared'
13109 LDCXXSHARED='$(CXX) -shared';;
13110 OpenUNIX*|UnixWare*)
13111 if test "$GCC" = "yes" ; then
13112 LDSHARED='$(CC) -shared'
13113 LDCXXSHARED='$(CXX) -shared'
13114 else
13115 LDSHARED='$(CC) -G'
13116 LDCXXSHARED='$(CXX) -G'
13117 fi;;
13118 SCO_SV*)
13119 LDSHARED='$(CC) -Wl,-G,-Bexport'
13120 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
13121 WASI*)
13122 if test "x$enable_wasm_dynamic_linking" = xyes
13123 then :
13124
13125
13126 fi;;
13127 CYGWIN*)
13128 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
13129 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
13130 *) LDSHARED="ld";;
13131 esac
13132 fi
13133
13134 if test "$enable_wasm_dynamic_linking" = "yes" -a "$ac_sys_system" = "Emscripten"; then
13135 BLDSHARED='$(CC) -shared -sSIDE_MODULE=1'
13136 fi
13137
13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
13139 printf "%s\n" "$LDSHARED" >&6; }
13140 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
13141
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BLDSHARED flags" >&5
13143 printf %s "checking BLDSHARED flags... " >&6; }
13144 BLDSHARED=${BLDSHARED-$LDSHARED}
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLDSHARED" >&5
13146 printf "%s\n" "$BLDSHARED" >&6; }
13147
13148 # CCSHARED are the C *flags* used to create objects to go into a shared
13149 # library (module) -- this is only needed for a few systems
13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
13151 printf %s "checking CCSHARED... " >&6; }
13152 if test -z "$CCSHARED"
13153 then
13154 case $ac_sys_system/$ac_sys_release in
13155 SunOS*) if test "$GCC" = yes;
13156 then CCSHARED="-fPIC";
13157 elif test `uname -p` = sparc;
13158 then CCSHARED="-xcode=pic32";
13159 else CCSHARED="-Kpic";
13160 fi;;
13161 hp*|HP*) if test "$GCC" = yes;
13162 then CCSHARED="-fPIC";
13163 else CCSHARED="+z";
13164 fi;;
13165 Linux*|GNU*) CCSHARED="-fPIC";;
13166 Emscripten*|WASI*)
13167 if test "x$enable_wasm_dynamic_linking" = xyes
13168 then :
13169
13170 CCSHARED="-fPIC"
13171
13172 fi;;
13173 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13174 Haiku*) CCSHARED="-fPIC";;
13175 OpenUNIX*|UnixWare*)
13176 if test "$GCC" = "yes"
13177 then CCSHARED="-fPIC"
13178 else CCSHARED="-KPIC"
13179 fi;;
13180 SCO_SV*)
13181 if test "$GCC" = "yes"
13182 then CCSHARED="-fPIC"
13183 else CCSHARED="-Kpic -belf"
13184 fi;;
13185 VxWorks*)
13186 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic"
13187 esac
13188 fi
13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
13190 printf "%s\n" "$CCSHARED" >&6; }
13191 # LINKFORSHARED are the flags passed to the $(CC) command that links
13192 # the python executable -- this is only needed for a few systems
13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
13194 printf %s "checking LINKFORSHARED... " >&6; }
13195 if test -z "$LINKFORSHARED"
13196 then
13197 case $ac_sys_system/$ac_sys_release in
13198 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13199 hp*|HP*)
13200 LINKFORSHARED="-Wl,-E -Wl,+s";;
13201 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13202 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
13203 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13204 # -u libsys_s pulls in all symbols in libsys
13205 Darwin/*|iOS/*)
13206 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13207
13208 # Issue #18075: the default maximum stack size (8MBytes) is too
13209 # small for the default recursion limit. Increase the stack size
13210 # to ensure that tests don't crash
13211 stack_size="1000000" # 16 MB
13212 if test "$with_ubsan" = "yes"
13213 then
13214 # Undefined behavior sanitizer requires an even deeper stack
13215 stack_size="4000000" # 64 MB
13216 fi
13217
13218
13219 printf "%s\n" "#define THREAD_STACK_SIZE 0x$stack_size" >>confdefs.h
13220
13221
13222 if test $ac_sys_system = "Darwin"; then
13223 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED"
13224
13225 if test "$enable_framework"; then
13226 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13227 fi
13228 LINKFORSHARED="$LINKFORSHARED"
13229 elif test $ac_sys_system = "iOS"; then
13230 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)'
13231 fi
13232 ;;
13233 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13234 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13235 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13236 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13237 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13238 then
13239 LINKFORSHARED="-Wl,--export-dynamic"
13240 fi;;
13241 SunOS/5*) case $CC in
13242 *gcc*)
13243 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13244 then
13245 LINKFORSHARED="-Xlinker --export-dynamic"
13246 fi;;
13247 esac;;
13248 CYGWIN*)
13249 if test $enable_shared = "no"
13250 then
13251 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13252 fi;;
13253 QNX*)
13254 # -Wl,-E causes the symbols to be added to the dynamic
13255 # symbol table so that they can be found when a module
13256 # is loaded. -N 2048K causes the stack size to be set
13257 # to 2048 kilobytes so that the stack doesn't overflow
13258 # when running test_compile.py.
13259 LINKFORSHARED='-Wl,-E -N 2048K';;
13260 VxWorks*)
13261 LINKFORSHARED='-Wl,-export-dynamic';;
13262 esac
13263 fi
13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
13265 printf "%s\n" "$LINKFORSHARED" >&6; }
13266
13267
13268
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
13270 printf %s "checking CFLAGSFORSHARED... " >&6; }
13271 if test ! "$LIBRARY" = "$LDLIBRARY"
13272 then
13273 case $ac_sys_system in
13274 CYGWIN*)
13275 # Cygwin needs CCSHARED when building extension DLLs
13276 # but not when building the interpreter DLL.
13277 CFLAGSFORSHARED='';;
13278 *)
13279 CFLAGSFORSHARED='$(CCSHARED)'
13280 esac
13281 fi
13282
13283 if test "x$enable_wasm_dynamic_linking" = xyes
13284 then :
13285
13286 CFLAGSFORSHARED='$(CCSHARED)'
13287
13288 fi
13289
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
13291 printf "%s\n" "$CFLAGSFORSHARED" >&6; }
13292
13293 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13294 # library (with --enable-shared).
13295 # For platforms on which shared libraries are not allowed to have unresolved
13296 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13297 # if it is not required, since it creates a dependency of the shared library
13298 # to LIBS. This, in turn, means that applications linking the shared libpython
13299 # don't need to link LIBS explicitly. The default should be only changed
13300 # on systems where this approach causes problems.
13301
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
13303 printf %s "checking SHLIBS... " >&6; }
13304 case "$ac_sys_system" in
13305 *)
13306 SHLIBS='$(LIBS)';;
13307 esac
13308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
13309 printf "%s\n" "$SHLIBS" >&6; }
13310
13311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking perf trampoline" >&5
13312 printf %s "checking perf trampoline... " >&6; }
13313 case $PLATFORM_TRIPLET in #(
13314 x86_64-linux-gnu) :
13315 perf_trampoline=yes ;; #(
13316 aarch64-linux-gnu) :
13317 perf_trampoline=yes ;; #(
13318 *) :
13319 perf_trampoline=no
13320 ;;
13321 esac
13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perf_trampoline" >&5
13323 printf "%s\n" "$perf_trampoline" >&6; }
13324
13325 if test "x$perf_trampoline" = xyes
13326 then :
13327
13328
13329 printf "%s\n" "#define PY_HAVE_PERF_TRAMPOLINE 1" >>confdefs.h
13330
13331 PERF_TRAMPOLINE_OBJ=Python/asm_trampoline.o
13332
13333 if test "x$Py_DEBUG" = xtrue
13334 then :
13335
13336 as_fn_append BASECFLAGS " -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
13337
13338 fi
13339
13340 fi
13341
13342
13343 # checks for libraries
13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
13345 printf %s "checking for sendfile in -lsendfile... " >&6; }
13346 if test ${ac_cv_lib_sendfile_sendfile+y}
13347 then :
13348 printf %s "(cached) " >&6
13349 else $as_nop
13350 ac_check_lib_save_LIBS=$LIBS
13351 LIBS="-lsendfile $LIBS"
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354
13355 /* Override any GCC internal prototype to avoid an error.
13356 Use char because int might match the return type of a GCC
13357 builtin and then its argument prototype would still apply. */
13358 char sendfile ();
13359 int
13360 main (void)
13361 {
13362 return sendfile ();
13363 ;
13364 return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_c_try_link "$LINENO"
13368 then :
13369 ac_cv_lib_sendfile_sendfile=yes
13370 else $as_nop
13371 ac_cv_lib_sendfile_sendfile=no
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13374 conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13376 fi
13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
13378 printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; }
13379 if test "x$ac_cv_lib_sendfile_sendfile" = xyes
13380 then :
13381 printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h
13382
13383 LIBS="-lsendfile $LIBS"
13384
13385 fi
13386
13387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13388 printf %s "checking for dlopen in -ldl... " >&6; }
13389 if test ${ac_cv_lib_dl_dlopen+y}
13390 then :
13391 printf %s "(cached) " >&6
13392 else $as_nop
13393 ac_check_lib_save_LIBS=$LIBS
13394 LIBS="-ldl $LIBS"
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13397
13398 /* Override any GCC internal prototype to avoid an error.
13399 Use char because int might match the return type of a GCC
13400 builtin and then its argument prototype would still apply. */
13401 char dlopen ();
13402 int
13403 main (void)
13404 {
13405 return dlopen ();
13406 ;
13407 return 0;
13408 }
13409 _ACEOF
13410 if ac_fn_c_try_link "$LINENO"
13411 then :
13412 ac_cv_lib_dl_dlopen=yes
13413 else $as_nop
13414 ac_cv_lib_dl_dlopen=no
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13417 conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS
13419 fi
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13421 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13422 if test "x$ac_cv_lib_dl_dlopen" = xyes
13423 then :
13424 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
13425
13426 LIBS="-ldl $LIBS"
13427
13428 fi
13429 # Dynamic linking for SunOS/Solaris and SYSV
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13431 printf %s "checking for shl_load in -ldld... " >&6; }
13432 if test ${ac_cv_lib_dld_shl_load+y}
13433 then :
13434 printf %s "(cached) " >&6
13435 else $as_nop
13436 ac_check_lib_save_LIBS=$LIBS
13437 LIBS="-ldld $LIBS"
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440
13441 /* Override any GCC internal prototype to avoid an error.
13442 Use char because int might match the return type of a GCC
13443 builtin and then its argument prototype would still apply. */
13444 char shl_load ();
13445 int
13446 main (void)
13447 {
13448 return shl_load ();
13449 ;
13450 return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_link "$LINENO"
13454 then :
13455 ac_cv_lib_dld_shl_load=yes
13456 else $as_nop
13457 ac_cv_lib_dld_shl_load=no
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13460 conftest$ac_exeext conftest.$ac_ext
13461 LIBS=$ac_check_lib_save_LIBS
13462 fi
13463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13464 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13465 if test "x$ac_cv_lib_dld_shl_load" = xyes
13466 then :
13467 printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h
13468
13469 LIBS="-ldld $LIBS"
13470
13471 fi
13472 # Dynamic linking for HP-UX
13473
13474
13475
13476
13477
13478
13479 have_uuid=missing
13480
13481 for ac_header in uuid.h
13482 do :
13483 ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13484 if test "x$ac_cv_header_uuid_h" = xyes
13485 then :
13486 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
13487
13488
13489 for ac_func in uuid_create uuid_enc_be
13490 do :
13491 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
13492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13493 if eval test \"x\$"$as_ac_var"\" = x"yes"
13494 then :
13495 cat >>confdefs.h <<_ACEOF
13496 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
13497 _ACEOF
13498
13499 have_uuid=yes
13500 ac_cv_have_uuid_h=yes
13501 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13502 LIBUUID_LIBS=${LIBUUID_LIBS-""}
13503
13504 fi
13505
13506 done
13507
13508 fi
13509
13510 done
13511
13512 if test "x$have_uuid" = xmissing
13513 then :
13514
13515
13516 pkg_failed=no
13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid >= 2.20" >&5
13518 printf %s "checking for uuid >= 2.20... " >&6; }
13519
13520 if test -n "$LIBUUID_CFLAGS"; then
13521 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
13522 elif test -n "$PKG_CONFIG"; then
13523 if test -n "$PKG_CONFIG" && \
13524 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
13525 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
13526 ac_status=$?
13527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528 test $ac_status = 0; }; then
13529 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.20" 2>/dev/null`
13530 test "x$?" != "x0" && pkg_failed=yes
13531 else
13532 pkg_failed=yes
13533 fi
13534 else
13535 pkg_failed=untried
13536 fi
13537 if test -n "$LIBUUID_LIBS"; then
13538 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
13539 elif test -n "$PKG_CONFIG"; then
13540 if test -n "$PKG_CONFIG" && \
13541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
13542 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
13543 ac_status=$?
13544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13545 test $ac_status = 0; }; then
13546 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid >= 2.20" 2>/dev/null`
13547 test "x$?" != "x0" && pkg_failed=yes
13548 else
13549 pkg_failed=yes
13550 fi
13551 else
13552 pkg_failed=untried
13553 fi
13554
13555
13556
13557 if test $pkg_failed = yes; then
13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 printf "%s\n" "no" >&6; }
13560
13561 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13562 _pkg_short_errors_supported=yes
13563 else
13564 _pkg_short_errors_supported=no
13565 fi
13566 if test $_pkg_short_errors_supported = yes; then
13567 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
13568 else
13569 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
13570 fi
13571 # Put the nasty error message in config.log where it belongs
13572 echo "$LIBUUID_PKG_ERRORS" >&5
13573
13574
13575 save_CFLAGS=$CFLAGS
13576 save_CPPFLAGS=$CPPFLAGS
13577 save_LDFLAGS=$LDFLAGS
13578 save_LIBS=$LIBS
13579
13580
13581 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
13582 LIBS="$LIBS $LIBUUID_LIBS"
13583 for ac_header in uuid/uuid.h
13584 do :
13585 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13586 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13587 then :
13588 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13589
13590 ac_cv_have_uuid_uuid_h=yes
13591 py_check_lib_save_LIBS=$LIBS
13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
13593 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
13594 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
13595 then :
13596 printf %s "(cached) " >&6
13597 else $as_nop
13598 ac_check_lib_save_LIBS=$LIBS
13599 LIBS="-luuid $LIBS"
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602
13603 /* Override any GCC internal prototype to avoid an error.
13604 Use char because int might match the return type of a GCC
13605 builtin and then its argument prototype would still apply. */
13606 char uuid_generate_time ();
13607 int
13608 main (void)
13609 {
13610 return uuid_generate_time ();
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"
13616 then :
13617 ac_cv_lib_uuid_uuid_generate_time=yes
13618 else $as_nop
13619 ac_cv_lib_uuid_uuid_generate_time=no
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13622 conftest$ac_exeext conftest.$ac_ext
13623 LIBS=$ac_check_lib_save_LIBS
13624 fi
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
13626 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
13627 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
13628 then :
13629 have_uuid=yes
13630 fi
13631
13632 LIBS=$py_check_lib_save_LIBS
13633
13634 py_check_lib_save_LIBS=$LIBS
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
13636 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
13637 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
13638 then :
13639 printf %s "(cached) " >&6
13640 else $as_nop
13641 ac_check_lib_save_LIBS=$LIBS
13642 LIBS="-luuid $LIBS"
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13649 char uuid_generate_time_safe ();
13650 int
13651 main (void)
13652 {
13653 return uuid_generate_time_safe ();
13654 ;
13655 return 0;
13656 }
13657 _ACEOF
13658 if ac_fn_c_try_link "$LINENO"
13659 then :
13660 ac_cv_lib_uuid_uuid_generate_time_safe=yes
13661 else $as_nop
13662 ac_cv_lib_uuid_uuid_generate_time_safe=no
13663 fi
13664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13665 conftest$ac_exeext conftest.$ac_ext
13666 LIBS=$ac_check_lib_save_LIBS
13667 fi
13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
13669 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
13670 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
13671 then :
13672
13673 have_uuid=yes
13674 ac_cv_have_uuid_generate_time_safe=yes
13675
13676 fi
13677
13678 LIBS=$py_check_lib_save_LIBS
13679
13680 fi
13681
13682 done
13683 if test "x$have_uuid" = xyes
13684 then :
13685
13686 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13687 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
13688
13689 fi
13690
13691 CFLAGS=$save_CFLAGS
13692 CPPFLAGS=$save_CPPFLAGS
13693 LDFLAGS=$save_LDFLAGS
13694 LIBS=$save_LIBS
13695
13696
13697
13698
13699 elif test $pkg_failed = untried; then
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 printf "%s\n" "no" >&6; }
13702
13703 save_CFLAGS=$CFLAGS
13704 save_CPPFLAGS=$CPPFLAGS
13705 save_LDFLAGS=$LDFLAGS
13706 save_LIBS=$LIBS
13707
13708
13709 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
13710 LIBS="$LIBS $LIBUUID_LIBS"
13711 for ac_header in uuid/uuid.h
13712 do :
13713 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13714 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13715 then :
13716 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13717
13718 ac_cv_have_uuid_uuid_h=yes
13719 py_check_lib_save_LIBS=$LIBS
13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
13721 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
13722 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
13723 then :
13724 printf %s "(cached) " >&6
13725 else $as_nop
13726 ac_check_lib_save_LIBS=$LIBS
13727 LIBS="-luuid $LIBS"
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730
13731 /* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
13734 char uuid_generate_time ();
13735 int
13736 main (void)
13737 {
13738 return uuid_generate_time ();
13739 ;
13740 return 0;
13741 }
13742 _ACEOF
13743 if ac_fn_c_try_link "$LINENO"
13744 then :
13745 ac_cv_lib_uuid_uuid_generate_time=yes
13746 else $as_nop
13747 ac_cv_lib_uuid_uuid_generate_time=no
13748 fi
13749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13750 conftest$ac_exeext conftest.$ac_ext
13751 LIBS=$ac_check_lib_save_LIBS
13752 fi
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
13754 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
13755 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
13756 then :
13757 have_uuid=yes
13758 fi
13759
13760 LIBS=$py_check_lib_save_LIBS
13761
13762 py_check_lib_save_LIBS=$LIBS
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
13764 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
13765 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
13766 then :
13767 printf %s "(cached) " >&6
13768 else $as_nop
13769 ac_check_lib_save_LIBS=$LIBS
13770 LIBS="-luuid $LIBS"
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13777 char uuid_generate_time_safe ();
13778 int
13779 main (void)
13780 {
13781 return uuid_generate_time_safe ();
13782 ;
13783 return 0;
13784 }
13785 _ACEOF
13786 if ac_fn_c_try_link "$LINENO"
13787 then :
13788 ac_cv_lib_uuid_uuid_generate_time_safe=yes
13789 else $as_nop
13790 ac_cv_lib_uuid_uuid_generate_time_safe=no
13791 fi
13792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13793 conftest$ac_exeext conftest.$ac_ext
13794 LIBS=$ac_check_lib_save_LIBS
13795 fi
13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
13797 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
13798 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
13799 then :
13800
13801 have_uuid=yes
13802 ac_cv_have_uuid_generate_time_safe=yes
13803
13804 fi
13805
13806 LIBS=$py_check_lib_save_LIBS
13807
13808 fi
13809
13810 done
13811 if test "x$have_uuid" = xyes
13812 then :
13813
13814 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13815 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
13816
13817 fi
13818
13819 CFLAGS=$save_CFLAGS
13820 CPPFLAGS=$save_CPPFLAGS
13821 LDFLAGS=$save_LDFLAGS
13822 LIBS=$save_LIBS
13823
13824
13825
13826
13827 else
13828 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
13829 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
13830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13831 printf "%s\n" "yes" >&6; }
13832 have_uuid=yes
13833 ac_cv_have_uuid_generate_time_safe=yes
13834 # The uuid.h file to include may be <uuid.h> *or* <uuid/uuid.h>.
13835 # Since pkg-config --cflags uuid may return -I/usr/include/uuid,
13836 # it's possible to write '#include <uuid.h>' in _uuidmodule.c,
13837 # assuming that the compiler flags are properly updated.
13838 #
13839 # Ideally, we should have defined HAVE_UUID_H if and only if
13840 # #include <uuid.h> can be written, *without* assuming extra
13841 # include path.
13842 ac_cv_have_uuid_h=yes
13843
13844 fi
13845
13846 fi
13847
13848 if test "x$have_uuid" = xmissing
13849 then :
13850
13851 for ac_header in uuid/uuid.h
13852 do :
13853 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13854 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13855 then :
13856 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13857
13858 ac_fn_c_check_func "$LINENO" "uuid_generate_time" "ac_cv_func_uuid_generate_time"
13859 if test "x$ac_cv_func_uuid_generate_time" = xyes
13860 then :
13861
13862 have_uuid=yes
13863 ac_cv_have_uuid_uuid_h=yes
13864 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13865 LIBUUID_LIBS=${LIBUUID_LIBS-""}
13866
13867 fi
13868
13869
13870 fi
13871
13872 done
13873
13874 fi
13875
13876 if test "x$ac_cv_have_uuid_h" = xyes
13877 then :
13878 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
13879
13880 fi
13881 if test "x$ac_cv_have_uuid_uuid_h" = xyes
13882 then :
13883 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13884
13885 fi
13886 if test "x$ac_cv_have_uuid_generate_time_safe" = xyes
13887 then :
13888
13889 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
13890
13891
13892 fi
13893
13894 # gh-124228: While the libuuid library is available on NetBSD and OpenBSD,
13895 # it supports only UUID version 4.
13896 # This restriction inhibits the proper generation of time-based UUIDs.
13897 if test "$ac_sys_system" = "NetBSD" || test "$ac_sys_system" = "OpenBSD"; then
13898 have_uuid=missing
13899 printf "%s\n" "#define HAVE_UUID_H 0" >>confdefs.h
13900
13901 fi
13902
13903 if test "x$have_uuid" = xmissing
13904 then :
13905 have_uuid=no
13906 fi
13907
13908 # gh-132710: The UUID node is fetched by using libuuid when possible
13909 # and cached. While the node is constant within the same process,
13910 # different interpreters may have different values as libuuid may
13911 # randomize the node value if the latter cannot be deduced.
13912 #
13913 # Consumers may define HAVE_UUID_GENERATE_TIME_SAFE_STABLE_MAC
13914 # to indicate that libuuid is unstable and should not be relied
13915 # upon to deduce the MAC address.
13916
13917
13918 if test "$have_uuid" = "yes" -a "$HAVE_UUID_GENERATE_TIME_SAFE" = "1"
13919 then
13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if uuid_generate_time_safe() node value is stable" >&5
13921 printf %s "checking if uuid_generate_time_safe() node value is stable... " >&6; }
13922 save_CFLAGS=$CFLAGS
13923 save_CPPFLAGS=$CPPFLAGS
13924 save_LDFLAGS=$LDFLAGS
13925 save_LIBS=$LIBS
13926
13927
13928 # Be sure to add the extra include path if we used pkg-config
13929 # as HAVE_UUID_H may be set even though <uuid.h> is only reachable
13930 # by adding extra -I flags.
13931 #
13932 # If the following script does not compile, we simply assume that
13933 # libuuid is missing.
13934 CFLAGS="$CFLAGS $LIBUUID_CFLAGS"
13935 LIBS="$LIBS $LIBUUID_LIBS"
13936 if test "$cross_compiling" = yes
13937 then :
13938
13939
13940 else $as_nop
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943
13944 #include <inttypes.h> // PRIu64
13945 #include <stdint.h> // uint64_t
13946 #include <stdio.h> // fopen(), fclose()
13947
13948 #ifdef HAVE_UUID_H
13949 #include <uuid.h>
13950 #else
13951 #include <uuid/uuid.h>
13952 #endif
13953
13954 #define ERR 1
13955 int main(void) {
13956 uuid_t uuid; // unsigned char[16]
13957 (void)uuid_generate_time_safe(uuid);
13958 uint64_t node = 0;
13959 for (size_t i = 0; i < 6; i++) {
13960 node |= (uint64_t)uuid[15 - i] << (8 * i);
13961 }
13962 FILE *fp = fopen("conftest.out", "w");
13963 if (fp == NULL) {
13964 return ERR;
13965 }
13966 int rc = fprintf(fp, "%" PRIu64 "\n", node) >= 0;
13967 rc |= fclose(fp);
13968 return rc == 0 ? 0 : ERR;
13969 }
13970 _ACEOF
13971 if ac_fn_c_try_run "$LINENO"
13972 then :
13973
13974 py_cv_uuid_node1=`cat conftest.out`
13975
13976 fi
13977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13978 conftest.$ac_objext conftest.beam conftest.$ac_ext
13979 fi
13980
13981 CFLAGS=$save_CFLAGS
13982 CPPFLAGS=$save_CPPFLAGS
13983 LDFLAGS=$save_LDFLAGS
13984 LIBS=$save_LIBS
13985
13986
13987 save_CFLAGS=$CFLAGS
13988 save_CPPFLAGS=$CPPFLAGS
13989 save_LDFLAGS=$LDFLAGS
13990 save_LIBS=$LIBS
13991
13992
13993 # Be sure to add the extra include path if we used pkg-config
13994 # as HAVE_UUID_H may be set even though <uuid.h> is only reachable
13995 # by adding extra -I flags.
13996 #
13997 # If the following script does not compile, we simply assume that
13998 # libuuid is missing.
13999 CFLAGS="$CFLAGS $LIBUUID_CFLAGS"
14000 LIBS="$LIBS $LIBUUID_LIBS"
14001 if test "$cross_compiling" = yes
14002 then :
14003
14004
14005 else $as_nop
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14008
14009 #include <inttypes.h> // PRIu64
14010 #include <stdint.h> // uint64_t
14011 #include <stdio.h> // fopen(), fclose()
14012
14013 #ifdef HAVE_UUID_H
14014 #include <uuid.h>
14015 #else
14016 #include <uuid/uuid.h>
14017 #endif
14018
14019 #define ERR 1
14020 int main(void) {
14021 uuid_t uuid; // unsigned char[16]
14022 (void)uuid_generate_time_safe(uuid);
14023 uint64_t node = 0;
14024 for (size_t i = 0; i < 6; i++) {
14025 node |= (uint64_t)uuid[15 - i] << (8 * i);
14026 }
14027 FILE *fp = fopen("conftest.out", "w");
14028 if (fp == NULL) {
14029 return ERR;
14030 }
14031 int rc = fprintf(fp, "%" PRIu64 "\n", node) >= 0;
14032 rc |= fclose(fp);
14033 return rc == 0 ? 0 : ERR;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_run "$LINENO"
14037 then :
14038
14039 py_cv_uuid_node2=`cat conftest.out`
14040
14041 fi
14042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14043 conftest.$ac_objext conftest.beam conftest.$ac_ext
14044 fi
14045
14046 CFLAGS=$save_CFLAGS
14047 CPPFLAGS=$save_CPPFLAGS
14048 LDFLAGS=$save_LDFLAGS
14049 LIBS=$save_LIBS
14050
14051
14052 if test -n "$py_cv_uuid_node1" -a "$py_cv_uuid_node1" = "$py_cv_uuid_node2"
14053 then
14054 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE_STABLE_MAC 1" >>confdefs.h
14055
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: stable" >&5
14057 printf "%s\n" "stable" >&6; }
14058 else
14059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unstable" >&5
14060 printf "%s\n" "unstable" >&6; }
14061 fi
14062 fi
14063
14064 # 'Real Time' functions on Solaris
14065 # posix4 on Solaris 2.6
14066 # pthread (first!) on Linux
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
14068 printf %s "checking for library containing sem_init... " >&6; }
14069 if test ${ac_cv_search_sem_init+y}
14070 then :
14071 printf %s "(cached) " >&6
14072 else $as_nop
14073 ac_func_search_save_LIBS=$LIBS
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14076
14077 /* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14080 char sem_init ();
14081 int
14082 main (void)
14083 {
14084 return sem_init ();
14085 ;
14086 return 0;
14087 }
14088 _ACEOF
14089 for ac_lib in '' pthread rt posix4
14090 do
14091 if test -z "$ac_lib"; then
14092 ac_res="none required"
14093 else
14094 ac_res=-l$ac_lib
14095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14096 fi
14097 if ac_fn_c_try_link "$LINENO"
14098 then :
14099 ac_cv_search_sem_init=$ac_res
14100 fi
14101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14102 conftest$ac_exeext
14103 if test ${ac_cv_search_sem_init+y}
14104 then :
14105 break
14106 fi
14107 done
14108 if test ${ac_cv_search_sem_init+y}
14109 then :
14110
14111 else $as_nop
14112 ac_cv_search_sem_init=no
14113 fi
14114 rm conftest.$ac_ext
14115 LIBS=$ac_func_search_save_LIBS
14116 fi
14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
14118 printf "%s\n" "$ac_cv_search_sem_init" >&6; }
14119 ac_res=$ac_cv_search_sem_init
14120 if test "$ac_res" != no
14121 then :
14122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14123
14124 fi
14125
14126
14127 # check if we need libintl for locale functions
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
14129 printf %s "checking for textdomain in -lintl... " >&6; }
14130 if test ${ac_cv_lib_intl_textdomain+y}
14131 then :
14132 printf %s "(cached) " >&6
14133 else $as_nop
14134 ac_check_lib_save_LIBS=$LIBS
14135 LIBS="-lintl $LIBS"
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14138
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14142 char textdomain ();
14143 int
14144 main (void)
14145 {
14146 return textdomain ();
14147 ;
14148 return 0;
14149 }
14150 _ACEOF
14151 if ac_fn_c_try_link "$LINENO"
14152 then :
14153 ac_cv_lib_intl_textdomain=yes
14154 else $as_nop
14155 ac_cv_lib_intl_textdomain=no
14156 fi
14157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14158 conftest$ac_exeext conftest.$ac_ext
14159 LIBS=$ac_check_lib_save_LIBS
14160 fi
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
14162 printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; }
14163 if test "x$ac_cv_lib_intl_textdomain" = xyes
14164 then :
14165
14166 printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h
14167
14168 LIBS="-lintl $LIBS"
14169 fi
14170
14171
14172 # checks for system dependent C++ extensions support
14173 case "$ac_sys_system" in
14174 AIX*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
14175 printf %s "checking for genuine AIX C++ extensions support... " >&6; }
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14178
14179 #include <load.h>
14180 int
14181 main (void)
14182 {
14183 loadAndInit("", 0, "")
14184 ;
14185 return 0;
14186 }
14187
14188 _ACEOF
14189 if ac_fn_c_try_link "$LINENO"
14190 then :
14191
14192
14193 printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
14194
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14196 printf "%s\n" "yes" >&6; }
14197
14198 else $as_nop
14199
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 printf "%s\n" "no" >&6; }
14202
14203 fi
14204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14205 conftest$ac_exeext conftest.$ac_ext
14206 # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag
14207 # of the AIX system used to build/package Python executable. This tag serves
14208 # as a baseline for bdist module packages
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5
14210 printf %s "checking for the system builddate... " >&6; }
14211 AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }')
14212
14213 printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h
14214
14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5
14216 printf "%s\n" "$AIX_BUILDDATE" >&6; }
14217 ;;
14218 *) ;;
14219 esac
14220
14221 # check for systems that require aligned memory access
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
14223 printf %s "checking aligned memory access is required... " >&6; }
14224 if test ${ac_cv_aligned_required+y}
14225 then :
14226 printf %s "(cached) " >&6
14227 else $as_nop
14228 if test "$cross_compiling" = yes
14229 then :
14230
14231 # "yes" changes the hash function to FNV, which causes problems with Numba
14232 # (https://github.com/numba/numba/blob/0.59.0/numba/cpython/hashing.py#L470).
14233 if test "$ac_sys_system" = "Linux-android"; then
14234 ac_cv_aligned_required=no
14235 else
14236 ac_cv_aligned_required=yes
14237 fi
14238 else $as_nop
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14241
14242 int main(void)
14243 {
14244 char s[16];
14245 int i, *p1, *p2;
14246 for (i=0; i < 16; i++)
14247 s[i] = i;
14248 p1 = (int*)(s+1);
14249 p2 = (int*)(s+2);
14250 if (*p1 == *p2)
14251 return 1;
14252 return 0;
14253 }
14254 _ACEOF
14255 if ac_fn_c_try_run "$LINENO"
14256 then :
14257 ac_cv_aligned_required=no
14258 else $as_nop
14259 ac_cv_aligned_required=yes
14260 fi
14261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14262 conftest.$ac_objext conftest.beam conftest.$ac_ext
14263 fi
14264
14265
14266 fi
14267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
14268 printf "%s\n" "$ac_cv_aligned_required" >&6; }
14269 if test "$ac_cv_aligned_required" = yes ; then
14270
14271 printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
14272
14273 fi
14274
14275 # str, bytes and memoryview hash algorithm
14276
14277
14278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
14279 printf %s "checking for --with-hash-algorithm... " >&6; }
14280
14281 # Check whether --with-hash_algorithm was given.
14282 if test ${with_hash_algorithm+y}
14283 then :
14284 withval=$with_hash_algorithm;
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
14286 printf "%s\n" "$withval" >&6; }
14287 case "$withval" in
14288 siphash13)
14289 printf "%s\n" "#define Py_HASH_ALGORITHM 3" >>confdefs.h
14290
14291 ;;
14292 siphash24)
14293 printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h
14294
14295 ;;
14296 fnv)
14297 printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h
14298
14299 ;;
14300 *)
14301 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
14302 ;;
14303 esac
14304
14305 else $as_nop
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5
14307 printf "%s\n" "default" >&6; }
14308 fi
14309
14310
14311 validate_tzpath() {
14312 # Checks that each element of the path is an absolute path
14313 if test -z "$1"; then
14314 # Empty string is allowed: it indicates no system TZPATH
14315 return 0
14316 fi
14317
14318 # Bad paths are those that don't start with /
14319 if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then
14320 as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5
14321 return 1;
14322 fi
14323 }
14324
14325 TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo"
14326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5
14327 printf %s "checking for --with-tzpath... " >&6; }
14328
14329 # Check whether --with-tzpath was given.
14330 if test ${with_tzpath+y}
14331 then :
14332 withval=$with_tzpath;
14333 case "$withval" in
14334 yes)
14335 as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5
14336 ;;
14337 *)
14338 validate_tzpath "$withval"
14339 TZPATH="$withval"
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
14341 printf "%s\n" "\"$withval\"" >&6; }
14342 ;;
14343 esac
14344
14345 else $as_nop
14346 validate_tzpath "$TZPATH"
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5
14348 printf "%s\n" "\"$TZPATH\"" >&6; }
14349 fi
14350
14351
14352
14353 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
14355 printf %s "checking for t_open in -lnsl... " >&6; }
14356 if test ${ac_cv_lib_nsl_t_open+y}
14357 then :
14358 printf %s "(cached) " >&6
14359 else $as_nop
14360 ac_check_lib_save_LIBS=$LIBS
14361 LIBS="-lnsl $LIBS"
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14364
14365 /* Override any GCC internal prototype to avoid an error.
14366 Use char because int might match the return type of a GCC
14367 builtin and then its argument prototype would still apply. */
14368 char t_open ();
14369 int
14370 main (void)
14371 {
14372 return t_open ();
14373 ;
14374 return 0;
14375 }
14376 _ACEOF
14377 if ac_fn_c_try_link "$LINENO"
14378 then :
14379 ac_cv_lib_nsl_t_open=yes
14380 else $as_nop
14381 ac_cv_lib_nsl_t_open=no
14382 fi
14383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14384 conftest$ac_exeext conftest.$ac_ext
14385 LIBS=$ac_check_lib_save_LIBS
14386 fi
14387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
14388 printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; }
14389 if test "x$ac_cv_lib_nsl_t_open" = xyes
14390 then :
14391 LIBS="-lnsl $LIBS"
14392 fi
14393 # SVR4
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14395 printf %s "checking for socket in -lsocket... " >&6; }
14396 if test ${ac_cv_lib_socket_socket+y}
14397 then :
14398 printf %s "(cached) " >&6
14399 else $as_nop
14400 ac_check_lib_save_LIBS=$LIBS
14401 LIBS="-lsocket $LIBS $LIBS"
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14404
14405 /* Override any GCC internal prototype to avoid an error.
14406 Use char because int might match the return type of a GCC
14407 builtin and then its argument prototype would still apply. */
14408 char socket ();
14409 int
14410 main (void)
14411 {
14412 return socket ();
14413 ;
14414 return 0;
14415 }
14416 _ACEOF
14417 if ac_fn_c_try_link "$LINENO"
14418 then :
14419 ac_cv_lib_socket_socket=yes
14420 else $as_nop
14421 ac_cv_lib_socket_socket=no
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14424 conftest$ac_exeext conftest.$ac_ext
14425 LIBS=$ac_check_lib_save_LIBS
14426 fi
14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14428 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
14429 if test "x$ac_cv_lib_socket_socket" = xyes
14430 then :
14431 LIBS="-lsocket $LIBS"
14432 fi
14433 # SVR4 sockets
14434
14435 case $ac_sys_system/$ac_sys_release in
14436 Haiku*)
14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
14438 printf %s "checking for socket in -lnetwork... " >&6; }
14439 if test ${ac_cv_lib_network_socket+y}
14440 then :
14441 printf %s "(cached) " >&6
14442 else $as_nop
14443 ac_check_lib_save_LIBS=$LIBS
14444 LIBS="-lnetwork $LIBS $LIBS"
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447
14448 /* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
14450 builtin and then its argument prototype would still apply. */
14451 char socket ();
14452 int
14453 main (void)
14454 {
14455 return socket ();
14456 ;
14457 return 0;
14458 }
14459 _ACEOF
14460 if ac_fn_c_try_link "$LINENO"
14461 then :
14462 ac_cv_lib_network_socket=yes
14463 else $as_nop
14464 ac_cv_lib_network_socket=no
14465 fi
14466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14467 conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14469 fi
14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
14471 printf "%s\n" "$ac_cv_lib_network_socket" >&6; }
14472 if test "x$ac_cv_lib_network_socket" = xyes
14473 then :
14474 LIBS="-lnetwork $LIBS"
14475 fi
14476
14477 ;;
14478 esac
14479
14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
14481 printf %s "checking for --with-libs... " >&6; }
14482
14483 # Check whether --with-libs was given.
14484 if test ${with_libs+y}
14485 then :
14486 withval=$with_libs;
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
14488 printf "%s\n" "$withval" >&6; }
14489 LIBS="$withval $LIBS"
14490
14491 else $as_nop
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14493 printf "%s\n" "no" >&6; }
14494 fi
14495
14496
14497 # Check for use of the system expat library
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
14499 printf %s "checking for --with-system-expat... " >&6; }
14500
14501 # Check whether --with-system_expat was given.
14502 if test ${with_system_expat+y}
14503 then :
14504 withval=$with_system_expat;
14505 else $as_nop
14506 with_system_expat="no"
14507 fi
14508
14509
14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
14511 printf "%s\n" "$with_system_expat" >&6; }
14512
14513 if test "x$with_system_expat" = xyes
14514 then :
14515
14516 LIBEXPAT_CFLAGS=${LIBEXPAT_CFLAGS-""}
14517 LIBEXPAT_LDFLAGS=${LIBEXPAT_LDFLAGS-"-lexpat"}
14518 LIBEXPAT_INTERNAL=
14519
14520 else $as_nop
14521
14522 LIBEXPAT_CFLAGS="-I\$(srcdir)/Modules/expat"
14523 LIBEXPAT_LDFLAGS="-lm \$(LIBEXPAT_A)"
14524 LIBEXPAT_INTERNAL="\$(LIBEXPAT_HEADERS) \$(LIBEXPAT_A)"
14525
14526 fi
14527
14528
14529
14530
14531 have_libffi=missing
14532 if test "x$ac_sys_system" = xDarwin
14533 then :
14534
14535 save_CFLAGS=$CFLAGS
14536 save_CPPFLAGS=$CPPFLAGS
14537 save_LDFLAGS=$LDFLAGS
14538 save_LIBS=$LIBS
14539
14540
14541 CFLAGS="-I${SDKROOT}/usr/include/ffi $CFLAGS"
14542 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14543 if test "x$ac_cv_header_ffi_h" = xyes
14544 then :
14545
14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14547 printf %s "checking for ffi_call in -lffi... " >&6; }
14548 if test ${ac_cv_lib_ffi_ffi_call+y}
14549 then :
14550 printf %s "(cached) " >&6
14551 else $as_nop
14552 ac_check_lib_save_LIBS=$LIBS
14553 LIBS="-lffi $LIBS"
14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h. */
14556
14557 /* Override any GCC internal prototype to avoid an error.
14558 Use char because int might match the return type of a GCC
14559 builtin and then its argument prototype would still apply. */
14560 char ffi_call ();
14561 int
14562 main (void)
14563 {
14564 return ffi_call ();
14565 ;
14566 return 0;
14567 }
14568 _ACEOF
14569 if ac_fn_c_try_link "$LINENO"
14570 then :
14571 ac_cv_lib_ffi_ffi_call=yes
14572 else $as_nop
14573 ac_cv_lib_ffi_ffi_call=no
14574 fi
14575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14576 conftest$ac_exeext conftest.$ac_ext
14577 LIBS=$ac_check_lib_save_LIBS
14578 fi
14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14580 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14581 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14582 then :
14583
14584 have_libffi=yes
14585 LIBFFI_CFLAGS="-I${SDKROOT}/usr/include/ffi -DUSING_APPLE_OS_LIBFFI=1"
14586 LIBFFI_LIBS="-lffi"
14587
14588 fi
14589
14590
14591 fi
14592
14593
14594 CFLAGS=$save_CFLAGS
14595 CPPFLAGS=$save_CPPFLAGS
14596 LDFLAGS=$save_LDFLAGS
14597 LIBS=$save_LIBS
14598
14599
14600
14601 fi
14602 if test "x$have_libffi" = xmissing
14603 then :
14604
14605
14606 pkg_failed=no
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libffi" >&5
14608 printf %s "checking for libffi... " >&6; }
14609
14610 if test -n "$LIBFFI_CFLAGS"; then
14611 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
14612 elif test -n "$PKG_CONFIG"; then
14613 if test -n "$PKG_CONFIG" && \
14614 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
14615 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
14616 ac_status=$?
14617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14618 test $ac_status = 0; }; then
14619 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
14620 test "x$?" != "x0" && pkg_failed=yes
14621 else
14622 pkg_failed=yes
14623 fi
14624 else
14625 pkg_failed=untried
14626 fi
14627 if test -n "$LIBFFI_LIBS"; then
14628 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
14629 elif test -n "$PKG_CONFIG"; then
14630 if test -n "$PKG_CONFIG" && \
14631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
14632 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
14633 ac_status=$?
14634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14635 test $ac_status = 0; }; then
14636 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
14637 test "x$?" != "x0" && pkg_failed=yes
14638 else
14639 pkg_failed=yes
14640 fi
14641 else
14642 pkg_failed=untried
14643 fi
14644
14645
14646
14647 if test $pkg_failed = yes; then
14648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649 printf "%s\n" "no" >&6; }
14650
14651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14652 _pkg_short_errors_supported=yes
14653 else
14654 _pkg_short_errors_supported=no
14655 fi
14656 if test $_pkg_short_errors_supported = yes; then
14657 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
14658 else
14659 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
14660 fi
14661 # Put the nasty error message in config.log where it belongs
14662 echo "$LIBFFI_PKG_ERRORS" >&5
14663
14664
14665 save_CFLAGS=$CFLAGS
14666 save_CPPFLAGS=$CPPFLAGS
14667 save_LDFLAGS=$LDFLAGS
14668 save_LIBS=$LIBS
14669
14670
14671 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
14672 LIBS="$LIBS $LIBFFI_LIBS"
14673 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14674 if test "x$ac_cv_header_ffi_h" = xyes
14675 then :
14676
14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14678 printf %s "checking for ffi_call in -lffi... " >&6; }
14679 if test ${ac_cv_lib_ffi_ffi_call+y}
14680 then :
14681 printf %s "(cached) " >&6
14682 else $as_nop
14683 ac_check_lib_save_LIBS=$LIBS
14684 LIBS="-lffi $LIBS"
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14687
14688 /* Override any GCC internal prototype to avoid an error.
14689 Use char because int might match the return type of a GCC
14690 builtin and then its argument prototype would still apply. */
14691 char ffi_call ();
14692 int
14693 main (void)
14694 {
14695 return ffi_call ();
14696 ;
14697 return 0;
14698 }
14699 _ACEOF
14700 if ac_fn_c_try_link "$LINENO"
14701 then :
14702 ac_cv_lib_ffi_ffi_call=yes
14703 else $as_nop
14704 ac_cv_lib_ffi_ffi_call=no
14705 fi
14706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14707 conftest$ac_exeext conftest.$ac_ext
14708 LIBS=$ac_check_lib_save_LIBS
14709 fi
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14711 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14712 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14713 then :
14714
14715 have_libffi=yes
14716 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
14717 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
14718
14719 else $as_nop
14720 have_libffi=no
14721 fi
14722
14723
14724 fi
14725
14726
14727 CFLAGS=$save_CFLAGS
14728 CPPFLAGS=$save_CPPFLAGS
14729 LDFLAGS=$save_LDFLAGS
14730 LIBS=$save_LIBS
14731
14732
14733
14734 elif test $pkg_failed = untried; then
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 printf "%s\n" "no" >&6; }
14737
14738 save_CFLAGS=$CFLAGS
14739 save_CPPFLAGS=$CPPFLAGS
14740 save_LDFLAGS=$LDFLAGS
14741 save_LIBS=$LIBS
14742
14743
14744 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
14745 LIBS="$LIBS $LIBFFI_LIBS"
14746 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14747 if test "x$ac_cv_header_ffi_h" = xyes
14748 then :
14749
14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14751 printf %s "checking for ffi_call in -lffi... " >&6; }
14752 if test ${ac_cv_lib_ffi_ffi_call+y}
14753 then :
14754 printf %s "(cached) " >&6
14755 else $as_nop
14756 ac_check_lib_save_LIBS=$LIBS
14757 LIBS="-lffi $LIBS"
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14760
14761 /* Override any GCC internal prototype to avoid an error.
14762 Use char because int might match the return type of a GCC
14763 builtin and then its argument prototype would still apply. */
14764 char ffi_call ();
14765 int
14766 main (void)
14767 {
14768 return ffi_call ();
14769 ;
14770 return 0;
14771 }
14772 _ACEOF
14773 if ac_fn_c_try_link "$LINENO"
14774 then :
14775 ac_cv_lib_ffi_ffi_call=yes
14776 else $as_nop
14777 ac_cv_lib_ffi_ffi_call=no
14778 fi
14779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14780 conftest$ac_exeext conftest.$ac_ext
14781 LIBS=$ac_check_lib_save_LIBS
14782 fi
14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14784 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14785 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14786 then :
14787
14788 have_libffi=yes
14789 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
14790 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
14791
14792 else $as_nop
14793 have_libffi=no
14794 fi
14795
14796
14797 fi
14798
14799
14800 CFLAGS=$save_CFLAGS
14801 CPPFLAGS=$save_CPPFLAGS
14802 LDFLAGS=$save_LDFLAGS
14803 LIBS=$save_LIBS
14804
14805
14806
14807 else
14808 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
14809 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
14810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14811 printf "%s\n" "yes" >&6; }
14812 have_libffi=yes
14813 fi
14814
14815 fi
14816
14817 if test "x$have_libffi" = xyes
14818 then :
14819
14820 ctypes_malloc_closure=no
14821 case $ac_sys_system in #(
14822 Darwin) :
14823
14824 ctypes_malloc_closure=yes
14825 ;; #(
14826 iOS) :
14827
14828 ctypes_malloc_closure=yes
14829 ;; #(
14830 sunos5) :
14831 as_fn_append LIBFFI_LIBS " -mimpure-text"
14832 ;; #(
14833 *) :
14834 ;;
14835 esac
14836 if test "x$ctypes_malloc_closure" = xyes
14837 then :
14838
14839 MODULE__CTYPES_MALLOC_CLOSURE=_ctypes/malloc_closure.c
14840 as_fn_append LIBFFI_CFLAGS " -DUSING_MALLOC_CLOSURE_DOT_C=1"
14841
14842 fi
14843
14844
14845 if test "x$ac_cv_lib_dl_dlopen" = xyes
14846 then :
14847 as_fn_append LIBFFI_LIBS " -ldl"
14848 fi
14849
14850 save_CFLAGS=$CFLAGS
14851 save_CPPFLAGS=$CPPFLAGS
14852 save_LDFLAGS=$LDFLAGS
14853 save_LIBS=$LIBS
14854
14855
14856 CFLAGS="$CFLAGS $LIBFFI_CFLAGS"
14857 LIBS="$LIBS $LIBFFI_LIBS"
14858
14859
14860
14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_cif_var" >&5
14862 printf %s "checking for ffi_prep_cif_var... " >&6; }
14863 if test ${ac_cv_func_ffi_prep_cif_var+y}
14864 then :
14865 printf %s "(cached) " >&6
14866 else $as_nop
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14869 #include <ffi.h>
14870 int
14871 main (void)
14872 {
14873 void *x=ffi_prep_cif_var
14874 ;
14875 return 0;
14876 }
14877 _ACEOF
14878 if ac_fn_c_try_compile "$LINENO"
14879 then :
14880 ac_cv_func_ffi_prep_cif_var=yes
14881 else $as_nop
14882 ac_cv_func_ffi_prep_cif_var=no
14883 fi
14884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14885
14886 fi
14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_cif_var" >&5
14888 printf "%s\n" "$ac_cv_func_ffi_prep_cif_var" >&6; }
14889 if test "x$ac_cv_func_ffi_prep_cif_var" = xyes
14890 then :
14891
14892 printf "%s\n" "#define HAVE_FFI_PREP_CIF_VAR 1" >>confdefs.h
14893
14894 fi
14895
14896
14897
14898
14899
14900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_closure_loc" >&5
14901 printf %s "checking for ffi_prep_closure_loc... " >&6; }
14902 if test ${ac_cv_func_ffi_prep_closure_loc+y}
14903 then :
14904 printf %s "(cached) " >&6
14905 else $as_nop
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <ffi.h>
14909 int
14910 main (void)
14911 {
14912 void *x=ffi_prep_closure_loc
14913 ;
14914 return 0;
14915 }
14916 _ACEOF
14917 if ac_fn_c_try_compile "$LINENO"
14918 then :
14919 ac_cv_func_ffi_prep_closure_loc=yes
14920 else $as_nop
14921 ac_cv_func_ffi_prep_closure_loc=no
14922 fi
14923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14924
14925 fi
14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_closure_loc" >&5
14927 printf "%s\n" "$ac_cv_func_ffi_prep_closure_loc" >&6; }
14928 if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes
14929 then :
14930
14931 printf "%s\n" "#define HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h
14932
14933 fi
14934
14935
14936
14937
14938
14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_closure_alloc" >&5
14940 printf %s "checking for ffi_closure_alloc... " >&6; }
14941 if test ${ac_cv_func_ffi_closure_alloc+y}
14942 then :
14943 printf %s "(cached) " >&6
14944 else $as_nop
14945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946 /* end confdefs.h. */
14947 #include <ffi.h>
14948 int
14949 main (void)
14950 {
14951 void *x=ffi_closure_alloc
14952 ;
14953 return 0;
14954 }
14955 _ACEOF
14956 if ac_fn_c_try_compile "$LINENO"
14957 then :
14958 ac_cv_func_ffi_closure_alloc=yes
14959 else $as_nop
14960 ac_cv_func_ffi_closure_alloc=no
14961 fi
14962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14963
14964 fi
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_closure_alloc" >&5
14966 printf "%s\n" "$ac_cv_func_ffi_closure_alloc" >&6; }
14967 if test "x$ac_cv_func_ffi_closure_alloc" = xyes
14968 then :
14969
14970 printf "%s\n" "#define HAVE_FFI_CLOSURE_ALLOC 1" >>confdefs.h
14971
14972 fi
14973
14974
14975
14976
14977 CFLAGS=$save_CFLAGS
14978 CPPFLAGS=$save_CPPFLAGS
14979 LDFLAGS=$save_LDFLAGS
14980 LIBS=$save_LIBS
14981
14982
14983
14984 fi
14985
14986 # Check for use of the system libmpdec library
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
14988 printf %s "checking for --with-system-libmpdec... " >&6; }
14989
14990 # Check whether --with-system_libmpdec was given.
14991 if test ${with_system_libmpdec+y}
14992 then :
14993 withval=$with_system_libmpdec;
14994 else $as_nop
14995 with_system_libmpdec="yes"
14996 fi
14997
14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
14999 printf "%s\n" "$with_system_libmpdec" >&6; }
15000
15001
15002
15003 if test "x$with_system_libmpdec" = xyes
15004 then :
15005
15006 pkg_failed=no
15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpdec >= 2.5.0" >&5
15008 printf %s "checking for libmpdec >= 2.5.0... " >&6; }
15009
15010 if test -n "$LIBMPDEC_CFLAGS"; then
15011 pkg_cv_LIBMPDEC_CFLAGS="$LIBMPDEC_CFLAGS"
15012 elif test -n "$PKG_CONFIG"; then
15013 if test -n "$PKG_CONFIG" && \
15014 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5
15015 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5
15016 ac_status=$?
15017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15018 test $ac_status = 0; }; then
15019 pkg_cv_LIBMPDEC_CFLAGS=`$PKG_CONFIG --cflags "libmpdec >= 2.5.0" 2>/dev/null`
15020 test "x$?" != "x0" && pkg_failed=yes
15021 else
15022 pkg_failed=yes
15023 fi
15024 else
15025 pkg_failed=untried
15026 fi
15027 if test -n "$LIBMPDEC_LIBS"; then
15028 pkg_cv_LIBMPDEC_LIBS="$LIBMPDEC_LIBS"
15029 elif test -n "$PKG_CONFIG"; then
15030 if test -n "$PKG_CONFIG" && \
15031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5
15032 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5
15033 ac_status=$?
15034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15035 test $ac_status = 0; }; then
15036 pkg_cv_LIBMPDEC_LIBS=`$PKG_CONFIG --libs "libmpdec >= 2.5.0" 2>/dev/null`
15037 test "x$?" != "x0" && pkg_failed=yes
15038 else
15039 pkg_failed=yes
15040 fi
15041 else
15042 pkg_failed=untried
15043 fi
15044
15045
15046
15047 if test $pkg_failed = yes; then
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 printf "%s\n" "no" >&6; }
15050
15051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15052 _pkg_short_errors_supported=yes
15053 else
15054 _pkg_short_errors_supported=no
15055 fi
15056 if test $_pkg_short_errors_supported = yes; then
15057 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1`
15058 else
15059 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1`
15060 fi
15061 # Put the nasty error message in config.log where it belongs
15062 echo "$LIBMPDEC_PKG_ERRORS" >&5
15063
15064 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
15065 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
15066 LIBMPDEC_INTERNAL=
15067 elif test $pkg_failed = untried; then
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15069 printf "%s\n" "no" >&6; }
15070 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
15071 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
15072 LIBMPDEC_INTERNAL=
15073 else
15074 LIBMPDEC_CFLAGS=$pkg_cv_LIBMPDEC_CFLAGS
15075 LIBMPDEC_LIBS=$pkg_cv_LIBMPDEC_LIBS
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077 printf "%s\n" "yes" >&6; }
15078
15079 fi
15080 else $as_nop
15081 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
15082 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)"
15083 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
15084 have_mpdec=yes
15085 with_system_libmpdec=no
15086 fi
15087
15088 if test "x$with_system_libmpdec" = xyes
15089 then :
15090 save_CFLAGS=$CFLAGS
15091 save_CPPFLAGS=$CPPFLAGS
15092 save_LDFLAGS=$LDFLAGS
15093 save_LIBS=$LIBS
15094
15095
15096 CPPFLAGS="$CPPFLAGS $LIBMPDEC_CFLAGS"
15097 LIBS="$LIBS $LIBMPDEC_LIBS"
15098
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h. */
15101
15102
15103 #include <mpdecimal.h>
15104 #if MPD_VERSION_HEX < 0x02050000
15105 # error "mpdecimal 2.5.0 or higher required"
15106 #endif
15107
15108 int
15109 main (void)
15110 {
15111 const char *x = mpd_version();
15112 ;
15113 return 0;
15114 }
15115 _ACEOF
15116 if ac_fn_c_try_link "$LINENO"
15117 then :
15118 have_mpdec=yes
15119 else $as_nop
15120 have_mpdec=no
15121 fi
15122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15123 conftest$ac_exeext conftest.$ac_ext
15124
15125 CFLAGS=$save_CFLAGS
15126 CPPFLAGS=$save_CPPFLAGS
15127 LDFLAGS=$save_LDFLAGS
15128 LIBS=$save_LIBS
15129
15130
15131 else $as_nop
15132 { 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
15133 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;}
15134 fi
15135
15136 if test "$with_system_libmpdec" = "yes" && test "$have_mpdec" = "no"
15137 then :
15138 { 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
15139 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;}
15140 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
15141 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)"
15142 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
15143 have_mpdec=yes
15144 with_system_libmpdec=no
15145 fi
15146
15147 # Disable forced inlining in debug builds, see GH-94847
15148 if test "x$with_pydebug" = xyes
15149 then :
15150 as_fn_append LIBMPDEC_CFLAGS " -DTEST_COVERAGE"
15151 fi
15152
15153 # Check whether _decimal should use a coroutine-local or thread-local context
15154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
15155 printf %s "checking for --with-decimal-contextvar... " >&6; }
15156
15157 # Check whether --with-decimal_contextvar was given.
15158 if test ${with_decimal_contextvar+y}
15159 then :
15160 withval=$with_decimal_contextvar;
15161 else $as_nop
15162 with_decimal_contextvar="yes"
15163 fi
15164
15165
15166 if test "$with_decimal_contextvar" != "no"
15167 then
15168
15169 printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
15170
15171 fi
15172
15173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
15174 printf "%s\n" "$with_decimal_contextvar" >&6; }
15175
15176 if test "x$with_system_libmpdec" = xno
15177 then :
15178 # Check for libmpdec machine flavor
15179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for decimal libmpdec machine" >&5
15180 printf %s "checking for decimal libmpdec machine... " >&6; }
15181 case $ac_sys_system in #(
15182 Darwin*) :
15183 libmpdec_system=Darwin ;; #(
15184 SunOS*) :
15185 libmpdec_system=sunos ;; #(
15186 *) :
15187 libmpdec_system=other
15188 ;;
15189 esac
15190
15191 libmpdec_machine=unknown
15192 if test "$libmpdec_system" = Darwin; then
15193 # universal here means: build libmpdec with the same arch options
15194 # the python interpreter was built with
15195 libmpdec_machine=universal
15196 elif test $ac_cv_sizeof_size_t -eq 8; then
15197 if test "$ac_cv_gcc_asm_for_x64" = yes; then
15198 libmpdec_machine=x64
15199 elif test "$ac_cv_type___uint128_t" = yes; then
15200 libmpdec_machine=uint128
15201 else
15202 libmpdec_machine=ansi64
15203 fi
15204 elif test $ac_cv_sizeof_size_t -eq 4; then
15205 if test "$ac_cv_gcc_asm_for_x87" = yes -a "$libmpdec_system" != sunos; then
15206 case $CC in #(
15207 *gcc*) :
15208 libmpdec_machine=ppro ;; #(
15209 *clang*) :
15210 libmpdec_machine=ppro ;; #(
15211 *) :
15212 libmpdec_machine=ansi32
15213 ;;
15214 esac
15215 else
15216 libmpdec_machine=ansi32
15217 fi
15218 fi
15219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libmpdec_machine" >&5
15220 printf "%s\n" "$libmpdec_machine" >&6; }
15221
15222 case $libmpdec_machine in #(
15223 x64) :
15224 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DASM=1" ;; #(
15225 uint128) :
15226 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1" ;; #(
15227 ansi64) :
15228 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1" ;; #(
15229 ppro) :
15230 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DASM=1 -Wno-unknown-pragmas" ;; #(
15231 ansi32) :
15232 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1" ;; #(
15233 ansi-legacy) :
15234 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DLEGACY_COMPILER=1" ;; #(
15235 universal) :
15236 as_fn_append LIBMPDEC_CFLAGS " -DUNIVERSAL=1" ;; #(
15237 *) :
15238 as_fn_error $? "_decimal: unsupported architecture" "$LINENO" 5
15239 ;;
15240 esac
15241 fi
15242
15243 if test "$have_ipa_pure_const_bug" = yes; then
15244 # Some versions of gcc miscompile inline asm:
15245 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
15246 # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
15247 as_fn_append LIBMPDEC_CFLAGS " -fno-ipa-pure-const"
15248 fi
15249
15250 if test "$have_glibc_memmove_bug" = yes; then
15251 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
15252 # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
15253 as_fn_append LIBMPDEC_CFLAGS " -U_FORTIFY_SOURCE"
15254 fi
15255
15256
15257
15258
15259
15260
15261
15262
15263 if test "$ac_sys_system" = "Emscripten" -a -z "$LIBSQLITE3_CFLAGS" -a -z "$LIBSQLITE3_LIBS"
15264 then :
15265
15266 LIBSQLITE3_CFLAGS="-sUSE_SQLITE3"
15267 LIBSQLITE3_LIBS="-sUSE_SQLITE3"
15268
15269 fi
15270
15271
15272
15273
15274
15275 pkg_failed=no
15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.15.2" >&5
15277 printf %s "checking for sqlite3 >= 3.15.2... " >&6; }
15278
15279 if test -n "$LIBSQLITE3_CFLAGS"; then
15280 pkg_cv_LIBSQLITE3_CFLAGS="$LIBSQLITE3_CFLAGS"
15281 elif test -n "$PKG_CONFIG"; then
15282 if test -n "$PKG_CONFIG" && \
15283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
15284 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
15285 ac_status=$?
15286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15287 test $ac_status = 0; }; then
15288 pkg_cv_LIBSQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.15.2" 2>/dev/null`
15289 test "x$?" != "x0" && pkg_failed=yes
15290 else
15291 pkg_failed=yes
15292 fi
15293 else
15294 pkg_failed=untried
15295 fi
15296 if test -n "$LIBSQLITE3_LIBS"; then
15297 pkg_cv_LIBSQLITE3_LIBS="$LIBSQLITE3_LIBS"
15298 elif test -n "$PKG_CONFIG"; then
15299 if test -n "$PKG_CONFIG" && \
15300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
15301 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
15302 ac_status=$?
15303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15304 test $ac_status = 0; }; then
15305 pkg_cv_LIBSQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.15.2" 2>/dev/null`
15306 test "x$?" != "x0" && pkg_failed=yes
15307 else
15308 pkg_failed=yes
15309 fi
15310 else
15311 pkg_failed=untried
15312 fi
15313
15314
15315
15316 if test $pkg_failed = yes; then
15317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15318 printf "%s\n" "no" >&6; }
15319
15320 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15321 _pkg_short_errors_supported=yes
15322 else
15323 _pkg_short_errors_supported=no
15324 fi
15325 if test $_pkg_short_errors_supported = yes; then
15326 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
15327 else
15328 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
15329 fi
15330 # Put the nasty error message in config.log where it belongs
15331 echo "$LIBSQLITE3_PKG_ERRORS" >&5
15332
15333
15334 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
15335 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
15336
15337
15338 elif test $pkg_failed = untried; then
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15340 printf "%s\n" "no" >&6; }
15341
15342 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
15343 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
15344
15345
15346 else
15347 LIBSQLITE3_CFLAGS=$pkg_cv_LIBSQLITE3_CFLAGS
15348 LIBSQLITE3_LIBS=$pkg_cv_LIBSQLITE3_LIBS
15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15350 printf "%s\n" "yes" >&6; }
15351
15352 fi
15353 as_fn_append LIBSQLITE3_CFLAGS ' -I$(srcdir)/Modules/_sqlite'
15354
15355
15356
15357 save_CFLAGS=$CFLAGS
15358 save_CPPFLAGS=$CPPFLAGS
15359 save_LDFLAGS=$LDFLAGS
15360 save_LIBS=$LIBS
15361
15362
15363 CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS"
15364 LIBS="$LIBS $LIBSQLITE3_LIBS"
15365
15366 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
15367 if test "x$ac_cv_header_sqlite3_h" = xyes
15368 then :
15369
15370 have_sqlite3=yes
15371
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15374
15375
15376 #include <sqlite3.h>
15377 #if SQLITE_VERSION_NUMBER < 3015002
15378 # error "SQLite 3.15.2 or higher required"
15379 #endif
15380
15381 int
15382 main (void)
15383 {
15384
15385 ;
15386 return 0;
15387 }
15388
15389 _ACEOF
15390 if ac_fn_c_try_compile "$LINENO"
15391 then :
15392
15393 have_supported_sqlite3=yes
15394
15395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_double in -lsqlite3" >&5
15396 printf %s "checking for sqlite3_bind_double in -lsqlite3... " >&6; }
15397 if test ${ac_cv_lib_sqlite3_sqlite3_bind_double+y}
15398 then :
15399 printf %s "(cached) " >&6
15400 else $as_nop
15401 ac_check_lib_save_LIBS=$LIBS
15402 LIBS="-lsqlite3 $LIBS"
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15405
15406 /* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15409 char sqlite3_bind_double ();
15410 int
15411 main (void)
15412 {
15413 return sqlite3_bind_double ();
15414 ;
15415 return 0;
15416 }
15417 _ACEOF
15418 if ac_fn_c_try_link "$LINENO"
15419 then :
15420 ac_cv_lib_sqlite3_sqlite3_bind_double=yes
15421 else $as_nop
15422 ac_cv_lib_sqlite3_sqlite3_bind_double=no
15423 fi
15424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15425 conftest$ac_exeext conftest.$ac_ext
15426 LIBS=$ac_check_lib_save_LIBS
15427 fi
15428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_double" >&5
15429 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_bind_double" >&6; }
15430 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_double" = xyes
15431 then :
15432 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15433
15434 LIBS="-lsqlite3 $LIBS"
15435
15436 else $as_nop
15437
15438 have_supported_sqlite3=no
15439
15440 fi
15441
15442
15443
15444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_decltype in -lsqlite3" >&5
15445 printf %s "checking for sqlite3_column_decltype in -lsqlite3... " >&6; }
15446 if test ${ac_cv_lib_sqlite3_sqlite3_column_decltype+y}
15447 then :
15448 printf %s "(cached) " >&6
15449 else $as_nop
15450 ac_check_lib_save_LIBS=$LIBS
15451 LIBS="-lsqlite3 $LIBS"
15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h. */
15454
15455 /* Override any GCC internal prototype to avoid an error.
15456 Use char because int might match the return type of a GCC
15457 builtin and then its argument prototype would still apply. */
15458 char sqlite3_column_decltype ();
15459 int
15460 main (void)
15461 {
15462 return sqlite3_column_decltype ();
15463 ;
15464 return 0;
15465 }
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"
15468 then :
15469 ac_cv_lib_sqlite3_sqlite3_column_decltype=yes
15470 else $as_nop
15471 ac_cv_lib_sqlite3_sqlite3_column_decltype=no
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15474 conftest$ac_exeext conftest.$ac_ext
15475 LIBS=$ac_check_lib_save_LIBS
15476 fi
15477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_decltype" >&5
15478 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_decltype" >&6; }
15479 if test "x$ac_cv_lib_sqlite3_sqlite3_column_decltype" = xyes
15480 then :
15481 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15482
15483 LIBS="-lsqlite3 $LIBS"
15484
15485 else $as_nop
15486
15487 have_supported_sqlite3=no
15488
15489 fi
15490
15491
15492
15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_double in -lsqlite3" >&5
15494 printf %s "checking for sqlite3_column_double in -lsqlite3... " >&6; }
15495 if test ${ac_cv_lib_sqlite3_sqlite3_column_double+y}
15496 then :
15497 printf %s "(cached) " >&6
15498 else $as_nop
15499 ac_check_lib_save_LIBS=$LIBS
15500 LIBS="-lsqlite3 $LIBS"
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503
15504 /* Override any GCC internal prototype to avoid an error.
15505 Use char because int might match the return type of a GCC
15506 builtin and then its argument prototype would still apply. */
15507 char sqlite3_column_double ();
15508 int
15509 main (void)
15510 {
15511 return sqlite3_column_double ();
15512 ;
15513 return 0;
15514 }
15515 _ACEOF
15516 if ac_fn_c_try_link "$LINENO"
15517 then :
15518 ac_cv_lib_sqlite3_sqlite3_column_double=yes
15519 else $as_nop
15520 ac_cv_lib_sqlite3_sqlite3_column_double=no
15521 fi
15522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15523 conftest$ac_exeext conftest.$ac_ext
15524 LIBS=$ac_check_lib_save_LIBS
15525 fi
15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_double" >&5
15527 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_double" >&6; }
15528 if test "x$ac_cv_lib_sqlite3_sqlite3_column_double" = xyes
15529 then :
15530 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15531
15532 LIBS="-lsqlite3 $LIBS"
15533
15534 else $as_nop
15535
15536 have_supported_sqlite3=no
15537
15538 fi
15539
15540
15541
15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_complete in -lsqlite3" >&5
15543 printf %s "checking for sqlite3_complete in -lsqlite3... " >&6; }
15544 if test ${ac_cv_lib_sqlite3_sqlite3_complete+y}
15545 then :
15546 printf %s "(cached) " >&6
15547 else $as_nop
15548 ac_check_lib_save_LIBS=$LIBS
15549 LIBS="-lsqlite3 $LIBS"
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552
15553 /* Override any GCC internal prototype to avoid an error.
15554 Use char because int might match the return type of a GCC
15555 builtin and then its argument prototype would still apply. */
15556 char sqlite3_complete ();
15557 int
15558 main (void)
15559 {
15560 return sqlite3_complete ();
15561 ;
15562 return 0;
15563 }
15564 _ACEOF
15565 if ac_fn_c_try_link "$LINENO"
15566 then :
15567 ac_cv_lib_sqlite3_sqlite3_complete=yes
15568 else $as_nop
15569 ac_cv_lib_sqlite3_sqlite3_complete=no
15570 fi
15571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15572 conftest$ac_exeext conftest.$ac_ext
15573 LIBS=$ac_check_lib_save_LIBS
15574 fi
15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_complete" >&5
15576 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_complete" >&6; }
15577 if test "x$ac_cv_lib_sqlite3_sqlite3_complete" = xyes
15578 then :
15579 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15580
15581 LIBS="-lsqlite3 $LIBS"
15582
15583 else $as_nop
15584
15585 have_supported_sqlite3=no
15586
15587 fi
15588
15589
15590
15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_progress_handler in -lsqlite3" >&5
15592 printf %s "checking for sqlite3_progress_handler in -lsqlite3... " >&6; }
15593 if test ${ac_cv_lib_sqlite3_sqlite3_progress_handler+y}
15594 then :
15595 printf %s "(cached) " >&6
15596 else $as_nop
15597 ac_check_lib_save_LIBS=$LIBS
15598 LIBS="-lsqlite3 $LIBS"
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601
15602 /* Override any GCC internal prototype to avoid an error.
15603 Use char because int might match the return type of a GCC
15604 builtin and then its argument prototype would still apply. */
15605 char sqlite3_progress_handler ();
15606 int
15607 main (void)
15608 {
15609 return sqlite3_progress_handler ();
15610 ;
15611 return 0;
15612 }
15613 _ACEOF
15614 if ac_fn_c_try_link "$LINENO"
15615 then :
15616 ac_cv_lib_sqlite3_sqlite3_progress_handler=yes
15617 else $as_nop
15618 ac_cv_lib_sqlite3_sqlite3_progress_handler=no
15619 fi
15620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15621 conftest$ac_exeext conftest.$ac_ext
15622 LIBS=$ac_check_lib_save_LIBS
15623 fi
15624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_progress_handler" >&5
15625 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_progress_handler" >&6; }
15626 if test "x$ac_cv_lib_sqlite3_sqlite3_progress_handler" = xyes
15627 then :
15628 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15629
15630 LIBS="-lsqlite3 $LIBS"
15631
15632 else $as_nop
15633
15634 have_supported_sqlite3=no
15635
15636 fi
15637
15638
15639
15640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_double in -lsqlite3" >&5
15641 printf %s "checking for sqlite3_result_double in -lsqlite3... " >&6; }
15642 if test ${ac_cv_lib_sqlite3_sqlite3_result_double+y}
15643 then :
15644 printf %s "(cached) " >&6
15645 else $as_nop
15646 ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lsqlite3 $LIBS"
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15650
15651 /* Override any GCC internal prototype to avoid an error.
15652 Use char because int might match the return type of a GCC
15653 builtin and then its argument prototype would still apply. */
15654 char sqlite3_result_double ();
15655 int
15656 main (void)
15657 {
15658 return sqlite3_result_double ();
15659 ;
15660 return 0;
15661 }
15662 _ACEOF
15663 if ac_fn_c_try_link "$LINENO"
15664 then :
15665 ac_cv_lib_sqlite3_sqlite3_result_double=yes
15666 else $as_nop
15667 ac_cv_lib_sqlite3_sqlite3_result_double=no
15668 fi
15669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LIBS=$ac_check_lib_save_LIBS
15672 fi
15673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_double" >&5
15674 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_result_double" >&6; }
15675 if test "x$ac_cv_lib_sqlite3_sqlite3_result_double" = xyes
15676 then :
15677 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15678
15679 LIBS="-lsqlite3 $LIBS"
15680
15681 else $as_nop
15682
15683 have_supported_sqlite3=no
15684
15685 fi
15686
15687
15688
15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_set_authorizer in -lsqlite3" >&5
15690 printf %s "checking for sqlite3_set_authorizer in -lsqlite3... " >&6; }
15691 if test ${ac_cv_lib_sqlite3_sqlite3_set_authorizer+y}
15692 then :
15693 printf %s "(cached) " >&6
15694 else $as_nop
15695 ac_check_lib_save_LIBS=$LIBS
15696 LIBS="-lsqlite3 $LIBS"
15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15699
15700 /* Override any GCC internal prototype to avoid an error.
15701 Use char because int might match the return type of a GCC
15702 builtin and then its argument prototype would still apply. */
15703 char sqlite3_set_authorizer ();
15704 int
15705 main (void)
15706 {
15707 return sqlite3_set_authorizer ();
15708 ;
15709 return 0;
15710 }
15711 _ACEOF
15712 if ac_fn_c_try_link "$LINENO"
15713 then :
15714 ac_cv_lib_sqlite3_sqlite3_set_authorizer=yes
15715 else $as_nop
15716 ac_cv_lib_sqlite3_sqlite3_set_authorizer=no
15717 fi
15718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15719 conftest$ac_exeext conftest.$ac_ext
15720 LIBS=$ac_check_lib_save_LIBS
15721 fi
15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&5
15723 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&6; }
15724 if test "x$ac_cv_lib_sqlite3_sqlite3_set_authorizer" = xyes
15725 then :
15726 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15727
15728 LIBS="-lsqlite3 $LIBS"
15729
15730 else $as_nop
15731
15732 have_supported_sqlite3=no
15733
15734 fi
15735
15736
15737
15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace_v2 in -lsqlite3" >&5
15739 printf %s "checking for sqlite3_trace_v2 in -lsqlite3... " >&6; }
15740 if test ${ac_cv_lib_sqlite3_sqlite3_trace_v2+y}
15741 then :
15742 printf %s "(cached) " >&6
15743 else $as_nop
15744 ac_check_lib_save_LIBS=$LIBS
15745 LIBS="-lsqlite3 $LIBS"
15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747 /* end confdefs.h. */
15748
15749 /* Override any GCC internal prototype to avoid an error.
15750 Use char because int might match the return type of a GCC
15751 builtin and then its argument prototype would still apply. */
15752 char sqlite3_trace_v2 ();
15753 int
15754 main (void)
15755 {
15756 return sqlite3_trace_v2 ();
15757 ;
15758 return 0;
15759 }
15760 _ACEOF
15761 if ac_fn_c_try_link "$LINENO"
15762 then :
15763 ac_cv_lib_sqlite3_sqlite3_trace_v2=yes
15764 else $as_nop
15765 ac_cv_lib_sqlite3_sqlite3_trace_v2=no
15766 fi
15767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15768 conftest$ac_exeext conftest.$ac_ext
15769 LIBS=$ac_check_lib_save_LIBS
15770 fi
15771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace_v2" >&5
15772 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace_v2" >&6; }
15773 if test "x$ac_cv_lib_sqlite3_sqlite3_trace_v2" = xyes
15774 then :
15775 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15776
15777 LIBS="-lsqlite3 $LIBS"
15778
15779 else $as_nop
15780
15781
15782
15783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace in -lsqlite3" >&5
15784 printf %s "checking for sqlite3_trace in -lsqlite3... " >&6; }
15785 if test ${ac_cv_lib_sqlite3_sqlite3_trace+y}
15786 then :
15787 printf %s "(cached) " >&6
15788 else $as_nop
15789 ac_check_lib_save_LIBS=$LIBS
15790 LIBS="-lsqlite3 $LIBS"
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793
15794 /* Override any GCC internal prototype to avoid an error.
15795 Use char because int might match the return type of a GCC
15796 builtin and then its argument prototype would still apply. */
15797 char sqlite3_trace ();
15798 int
15799 main (void)
15800 {
15801 return sqlite3_trace ();
15802 ;
15803 return 0;
15804 }
15805 _ACEOF
15806 if ac_fn_c_try_link "$LINENO"
15807 then :
15808 ac_cv_lib_sqlite3_sqlite3_trace=yes
15809 else $as_nop
15810 ac_cv_lib_sqlite3_sqlite3_trace=no
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15813 conftest$ac_exeext conftest.$ac_ext
15814 LIBS=$ac_check_lib_save_LIBS
15815 fi
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace" >&5
15817 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace" >&6; }
15818 if test "x$ac_cv_lib_sqlite3_sqlite3_trace" = xyes
15819 then :
15820 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15821
15822 LIBS="-lsqlite3 $LIBS"
15823
15824 else $as_nop
15825
15826 have_supported_sqlite3=no
15827
15828 fi
15829
15830
15831
15832
15833 fi
15834
15835
15836
15837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_value_double in -lsqlite3" >&5
15838 printf %s "checking for sqlite3_value_double in -lsqlite3... " >&6; }
15839 if test ${ac_cv_lib_sqlite3_sqlite3_value_double+y}
15840 then :
15841 printf %s "(cached) " >&6
15842 else $as_nop
15843 ac_check_lib_save_LIBS=$LIBS
15844 LIBS="-lsqlite3 $LIBS"
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15847
15848 /* Override any GCC internal prototype to avoid an error.
15849 Use char because int might match the return type of a GCC
15850 builtin and then its argument prototype would still apply. */
15851 char sqlite3_value_double ();
15852 int
15853 main (void)
15854 {
15855 return sqlite3_value_double ();
15856 ;
15857 return 0;
15858 }
15859 _ACEOF
15860 if ac_fn_c_try_link "$LINENO"
15861 then :
15862 ac_cv_lib_sqlite3_sqlite3_value_double=yes
15863 else $as_nop
15864 ac_cv_lib_sqlite3_sqlite3_value_double=no
15865 fi
15866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15867 conftest$ac_exeext conftest.$ac_ext
15868 LIBS=$ac_check_lib_save_LIBS
15869 fi
15870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_value_double" >&5
15871 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_value_double" >&6; }
15872 if test "x$ac_cv_lib_sqlite3_sqlite3_value_double" = xyes
15873 then :
15874 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15875
15876 LIBS="-lsqlite3 $LIBS"
15877
15878 else $as_nop
15879
15880 have_supported_sqlite3=no
15881
15882 fi
15883
15884
15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
15886 printf %s "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
15887 if test ${ac_cv_lib_sqlite3_sqlite3_load_extension+y}
15888 then :
15889 printf %s "(cached) " >&6
15890 else $as_nop
15891 ac_check_lib_save_LIBS=$LIBS
15892 LIBS="-lsqlite3 $LIBS"
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15895
15896 /* Override any GCC internal prototype to avoid an error.
15897 Use char because int might match the return type of a GCC
15898 builtin and then its argument prototype would still apply. */
15899 char sqlite3_load_extension ();
15900 int
15901 main (void)
15902 {
15903 return sqlite3_load_extension ();
15904 ;
15905 return 0;
15906 }
15907 _ACEOF
15908 if ac_fn_c_try_link "$LINENO"
15909 then :
15910 ac_cv_lib_sqlite3_sqlite3_load_extension=yes
15911 else $as_nop
15912 ac_cv_lib_sqlite3_sqlite3_load_extension=no
15913 fi
15914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15915 conftest$ac_exeext conftest.$ac_ext
15916 LIBS=$ac_check_lib_save_LIBS
15917 fi
15918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
15919 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
15920 if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes
15921 then :
15922 have_sqlite3_load_extension=yes
15923 else $as_nop
15924 have_sqlite3_load_extension=no
15925
15926 fi
15927
15928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_serialize in -lsqlite3" >&5
15929 printf %s "checking for sqlite3_serialize in -lsqlite3... " >&6; }
15930 if test ${ac_cv_lib_sqlite3_sqlite3_serialize+y}
15931 then :
15932 printf %s "(cached) " >&6
15933 else $as_nop
15934 ac_check_lib_save_LIBS=$LIBS
15935 LIBS="-lsqlite3 $LIBS"
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15938
15939 /* Override any GCC internal prototype to avoid an error.
15940 Use char because int might match the return type of a GCC
15941 builtin and then its argument prototype would still apply. */
15942 char sqlite3_serialize ();
15943 int
15944 main (void)
15945 {
15946 return sqlite3_serialize ();
15947 ;
15948 return 0;
15949 }
15950 _ACEOF
15951 if ac_fn_c_try_link "$LINENO"
15952 then :
15953 ac_cv_lib_sqlite3_sqlite3_serialize=yes
15954 else $as_nop
15955 ac_cv_lib_sqlite3_sqlite3_serialize=no
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15958 conftest$ac_exeext conftest.$ac_ext
15959 LIBS=$ac_check_lib_save_LIBS
15960 fi
15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_serialize" >&5
15962 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_serialize" >&6; }
15963 if test "x$ac_cv_lib_sqlite3_sqlite3_serialize" = xyes
15964 then :
15965
15966
15967 printf "%s\n" "#define PY_SQLITE_HAVE_SERIALIZE 1" >>confdefs.h
15968
15969
15970 fi
15971
15972
15973 else $as_nop
15974
15975 have_supported_sqlite3=no
15976
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15979
15980 fi
15981
15982
15983 CFLAGS=$save_CFLAGS
15984 CPPFLAGS=$save_CPPFLAGS
15985 LDFLAGS=$save_LDFLAGS
15986 LIBS=$save_LIBS
15987
15988
15989
15990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
15991 printf %s "checking for --enable-loadable-sqlite-extensions... " >&6; }
15992 # Check whether --enable-loadable-sqlite-extensions was given.
15993 if test ${enable_loadable_sqlite_extensions+y}
15994 then :
15995 enableval=$enable_loadable_sqlite_extensions;
15996 if test "x$have_sqlite3_load_extension" = xno
15997 then :
15998
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5
16000 printf "%s\n" "n/a" >&6; }
16001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of SQLite does not support loadable extensions" >&5
16002 printf "%s\n" "$as_me: WARNING: Your version of SQLite does not support loadable extensions" >&2;}
16003
16004 else $as_nop
16005
16006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16007 printf "%s\n" "yes" >&6; }
16008
16009 printf "%s\n" "#define PY_SQLITE_ENABLE_LOAD_EXTENSION 1" >>confdefs.h
16010
16011
16012 fi
16013
16014 else $as_nop
16015
16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017 printf "%s\n" "no" >&6; }
16018
16019
16020 fi
16021
16022
16023 found_tcltk=no
16024 for _QUERY in \
16025 "tcl >= 8.5.12 tk >= 8.5.12" \
16026 "tcl8.6 tk8.6" \
16027 "tcl86 tk86" \
16028 "tcl8.5 >= 8.5.12 tk8.5 >= 8.5.12" \
16029 "tcl85 >= 8.5.12 tk85 >= 8.5.12" \
16030 ; do
16031 if test -n "$PKG_CONFIG" && \
16032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
16033 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
16034 ac_status=$?
16035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16036 test $ac_status = 0; }; then
16037
16038
16039 pkg_failed=no
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $_QUERY" >&5
16041 printf %s "checking for $_QUERY... " >&6; }
16042
16043 if test -n "$TCLTK_CFLAGS"; then
16044 pkg_cv_TCLTK_CFLAGS="$TCLTK_CFLAGS"
16045 elif test -n "$PKG_CONFIG"; then
16046 if test -n "$PKG_CONFIG" && \
16047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
16048 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
16049 ac_status=$?
16050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16051 test $ac_status = 0; }; then
16052 pkg_cv_TCLTK_CFLAGS=`$PKG_CONFIG --cflags "$_QUERY" 2>/dev/null`
16053 test "x$?" != "x0" && pkg_failed=yes
16054 else
16055 pkg_failed=yes
16056 fi
16057 else
16058 pkg_failed=untried
16059 fi
16060 if test -n "$TCLTK_LIBS"; then
16061 pkg_cv_TCLTK_LIBS="$TCLTK_LIBS"
16062 elif test -n "$PKG_CONFIG"; then
16063 if test -n "$PKG_CONFIG" && \
16064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
16065 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
16066 ac_status=$?
16067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068 test $ac_status = 0; }; then
16069 pkg_cv_TCLTK_LIBS=`$PKG_CONFIG --libs "$_QUERY" 2>/dev/null`
16070 test "x$?" != "x0" && pkg_failed=yes
16071 else
16072 pkg_failed=yes
16073 fi
16074 else
16075 pkg_failed=untried
16076 fi
16077
16078
16079
16080 if test $pkg_failed = yes; then
16081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082 printf "%s\n" "no" >&6; }
16083
16084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16085 _pkg_short_errors_supported=yes
16086 else
16087 _pkg_short_errors_supported=no
16088 fi
16089 if test $_pkg_short_errors_supported = yes; then
16090 TCLTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$_QUERY" 2>&1`
16091 else
16092 TCLTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$_QUERY" 2>&1`
16093 fi
16094 # Put the nasty error message in config.log where it belongs
16095 echo "$TCLTK_PKG_ERRORS" >&5
16096
16097 found_tcltk=no
16098 elif test $pkg_failed = untried; then
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100 printf "%s\n" "no" >&6; }
16101 found_tcltk=no
16102 else
16103 TCLTK_CFLAGS=$pkg_cv_TCLTK_CFLAGS
16104 TCLTK_LIBS=$pkg_cv_TCLTK_LIBS
16105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106 printf "%s\n" "yes" >&6; }
16107 found_tcltk=yes
16108 fi
16109
16110 fi
16111 if test "x$found_tcltk" = xyes
16112 then :
16113 break
16114 fi
16115 done
16116
16117 if test "x$found_tcltk" = xno
16118 then :
16119
16120 TCLTK_CFLAGS=${TCLTK_CFLAGS-""}
16121 TCLTK_LIBS=${TCLTK_LIBS-""}
16122
16123 fi
16124
16125 case $ac_sys_system in #(
16126 FreeBSD*) :
16127
16128 if test -n "$PKG_CONFIG" && \
16129 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16130 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16131 ac_status=$?
16132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16133 test $ac_status = 0; }; then
16134
16135
16136 pkg_failed=no
16137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
16138 printf %s "checking for x11... " >&6; }
16139
16140 if test -n "$X11_CFLAGS"; then
16141 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
16142 elif test -n "$PKG_CONFIG"; then
16143 if test -n "$PKG_CONFIG" && \
16144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16145 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16146 ac_status=$?
16147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16148 test $ac_status = 0; }; then
16149 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
16150 test "x$?" != "x0" && pkg_failed=yes
16151 else
16152 pkg_failed=yes
16153 fi
16154 else
16155 pkg_failed=untried
16156 fi
16157 if test -n "$X11_LIBS"; then
16158 pkg_cv_X11_LIBS="$X11_LIBS"
16159 elif test -n "$PKG_CONFIG"; then
16160 if test -n "$PKG_CONFIG" && \
16161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16162 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16163 ac_status=$?
16164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16165 test $ac_status = 0; }; then
16166 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
16167 test "x$?" != "x0" && pkg_failed=yes
16168 else
16169 pkg_failed=yes
16170 fi
16171 else
16172 pkg_failed=untried
16173 fi
16174
16175
16176
16177 if test $pkg_failed = yes; then
16178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16179 printf "%s\n" "no" >&6; }
16180
16181 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16182 _pkg_short_errors_supported=yes
16183 else
16184 _pkg_short_errors_supported=no
16185 fi
16186 if test $_pkg_short_errors_supported = yes; then
16187 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
16188 else
16189 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
16190 fi
16191 # Put the nasty error message in config.log where it belongs
16192 echo "$X11_PKG_ERRORS" >&5
16193
16194 as_fn_error $? "Package requirements (x11) were not met:
16195
16196 $X11_PKG_ERRORS
16197
16198 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16199 installed software in a non-standard prefix.
16200
16201 Alternatively, you may set the environment variables X11_CFLAGS
16202 and X11_LIBS to avoid the need to call pkg-config.
16203 See the pkg-config man page for more details." "$LINENO" 5
16204 elif test $pkg_failed = untried; then
16205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206 printf "%s\n" "no" >&6; }
16207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16208 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16209 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16210 is in your PATH or set the PKG_CONFIG environment variable to the full
16211 path to pkg-config.
16212
16213 Alternatively, you may set the environment variables X11_CFLAGS
16214 and X11_LIBS to avoid the need to call pkg-config.
16215 See the pkg-config man page for more details.
16216
16217 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16218 See \`config.log' for more details" "$LINENO" 5; }
16219 else
16220 X11_CFLAGS=$pkg_cv_X11_CFLAGS
16221 X11_LIBS=$pkg_cv_X11_LIBS
16222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16223 printf "%s\n" "yes" >&6; }
16224
16225 TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS"
16226 TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS"
16227
16228 fi
16229
16230 fi
16231
16232 ;; #(
16233 *) :
16234 ;;
16235 esac
16236
16237 save_CFLAGS=$CFLAGS
16238 save_CPPFLAGS=$CPPFLAGS
16239 save_LDFLAGS=$LDFLAGS
16240 save_LIBS=$LIBS
16241
16242
16243 CPPFLAGS="$CPPFLAGS $TCLTK_CFLAGS"
16244 LIBS="$LIBS $TCLTK_LIBS"
16245
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16248
16249
16250 #include <tcl.h>
16251 #include <tk.h>
16252 #if defined(TK_HEX_VERSION)
16253 # if TK_HEX_VERSION < 0x0805020c
16254 # error "Tk older than 8.5.12 not supported"
16255 # endif
16256 #endif
16257 #if (TCL_MAJOR_VERSION < 8) || \
16258 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 5)) || \
16259 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION == 5) && (TCL_RELEASE_SERIAL < 12))
16260 # error "Tcl older than 8.5.12 not supported"
16261 #endif
16262 #if (TK_MAJOR_VERSION < 8) || \
16263 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION < 5)) || \
16264 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION == 5) && (TK_RELEASE_SERIAL < 12))
16265 # error "Tk older than 8.5.12 not supported"
16266 #endif
16267
16268 int
16269 main (void)
16270 {
16271
16272 Tcl_Init(NULL);
16273 Tk_Init(NULL);
16274
16275 ;
16276 return 0;
16277 }
16278
16279 _ACEOF
16280 if ac_fn_c_try_link "$LINENO"
16281 then :
16282
16283 have_tcltk=yes
16284 as_fn_append TCLTK_CFLAGS " -Wno-strict-prototypes -DWITH_APPINIT=1"
16285
16286 else $as_nop
16287
16288 have_tcltk=no
16289
16290 fi
16291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16292 conftest$ac_exeext conftest.$ac_ext
16293
16294 CFLAGS=$save_CFLAGS
16295 CPPFLAGS=$save_CPPFLAGS
16296 LDFLAGS=$save_LDFLAGS
16297 LIBS=$save_LIBS
16298
16299
16300
16301
16302
16303 save_CFLAGS=$CFLAGS
16304 save_CPPFLAGS=$CPPFLAGS
16305 save_LDFLAGS=$LDFLAGS
16306 save_LIBS=$LIBS
16307
16308
16309 CPPFLAGS="$CPPFLAGS $GDBM_CFLAGS"
16310 LIBS="$LIBS $GDBM_LIBS"
16311 for ac_header in gdbm.h
16312 do :
16313 ac_fn_c_check_header_compile "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
16314 if test "x$ac_cv_header_gdbm_h" = xyes
16315 then :
16316 printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h
16317
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
16319 printf %s "checking for gdbm_open in -lgdbm... " >&6; }
16320 if test ${ac_cv_lib_gdbm_gdbm_open+y}
16321 then :
16322 printf %s "(cached) " >&6
16323 else $as_nop
16324 ac_check_lib_save_LIBS=$LIBS
16325 LIBS="-lgdbm $LIBS"
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16328
16329 /* Override any GCC internal prototype to avoid an error.
16330 Use char because int might match the return type of a GCC
16331 builtin and then its argument prototype would still apply. */
16332 char gdbm_open ();
16333 int
16334 main (void)
16335 {
16336 return gdbm_open ();
16337 ;
16338 return 0;
16339 }
16340 _ACEOF
16341 if ac_fn_c_try_link "$LINENO"
16342 then :
16343 ac_cv_lib_gdbm_gdbm_open=yes
16344 else $as_nop
16345 ac_cv_lib_gdbm_gdbm_open=no
16346 fi
16347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16348 conftest$ac_exeext conftest.$ac_ext
16349 LIBS=$ac_check_lib_save_LIBS
16350 fi
16351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
16352 printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; }
16353 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes
16354 then :
16355
16356 have_gdbm=yes
16357 GDBM_LIBS=${GDBM_LIBS-"-lgdbm"}
16358
16359 else $as_nop
16360 have_gdbm=no
16361 fi
16362
16363
16364 else $as_nop
16365 have_gdbm=no
16366 fi
16367
16368 done
16369
16370 CFLAGS=$save_CFLAGS
16371 CPPFLAGS=$save_CPPFLAGS
16372 LDFLAGS=$save_LDFLAGS
16373 LIBS=$save_LIBS
16374
16375
16376
16377 for ac_header in ndbm.h
16378 do :
16379 ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
16380 if test "x$ac_cv_header_ndbm_h" = xyes
16381 then :
16382 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h
16383
16384 save_CFLAGS=$CFLAGS
16385 save_CPPFLAGS=$CPPFLAGS
16386 save_LDFLAGS=$LDFLAGS
16387 save_LIBS=$LIBS
16388
16389
16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
16391 printf %s "checking for library containing dbm_open... " >&6; }
16392 if test ${ac_cv_search_dbm_open+y}
16393 then :
16394 printf %s "(cached) " >&6
16395 else $as_nop
16396 ac_func_search_save_LIBS=$LIBS
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399
16400 /* Override any GCC internal prototype to avoid an error.
16401 Use char because int might match the return type of a GCC
16402 builtin and then its argument prototype would still apply. */
16403 char dbm_open ();
16404 int
16405 main (void)
16406 {
16407 return dbm_open ();
16408 ;
16409 return 0;
16410 }
16411 _ACEOF
16412 for ac_lib in '' ndbm gdbm_compat
16413 do
16414 if test -z "$ac_lib"; then
16415 ac_res="none required"
16416 else
16417 ac_res=-l$ac_lib
16418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16419 fi
16420 if ac_fn_c_try_link "$LINENO"
16421 then :
16422 ac_cv_search_dbm_open=$ac_res
16423 fi
16424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16425 conftest$ac_exeext
16426 if test ${ac_cv_search_dbm_open+y}
16427 then :
16428 break
16429 fi
16430 done
16431 if test ${ac_cv_search_dbm_open+y}
16432 then :
16433
16434 else $as_nop
16435 ac_cv_search_dbm_open=no
16436 fi
16437 rm conftest.$ac_ext
16438 LIBS=$ac_func_search_save_LIBS
16439 fi
16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
16441 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
16442 ac_res=$ac_cv_search_dbm_open
16443 if test "$ac_res" != no
16444 then :
16445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16446
16447 fi
16448
16449
16450 CFLAGS=$save_CFLAGS
16451 CPPFLAGS=$save_CPPFLAGS
16452 LDFLAGS=$save_LDFLAGS
16453 LIBS=$save_LIBS
16454
16455
16456
16457 fi
16458
16459 done
16460
16461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ndbm presence and linker args" >&5
16462 printf %s "checking for ndbm presence and linker args... " >&6; }
16463 case $ac_cv_search_dbm_open in #(
16464 *ndbm*|*gdbm_compat*) :
16465
16466 dbm_ndbm="$ac_cv_search_dbm_open"
16467 have_ndbm=yes
16468 ;; #(
16469 none*) :
16470
16471 dbm_ndbm=""
16472 have_ndbm=yes
16473 ;; #(
16474 no) :
16475 have_ndbm=no
16476 ;; #(
16477 *) :
16478 ;;
16479 esac
16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ndbm ($dbm_ndbm)" >&5
16481 printf "%s\n" "$have_ndbm ($dbm_ndbm)" >&6; }
16482
16483 { ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
16484 if test ${ac_cv_header_gdbm_slash_ndbm_h+y}
16485 then :
16486 printf %s "(cached) " >&6
16487 else $as_nop
16488
16489 ac_fn_c_check_header_compile "$LINENO" "gdbm/ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
16490 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
16491 then :
16492 ac_cv_header_gdbm_slash_ndbm_h=yes
16493 else $as_nop
16494 ac_cv_header_gdbm_slash_ndbm_h=no
16495
16496 fi
16497
16498
16499 fi
16500
16501 if test "x$ac_cv_header_gdbm_slash_ndbm_h" = xyes
16502 then :
16503
16504
16505 printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h
16506
16507
16508 fi
16509
16510 { ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
16511 if test ${ac_cv_header_gdbm_dash_ndbm_h+y}
16512 then :
16513 printf %s "(cached) " >&6
16514 else $as_nop
16515
16516 ac_fn_c_check_header_compile "$LINENO" "gdbm-ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
16517 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
16518 then :
16519 ac_cv_header_gdbm_dash_ndbm_h=yes
16520 else $as_nop
16521 ac_cv_header_gdbm_dash_ndbm_h=no
16522
16523 fi
16524
16525
16526 fi
16527
16528 if test "x$ac_cv_header_gdbm_dash_ndbm_h" = xyes
16529 then :
16530
16531
16532 printf "%s\n" "#define HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h
16533
16534
16535 fi
16536 { ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
16537
16538 if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then
16539 { ac_cv_search_dbm_open=; unset ac_cv_search_dbm_open;}
16540 save_CFLAGS=$CFLAGS
16541 save_CPPFLAGS=$CPPFLAGS
16542 save_LDFLAGS=$LDFLAGS
16543 save_LIBS=$LIBS
16544
16545
16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
16547 printf %s "checking for library containing dbm_open... " >&6; }
16548 if test ${ac_cv_search_dbm_open+y}
16549 then :
16550 printf %s "(cached) " >&6
16551 else $as_nop
16552 ac_func_search_save_LIBS=$LIBS
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555
16556 /* Override any GCC internal prototype to avoid an error.
16557 Use char because int might match the return type of a GCC
16558 builtin and then its argument prototype would still apply. */
16559 char dbm_open ();
16560 int
16561 main (void)
16562 {
16563 return dbm_open ();
16564 ;
16565 return 0;
16566 }
16567 _ACEOF
16568 for ac_lib in '' gdbm_compat
16569 do
16570 if test -z "$ac_lib"; then
16571 ac_res="none required"
16572 else
16573 ac_res=-l$ac_lib
16574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16575 fi
16576 if ac_fn_c_try_link "$LINENO"
16577 then :
16578 ac_cv_search_dbm_open=$ac_res
16579 fi
16580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16581 conftest$ac_exeext
16582 if test ${ac_cv_search_dbm_open+y}
16583 then :
16584 break
16585 fi
16586 done
16587 if test ${ac_cv_search_dbm_open+y}
16588 then :
16589
16590 else $as_nop
16591 ac_cv_search_dbm_open=no
16592 fi
16593 rm conftest.$ac_ext
16594 LIBS=$ac_func_search_save_LIBS
16595 fi
16596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
16597 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
16598 ac_res=$ac_cv_search_dbm_open
16599 if test "$ac_res" != no
16600 then :
16601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16602 have_gdbm_compat=yes
16603 else $as_nop
16604 have_gdbm_compat=no
16605 fi
16606
16607
16608 CFLAGS=$save_CFLAGS
16609 CPPFLAGS=$save_CPPFLAGS
16610 LDFLAGS=$save_LDFLAGS
16611 LIBS=$save_LIBS
16612
16613
16614 fi
16615
16616 # Check for libdb >= 5 with dbm_open()
16617 # db.h re-defines the name of the function
16618 for ac_header in db.h
16619 do :
16620 ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
16621 if test "x$ac_cv_header_db_h" = xyes
16622 then :
16623 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h
16624
16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5
16626 printf %s "checking for libdb... " >&6; }
16627 if test ${ac_cv_have_libdb+y}
16628 then :
16629 printf %s "(cached) " >&6
16630 else $as_nop
16631
16632 save_CFLAGS=$CFLAGS
16633 save_CPPFLAGS=$CPPFLAGS
16634 save_LDFLAGS=$LDFLAGS
16635 save_LIBS=$LIBS
16636
16637
16638 LIBS="$LIBS -ldb"
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641
16642 #define DB_DBM_HSEARCH 1
16643 #include <db.h>
16644 #if DB_VERSION_MAJOR < 5
16645 #error "dh.h: DB_VERSION_MAJOR < 5 is not supported."
16646 #endif
16647
16648 int
16649 main (void)
16650 {
16651 DBM *dbm = dbm_open(NULL, 0, 0)
16652 ;
16653 return 0;
16654 }
16655
16656 _ACEOF
16657 if ac_fn_c_try_link "$LINENO"
16658 then :
16659 ac_cv_have_libdb=yes
16660 else $as_nop
16661 ac_cv_have_libdb=no
16662 fi
16663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16664 conftest$ac_exeext conftest.$ac_ext
16665
16666 CFLAGS=$save_CFLAGS
16667 CPPFLAGS=$save_CPPFLAGS
16668 LDFLAGS=$save_LDFLAGS
16669 LIBS=$save_LIBS
16670
16671
16672
16673 fi
16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libdb" >&5
16675 printf "%s\n" "$ac_cv_have_libdb" >&6; }
16676 if test "x$ac_cv_have_libdb" = xyes
16677 then :
16678
16679
16680 printf "%s\n" "#define HAVE_LIBDB 1" >>confdefs.h
16681
16682
16683 fi
16684
16685 fi
16686
16687 done
16688
16689 # Check for --with-dbmliborder
16690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
16691 printf %s "checking for --with-dbmliborder... " >&6; }
16692
16693 # Check whether --with-dbmliborder was given.
16694 if test ${with_dbmliborder+y}
16695 then :
16696 withval=$with_dbmliborder;
16697 else $as_nop
16698 with_dbmliborder=gdbm:ndbm:bdb
16699 fi
16700
16701
16702 have_gdbm_dbmliborder=no
16703 as_save_IFS=$IFS
16704 IFS=:
16705 for db in $with_dbmliborder; do
16706 case $db in #(
16707 ndbm) :
16708 ;; #(
16709 gdbm) :
16710 have_gdbm_dbmliborder=yes ;; #(
16711 bdb) :
16712 ;; #(
16713 *) :
16714 with_dbmliborder=error
16715 ;;
16716 esac
16717 done
16718 IFS=$as_save_IFS
16719 if test "x$with_dbmliborder" = xerror
16720 then :
16721
16722 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:... (gdbm:ndbm:bdb)" "$LINENO" 5
16723
16724 fi
16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
16726 printf "%s\n" "$with_dbmliborder" >&6; }
16727
16728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dbm module CFLAGS and LIBS" >&5
16729 printf %s "checking for _dbm module CFLAGS and LIBS... " >&6; }
16730 have_dbm=no
16731 as_save_IFS=$IFS
16732 IFS=:
16733 for db in $with_dbmliborder; do
16734 case "$db" in
16735 ndbm)
16736 if test "$have_ndbm" = yes; then
16737 DBM_CFLAGS="-DUSE_NDBM"
16738 DBM_LIBS="$dbm_ndbm"
16739 have_dbm=yes
16740 break
16741 fi
16742 ;;
16743 gdbm)
16744 if test "$have_gdbm_compat" = yes; then
16745 DBM_CFLAGS="-DUSE_GDBM_COMPAT"
16746 DBM_LIBS="-lgdbm_compat"
16747 have_dbm=yes
16748 break
16749 fi
16750 ;;
16751 bdb)
16752 if test "$ac_cv_have_libdb" = yes; then
16753 DBM_CFLAGS="-DUSE_BERKDB"
16754 DBM_LIBS="-ldb"
16755 have_dbm=yes
16756 break
16757 fi
16758 ;;
16759 esac
16760 done
16761 IFS=$as_save_IFS
16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DBM_CFLAGS $DBM_LIBS" >&5
16763 printf "%s\n" "$DBM_CFLAGS $DBM_LIBS" >&6; }
16764
16765 # Templates for things AC_DEFINEd more than once.
16766 # For a single AC_DEFINE, no template is needed.
16767
16768
16769 if test "$ac_cv_pthread_is_default" = yes
16770 then
16771 # Defining _REENTRANT on system with POSIX threads should not hurt.
16772 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
16773
16774 posix_threads=yes
16775 if test "$ac_sys_system" = "SunOS"; then
16776 CFLAGS="$CFLAGS -D_REENTRANT"
16777 fi
16778 elif test "$ac_cv_kpthread" = "yes"
16779 then
16780 CC="$CC -Kpthread"
16781 if test "$ac_cv_cxx_thread" = "yes"; then
16782 CXX="$CXX -Kpthread"
16783 fi
16784 posix_threads=yes
16785 elif test "$ac_cv_kthread" = "yes"
16786 then
16787 CC="$CC -Kthread"
16788 if test "$ac_cv_cxx_thread" = "yes"; then
16789 CXX="$CXX -Kthread"
16790 fi
16791 posix_threads=yes
16792 elif test "$ac_cv_pthread" = "yes"
16793 then
16794 CC="$CC -pthread"
16795 if test "$ac_cv_cxx_thread" = "yes"; then
16796 CXX="$CXX -pthread"
16797 fi
16798 posix_threads=yes
16799 else
16800 if test ! -z "$withval" -a -d "$withval"
16801 then LDFLAGS="$LDFLAGS -L$withval"
16802 fi
16803
16804 # According to the POSIX spec, a pthreads implementation must
16805 # define _POSIX_THREADS in unistd.h. Some apparently don't
16806 # (e.g. gnu pth with pthread emulation)
16807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
16808 printf %s "checking for _POSIX_THREADS in unistd.h... " >&6; }
16809
16810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS defined in unistd.h" >&5
16811 printf %s "checking for _POSIX_THREADS defined in unistd.h... " >&6; }
16812 if test ${ac_cv_defined__POSIX_THREADS_unistd_h+y}
16813 then :
16814 printf %s "(cached) " >&6
16815 else $as_nop
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16818 #include <unistd.h>
16819 int
16820 main (void)
16821 {
16822
16823 #ifdef _POSIX_THREADS
16824 int ok;
16825 (void)ok;
16826 #else
16827 choke me
16828 #endif
16829
16830 ;
16831 return 0;
16832 }
16833 _ACEOF
16834 if ac_fn_c_try_compile "$LINENO"
16835 then :
16836 ac_cv_defined__POSIX_THREADS_unistd_h=yes
16837 else $as_nop
16838 ac_cv_defined__POSIX_THREADS_unistd_h=no
16839 fi
16840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16841 fi
16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__POSIX_THREADS_unistd_h" >&5
16843 printf "%s\n" "$ac_cv_defined__POSIX_THREADS_unistd_h" >&6; }
16844 if test $ac_cv_defined__POSIX_THREADS_unistd_h != "no"
16845 then :
16846 unistd_defines_pthreads=yes
16847 else $as_nop
16848 unistd_defines_pthreads=no
16849 fi
16850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
16851 printf "%s\n" "$unistd_defines_pthreads" >&6; }
16852
16853 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
16854
16855 # Just looking for pthread_create in libpthread is not enough:
16856 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16857 # So we really have to include pthread.h, and then link.
16858 _libs=$LIBS
16859 LIBS="$LIBS -lpthread"
16860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16861 printf %s "checking for pthread_create in -lpthread... " >&6; }
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16864
16865 #include <stdio.h>
16866 #include <stdlib.h>
16867 #include <pthread.h>
16868
16869 void * start_routine (void *arg) { exit (0); }
16870 int
16871 main (void)
16872 {
16873
16874 pthread_create (NULL, NULL, start_routine, NULL)
16875 ;
16876 return 0;
16877 }
16878 _ACEOF
16879 if ac_fn_c_try_link "$LINENO"
16880 then :
16881
16882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16883 printf "%s\n" "yes" >&6; }
16884 posix_threads=yes
16885
16886 else $as_nop
16887
16888 LIBS=$_libs
16889 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
16890 if test "x$ac_cv_func_pthread_detach" = xyes
16891 then :
16892
16893 posix_threads=yes
16894
16895 else $as_nop
16896
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
16898 printf %s "checking for pthread_create in -lpthreads... " >&6; }
16899 if test ${ac_cv_lib_pthreads_pthread_create+y}
16900 then :
16901 printf %s "(cached) " >&6
16902 else $as_nop
16903 ac_check_lib_save_LIBS=$LIBS
16904 LIBS="-lpthreads $LIBS"
16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906 /* end confdefs.h. */
16907
16908 /* Override any GCC internal prototype to avoid an error.
16909 Use char because int might match the return type of a GCC
16910 builtin and then its argument prototype would still apply. */
16911 char pthread_create ();
16912 int
16913 main (void)
16914 {
16915 return pthread_create ();
16916 ;
16917 return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"
16921 then :
16922 ac_cv_lib_pthreads_pthread_create=yes
16923 else $as_nop
16924 ac_cv_lib_pthreads_pthread_create=no
16925 fi
16926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16927 conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16929 fi
16930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
16931 printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; }
16932 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
16933 then :
16934
16935 posix_threads=yes
16936 LIBS="$LIBS -lpthreads"
16937
16938 else $as_nop
16939
16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
16941 printf %s "checking for pthread_create in -lc_r... " >&6; }
16942 if test ${ac_cv_lib_c_r_pthread_create+y}
16943 then :
16944 printf %s "(cached) " >&6
16945 else $as_nop
16946 ac_check_lib_save_LIBS=$LIBS
16947 LIBS="-lc_r $LIBS"
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h. */
16950
16951 /* Override any GCC internal prototype to avoid an error.
16952 Use char because int might match the return type of a GCC
16953 builtin and then its argument prototype would still apply. */
16954 char pthread_create ();
16955 int
16956 main (void)
16957 {
16958 return pthread_create ();
16959 ;
16960 return 0;
16961 }
16962 _ACEOF
16963 if ac_fn_c_try_link "$LINENO"
16964 then :
16965 ac_cv_lib_c_r_pthread_create=yes
16966 else $as_nop
16967 ac_cv_lib_c_r_pthread_create=no
16968 fi
16969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16970 conftest$ac_exeext conftest.$ac_ext
16971 LIBS=$ac_check_lib_save_LIBS
16972 fi
16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16974 printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; }
16975 if test "x$ac_cv_lib_c_r_pthread_create" = xyes
16976 then :
16977
16978 posix_threads=yes
16979 LIBS="$LIBS -lc_r"
16980
16981 else $as_nop
16982
16983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
16984 printf %s "checking for __pthread_create_system in -lpthread... " >&6; }
16985 if test ${ac_cv_lib_pthread___pthread_create_system+y}
16986 then :
16987 printf %s "(cached) " >&6
16988 else $as_nop
16989 ac_check_lib_save_LIBS=$LIBS
16990 LIBS="-lpthread $LIBS"
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993
16994 /* Override any GCC internal prototype to avoid an error.
16995 Use char because int might match the return type of a GCC
16996 builtin and then its argument prototype would still apply. */
16997 char __pthread_create_system ();
16998 int
16999 main (void)
17000 {
17001 return __pthread_create_system ();
17002 ;
17003 return 0;
17004 }
17005 _ACEOF
17006 if ac_fn_c_try_link "$LINENO"
17007 then :
17008 ac_cv_lib_pthread___pthread_create_system=yes
17009 else $as_nop
17010 ac_cv_lib_pthread___pthread_create_system=no
17011 fi
17012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17013 conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17015 fi
17016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
17017 printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; }
17018 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes
17019 then :
17020
17021 posix_threads=yes
17022 LIBS="$LIBS -lpthread"
17023
17024 else $as_nop
17025
17026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
17027 printf %s "checking for pthread_create in -lcma... " >&6; }
17028 if test ${ac_cv_lib_cma_pthread_create+y}
17029 then :
17030 printf %s "(cached) " >&6
17031 else $as_nop
17032 ac_check_lib_save_LIBS=$LIBS
17033 LIBS="-lcma $LIBS"
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17036
17037 /* Override any GCC internal prototype to avoid an error.
17038 Use char because int might match the return type of a GCC
17039 builtin and then its argument prototype would still apply. */
17040 char pthread_create ();
17041 int
17042 main (void)
17043 {
17044 return pthread_create ();
17045 ;
17046 return 0;
17047 }
17048 _ACEOF
17049 if ac_fn_c_try_link "$LINENO"
17050 then :
17051 ac_cv_lib_cma_pthread_create=yes
17052 else $as_nop
17053 ac_cv_lib_cma_pthread_create=no
17054 fi
17055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17056 conftest$ac_exeext conftest.$ac_ext
17057 LIBS=$ac_check_lib_save_LIBS
17058 fi
17059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
17060 printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; }
17061 if test "x$ac_cv_lib_cma_pthread_create" = xyes
17062 then :
17063
17064 posix_threads=yes
17065 LIBS="$LIBS -lcma"
17066
17067 else $as_nop
17068
17069 case $ac_sys_system in #(
17070 WASI) :
17071 posix_threads=stub ;; #(
17072 *) :
17073 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
17074 ;;
17075 esac
17076
17077 fi
17078
17079 fi
17080
17081 fi
17082
17083 fi
17084
17085 fi
17086
17087 fi
17088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17089 conftest$ac_exeext conftest.$ac_ext
17090
17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
17092 printf %s "checking for usconfig in -lmpc... " >&6; }
17093 if test ${ac_cv_lib_mpc_usconfig+y}
17094 then :
17095 printf %s "(cached) " >&6
17096 else $as_nop
17097 ac_check_lib_save_LIBS=$LIBS
17098 LIBS="-lmpc $LIBS"
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101
17102 /* Override any GCC internal prototype to avoid an error.
17103 Use char because int might match the return type of a GCC
17104 builtin and then its argument prototype would still apply. */
17105 char usconfig ();
17106 int
17107 main (void)
17108 {
17109 return usconfig ();
17110 ;
17111 return 0;
17112 }
17113 _ACEOF
17114 if ac_fn_c_try_link "$LINENO"
17115 then :
17116 ac_cv_lib_mpc_usconfig=yes
17117 else $as_nop
17118 ac_cv_lib_mpc_usconfig=no
17119 fi
17120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17121 conftest$ac_exeext conftest.$ac_ext
17122 LIBS=$ac_check_lib_save_LIBS
17123 fi
17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
17125 printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; }
17126 if test "x$ac_cv_lib_mpc_usconfig" = xyes
17127 then :
17128
17129 LIBS="$LIBS -lmpc"
17130
17131 fi
17132
17133
17134 fi
17135
17136 if test "$posix_threads" = "yes"; then
17137 if test "$unistd_defines_pthreads" = "no"; then
17138
17139 printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h
17140
17141 fi
17142
17143 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
17144 case $ac_sys_system/$ac_sys_release in
17145 SunOS/5.6)
17146 printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
17147
17148 ;;
17149 SunOS/5.8)
17150 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
17151
17152 ;;
17153 AIX/*)
17154 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
17155
17156 ;;
17157 NetBSD/*)
17158 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
17159
17160 ;;
17161 esac
17162
17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
17164 printf %s "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
17165 if test ${ac_cv_pthread_system_supported+y}
17166 then :
17167 printf %s "(cached) " >&6
17168 else $as_nop
17169 if test "$cross_compiling" = yes
17170 then :
17171 ac_cv_pthread_system_supported=no
17172 else $as_nop
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17175
17176 #include <stdio.h>
17177 #include <pthread.h>
17178 void *foo(void *parm) {
17179 return NULL;
17180 }
17181 int main(void) {
17182 pthread_attr_t attr;
17183 pthread_t id;
17184 if (pthread_attr_init(&attr)) return (-1);
17185 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
17186 if (pthread_create(&id, &attr, foo, NULL)) return (-1);
17187 return (0);
17188 }
17189 _ACEOF
17190 if ac_fn_c_try_run "$LINENO"
17191 then :
17192 ac_cv_pthread_system_supported=yes
17193 else $as_nop
17194 ac_cv_pthread_system_supported=no
17195 fi
17196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17197 conftest.$ac_objext conftest.beam conftest.$ac_ext
17198 fi
17199
17200
17201 fi
17202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
17203 printf "%s\n" "$ac_cv_pthread_system_supported" >&6; }
17204 if test "$ac_cv_pthread_system_supported" = "yes"; then
17205
17206 printf "%s\n" "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
17207
17208 fi
17209
17210 for ac_func in pthread_sigmask
17211 do :
17212 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
17213 if test "x$ac_cv_func_pthread_sigmask" = xyes
17214 then :
17215 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
17216 case $ac_sys_system in
17217 CYGWIN*)
17218
17219 printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
17220
17221 ;;
17222 esac
17223 fi
17224
17225 done
17226 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
17227 if test "x$ac_cv_func_pthread_getcpuclockid" = xyes
17228 then :
17229 printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h
17230
17231 fi
17232
17233 fi
17234
17235 if test "x$posix_threads" = xstub
17236 then :
17237
17238
17239 printf "%s\n" "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h
17240
17241
17242 fi
17243
17244 # Check for enable-ipv6
17245
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
17247 printf %s "checking if --enable-ipv6 is specified... " >&6; }
17248 # Check whether --enable-ipv6 was given.
17249 if test ${enable_ipv6+y}
17250 then :
17251 enableval=$enable_ipv6; case "$enableval" in
17252 no)
17253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254 printf "%s\n" "no" >&6; }
17255 ipv6=no
17256 ;;
17257 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17258 printf "%s\n" "yes" >&6; }
17259 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
17260
17261 ipv6=yes
17262 ;;
17263 esac
17264 else $as_nop
17265
17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17267 /* end confdefs.h. */
17268 /* AF_INET6 available check */
17269 #include <sys/types.h>
17270 #include <sys/socket.h>
17271 int
17272 main (void)
17273 {
17274 int domain = AF_INET6;
17275 ;
17276 return 0;
17277 }
17278 _ACEOF
17279 if ac_fn_c_try_compile "$LINENO"
17280 then :
17281
17282 ipv6=yes
17283
17284 else $as_nop
17285
17286 ipv6=no
17287
17288 fi
17289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17290
17291 case $ac_sys_system in #(
17292 WASI) :
17293 ipv6=no
17294 ;; #(
17295 *) :
17296 ;;
17297 esac
17298
17299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6" >&5
17300 printf "%s\n" "$ipv6" >&6; }
17301
17302 if test "$ipv6" = "yes"; then
17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
17304 printf %s "checking if RFC2553 API is available... " >&6; }
17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306 /* end confdefs.h. */
17307
17308 #include <sys/types.h>
17309 #include <netinet/in.h>
17310 int
17311 main (void)
17312 {
17313 struct sockaddr_in6 x;
17314 x.sin6_scope_id;
17315 ;
17316 return 0;
17317 }
17318
17319 _ACEOF
17320 if ac_fn_c_try_compile "$LINENO"
17321 then :
17322
17323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17324 printf "%s\n" "yes" >&6; }
17325 ipv6=yes
17326
17327 else $as_nop
17328
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17330 printf "%s\n" "no" >&6; }
17331 ipv6=no
17332
17333 fi
17334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17335 fi
17336
17337 if test "$ipv6" = "yes"; then
17338 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
17339
17340 fi
17341
17342 fi
17343
17344
17345 ipv6type=unknown
17346 ipv6lib=none
17347 ipv6trylibc=no
17348
17349 if test "$ipv6" = yes -a "$cross_compiling" = no; then
17350 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17351 do
17352 case $i in
17353 inria)
17354
17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPV6_INRIA_VERSION defined in netinet/in.h" >&5
17356 printf %s "checking for IPV6_INRIA_VERSION defined in netinet/in.h... " >&6; }
17357 if test ${ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h+y}
17358 then :
17359 printf %s "(cached) " >&6
17360 else $as_nop
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17363 #include <netinet/in.h>
17364 int
17365 main (void)
17366 {
17367
17368 #ifdef IPV6_INRIA_VERSION
17369 int ok;
17370 (void)ok;
17371 #else
17372 choke me
17373 #endif
17374
17375 ;
17376 return 0;
17377 }
17378 _ACEOF
17379 if ac_fn_c_try_compile "$LINENO"
17380 then :
17381 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=yes
17382 else $as_nop
17383 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=no
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17386 fi
17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&5
17388 printf "%s\n" "$ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&6; }
17389 if test $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h != "no"
17390 then :
17391 ipv6type=$i
17392 fi
17393 ;;
17394 kame)
17395
17396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __KAME__ defined in netinet/in.h" >&5
17397 printf %s "checking for __KAME__ defined in netinet/in.h... " >&6; }
17398 if test ${ac_cv_defined___KAME___netinet_in_h+y}
17399 then :
17400 printf %s "(cached) " >&6
17401 else $as_nop
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17404 #include <netinet/in.h>
17405 int
17406 main (void)
17407 {
17408
17409 #ifdef __KAME__
17410 int ok;
17411 (void)ok;
17412 #else
17413 choke me
17414 #endif
17415
17416 ;
17417 return 0;
17418 }
17419 _ACEOF
17420 if ac_fn_c_try_compile "$LINENO"
17421 then :
17422 ac_cv_defined___KAME___netinet_in_h=yes
17423 else $as_nop
17424 ac_cv_defined___KAME___netinet_in_h=no
17425 fi
17426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17427 fi
17428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___KAME___netinet_in_h" >&5
17429 printf "%s\n" "$ac_cv_defined___KAME___netinet_in_h" >&6; }
17430 if test $ac_cv_defined___KAME___netinet_in_h != "no"
17431 then :
17432 ipv6type=$i
17433 ipv6lib=inet6
17434 ipv6libdir=/usr/local/v6/lib
17435 ipv6trylibc=yes
17436 fi
17437 ;;
17438 linux-glibc)
17439
17440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __GLIBC__ defined in features.h" >&5
17441 printf %s "checking for __GLIBC__ defined in features.h... " >&6; }
17442 if test ${ac_cv_defined___GLIBC___features_h+y}
17443 then :
17444 printf %s "(cached) " >&6
17445 else $as_nop
17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h. */
17448 #include <features.h>
17449 int
17450 main (void)
17451 {
17452
17453 #ifdef __GLIBC__
17454 int ok;
17455 (void)ok;
17456 #else
17457 choke me
17458 #endif
17459
17460 ;
17461 return 0;
17462 }
17463 _ACEOF
17464 if ac_fn_c_try_compile "$LINENO"
17465 then :
17466 ac_cv_defined___GLIBC___features_h=yes
17467 else $as_nop
17468 ac_cv_defined___GLIBC___features_h=no
17469 fi
17470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17471 fi
17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___GLIBC___features_h" >&5
17473 printf "%s\n" "$ac_cv_defined___GLIBC___features_h" >&6; }
17474 if test $ac_cv_defined___GLIBC___features_h != "no"
17475 then :
17476 ipv6type=$i
17477 ipv6trylibc=yes
17478 fi
17479 ;;
17480 linux-inet6)
17481 if test -d /usr/inet6; then
17482 ipv6type=$i
17483 ipv6lib=inet6
17484 ipv6libdir=/usr/inet6/lib
17485 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17486 fi
17487 ;;
17488 solaris)
17489 if test -f /etc/netconfig; then
17490 if $GREP -q tcp6 /etc/netconfig; then
17491 ipv6type=$i
17492 ipv6trylibc=yes
17493 fi
17494 fi
17495 ;;
17496 toshiba)
17497
17498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _TOSHIBA_INET6 defined in sys/param.h" >&5
17499 printf %s "checking for _TOSHIBA_INET6 defined in sys/param.h... " >&6; }
17500 if test ${ac_cv_defined__TOSHIBA_INET6_sys_param_h+y}
17501 then :
17502 printf %s "(cached) " >&6
17503 else $as_nop
17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17506 #include <sys/param.h>
17507 int
17508 main (void)
17509 {
17510
17511 #ifdef _TOSHIBA_INET6
17512 int ok;
17513 (void)ok;
17514 #else
17515 choke me
17516 #endif
17517
17518 ;
17519 return 0;
17520 }
17521 _ACEOF
17522 if ac_fn_c_try_compile "$LINENO"
17523 then :
17524 ac_cv_defined__TOSHIBA_INET6_sys_param_h=yes
17525 else $as_nop
17526 ac_cv_defined__TOSHIBA_INET6_sys_param_h=no
17527 fi
17528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17529 fi
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&5
17531 printf "%s\n" "$ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&6; }
17532 if test $ac_cv_defined__TOSHIBA_INET6_sys_param_h != "no"
17533 then :
17534 ipv6type=$i
17535 ipv6lib=inet6
17536 ipv6libdir=/usr/local/v6/lib
17537 fi
17538 ;;
17539 v6d)
17540
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h" >&5
17542 printf %s "checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h... " >&6; }
17543 if test ${ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h+y}
17544 then :
17545 printf %s "(cached) " >&6
17546 else $as_nop
17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548 /* end confdefs.h. */
17549 #include </usr/local/v6/include/sys/v6config.h>
17550 int
17551 main (void)
17552 {
17553
17554 #ifdef __V6D__
17555 int ok;
17556 (void)ok;
17557 #else
17558 choke me
17559 #endif
17560
17561 ;
17562 return 0;
17563 }
17564 _ACEOF
17565 if ac_fn_c_try_compile "$LINENO"
17566 then :
17567 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=yes
17568 else $as_nop
17569 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=no
17570 fi
17571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17572 fi
17573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&5
17574 printf "%s\n" "$ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&6; }
17575 if test $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h != "no"
17576 then :
17577 ipv6type=$i
17578 ipv6lib=v6
17579 ipv6libdir=/usr/local/v6/lib
17580 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17581 fi
17582 ;;
17583 zeta)
17584
17585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ZETA_MINAMI_INET6 defined in sys/param.h" >&5
17586 printf %s "checking for _ZETA_MINAMI_INET6 defined in sys/param.h... " >&6; }
17587 if test ${ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h+y}
17588 then :
17589 printf %s "(cached) " >&6
17590 else $as_nop
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17593 #include <sys/param.h>
17594 int
17595 main (void)
17596 {
17597
17598 #ifdef _ZETA_MINAMI_INET6
17599 int ok;
17600 (void)ok;
17601 #else
17602 choke me
17603 #endif
17604
17605 ;
17606 return 0;
17607 }
17608 _ACEOF
17609 if ac_fn_c_try_compile "$LINENO"
17610 then :
17611 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=yes
17612 else $as_nop
17613 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=no
17614 fi
17615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17616 fi
17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&5
17618 printf "%s\n" "$ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&6; }
17619 if test $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h != "no"
17620 then :
17621 ipv6type=$i
17622 ipv6lib=inet6
17623 ipv6libdir=/usr/local/v6/lib
17624 fi
17625 ;;
17626 esac
17627 if test "$ipv6type" != "unknown"; then
17628 break
17629 fi
17630 done
17631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
17632 printf %s "checking ipv6 stack type... " >&6; }
17633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
17634 printf "%s\n" "$ipv6type" >&6; }
17635 fi
17636
17637 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 library" >&5
17639 printf %s "checking ipv6 library... " >&6; }
17640 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17641 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lib$ipv6lib" >&5
17643 printf "%s\n" "lib$ipv6lib" >&6; }
17644 else
17645 if test "x$ipv6trylibc" = xyes
17646 then :
17647
17648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libc" >&5
17649 printf "%s\n" "libc" >&6; }
17650
17651 else $as_nop
17652
17653 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
17654
17655 fi
17656 fi
17657 fi
17658
17659
17660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CAN_RAW_FD_FRAMES" >&5
17661 printf %s "checking CAN_RAW_FD_FRAMES... " >&6; }
17662 if test ${ac_cv_can_raw_fd_frames+y}
17663 then :
17664 printf %s "(cached) " >&6
17665 else $as_nop
17666
17667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668 /* end confdefs.h. */
17669 /* CAN_RAW_FD_FRAMES available check */
17670 #include <linux/can/raw.h>
17671 int
17672 main (void)
17673 {
17674 int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
17675 ;
17676 return 0;
17677 }
17678 _ACEOF
17679 if ac_fn_c_try_compile "$LINENO"
17680 then :
17681 ac_cv_can_raw_fd_frames=yes
17682 else $as_nop
17683 ac_cv_can_raw_fd_frames=no
17684 fi
17685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17686
17687 fi
17688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_fd_frames" >&5
17689 printf "%s\n" "$ac_cv_can_raw_fd_frames" >&6; }
17690 if test "x$ac_cv_can_raw_fd_frames" = xyes
17691 then :
17692
17693
17694 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
17695
17696
17697 fi
17698
17699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5
17700 printf %s "checking for CAN_RAW_JOIN_FILTERS... " >&6; }
17701 if test ${ac_cv_can_raw_join_filters+y}
17702 then :
17703 printf %s "(cached) " >&6
17704 else $as_nop
17705
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708
17709 #include <linux/can/raw.h>
17710 int
17711 main (void)
17712 {
17713 int can_raw_join_filters = CAN_RAW_JOIN_FILTERS;
17714 ;
17715 return 0;
17716 }
17717 _ACEOF
17718 if ac_fn_c_try_compile "$LINENO"
17719 then :
17720 ac_cv_can_raw_join_filters=yes
17721 else $as_nop
17722 ac_cv_can_raw_join_filters=no
17723 fi
17724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17725
17726 fi
17727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_join_filters" >&5
17728 printf "%s\n" "$ac_cv_can_raw_join_filters" >&6; }
17729 if test "x$ac_cv_can_raw_join_filters" = xyes
17730 then :
17731
17732
17733 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h
17734
17735
17736 fi
17737
17738 # Check for --with-doc-strings
17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
17740 printf %s "checking for --with-doc-strings... " >&6; }
17741
17742 # Check whether --with-doc-strings was given.
17743 if test ${with_doc_strings+y}
17744 then :
17745 withval=$with_doc_strings;
17746 fi
17747
17748
17749 if test -z "$with_doc_strings"
17750 then with_doc_strings="yes"
17751 fi
17752 if test "$with_doc_strings" != "no"
17753 then
17754
17755 printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h
17756
17757 fi
17758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
17759 printf "%s\n" "$with_doc_strings" >&6; }
17760
17761 # Check for stdatomic.h, required for mimalloc.
17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
17763 printf %s "checking for stdatomic.h... " >&6; }
17764 if test ${ac_cv_header_stdatomic_h+y}
17765 then :
17766 printf %s "(cached) " >&6
17767 else $as_nop
17768
17769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17771
17772
17773 #include <stdatomic.h>
17774 atomic_int int_var;
17775 atomic_uintptr_t uintptr_var;
17776 int main() {
17777 atomic_store_explicit(&int_var, 5, memory_order_relaxed);
17778 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
17779 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
17780 return 0;
17781 }
17782
17783
17784 _ACEOF
17785 if ac_fn_c_try_link "$LINENO"
17786 then :
17787 ac_cv_header_stdatomic_h=yes
17788 else $as_nop
17789 ac_cv_header_stdatomic_h=no
17790 fi
17791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17792 conftest$ac_exeext conftest.$ac_ext
17793
17794 fi
17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdatomic_h" >&5
17796 printf "%s\n" "$ac_cv_header_stdatomic_h" >&6; }
17797
17798 if test "x$ac_cv_header_stdatomic_h" = xyes
17799 then :
17800
17801
17802 printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h
17803
17804
17805 fi
17806
17807 # Check for GCC >= 4.7 and clang __atomic builtin functions
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5
17809 printf %s "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; }
17810 if test ${ac_cv_builtin_atomic+y}
17811 then :
17812 printf %s "(cached) " >&6
17813 else $as_nop
17814
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817
17818
17819 int val;
17820 int main() {
17821 __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
17822 (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
17823 return 0;
17824 }
17825
17826
17827 _ACEOF
17828 if ac_fn_c_try_link "$LINENO"
17829 then :
17830 ac_cv_builtin_atomic=yes
17831 else $as_nop
17832 ac_cv_builtin_atomic=no
17833 fi
17834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17835 conftest$ac_exeext conftest.$ac_ext
17836
17837 fi
17838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_builtin_atomic" >&5
17839 printf "%s\n" "$ac_cv_builtin_atomic" >&6; }
17840
17841 if test "x$ac_cv_builtin_atomic" = xyes
17842 then :
17843
17844
17845 printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
17846
17847
17848 fi
17849
17850 # --with-mimalloc
17851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-mimalloc" >&5
17852 printf %s "checking for --with-mimalloc... " >&6; }
17853
17854 # Check whether --with-mimalloc was given.
17855 if test ${with_mimalloc+y}
17856 then :
17857 withval=$with_mimalloc;
17858 else $as_nop
17859 with_mimalloc="$ac_cv_header_stdatomic_h"
17860
17861 fi
17862
17863
17864 if test "$with_mimalloc" != no; then
17865 if test "$ac_cv_header_stdatomic_h" != yes; then
17866 # mimalloc-atomic.h wants C11 stdatomic.h on POSIX
17867 as_fn_error $? "mimalloc requires stdatomic.h, use --without-mimalloc to disable mimalloc." "$LINENO" 5
17868 fi
17869 with_mimalloc=yes
17870
17871 printf "%s\n" "#define WITH_MIMALLOC 1" >>confdefs.h
17872
17873 MIMALLOC_HEADERS='$(MIMALLOC_HEADERS)'
17874
17875 elif test "$disable_gil" = "yes"; then
17876 as_fn_error $? "--disable-gil requires mimalloc memory allocator (--with-mimalloc)." "$LINENO" 5
17877 fi
17878
17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_mimalloc" >&5
17880 printf "%s\n" "$with_mimalloc" >&6; }
17881 INSTALL_MIMALLOC=$with_mimalloc
17882
17883
17884
17885 # Check for Python-specific malloc support
17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
17887 printf %s "checking for --with-pymalloc... " >&6; }
17888
17889 # Check whether --with-pymalloc was given.
17890 if test ${with_pymalloc+y}
17891 then :
17892 withval=$with_pymalloc;
17893 fi
17894
17895
17896 if test -z "$with_pymalloc"
17897 then
17898 case $ac_sys_system in #(
17899 Emscripten) :
17900 with_pymalloc="no" ;; #(
17901 WASI) :
17902 with_pymalloc="no" ;; #(
17903 *) :
17904 with_pymalloc="yes"
17905 ;;
17906 esac
17907 fi
17908 if test "$with_pymalloc" != "no"
17909 then
17910
17911 printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h
17912
17913 fi
17914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
17915 printf "%s\n" "$with_pymalloc" >&6; }
17916
17917 # Check whether objects such as float, tuple and dict are using
17918 # freelists to optimization memory allocation.
17919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-freelists" >&5
17920 printf %s "checking for --with-freelists... " >&6; }
17921
17922 # Check whether --with-freelists was given.
17923 if test ${with_freelists+y}
17924 then :
17925 withval=$with_freelists;
17926 fi
17927
17928
17929 if test -z "$with_freelists"
17930 then
17931 with_freelists="yes"
17932 fi
17933 if test "$with_freelists" != "no"
17934 then
17935
17936 printf "%s\n" "#define WITH_FREELISTS 1" >>confdefs.h
17937
17938 fi
17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_freelists" >&5
17940 printf "%s\n" "$with_freelists" >&6; }
17941
17942 # Check for --with-c-locale-coercion
17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
17944 printf %s "checking for --with-c-locale-coercion... " >&6; }
17945
17946 # Check whether --with-c-locale-coercion was given.
17947 if test ${with_c_locale_coercion+y}
17948 then :
17949 withval=$with_c_locale_coercion;
17950 fi
17951
17952
17953 if test -z "$with_c_locale_coercion"
17954 then
17955 with_c_locale_coercion="yes"
17956 fi
17957 if test "$with_c_locale_coercion" != "no"
17958 then
17959
17960 printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
17961
17962 fi
17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
17964 printf "%s\n" "$with_c_locale_coercion" >&6; }
17965
17966 # Check for Valgrind support
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
17968 printf %s "checking for --with-valgrind... " >&6; }
17969
17970 # Check whether --with-valgrind was given.
17971 if test ${with_valgrind+y}
17972 then :
17973 withval=$with_valgrind;
17974 else $as_nop
17975 with_valgrind=no
17976
17977 fi
17978
17979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
17980 printf "%s\n" "$with_valgrind" >&6; }
17981 if test "$with_valgrind" != no; then
17982 ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
17983 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes
17984 then :
17985
17986 printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h
17987
17988 else $as_nop
17989 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
17990
17991 fi
17992
17993 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
17994 fi
17995
17996 # Check for DTrace support
17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
17998 printf %s "checking for --with-dtrace... " >&6; }
17999
18000 # Check whether --with-dtrace was given.
18001 if test ${with_dtrace+y}
18002 then :
18003 withval=$with_dtrace;
18004 else $as_nop
18005 with_dtrace=no
18006 fi
18007
18008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
18009 printf "%s\n" "$with_dtrace" >&6; }
18010
18011
18012
18013
18014
18015 DTRACE=
18016 DTRACE_HEADERS=
18017 DTRACE_OBJS=
18018
18019 if test "$with_dtrace" = "yes"
18020 then
18021 # Extract the first word of "dtrace", so it can be a program name with args.
18022 set dummy dtrace; ac_word=$2
18023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18024 printf %s "checking for $ac_word... " >&6; }
18025 if test ${ac_cv_path_DTRACE+y}
18026 then :
18027 printf %s "(cached) " >&6
18028 else $as_nop
18029 case $DTRACE in
18030 [\\/]* | ?:[\\/]*)
18031 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
18032 ;;
18033 *)
18034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18035 for as_dir in $PATH
18036 do
18037 IFS=$as_save_IFS
18038 case $as_dir in #(((
18039 '') as_dir=./ ;;
18040 */) ;;
18041 *) as_dir=$as_dir/ ;;
18042 esac
18043 for ac_exec_ext in '' $ac_executable_extensions; do
18044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18045 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
18046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18047 break 2
18048 fi
18049 done
18050 done
18051 IFS=$as_save_IFS
18052
18053 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
18054 ;;
18055 esac
18056 fi
18057 DTRACE=$ac_cv_path_DTRACE
18058 if test -n "$DTRACE"; then
18059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
18060 printf "%s\n" "$DTRACE" >&6; }
18061 else
18062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18063 printf "%s\n" "no" >&6; }
18064 fi
18065
18066
18067 if test "$DTRACE" = "not found"; then
18068 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
18069 fi
18070
18071 printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h
18072
18073 DTRACE_HEADERS="Include/pydtrace_probes.h"
18074
18075 # On OS X, DTrace providers do not need to be explicitly compiled and
18076 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
18077 # generation flag '-G'. We check for presence of this flag, rather than
18078 # hardcoding support by OS, in the interest of robustness.
18079 #
18080 # NetBSD DTrace requires the -x nolibs flag to avoid system library conflicts
18081 # and uses header generation for testing instead of object generation.
18082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
18083 printf %s "checking whether DTrace probes require linking... " >&6; }
18084 if test ${ac_cv_dtrace_link+y}
18085 then :
18086 printf %s "(cached) " >&6
18087 else $as_nop
18088
18089 ac_cv_dtrace_link=no
18090 echo 'BEGIN{}' > conftest.d
18091 case $host in
18092 *netbsd*)
18093 DTRACE_TEST_FLAGS="-x nolibs -h"
18094 ;;
18095 *)
18096 DTRACE_TEST_FLAGS="-G"
18097 ;;
18098 esac
18099 "$DTRACE" $DFLAGS $DTRACE_TEST_FLAGS -s conftest.d -o conftest.o > /dev/null 2>&1 && \
18100 ac_cv_dtrace_link=yes
18101
18102 fi
18103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
18104 printf "%s\n" "$ac_cv_dtrace_link" >&6; }
18105 if test "$ac_cv_dtrace_link" = "yes"; then
18106 DTRACE_OBJS="Python/pydtrace.o"
18107 fi
18108 # Set NetBSD-specific DTrace flags in DFLAGS
18109 case $host in
18110 *netbsd*)
18111 DFLAGS="$DFLAGS -x nolibs"
18112 ;;
18113 esac
18114 fi
18115
18116 PLATFORM_HEADERS=
18117 PLATFORM_OBJS=
18118
18119 case $ac_sys_system in #(
18120 Emscripten) :
18121
18122 as_fn_append PLATFORM_OBJS ' Python/emscripten_signal.o Python/emscripten_trampoline.o'
18123 as_fn_append PLATFORM_HEADERS ' $(srcdir)/Include/internal/pycore_emscripten_signal.h $(srcdir)/Include/internal/pycore_emscripten_trampoline.h'
18124 ;; #(
18125 *) :
18126 ;;
18127 esac
18128
18129
18130
18131 # -I${DLINCLDIR} is added to the compile rule for importdl.o
18132
18133 DLINCLDIR=.
18134
18135 # the dlopen() function means we might want to use dynload_shlib.o. some
18136 # platforms have dlopen(), but don't want to use it.
18137 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18138 if test "x$ac_cv_func_dlopen" = xyes
18139 then :
18140 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
18141
18142 fi
18143
18144
18145 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
18146 # loading of modules.
18147
18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
18149 printf %s "checking DYNLOADFILE... " >&6; }
18150 if test -z "$DYNLOADFILE"
18151 then
18152 case $ac_sys_system/$ac_sys_release in
18153 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
18154 *)
18155 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
18156 # out any dynamic loading
18157 if test "$ac_cv_func_dlopen" = yes
18158 then DYNLOADFILE="dynload_shlib.o"
18159 else DYNLOADFILE="dynload_stub.o"
18160 fi
18161 ;;
18162 esac
18163 fi
18164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
18165 printf "%s\n" "$DYNLOADFILE" >&6; }
18166 if test "$DYNLOADFILE" != "dynload_stub.o"
18167 then
18168
18169 printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
18170
18171 fi
18172
18173 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
18174
18175
18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
18177 printf %s "checking MACHDEP_OBJS... " >&6; }
18178 if test -z "$MACHDEP_OBJS"
18179 then
18180 MACHDEP_OBJS=$extra_machdep_objs
18181 else
18182 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
18183 fi
18184 if test -z "$MACHDEP_OBJS"; then
18185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
18186 printf "%s\n" "none" >&6; }
18187 else
18188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
18189 printf "%s\n" "$MACHDEP_OBJS" >&6; }
18190 fi
18191
18192 if test "$ac_sys_system" = "Linux-android"; then
18193 # When these functions are used in an unprivileged process, they crash rather
18194 # than returning an error.
18195 blocked_funcs="chroot initgroups setegid seteuid setgid sethostname
18196 setregid setresgid setresuid setreuid setuid"
18197
18198 # These functions are unimplemented and always return an error
18199 # (https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/android13-release/public/domain.te#1044)
18200 blocked_funcs="$blocked_funcs sem_open sem_unlink"
18201
18202 # Before API level 23, when fchmodat is called with the unimplemented flag
18203 # AT_SYMLINK_NOFOLLOW, instead of returning ENOTSUP as it should, it actually
18204 # follows the symlink.
18205 if test "$ANDROID_API_LEVEL" -lt 23; then
18206 blocked_funcs="$blocked_funcs fchmodat"
18207 fi
18208
18209 for name in $blocked_funcs; do
18210 as_func_var=`printf "%s\n" "ac_cv_func_$name" | $as_tr_sh`
18211
18212 eval "$as_func_var=no"
18213
18214 done
18215 fi
18216
18217 # checks for library functions
18218 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
18219 if test "x$ac_cv_func_accept4" = xyes
18220 then :
18221 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
18222
18223 fi
18224 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
18225 if test "x$ac_cv_func_alarm" = xyes
18226 then :
18227 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
18228
18229 fi
18230 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18231 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
18232 then :
18233 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
18234
18235 fi
18236 ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
18237 if test "x$ac_cv_func_chmod" = xyes
18238 then :
18239 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
18240
18241 fi
18242 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
18243 if test "x$ac_cv_func_chown" = xyes
18244 then :
18245 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
18246
18247 fi
18248 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
18249 if test "x$ac_cv_func_clock" = xyes
18250 then :
18251 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h
18252
18253 fi
18254 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
18255 if test "x$ac_cv_func_closefrom" = xyes
18256 then :
18257 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
18258
18259 fi
18260 ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range"
18261 if test "x$ac_cv_func_close_range" = xyes
18262 then :
18263 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h
18264
18265 fi
18266 ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr"
18267 if test "x$ac_cv_func_confstr" = xyes
18268 then :
18269 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h
18270
18271 fi
18272 ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
18273 if test "x$ac_cv_func_copy_file_range" = xyes
18274 then :
18275 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
18276
18277 fi
18278 ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid"
18279 if test "x$ac_cv_func_ctermid" = xyes
18280 then :
18281 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h
18282
18283 fi
18284 ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup"
18285 if test "x$ac_cv_func_dup" = xyes
18286 then :
18287 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h
18288
18289 fi
18290 ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv"
18291 if test "x$ac_cv_func_execv" = xyes
18292 then :
18293 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h
18294
18295 fi
18296 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
18297 if test "x$ac_cv_func_explicit_bzero" = xyes
18298 then :
18299 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
18300
18301 fi
18302 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
18303 if test "x$ac_cv_func_explicit_memset" = xyes
18304 then :
18305 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
18306
18307 fi
18308 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
18309 if test "x$ac_cv_func_faccessat" = xyes
18310 then :
18311 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
18312
18313 fi
18314 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
18315 if test "x$ac_cv_func_fchmod" = xyes
18316 then :
18317 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
18318
18319 fi
18320 ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat"
18321 if test "x$ac_cv_func_fchmodat" = xyes
18322 then :
18323 printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h
18324
18325 fi
18326 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
18327 if test "x$ac_cv_func_fchown" = xyes
18328 then :
18329 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
18330
18331 fi
18332 ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat"
18333 if test "x$ac_cv_func_fchownat" = xyes
18334 then :
18335 printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h
18336
18337 fi
18338 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
18339 if test "x$ac_cv_func_fdopendir" = xyes
18340 then :
18341 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
18342
18343 fi
18344 ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk"
18345 if test "x$ac_cv_func_fdwalk" = xyes
18346 then :
18347 printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h
18348
18349 fi
18350 ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve"
18351 if test "x$ac_cv_func_fexecve" = xyes
18352 then :
18353 printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h
18354
18355 fi
18356 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
18357 if test "x$ac_cv_func_fork" = xyes
18358 then :
18359 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
18360
18361 fi
18362 ac_fn_c_check_func "$LINENO" "fork1" "ac_cv_func_fork1"
18363 if test "x$ac_cv_func_fork1" = xyes
18364 then :
18365 printf "%s\n" "#define HAVE_FORK1 1" >>confdefs.h
18366
18367 fi
18368 ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf"
18369 if test "x$ac_cv_func_fpathconf" = xyes
18370 then :
18371 printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h
18372
18373 fi
18374 ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
18375 if test "x$ac_cv_func_fstatat" = xyes
18376 then :
18377 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
18378
18379 fi
18380 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
18381 if test "x$ac_cv_func_ftime" = xyes
18382 then :
18383 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
18384
18385 fi
18386 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
18387 if test "x$ac_cv_func_ftruncate" = xyes
18388 then :
18389 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
18390
18391 fi
18392 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
18393 if test "x$ac_cv_func_futimens" = xyes
18394 then :
18395 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
18396
18397 fi
18398 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
18399 if test "x$ac_cv_func_futimes" = xyes
18400 then :
18401 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
18402
18403 fi
18404 ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"
18405 if test "x$ac_cv_func_futimesat" = xyes
18406 then :
18407 printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h
18408
18409 fi
18410 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
18411 if test "x$ac_cv_func_gai_strerror" = xyes
18412 then :
18413 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
18414
18415 fi
18416 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
18417 if test "x$ac_cv_func_getegid" = xyes
18418 then :
18419 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
18420
18421 fi
18422 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
18423 if test "x$ac_cv_func_geteuid" = xyes
18424 then :
18425 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
18426
18427 fi
18428 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
18429 if test "x$ac_cv_func_getgid" = xyes
18430 then :
18431 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
18432
18433 fi
18434 ac_fn_c_check_func "$LINENO" "getgrent" "ac_cv_func_getgrent"
18435 if test "x$ac_cv_func_getgrent" = xyes
18436 then :
18437 printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h
18438
18439 fi
18440 ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid"
18441 if test "x$ac_cv_func_getgrgid" = xyes
18442 then :
18443 printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h
18444
18445 fi
18446 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
18447 if test "x$ac_cv_func_getgrgid_r" = xyes
18448 then :
18449 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
18450
18451 fi
18452 ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
18453 if test "x$ac_cv_func_getgrnam_r" = xyes
18454 then :
18455 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
18456
18457 fi
18458 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
18459 if test "x$ac_cv_func_getgrouplist" = xyes
18460 then :
18461 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
18462
18463 fi
18464 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
18465 if test "x$ac_cv_func_gethostname" = xyes
18466 then :
18467 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
18468
18469 fi
18470 ac_fn_c_check_func "$LINENO" "getitimer" "ac_cv_func_getitimer"
18471 if test "x$ac_cv_func_getitimer" = xyes
18472 then :
18473 printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h
18474
18475 fi
18476 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18477 if test "x$ac_cv_func_getloadavg" = xyes
18478 then :
18479 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
18480
18481 fi
18482 ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin"
18483 if test "x$ac_cv_func_getlogin" = xyes
18484 then :
18485 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h
18486
18487 fi
18488 ac_fn_c_check_func "$LINENO" "getlogin_r" "ac_cv_func_getlogin_r"
18489 if test "x$ac_cv_func_getlogin_r" = xyes
18490 then :
18491 printf "%s\n" "#define HAVE_GETLOGIN_R 1" >>confdefs.h
18492
18493 fi
18494 ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
18495 if test "x$ac_cv_func_getpeername" = xyes
18496 then :
18497 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
18498
18499 fi
18500 ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid"
18501 if test "x$ac_cv_func_getpgid" = xyes
18502 then :
18503 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h
18504
18505 fi
18506 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
18507 if test "x$ac_cv_func_getpid" = xyes
18508 then :
18509 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
18510
18511 fi
18512 ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid"
18513 if test "x$ac_cv_func_getppid" = xyes
18514 then :
18515 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h
18516
18517 fi
18518 ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority"
18519 if test "x$ac_cv_func_getpriority" = xyes
18520 then :
18521 printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h
18522
18523 fi
18524 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
18525 if test "x$ac_cv_func__getpty" = xyes
18526 then :
18527 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
18528
18529 fi
18530 ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent"
18531 if test "x$ac_cv_func_getpwent" = xyes
18532 then :
18533 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h
18534
18535 fi
18536 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
18537 if test "x$ac_cv_func_getpwnam_r" = xyes
18538 then :
18539 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
18540
18541 fi
18542 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
18543 if test "x$ac_cv_func_getpwuid" = xyes
18544 then :
18545 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
18546
18547 fi
18548 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
18549 if test "x$ac_cv_func_getpwuid_r" = xyes
18550 then :
18551 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
18552
18553 fi
18554 ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"
18555 if test "x$ac_cv_func_getresgid" = xyes
18556 then :
18557 printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h
18558
18559 fi
18560 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
18561 if test "x$ac_cv_func_getresuid" = xyes
18562 then :
18563 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
18564
18565 fi
18566 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
18567 if test "x$ac_cv_func_getrusage" = xyes
18568 then :
18569 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
18570
18571 fi
18572 ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid"
18573 if test "x$ac_cv_func_getsid" = xyes
18574 then :
18575 printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h
18576
18577 fi
18578 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent"
18579 if test "x$ac_cv_func_getspent" = xyes
18580 then :
18581 printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h
18582
18583 fi
18584 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
18585 if test "x$ac_cv_func_getspnam" = xyes
18586 then :
18587 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
18588
18589 fi
18590 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
18591 if test "x$ac_cv_func_getuid" = xyes
18592 then :
18593 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
18594
18595 fi
18596 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
18597 if test "x$ac_cv_func_getwd" = xyes
18598 then :
18599 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
18600
18601 fi
18602 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18603 if test "x$ac_cv_func_grantpt" = xyes
18604 then :
18605 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
18606
18607 fi
18608 ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex"
18609 if test "x$ac_cv_func_if_nameindex" = xyes
18610 then :
18611 printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h
18612
18613 fi
18614 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
18615 if test "x$ac_cv_func_initgroups" = xyes
18616 then :
18617 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
18618
18619 fi
18620 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill"
18621 if test "x$ac_cv_func_kill" = xyes
18622 then :
18623 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
18624
18625 fi
18626 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
18627 if test "x$ac_cv_func_killpg" = xyes
18628 then :
18629 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
18630
18631 fi
18632 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
18633 if test "x$ac_cv_func_lchown" = xyes
18634 then :
18635 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
18636
18637 fi
18638 ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"
18639 if test "x$ac_cv_func_linkat" = xyes
18640 then :
18641 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
18642
18643 fi
18644 ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
18645 if test "x$ac_cv_func_lockf" = xyes
18646 then :
18647 printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
18648
18649 fi
18650 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18651 if test "x$ac_cv_func_lstat" = xyes
18652 then :
18653 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18654
18655 fi
18656 ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
18657 if test "x$ac_cv_func_lutimes" = xyes
18658 then :
18659 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
18660
18661 fi
18662 ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
18663 if test "x$ac_cv_func_madvise" = xyes
18664 then :
18665 printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h
18666
18667 fi
18668 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
18669 if test "x$ac_cv_func_mbrtowc" = xyes
18670 then :
18671 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
18672
18673 fi
18674 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
18675 if test "x$ac_cv_func_memrchr" = xyes
18676 then :
18677 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
18678
18679 fi
18680 ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat"
18681 if test "x$ac_cv_func_mkdirat" = xyes
18682 then :
18683 printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h
18684
18685 fi
18686 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
18687 if test "x$ac_cv_func_mkfifo" = xyes
18688 then :
18689 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
18690
18691 fi
18692 ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat"
18693 if test "x$ac_cv_func_mkfifoat" = xyes
18694 then :
18695 printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h
18696
18697 fi
18698 ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"
18699 if test "x$ac_cv_func_mknod" = xyes
18700 then :
18701 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
18702
18703 fi
18704 ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat"
18705 if test "x$ac_cv_func_mknodat" = xyes
18706 then :
18707 printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h
18708
18709 fi
18710 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
18711 if test "x$ac_cv_func_mktime" = xyes
18712 then :
18713 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
18714
18715 fi
18716 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
18717 if test "x$ac_cv_func_mmap" = xyes
18718 then :
18719 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18720
18721 fi
18722 ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
18723 if test "x$ac_cv_func_mremap" = xyes
18724 then :
18725 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h
18726
18727 fi
18728 ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
18729 if test "x$ac_cv_func_nice" = xyes
18730 then :
18731 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
18732
18733 fi
18734 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
18735 if test "x$ac_cv_func_openat" = xyes
18736 then :
18737 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
18738
18739 fi
18740 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
18741 if test "x$ac_cv_func_opendir" = xyes
18742 then :
18743 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
18744
18745 fi
18746 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
18747 if test "x$ac_cv_func_pathconf" = xyes
18748 then :
18749 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
18750
18751 fi
18752 ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause"
18753 if test "x$ac_cv_func_pause" = xyes
18754 then :
18755 printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h
18756
18757 fi
18758 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
18759 if test "x$ac_cv_func_pipe" = xyes
18760 then :
18761 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
18762
18763 fi
18764 ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock"
18765 if test "x$ac_cv_func_plock" = xyes
18766 then :
18767 printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h
18768
18769 fi
18770 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
18771 if test "x$ac_cv_func_poll" = xyes
18772 then :
18773 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
18774
18775 fi
18776 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
18777 if test "x$ac_cv_func_posix_fadvise" = xyes
18778 then :
18779 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
18780
18781 fi
18782 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
18783 if test "x$ac_cv_func_posix_fallocate" = xyes
18784 then :
18785 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
18786
18787 fi
18788 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
18789 if test "x$ac_cv_func_posix_openpt" = xyes
18790 then :
18791 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
18792
18793 fi
18794 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
18795 if test "x$ac_cv_func_posix_spawn" = xyes
18796 then :
18797 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
18798
18799 fi
18800 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
18801 if test "x$ac_cv_func_posix_spawnp" = xyes
18802 then :
18803 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
18804
18805 fi
18806 ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_addclosefrom_np" "ac_cv_func_posix_spawn_file_actions_addclosefrom_np"
18807 if test "x$ac_cv_func_posix_spawn_file_actions_addclosefrom_np" = xyes
18808 then :
18809 printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP 1" >>confdefs.h
18810
18811 fi
18812 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
18813 if test "x$ac_cv_func_pread" = xyes
18814 then :
18815 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
18816
18817 fi
18818 ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv"
18819 if test "x$ac_cv_func_preadv" = xyes
18820 then :
18821 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h
18822
18823 fi
18824 ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2"
18825 if test "x$ac_cv_func_preadv2" = xyes
18826 then :
18827 printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h
18828
18829 fi
18830 ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv"
18831 if test "x$ac_cv_func_process_vm_readv" = xyes
18832 then :
18833 printf "%s\n" "#define HAVE_PROCESS_VM_READV 1" >>confdefs.h
18834
18835 fi
18836 ac_fn_c_check_func "$LINENO" "pthread_cond_timedwait_relative_np" "ac_cv_func_pthread_cond_timedwait_relative_np"
18837 if test "x$ac_cv_func_pthread_cond_timedwait_relative_np" = xyes
18838 then :
18839 printf "%s\n" "#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP 1" >>confdefs.h
18840
18841 fi
18842 ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
18843 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
18844 then :
18845 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
18846
18847 fi
18848 ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init"
18849 if test "x$ac_cv_func_pthread_init" = xyes
18850 then :
18851 printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h
18852
18853 fi
18854 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
18855 if test "x$ac_cv_func_pthread_kill" = xyes
18856 then :
18857 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
18858
18859 fi
18860 ac_fn_c_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname"
18861 if test "x$ac_cv_func_ptsname" = xyes
18862 then :
18863 printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h
18864
18865 fi
18866 ac_fn_c_check_func "$LINENO" "ptsname_r" "ac_cv_func_ptsname_r"
18867 if test "x$ac_cv_func_ptsname_r" = xyes
18868 then :
18869 printf "%s\n" "#define HAVE_PTSNAME_R 1" >>confdefs.h
18870
18871 fi
18872 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
18873 if test "x$ac_cv_func_pwrite" = xyes
18874 then :
18875 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
18876
18877 fi
18878 ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev"
18879 if test "x$ac_cv_func_pwritev" = xyes
18880 then :
18881 printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h
18882
18883 fi
18884 ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2"
18885 if test "x$ac_cv_func_pwritev2" = xyes
18886 then :
18887 printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h
18888
18889 fi
18890 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
18891 if test "x$ac_cv_func_readlink" = xyes
18892 then :
18893 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
18894
18895 fi
18896 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
18897 if test "x$ac_cv_func_readlinkat" = xyes
18898 then :
18899 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
18900
18901 fi
18902 ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv"
18903 if test "x$ac_cv_func_readv" = xyes
18904 then :
18905 printf "%s\n" "#define HAVE_READV 1" >>confdefs.h
18906
18907 fi
18908 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
18909 if test "x$ac_cv_func_realpath" = xyes
18910 then :
18911 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
18912
18913 fi
18914 ac_fn_c_check_func "$LINENO" "renameat" "ac_cv_func_renameat"
18915 if test "x$ac_cv_func_renameat" = xyes
18916 then :
18917 printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h
18918
18919 fi
18920 ac_fn_c_check_func "$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn"
18921 if test "x$ac_cv_func_rtpSpawn" = xyes
18922 then :
18923 printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h
18924
18925 fi
18926 ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
18927 if test "x$ac_cv_func_sched_get_priority_max" = xyes
18928 then :
18929 printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h
18930
18931 fi
18932 ac_fn_c_check_func "$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval"
18933 if test "x$ac_cv_func_sched_rr_get_interval" = xyes
18934 then :
18935 printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h
18936
18937 fi
18938 ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
18939 if test "x$ac_cv_func_sched_setaffinity" = xyes
18940 then :
18941 printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
18942
18943 fi
18944 ac_fn_c_check_func "$LINENO" "sched_setparam" "ac_cv_func_sched_setparam"
18945 if test "x$ac_cv_func_sched_setparam" = xyes
18946 then :
18947 printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h
18948
18949 fi
18950 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
18951 if test "x$ac_cv_func_sched_setscheduler" = xyes
18952 then :
18953 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
18954
18955 fi
18956 ac_fn_c_check_func "$LINENO" "sem_clockwait" "ac_cv_func_sem_clockwait"
18957 if test "x$ac_cv_func_sem_clockwait" = xyes
18958 then :
18959 printf "%s\n" "#define HAVE_SEM_CLOCKWAIT 1" >>confdefs.h
18960
18961 fi
18962 ac_fn_c_check_func "$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue"
18963 if test "x$ac_cv_func_sem_getvalue" = xyes
18964 then :
18965 printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h
18966
18967 fi
18968 ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open"
18969 if test "x$ac_cv_func_sem_open" = xyes
18970 then :
18971 printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h
18972
18973 fi
18974 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
18975 if test "x$ac_cv_func_sem_timedwait" = xyes
18976 then :
18977 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
18978
18979 fi
18980 ac_fn_c_check_func "$LINENO" "sem_unlink" "ac_cv_func_sem_unlink"
18981 if test "x$ac_cv_func_sem_unlink" = xyes
18982 then :
18983 printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h
18984
18985 fi
18986 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
18987 if test "x$ac_cv_func_sendfile" = xyes
18988 then :
18989 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
18990
18991 fi
18992 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
18993 if test "x$ac_cv_func_setegid" = xyes
18994 then :
18995 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
18996
18997 fi
18998 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
18999 if test "x$ac_cv_func_seteuid" = xyes
19000 then :
19001 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
19002
19003 fi
19004 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
19005 if test "x$ac_cv_func_setgid" = xyes
19006 then :
19007 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
19008
19009 fi
19010 ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname"
19011 if test "x$ac_cv_func_sethostname" = xyes
19012 then :
19013 printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h
19014
19015 fi
19016 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
19017 if test "x$ac_cv_func_setitimer" = xyes
19018 then :
19019 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
19020
19021 fi
19022 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
19023 if test "x$ac_cv_func_setlocale" = xyes
19024 then :
19025 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
19026
19027 fi
19028 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
19029 if test "x$ac_cv_func_setpgid" = xyes
19030 then :
19031 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
19032
19033 fi
19034 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
19035 if test "x$ac_cv_func_setpgrp" = xyes
19036 then :
19037 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
19038
19039 fi
19040 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
19041 if test "x$ac_cv_func_setpriority" = xyes
19042 then :
19043 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h
19044
19045 fi
19046 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
19047 if test "x$ac_cv_func_setregid" = xyes
19048 then :
19049 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
19050
19051 fi
19052 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
19053 if test "x$ac_cv_func_setresgid" = xyes
19054 then :
19055 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
19056
19057 fi
19058 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
19059 if test "x$ac_cv_func_setresuid" = xyes
19060 then :
19061 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
19062
19063 fi
19064 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
19065 if test "x$ac_cv_func_setreuid" = xyes
19066 then :
19067 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
19068
19069 fi
19070 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
19071 if test "x$ac_cv_func_setsid" = xyes
19072 then :
19073 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
19074
19075 fi
19076 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
19077 if test "x$ac_cv_func_setuid" = xyes
19078 then :
19079 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
19080
19081 fi
19082 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
19083 if test "x$ac_cv_func_setvbuf" = xyes
19084 then :
19085 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
19086
19087 fi
19088 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
19089 if test "x$ac_cv_func_shutdown" = xyes
19090 then :
19091 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
19092
19093 fi
19094 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
19095 if test "x$ac_cv_func_sigaction" = xyes
19096 then :
19097 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
19098
19099 fi
19100 ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
19101 if test "x$ac_cv_func_sigaltstack" = xyes
19102 then :
19103 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
19104
19105 fi
19106 ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset"
19107 if test "x$ac_cv_func_sigfillset" = xyes
19108 then :
19109 printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h
19110
19111 fi
19112 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
19113 if test "x$ac_cv_func_siginterrupt" = xyes
19114 then :
19115 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
19116
19117 fi
19118 ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending"
19119 if test "x$ac_cv_func_sigpending" = xyes
19120 then :
19121 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
19122
19123 fi
19124 ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse"
19125 if test "x$ac_cv_func_sigrelse" = xyes
19126 then :
19127 printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h
19128
19129 fi
19130 ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
19131 if test "x$ac_cv_func_sigtimedwait" = xyes
19132 then :
19133 printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
19134
19135 fi
19136 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
19137 if test "x$ac_cv_func_sigwait" = xyes
19138 then :
19139 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
19140
19141 fi
19142 ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo"
19143 if test "x$ac_cv_func_sigwaitinfo" = xyes
19144 then :
19145 printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h
19146
19147 fi
19148 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19149 if test "x$ac_cv_func_snprintf" = xyes
19150 then :
19151 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
19152
19153 fi
19154 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
19155 if test "x$ac_cv_func_splice" = xyes
19156 then :
19157 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
19158
19159 fi
19160 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
19161 if test "x$ac_cv_func_strftime" = xyes
19162 then :
19163 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
19164
19165 fi
19166 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19167 if test "x$ac_cv_func_strlcpy" = xyes
19168 then :
19169 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
19170
19171 fi
19172 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
19173 if test "x$ac_cv_func_strsignal" = xyes
19174 then :
19175 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
19176
19177 fi
19178 ac_fn_c_check_func "$LINENO" "symlinkat" "ac_cv_func_symlinkat"
19179 if test "x$ac_cv_func_symlinkat" = xyes
19180 then :
19181 printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h
19182
19183 fi
19184 ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync"
19185 if test "x$ac_cv_func_sync" = xyes
19186 then :
19187 printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h
19188
19189 fi
19190 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
19191 if test "x$ac_cv_func_sysconf" = xyes
19192 then :
19193 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
19194
19195 fi
19196 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
19197 if test "x$ac_cv_func_sysctlbyname" = xyes
19198 then :
19199 printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
19200
19201 fi
19202 ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
19203 if test "x$ac_cv_func_tcgetpgrp" = xyes
19204 then :
19205 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h
19206
19207 fi
19208 ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
19209 if test "x$ac_cv_func_tcsetpgrp" = xyes
19210 then :
19211 printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h
19212
19213 fi
19214 ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam"
19215 if test "x$ac_cv_func_tempnam" = xyes
19216 then :
19217 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h
19218
19219 fi
19220 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
19221 if test "x$ac_cv_func_timegm" = xyes
19222 then :
19223 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
19224
19225 fi
19226 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
19227 if test "x$ac_cv_func_times" = xyes
19228 then :
19229 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
19230
19231 fi
19232 ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile"
19233 if test "x$ac_cv_func_tmpfile" = xyes
19234 then :
19235 printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h
19236
19237 fi
19238 ac_fn_c_check_func "$LINENO" "tmpnam" "ac_cv_func_tmpnam"
19239 if test "x$ac_cv_func_tmpnam" = xyes
19240 then :
19241 printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h
19242
19243 fi
19244 ac_fn_c_check_func "$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r"
19245 if test "x$ac_cv_func_tmpnam_r" = xyes
19246 then :
19247 printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h
19248
19249 fi
19250 ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate"
19251 if test "x$ac_cv_func_truncate" = xyes
19252 then :
19253 printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h
19254
19255 fi
19256 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
19257 if test "x$ac_cv_func_ttyname_r" = xyes
19258 then :
19259 printf "%s\n" "#define HAVE_TTYNAME_R 1" >>confdefs.h
19260
19261 fi
19262 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
19263 if test "x$ac_cv_func_umask" = xyes
19264 then :
19265 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
19266
19267 fi
19268 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
19269 if test "x$ac_cv_func_uname" = xyes
19270 then :
19271 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
19272
19273 fi
19274 ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"
19275 if test "x$ac_cv_func_unlinkat" = xyes
19276 then :
19277 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
19278
19279 fi
19280 ac_fn_c_check_func "$LINENO" "unlockpt" "ac_cv_func_unlockpt"
19281 if test "x$ac_cv_func_unlockpt" = xyes
19282 then :
19283 printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h
19284
19285 fi
19286 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
19287 if test "x$ac_cv_func_utimensat" = xyes
19288 then :
19289 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
19290
19291 fi
19292 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
19293 if test "x$ac_cv_func_utimes" = xyes
19294 then :
19295 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
19296
19297 fi
19298 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
19299 if test "x$ac_cv_func_vfork" = xyes
19300 then :
19301 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
19302
19303 fi
19304 ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait"
19305 if test "x$ac_cv_func_wait" = xyes
19306 then :
19307 printf "%s\n" "#define HAVE_WAIT 1" >>confdefs.h
19308
19309 fi
19310 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
19311 if test "x$ac_cv_func_wait3" = xyes
19312 then :
19313 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
19314
19315 fi
19316 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
19317 if test "x$ac_cv_func_wait4" = xyes
19318 then :
19319 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
19320
19321 fi
19322 ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
19323 if test "x$ac_cv_func_waitid" = xyes
19324 then :
19325 printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h
19326
19327 fi
19328 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
19329 if test "x$ac_cv_func_waitpid" = xyes
19330 then :
19331 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
19332
19333 fi
19334 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
19335 if test "x$ac_cv_func_wcscoll" = xyes
19336 then :
19337 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h
19338
19339 fi
19340 ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime"
19341 if test "x$ac_cv_func_wcsftime" = xyes
19342 then :
19343 printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h
19344
19345 fi
19346 ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm"
19347 if test "x$ac_cv_func_wcsxfrm" = xyes
19348 then :
19349 printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h
19350
19351 fi
19352 ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
19353 if test "x$ac_cv_func_wmemcmp" = xyes
19354 then :
19355 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
19356
19357 fi
19358 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
19359 if test "x$ac_cv_func_writev" = xyes
19360 then :
19361 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
19362
19363 fi
19364
19365
19366 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
19367 # links. Some libc implementations have a stub lchmod implementation that always
19368 # returns an error.
19369 if test "$MACHDEP" != linux; then
19370 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
19371 if test "x$ac_cv_func_lchmod" = xyes
19372 then :
19373 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
19374
19375 fi
19376
19377 fi
19378
19379 # iOS defines some system methods that can be linked (so they are
19380 # found by configure), but either raise a compilation error (because the
19381 # header definition prevents usage - autoconf doesn't use the headers), or
19382 # raise an error if used at runtime. Force these symbols off.
19383 if test "$ac_sys_system" != "iOS" ; then
19384 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19385 if test "x$ac_cv_func_getentropy" = xyes
19386 then :
19387 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
19388
19389 fi
19390 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
19391 if test "x$ac_cv_func_getgroups" = xyes
19392 then :
19393 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
19394
19395 fi
19396 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
19397 if test "x$ac_cv_func_system" = xyes
19398 then :
19399 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
19400
19401 fi
19402
19403 fi
19404 # In addition, macOS introduced dup3 and pipe2 in macOS 27, late in the
19405 # lifetime of this version of Python. Rather than adding weaklinking
19406 # support for them, just continue to ignore them.
19407 if test "$ac_sys_system" != "iOS" -a "$ac_sys_system" != "Darwin"; then
19408 ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3"
19409 if test "x$ac_cv_func_dup3" = xyes
19410 then :
19411 printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h
19412
19413 fi
19414 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
19415 if test "x$ac_cv_func_pipe2" = xyes
19416 then :
19417 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
19418
19419 fi
19420
19421 fi
19422
19423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
19424 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
19425 if test ${ac_cv_c_undeclared_builtin_options+y}
19426 then :
19427 printf %s "(cached) " >&6
19428 else $as_nop
19429 ac_save_CFLAGS=$CFLAGS
19430 ac_cv_c_undeclared_builtin_options='cannot detect'
19431 for ac_arg in '' -fno-builtin; do
19432 CFLAGS="$ac_save_CFLAGS $ac_arg"
19433 # This test program should *not* compile successfully.
19434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19435 /* end confdefs.h. */
19436
19437 int
19438 main (void)
19439 {
19440 (void) strchr;
19441 ;
19442 return 0;
19443 }
19444 _ACEOF
19445 if ac_fn_c_try_compile "$LINENO"
19446 then :
19447
19448 else $as_nop
19449 # This test program should compile successfully.
19450 # No library function is consistently available on
19451 # freestanding implementations, so test against a dummy
19452 # declaration. Include always-available headers on the
19453 # off chance that they somehow elicit warnings.
19454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h. */
19456 #include <float.h>
19457 #include <limits.h>
19458 #include <stdarg.h>
19459 #include <stddef.h>
19460 extern void ac_decl (int, char *);
19461
19462 int
19463 main (void)
19464 {
19465 (void) ac_decl (0, (char *) 0);
19466 (void) ac_decl;
19467
19468 ;
19469 return 0;
19470 }
19471 _ACEOF
19472 if ac_fn_c_try_compile "$LINENO"
19473 then :
19474 if test x"$ac_arg" = x
19475 then :
19476 ac_cv_c_undeclared_builtin_options='none needed'
19477 else $as_nop
19478 ac_cv_c_undeclared_builtin_options=$ac_arg
19479 fi
19480 break
19481 fi
19482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19483 fi
19484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19485 done
19486 CFLAGS=$ac_save_CFLAGS
19487
19488 fi
19489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
19490 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
19491 case $ac_cv_c_undeclared_builtin_options in #(
19492 'cannot detect') :
19493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19494 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19495 as_fn_error $? "cannot make $CC report undeclared builtins
19496 See \`config.log' for more details" "$LINENO" 5; } ;; #(
19497 'none needed') :
19498 ac_c_undeclared_builtin_options='' ;; #(
19499 *) :
19500 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
19501 esac
19502
19503 ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
19504 #include <dirent.h>
19505 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19506 if test "x$ac_cv_have_decl_dirfd" = xyes
19507 then :
19508
19509 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
19510
19511 fi
19512
19513 # For some functions, having a definition is not sufficient, since
19514 # we want to take their address.
19515
19516
19517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
19518 printf %s "checking for chroot... " >&6; }
19519 if test ${ac_cv_func_chroot+y}
19520 then :
19521 printf %s "(cached) " >&6
19522 else $as_nop
19523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19524 /* end confdefs.h. */
19525 #include <unistd.h>
19526 int
19527 main (void)
19528 {
19529 void *x=chroot
19530 ;
19531 return 0;
19532 }
19533 _ACEOF
19534 if ac_fn_c_try_compile "$LINENO"
19535 then :
19536 ac_cv_func_chroot=yes
19537 else $as_nop
19538 ac_cv_func_chroot=no
19539 fi
19540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19541
19542 fi
19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chroot" >&5
19544 printf "%s\n" "$ac_cv_func_chroot" >&6; }
19545 if test "x$ac_cv_func_chroot" = xyes
19546 then :
19547
19548 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
19549
19550 fi
19551
19552
19553
19554
19555
19556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5
19557 printf %s "checking for link... " >&6; }
19558 if test ${ac_cv_func_link+y}
19559 then :
19560 printf %s "(cached) " >&6
19561 else $as_nop
19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19564 #include <unistd.h>
19565 int
19566 main (void)
19567 {
19568 void *x=link
19569 ;
19570 return 0;
19571 }
19572 _ACEOF
19573 if ac_fn_c_try_compile "$LINENO"
19574 then :
19575 ac_cv_func_link=yes
19576 else $as_nop
19577 ac_cv_func_link=no
19578 fi
19579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19580
19581 fi
19582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_link" >&5
19583 printf "%s\n" "$ac_cv_func_link" >&6; }
19584 if test "x$ac_cv_func_link" = xyes
19585 then :
19586
19587 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
19588
19589 fi
19590
19591
19592
19593
19594
19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
19596 printf %s "checking for symlink... " >&6; }
19597 if test ${ac_cv_func_symlink+y}
19598 then :
19599 printf %s "(cached) " >&6
19600 else $as_nop
19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h. */
19603 #include <unistd.h>
19604 int
19605 main (void)
19606 {
19607 void *x=symlink
19608 ;
19609 return 0;
19610 }
19611 _ACEOF
19612 if ac_fn_c_try_compile "$LINENO"
19613 then :
19614 ac_cv_func_symlink=yes
19615 else $as_nop
19616 ac_cv_func_symlink=no
19617 fi
19618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19619
19620 fi
19621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_symlink" >&5
19622 printf "%s\n" "$ac_cv_func_symlink" >&6; }
19623 if test "x$ac_cv_func_symlink" = xyes
19624 then :
19625
19626 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
19627
19628 fi
19629
19630
19631
19632
19633
19634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
19635 printf %s "checking for fchdir... " >&6; }
19636 if test ${ac_cv_func_fchdir+y}
19637 then :
19638 printf %s "(cached) " >&6
19639 else $as_nop
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h. */
19642 #include <unistd.h>
19643 int
19644 main (void)
19645 {
19646 void *x=fchdir
19647 ;
19648 return 0;
19649 }
19650 _ACEOF
19651 if ac_fn_c_try_compile "$LINENO"
19652 then :
19653 ac_cv_func_fchdir=yes
19654 else $as_nop
19655 ac_cv_func_fchdir=no
19656 fi
19657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19658
19659 fi
19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fchdir" >&5
19661 printf "%s\n" "$ac_cv_func_fchdir" >&6; }
19662 if test "x$ac_cv_func_fchdir" = xyes
19663 then :
19664
19665 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
19666
19667 fi
19668
19669
19670
19671
19672
19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
19674 printf %s "checking for fsync... " >&6; }
19675 if test ${ac_cv_func_fsync+y}
19676 then :
19677 printf %s "(cached) " >&6
19678 else $as_nop
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19681 #include <unistd.h>
19682 int
19683 main (void)
19684 {
19685 void *x=fsync
19686 ;
19687 return 0;
19688 }
19689 _ACEOF
19690 if ac_fn_c_try_compile "$LINENO"
19691 then :
19692 ac_cv_func_fsync=yes
19693 else $as_nop
19694 ac_cv_func_fsync=no
19695 fi
19696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19697
19698 fi
19699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fsync" >&5
19700 printf "%s\n" "$ac_cv_func_fsync" >&6; }
19701 if test "x$ac_cv_func_fsync" = xyes
19702 then :
19703
19704 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
19705
19706 fi
19707
19708
19709
19710
19711
19712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
19713 printf %s "checking for fdatasync... " >&6; }
19714 if test ${ac_cv_func_fdatasync+y}
19715 then :
19716 printf %s "(cached) " >&6
19717 else $as_nop
19718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19719 /* end confdefs.h. */
19720 #include <unistd.h>
19721 int
19722 main (void)
19723 {
19724 void *x=fdatasync
19725 ;
19726 return 0;
19727 }
19728 _ACEOF
19729 if ac_fn_c_try_compile "$LINENO"
19730 then :
19731 ac_cv_func_fdatasync=yes
19732 else $as_nop
19733 ac_cv_func_fdatasync=no
19734 fi
19735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19736
19737 fi
19738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fdatasync" >&5
19739 printf "%s\n" "$ac_cv_func_fdatasync" >&6; }
19740 if test "x$ac_cv_func_fdatasync" = xyes
19741 then :
19742
19743 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
19744
19745 fi
19746
19747
19748
19749
19750
19751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create" >&5
19752 printf %s "checking for epoll_create... " >&6; }
19753 if test ${ac_cv_func_epoll_create+y}
19754 then :
19755 printf %s "(cached) " >&6
19756 else $as_nop
19757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19758 /* end confdefs.h. */
19759 #include <sys/epoll.h>
19760 int
19761 main (void)
19762 {
19763 void *x=epoll_create
19764 ;
19765 return 0;
19766 }
19767 _ACEOF
19768 if ac_fn_c_try_compile "$LINENO"
19769 then :
19770 ac_cv_func_epoll_create=yes
19771 else $as_nop
19772 ac_cv_func_epoll_create=no
19773 fi
19774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19775
19776 fi
19777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create" >&5
19778 printf "%s\n" "$ac_cv_func_epoll_create" >&6; }
19779 if test "x$ac_cv_func_epoll_create" = xyes
19780 then :
19781
19782 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
19783
19784 fi
19785
19786
19787
19788
19789
19790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
19791 printf %s "checking for epoll_create1... " >&6; }
19792 if test ${ac_cv_func_epoll_create1+y}
19793 then :
19794 printf %s "(cached) " >&6
19795 else $as_nop
19796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h. */
19798 #include <sys/epoll.h>
19799 int
19800 main (void)
19801 {
19802 void *x=epoll_create1
19803 ;
19804 return 0;
19805 }
19806 _ACEOF
19807 if ac_fn_c_try_compile "$LINENO"
19808 then :
19809 ac_cv_func_epoll_create1=yes
19810 else $as_nop
19811 ac_cv_func_epoll_create1=no
19812 fi
19813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19814
19815 fi
19816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create1" >&5
19817 printf "%s\n" "$ac_cv_func_epoll_create1" >&6; }
19818 if test "x$ac_cv_func_epoll_create1" = xyes
19819 then :
19820
19821 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
19822
19823 fi
19824
19825
19826
19827
19828
19829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
19830 printf %s "checking for kqueue... " >&6; }
19831 if test ${ac_cv_func_kqueue+y}
19832 then :
19833 printf %s "(cached) " >&6
19834 else $as_nop
19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19837
19838 #include <sys/types.h>
19839 #include <sys/event.h>
19840
19841 int
19842 main (void)
19843 {
19844 void *x=kqueue
19845 ;
19846 return 0;
19847 }
19848 _ACEOF
19849 if ac_fn_c_try_compile "$LINENO"
19850 then :
19851 ac_cv_func_kqueue=yes
19852 else $as_nop
19853 ac_cv_func_kqueue=no
19854 fi
19855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19856
19857 fi
19858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_kqueue" >&5
19859 printf "%s\n" "$ac_cv_func_kqueue" >&6; }
19860 if test "x$ac_cv_func_kqueue" = xyes
19861 then :
19862
19863 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
19864
19865 fi
19866
19867
19868
19869
19870
19871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
19872 printf %s "checking for prlimit... " >&6; }
19873 if test ${ac_cv_func_prlimit+y}
19874 then :
19875 printf %s "(cached) " >&6
19876 else $as_nop
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19879
19880 #include <sys/time.h>
19881 #include <sys/resource.h>
19882
19883 int
19884 main (void)
19885 {
19886 void *x=prlimit
19887 ;
19888 return 0;
19889 }
19890 _ACEOF
19891 if ac_fn_c_try_compile "$LINENO"
19892 then :
19893 ac_cv_func_prlimit=yes
19894 else $as_nop
19895 ac_cv_func_prlimit=no
19896 fi
19897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19898
19899 fi
19900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_prlimit" >&5
19901 printf "%s\n" "$ac_cv_func_prlimit" >&6; }
19902 if test "x$ac_cv_func_prlimit" = xyes
19903 then :
19904
19905 printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
19906
19907 fi
19908
19909
19910
19911
19912
19913
19914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5
19915 printf %s "checking for _dyld_shared_cache_contains_path... " >&6; }
19916 if test ${ac_cv_func__dyld_shared_cache_contains_path+y}
19917 then :
19918 printf %s "(cached) " >&6
19919 else $as_nop
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h. */
19922 #include <mach-o/dyld.h>
19923 int
19924 main (void)
19925 {
19926 void *x=_dyld_shared_cache_contains_path
19927 ;
19928 return 0;
19929 }
19930 _ACEOF
19931 if ac_fn_c_try_compile "$LINENO"
19932 then :
19933 ac_cv_func__dyld_shared_cache_contains_path=yes
19934 else $as_nop
19935 ac_cv_func__dyld_shared_cache_contains_path=no
19936 fi
19937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19938
19939 fi
19940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__dyld_shared_cache_contains_path" >&5
19941 printf "%s\n" "$ac_cv_func__dyld_shared_cache_contains_path" >&6; }
19942 if test "x$ac_cv_func__dyld_shared_cache_contains_path" = xyes
19943 then :
19944
19945 printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h
19946
19947 fi
19948
19949
19950
19951
19952
19953
19954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
19955 printf %s "checking for memfd_create... " >&6; }
19956 if test ${ac_cv_func_memfd_create+y}
19957 then :
19958 printf %s "(cached) " >&6
19959 else $as_nop
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19962
19963 #ifdef HAVE_SYS_MMAN_H
19964 #include <sys/mman.h>
19965 #endif
19966 #ifdef HAVE_SYS_MEMFD_H
19967 #include <sys/memfd.h>
19968 #endif
19969
19970 int
19971 main (void)
19972 {
19973 void *x=memfd_create
19974 ;
19975 return 0;
19976 }
19977 _ACEOF
19978 if ac_fn_c_try_compile "$LINENO"
19979 then :
19980 ac_cv_func_memfd_create=yes
19981 else $as_nop
19982 ac_cv_func_memfd_create=no
19983 fi
19984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19985
19986 fi
19987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memfd_create" >&5
19988 printf "%s\n" "$ac_cv_func_memfd_create" >&6; }
19989 if test "x$ac_cv_func_memfd_create" = xyes
19990 then :
19991
19992 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
19993
19994 fi
19995
19996
19997
19998
19999
20000
20001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
20002 printf %s "checking for eventfd... " >&6; }
20003 if test ${ac_cv_func_eventfd+y}
20004 then :
20005 printf %s "(cached) " >&6
20006 else $as_nop
20007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008 /* end confdefs.h. */
20009
20010 #ifdef HAVE_SYS_EVENTFD_H
20011 #include <sys/eventfd.h>
20012 #endif
20013
20014 int
20015 main (void)
20016 {
20017 void *x=eventfd
20018 ;
20019 return 0;
20020 }
20021 _ACEOF
20022 if ac_fn_c_try_compile "$LINENO"
20023 then :
20024 ac_cv_func_eventfd=yes
20025 else $as_nop
20026 ac_cv_func_eventfd=no
20027 fi
20028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20029
20030 fi
20031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_eventfd" >&5
20032 printf "%s\n" "$ac_cv_func_eventfd" >&6; }
20033 if test "x$ac_cv_func_eventfd" = xyes
20034 then :
20035
20036 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
20037
20038 fi
20039
20040
20041
20042
20043
20044
20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_create" >&5
20046 printf %s "checking for timerfd_create... " >&6; }
20047 if test ${ac_cv_func_timerfd_create+y}
20048 then :
20049 printf %s "(cached) " >&6
20050 else $as_nop
20051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052 /* end confdefs.h. */
20053
20054 #ifdef HAVE_SYS_TIMERFD_H
20055 #include <sys/timerfd.h>
20056 #endif
20057
20058 int
20059 main (void)
20060 {
20061 void *x=timerfd_create
20062 ;
20063 return 0;
20064 }
20065 _ACEOF
20066 if ac_fn_c_try_compile "$LINENO"
20067 then :
20068 ac_cv_func_timerfd_create=yes
20069 else $as_nop
20070 ac_cv_func_timerfd_create=no
20071 fi
20072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20073
20074 fi
20075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_timerfd_create" >&5
20076 printf "%s\n" "$ac_cv_func_timerfd_create" >&6; }
20077 if test "x$ac_cv_func_timerfd_create" = xyes
20078 then :
20079
20080 printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h
20081
20082 fi
20083
20084
20085
20086
20087 # On some systems (eg. FreeBSD 5), we would find a definition of the
20088 # functions ctermid_r, setgroups in the library, but no prototype
20089 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
20090 # address to avoid compiler warnings and potential miscompilations
20091 # because of the missing prototypes.
20092
20093
20094
20095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
20096 printf %s "checking for ctermid_r... " >&6; }
20097 if test ${ac_cv_func_ctermid_r+y}
20098 then :
20099 printf %s "(cached) " >&6
20100 else $as_nop
20101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20102 /* end confdefs.h. */
20103 #include <stdio.h>
20104 int
20105 main (void)
20106 {
20107 void *x=ctermid_r
20108 ;
20109 return 0;
20110 }
20111 _ACEOF
20112 if ac_fn_c_try_compile "$LINENO"
20113 then :
20114 ac_cv_func_ctermid_r=yes
20115 else $as_nop
20116 ac_cv_func_ctermid_r=no
20117 fi
20118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20119
20120 fi
20121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctermid_r" >&5
20122 printf "%s\n" "$ac_cv_func_ctermid_r" >&6; }
20123 if test "x$ac_cv_func_ctermid_r" = xyes
20124 then :
20125
20126 printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h
20127
20128 fi
20129
20130
20131
20132
20133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
20134 printf %s "checking for flock declaration... " >&6; }
20135 if test ${ac_cv_flock_decl+y}
20136 then :
20137 printf %s "(cached) " >&6
20138 else $as_nop
20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20140 /* end confdefs.h. */
20141 #include <sys/file.h>
20142 int
20143 main (void)
20144 {
20145 void* p = flock
20146
20147 ;
20148 return 0;
20149 }
20150 _ACEOF
20151 if ac_fn_c_try_compile "$LINENO"
20152 then :
20153 ac_cv_flock_decl=yes
20154 else $as_nop
20155 ac_cv_flock_decl=no
20156
20157 fi
20158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20159
20160 fi
20161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
20162 printf "%s\n" "$ac_cv_flock_decl" >&6; }
20163 if test "x$ac_cv_flock_decl" = xyes
20164 then :
20165
20166 for ac_func in flock
20167 do :
20168 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
20169 if test "x$ac_cv_func_flock" = xyes
20170 then :
20171 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
20172
20173 else $as_nop
20174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
20175 printf %s "checking for flock in -lbsd... " >&6; }
20176 if test ${ac_cv_lib_bsd_flock+y}
20177 then :
20178 printf %s "(cached) " >&6
20179 else $as_nop
20180 ac_check_lib_save_LIBS=$LIBS
20181 LIBS="-lbsd $LIBS"
20182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20183 /* end confdefs.h. */
20184
20185 /* Override any GCC internal prototype to avoid an error.
20186 Use char because int might match the return type of a GCC
20187 builtin and then its argument prototype would still apply. */
20188 char flock ();
20189 int
20190 main (void)
20191 {
20192 return flock ();
20193 ;
20194 return 0;
20195 }
20196 _ACEOF
20197 if ac_fn_c_try_link "$LINENO"
20198 then :
20199 ac_cv_lib_bsd_flock=yes
20200 else $as_nop
20201 ac_cv_lib_bsd_flock=no
20202 fi
20203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20204 conftest$ac_exeext conftest.$ac_ext
20205 LIBS=$ac_check_lib_save_LIBS
20206 fi
20207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
20208 printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; }
20209 if test "x$ac_cv_lib_bsd_flock" = xyes
20210 then :
20211 FCNTL_LIBS="-lbsd"
20212 fi
20213
20214 fi
20215
20216 done
20217 fi
20218
20219
20220
20221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
20222 printf %s "checking for getpagesize... " >&6; }
20223 if test ${ac_cv_func_getpagesize+y}
20224 then :
20225 printf %s "(cached) " >&6
20226 else $as_nop
20227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20228 /* end confdefs.h. */
20229 #include <unistd.h>
20230 int
20231 main (void)
20232 {
20233 void *x=getpagesize
20234 ;
20235 return 0;
20236 }
20237 _ACEOF
20238 if ac_fn_c_try_compile "$LINENO"
20239 then :
20240 ac_cv_func_getpagesize=yes
20241 else $as_nop
20242 ac_cv_func_getpagesize=no
20243 fi
20244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20245
20246 fi
20247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpagesize" >&5
20248 printf "%s\n" "$ac_cv_func_getpagesize" >&6; }
20249 if test "x$ac_cv_func_getpagesize" = xyes
20250 then :
20251
20252 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
20253
20254 fi
20255
20256
20257
20258
20259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
20260 printf %s "checking for broken unsetenv... " >&6; }
20261 if test ${ac_cv_broken_unsetenv+y}
20262 then :
20263 printf %s "(cached) " >&6
20264 else $as_nop
20265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h. */
20267 #include <stdlib.h>
20268 int
20269 main (void)
20270 {
20271 int res = unsetenv("DUMMY")
20272 ;
20273 return 0;
20274 }
20275 _ACEOF
20276 if ac_fn_c_try_compile "$LINENO"
20277 then :
20278 ac_cv_broken_unsetenv=no
20279 else $as_nop
20280 ac_cv_broken_unsetenv=yes
20281
20282 fi
20283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20284
20285 fi
20286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_unsetenv" >&5
20287 printf "%s\n" "$ac_cv_broken_unsetenv" >&6; }
20288 if test "x$ac_cv_broken_unsetenv" = xyes
20289 then :
20290
20291
20292 printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
20293
20294
20295 fi
20296
20297 for ac_prog in true
20298 do
20299 # Extract the first word of "$ac_prog", so it can be a program name with args.
20300 set dummy $ac_prog; ac_word=$2
20301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20302 printf %s "checking for $ac_word... " >&6; }
20303 if test ${ac_cv_prog_TRUE+y}
20304 then :
20305 printf %s "(cached) " >&6
20306 else $as_nop
20307 if test -n "$TRUE"; then
20308 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
20309 else
20310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20311 for as_dir in $PATH
20312 do
20313 IFS=$as_save_IFS
20314 case $as_dir in #(((
20315 '') as_dir=./ ;;
20316 */) ;;
20317 *) as_dir=$as_dir/ ;;
20318 esac
20319 for ac_exec_ext in '' $ac_executable_extensions; do
20320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20321 ac_cv_prog_TRUE="$ac_prog"
20322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20323 break 2
20324 fi
20325 done
20326 done
20327 IFS=$as_save_IFS
20328
20329 fi
20330 fi
20331 TRUE=$ac_cv_prog_TRUE
20332 if test -n "$TRUE"; then
20333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
20334 printf "%s\n" "$TRUE" >&6; }
20335 else
20336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20337 printf "%s\n" "no" >&6; }
20338 fi
20339
20340
20341 test -n "$TRUE" && break
20342 done
20343 test -n "$TRUE" || TRUE="/bin/true"
20344
20345
20346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
20347 printf %s "checking for inet_aton in -lc... " >&6; }
20348 if test ${ac_cv_lib_c_inet_aton+y}
20349 then :
20350 printf %s "(cached) " >&6
20351 else $as_nop
20352 ac_check_lib_save_LIBS=$LIBS
20353 LIBS="-lc $LIBS"
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20356
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20360 char inet_aton ();
20361 int
20362 main (void)
20363 {
20364 return inet_aton ();
20365 ;
20366 return 0;
20367 }
20368 _ACEOF
20369 if ac_fn_c_try_link "$LINENO"
20370 then :
20371 ac_cv_lib_c_inet_aton=yes
20372 else $as_nop
20373 ac_cv_lib_c_inet_aton=no
20374 fi
20375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20376 conftest$ac_exeext conftest.$ac_ext
20377 LIBS=$ac_check_lib_save_LIBS
20378 fi
20379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
20380 printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; }
20381 if test "x$ac_cv_lib_c_inet_aton" = xyes
20382 then :
20383 $ac_cv_prog_TRUE
20384 else $as_nop
20385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20386 printf %s "checking for inet_aton in -lresolv... " >&6; }
20387 if test ${ac_cv_lib_resolv_inet_aton+y}
20388 then :
20389 printf %s "(cached) " >&6
20390 else $as_nop
20391 ac_check_lib_save_LIBS=$LIBS
20392 LIBS="-lresolv $LIBS"
20393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20394 /* end confdefs.h. */
20395
20396 /* Override any GCC internal prototype to avoid an error.
20397 Use char because int might match the return type of a GCC
20398 builtin and then its argument prototype would still apply. */
20399 char inet_aton ();
20400 int
20401 main (void)
20402 {
20403 return inet_aton ();
20404 ;
20405 return 0;
20406 }
20407 _ACEOF
20408 if ac_fn_c_try_link "$LINENO"
20409 then :
20410 ac_cv_lib_resolv_inet_aton=yes
20411 else $as_nop
20412 ac_cv_lib_resolv_inet_aton=no
20413 fi
20414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20415 conftest$ac_exeext conftest.$ac_ext
20416 LIBS=$ac_check_lib_save_LIBS
20417 fi
20418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20419 printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; }
20420 if test "x$ac_cv_lib_resolv_inet_aton" = xyes
20421 then :
20422 printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
20423
20424 LIBS="-lresolv $LIBS"
20425
20426 fi
20427
20428
20429 fi
20430
20431
20432 # On Tru64, chflags seems to be present, but calling it will
20433 # exit Python
20434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
20435 printf %s "checking for chflags... " >&6; }
20436 if test ${ac_cv_have_chflags+y}
20437 then :
20438 printf %s "(cached) " >&6
20439 else $as_nop
20440 if test "$cross_compiling" = yes
20441 then :
20442 ac_cv_have_chflags=cross
20443 else $as_nop
20444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20445 /* end confdefs.h. */
20446
20447 #include <sys/stat.h>
20448 #include <unistd.h>
20449 int main(int argc, char *argv[])
20450 {
20451 if(chflags(argv[0], 0) != 0)
20452 return 1;
20453 return 0;
20454 }
20455
20456 _ACEOF
20457 if ac_fn_c_try_run "$LINENO"
20458 then :
20459 ac_cv_have_chflags=yes
20460 else $as_nop
20461 ac_cv_have_chflags=no
20462 fi
20463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20464 conftest.$ac_objext conftest.beam conftest.$ac_ext
20465 fi
20466
20467
20468 fi
20469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
20470 printf "%s\n" "$ac_cv_have_chflags" >&6; }
20471 if test "$ac_cv_have_chflags" = cross ; then
20472 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
20473 if test "x$ac_cv_func_chflags" = xyes
20474 then :
20475 ac_cv_have_chflags="yes"
20476 else $as_nop
20477 ac_cv_have_chflags="no"
20478 fi
20479
20480 fi
20481 if test "$ac_cv_have_chflags" = yes ; then
20482
20483 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
20484
20485 fi
20486
20487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
20488 printf %s "checking for lchflags... " >&6; }
20489 if test ${ac_cv_have_lchflags+y}
20490 then :
20491 printf %s "(cached) " >&6
20492 else $as_nop
20493 if test "$cross_compiling" = yes
20494 then :
20495 ac_cv_have_lchflags=cross
20496 else $as_nop
20497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20499
20500 #include <sys/stat.h>
20501 #include <unistd.h>
20502 int main(int argc, char *argv[])
20503 {
20504 if(lchflags(argv[0], 0) != 0)
20505 return 1;
20506 return 0;
20507 }
20508
20509 _ACEOF
20510 if ac_fn_c_try_run "$LINENO"
20511 then :
20512 ac_cv_have_lchflags=yes
20513 else $as_nop
20514 ac_cv_have_lchflags=no
20515 fi
20516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20517 conftest.$ac_objext conftest.beam conftest.$ac_ext
20518 fi
20519
20520
20521 fi
20522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
20523 printf "%s\n" "$ac_cv_have_lchflags" >&6; }
20524 if test "$ac_cv_have_lchflags" = cross ; then
20525 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
20526 if test "x$ac_cv_func_lchflags" = xyes
20527 then :
20528 ac_cv_have_lchflags="yes"
20529 else $as_nop
20530 ac_cv_have_lchflags="no"
20531 fi
20532
20533 fi
20534 if test "$ac_cv_have_lchflags" = yes ; then
20535
20536 printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
20537
20538 fi
20539
20540
20541
20542
20543
20544
20545 if test "$ac_sys_system" = "Emscripten" -a -z "$ZLIB_CFLAGS" -a -z "$ZLIB_LIBS"
20546 then :
20547
20548 ZLIB_CFLAGS="-sUSE_ZLIB"
20549 ZLIB_LIBS="-sUSE_ZLIB"
20550
20551 fi
20552
20553
20554
20555
20556
20557 pkg_failed=no
20558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0" >&5
20559 printf %s "checking for zlib >= 1.2.0... " >&6; }
20560
20561 if test -n "$ZLIB_CFLAGS"; then
20562 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20563 elif test -n "$PKG_CONFIG"; then
20564 if test -n "$PKG_CONFIG" && \
20565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
20566 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
20567 ac_status=$?
20568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20569 test $ac_status = 0; }; then
20570 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0" 2>/dev/null`
20571 test "x$?" != "x0" && pkg_failed=yes
20572 else
20573 pkg_failed=yes
20574 fi
20575 else
20576 pkg_failed=untried
20577 fi
20578 if test -n "$ZLIB_LIBS"; then
20579 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20580 elif test -n "$PKG_CONFIG"; then
20581 if test -n "$PKG_CONFIG" && \
20582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
20583 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
20584 ac_status=$?
20585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20586 test $ac_status = 0; }; then
20587 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0" 2>/dev/null`
20588 test "x$?" != "x0" && pkg_failed=yes
20589 else
20590 pkg_failed=yes
20591 fi
20592 else
20593 pkg_failed=untried
20594 fi
20595
20596
20597
20598 if test $pkg_failed = yes; then
20599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20600 printf "%s\n" "no" >&6; }
20601
20602 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20603 _pkg_short_errors_supported=yes
20604 else
20605 _pkg_short_errors_supported=no
20606 fi
20607 if test $_pkg_short_errors_supported = yes; then
20608 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
20609 else
20610 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
20611 fi
20612 # Put the nasty error message in config.log where it belongs
20613 echo "$ZLIB_PKG_ERRORS" >&5
20614
20615
20616 save_CFLAGS=$CFLAGS
20617 save_CPPFLAGS=$CPPFLAGS
20618 save_LDFLAGS=$LDFLAGS
20619 save_LIBS=$LIBS
20620
20621
20622 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
20623 LIBS="$LIBS $ZLIB_LIBS"
20624 for ac_header in zlib.h
20625 do :
20626 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20627 if test "x$ac_cv_header_zlib_h" = xyes
20628 then :
20629 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20630
20631 py_check_lib_save_LIBS=$LIBS
20632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20633 printf %s "checking for gzread in -lz... " >&6; }
20634 if test ${ac_cv_lib_z_gzread+y}
20635 then :
20636 printf %s "(cached) " >&6
20637 else $as_nop
20638 ac_check_lib_save_LIBS=$LIBS
20639 LIBS="-lz $LIBS"
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h. */
20642
20643 /* Override any GCC internal prototype to avoid an error.
20644 Use char because int might match the return type of a GCC
20645 builtin and then its argument prototype would still apply. */
20646 char gzread ();
20647 int
20648 main (void)
20649 {
20650 return gzread ();
20651 ;
20652 return 0;
20653 }
20654 _ACEOF
20655 if ac_fn_c_try_link "$LINENO"
20656 then :
20657 ac_cv_lib_z_gzread=yes
20658 else $as_nop
20659 ac_cv_lib_z_gzread=no
20660 fi
20661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20662 conftest$ac_exeext conftest.$ac_ext
20663 LIBS=$ac_check_lib_save_LIBS
20664 fi
20665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20666 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
20667 if test "x$ac_cv_lib_z_gzread" = xyes
20668 then :
20669 have_zlib=yes
20670 else $as_nop
20671 have_zlib=no
20672 fi
20673
20674 LIBS=$py_check_lib_save_LIBS
20675
20676
20677 else $as_nop
20678 have_zlib=no
20679 fi
20680
20681 done
20682 if test "x$have_zlib" = xyes
20683 then :
20684
20685 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
20686 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
20687 py_check_lib_save_LIBS=$LIBS
20688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
20689 printf %s "checking for inflateCopy in -lz... " >&6; }
20690 if test ${ac_cv_lib_z_inflateCopy+y}
20691 then :
20692 printf %s "(cached) " >&6
20693 else $as_nop
20694 ac_check_lib_save_LIBS=$LIBS
20695 LIBS="-lz $LIBS"
20696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697 /* end confdefs.h. */
20698
20699 /* Override any GCC internal prototype to avoid an error.
20700 Use char because int might match the return type of a GCC
20701 builtin and then its argument prototype would still apply. */
20702 char inflateCopy ();
20703 int
20704 main (void)
20705 {
20706 return inflateCopy ();
20707 ;
20708 return 0;
20709 }
20710 _ACEOF
20711 if ac_fn_c_try_link "$LINENO"
20712 then :
20713 ac_cv_lib_z_inflateCopy=yes
20714 else $as_nop
20715 ac_cv_lib_z_inflateCopy=no
20716 fi
20717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20718 conftest$ac_exeext conftest.$ac_ext
20719 LIBS=$ac_check_lib_save_LIBS
20720 fi
20721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
20722 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
20723 if test "x$ac_cv_lib_z_inflateCopy" = xyes
20724 then :
20725 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20726
20727 fi
20728
20729 LIBS=$py_check_lib_save_LIBS
20730
20731
20732 fi
20733
20734 CFLAGS=$save_CFLAGS
20735 CPPFLAGS=$save_CPPFLAGS
20736 LDFLAGS=$save_LDFLAGS
20737 LIBS=$save_LIBS
20738
20739
20740
20741 elif test $pkg_failed = untried; then
20742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20743 printf "%s\n" "no" >&6; }
20744
20745 save_CFLAGS=$CFLAGS
20746 save_CPPFLAGS=$CPPFLAGS
20747 save_LDFLAGS=$LDFLAGS
20748 save_LIBS=$LIBS
20749
20750
20751 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
20752 LIBS="$LIBS $ZLIB_LIBS"
20753 for ac_header in zlib.h
20754 do :
20755 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20756 if test "x$ac_cv_header_zlib_h" = xyes
20757 then :
20758 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20759
20760 py_check_lib_save_LIBS=$LIBS
20761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20762 printf %s "checking for gzread in -lz... " >&6; }
20763 if test ${ac_cv_lib_z_gzread+y}
20764 then :
20765 printf %s "(cached) " >&6
20766 else $as_nop
20767 ac_check_lib_save_LIBS=$LIBS
20768 LIBS="-lz $LIBS"
20769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20770 /* end confdefs.h. */
20771
20772 /* Override any GCC internal prototype to avoid an error.
20773 Use char because int might match the return type of a GCC
20774 builtin and then its argument prototype would still apply. */
20775 char gzread ();
20776 int
20777 main (void)
20778 {
20779 return gzread ();
20780 ;
20781 return 0;
20782 }
20783 _ACEOF
20784 if ac_fn_c_try_link "$LINENO"
20785 then :
20786 ac_cv_lib_z_gzread=yes
20787 else $as_nop
20788 ac_cv_lib_z_gzread=no
20789 fi
20790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20791 conftest$ac_exeext conftest.$ac_ext
20792 LIBS=$ac_check_lib_save_LIBS
20793 fi
20794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20795 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
20796 if test "x$ac_cv_lib_z_gzread" = xyes
20797 then :
20798 have_zlib=yes
20799 else $as_nop
20800 have_zlib=no
20801 fi
20802
20803 LIBS=$py_check_lib_save_LIBS
20804
20805
20806 else $as_nop
20807 have_zlib=no
20808 fi
20809
20810 done
20811 if test "x$have_zlib" = xyes
20812 then :
20813
20814 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
20815 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
20816 py_check_lib_save_LIBS=$LIBS
20817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
20818 printf %s "checking for inflateCopy in -lz... " >&6; }
20819 if test ${ac_cv_lib_z_inflateCopy+y}
20820 then :
20821 printf %s "(cached) " >&6
20822 else $as_nop
20823 ac_check_lib_save_LIBS=$LIBS
20824 LIBS="-lz $LIBS"
20825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h. */
20827
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20831 char inflateCopy ();
20832 int
20833 main (void)
20834 {
20835 return inflateCopy ();
20836 ;
20837 return 0;
20838 }
20839 _ACEOF
20840 if ac_fn_c_try_link "$LINENO"
20841 then :
20842 ac_cv_lib_z_inflateCopy=yes
20843 else $as_nop
20844 ac_cv_lib_z_inflateCopy=no
20845 fi
20846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20847 conftest$ac_exeext conftest.$ac_ext
20848 LIBS=$ac_check_lib_save_LIBS
20849 fi
20850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
20851 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
20852 if test "x$ac_cv_lib_z_inflateCopy" = xyes
20853 then :
20854 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20855
20856 fi
20857
20858 LIBS=$py_check_lib_save_LIBS
20859
20860
20861 fi
20862
20863 CFLAGS=$save_CFLAGS
20864 CPPFLAGS=$save_CPPFLAGS
20865 LDFLAGS=$save_LDFLAGS
20866 LIBS=$save_LIBS
20867
20868
20869
20870 else
20871 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20872 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20874 printf "%s\n" "yes" >&6; }
20875
20876 have_zlib=yes
20877 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20878
20879
20880 fi
20881
20882 if test "x$have_zlib" = xyes
20883 then :
20884
20885 BINASCII_CFLAGS="-DUSE_ZLIB_CRC32 $ZLIB_CFLAGS"
20886 BINASCII_LIBS="$ZLIB_LIBS"
20887
20888 fi
20889
20890
20891
20892
20893 if test "$ac_sys_system" = "Emscripten" -a -z "$BZIP2_CFLAGS" -a -z "$BZIP2_LIBS"
20894 then :
20895
20896 BZIP2_CFLAGS="-sUSE_BZIP2"
20897 BZIP2_LIBS="-sUSE_BZIP2"
20898
20899 fi
20900
20901
20902
20903
20904
20905 pkg_failed=no
20906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5
20907 printf %s "checking for bzip2... " >&6; }
20908
20909 if test -n "$BZIP2_CFLAGS"; then
20910 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
20911 elif test -n "$PKG_CONFIG"; then
20912 if test -n "$PKG_CONFIG" && \
20913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
20914 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
20915 ac_status=$?
20916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20917 test $ac_status = 0; }; then
20918 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null`
20919 test "x$?" != "x0" && pkg_failed=yes
20920 else
20921 pkg_failed=yes
20922 fi
20923 else
20924 pkg_failed=untried
20925 fi
20926 if test -n "$BZIP2_LIBS"; then
20927 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
20928 elif test -n "$PKG_CONFIG"; then
20929 if test -n "$PKG_CONFIG" && \
20930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
20931 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
20932 ac_status=$?
20933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20934 test $ac_status = 0; }; then
20935 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "bzip2" 2>/dev/null`
20936 test "x$?" != "x0" && pkg_failed=yes
20937 else
20938 pkg_failed=yes
20939 fi
20940 else
20941 pkg_failed=untried
20942 fi
20943
20944
20945
20946 if test $pkg_failed = yes; then
20947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20948 printf "%s\n" "no" >&6; }
20949
20950 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20951 _pkg_short_errors_supported=yes
20952 else
20953 _pkg_short_errors_supported=no
20954 fi
20955 if test $_pkg_short_errors_supported = yes; then
20956 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1`
20957 else
20958 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1`
20959 fi
20960 # Put the nasty error message in config.log where it belongs
20961 echo "$BZIP2_PKG_ERRORS" >&5
20962
20963
20964 save_CFLAGS=$CFLAGS
20965 save_CPPFLAGS=$CPPFLAGS
20966 save_LDFLAGS=$LDFLAGS
20967 save_LIBS=$LIBS
20968
20969
20970 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
20971 LIBS="$LIBS $BZIP2_LIBS"
20972 for ac_header in bzlib.h
20973 do :
20974 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
20975 if test "x$ac_cv_header_bzlib_h" = xyes
20976 then :
20977 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
20978
20979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
20980 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
20981 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
20982 then :
20983 printf %s "(cached) " >&6
20984 else $as_nop
20985 ac_check_lib_save_LIBS=$LIBS
20986 LIBS="-lbz2 $LIBS"
20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20988 /* end confdefs.h. */
20989
20990 /* Override any GCC internal prototype to avoid an error.
20991 Use char because int might match the return type of a GCC
20992 builtin and then its argument prototype would still apply. */
20993 char BZ2_bzCompress ();
20994 int
20995 main (void)
20996 {
20997 return BZ2_bzCompress ();
20998 ;
20999 return 0;
21000 }
21001 _ACEOF
21002 if ac_fn_c_try_link "$LINENO"
21003 then :
21004 ac_cv_lib_bz2_BZ2_bzCompress=yes
21005 else $as_nop
21006 ac_cv_lib_bz2_BZ2_bzCompress=no
21007 fi
21008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21009 conftest$ac_exeext conftest.$ac_ext
21010 LIBS=$ac_check_lib_save_LIBS
21011 fi
21012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
21013 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
21014 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
21015 then :
21016 have_bzip2=yes
21017 else $as_nop
21018 have_bzip2=no
21019 fi
21020
21021
21022 else $as_nop
21023 have_bzip2=no
21024 fi
21025
21026 done
21027 if test "x$have_bzip2" = xyes
21028 then :
21029
21030 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
21031 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
21032
21033 fi
21034
21035 CFLAGS=$save_CFLAGS
21036 CPPFLAGS=$save_CPPFLAGS
21037 LDFLAGS=$save_LDFLAGS
21038 LIBS=$save_LIBS
21039
21040
21041
21042 elif test $pkg_failed = untried; then
21043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21044 printf "%s\n" "no" >&6; }
21045
21046 save_CFLAGS=$CFLAGS
21047 save_CPPFLAGS=$CPPFLAGS
21048 save_LDFLAGS=$LDFLAGS
21049 save_LIBS=$LIBS
21050
21051
21052 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
21053 LIBS="$LIBS $BZIP2_LIBS"
21054 for ac_header in bzlib.h
21055 do :
21056 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
21057 if test "x$ac_cv_header_bzlib_h" = xyes
21058 then :
21059 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
21060
21061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
21062 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
21063 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
21064 then :
21065 printf %s "(cached) " >&6
21066 else $as_nop
21067 ac_check_lib_save_LIBS=$LIBS
21068 LIBS="-lbz2 $LIBS"
21069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21070 /* end confdefs.h. */
21071
21072 /* Override any GCC internal prototype to avoid an error.
21073 Use char because int might match the return type of a GCC
21074 builtin and then its argument prototype would still apply. */
21075 char BZ2_bzCompress ();
21076 int
21077 main (void)
21078 {
21079 return BZ2_bzCompress ();
21080 ;
21081 return 0;
21082 }
21083 _ACEOF
21084 if ac_fn_c_try_link "$LINENO"
21085 then :
21086 ac_cv_lib_bz2_BZ2_bzCompress=yes
21087 else $as_nop
21088 ac_cv_lib_bz2_BZ2_bzCompress=no
21089 fi
21090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21091 conftest$ac_exeext conftest.$ac_ext
21092 LIBS=$ac_check_lib_save_LIBS
21093 fi
21094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
21095 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
21096 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
21097 then :
21098 have_bzip2=yes
21099 else $as_nop
21100 have_bzip2=no
21101 fi
21102
21103
21104 else $as_nop
21105 have_bzip2=no
21106 fi
21107
21108 done
21109 if test "x$have_bzip2" = xyes
21110 then :
21111
21112 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
21113 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
21114
21115 fi
21116
21117 CFLAGS=$save_CFLAGS
21118 CPPFLAGS=$save_CPPFLAGS
21119 LDFLAGS=$save_LDFLAGS
21120 LIBS=$save_LIBS
21121
21122
21123
21124 else
21125 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
21126 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
21127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21128 printf "%s\n" "yes" >&6; }
21129 have_bzip2=yes
21130 fi
21131
21132
21133 pkg_failed=no
21134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
21135 printf %s "checking for liblzma... " >&6; }
21136
21137 if test -n "$LIBLZMA_CFLAGS"; then
21138 pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS"
21139 elif test -n "$PKG_CONFIG"; then
21140 if test -n "$PKG_CONFIG" && \
21141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
21142 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
21143 ac_status=$?
21144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21145 test $ac_status = 0; }; then
21146 pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
21147 test "x$?" != "x0" && pkg_failed=yes
21148 else
21149 pkg_failed=yes
21150 fi
21151 else
21152 pkg_failed=untried
21153 fi
21154 if test -n "$LIBLZMA_LIBS"; then
21155 pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS"
21156 elif test -n "$PKG_CONFIG"; then
21157 if test -n "$PKG_CONFIG" && \
21158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
21159 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
21160 ac_status=$?
21161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21162 test $ac_status = 0; }; then
21163 pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
21164 test "x$?" != "x0" && pkg_failed=yes
21165 else
21166 pkg_failed=yes
21167 fi
21168 else
21169 pkg_failed=untried
21170 fi
21171
21172
21173
21174 if test $pkg_failed = yes; then
21175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21176 printf "%s\n" "no" >&6; }
21177
21178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21179 _pkg_short_errors_supported=yes
21180 else
21181 _pkg_short_errors_supported=no
21182 fi
21183 if test $_pkg_short_errors_supported = yes; then
21184 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
21185 else
21186 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
21187 fi
21188 # Put the nasty error message in config.log where it belongs
21189 echo "$LIBLZMA_PKG_ERRORS" >&5
21190
21191
21192 save_CFLAGS=$CFLAGS
21193 save_CPPFLAGS=$CPPFLAGS
21194 save_LDFLAGS=$LDFLAGS
21195 save_LIBS=$LIBS
21196
21197
21198 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
21199 LIBS="$LIBS $LIBLZMA_LIBS"
21200 for ac_header in lzma.h
21201 do :
21202 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
21203 if test "x$ac_cv_header_lzma_h" = xyes
21204 then :
21205 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
21206
21207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
21208 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
21209 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
21210 then :
21211 printf %s "(cached) " >&6
21212 else $as_nop
21213 ac_check_lib_save_LIBS=$LIBS
21214 LIBS="-llzma $LIBS"
21215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21217
21218 /* Override any GCC internal prototype to avoid an error.
21219 Use char because int might match the return type of a GCC
21220 builtin and then its argument prototype would still apply. */
21221 char lzma_easy_encoder ();
21222 int
21223 main (void)
21224 {
21225 return lzma_easy_encoder ();
21226 ;
21227 return 0;
21228 }
21229 _ACEOF
21230 if ac_fn_c_try_link "$LINENO"
21231 then :
21232 ac_cv_lib_lzma_lzma_easy_encoder=yes
21233 else $as_nop
21234 ac_cv_lib_lzma_lzma_easy_encoder=no
21235 fi
21236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21237 conftest$ac_exeext conftest.$ac_ext
21238 LIBS=$ac_check_lib_save_LIBS
21239 fi
21240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
21241 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
21242 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
21243 then :
21244 have_liblzma=yes
21245 else $as_nop
21246 have_liblzma=no
21247 fi
21248
21249
21250 else $as_nop
21251 have_liblzma=no
21252 fi
21253
21254 done
21255 if test "x$have_liblzma" = xyes
21256 then :
21257
21258 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
21259 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
21260
21261 fi
21262
21263 CFLAGS=$save_CFLAGS
21264 CPPFLAGS=$save_CPPFLAGS
21265 LDFLAGS=$save_LDFLAGS
21266 LIBS=$save_LIBS
21267
21268
21269
21270 elif test $pkg_failed = untried; then
21271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21272 printf "%s\n" "no" >&6; }
21273
21274 save_CFLAGS=$CFLAGS
21275 save_CPPFLAGS=$CPPFLAGS
21276 save_LDFLAGS=$LDFLAGS
21277 save_LIBS=$LIBS
21278
21279
21280 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
21281 LIBS="$LIBS $LIBLZMA_LIBS"
21282 for ac_header in lzma.h
21283 do :
21284 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
21285 if test "x$ac_cv_header_lzma_h" = xyes
21286 then :
21287 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
21288
21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
21290 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
21291 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
21292 then :
21293 printf %s "(cached) " >&6
21294 else $as_nop
21295 ac_check_lib_save_LIBS=$LIBS
21296 LIBS="-llzma $LIBS"
21297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21298 /* end confdefs.h. */
21299
21300 /* Override any GCC internal prototype to avoid an error.
21301 Use char because int might match the return type of a GCC
21302 builtin and then its argument prototype would still apply. */
21303 char lzma_easy_encoder ();
21304 int
21305 main (void)
21306 {
21307 return lzma_easy_encoder ();
21308 ;
21309 return 0;
21310 }
21311 _ACEOF
21312 if ac_fn_c_try_link "$LINENO"
21313 then :
21314 ac_cv_lib_lzma_lzma_easy_encoder=yes
21315 else $as_nop
21316 ac_cv_lib_lzma_lzma_easy_encoder=no
21317 fi
21318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21319 conftest$ac_exeext conftest.$ac_ext
21320 LIBS=$ac_check_lib_save_LIBS
21321 fi
21322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
21323 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
21324 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
21325 then :
21326 have_liblzma=yes
21327 else $as_nop
21328 have_liblzma=no
21329 fi
21330
21331
21332 else $as_nop
21333 have_liblzma=no
21334 fi
21335
21336 done
21337 if test "x$have_liblzma" = xyes
21338 then :
21339
21340 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
21341 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
21342
21343 fi
21344
21345 CFLAGS=$save_CFLAGS
21346 CPPFLAGS=$save_CPPFLAGS
21347 LDFLAGS=$save_LDFLAGS
21348 LIBS=$save_LIBS
21349
21350
21351
21352 else
21353 LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS
21354 LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS
21355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21356 printf "%s\n" "yes" >&6; }
21357 have_liblzma=yes
21358 fi
21359
21360
21361
21362
21363
21364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
21365 printf %s "checking for hstrerror... " >&6; }
21366 if test ${ac_cv_func_hstrerror+y}
21367 then :
21368 printf %s "(cached) " >&6
21369 else $as_nop
21370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21371 /* end confdefs.h. */
21372 #include <netdb.h>
21373 int
21374 main (void)
21375 {
21376 void *x=hstrerror
21377 ;
21378 return 0;
21379 }
21380 _ACEOF
21381 if ac_fn_c_try_compile "$LINENO"
21382 then :
21383 ac_cv_func_hstrerror=yes
21384 else $as_nop
21385 ac_cv_func_hstrerror=no
21386 fi
21387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21388
21389 fi
21390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror" >&5
21391 printf "%s\n" "$ac_cv_func_hstrerror" >&6; }
21392 if test "x$ac_cv_func_hstrerror" = xyes
21393 then :
21394
21395 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
21396
21397 fi
21398
21399
21400
21401
21402
21403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname" >&5
21404 printf %s "checking for getservbyname... " >&6; }
21405 if test ${ac_cv_func_getservbyname+y}
21406 then :
21407 printf %s "(cached) " >&6
21408 else $as_nop
21409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410 /* end confdefs.h. */
21411 #include <netdb.h>
21412 int
21413 main (void)
21414 {
21415 void *x=getservbyname
21416 ;
21417 return 0;
21418 }
21419 _ACEOF
21420 if ac_fn_c_try_compile "$LINENO"
21421 then :
21422 ac_cv_func_getservbyname=yes
21423 else $as_nop
21424 ac_cv_func_getservbyname=no
21425 fi
21426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21427
21428 fi
21429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname" >&5
21430 printf "%s\n" "$ac_cv_func_getservbyname" >&6; }
21431 if test "x$ac_cv_func_getservbyname" = xyes
21432 then :
21433
21434 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
21435
21436 fi
21437
21438
21439
21440
21441
21442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyport" >&5
21443 printf %s "checking for getservbyport... " >&6; }
21444 if test ${ac_cv_func_getservbyport+y}
21445 then :
21446 printf %s "(cached) " >&6
21447 else $as_nop
21448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21449 /* end confdefs.h. */
21450 #include <netdb.h>
21451 int
21452 main (void)
21453 {
21454 void *x=getservbyport
21455 ;
21456 return 0;
21457 }
21458 _ACEOF
21459 if ac_fn_c_try_compile "$LINENO"
21460 then :
21461 ac_cv_func_getservbyport=yes
21462 else $as_nop
21463 ac_cv_func_getservbyport=no
21464 fi
21465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21466
21467 fi
21468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyport" >&5
21469 printf "%s\n" "$ac_cv_func_getservbyport" >&6; }
21470 if test "x$ac_cv_func_getservbyport" = xyes
21471 then :
21472
21473 printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h
21474
21475 fi
21476
21477
21478
21479
21480
21481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
21482 printf %s "checking for gethostbyname... " >&6; }
21483 if test ${ac_cv_func_gethostbyname+y}
21484 then :
21485 printf %s "(cached) " >&6
21486 else $as_nop
21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h. */
21489 #include <netdb.h>
21490 int
21491 main (void)
21492 {
21493 void *x=gethostbyname
21494 ;
21495 return 0;
21496 }
21497 _ACEOF
21498 if ac_fn_c_try_compile "$LINENO"
21499 then :
21500 ac_cv_func_gethostbyname=yes
21501 else $as_nop
21502 ac_cv_func_gethostbyname=no
21503 fi
21504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21505
21506 fi
21507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname" >&5
21508 printf "%s\n" "$ac_cv_func_gethostbyname" >&6; }
21509 if test "x$ac_cv_func_gethostbyname" = xyes
21510 then :
21511
21512 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
21513
21514 fi
21515
21516
21517
21518
21519
21520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5
21521 printf %s "checking for gethostbyaddr... " >&6; }
21522 if test ${ac_cv_func_gethostbyaddr+y}
21523 then :
21524 printf %s "(cached) " >&6
21525 else $as_nop
21526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21527 /* end confdefs.h. */
21528 #include <netdb.h>
21529 int
21530 main (void)
21531 {
21532 void *x=gethostbyaddr
21533 ;
21534 return 0;
21535 }
21536 _ACEOF
21537 if ac_fn_c_try_compile "$LINENO"
21538 then :
21539 ac_cv_func_gethostbyaddr=yes
21540 else $as_nop
21541 ac_cv_func_gethostbyaddr=no
21542 fi
21543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21544
21545 fi
21546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr" >&5
21547 printf "%s\n" "$ac_cv_func_gethostbyaddr" >&6; }
21548 if test "x$ac_cv_func_gethostbyaddr" = xyes
21549 then :
21550
21551 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
21552
21553 fi
21554
21555
21556
21557
21558
21559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprotobyname" >&5
21560 printf %s "checking for getprotobyname... " >&6; }
21561 if test ${ac_cv_func_getprotobyname+y}
21562 then :
21563 printf %s "(cached) " >&6
21564 else $as_nop
21565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21566 /* end confdefs.h. */
21567 #include <netdb.h>
21568 int
21569 main (void)
21570 {
21571 void *x=getprotobyname
21572 ;
21573 return 0;
21574 }
21575 _ACEOF
21576 if ac_fn_c_try_compile "$LINENO"
21577 then :
21578 ac_cv_func_getprotobyname=yes
21579 else $as_nop
21580 ac_cv_func_getprotobyname=no
21581 fi
21582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21583
21584 fi
21585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobyname" >&5
21586 printf "%s\n" "$ac_cv_func_getprotobyname" >&6; }
21587 if test "x$ac_cv_func_getprotobyname" = xyes
21588 then :
21589
21590 printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h
21591
21592 fi
21593
21594
21595
21596
21597
21598
21599
21600
21601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
21602 printf %s "checking for inet_aton... " >&6; }
21603 if test ${ac_cv_func_inet_aton+y}
21604 then :
21605 printf %s "(cached) " >&6
21606 else $as_nop
21607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21608 /* end confdefs.h. */
21609
21610 #include <sys/types.h>
21611 #include <sys/socket.h>
21612 #include <netinet/in.h>
21613 #include <arpa/inet.h>
21614
21615 int
21616 main (void)
21617 {
21618 void *x=inet_aton
21619 ;
21620 return 0;
21621 }
21622 _ACEOF
21623 if ac_fn_c_try_compile "$LINENO"
21624 then :
21625 ac_cv_func_inet_aton=yes
21626 else $as_nop
21627 ac_cv_func_inet_aton=no
21628 fi
21629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21630
21631 fi
21632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton" >&5
21633 printf "%s\n" "$ac_cv_func_inet_aton" >&6; }
21634 if test "x$ac_cv_func_inet_aton" = xyes
21635 then :
21636
21637 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
21638
21639 fi
21640
21641
21642
21643
21644
21645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa" >&5
21646 printf %s "checking for inet_ntoa... " >&6; }
21647 if test ${ac_cv_func_inet_ntoa+y}
21648 then :
21649 printf %s "(cached) " >&6
21650 else $as_nop
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653
21654 #include <sys/types.h>
21655 #include <sys/socket.h>
21656 #include <netinet/in.h>
21657 #include <arpa/inet.h>
21658
21659 int
21660 main (void)
21661 {
21662 void *x=inet_ntoa
21663 ;
21664 return 0;
21665 }
21666 _ACEOF
21667 if ac_fn_c_try_compile "$LINENO"
21668 then :
21669 ac_cv_func_inet_ntoa=yes
21670 else $as_nop
21671 ac_cv_func_inet_ntoa=no
21672 fi
21673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21674
21675 fi
21676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_ntoa" >&5
21677 printf "%s\n" "$ac_cv_func_inet_ntoa" >&6; }
21678 if test "x$ac_cv_func_inet_ntoa" = xyes
21679 then :
21680
21681 printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
21682
21683 fi
21684
21685
21686
21687
21688
21689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
21690 printf %s "checking for inet_pton... " >&6; }
21691 if test ${ac_cv_func_inet_pton+y}
21692 then :
21693 printf %s "(cached) " >&6
21694 else $as_nop
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21697
21698 #include <sys/types.h>
21699 #include <sys/socket.h>
21700 #include <netinet/in.h>
21701 #include <arpa/inet.h>
21702
21703 int
21704 main (void)
21705 {
21706 void *x=inet_pton
21707 ;
21708 return 0;
21709 }
21710 _ACEOF
21711 if ac_fn_c_try_compile "$LINENO"
21712 then :
21713 ac_cv_func_inet_pton=yes
21714 else $as_nop
21715 ac_cv_func_inet_pton=no
21716 fi
21717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21718
21719 fi
21720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_pton" >&5
21721 printf "%s\n" "$ac_cv_func_inet_pton" >&6; }
21722 if test "x$ac_cv_func_inet_pton" = xyes
21723 then :
21724
21725 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
21726
21727 fi
21728
21729
21730
21731
21732
21733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername" >&5
21734 printf %s "checking for getpeername... " >&6; }
21735 if test ${ac_cv_func_getpeername+y}
21736 then :
21737 printf %s "(cached) " >&6
21738 else $as_nop
21739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21740 /* end confdefs.h. */
21741
21742 #include <sys/types.h>
21743 #include <sys/socket.h>
21744 #include <netinet/in.h>
21745 #include <arpa/inet.h>
21746
21747 int
21748 main (void)
21749 {
21750 void *x=getpeername
21751 ;
21752 return 0;
21753 }
21754 _ACEOF
21755 if ac_fn_c_try_compile "$LINENO"
21756 then :
21757 ac_cv_func_getpeername=yes
21758 else $as_nop
21759 ac_cv_func_getpeername=no
21760 fi
21761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21762
21763 fi
21764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpeername" >&5
21765 printf "%s\n" "$ac_cv_func_getpeername" >&6; }
21766 if test "x$ac_cv_func_getpeername" = xyes
21767 then :
21768
21769 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
21770
21771 fi
21772
21773
21774
21775
21776
21777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockname" >&5
21778 printf %s "checking for getsockname... " >&6; }
21779 if test ${ac_cv_func_getsockname+y}
21780 then :
21781 printf %s "(cached) " >&6
21782 else $as_nop
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h. */
21785
21786 #include <sys/types.h>
21787 #include <sys/socket.h>
21788 #include <netinet/in.h>
21789 #include <arpa/inet.h>
21790
21791 int
21792 main (void)
21793 {
21794 void *x=getsockname
21795 ;
21796 return 0;
21797 }
21798 _ACEOF
21799 if ac_fn_c_try_compile "$LINENO"
21800 then :
21801 ac_cv_func_getsockname=yes
21802 else $as_nop
21803 ac_cv_func_getsockname=no
21804 fi
21805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21806
21807 fi
21808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname" >&5
21809 printf "%s\n" "$ac_cv_func_getsockname" >&6; }
21810 if test "x$ac_cv_func_getsockname" = xyes
21811 then :
21812
21813 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
21814
21815 fi
21816
21817
21818
21819
21820
21821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept" >&5
21822 printf %s "checking for accept... " >&6; }
21823 if test ${ac_cv_func_accept+y}
21824 then :
21825 printf %s "(cached) " >&6
21826 else $as_nop
21827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21828 /* end confdefs.h. */
21829
21830 #include <sys/types.h>
21831 #include <sys/socket.h>
21832 #include <netinet/in.h>
21833 #include <arpa/inet.h>
21834
21835 int
21836 main (void)
21837 {
21838 void *x=accept
21839 ;
21840 return 0;
21841 }
21842 _ACEOF
21843 if ac_fn_c_try_compile "$LINENO"
21844 then :
21845 ac_cv_func_accept=yes
21846 else $as_nop
21847 ac_cv_func_accept=no
21848 fi
21849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21850
21851 fi
21852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept" >&5
21853 printf "%s\n" "$ac_cv_func_accept" >&6; }
21854 if test "x$ac_cv_func_accept" = xyes
21855 then :
21856
21857 printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h
21858
21859 fi
21860
21861
21862
21863
21864
21865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind" >&5
21866 printf %s "checking for bind... " >&6; }
21867 if test ${ac_cv_func_bind+y}
21868 then :
21869 printf %s "(cached) " >&6
21870 else $as_nop
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h. */
21873
21874 #include <sys/types.h>
21875 #include <sys/socket.h>
21876 #include <netinet/in.h>
21877 #include <arpa/inet.h>
21878
21879 int
21880 main (void)
21881 {
21882 void *x=bind
21883 ;
21884 return 0;
21885 }
21886 _ACEOF
21887 if ac_fn_c_try_compile "$LINENO"
21888 then :
21889 ac_cv_func_bind=yes
21890 else $as_nop
21891 ac_cv_func_bind=no
21892 fi
21893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21894
21895 fi
21896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_bind" >&5
21897 printf "%s\n" "$ac_cv_func_bind" >&6; }
21898 if test "x$ac_cv_func_bind" = xyes
21899 then :
21900
21901 printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h
21902
21903 fi
21904
21905
21906
21907
21908
21909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect" >&5
21910 printf %s "checking for connect... " >&6; }
21911 if test ${ac_cv_func_connect+y}
21912 then :
21913 printf %s "(cached) " >&6
21914 else $as_nop
21915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21916 /* end confdefs.h. */
21917
21918 #include <sys/types.h>
21919 #include <sys/socket.h>
21920 #include <netinet/in.h>
21921 #include <arpa/inet.h>
21922
21923 int
21924 main (void)
21925 {
21926 void *x=connect
21927 ;
21928 return 0;
21929 }
21930 _ACEOF
21931 if ac_fn_c_try_compile "$LINENO"
21932 then :
21933 ac_cv_func_connect=yes
21934 else $as_nop
21935 ac_cv_func_connect=no
21936 fi
21937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21938
21939 fi
21940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_connect" >&5
21941 printf "%s\n" "$ac_cv_func_connect" >&6; }
21942 if test "x$ac_cv_func_connect" = xyes
21943 then :
21944
21945 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
21946
21947 fi
21948
21949
21950
21951
21952
21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for listen" >&5
21954 printf %s "checking for listen... " >&6; }
21955 if test ${ac_cv_func_listen+y}
21956 then :
21957 printf %s "(cached) " >&6
21958 else $as_nop
21959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21960 /* end confdefs.h. */
21961
21962 #include <sys/types.h>
21963 #include <sys/socket.h>
21964 #include <netinet/in.h>
21965 #include <arpa/inet.h>
21966
21967 int
21968 main (void)
21969 {
21970 void *x=listen
21971 ;
21972 return 0;
21973 }
21974 _ACEOF
21975 if ac_fn_c_try_compile "$LINENO"
21976 then :
21977 ac_cv_func_listen=yes
21978 else $as_nop
21979 ac_cv_func_listen=no
21980 fi
21981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21982
21983 fi
21984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_listen" >&5
21985 printf "%s\n" "$ac_cv_func_listen" >&6; }
21986 if test "x$ac_cv_func_listen" = xyes
21987 then :
21988
21989 printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h
21990
21991 fi
21992
21993
21994
21995
21996
21997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
21998 printf %s "checking for recvfrom... " >&6; }
21999 if test ${ac_cv_func_recvfrom+y}
22000 then :
22001 printf %s "(cached) " >&6
22002 else $as_nop
22003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22004 /* end confdefs.h. */
22005
22006 #include <sys/types.h>
22007 #include <sys/socket.h>
22008 #include <netinet/in.h>
22009 #include <arpa/inet.h>
22010
22011 int
22012 main (void)
22013 {
22014 void *x=recvfrom
22015 ;
22016 return 0;
22017 }
22018 _ACEOF
22019 if ac_fn_c_try_compile "$LINENO"
22020 then :
22021 ac_cv_func_recvfrom=yes
22022 else $as_nop
22023 ac_cv_func_recvfrom=no
22024 fi
22025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22026
22027 fi
22028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_recvfrom" >&5
22029 printf "%s\n" "$ac_cv_func_recvfrom" >&6; }
22030 if test "x$ac_cv_func_recvfrom" = xyes
22031 then :
22032
22033 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
22034
22035 fi
22036
22037
22038
22039
22040
22041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendto" >&5
22042 printf %s "checking for sendto... " >&6; }
22043 if test ${ac_cv_func_sendto+y}
22044 then :
22045 printf %s "(cached) " >&6
22046 else $as_nop
22047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22048 /* end confdefs.h. */
22049
22050 #include <sys/types.h>
22051 #include <sys/socket.h>
22052 #include <netinet/in.h>
22053 #include <arpa/inet.h>
22054
22055 int
22056 main (void)
22057 {
22058 void *x=sendto
22059 ;
22060 return 0;
22061 }
22062 _ACEOF
22063 if ac_fn_c_try_compile "$LINENO"
22064 then :
22065 ac_cv_func_sendto=yes
22066 else $as_nop
22067 ac_cv_func_sendto=no
22068 fi
22069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22070
22071 fi
22072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sendto" >&5
22073 printf "%s\n" "$ac_cv_func_sendto" >&6; }
22074 if test "x$ac_cv_func_sendto" = xyes
22075 then :
22076
22077 printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h
22078
22079 fi
22080
22081
22082
22083
22084
22085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
22086 printf %s "checking for setsockopt... " >&6; }
22087 if test ${ac_cv_func_setsockopt+y}
22088 then :
22089 printf %s "(cached) " >&6
22090 else $as_nop
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22093
22094 #include <sys/types.h>
22095 #include <sys/socket.h>
22096 #include <netinet/in.h>
22097 #include <arpa/inet.h>
22098
22099 int
22100 main (void)
22101 {
22102 void *x=setsockopt
22103 ;
22104 return 0;
22105 }
22106 _ACEOF
22107 if ac_fn_c_try_compile "$LINENO"
22108 then :
22109 ac_cv_func_setsockopt=yes
22110 else $as_nop
22111 ac_cv_func_setsockopt=no
22112 fi
22113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22114
22115 fi
22116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setsockopt" >&5
22117 printf "%s\n" "$ac_cv_func_setsockopt" >&6; }
22118 if test "x$ac_cv_func_setsockopt" = xyes
22119 then :
22120
22121 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
22122
22123 fi
22124
22125
22126
22127
22128
22129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
22130 printf %s "checking for socket... " >&6; }
22131 if test ${ac_cv_func_socket+y}
22132 then :
22133 printf %s "(cached) " >&6
22134 else $as_nop
22135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22136 /* end confdefs.h. */
22137
22138 #include <sys/types.h>
22139 #include <sys/socket.h>
22140 #include <netinet/in.h>
22141 #include <arpa/inet.h>
22142
22143 int
22144 main (void)
22145 {
22146 void *x=socket
22147 ;
22148 return 0;
22149 }
22150 _ACEOF
22151 if ac_fn_c_try_compile "$LINENO"
22152 then :
22153 ac_cv_func_socket=yes
22154 else $as_nop
22155 ac_cv_func_socket=no
22156 fi
22157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22158
22159 fi
22160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socket" >&5
22161 printf "%s\n" "$ac_cv_func_socket" >&6; }
22162 if test "x$ac_cv_func_socket" = xyes
22163 then :
22164
22165 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
22166
22167 fi
22168
22169
22170
22171
22172 # On some systems, setgroups is in unistd.h, on others, in grp.h
22173
22174
22175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
22176 printf %s "checking for setgroups... " >&6; }
22177 if test ${ac_cv_func_setgroups+y}
22178 then :
22179 printf %s "(cached) " >&6
22180 else $as_nop
22181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22182 /* end confdefs.h. */
22183
22184 #include <unistd.h>
22185 #ifdef HAVE_GRP_H
22186 #include <grp.h>
22187 #endif
22188
22189 int
22190 main (void)
22191 {
22192 void *x=setgroups
22193 ;
22194 return 0;
22195 }
22196 _ACEOF
22197 if ac_fn_c_try_compile "$LINENO"
22198 then :
22199 ac_cv_func_setgroups=yes
22200 else $as_nop
22201 ac_cv_func_setgroups=no
22202 fi
22203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22204
22205 fi
22206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgroups" >&5
22207 printf "%s\n" "$ac_cv_func_setgroups" >&6; }
22208 if test "x$ac_cv_func_setgroups" = xyes
22209 then :
22210
22211 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
22212
22213 fi
22214
22215
22216
22217
22218 ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include <sys/param.h>
22219 " "$ac_c_undeclared_builtin_options" "CFLAGS"
22220 if test "x$ac_cv_have_decl_MAXLOGNAME" = xyes
22221 then :
22222
22223 printf "%s\n" "#define HAVE_MAXLOGNAME 1" >>confdefs.h
22224
22225 fi
22226
22227 ac_fn_check_decl "$LINENO" "UT_NAMESIZE" "ac_cv_have_decl_UT_NAMESIZE" "#include <utmp.h>
22228 " "$ac_c_undeclared_builtin_options" "CFLAGS"
22229 if test "x$ac_cv_have_decl_UT_NAMESIZE" = xyes
22230 then :
22231 ac_have_decl=1
22232 else $as_nop
22233 ac_have_decl=0
22234 fi
22235 printf "%s\n" "#define HAVE_DECL_UT_NAMESIZE $ac_have_decl" >>confdefs.h
22236 if test $ac_have_decl = 1
22237 then :
22238
22239 printf "%s\n" "#define HAVE_UT_NAMESIZE 1" >>confdefs.h
22240
22241 fi
22242
22243
22244 # check for openpty, login_tty, and forkpty
22245
22246
22247 for ac_func in openpty
22248 do :
22249 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
22250 if test "x$ac_cv_func_openpty" = xyes
22251 then :
22252 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
22253
22254 else $as_nop
22255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22256 printf %s "checking for openpty in -lutil... " >&6; }
22257 if test ${ac_cv_lib_util_openpty+y}
22258 then :
22259 printf %s "(cached) " >&6
22260 else $as_nop
22261 ac_check_lib_save_LIBS=$LIBS
22262 LIBS="-lutil $LIBS"
22263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264 /* end confdefs.h. */
22265
22266 /* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22269 char openpty ();
22270 int
22271 main (void)
22272 {
22273 return openpty ();
22274 ;
22275 return 0;
22276 }
22277 _ACEOF
22278 if ac_fn_c_try_link "$LINENO"
22279 then :
22280 ac_cv_lib_util_openpty=yes
22281 else $as_nop
22282 ac_cv_lib_util_openpty=no
22283 fi
22284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22285 conftest$ac_exeext conftest.$ac_ext
22286 LIBS=$ac_check_lib_save_LIBS
22287 fi
22288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22289 printf "%s\n" "$ac_cv_lib_util_openpty" >&6; }
22290 if test "x$ac_cv_lib_util_openpty" = xyes
22291 then :
22292 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
22293 LIBS="$LIBS -lutil"
22294 else $as_nop
22295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
22296 printf %s "checking for openpty in -lbsd... " >&6; }
22297 if test ${ac_cv_lib_bsd_openpty+y}
22298 then :
22299 printf %s "(cached) " >&6
22300 else $as_nop
22301 ac_check_lib_save_LIBS=$LIBS
22302 LIBS="-lbsd $LIBS"
22303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22305
22306 /* Override any GCC internal prototype to avoid an error.
22307 Use char because int might match the return type of a GCC
22308 builtin and then its argument prototype would still apply. */
22309 char openpty ();
22310 int
22311 main (void)
22312 {
22313 return openpty ();
22314 ;
22315 return 0;
22316 }
22317 _ACEOF
22318 if ac_fn_c_try_link "$LINENO"
22319 then :
22320 ac_cv_lib_bsd_openpty=yes
22321 else $as_nop
22322 ac_cv_lib_bsd_openpty=no
22323 fi
22324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22325 conftest$ac_exeext conftest.$ac_ext
22326 LIBS=$ac_check_lib_save_LIBS
22327 fi
22328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
22329 printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; }
22330 if test "x$ac_cv_lib_bsd_openpty" = xyes
22331 then :
22332 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
22333 LIBS="$LIBS -lbsd"
22334 fi
22335
22336 fi
22337
22338 fi
22339
22340 done
22341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login_tty" >&5
22342 printf %s "checking for library containing login_tty... " >&6; }
22343 if test ${ac_cv_search_login_tty+y}
22344 then :
22345 printf %s "(cached) " >&6
22346 else $as_nop
22347 ac_func_search_save_LIBS=$LIBS
22348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349 /* end confdefs.h. */
22350
22351 /* Override any GCC internal prototype to avoid an error.
22352 Use char because int might match the return type of a GCC
22353 builtin and then its argument prototype would still apply. */
22354 char login_tty ();
22355 int
22356 main (void)
22357 {
22358 return login_tty ();
22359 ;
22360 return 0;
22361 }
22362 _ACEOF
22363 for ac_lib in '' util
22364 do
22365 if test -z "$ac_lib"; then
22366 ac_res="none required"
22367 else
22368 ac_res=-l$ac_lib
22369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22370 fi
22371 if ac_fn_c_try_link "$LINENO"
22372 then :
22373 ac_cv_search_login_tty=$ac_res
22374 fi
22375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22376 conftest$ac_exeext
22377 if test ${ac_cv_search_login_tty+y}
22378 then :
22379 break
22380 fi
22381 done
22382 if test ${ac_cv_search_login_tty+y}
22383 then :
22384
22385 else $as_nop
22386 ac_cv_search_login_tty=no
22387 fi
22388 rm conftest.$ac_ext
22389 LIBS=$ac_func_search_save_LIBS
22390 fi
22391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login_tty" >&5
22392 printf "%s\n" "$ac_cv_search_login_tty" >&6; }
22393 ac_res=$ac_cv_search_login_tty
22394 if test "$ac_res" != no
22395 then :
22396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22397
22398 printf "%s\n" "#define HAVE_LOGIN_TTY 1" >>confdefs.h
22399
22400
22401 fi
22402
22403
22404 for ac_func in forkpty
22405 do :
22406 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
22407 if test "x$ac_cv_func_forkpty" = xyes
22408 then :
22409 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
22410
22411 else $as_nop
22412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
22413 printf %s "checking for forkpty in -lutil... " >&6; }
22414 if test ${ac_cv_lib_util_forkpty+y}
22415 then :
22416 printf %s "(cached) " >&6
22417 else $as_nop
22418 ac_check_lib_save_LIBS=$LIBS
22419 LIBS="-lutil $LIBS"
22420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421 /* end confdefs.h. */
22422
22423 /* Override any GCC internal prototype to avoid an error.
22424 Use char because int might match the return type of a GCC
22425 builtin and then its argument prototype would still apply. */
22426 char forkpty ();
22427 int
22428 main (void)
22429 {
22430 return forkpty ();
22431 ;
22432 return 0;
22433 }
22434 _ACEOF
22435 if ac_fn_c_try_link "$LINENO"
22436 then :
22437 ac_cv_lib_util_forkpty=yes
22438 else $as_nop
22439 ac_cv_lib_util_forkpty=no
22440 fi
22441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22442 conftest$ac_exeext conftest.$ac_ext
22443 LIBS=$ac_check_lib_save_LIBS
22444 fi
22445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
22446 printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; }
22447 if test "x$ac_cv_lib_util_forkpty" = xyes
22448 then :
22449 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
22450 LIBS="$LIBS -lutil"
22451 else $as_nop
22452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
22453 printf %s "checking for forkpty in -lbsd... " >&6; }
22454 if test ${ac_cv_lib_bsd_forkpty+y}
22455 then :
22456 printf %s "(cached) " >&6
22457 else $as_nop
22458 ac_check_lib_save_LIBS=$LIBS
22459 LIBS="-lbsd $LIBS"
22460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h. */
22462
22463 /* Override any GCC internal prototype to avoid an error.
22464 Use char because int might match the return type of a GCC
22465 builtin and then its argument prototype would still apply. */
22466 char forkpty ();
22467 int
22468 main (void)
22469 {
22470 return forkpty ();
22471 ;
22472 return 0;
22473 }
22474 _ACEOF
22475 if ac_fn_c_try_link "$LINENO"
22476 then :
22477 ac_cv_lib_bsd_forkpty=yes
22478 else $as_nop
22479 ac_cv_lib_bsd_forkpty=no
22480 fi
22481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22482 conftest$ac_exeext conftest.$ac_ext
22483 LIBS=$ac_check_lib_save_LIBS
22484 fi
22485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
22486 printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; }
22487 if test "x$ac_cv_lib_bsd_forkpty" = xyes
22488 then :
22489 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
22490 LIBS="$LIBS -lbsd"
22491 fi
22492
22493 fi
22494
22495 fi
22496
22497 done
22498
22499 # check for long file support functions
22500 ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64"
22501 if test "x$ac_cv_func_fseek64" = xyes
22502 then :
22503 printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h
22504
22505 fi
22506 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
22507 if test "x$ac_cv_func_fseeko" = xyes
22508 then :
22509 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
22510
22511 fi
22512 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
22513 if test "x$ac_cv_func_fstatvfs" = xyes
22514 then :
22515 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
22516
22517 fi
22518 ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64"
22519 if test "x$ac_cv_func_ftell64" = xyes
22520 then :
22521 printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h
22522
22523 fi
22524 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
22525 if test "x$ac_cv_func_ftello" = xyes
22526 then :
22527 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
22528
22529 fi
22530 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
22531 if test "x$ac_cv_func_statvfs" = xyes
22532 then :
22533 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
22534
22535 fi
22536
22537
22538 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
22539 if test "x$ac_cv_func_dup2" = xyes
22540 then :
22541 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
22542
22543 else $as_nop
22544 case " $LIBOBJS " in
22545 *" dup2.$ac_objext "* ) ;;
22546 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
22547 ;;
22548 esac
22549
22550 fi
22551
22552
22553 for ac_func in getpgrp
22554 do :
22555 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
22556 if test "x$ac_cv_func_getpgrp" = xyes
22557 then :
22558 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h. */
22561 #include <unistd.h>
22562 int
22563 main (void)
22564 {
22565 getpgrp(0);
22566 ;
22567 return 0;
22568 }
22569 _ACEOF
22570 if ac_fn_c_try_compile "$LINENO"
22571 then :
22572
22573 printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
22574
22575 fi
22576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22577 fi
22578
22579 done
22580
22581 for ac_func in setpgrp
22582 do :
22583 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
22584 if test "x$ac_cv_func_setpgrp" = xyes
22585 then :
22586 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22589 #include <unistd.h>
22590 int
22591 main (void)
22592 {
22593 setpgrp(0,0);
22594 ;
22595 return 0;
22596 }
22597 _ACEOF
22598 if ac_fn_c_try_compile "$LINENO"
22599 then :
22600
22601 printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
22602
22603 fi
22604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22605 fi
22606
22607 done
22608
22609 # check for namespace functions
22610 ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
22611 if test "x$ac_cv_func_setns" = xyes
22612 then :
22613 printf "%s\n" "#define HAVE_SETNS 1" >>confdefs.h
22614
22615 fi
22616 ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
22617 if test "x$ac_cv_func_unshare" = xyes
22618 then :
22619 printf "%s\n" "#define HAVE_UNSHARE 1" >>confdefs.h
22620
22621 fi
22622
22623
22624
22625 for ac_func in clock_gettime
22626 do :
22627 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22628 if test "x$ac_cv_func_clock_gettime" = xyes
22629 then :
22630 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22631
22632 else $as_nop
22633
22634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22635 printf %s "checking for clock_gettime in -lrt... " >&6; }
22636 if test ${ac_cv_lib_rt_clock_gettime+y}
22637 then :
22638 printf %s "(cached) " >&6
22639 else $as_nop
22640 ac_check_lib_save_LIBS=$LIBS
22641 LIBS="-lrt $LIBS"
22642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22643 /* end confdefs.h. */
22644
22645 /* Override any GCC internal prototype to avoid an error.
22646 Use char because int might match the return type of a GCC
22647 builtin and then its argument prototype would still apply. */
22648 char clock_gettime ();
22649 int
22650 main (void)
22651 {
22652 return clock_gettime ();
22653 ;
22654 return 0;
22655 }
22656 _ACEOF
22657 if ac_fn_c_try_link "$LINENO"
22658 then :
22659 ac_cv_lib_rt_clock_gettime=yes
22660 else $as_nop
22661 ac_cv_lib_rt_clock_gettime=no
22662 fi
22663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22664 conftest$ac_exeext conftest.$ac_ext
22665 LIBS=$ac_check_lib_save_LIBS
22666 fi
22667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22668 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
22669 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
22670 then :
22671
22672 LIBS="$LIBS -lrt"
22673 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22674
22675
22676 printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h
22677
22678
22679 fi
22680
22681
22682 fi
22683
22684 done
22685
22686
22687 for ac_func in clock_getres
22688 do :
22689 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
22690 if test "x$ac_cv_func_clock_getres" = xyes
22691 then :
22692 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
22693
22694 else $as_nop
22695
22696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
22697 printf %s "checking for clock_getres in -lrt... " >&6; }
22698 if test ${ac_cv_lib_rt_clock_getres+y}
22699 then :
22700 printf %s "(cached) " >&6
22701 else $as_nop
22702 ac_check_lib_save_LIBS=$LIBS
22703 LIBS="-lrt $LIBS"
22704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22705 /* end confdefs.h. */
22706
22707 /* Override any GCC internal prototype to avoid an error.
22708 Use char because int might match the return type of a GCC
22709 builtin and then its argument prototype would still apply. */
22710 char clock_getres ();
22711 int
22712 main (void)
22713 {
22714 return clock_getres ();
22715 ;
22716 return 0;
22717 }
22718 _ACEOF
22719 if ac_fn_c_try_link "$LINENO"
22720 then :
22721 ac_cv_lib_rt_clock_getres=yes
22722 else $as_nop
22723 ac_cv_lib_rt_clock_getres=no
22724 fi
22725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22726 conftest$ac_exeext conftest.$ac_ext
22727 LIBS=$ac_check_lib_save_LIBS
22728 fi
22729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
22730 printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; }
22731 if test "x$ac_cv_lib_rt_clock_getres" = xyes
22732 then :
22733
22734 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
22735
22736
22737 fi
22738
22739
22740 fi
22741
22742 done
22743
22744 # On Android and iOS, clock_settime can be linked (so it is found by
22745 # configure), but when used in an unprivileged process, it crashes rather than
22746 # returning an error. Force the symbol off.
22747 if test "$ac_sys_system" != "Linux-android" && test "$ac_sys_system" != "iOS"
22748 then
22749
22750 for ac_func in clock_settime
22751 do :
22752 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
22753 if test "x$ac_cv_func_clock_settime" = xyes
22754 then :
22755 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
22756
22757 else $as_nop
22758
22759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
22760 printf %s "checking for clock_settime in -lrt... " >&6; }
22761 if test ${ac_cv_lib_rt_clock_settime+y}
22762 then :
22763 printf %s "(cached) " >&6
22764 else $as_nop
22765 ac_check_lib_save_LIBS=$LIBS
22766 LIBS="-lrt $LIBS"
22767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768 /* end confdefs.h. */
22769
22770 /* Override any GCC internal prototype to avoid an error.
22771 Use char because int might match the return type of a GCC
22772 builtin and then its argument prototype would still apply. */
22773 char clock_settime ();
22774 int
22775 main (void)
22776 {
22777 return clock_settime ();
22778 ;
22779 return 0;
22780 }
22781 _ACEOF
22782 if ac_fn_c_try_link "$LINENO"
22783 then :
22784 ac_cv_lib_rt_clock_settime=yes
22785 else $as_nop
22786 ac_cv_lib_rt_clock_settime=no
22787 fi
22788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22789 conftest$ac_exeext conftest.$ac_ext
22790 LIBS=$ac_check_lib_save_LIBS
22791 fi
22792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
22793 printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; }
22794 if test "x$ac_cv_lib_rt_clock_settime" = xyes
22795 then :
22796
22797 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
22798
22799
22800 fi
22801
22802
22803 fi
22804
22805 done
22806 fi
22807
22808 # On Android before API level 23, clock_nanosleep returns the wrong value when
22809 # interrupted by a signal (https://issuetracker.google.com/issues/216495770).
22810 if ! { test "$ac_sys_system" = "Linux-android" &&
22811 test "$ANDROID_API_LEVEL" -lt 23; }; then
22812
22813 for ac_func in clock_nanosleep
22814 do :
22815 ac_fn_c_check_func "$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep"
22816 if test "x$ac_cv_func_clock_nanosleep" = xyes
22817 then :
22818 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
22819
22820 else $as_nop
22821
22822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5
22823 printf %s "checking for clock_nanosleep in -lrt... " >&6; }
22824 if test ${ac_cv_lib_rt_clock_nanosleep+y}
22825 then :
22826 printf %s "(cached) " >&6
22827 else $as_nop
22828 ac_check_lib_save_LIBS=$LIBS
22829 LIBS="-lrt $LIBS"
22830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h. */
22832
22833 /* Override any GCC internal prototype to avoid an error.
22834 Use char because int might match the return type of a GCC
22835 builtin and then its argument prototype would still apply. */
22836 char clock_nanosleep ();
22837 int
22838 main (void)
22839 {
22840 return clock_nanosleep ();
22841 ;
22842 return 0;
22843 }
22844 _ACEOF
22845 if ac_fn_c_try_link "$LINENO"
22846 then :
22847 ac_cv_lib_rt_clock_nanosleep=yes
22848 else $as_nop
22849 ac_cv_lib_rt_clock_nanosleep=no
22850 fi
22851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22852 conftest$ac_exeext conftest.$ac_ext
22853 LIBS=$ac_check_lib_save_LIBS
22854 fi
22855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5
22856 printf "%s\n" "$ac_cv_lib_rt_clock_nanosleep" >&6; }
22857 if test "x$ac_cv_lib_rt_clock_nanosleep" = xyes
22858 then :
22859
22860 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
22861
22862
22863 fi
22864
22865
22866 fi
22867
22868 done
22869 fi
22870
22871
22872 for ac_func in nanosleep
22873 do :
22874 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
22875 if test "x$ac_cv_func_nanosleep" = xyes
22876 then :
22877 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22878
22879 else $as_nop
22880
22881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
22882 printf %s "checking for nanosleep in -lrt... " >&6; }
22883 if test ${ac_cv_lib_rt_nanosleep+y}
22884 then :
22885 printf %s "(cached) " >&6
22886 else $as_nop
22887 ac_check_lib_save_LIBS=$LIBS
22888 LIBS="-lrt $LIBS"
22889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h. */
22891
22892 /* Override any GCC internal prototype to avoid an error.
22893 Use char because int might match the return type of a GCC
22894 builtin and then its argument prototype would still apply. */
22895 char nanosleep ();
22896 int
22897 main (void)
22898 {
22899 return nanosleep ();
22900 ;
22901 return 0;
22902 }
22903 _ACEOF
22904 if ac_fn_c_try_link "$LINENO"
22905 then :
22906 ac_cv_lib_rt_nanosleep=yes
22907 else $as_nop
22908 ac_cv_lib_rt_nanosleep=no
22909 fi
22910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22911 conftest$ac_exeext conftest.$ac_ext
22912 LIBS=$ac_check_lib_save_LIBS
22913 fi
22914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
22915 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
22916 if test "x$ac_cv_lib_rt_nanosleep" = xyes
22917 then :
22918
22919 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22920
22921
22922 fi
22923
22924
22925 fi
22926
22927 done
22928
22929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major, minor, and makedev" >&5
22930 printf %s "checking for major, minor, and makedev... " >&6; }
22931 if test ${ac_cv_device_macros+y}
22932 then :
22933 printf %s "(cached) " >&6
22934 else $as_nop
22935
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22938
22939 #if defined(MAJOR_IN_MKDEV)
22940 #include <sys/mkdev.h>
22941 #elif defined(MAJOR_IN_SYSMACROS)
22942 #include <sys/types.h>
22943 #include <sys/sysmacros.h>
22944 #else
22945 #include <sys/types.h>
22946 #endif
22947
22948 int
22949 main (void)
22950 {
22951
22952 makedev(major(0),minor(0));
22953
22954 ;
22955 return 0;
22956 }
22957 _ACEOF
22958 if ac_fn_c_try_link "$LINENO"
22959 then :
22960 ac_cv_device_macros=yes
22961 else $as_nop
22962 ac_cv_device_macros=no
22963 fi
22964 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22965 conftest$ac_exeext conftest.$ac_ext
22966
22967 fi
22968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_device_macros" >&5
22969 printf "%s\n" "$ac_cv_device_macros" >&6; }
22970 if test "x$ac_cv_device_macros" = xyes
22971 then :
22972
22973
22974 printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
22975
22976
22977 fi
22978
22979
22980 printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
22981
22982
22983 # On OSF/1 V5.1, getaddrinfo is available, but a define
22984 # for [no]getaddrinfo in netdb.h.
22985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
22986 printf %s "checking for getaddrinfo... " >&6; }
22987 if test ${ac_cv_func_getaddrinfo+y}
22988 then :
22989 printf %s "(cached) " >&6
22990 else $as_nop
22991
22992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22993 /* end confdefs.h. */
22994
22995 #include <sys/types.h>
22996 #include <sys/socket.h>
22997 #include <netdb.h>
22998 #include <stdio.h>
22999
23000 int
23001 main (void)
23002 {
23003 getaddrinfo(NULL, NULL, NULL, NULL);
23004 ;
23005 return 0;
23006 }
23007 _ACEOF
23008 if ac_fn_c_try_link "$LINENO"
23009 then :
23010 ac_cv_func_getaddrinfo=yes
23011 else $as_nop
23012 ac_cv_func_getaddrinfo=no
23013 fi
23014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23015 conftest$ac_exeext conftest.$ac_ext
23016
23017 fi
23018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
23019 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
23020
23021 if test "x$ac_cv_func_getaddrinfo" = xyes
23022 then :
23023
23024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
23025 printf %s "checking getaddrinfo bug... " >&6; }
23026 if test ${ac_cv_buggy_getaddrinfo+y}
23027 then :
23028 printf %s "(cached) " >&6
23029 else $as_nop
23030 if test "$cross_compiling" = yes
23031 then :
23032
23033 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
23034 ac_cv_buggy_getaddrinfo="no"
23035 elif test "${enable_ipv6+set}" = set; then
23036 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
23037 else
23038 ac_cv_buggy_getaddrinfo=yes
23039 fi
23040 else $as_nop
23041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23042 /* end confdefs.h. */
23043
23044 #include <stdio.h>
23045 #include <sys/types.h>
23046 #include <netdb.h>
23047 #include <string.h>
23048 #include <sys/socket.h>
23049 #include <netinet/in.h>
23050
23051 int main(void)
23052 {
23053 int passive, gaierr, inet4 = 0, inet6 = 0;
23054 struct addrinfo hints, *ai, *aitop;
23055 char straddr[INET6_ADDRSTRLEN], strport[16];
23056
23057 for (passive = 0; passive <= 1; passive++) {
23058 memset(&hints, 0, sizeof(hints));
23059 hints.ai_family = AF_UNSPEC;
23060 hints.ai_flags = passive ? AI_PASSIVE : 0;
23061 hints.ai_socktype = SOCK_STREAM;
23062 hints.ai_protocol = IPPROTO_TCP;
23063 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
23064 (void)gai_strerror(gaierr);
23065 goto bad;
23066 }
23067 for (ai = aitop; ai; ai = ai->ai_next) {
23068 if (ai->ai_addr == NULL ||
23069 ai->ai_addrlen == 0 ||
23070 getnameinfo(ai->ai_addr, ai->ai_addrlen,
23071 straddr, sizeof(straddr), strport, sizeof(strport),
23072 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
23073 goto bad;
23074 }
23075 switch (ai->ai_family) {
23076 case AF_INET:
23077 if (strcmp(strport, "54321") != 0) {
23078 goto bad;
23079 }
23080 if (passive) {
23081 if (strcmp(straddr, "0.0.0.0") != 0) {
23082 goto bad;
23083 }
23084 } else {
23085 if (strcmp(straddr, "127.0.0.1") != 0) {
23086 goto bad;
23087 }
23088 }
23089 inet4++;
23090 break;
23091 case AF_INET6:
23092 if (strcmp(strport, "54321") != 0) {
23093 goto bad;
23094 }
23095 if (passive) {
23096 if (strcmp(straddr, "::") != 0) {
23097 goto bad;
23098 }
23099 } else {
23100 if (strcmp(straddr, "::1") != 0) {
23101 goto bad;
23102 }
23103 }
23104 inet6++;
23105 break;
23106 case AF_UNSPEC:
23107 goto bad;
23108 break;
23109 default:
23110 /* another family support? */
23111 break;
23112 }
23113 }
23114 freeaddrinfo(aitop);
23115 aitop = NULL;
23116 }
23117
23118 if (!(inet4 == 0 || inet4 == 2))
23119 goto bad;
23120 if (!(inet6 == 0 || inet6 == 2))
23121 goto bad;
23122
23123 if (aitop)
23124 freeaddrinfo(aitop);
23125 return 0;
23126
23127 bad:
23128 if (aitop)
23129 freeaddrinfo(aitop);
23130 return 1;
23131 }
23132
23133 _ACEOF
23134 if ac_fn_c_try_run "$LINENO"
23135 then :
23136 ac_cv_buggy_getaddrinfo=no
23137 else $as_nop
23138 ac_cv_buggy_getaddrinfo=yes
23139 fi
23140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23141 conftest.$ac_objext conftest.beam conftest.$ac_ext
23142 fi
23143
23144 fi
23145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
23146 printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; }
23147
23148
23149 fi
23150
23151 if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes
23152 then
23153 if test "x$ipv6" = xyes
23154 then :
23155
23156 as_fn_error $? "You must get working getaddrinfo() function or pass the \"--disable-ipv6\" option to configure." "$LINENO" 5
23157
23158 fi
23159 else
23160
23161 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
23162
23163 fi
23164
23165 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
23166 if test "x$ac_cv_func_getnameinfo" = xyes
23167 then :
23168 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
23169
23170 fi
23171
23172
23173 # checks for structures
23174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
23175 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23176 if test ${ac_cv_struct_tm+y}
23177 then :
23178 printf %s "(cached) " >&6
23179 else $as_nop
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h. */
23182 #include <sys/types.h>
23183 #include <time.h>
23184
23185 int
23186 main (void)
23187 {
23188 struct tm tm;
23189 int *p = &tm.tm_sec;
23190 return !p;
23191 ;
23192 return 0;
23193 }
23194 _ACEOF
23195 if ac_fn_c_try_compile "$LINENO"
23196 then :
23197 ac_cv_struct_tm=time.h
23198 else $as_nop
23199 ac_cv_struct_tm=sys/time.h
23200 fi
23201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23202 fi
23203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
23204 printf "%s\n" "$ac_cv_struct_tm" >&6; }
23205 if test $ac_cv_struct_tm = sys/time.h; then
23206
23207 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
23208
23209 fi
23210
23211 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
23212 #include <$ac_cv_struct_tm>
23213
23214 "
23215 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
23216 then :
23217
23218 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
23219
23220
23221 fi
23222
23223 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23224
23225 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
23226
23227 else
23228 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23229 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23230 if test "x$ac_cv_have_decl_tzname" = xyes
23231 then :
23232 ac_have_decl=1
23233 else $as_nop
23234 ac_have_decl=0
23235 fi
23236 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
23237
23238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23239 printf %s "checking for tzname... " >&6; }
23240 if test ${ac_cv_var_tzname+y}
23241 then :
23242 printf %s "(cached) " >&6
23243 else $as_nop
23244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245 /* end confdefs.h. */
23246 #include <time.h>
23247 #if !HAVE_DECL_TZNAME
23248 extern char *tzname[];
23249 #endif
23250
23251 int
23252 main (void)
23253 {
23254 return tzname[0][0];
23255 ;
23256 return 0;
23257 }
23258 _ACEOF
23259 if ac_fn_c_try_link "$LINENO"
23260 then :
23261 ac_cv_var_tzname=yes
23262 else $as_nop
23263 ac_cv_var_tzname=no
23264 fi
23265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23266 conftest$ac_exeext conftest.$ac_ext
23267 fi
23268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23269 printf "%s\n" "$ac_cv_var_tzname" >&6; }
23270 if test $ac_cv_var_tzname = yes; then
23271
23272 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
23273
23274 fi
23275 fi
23276
23277 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
23278 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
23279 then :
23280
23281 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
23282
23283
23284 fi
23285
23286 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
23287 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
23288 then :
23289
23290 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
23291
23292
23293 fi
23294
23295 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
23296 if test "x$ac_cv_member_struct_stat_st_flags" = xyes
23297 then :
23298
23299 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
23300
23301
23302 fi
23303
23304 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
23305 if test "x$ac_cv_member_struct_stat_st_gen" = xyes
23306 then :
23307
23308 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h
23309
23310
23311 fi
23312
23313 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
23314 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
23315 then :
23316
23317 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
23318
23319
23320 fi
23321
23322 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
23323 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
23324 then :
23325
23326 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
23327
23328
23329 fi
23330
23331 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
23332 #include <sys/types.h>
23333 #include <pwd.h>
23334
23335 "
23336 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes
23337 then :
23338
23339 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h
23340
23341
23342 fi
23343 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
23344 #include <sys/types.h>
23345 #include <pwd.h>
23346
23347 "
23348 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes
23349 then :
23350
23351 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h
23352
23353
23354 fi
23355
23356 # Issue #21085: In Cygwin, siginfo_t does not have si_band field.
23357 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
23358 "
23359 if test "x$ac_cv_member_siginfo_t_si_band" = xyes
23360 then :
23361
23362 printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h
23363
23364
23365 fi
23366
23367
23368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
23369 printf %s "checking for time.h that defines altzone... " >&6; }
23370 if test ${ac_cv_header_time_altzone+y}
23371 then :
23372 printf %s "(cached) " >&6
23373 else $as_nop
23374
23375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23376 /* end confdefs.h. */
23377 #include <time.h>
23378 int
23379 main (void)
23380 {
23381 return altzone;
23382 ;
23383 return 0;
23384 }
23385 _ACEOF
23386 if ac_fn_c_try_compile "$LINENO"
23387 then :
23388 ac_cv_header_time_altzone=yes
23389 else $as_nop
23390 ac_cv_header_time_altzone=no
23391 fi
23392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23393
23394 fi
23395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
23396 printf "%s\n" "$ac_cv_header_time_altzone" >&6; }
23397 if test $ac_cv_header_time_altzone = yes; then
23398
23399 printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h
23400
23401 fi
23402
23403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
23404 printf %s "checking for addrinfo... " >&6; }
23405 if test ${ac_cv_struct_addrinfo+y}
23406 then :
23407 printf %s "(cached) " >&6
23408 else $as_nop
23409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23410 /* end confdefs.h. */
23411 #include <netdb.h>
23412 int
23413 main (void)
23414 {
23415 struct addrinfo a
23416 ;
23417 return 0;
23418 }
23419 _ACEOF
23420 if ac_fn_c_try_compile "$LINENO"
23421 then :
23422 ac_cv_struct_addrinfo=yes
23423 else $as_nop
23424 ac_cv_struct_addrinfo=no
23425 fi
23426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23427 fi
23428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
23429 printf "%s\n" "$ac_cv_struct_addrinfo" >&6; }
23430 if test $ac_cv_struct_addrinfo = yes; then
23431
23432 printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h
23433
23434 fi
23435
23436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
23437 printf %s "checking for sockaddr_storage... " >&6; }
23438 if test ${ac_cv_struct_sockaddr_storage+y}
23439 then :
23440 printf %s "(cached) " >&6
23441 else $as_nop
23442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23443 /* end confdefs.h. */
23444
23445 # include <sys/types.h>
23446 # include <sys/socket.h>
23447 int
23448 main (void)
23449 {
23450 struct sockaddr_storage s
23451 ;
23452 return 0;
23453 }
23454 _ACEOF
23455 if ac_fn_c_try_compile "$LINENO"
23456 then :
23457 ac_cv_struct_sockaddr_storage=yes
23458 else $as_nop
23459 ac_cv_struct_sockaddr_storage=no
23460 fi
23461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23462 fi
23463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
23464 printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; }
23465 if test $ac_cv_struct_sockaddr_storage = yes; then
23466
23467 printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
23468
23469 fi
23470
23471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
23472 printf %s "checking for sockaddr_alg... " >&6; }
23473 if test ${ac_cv_struct_sockaddr_alg+y}
23474 then :
23475 printf %s "(cached) " >&6
23476 else $as_nop
23477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23478 /* end confdefs.h. */
23479
23480 # include <sys/types.h>
23481 # include <sys/socket.h>
23482 # include <linux/if_alg.h>
23483 int
23484 main (void)
23485 {
23486 struct sockaddr_alg s
23487 ;
23488 return 0;
23489 }
23490 _ACEOF
23491 if ac_fn_c_try_compile "$LINENO"
23492 then :
23493 ac_cv_struct_sockaddr_alg=yes
23494 else $as_nop
23495 ac_cv_struct_sockaddr_alg=no
23496 fi
23497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23498 fi
23499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
23500 printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; }
23501 if test $ac_cv_struct_sockaddr_alg = yes; then
23502
23503 printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
23504
23505 fi
23506
23507 # checks for compiler characteristics
23508
23509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23510 printf %s "checking for an ANSI C-conforming const... " >&6; }
23511 if test ${ac_cv_c_const+y}
23512 then :
23513 printf %s "(cached) " >&6
23514 else $as_nop
23515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23516 /* end confdefs.h. */
23517
23518 int
23519 main (void)
23520 {
23521
23522 #ifndef __cplusplus
23523 /* Ultrix mips cc rejects this sort of thing. */
23524 typedef int charset[2];
23525 const charset cs = { 0, 0 };
23526 /* SunOS 4.1.1 cc rejects this. */
23527 char const *const *pcpcc;
23528 char **ppc;
23529 /* NEC SVR4.0.2 mips cc rejects this. */
23530 struct point {int x, y;};
23531 static struct point const zero = {0,0};
23532 /* IBM XL C 1.02.0.0 rejects this.
23533 It does not let you subtract one const X* pointer from another in
23534 an arm of an if-expression whose if-part is not a constant
23535 expression */
23536 const char *g = "string";
23537 pcpcc = &g + (g ? g-g : 0);
23538 /* HPUX 7.0 cc rejects these. */
23539 ++pcpcc;
23540 ppc = (char**) pcpcc;
23541 pcpcc = (char const *const *) ppc;
23542 { /* SCO 3.2v4 cc rejects this sort of thing. */
23543 char tx;
23544 char *t = &tx;
23545 char const *s = 0 ? (char *) 0 : (char const *) 0;
23546
23547 *t++ = 0;
23548 if (s) return 0;
23549 }
23550 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23551 int x[] = {25, 17};
23552 const int *foo = &x[0];
23553 ++foo;
23554 }
23555 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23556 typedef const int *iptr;
23557 iptr p = 0;
23558 ++p;
23559 }
23560 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
23561 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23562 struct s { int j; const int *ap[3]; } bx;
23563 struct s *b = &bx; b->j = 5;
23564 }
23565 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23566 const int foo = 10;
23567 if (!foo) return 0;
23568 }
23569 return !cs[0] && !zero.x;
23570 #endif
23571
23572 ;
23573 return 0;
23574 }
23575 _ACEOF
23576 if ac_fn_c_try_compile "$LINENO"
23577 then :
23578 ac_cv_c_const=yes
23579 else $as_nop
23580 ac_cv_c_const=no
23581 fi
23582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23583 fi
23584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23585 printf "%s\n" "$ac_cv_c_const" >&6; }
23586 if test $ac_cv_c_const = no; then
23587
23588 printf "%s\n" "#define const /**/" >>confdefs.h
23589
23590 fi
23591
23592
23593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
23594 printf %s "checking for working signed char... " >&6; }
23595 if test ${ac_cv_working_signed_char_c+y}
23596 then :
23597 printf %s "(cached) " >&6
23598 else $as_nop
23599
23600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601 /* end confdefs.h. */
23602
23603 int
23604 main (void)
23605 {
23606 signed char c;
23607 ;
23608 return 0;
23609 }
23610 _ACEOF
23611 if ac_fn_c_try_compile "$LINENO"
23612 then :
23613 ac_cv_working_signed_char_c=yes
23614 else $as_nop
23615 ac_cv_working_signed_char_c=no
23616 fi
23617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23618
23619 fi
23620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_signed_char_c" >&5
23621 printf "%s\n" "$ac_cv_working_signed_char_c" >&6; }
23622 if test "x$ac_cv_working_signed_char_c" = xno
23623 then :
23624
23625
23626 printf "%s\n" "#define signed /**/" >>confdefs.h
23627
23628
23629 fi
23630
23631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
23632 printf %s "checking for prototypes... " >&6; }
23633 if test ${ac_cv_function_prototypes+y}
23634 then :
23635 printf %s "(cached) " >&6
23636 else $as_nop
23637
23638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23639 /* end confdefs.h. */
23640 int foo(int x) { return 0; }
23641 int
23642 main (void)
23643 {
23644 return foo(10);
23645 ;
23646 return 0;
23647 }
23648 _ACEOF
23649 if ac_fn_c_try_compile "$LINENO"
23650 then :
23651 ac_cv_function_prototypes=yes
23652 else $as_nop
23653 ac_cv_function_prototypes=no
23654 fi
23655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23656
23657 fi
23658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_function_prototypes" >&5
23659 printf "%s\n" "$ac_cv_function_prototypes" >&6; }
23660 if test "x$ac_cv_function_prototypes" = xyes
23661 then :
23662
23663
23664 printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h
23665
23666
23667 fi
23668
23669
23670 # check for socketpair
23671
23672
23673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
23674 printf %s "checking for socketpair... " >&6; }
23675 if test ${ac_cv_func_socketpair+y}
23676 then :
23677 printf %s "(cached) " >&6
23678 else $as_nop
23679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23680 /* end confdefs.h. */
23681
23682 #include <sys/types.h>
23683 #include <sys/socket.h>
23684
23685 int
23686 main (void)
23687 {
23688 void *x=socketpair
23689 ;
23690 return 0;
23691 }
23692 _ACEOF
23693 if ac_fn_c_try_compile "$LINENO"
23694 then :
23695 ac_cv_func_socketpair=yes
23696 else $as_nop
23697 ac_cv_func_socketpair=no
23698 fi
23699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23700
23701 fi
23702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socketpair" >&5
23703 printf "%s\n" "$ac_cv_func_socketpair" >&6; }
23704 if test "x$ac_cv_func_socketpair" = xyes
23705 then :
23706
23707 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
23708
23709 fi
23710
23711
23712
23713
23714 # check if sockaddr has sa_len member
23715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
23716 printf %s "checking if sockaddr has sa_len member... " >&6; }
23717 if test ${ac_cv_struct_sockaddr_sa_len+y}
23718 then :
23719 printf %s "(cached) " >&6
23720 else $as_nop
23721
23722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23723 /* end confdefs.h. */
23724 #include <sys/types.h>
23725 #include <sys/socket.h>
23726 int
23727 main (void)
23728 {
23729 struct sockaddr x;
23730 x.sa_len = 0;
23731 ;
23732 return 0;
23733 }
23734 _ACEOF
23735 if ac_fn_c_try_compile "$LINENO"
23736 then :
23737 ac_cv_struct_sockaddr_sa_len=yes
23738 else $as_nop
23739 ac_cv_struct_sockaddr_sa_len=no
23740 fi
23741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23742
23743 fi
23744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
23745 printf "%s\n" "$ac_cv_struct_sockaddr_sa_len" >&6; }
23746 if test "x$ac_cv_struct_sockaddr_sa_len" = xyes
23747 then :
23748
23749
23750 printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
23751
23752
23753 fi
23754
23755 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
23756
23757
23758 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
23759 if test "x$ac_cv_func_gethostbyname_r" = xyes
23760 then :
23761 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23762
23763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
23764 printf %s "checking gethostbyname_r with 6 args... " >&6; }
23765 OLD_CFLAGS=$CFLAGS
23766 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23768 /* end confdefs.h. */
23769
23770 # include <netdb.h>
23771
23772 int
23773 main (void)
23774 {
23775
23776 char *name;
23777 struct hostent *he, *res;
23778 char buffer[2048];
23779 int buflen = 2048;
23780 int h_errnop;
23781
23782 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23783
23784 ;
23785 return 0;
23786 }
23787 _ACEOF
23788 if ac_fn_c_try_compile "$LINENO"
23789 then :
23790
23791 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23792
23793
23794 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
23795
23796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23797 printf "%s\n" "yes" >&6; }
23798
23799 else $as_nop
23800
23801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23802 printf "%s\n" "no" >&6; }
23803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
23804 printf %s "checking gethostbyname_r with 5 args... " >&6; }
23805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23806 /* end confdefs.h. */
23807
23808 # include <netdb.h>
23809
23810 int
23811 main (void)
23812 {
23813
23814 char *name;
23815 struct hostent *he;
23816 char buffer[2048];
23817 int buflen = 2048;
23818 int h_errnop;
23819
23820 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23821
23822 ;
23823 return 0;
23824 }
23825 _ACEOF
23826 if ac_fn_c_try_compile "$LINENO"
23827 then :
23828
23829 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23830
23831
23832 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
23833
23834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23835 printf "%s\n" "yes" >&6; }
23836
23837 else $as_nop
23838
23839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23840 printf "%s\n" "no" >&6; }
23841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
23842 printf %s "checking gethostbyname_r with 3 args... " >&6; }
23843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23844 /* end confdefs.h. */
23845
23846 # include <netdb.h>
23847
23848 int
23849 main (void)
23850 {
23851
23852 char *name;
23853 struct hostent *he;
23854 struct hostent_data data;
23855
23856 (void) gethostbyname_r(name, he, &data);
23857
23858 ;
23859 return 0;
23860 }
23861 _ACEOF
23862 if ac_fn_c_try_compile "$LINENO"
23863 then :
23864
23865 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23866
23867
23868 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
23869
23870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23871 printf "%s\n" "yes" >&6; }
23872
23873 else $as_nop
23874
23875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23876 printf "%s\n" "no" >&6; }
23877
23878 fi
23879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23880
23881 fi
23882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23883
23884 fi
23885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23886 CFLAGS=$OLD_CFLAGS
23887
23888 else $as_nop
23889
23890 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23891 if test "x$ac_cv_func_gethostbyname" = xyes
23892 then :
23893 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
23894
23895 fi
23896
23897
23898 fi
23899
23900
23901
23902
23903
23904
23905
23906 # checks for system services
23907 # (none yet)
23908
23909 # Linux requires this for correct f.p. operations
23910 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
23911 if test "x$ac_cv_func___fpu_control" = xyes
23912 then :
23913
23914 else $as_nop
23915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
23916 printf %s "checking for __fpu_control in -lieee... " >&6; }
23917 if test ${ac_cv_lib_ieee___fpu_control+y}
23918 then :
23919 printf %s "(cached) " >&6
23920 else $as_nop
23921 ac_check_lib_save_LIBS=$LIBS
23922 LIBS="-lieee $LIBS"
23923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h. */
23925
23926 /* Override any GCC internal prototype to avoid an error.
23927 Use char because int might match the return type of a GCC
23928 builtin and then its argument prototype would still apply. */
23929 char __fpu_control ();
23930 int
23931 main (void)
23932 {
23933 return __fpu_control ();
23934 ;
23935 return 0;
23936 }
23937 _ACEOF
23938 if ac_fn_c_try_link "$LINENO"
23939 then :
23940 ac_cv_lib_ieee___fpu_control=yes
23941 else $as_nop
23942 ac_cv_lib_ieee___fpu_control=no
23943 fi
23944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23945 conftest$ac_exeext conftest.$ac_ext
23946 LIBS=$ac_check_lib_save_LIBS
23947 fi
23948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
23949 printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; }
23950 if test "x$ac_cv_lib_ieee___fpu_control" = xyes
23951 then :
23952 printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h
23953
23954 LIBS="-lieee $LIBS"
23955
23956 fi
23957
23958
23959 fi
23960
23961
23962 # check for --with-libm=...
23963
23964 case $ac_sys_system in
23965 Darwin) ;;
23966 *) LIBM=-lm
23967 esac
23968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
23969 printf %s "checking for --with-libm=STRING... " >&6; }
23970
23971 # Check whether --with-libm was given.
23972 if test ${with_libm+y}
23973 then :
23974 withval=$with_libm;
23975 if test "$withval" = no
23976 then LIBM=
23977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
23978 printf "%s\n" "force LIBM empty" >&6; }
23979 elif test "$withval" != yes
23980 then LIBM=$withval
23981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
23982 printf "%s\n" "set LIBM=\"$withval\"" >&6; }
23983 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
23984 fi
23985 else $as_nop
23986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
23987 printf "%s\n" "default LIBM=\"$LIBM\"" >&6; }
23988 fi
23989
23990
23991 # check for --with-libc=...
23992
23993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
23994 printf %s "checking for --with-libc=STRING... " >&6; }
23995
23996 # Check whether --with-libc was given.
23997 if test ${with_libc+y}
23998 then :
23999 withval=$with_libc;
24000 if test "$withval" = no
24001 then LIBC=
24002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
24003 printf "%s\n" "force LIBC empty" >&6; }
24004 elif test "$withval" != yes
24005 then LIBC=$withval
24006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
24007 printf "%s\n" "set LIBC=\"$withval\"" >&6; }
24008 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
24009 fi
24010 else $as_nop
24011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
24012 printf "%s\n" "default LIBC=\"$LIBC\"" >&6; }
24013 fi
24014
24015
24016 # **************************************
24017 # * Check for gcc x64 inline assembler *
24018 # **************************************
24019
24020
24021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
24022 printf %s "checking for x64 gcc inline assembler... " >&6; }
24023 if test ${ac_cv_gcc_asm_for_x64+y}
24024 then :
24025 printf %s "(cached) " >&6
24026 else $as_nop
24027
24028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24029 /* end confdefs.h. */
24030
24031 int
24032 main (void)
24033 {
24034
24035 __asm__ __volatile__ ("movq %rcx, %rax");
24036
24037 ;
24038 return 0;
24039 }
24040 _ACEOF
24041 if ac_fn_c_try_link "$LINENO"
24042 then :
24043 ac_cv_gcc_asm_for_x64=yes
24044 else $as_nop
24045 ac_cv_gcc_asm_for_x64=no
24046 fi
24047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24048 conftest$ac_exeext conftest.$ac_ext
24049
24050 fi
24051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x64" >&5
24052 printf "%s\n" "$ac_cv_gcc_asm_for_x64" >&6; }
24053
24054 if test "x$ac_cv_gcc_asm_for_x64" = xyes
24055 then :
24056
24057
24058 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
24059
24060
24061 fi
24062
24063 # **************************************************
24064 # * Check for various properties of floating point *
24065 # **************************************************
24066
24067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
24068 printf %s "checking whether float word ordering is bigendian... " >&6; }
24069 if test ${ax_cv_c_float_words_bigendian+y}
24070 then :
24071 printf %s "(cached) " >&6
24072 else $as_nop
24073
24074
24075 ax_cv_c_float_words_bigendian=unknown
24076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077 /* end confdefs.h. */
24078
24079
24080 #include <stdlib.h>
24081
24082 static double m[] = {9.090423496703681e+223, 0.0};
24083
24084 int main (int argc, char *argv[])
24085 {
24086 m[atoi (argv[1])] += atof (argv[2]);
24087 return m[atoi (argv[3])] > 0.0;
24088 }
24089
24090
24091 _ACEOF
24092 if ac_fn_c_try_link "$LINENO"
24093 then :
24094
24095
24096 if grep noonsees conftest$EXEEXT >/dev/null ; then
24097 ax_cv_c_float_words_bigendian=yes
24098 fi
24099 if grep seesnoon conftest$EXEEXT >/dev/null ; then
24100 if test "$ax_cv_c_float_words_bigendian" = unknown; then
24101 ax_cv_c_float_words_bigendian=no
24102 else
24103 ax_cv_c_float_words_bigendian=unknown
24104 fi
24105 fi
24106
24107
24108 fi
24109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24110 conftest$ac_exeext conftest.$ac_ext
24111 fi
24112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
24113 printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; }
24114
24115 case $ax_cv_c_float_words_bigendian in
24116 yes)
24117
24118 printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
24119 ;;
24120 no)
24121
24122 printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
24123 ;;
24124 *)
24125 case $host_cpu in #(
24126 *arm*) :
24127 # Some ARM platforms use a mixed-endian representation for
24128 # doubles. While Python doesn't currently have full support
24129 # for these platforms (see e.g., issue 1762561), we can at
24130 # least make sure that float <-> string conversions work.
24131 # FLOAT_WORDS_BIGENDIAN doesn't actually detect this case,
24132 # but if it's not big or little, then it must be this?
24133
24134 printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
24135 ;; #(
24136 wasm*) :
24137
24138 printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
24139 ;; #(
24140 *) :
24141 ;;
24142 esac ;;
24143 esac
24144
24145
24146
24147 # The short float repr introduced in Python 3.1 requires the
24148 # correctly-rounded string <-> double conversion functions from
24149 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
24150 # rounding; this is a problem on x86, where the x87 FPU has a default
24151 # rounding precision of 64 bits. For gcc/x86, we can fix this by
24152 # using inline assembler to get and set the x87 FPU control word.
24153
24154 # This inline assembler syntax may also work for suncc and icc,
24155 # so we try it on all platforms.
24156
24157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
24158 printf %s "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
24159 if test ${ac_cv_gcc_asm_for_x87+y}
24160 then :
24161 printf %s "(cached) " >&6
24162 else $as_nop
24163
24164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24165 /* end confdefs.h. */
24166
24167 int
24168 main (void)
24169 {
24170
24171 unsigned short cw;
24172 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
24173 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
24174
24175 ;
24176 return 0;
24177 }
24178 _ACEOF
24179 if ac_fn_c_try_link "$LINENO"
24180 then :
24181 ac_cv_gcc_asm_for_x87=yes
24182 else $as_nop
24183 ac_cv_gcc_asm_for_x87=no
24184 fi
24185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24186 conftest$ac_exeext conftest.$ac_ext
24187
24188 fi
24189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x87" >&5
24190 printf "%s\n" "$ac_cv_gcc_asm_for_x87" >&6; }
24191 if test "x$ac_cv_gcc_asm_for_x87" = xyes
24192 then :
24193
24194
24195 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
24196
24197
24198 fi
24199
24200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
24201 printf %s "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
24202 if test ${ac_cv_gcc_asm_for_mc68881+y}
24203 then :
24204 printf %s "(cached) " >&6
24205 else $as_nop
24206
24207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24208 /* end confdefs.h. */
24209
24210 int
24211 main (void)
24212 {
24213
24214 unsigned int fpcr;
24215 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=dm" (fpcr));
24216 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "dm" (fpcr));
24217
24218 ;
24219 return 0;
24220 }
24221 _ACEOF
24222 if ac_fn_c_try_link "$LINENO"
24223 then :
24224 ac_cv_gcc_asm_for_mc68881=yes
24225 else $as_nop
24226 ac_cv_gcc_asm_for_mc68881=no
24227 fi
24228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24229 conftest$ac_exeext conftest.$ac_ext
24230
24231 fi
24232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_mc68881" >&5
24233 printf "%s\n" "$ac_cv_gcc_asm_for_mc68881" >&6; }
24234 if test "x$ac_cv_gcc_asm_for_mc68881" = xyes
24235 then :
24236
24237
24238 printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
24239
24240
24241 fi
24242
24243 # Detect whether system arithmetic is subject to x87-style double
24244 # rounding issues. The result of this test has little meaning on non
24245 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
24246 # mode is round-to-nearest and double rounding issues are present, and
24247 # 0 otherwise. See https://github.com/python/cpython/issues/47186 for more info.
24248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
24249 printf %s "checking for x87-style double rounding... " >&6; }
24250 if test ${ac_cv_x87_double_rounding+y}
24251 then :
24252 printf %s "(cached) " >&6
24253 else $as_nop
24254
24255 # $BASECFLAGS may affect the result
24256 ac_save_cc="$CC"
24257 CC="$CC $BASECFLAGS"
24258 if test "$cross_compiling" = yes
24259 then :
24260 ac_cv_x87_double_rounding=no
24261 else $as_nop
24262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263 /* end confdefs.h. */
24264
24265 #include <stdlib.h>
24266 #include <math.h>
24267 int main(void) {
24268 volatile double x, y, z;
24269 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
24270 x = 0.99999999999999989; /* 1-2**-53 */
24271 y = 1./x;
24272 if (y != 1.)
24273 exit(0);
24274 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
24275 x = 1e16;
24276 y = 2.99999;
24277 z = x + y;
24278 if (z != 1e16+4.)
24279 exit(0);
24280 /* both tests show evidence of double rounding */
24281 exit(1);
24282 }
24283
24284 _ACEOF
24285 if ac_fn_c_try_run "$LINENO"
24286 then :
24287 ac_cv_x87_double_rounding=no
24288 else $as_nop
24289 ac_cv_x87_double_rounding=yes
24290 fi
24291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24292 conftest.$ac_objext conftest.beam conftest.$ac_ext
24293 fi
24294
24295 CC="$ac_save_cc"
24296
24297 fi
24298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
24299 printf "%s\n" "$ac_cv_x87_double_rounding" >&6; }
24300
24301 if test "x$ac_cv_x87_double_rounding" = xyes
24302 then :
24303
24304
24305 printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
24306
24307
24308 fi
24309
24310 # ************************************
24311 # * Check for mathematical functions *
24312 # ************************************
24313
24314 LIBS_SAVE=$LIBS
24315 LIBS="$LIBS $LIBM"
24316
24317
24318 for ac_func in acosh asinh atanh erf erfc expm1 log1p log2
24319 do :
24320 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
24321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24322 if eval test \"x\$"$as_ac_var"\" = x"yes"
24323 then :
24324 cat >>confdefs.h <<_ACEOF
24325 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
24326 _ACEOF
24327
24328 else $as_nop
24329 as_fn_error $? "Python requires C99 compatible libm" "$LINENO" 5
24330
24331 fi
24332
24333 done
24334 LIBS=$LIBS_SAVE
24335
24336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
24337 printf %s "checking whether POSIX semaphores are enabled... " >&6; }
24338 if test ${ac_cv_posix_semaphores_enabled+y}
24339 then :
24340 printf %s "(cached) " >&6
24341 else $as_nop
24342 if test "$cross_compiling" = yes
24343 then :
24344 ac_cv_posix_semaphores_enabled=yes
24345 else $as_nop
24346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24347 /* end confdefs.h. */
24348
24349
24350 #include <unistd.h>
24351 #include <fcntl.h>
24352 #include <stdio.h>
24353 #include <semaphore.h>
24354 #include <sys/stat.h>
24355
24356 int main(void) {
24357 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24358 if (a == SEM_FAILED) {
24359 perror("sem_open");
24360 return 1;
24361 }
24362 sem_close(a);
24363 sem_unlink("/autoconf");
24364 return 0;
24365 }
24366
24367
24368 _ACEOF
24369 if ac_fn_c_try_run "$LINENO"
24370 then :
24371 ac_cv_posix_semaphores_enabled=yes
24372 else $as_nop
24373 ac_cv_posix_semaphores_enabled=no
24374 fi
24375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24376 conftest.$ac_objext conftest.beam conftest.$ac_ext
24377 fi
24378
24379
24380 fi
24381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
24382 printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; }
24383 if test "x$ac_cv_posix_semaphores_enabled" = xno
24384 then :
24385
24386
24387 printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
24388
24389
24390 fi
24391
24392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
24393 printf %s "checking for broken sem_getvalue... " >&6; }
24394 if test ${ac_cv_broken_sem_getvalue+y}
24395 then :
24396 printf %s "(cached) " >&6
24397 else $as_nop
24398 if test "$cross_compiling" = yes
24399 then :
24400 ac_cv_broken_sem_getvalue=yes
24401 else $as_nop
24402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24403 /* end confdefs.h. */
24404
24405
24406 #include <unistd.h>
24407 #include <fcntl.h>
24408 #include <stdio.h>
24409 #include <semaphore.h>
24410 #include <sys/stat.h>
24411
24412 int main(void){
24413 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
24414 int count;
24415 int res;
24416 if(a==SEM_FAILED){
24417 perror("sem_open");
24418 return 1;
24419
24420 }
24421 res = sem_getvalue(a, &count);
24422 sem_close(a);
24423 sem_unlink("/autocftw");
24424 return res==-1 ? 1 : 0;
24425 }
24426
24427
24428 _ACEOF
24429 if ac_fn_c_try_run "$LINENO"
24430 then :
24431 ac_cv_broken_sem_getvalue=no
24432 else $as_nop
24433 ac_cv_broken_sem_getvalue=yes
24434 fi
24435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24436 conftest.$ac_objext conftest.beam conftest.$ac_ext
24437 fi
24438
24439
24440 fi
24441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
24442 printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; }
24443 if test "x$ac_cv_broken_sem_getvalue" = xyes
24444 then :
24445
24446
24447 printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
24448
24449
24450 fi
24451
24452 ac_fn_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
24453 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24454 if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes
24455 then :
24456 ac_have_decl=1
24457 else $as_nop
24458 ac_have_decl=0
24459 fi
24460 printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h
24461 ac_fn_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
24462 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24463 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
24464 then :
24465 ac_have_decl=1
24466 else $as_nop
24467 ac_have_decl=0
24468 fi
24469 printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h
24470 ac_fn_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
24471 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24472 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
24473 then :
24474 ac_have_decl=1
24475 else $as_nop
24476 ac_have_decl=0
24477 fi
24478 printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h
24479 ac_fn_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
24480 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24481 if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes
24482 then :
24483 ac_have_decl=1
24484 else $as_nop
24485 ac_have_decl=0
24486 fi
24487 printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h
24488 ac_fn_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
24489 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24490 if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes
24491 then :
24492 ac_have_decl=1
24493 else $as_nop
24494 ac_have_decl=0
24495 fi
24496 printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h
24497 ac_fn_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
24498 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24499 if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes
24500 then :
24501 ac_have_decl=1
24502 else $as_nop
24503 ac_have_decl=0
24504 fi
24505 printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h
24506 ac_fn_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
24507 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24508 if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes
24509 then :
24510 ac_have_decl=1
24511 else $as_nop
24512 ac_have_decl=0
24513 fi
24514 printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h
24515 ac_fn_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
24516 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24517 if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes
24518 then :
24519 ac_have_decl=1
24520 else $as_nop
24521 ac_have_decl=0
24522 fi
24523 printf "%s\n" "#define HAVE_DECL_RTLD_MEMBER $ac_have_decl" >>confdefs.h
24524
24525
24526 # determine what size digit to use for Python's longs
24527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
24528 printf %s "checking digit size for Python's longs... " >&6; }
24529 # Check whether --enable-big-digits was given.
24530 if test ${enable_big_digits+y}
24531 then :
24532 enableval=$enable_big_digits; case $enable_big_digits in
24533 yes)
24534 enable_big_digits=30 ;;
24535 no)
24536 enable_big_digits=15 ;;
24537 15|30)
24538 ;;
24539 *)
24540 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
24541 esac
24542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
24543 printf "%s\n" "$enable_big_digits" >&6; }
24544
24545 printf "%s\n" "#define PYLONG_BITS_IN_DIGIT $enable_big_digits" >>confdefs.h
24546
24547
24548 else $as_nop
24549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
24550 printf "%s\n" "no value specified" >&6; }
24551 fi
24552
24553
24554 # check for wchar.h
24555 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
24556 if test "x$ac_cv_header_wchar_h" = xyes
24557 then :
24558
24559
24560 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
24561
24562 wchar_h="yes"
24563
24564 else $as_nop
24565 wchar_h="no"
24566
24567 fi
24568
24569
24570 # determine wchar_t size
24571 if test "$wchar_h" = yes
24572 then
24573 # The cast to long int works around a bug in the HP C Compiler
24574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24576 # This bug is HP SR number 8606223364.
24577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
24578 printf %s "checking size of wchar_t... " >&6; }
24579 if test ${ac_cv_sizeof_wchar_t+y}
24580 then :
24581 printf %s "(cached) " >&6
24582 else $as_nop
24583 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
24584 "
24585 then :
24586
24587 else $as_nop
24588 if test "$ac_cv_type_wchar_t" = yes; then
24589 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24590 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24591 as_fn_error 77 "cannot compute sizeof (wchar_t)
24592 See \`config.log' for more details" "$LINENO" 5; }
24593 else
24594 ac_cv_sizeof_wchar_t=0
24595 fi
24596 fi
24597
24598 fi
24599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
24600 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
24601
24602
24603
24604 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
24605
24606
24607 fi
24608
24609 # check whether wchar_t is signed or not
24610 if test "$wchar_h" = yes
24611 then
24612 # check whether wchar_t is signed or not
24613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
24614 printf %s "checking whether wchar_t is signed... " >&6; }
24615 if test ${ac_cv_wchar_t_signed+y}
24616 then :
24617 printf %s "(cached) " >&6
24618 else $as_nop
24619
24620 if test "$cross_compiling" = yes
24621 then :
24622 ac_cv_wchar_t_signed=yes
24623 else $as_nop
24624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24625 /* end confdefs.h. */
24626
24627 #include <wchar.h>
24628 int main()
24629 {
24630 /* Success: exit code 0 */
24631 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24632 }
24633
24634 _ACEOF
24635 if ac_fn_c_try_run "$LINENO"
24636 then :
24637 ac_cv_wchar_t_signed=yes
24638 else $as_nop
24639 ac_cv_wchar_t_signed=no
24640 fi
24641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24642 conftest.$ac_objext conftest.beam conftest.$ac_ext
24643 fi
24644
24645 fi
24646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
24647 printf "%s\n" "$ac_cv_wchar_t_signed" >&6; }
24648 fi
24649
24650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
24651 printf %s "checking whether wchar_t is usable... " >&6; }
24652 # wchar_t is only usable if it maps to an unsigned type
24653 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
24654 -a "$ac_cv_wchar_t_signed" = "no"
24655 then
24656
24657 printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
24658
24659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24660 printf "%s\n" "yes" >&6; }
24661 else
24662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24663 printf "%s\n" "no" >&6; }
24664 fi
24665
24666 case $ac_sys_system/$ac_sys_release in
24667 SunOS/*)
24668 if test -f /etc/os-release; then
24669 OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release)
24670 if test "x$OS_NAME" = "xOracle Solaris"; then
24671 # bpo-43667: In Oracle Solaris, the internal form of wchar_t in
24672 # non-Unicode locales is not Unicode and hence cannot be used directly.
24673 # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html
24674
24675 printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h
24676
24677 fi
24678 fi
24679 ;;
24680 esac
24681
24682 # check for endianness
24683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24684 printf %s "checking whether byte ordering is bigendian... " >&6; }
24685 if test ${ac_cv_c_bigendian+y}
24686 then :
24687 printf %s "(cached) " >&6
24688 else $as_nop
24689 ac_cv_c_bigendian=unknown
24690 # See if we're dealing with a universal compiler.
24691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24692 /* end confdefs.h. */
24693 #ifndef __APPLE_CC__
24694 not a universal capable compiler
24695 #endif
24696 typedef int dummy;
24697
24698 _ACEOF
24699 if ac_fn_c_try_compile "$LINENO"
24700 then :
24701
24702 # Check for potential -arch flags. It is not universal unless
24703 # there are at least two -arch flags with different values.
24704 ac_arch=
24705 ac_prev=
24706 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24707 if test -n "$ac_prev"; then
24708 case $ac_word in
24709 i?86 | x86_64 | ppc | ppc64)
24710 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24711 ac_arch=$ac_word
24712 else
24713 ac_cv_c_bigendian=universal
24714 break
24715 fi
24716 ;;
24717 esac
24718 ac_prev=
24719 elif test "x$ac_word" = "x-arch"; then
24720 ac_prev=arch
24721 fi
24722 done
24723 fi
24724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24725 if test $ac_cv_c_bigendian = unknown; then
24726 # See if sys/param.h defines the BYTE_ORDER macro.
24727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24728 /* end confdefs.h. */
24729 #include <sys/types.h>
24730 #include <sys/param.h>
24731
24732 int
24733 main (void)
24734 {
24735 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24736 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24737 && LITTLE_ENDIAN)
24738 bogus endian macros
24739 #endif
24740
24741 ;
24742 return 0;
24743 }
24744 _ACEOF
24745 if ac_fn_c_try_compile "$LINENO"
24746 then :
24747 # It does; now see whether it defined to BIG_ENDIAN or not.
24748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24749 /* end confdefs.h. */
24750 #include <sys/types.h>
24751 #include <sys/param.h>
24752
24753 int
24754 main (void)
24755 {
24756 #if BYTE_ORDER != BIG_ENDIAN
24757 not big endian
24758 #endif
24759
24760 ;
24761 return 0;
24762 }
24763 _ACEOF
24764 if ac_fn_c_try_compile "$LINENO"
24765 then :
24766 ac_cv_c_bigendian=yes
24767 else $as_nop
24768 ac_cv_c_bigendian=no
24769 fi
24770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24771 fi
24772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24773 fi
24774 if test $ac_cv_c_bigendian = unknown; then
24775 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24777 /* end confdefs.h. */
24778 #include <limits.h>
24779
24780 int
24781 main (void)
24782 {
24783 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24784 bogus endian macros
24785 #endif
24786
24787 ;
24788 return 0;
24789 }
24790 _ACEOF
24791 if ac_fn_c_try_compile "$LINENO"
24792 then :
24793 # It does; now see whether it defined to _BIG_ENDIAN or not.
24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h. */
24796 #include <limits.h>
24797
24798 int
24799 main (void)
24800 {
24801 #ifndef _BIG_ENDIAN
24802 not big endian
24803 #endif
24804
24805 ;
24806 return 0;
24807 }
24808 _ACEOF
24809 if ac_fn_c_try_compile "$LINENO"
24810 then :
24811 ac_cv_c_bigendian=yes
24812 else $as_nop
24813 ac_cv_c_bigendian=no
24814 fi
24815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24816 fi
24817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24818 fi
24819 if test $ac_cv_c_bigendian = unknown; then
24820 # Compile a test program.
24821 if test "$cross_compiling" = yes
24822 then :
24823 # Try to guess by grepping values from an object file.
24824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24825 /* end confdefs.h. */
24826 unsigned short int ascii_mm[] =
24827 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24828 unsigned short int ascii_ii[] =
24829 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24830 int use_ascii (int i) {
24831 return ascii_mm[i] + ascii_ii[i];
24832 }
24833 unsigned short int ebcdic_ii[] =
24834 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24835 unsigned short int ebcdic_mm[] =
24836 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24837 int use_ebcdic (int i) {
24838 return ebcdic_mm[i] + ebcdic_ii[i];
24839 }
24840 extern int foo;
24841
24842 int
24843 main (void)
24844 {
24845 return use_ascii (foo) == use_ebcdic (foo);
24846 ;
24847 return 0;
24848 }
24849 _ACEOF
24850 if ac_fn_c_try_compile "$LINENO"
24851 then :
24852 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24853 ac_cv_c_bigendian=yes
24854 fi
24855 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24856 if test "$ac_cv_c_bigendian" = unknown; then
24857 ac_cv_c_bigendian=no
24858 else
24859 # finding both strings is unlikely to happen, but who knows?
24860 ac_cv_c_bigendian=unknown
24861 fi
24862 fi
24863 fi
24864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24865 else $as_nop
24866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24867 /* end confdefs.h. */
24868 $ac_includes_default
24869 int
24870 main (void)
24871 {
24872
24873 /* Are we little or big endian? From Harbison&Steele. */
24874 union
24875 {
24876 long int l;
24877 char c[sizeof (long int)];
24878 } u;
24879 u.l = 1;
24880 return u.c[sizeof (long int) - 1] == 1;
24881
24882 ;
24883 return 0;
24884 }
24885 _ACEOF
24886 if ac_fn_c_try_run "$LINENO"
24887 then :
24888 ac_cv_c_bigendian=no
24889 else $as_nop
24890 ac_cv_c_bigendian=yes
24891 fi
24892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24893 conftest.$ac_objext conftest.beam conftest.$ac_ext
24894 fi
24895
24896 fi
24897 fi
24898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24899 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
24900 case $ac_cv_c_bigendian in #(
24901 yes)
24902 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
24903 ;; #(
24904 no)
24905 ;; #(
24906 universal)
24907
24908 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24909
24910 ;; #(
24911 *)
24912 as_fn_error $? "unknown endianness
24913 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24914 esac
24915
24916
24917 # ABI version string for Python extension modules. This appears between the
24918 # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
24919 # from the following attributes which affect the ABI of this Python build (in
24920 # this order):
24921 #
24922 # * The Python implementation (always 'cpython-' for us)
24923 # * The major and minor version numbers
24924 # * --disable-gil (adds a 't')
24925 # * --with-pydebug (adds a 'd')
24926 #
24927 # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
24928 # would get a shared library ABI version tag of 'cpython-32dmu' and shared
24929 # libraries would be named 'foo.cpython-32dmu.so'.
24930 #
24931 # In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
24932 # In Python 3.7 and older, --with-pymalloc added a 'm' flag.
24933
24934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
24935 printf %s "checking ABIFLAGS... " >&6; }
24936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
24937 printf "%s\n" "$ABIFLAGS" >&6; }
24938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
24939 printf %s "checking SOABI... " >&6; }
24940 SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${SOABI_PLATFORM:+-$SOABI_PLATFORM}
24941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
24942 printf "%s\n" "$SOABI" >&6; }
24943
24944 # Release build, debug build (Py_DEBUG), and trace refs build (Py_TRACE_REFS)
24945 # are ABI compatible
24946 if test "$Py_DEBUG" = 'true'; then
24947 # Similar to SOABI but remove "d" flag from ABIFLAGS
24948
24949 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${SOABI_PLATFORM:+-$SOABI_PLATFORM}
24950
24951 printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h
24952
24953 fi
24954
24955
24956 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
24957
24958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
24959 printf %s "checking LDVERSION... " >&6; }
24960 LDVERSION='$(VERSION)$(ABIFLAGS)'
24961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
24962 printf "%s\n" "$LDVERSION" >&6; }
24963
24964 # Configure the flags and dependencies used when compiling shared modules.
24965
24966
24967 MODULE_DEPS_SHARED='$(MODULE_DEPS_STATIC) $(EXPORTSYMS)'
24968
24969 # On most platforms, extension modules aren't linked against libpython, so
24970 # LIBPYTHON must be empty.
24971 LIBPYTHON=''
24972
24973 # On Android and Cygwin the shared libraries must be linked with libpython.
24974 # LIBPYTHON is used by python-config, python3.pc, the commands for building the
24975 # stdlib's own extension modules, and external package build systems via
24976 # sysconfig, so its value must be suitable for all those contexts.
24977 if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then
24978 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(LDLIBRARY)"
24979 LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
24980 fi
24981
24982 # On iOS the shared libraries must be linked with the Python framework
24983 if test "$ac_sys_system" = "iOS"; then
24984 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(PYTHONFRAMEWORKDIR)/\$(PYTHONFRAMEWORK)"
24985 fi
24986
24987
24988
24989 BINLIBDEST='$(LIBDIR)/python$(VERSION)$(ABI_THREAD)'
24990
24991
24992 # Check for --with-platlibdir
24993 # /usr/$PLATLIBDIR/python$(VERSION)$(ABI_THREAD)
24994
24995 PLATLIBDIR="lib"
24996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5
24997 printf %s "checking for --with-platlibdir... " >&6; }
24998
24999 # Check whether --with-platlibdir was given.
25000 if test ${with_platlibdir+y}
25001 then :
25002 withval=$with_platlibdir;
25003 # ignore 3 options:
25004 # --with-platlibdir
25005 # --with-platlibdir=
25006 # --without-platlibdir
25007 if test -n "$withval" -a "$withval" != yes -a "$withval" != no
25008 then
25009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25010 printf "%s\n" "yes" >&6; }
25011 PLATLIBDIR="$withval"
25012 BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)$(ABI_THREAD)'
25013 else
25014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25015 printf "%s\n" "no" >&6; }
25016 fi
25017 else $as_nop
25018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25019 printf "%s\n" "no" >&6; }
25020 fi
25021
25022
25023
25024
25025 if test x$PLATFORM_TRIPLET = x; then
25026 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}"
25027 else
25028 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
25029 fi
25030
25031
25032 # Check for --with-wheel-pkg-dir=PATH
25033
25034 WHEEL_PKG_DIR=""
25035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5
25036 printf %s "checking for --with-wheel-pkg-dir... " >&6; }
25037
25038 # Check whether --with-wheel-pkg-dir was given.
25039 if test ${with_wheel_pkg_dir+y}
25040 then :
25041 withval=$with_wheel_pkg_dir;
25042 if test -n "$withval"; then
25043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25044 printf "%s\n" "yes" >&6; }
25045 WHEEL_PKG_DIR="$withval"
25046 else
25047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25048 printf "%s\n" "no" >&6; }
25049 fi
25050 else $as_nop
25051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25052 printf "%s\n" "no" >&6; }
25053 fi
25054
25055
25056 # Check whether right shifting a negative integer extends the sign bit
25057 # or fills with zeros (like the Cray J90, according to Tim Peters).
25058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
25059 printf %s "checking whether right shift extends the sign bit... " >&6; }
25060 if test ${ac_cv_rshift_extends_sign+y}
25061 then :
25062 printf %s "(cached) " >&6
25063 else $as_nop
25064
25065 if test "$cross_compiling" = yes
25066 then :
25067 ac_cv_rshift_extends_sign=yes
25068 else $as_nop
25069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25070 /* end confdefs.h. */
25071
25072 int main(void)
25073 {
25074 return (((-1)>>3 == -1) ? 0 : 1);
25075 }
25076
25077 _ACEOF
25078 if ac_fn_c_try_run "$LINENO"
25079 then :
25080 ac_cv_rshift_extends_sign=yes
25081 else $as_nop
25082 ac_cv_rshift_extends_sign=no
25083 fi
25084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25085 conftest.$ac_objext conftest.beam conftest.$ac_ext
25086 fi
25087
25088 fi
25089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
25090 printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; }
25091 if test "$ac_cv_rshift_extends_sign" = no
25092 then
25093
25094 printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
25095
25096 fi
25097
25098 # check for getc_unlocked and related locking functions
25099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
25100 printf %s "checking for getc_unlocked() and friends... " >&6; }
25101 if test ${ac_cv_have_getc_unlocked+y}
25102 then :
25103 printf %s "(cached) " >&6
25104 else $as_nop
25105
25106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25107 /* end confdefs.h. */
25108 #include <stdio.h>
25109 int
25110 main (void)
25111 {
25112
25113 FILE *f = fopen("/dev/null", "r");
25114 flockfile(f);
25115 getc_unlocked(f);
25116 funlockfile(f);
25117
25118 ;
25119 return 0;
25120 }
25121 _ACEOF
25122 if ac_fn_c_try_link "$LINENO"
25123 then :
25124 ac_cv_have_getc_unlocked=yes
25125 else $as_nop
25126 ac_cv_have_getc_unlocked=no
25127 fi
25128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25129 conftest$ac_exeext conftest.$ac_ext
25130 fi
25131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
25132 printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; }
25133 if test "$ac_cv_have_getc_unlocked" = yes
25134 then
25135
25136 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
25137
25138 fi
25139
25140
25141
25142
25143
25144 # Check whether --with-readline was given.
25145 if test ${with_readline+y}
25146 then :
25147 withval=$with_readline;
25148 case $with_readline in #(
25149 editline|edit) :
25150 with_readline=edit ;; #(
25151 yes|readline) :
25152 with_readline=readline ;; #(
25153 no) :
25154 ;; #(
25155 *) :
25156 as_fn_error $? "proper usage is --with(out)-readline[=editline|readline|no]" "$LINENO" 5
25157 ;;
25158 esac
25159
25160 else $as_nop
25161 with_readline=readline
25162
25163 fi
25164
25165
25166 if test "x$with_readline" = xreadline
25167 then :
25168
25169
25170 pkg_failed=no
25171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
25172 printf %s "checking for readline... " >&6; }
25173
25174 if test -n "$LIBREADLINE_CFLAGS"; then
25175 pkg_cv_LIBREADLINE_CFLAGS="$LIBREADLINE_CFLAGS"
25176 elif test -n "$PKG_CONFIG"; then
25177 if test -n "$PKG_CONFIG" && \
25178 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25179 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25180 ac_status=$?
25181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; then
25183 pkg_cv_LIBREADLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
25184 test "x$?" != "x0" && pkg_failed=yes
25185 else
25186 pkg_failed=yes
25187 fi
25188 else
25189 pkg_failed=untried
25190 fi
25191 if test -n "$LIBREADLINE_LIBS"; then
25192 pkg_cv_LIBREADLINE_LIBS="$LIBREADLINE_LIBS"
25193 elif test -n "$PKG_CONFIG"; then
25194 if test -n "$PKG_CONFIG" && \
25195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
25196 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
25197 ac_status=$?
25198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25199 test $ac_status = 0; }; then
25200 pkg_cv_LIBREADLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
25201 test "x$?" != "x0" && pkg_failed=yes
25202 else
25203 pkg_failed=yes
25204 fi
25205 else
25206 pkg_failed=untried
25207 fi
25208
25209
25210
25211 if test $pkg_failed = yes; then
25212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25213 printf "%s\n" "no" >&6; }
25214
25215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25216 _pkg_short_errors_supported=yes
25217 else
25218 _pkg_short_errors_supported=no
25219 fi
25220 if test $_pkg_short_errors_supported = yes; then
25221 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
25222 else
25223 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
25224 fi
25225 # Put the nasty error message in config.log where it belongs
25226 echo "$LIBREADLINE_PKG_ERRORS" >&5
25227
25228
25229 save_CFLAGS=$CFLAGS
25230 save_CPPFLAGS=$CPPFLAGS
25231 save_LDFLAGS=$LDFLAGS
25232 save_LIBS=$LIBS
25233
25234
25235 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
25236 LIBS="$LIBS $LIBREADLINE_LIBS"
25237 for ac_header in readline/readline.h
25238 do :
25239 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
25240 if test "x$ac_cv_header_readline_readline_h" = xyes
25241 then :
25242 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
25243
25244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
25245 printf %s "checking for readline in -lreadline... " >&6; }
25246 if test ${ac_cv_lib_readline_readline+y}
25247 then :
25248 printf %s "(cached) " >&6
25249 else $as_nop
25250 ac_check_lib_save_LIBS=$LIBS
25251 LIBS="-lreadline $LIBS"
25252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25253 /* end confdefs.h. */
25254
25255 /* Override any GCC internal prototype to avoid an error.
25256 Use char because int might match the return type of a GCC
25257 builtin and then its argument prototype would still apply. */
25258 char readline ();
25259 int
25260 main (void)
25261 {
25262 return readline ();
25263 ;
25264 return 0;
25265 }
25266 _ACEOF
25267 if ac_fn_c_try_link "$LINENO"
25268 then :
25269 ac_cv_lib_readline_readline=yes
25270 else $as_nop
25271 ac_cv_lib_readline_readline=no
25272 fi
25273 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25274 conftest$ac_exeext conftest.$ac_ext
25275 LIBS=$ac_check_lib_save_LIBS
25276 fi
25277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
25278 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
25279 if test "x$ac_cv_lib_readline_readline" = xyes
25280 then :
25281
25282 LIBREADLINE=readline
25283 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
25284 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
25285
25286 else $as_nop
25287 with_readline=no
25288 fi
25289
25290
25291 else $as_nop
25292 with_readline=no
25293 fi
25294
25295 done
25296
25297 CFLAGS=$save_CFLAGS
25298 CPPFLAGS=$save_CPPFLAGS
25299 LDFLAGS=$save_LDFLAGS
25300 LIBS=$save_LIBS
25301
25302
25303
25304 elif test $pkg_failed = untried; then
25305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25306 printf "%s\n" "no" >&6; }
25307
25308 save_CFLAGS=$CFLAGS
25309 save_CPPFLAGS=$CPPFLAGS
25310 save_LDFLAGS=$LDFLAGS
25311 save_LIBS=$LIBS
25312
25313
25314 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
25315 LIBS="$LIBS $LIBREADLINE_LIBS"
25316 for ac_header in readline/readline.h
25317 do :
25318 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
25319 if test "x$ac_cv_header_readline_readline_h" = xyes
25320 then :
25321 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
25322
25323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
25324 printf %s "checking for readline in -lreadline... " >&6; }
25325 if test ${ac_cv_lib_readline_readline+y}
25326 then :
25327 printf %s "(cached) " >&6
25328 else $as_nop
25329 ac_check_lib_save_LIBS=$LIBS
25330 LIBS="-lreadline $LIBS"
25331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25332 /* end confdefs.h. */
25333
25334 /* Override any GCC internal prototype to avoid an error.
25335 Use char because int might match the return type of a GCC
25336 builtin and then its argument prototype would still apply. */
25337 char readline ();
25338 int
25339 main (void)
25340 {
25341 return readline ();
25342 ;
25343 return 0;
25344 }
25345 _ACEOF
25346 if ac_fn_c_try_link "$LINENO"
25347 then :
25348 ac_cv_lib_readline_readline=yes
25349 else $as_nop
25350 ac_cv_lib_readline_readline=no
25351 fi
25352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25353 conftest$ac_exeext conftest.$ac_ext
25354 LIBS=$ac_check_lib_save_LIBS
25355 fi
25356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
25357 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
25358 if test "x$ac_cv_lib_readline_readline" = xyes
25359 then :
25360
25361 LIBREADLINE=readline
25362 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
25363 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
25364
25365 else $as_nop
25366 with_readline=no
25367 fi
25368
25369
25370 else $as_nop
25371 with_readline=no
25372 fi
25373
25374 done
25375
25376 CFLAGS=$save_CFLAGS
25377 CPPFLAGS=$save_CPPFLAGS
25378 LDFLAGS=$save_LDFLAGS
25379 LIBS=$save_LIBS
25380
25381
25382
25383 else
25384 LIBREADLINE_CFLAGS=$pkg_cv_LIBREADLINE_CFLAGS
25385 LIBREADLINE_LIBS=$pkg_cv_LIBREADLINE_LIBS
25386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25387 printf "%s\n" "yes" >&6; }
25388
25389 LIBREADLINE=readline
25390 READLINE_CFLAGS=$LIBREADLINE_CFLAGS
25391 READLINE_LIBS=$LIBREADLINE_LIBS
25392
25393 fi
25394
25395 fi
25396
25397 if test "x$with_readline" = xedit
25398 then :
25399
25400
25401 pkg_failed=no
25402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
25403 printf %s "checking for libedit... " >&6; }
25404
25405 if test -n "$LIBEDIT_CFLAGS"; then
25406 pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
25407 elif test -n "$PKG_CONFIG"; then
25408 if test -n "$PKG_CONFIG" && \
25409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
25410 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
25411 ac_status=$?
25412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; then
25414 pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
25415 test "x$?" != "x0" && pkg_failed=yes
25416 else
25417 pkg_failed=yes
25418 fi
25419 else
25420 pkg_failed=untried
25421 fi
25422 if test -n "$LIBEDIT_LIBS"; then
25423 pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
25424 elif test -n "$PKG_CONFIG"; then
25425 if test -n "$PKG_CONFIG" && \
25426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
25427 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
25428 ac_status=$?
25429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25430 test $ac_status = 0; }; then
25431 pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
25432 test "x$?" != "x0" && pkg_failed=yes
25433 else
25434 pkg_failed=yes
25435 fi
25436 else
25437 pkg_failed=untried
25438 fi
25439
25440
25441
25442 if test $pkg_failed = yes; then
25443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25444 printf "%s\n" "no" >&6; }
25445
25446 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25447 _pkg_short_errors_supported=yes
25448 else
25449 _pkg_short_errors_supported=no
25450 fi
25451 if test $_pkg_short_errors_supported = yes; then
25452 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
25453 else
25454 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
25455 fi
25456 # Put the nasty error message in config.log where it belongs
25457 echo "$LIBEDIT_PKG_ERRORS" >&5
25458
25459
25460 save_CFLAGS=$CFLAGS
25461 save_CPPFLAGS=$CPPFLAGS
25462 save_LDFLAGS=$LDFLAGS
25463 save_LIBS=$LIBS
25464
25465
25466 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
25467 LIBS="$LIBS $LIBEDIT_LIBS"
25468 for ac_header in editline/readline.h
25469 do :
25470 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
25471 if test "x$ac_cv_header_editline_readline_h" = xyes
25472 then :
25473 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
25474
25475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
25476 printf %s "checking for readline in -ledit... " >&6; }
25477 if test ${ac_cv_lib_edit_readline+y}
25478 then :
25479 printf %s "(cached) " >&6
25480 else $as_nop
25481 ac_check_lib_save_LIBS=$LIBS
25482 LIBS="-ledit $LIBS"
25483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25484 /* end confdefs.h. */
25485
25486 /* Override any GCC internal prototype to avoid an error.
25487 Use char because int might match the return type of a GCC
25488 builtin and then its argument prototype would still apply. */
25489 char readline ();
25490 int
25491 main (void)
25492 {
25493 return readline ();
25494 ;
25495 return 0;
25496 }
25497 _ACEOF
25498 if ac_fn_c_try_link "$LINENO"
25499 then :
25500 ac_cv_lib_edit_readline=yes
25501 else $as_nop
25502 ac_cv_lib_edit_readline=no
25503 fi
25504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25505 conftest$ac_exeext conftest.$ac_ext
25506 LIBS=$ac_check_lib_save_LIBS
25507 fi
25508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
25509 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
25510 if test "x$ac_cv_lib_edit_readline" = xyes
25511 then :
25512
25513 LIBREADLINE=edit
25514 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25515
25516 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
25517 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
25518
25519 else $as_nop
25520 with_readline=no
25521 fi
25522
25523
25524 else $as_nop
25525 with_readline=no
25526 fi
25527
25528 done
25529
25530 CFLAGS=$save_CFLAGS
25531 CPPFLAGS=$save_CPPFLAGS
25532 LDFLAGS=$save_LDFLAGS
25533 LIBS=$save_LIBS
25534
25535
25536
25537 elif test $pkg_failed = untried; then
25538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25539 printf "%s\n" "no" >&6; }
25540
25541 save_CFLAGS=$CFLAGS
25542 save_CPPFLAGS=$CPPFLAGS
25543 save_LDFLAGS=$LDFLAGS
25544 save_LIBS=$LIBS
25545
25546
25547 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
25548 LIBS="$LIBS $LIBEDIT_LIBS"
25549 for ac_header in editline/readline.h
25550 do :
25551 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
25552 if test "x$ac_cv_header_editline_readline_h" = xyes
25553 then :
25554 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
25555
25556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
25557 printf %s "checking for readline in -ledit... " >&6; }
25558 if test ${ac_cv_lib_edit_readline+y}
25559 then :
25560 printf %s "(cached) " >&6
25561 else $as_nop
25562 ac_check_lib_save_LIBS=$LIBS
25563 LIBS="-ledit $LIBS"
25564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565 /* end confdefs.h. */
25566
25567 /* Override any GCC internal prototype to avoid an error.
25568 Use char because int might match the return type of a GCC
25569 builtin and then its argument prototype would still apply. */
25570 char readline ();
25571 int
25572 main (void)
25573 {
25574 return readline ();
25575 ;
25576 return 0;
25577 }
25578 _ACEOF
25579 if ac_fn_c_try_link "$LINENO"
25580 then :
25581 ac_cv_lib_edit_readline=yes
25582 else $as_nop
25583 ac_cv_lib_edit_readline=no
25584 fi
25585 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25586 conftest$ac_exeext conftest.$ac_ext
25587 LIBS=$ac_check_lib_save_LIBS
25588 fi
25589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
25590 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
25591 if test "x$ac_cv_lib_edit_readline" = xyes
25592 then :
25593
25594 LIBREADLINE=edit
25595 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25596
25597 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
25598 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
25599
25600 else $as_nop
25601 with_readline=no
25602 fi
25603
25604
25605 else $as_nop
25606 with_readline=no
25607 fi
25608
25609 done
25610
25611 CFLAGS=$save_CFLAGS
25612 CPPFLAGS=$save_CPPFLAGS
25613 LDFLAGS=$save_LDFLAGS
25614 LIBS=$save_LIBS
25615
25616
25617
25618 else
25619 LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
25620 LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
25621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25622 printf "%s\n" "yes" >&6; }
25623
25624 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25625
25626 LIBREADLINE=edit
25627 READLINE_CFLAGS=$LIBEDIT_CFLAGS
25628 READLINE_LIBS=$LIBEDIT_LIBS
25629
25630 fi
25631
25632 fi
25633
25634 READLINE_CFLAGS=$(echo $READLINE_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
25635
25636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline" >&5
25637 printf %s "checking how to link readline... " >&6; }
25638 if test "x$with_readline" = xno
25639 then :
25640
25641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25642 printf "%s\n" "no" >&6; }
25643
25644 else $as_nop
25645
25646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&5
25647 printf "%s\n" "$with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&6; }
25648
25649 save_CFLAGS=$CFLAGS
25650 save_CPPFLAGS=$CPPFLAGS
25651 save_LDFLAGS=$LDFLAGS
25652 save_LIBS=$LIBS
25653
25654
25655 CPPFLAGS="$CPPFLAGS $READLINE_CFLAGS"
25656 LIBS="$LIBS $READLINE_LIBS"
25657 LIBS_SAVE=$LIBS
25658
25659
25660
25661 # check for readline 2.2
25662 ac_fn_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" "
25663 #include <stdio.h> /* Must be first for Gnu Readline */
25664 #ifdef WITH_EDITLINE
25665 # include <editline/readline.h>
25666 #else
25667 # include <readline/readline.h>
25668 # include <readline/history.h>
25669 #endif
25670
25671 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25672 if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes
25673 then :
25674
25675
25676 printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
25677
25678
25679 fi
25680
25681 ac_fn_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" "
25682 #include <stdio.h> /* Must be first for Gnu Readline */
25683 #ifdef WITH_EDITLINE
25684 # include <editline/readline.h>
25685 #else
25686 # include <readline/readline.h>
25687 # include <readline/history.h>
25688 #endif
25689
25690 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25691 if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes
25692 then :
25693
25694
25695 printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
25696
25697
25698 fi
25699
25700 # check for readline 4.0
25701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5
25702 printf %s "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; }
25703 if test ${ac_cv_readline_rl_pre_input_hook+y}
25704 then :
25705 printf %s "(cached) " >&6
25706 else $as_nop
25707
25708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709 /* end confdefs.h. */
25710
25711 #include <stdio.h> /* Must be first for Gnu Readline */
25712 #ifdef WITH_EDITLINE
25713 # include <editline/readline.h>
25714 #else
25715 # include <readline/readline.h>
25716 # include <readline/history.h>
25717 #endif
25718
25719 int
25720 main (void)
25721 {
25722 void *x = rl_pre_input_hook
25723 ;
25724 return 0;
25725 }
25726 _ACEOF
25727 if ac_fn_c_try_link "$LINENO"
25728 then :
25729 ac_cv_readline_rl_pre_input_hook=yes
25730 else $as_nop
25731 ac_cv_readline_rl_pre_input_hook=no
25732
25733 fi
25734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25735 conftest$ac_exeext conftest.$ac_ext
25736
25737 fi
25738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_pre_input_hook" >&5
25739 printf "%s\n" "$ac_cv_readline_rl_pre_input_hook" >&6; }
25740 if test "x$ac_cv_readline_rl_pre_input_hook" = xyes
25741 then :
25742
25743
25744 printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
25745
25746
25747 fi
25748
25749 # also in 4.0
25750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5
25751 printf %s "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; }
25752 if test ${ac_cv_readline_rl_completion_display_matches_hook+y}
25753 then :
25754 printf %s "(cached) " >&6
25755 else $as_nop
25756
25757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25758 /* end confdefs.h. */
25759
25760 #include <stdio.h> /* Must be first for Gnu Readline */
25761 #ifdef WITH_EDITLINE
25762 # include <editline/readline.h>
25763 #else
25764 # include <readline/readline.h>
25765 # include <readline/history.h>
25766 #endif
25767
25768 int
25769 main (void)
25770 {
25771 void *x = rl_completion_display_matches_hook
25772 ;
25773 return 0;
25774 }
25775 _ACEOF
25776 if ac_fn_c_try_link "$LINENO"
25777 then :
25778 ac_cv_readline_rl_completion_display_matches_hook=yes
25779 else $as_nop
25780 ac_cv_readline_rl_completion_display_matches_hook=no
25781
25782 fi
25783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25784 conftest$ac_exeext conftest.$ac_ext
25785
25786 fi
25787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_display_matches_hook" >&5
25788 printf "%s\n" "$ac_cv_readline_rl_completion_display_matches_hook" >&6; }
25789 if test "x$ac_cv_readline_rl_completion_display_matches_hook" = xyes
25790 then :
25791
25792
25793 printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
25794
25795
25796 fi
25797
25798 # also in 4.0, but not in editline
25799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5
25800 printf %s "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; }
25801 if test ${ac_cv_readline_rl_resize_terminal+y}
25802 then :
25803 printf %s "(cached) " >&6
25804 else $as_nop
25805
25806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25807 /* end confdefs.h. */
25808
25809 #include <stdio.h> /* Must be first for Gnu Readline */
25810 #ifdef WITH_EDITLINE
25811 # include <editline/readline.h>
25812 #else
25813 # include <readline/readline.h>
25814 # include <readline/history.h>
25815 #endif
25816
25817 int
25818 main (void)
25819 {
25820 void *x = rl_resize_terminal
25821 ;
25822 return 0;
25823 }
25824 _ACEOF
25825 if ac_fn_c_try_link "$LINENO"
25826 then :
25827 ac_cv_readline_rl_resize_terminal=yes
25828 else $as_nop
25829 ac_cv_readline_rl_resize_terminal=no
25830
25831 fi
25832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25833 conftest$ac_exeext conftest.$ac_ext
25834
25835 fi
25836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_resize_terminal" >&5
25837 printf "%s\n" "$ac_cv_readline_rl_resize_terminal" >&6; }
25838 if test "x$ac_cv_readline_rl_resize_terminal" = xyes
25839 then :
25840
25841
25842 printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
25843
25844
25845 fi
25846
25847 # check for readline 4.2
25848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5
25849 printf %s "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; }
25850 if test ${ac_cv_readline_rl_completion_matches+y}
25851 then :
25852 printf %s "(cached) " >&6
25853 else $as_nop
25854
25855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h. */
25857
25858 #include <stdio.h> /* Must be first for Gnu Readline */
25859 #ifdef WITH_EDITLINE
25860 # include <editline/readline.h>
25861 #else
25862 # include <readline/readline.h>
25863 # include <readline/history.h>
25864 #endif
25865
25866 int
25867 main (void)
25868 {
25869 void *x = rl_completion_matches
25870 ;
25871 return 0;
25872 }
25873 _ACEOF
25874 if ac_fn_c_try_link "$LINENO"
25875 then :
25876 ac_cv_readline_rl_completion_matches=yes
25877 else $as_nop
25878 ac_cv_readline_rl_completion_matches=no
25879
25880 fi
25881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25882 conftest$ac_exeext conftest.$ac_ext
25883
25884 fi
25885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_matches" >&5
25886 printf "%s\n" "$ac_cv_readline_rl_completion_matches" >&6; }
25887 if test "x$ac_cv_readline_rl_completion_matches" = xyes
25888 then :
25889
25890
25891 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
25892
25893
25894 fi
25895
25896 # also in readline 4.2
25897 ac_fn_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" "
25898 #include <stdio.h> /* Must be first for Gnu Readline */
25899 #ifdef WITH_EDITLINE
25900 # include <editline/readline.h>
25901 #else
25902 # include <readline/readline.h>
25903 # include <readline/history.h>
25904 #endif
25905
25906 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25907 if test "x$ac_cv_have_decl_rl_catch_signals" = xyes
25908 then :
25909
25910
25911 printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
25912
25913
25914 fi
25915
25916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5
25917 printf %s "checking for append_history in -l$LIBREADLINE... " >&6; }
25918 if test ${ac_cv_readline_append_history+y}
25919 then :
25920 printf %s "(cached) " >&6
25921 else $as_nop
25922
25923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25924 /* end confdefs.h. */
25925
25926 #include <stdio.h> /* Must be first for Gnu Readline */
25927 #ifdef WITH_EDITLINE
25928 # include <editline/readline.h>
25929 #else
25930 # include <readline/readline.h>
25931 # include <readline/history.h>
25932 #endif
25933
25934 int
25935 main (void)
25936 {
25937 void *x = append_history
25938 ;
25939 return 0;
25940 }
25941 _ACEOF
25942 if ac_fn_c_try_link "$LINENO"
25943 then :
25944 ac_cv_readline_append_history=yes
25945 else $as_nop
25946 ac_cv_readline_append_history=no
25947
25948 fi
25949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25950 conftest$ac_exeext conftest.$ac_ext
25951
25952 fi
25953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_append_history" >&5
25954 printf "%s\n" "$ac_cv_readline_append_history" >&6; }
25955 if test "x$ac_cv_readline_append_history" = xyes
25956 then :
25957
25958
25959 printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
25960
25961
25962 fi
25963
25964 # in readline as well as newer editline (April 2023)
25965 ac_fn_c_check_type "$LINENO" "rl_compdisp_func_t" "ac_cv_type_rl_compdisp_func_t" "
25966 #include <stdio.h> /* Must be first for Gnu Readline */
25967 #ifdef WITH_EDITLINE
25968 # include <editline/readline.h>
25969 #else
25970 # include <readline/readline.h>
25971 # include <readline/history.h>
25972 #endif
25973
25974 "
25975 if test "x$ac_cv_type_rl_compdisp_func_t" = xyes
25976 then :
25977
25978 printf "%s\n" "#define HAVE_RL_COMPDISP_FUNC_T 1" >>confdefs.h
25979
25980
25981 fi
25982
25983
25984 # Some editline versions declare rl_startup_hook as taking no args, others
25985 # declare it as taking 2.
25986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rl_startup_hook takes arguments" >&5
25987 printf %s "checking if rl_startup_hook takes arguments... " >&6; }
25988 if test ${ac_cv_readline_rl_startup_hook_takes_args+y}
25989 then :
25990 printf %s "(cached) " >&6
25991 else $as_nop
25992
25993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25994 /* end confdefs.h. */
25995
25996 #include <stdio.h> /* Must be first for Gnu Readline */
25997 #ifdef WITH_EDITLINE
25998 # include <editline/readline.h>
25999 #else
26000 # include <readline/readline.h>
26001 # include <readline/history.h>
26002 #endif
26003
26004 extern int test_hook_func(const char *text, int state);
26005 int
26006 main (void)
26007 {
26008 rl_startup_hook=test_hook_func;
26009 ;
26010 return 0;
26011 }
26012 _ACEOF
26013 if ac_fn_c_try_compile "$LINENO"
26014 then :
26015 ac_cv_readline_rl_startup_hook_takes_args=yes
26016 else $as_nop
26017 ac_cv_readline_rl_startup_hook_takes_args=no
26018
26019 fi
26020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26021
26022 fi
26023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_startup_hook_takes_args" >&5
26024 printf "%s\n" "$ac_cv_readline_rl_startup_hook_takes_args" >&6; }
26025 if test "x$ac_cv_readline_rl_startup_hook_takes_args" = xyes
26026 then :
26027
26028
26029 printf "%s\n" "#define Py_RL_STARTUP_HOOK_TAKES_ARGS 1" >>confdefs.h
26030
26031
26032 fi
26033
26034
26035
26036 CFLAGS=$save_CFLAGS
26037 CPPFLAGS=$save_CPPFLAGS
26038 LDFLAGS=$save_LDFLAGS
26039 LIBS=$save_LIBS
26040
26041
26042 fi
26043
26044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
26045 printf %s "checking for broken nice()... " >&6; }
26046 if test ${ac_cv_broken_nice+y}
26047 then :
26048 printf %s "(cached) " >&6
26049 else $as_nop
26050
26051 if test "$cross_compiling" = yes
26052 then :
26053 ac_cv_broken_nice=no
26054 else $as_nop
26055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056 /* end confdefs.h. */
26057
26058 #include <stdlib.h>
26059 #include <unistd.h>
26060 int main(void)
26061 {
26062 int val1 = nice(1);
26063 if (val1 != -1 && val1 == nice(2))
26064 exit(0);
26065 exit(1);
26066 }
26067
26068 _ACEOF
26069 if ac_fn_c_try_run "$LINENO"
26070 then :
26071 ac_cv_broken_nice=yes
26072 else $as_nop
26073 ac_cv_broken_nice=no
26074 fi
26075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26076 conftest.$ac_objext conftest.beam conftest.$ac_ext
26077 fi
26078
26079 fi
26080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
26081 printf "%s\n" "$ac_cv_broken_nice" >&6; }
26082 if test "$ac_cv_broken_nice" = yes
26083 then
26084
26085 printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h
26086
26087 fi
26088
26089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
26090 printf %s "checking for broken poll()... " >&6; }
26091 if test ${ac_cv_broken_poll+y}
26092 then :
26093 printf %s "(cached) " >&6
26094 else $as_nop
26095 if test "$cross_compiling" = yes
26096 then :
26097 ac_cv_broken_poll=no
26098 else $as_nop
26099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26100 /* end confdefs.h. */
26101
26102 #include <poll.h>
26103 #include <unistd.h>
26104
26105 int main(void)
26106 {
26107 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26108 int poll_test;
26109
26110 close (42);
26111
26112 poll_test = poll(&poll_struct, 1, 0);
26113 if (poll_test < 0)
26114 return 0;
26115 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26116 return 0;
26117 else
26118 return 1;
26119 }
26120
26121 _ACEOF
26122 if ac_fn_c_try_run "$LINENO"
26123 then :
26124 ac_cv_broken_poll=yes
26125 else $as_nop
26126 ac_cv_broken_poll=no
26127 fi
26128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26129 conftest.$ac_objext conftest.beam conftest.$ac_ext
26130 fi
26131
26132 fi
26133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
26134 printf "%s\n" "$ac_cv_broken_poll" >&6; }
26135 if test "$ac_cv_broken_poll" = yes
26136 then
26137
26138 printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h
26139
26140 fi
26141
26142 # check tzset(3) exists and works like we expect it to
26143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
26144 printf %s "checking for working tzset()... " >&6; }
26145 if test ${ac_cv_working_tzset+y}
26146 then :
26147 printf %s "(cached) " >&6
26148 else $as_nop
26149
26150 if test "$cross_compiling" = yes
26151 then :
26152 ac_cv_working_tzset=no
26153 else $as_nop
26154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26155 /* end confdefs.h. */
26156
26157 #include <stdlib.h>
26158 #include <time.h>
26159 #include <string.h>
26160
26161 #if HAVE_TZNAME
26162 extern char *tzname[];
26163 #endif
26164
26165 int main(void)
26166 {
26167 /* Note that we need to ensure that not only does tzset(3)
26168 do 'something' with localtime, but it works as documented
26169 in the library reference and as expected by the test suite.
26170 This includes making sure that tzname is set properly if
26171 tm->tm_zone does not exist since it is the alternative way
26172 of getting timezone info.
26173
26174 Red Hat 6.2 doesn't understand the southern hemisphere
26175 after New Year's Day.
26176 */
26177
26178 time_t groundhogday = 1044144000; /* GMT-based */
26179 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26180
26181 putenv("TZ=UTC+0");
26182 tzset();
26183 if (localtime(&groundhogday)->tm_hour != 0)
26184 exit(1);
26185 #if HAVE_TZNAME
26186 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26187 if (strcmp(tzname[0], "UTC") ||
26188 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26189 exit(1);
26190 #endif
26191
26192 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26193 tzset();
26194 if (localtime(&groundhogday)->tm_hour != 19)
26195 exit(1);
26196 #if HAVE_TZNAME
26197 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26198 exit(1);
26199 #endif
26200
26201 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26202 tzset();
26203 if (localtime(&groundhogday)->tm_hour != 11)
26204 exit(1);
26205 #if HAVE_TZNAME
26206 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26207 exit(1);
26208 #endif
26209
26210 #if HAVE_STRUCT_TM_TM_ZONE
26211 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26212 exit(1);
26213 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26214 exit(1);
26215 #endif
26216
26217 exit(0);
26218 }
26219
26220 _ACEOF
26221 if ac_fn_c_try_run "$LINENO"
26222 then :
26223 ac_cv_working_tzset=yes
26224 else $as_nop
26225 ac_cv_working_tzset=no
26226 fi
26227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26228 conftest.$ac_objext conftest.beam conftest.$ac_ext
26229 fi
26230
26231 fi
26232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
26233 printf "%s\n" "$ac_cv_working_tzset" >&6; }
26234 if test "$ac_cv_working_tzset" = yes
26235 then
26236
26237 printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h
26238
26239 fi
26240
26241 # Look for subsecond timestamps in struct stat
26242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
26243 printf %s "checking for tv_nsec in struct stat... " >&6; }
26244 if test ${ac_cv_stat_tv_nsec+y}
26245 then :
26246 printf %s "(cached) " >&6
26247 else $as_nop
26248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26249 /* end confdefs.h. */
26250 #include <sys/stat.h>
26251 int
26252 main (void)
26253 {
26254
26255 struct stat st;
26256 st.st_mtim.tv_nsec = 1;
26257
26258 ;
26259 return 0;
26260 }
26261 _ACEOF
26262 if ac_fn_c_try_compile "$LINENO"
26263 then :
26264 ac_cv_stat_tv_nsec=yes
26265 else $as_nop
26266 ac_cv_stat_tv_nsec=no
26267 fi
26268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26269 fi
26270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
26271 printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; }
26272 if test "$ac_cv_stat_tv_nsec" = yes
26273 then
26274
26275 printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
26276
26277 fi
26278
26279 # Look for BSD style subsecond timestamps in struct stat
26280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
26281 printf %s "checking for tv_nsec2 in struct stat... " >&6; }
26282 if test ${ac_cv_stat_tv_nsec2+y}
26283 then :
26284 printf %s "(cached) " >&6
26285 else $as_nop
26286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26287 /* end confdefs.h. */
26288 #include <sys/stat.h>
26289 int
26290 main (void)
26291 {
26292
26293 struct stat st;
26294 st.st_mtimespec.tv_nsec = 1;
26295
26296 ;
26297 return 0;
26298 }
26299 _ACEOF
26300 if ac_fn_c_try_compile "$LINENO"
26301 then :
26302 ac_cv_stat_tv_nsec2=yes
26303 else $as_nop
26304 ac_cv_stat_tv_nsec2=no
26305 fi
26306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26307 fi
26308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
26309 printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; }
26310 if test "$ac_cv_stat_tv_nsec2" = yes
26311 then
26312
26313 printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
26314
26315 fi
26316
26317 have_curses=no
26318 have_panel=no
26319
26320
26321
26322 # Check for ncursesw/panelw first. If that fails, try ncurses/panel.
26323
26324
26325
26326 pkg_failed=no
26327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
26328 printf %s "checking for ncursesw... " >&6; }
26329
26330 if test -n "$CURSES_CFLAGS"; then
26331 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
26332 elif test -n "$PKG_CONFIG"; then
26333 if test -n "$PKG_CONFIG" && \
26334 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
26335 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
26336 ac_status=$?
26337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26338 test $ac_status = 0; }; then
26339 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
26340 test "x$?" != "x0" && pkg_failed=yes
26341 else
26342 pkg_failed=yes
26343 fi
26344 else
26345 pkg_failed=untried
26346 fi
26347 if test -n "$CURSES_LIBS"; then
26348 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
26349 elif test -n "$PKG_CONFIG"; then
26350 if test -n "$PKG_CONFIG" && \
26351 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
26352 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
26353 ac_status=$?
26354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26355 test $ac_status = 0; }; then
26356 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
26357 test "x$?" != "x0" && pkg_failed=yes
26358 else
26359 pkg_failed=yes
26360 fi
26361 else
26362 pkg_failed=untried
26363 fi
26364
26365
26366
26367 if test $pkg_failed = yes; then
26368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26369 printf "%s\n" "no" >&6; }
26370
26371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26372 _pkg_short_errors_supported=yes
26373 else
26374 _pkg_short_errors_supported=no
26375 fi
26376 if test $_pkg_short_errors_supported = yes; then
26377 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
26378 else
26379 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
26380 fi
26381 # Put the nasty error message in config.log where it belongs
26382 echo "$CURSES_PKG_ERRORS" >&5
26383
26384 have_curses=no
26385 elif test $pkg_failed = untried; then
26386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26387 printf "%s\n" "no" >&6; }
26388 have_curses=no
26389 else
26390 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
26391 CURSES_LIBS=$pkg_cv_CURSES_LIBS
26392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26393 printf "%s\n" "yes" >&6; }
26394
26395 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
26396
26397 have_curses=yes
26398
26399 pkg_failed=no
26400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panelw" >&5
26401 printf %s "checking for panelw... " >&6; }
26402
26403 if test -n "$PANEL_CFLAGS"; then
26404 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
26405 elif test -n "$PKG_CONFIG"; then
26406 if test -n "$PKG_CONFIG" && \
26407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
26408 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
26409 ac_status=$?
26410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26411 test $ac_status = 0; }; then
26412 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panelw" 2>/dev/null`
26413 test "x$?" != "x0" && pkg_failed=yes
26414 else
26415 pkg_failed=yes
26416 fi
26417 else
26418 pkg_failed=untried
26419 fi
26420 if test -n "$PANEL_LIBS"; then
26421 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
26422 elif test -n "$PKG_CONFIG"; then
26423 if test -n "$PKG_CONFIG" && \
26424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
26425 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
26426 ac_status=$?
26427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26428 test $ac_status = 0; }; then
26429 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panelw" 2>/dev/null`
26430 test "x$?" != "x0" && pkg_failed=yes
26431 else
26432 pkg_failed=yes
26433 fi
26434 else
26435 pkg_failed=untried
26436 fi
26437
26438
26439
26440 if test $pkg_failed = yes; then
26441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26442 printf "%s\n" "no" >&6; }
26443
26444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26445 _pkg_short_errors_supported=yes
26446 else
26447 _pkg_short_errors_supported=no
26448 fi
26449 if test $_pkg_short_errors_supported = yes; then
26450 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panelw" 2>&1`
26451 else
26452 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panelw" 2>&1`
26453 fi
26454 # Put the nasty error message in config.log where it belongs
26455 echo "$PANEL_PKG_ERRORS" >&5
26456
26457 have_panel=no
26458 elif test $pkg_failed = untried; then
26459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26460 printf "%s\n" "no" >&6; }
26461 have_panel=no
26462 else
26463 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
26464 PANEL_LIBS=$pkg_cv_PANEL_LIBS
26465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26466 printf "%s\n" "yes" >&6; }
26467
26468 printf "%s\n" "#define HAVE_PANELW 1" >>confdefs.h
26469
26470 have_panel=yes
26471 fi
26472 fi
26473
26474
26475 if test "x$have_curses" = xno
26476 then :
26477
26478
26479
26480 pkg_failed=no
26481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
26482 printf %s "checking for ncurses... " >&6; }
26483
26484 if test -n "$CURSES_CFLAGS"; then
26485 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
26486 elif test -n "$PKG_CONFIG"; then
26487 if test -n "$PKG_CONFIG" && \
26488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
26489 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
26490 ac_status=$?
26491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26492 test $ac_status = 0; }; then
26493 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
26494 test "x$?" != "x0" && pkg_failed=yes
26495 else
26496 pkg_failed=yes
26497 fi
26498 else
26499 pkg_failed=untried
26500 fi
26501 if test -n "$CURSES_LIBS"; then
26502 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
26503 elif test -n "$PKG_CONFIG"; then
26504 if test -n "$PKG_CONFIG" && \
26505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
26506 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
26507 ac_status=$?
26508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26509 test $ac_status = 0; }; then
26510 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
26511 test "x$?" != "x0" && pkg_failed=yes
26512 else
26513 pkg_failed=yes
26514 fi
26515 else
26516 pkg_failed=untried
26517 fi
26518
26519
26520
26521 if test $pkg_failed = yes; then
26522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26523 printf "%s\n" "no" >&6; }
26524
26525 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26526 _pkg_short_errors_supported=yes
26527 else
26528 _pkg_short_errors_supported=no
26529 fi
26530 if test $_pkg_short_errors_supported = yes; then
26531 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
26532 else
26533 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
26534 fi
26535 # Put the nasty error message in config.log where it belongs
26536 echo "$CURSES_PKG_ERRORS" >&5
26537
26538 have_curses=no
26539 elif test $pkg_failed = untried; then
26540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26541 printf "%s\n" "no" >&6; }
26542 have_curses=no
26543 else
26544 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
26545 CURSES_LIBS=$pkg_cv_CURSES_LIBS
26546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26547 printf "%s\n" "yes" >&6; }
26548
26549 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
26550
26551 have_curses=yes
26552
26553 pkg_failed=no
26554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panel" >&5
26555 printf %s "checking for panel... " >&6; }
26556
26557 if test -n "$PANEL_CFLAGS"; then
26558 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
26559 elif test -n "$PKG_CONFIG"; then
26560 if test -n "$PKG_CONFIG" && \
26561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
26562 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
26563 ac_status=$?
26564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26565 test $ac_status = 0; }; then
26566 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panel" 2>/dev/null`
26567 test "x$?" != "x0" && pkg_failed=yes
26568 else
26569 pkg_failed=yes
26570 fi
26571 else
26572 pkg_failed=untried
26573 fi
26574 if test -n "$PANEL_LIBS"; then
26575 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
26576 elif test -n "$PKG_CONFIG"; then
26577 if test -n "$PKG_CONFIG" && \
26578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
26579 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
26580 ac_status=$?
26581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26582 test $ac_status = 0; }; then
26583 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panel" 2>/dev/null`
26584 test "x$?" != "x0" && pkg_failed=yes
26585 else
26586 pkg_failed=yes
26587 fi
26588 else
26589 pkg_failed=untried
26590 fi
26591
26592
26593
26594 if test $pkg_failed = yes; then
26595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26596 printf "%s\n" "no" >&6; }
26597
26598 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26599 _pkg_short_errors_supported=yes
26600 else
26601 _pkg_short_errors_supported=no
26602 fi
26603 if test $_pkg_short_errors_supported = yes; then
26604 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panel" 2>&1`
26605 else
26606 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panel" 2>&1`
26607 fi
26608 # Put the nasty error message in config.log where it belongs
26609 echo "$PANEL_PKG_ERRORS" >&5
26610
26611 have_panel=no
26612 elif test $pkg_failed = untried; then
26613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26614 printf "%s\n" "no" >&6; }
26615 have_panel=no
26616 else
26617 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
26618 PANEL_LIBS=$pkg_cv_PANEL_LIBS
26619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26620 printf "%s\n" "yes" >&6; }
26621
26622 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
26623
26624 have_panel=yes
26625 fi
26626 fi
26627
26628
26629 fi
26630
26631 save_CFLAGS=$CFLAGS
26632 save_CPPFLAGS=$CPPFLAGS
26633 save_LDFLAGS=$LDFLAGS
26634 save_LIBS=$LIBS
26635
26636
26637 # Make sure we've got the header defines.
26638 as_fn_append CPPFLAGS " $CURSES_CFLAGS $PANEL_CFLAGS"
26639 ac_fn_c_check_header_compile "$LINENO" "ncursesw/curses.h" "ac_cv_header_ncursesw_curses_h" "$ac_includes_default"
26640 if test "x$ac_cv_header_ncursesw_curses_h" = xyes
26641 then :
26642 printf "%s\n" "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h
26643
26644 fi
26645 ac_fn_c_check_header_compile "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
26646 if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes
26647 then :
26648 printf "%s\n" "#define HAVE_NCURSESW_NCURSES_H 1" >>confdefs.h
26649
26650 fi
26651 ac_fn_c_check_header_compile "$LINENO" "ncursesw/panel.h" "ac_cv_header_ncursesw_panel_h" "$ac_includes_default"
26652 if test "x$ac_cv_header_ncursesw_panel_h" = xyes
26653 then :
26654 printf "%s\n" "#define HAVE_NCURSESW_PANEL_H 1" >>confdefs.h
26655
26656 fi
26657 ac_fn_c_check_header_compile "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
26658 if test "x$ac_cv_header_ncurses_curses_h" = xyes
26659 then :
26660 printf "%s\n" "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h
26661
26662 fi
26663 ac_fn_c_check_header_compile "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default"
26664 if test "x$ac_cv_header_ncurses_ncurses_h" = xyes
26665 then :
26666 printf "%s\n" "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h
26667
26668 fi
26669 ac_fn_c_check_header_compile "$LINENO" "ncurses/panel.h" "ac_cv_header_ncurses_panel_h" "$ac_includes_default"
26670 if test "x$ac_cv_header_ncurses_panel_h" = xyes
26671 then :
26672 printf "%s\n" "#define HAVE_NCURSES_PANEL_H 1" >>confdefs.h
26673
26674 fi
26675 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
26676 if test "x$ac_cv_header_curses_h" = xyes
26677 then :
26678 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
26679
26680 fi
26681 ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
26682 if test "x$ac_cv_header_ncurses_h" = xyes
26683 then :
26684 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
26685
26686 fi
26687 ac_fn_c_check_header_compile "$LINENO" "panel.h" "ac_cv_header_panel_h" "$ac_includes_default"
26688 if test "x$ac_cv_header_panel_h" = xyes
26689 then :
26690 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
26691
26692 fi
26693
26694
26695 # Check that we're able to link with crucial curses/panel functions. This
26696 # also serves as a fallback in case pkg-config failed.
26697 as_fn_append LIBS " $CURSES_LIBS $PANEL_LIBS"
26698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5
26699 printf %s "checking for library containing initscr... " >&6; }
26700 if test ${ac_cv_search_initscr+y}
26701 then :
26702 printf %s "(cached) " >&6
26703 else $as_nop
26704 ac_func_search_save_LIBS=$LIBS
26705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26706 /* end confdefs.h. */
26707
26708 /* Override any GCC internal prototype to avoid an error.
26709 Use char because int might match the return type of a GCC
26710 builtin and then its argument prototype would still apply. */
26711 char initscr ();
26712 int
26713 main (void)
26714 {
26715 return initscr ();
26716 ;
26717 return 0;
26718 }
26719 _ACEOF
26720 for ac_lib in '' ncursesw ncurses
26721 do
26722 if test -z "$ac_lib"; then
26723 ac_res="none required"
26724 else
26725 ac_res=-l$ac_lib
26726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26727 fi
26728 if ac_fn_c_try_link "$LINENO"
26729 then :
26730 ac_cv_search_initscr=$ac_res
26731 fi
26732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26733 conftest$ac_exeext
26734 if test ${ac_cv_search_initscr+y}
26735 then :
26736 break
26737 fi
26738 done
26739 if test ${ac_cv_search_initscr+y}
26740 then :
26741
26742 else $as_nop
26743 ac_cv_search_initscr=no
26744 fi
26745 rm conftest.$ac_ext
26746 LIBS=$ac_func_search_save_LIBS
26747 fi
26748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5
26749 printf "%s\n" "$ac_cv_search_initscr" >&6; }
26750 ac_res=$ac_cv_search_initscr
26751 if test "$ac_res" != no
26752 then :
26753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26754 if test "x$have_curses" = xno
26755 then :
26756 have_curses=yes
26757 CURSES_LIBS=${CURSES_LIBS-"$ac_cv_search_initscr"}
26758 fi
26759 else $as_nop
26760 have_curses=no
26761 fi
26762
26763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing update_panels" >&5
26764 printf %s "checking for library containing update_panels... " >&6; }
26765 if test ${ac_cv_search_update_panels+y}
26766 then :
26767 printf %s "(cached) " >&6
26768 else $as_nop
26769 ac_func_search_save_LIBS=$LIBS
26770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26771 /* end confdefs.h. */
26772
26773 /* Override any GCC internal prototype to avoid an error.
26774 Use char because int might match the return type of a GCC
26775 builtin and then its argument prototype would still apply. */
26776 char update_panels ();
26777 int
26778 main (void)
26779 {
26780 return update_panels ();
26781 ;
26782 return 0;
26783 }
26784 _ACEOF
26785 for ac_lib in '' panelw panel
26786 do
26787 if test -z "$ac_lib"; then
26788 ac_res="none required"
26789 else
26790 ac_res=-l$ac_lib
26791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26792 fi
26793 if ac_fn_c_try_link "$LINENO"
26794 then :
26795 ac_cv_search_update_panels=$ac_res
26796 fi
26797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26798 conftest$ac_exeext
26799 if test ${ac_cv_search_update_panels+y}
26800 then :
26801 break
26802 fi
26803 done
26804 if test ${ac_cv_search_update_panels+y}
26805 then :
26806
26807 else $as_nop
26808 ac_cv_search_update_panels=no
26809 fi
26810 rm conftest.$ac_ext
26811 LIBS=$ac_func_search_save_LIBS
26812 fi
26813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_update_panels" >&5
26814 printf "%s\n" "$ac_cv_search_update_panels" >&6; }
26815 ac_res=$ac_cv_search_update_panels
26816 if test "$ac_res" != no
26817 then :
26818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26819 if test "x$have_panel" = xno
26820 then :
26821 have_panel=yes
26822 PANEL_LIBS=${PANEL_LIBS-"$ac_cv_search_update_panels"}
26823 fi
26824 else $as_nop
26825 have_panel=no
26826 fi
26827
26828
26829
26830
26831 if test "have_curses" != "no"
26832 then :
26833
26834 CURSES_CFLAGS=$(echo $CURSES_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
26835
26836 if test "x$ac_sys_system" = xDarwin
26837 then :
26838
26839
26840 as_fn_append CURSES_CFLAGS " -D_XOPEN_SOURCE_EXTENDED=1"
26841
26842 fi
26843
26844 PANEL_CFLAGS=$(echo $PANEL_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
26845
26846 if test "x$have_curses" = xno
26847 then :
26848
26849 else $as_nop
26850
26851 save_curses_cppflags=$CPPFLAGS
26852 as_fn_append CPPFLAGS " $CURSES_CFLAGS"
26853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether curses supports wide characters" >&5
26854 printf %s "checking whether curses supports wide characters... " >&6; }
26855 if test ${ac_cv_curses_wide+y}
26856 then :
26857 printf %s "(cached) " >&6
26858 else $as_nop
26859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860 /* end confdefs.h. */
26861
26862 #define NCURSES_OPAQUE 0
26863 #if defined(HAVE_NCURSESW_NCURSES_H)
26864 # include <ncursesw/ncurses.h>
26865 #elif defined(HAVE_NCURSESW_CURSES_H)
26866 # include <ncursesw/curses.h>
26867 #elif defined(HAVE_NCURSES_NCURSES_H)
26868 # include <ncurses/ncurses.h>
26869 #elif defined(HAVE_NCURSES_CURSES_H)
26870 # include <ncurses/curses.h>
26871 #elif defined(HAVE_NCURSES_H)
26872 # include <ncurses.h>
26873 #elif defined(HAVE_CURSES_H)
26874 # include <curses.h>
26875 #endif
26876
26877 int
26878 main (void)
26879 {
26880
26881 cchar_t wcval;
26882 setcchar(&wcval, L"x", A_NORMAL, 0, NULL);
26883 add_wch(&wcval);
26884
26885 ;
26886 return 0;
26887 }
26888 _ACEOF
26889 if ac_fn_c_try_link "$LINENO"
26890 then :
26891 ac_cv_curses_wide=yes
26892 else $as_nop
26893 ac_cv_curses_wide=no
26894 fi
26895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26896 conftest$ac_exeext conftest.$ac_ext
26897 fi
26898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_curses_wide" >&5
26899 printf "%s\n" "$ac_cv_curses_wide" >&6; }
26900 CPPFLAGS=$save_curses_cppflags
26901 if test "x$ac_cv_curses_wide" = xyes
26902 then :
26903 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
26904
26905 fi
26906
26907 fi
26908
26909 # On Solaris, term.h requires curses.h
26910 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
26911 #define NCURSES_OPAQUE 0
26912 #if defined(HAVE_NCURSESW_NCURSES_H)
26913 # include <ncursesw/ncurses.h>
26914 #elif defined(HAVE_NCURSESW_CURSES_H)
26915 # include <ncursesw/curses.h>
26916 #elif defined(HAVE_NCURSES_NCURSES_H)
26917 # include <ncurses/ncurses.h>
26918 #elif defined(HAVE_NCURSES_CURSES_H)
26919 # include <ncurses/curses.h>
26920 #elif defined(HAVE_NCURSES_H)
26921 # include <ncurses.h>
26922 #elif defined(HAVE_CURSES_H)
26923 # include <curses.h>
26924 #endif
26925
26926 "
26927 if test "x$ac_cv_header_term_h" = xyes
26928 then :
26929 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
26930
26931 fi
26932
26933
26934 # On HP/UX 11.0, mvwdelch is a block with a return statement
26935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
26936 printf %s "checking whether mvwdelch is an expression... " >&6; }
26937 if test ${ac_cv_mvwdelch_is_expression+y}
26938 then :
26939 printf %s "(cached) " >&6
26940 else $as_nop
26941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26942 /* end confdefs.h. */
26943
26944 #define NCURSES_OPAQUE 0
26945 #if defined(HAVE_NCURSESW_NCURSES_H)
26946 # include <ncursesw/ncurses.h>
26947 #elif defined(HAVE_NCURSESW_CURSES_H)
26948 # include <ncursesw/curses.h>
26949 #elif defined(HAVE_NCURSES_NCURSES_H)
26950 # include <ncurses/ncurses.h>
26951 #elif defined(HAVE_NCURSES_CURSES_H)
26952 # include <ncurses/curses.h>
26953 #elif defined(HAVE_NCURSES_H)
26954 # include <ncurses.h>
26955 #elif defined(HAVE_CURSES_H)
26956 # include <curses.h>
26957 #endif
26958
26959 int
26960 main (void)
26961 {
26962
26963 int rtn;
26964 rtn = mvwdelch(0,0,0);
26965
26966 ;
26967 return 0;
26968 }
26969 _ACEOF
26970 if ac_fn_c_try_compile "$LINENO"
26971 then :
26972 ac_cv_mvwdelch_is_expression=yes
26973 else $as_nop
26974 ac_cv_mvwdelch_is_expression=no
26975 fi
26976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26977 fi
26978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
26979 printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; }
26980
26981 if test "$ac_cv_mvwdelch_is_expression" = yes
26982 then
26983
26984 printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
26985
26986 fi
26987
26988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
26989 printf %s "checking whether WINDOW has _flags... " >&6; }
26990 if test ${ac_cv_window_has_flags+y}
26991 then :
26992 printf %s "(cached) " >&6
26993 else $as_nop
26994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26995 /* end confdefs.h. */
26996
26997 #define NCURSES_OPAQUE 0
26998 #if defined(HAVE_NCURSESW_NCURSES_H)
26999 # include <ncursesw/ncurses.h>
27000 #elif defined(HAVE_NCURSESW_CURSES_H)
27001 # include <ncursesw/curses.h>
27002 #elif defined(HAVE_NCURSES_NCURSES_H)
27003 # include <ncurses/ncurses.h>
27004 #elif defined(HAVE_NCURSES_CURSES_H)
27005 # include <ncurses/curses.h>
27006 #elif defined(HAVE_NCURSES_H)
27007 # include <ncurses.h>
27008 #elif defined(HAVE_CURSES_H)
27009 # include <curses.h>
27010 #endif
27011
27012 int
27013 main (void)
27014 {
27015
27016 WINDOW *w;
27017 w->_flags = 0;
27018
27019 ;
27020 return 0;
27021 }
27022 _ACEOF
27023 if ac_fn_c_try_compile "$LINENO"
27024 then :
27025 ac_cv_window_has_flags=yes
27026 else $as_nop
27027 ac_cv_window_has_flags=no
27028 fi
27029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27030 fi
27031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
27032 printf "%s\n" "$ac_cv_window_has_flags" >&6; }
27033
27034
27035 if test "$ac_cv_window_has_flags" = yes
27036 then
27037
27038 printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
27039
27040 fi
27041
27042
27043
27044
27045
27046
27047
27048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_pad" >&5
27049 printf %s "checking for curses function is_pad... " >&6; }
27050 if test ${ac_cv_lib_curses_is_pad+y}
27051 then :
27052 printf %s "(cached) " >&6
27053 else $as_nop
27054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27055 /* end confdefs.h. */
27056
27057 #define NCURSES_OPAQUE 0
27058 #if defined(HAVE_NCURSESW_NCURSES_H)
27059 # include <ncursesw/ncurses.h>
27060 #elif defined(HAVE_NCURSESW_CURSES_H)
27061 # include <ncursesw/curses.h>
27062 #elif defined(HAVE_NCURSES_NCURSES_H)
27063 # include <ncurses/ncurses.h>
27064 #elif defined(HAVE_NCURSES_CURSES_H)
27065 # include <ncurses/curses.h>
27066 #elif defined(HAVE_NCURSES_H)
27067 # include <ncurses.h>
27068 #elif defined(HAVE_CURSES_H)
27069 # include <curses.h>
27070 #endif
27071
27072 int
27073 main (void)
27074 {
27075
27076 #ifndef is_pad
27077 void *x=is_pad
27078 #endif
27079
27080 ;
27081 return 0;
27082 }
27083 _ACEOF
27084 if ac_fn_c_try_compile "$LINENO"
27085 then :
27086 ac_cv_lib_curses_is_pad=yes
27087 else $as_nop
27088 ac_cv_lib_curses_is_pad=no
27089 fi
27090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27091
27092 fi
27093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_pad" >&5
27094 printf "%s\n" "$ac_cv_lib_curses_is_pad" >&6; }
27095 if test "x$ac_cv_lib_curses_is_pad" = xyes
27096 then :
27097
27098 printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
27099
27100 fi
27101
27102
27103
27104
27105
27106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_term_resized" >&5
27107 printf %s "checking for curses function is_term_resized... " >&6; }
27108 if test ${ac_cv_lib_curses_is_term_resized+y}
27109 then :
27110 printf %s "(cached) " >&6
27111 else $as_nop
27112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27113 /* end confdefs.h. */
27114
27115 #define NCURSES_OPAQUE 0
27116 #if defined(HAVE_NCURSESW_NCURSES_H)
27117 # include <ncursesw/ncurses.h>
27118 #elif defined(HAVE_NCURSESW_CURSES_H)
27119 # include <ncursesw/curses.h>
27120 #elif defined(HAVE_NCURSES_NCURSES_H)
27121 # include <ncurses/ncurses.h>
27122 #elif defined(HAVE_NCURSES_CURSES_H)
27123 # include <ncurses/curses.h>
27124 #elif defined(HAVE_NCURSES_H)
27125 # include <ncurses.h>
27126 #elif defined(HAVE_CURSES_H)
27127 # include <curses.h>
27128 #endif
27129
27130 int
27131 main (void)
27132 {
27133
27134 #ifndef is_term_resized
27135 void *x=is_term_resized
27136 #endif
27137
27138 ;
27139 return 0;
27140 }
27141 _ACEOF
27142 if ac_fn_c_try_compile "$LINENO"
27143 then :
27144 ac_cv_lib_curses_is_term_resized=yes
27145 else $as_nop
27146 ac_cv_lib_curses_is_term_resized=no
27147 fi
27148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27149
27150 fi
27151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_term_resized" >&5
27152 printf "%s\n" "$ac_cv_lib_curses_is_term_resized" >&6; }
27153 if test "x$ac_cv_lib_curses_is_term_resized" = xyes
27154 then :
27155
27156 printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
27157
27158 fi
27159
27160
27161
27162
27163
27164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resize_term" >&5
27165 printf %s "checking for curses function resize_term... " >&6; }
27166 if test ${ac_cv_lib_curses_resize_term+y}
27167 then :
27168 printf %s "(cached) " >&6
27169 else $as_nop
27170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h. */
27172
27173 #define NCURSES_OPAQUE 0
27174 #if defined(HAVE_NCURSESW_NCURSES_H)
27175 # include <ncursesw/ncurses.h>
27176 #elif defined(HAVE_NCURSESW_CURSES_H)
27177 # include <ncursesw/curses.h>
27178 #elif defined(HAVE_NCURSES_NCURSES_H)
27179 # include <ncurses/ncurses.h>
27180 #elif defined(HAVE_NCURSES_CURSES_H)
27181 # include <ncurses/curses.h>
27182 #elif defined(HAVE_NCURSES_H)
27183 # include <ncurses.h>
27184 #elif defined(HAVE_CURSES_H)
27185 # include <curses.h>
27186 #endif
27187
27188 int
27189 main (void)
27190 {
27191
27192 #ifndef resize_term
27193 void *x=resize_term
27194 #endif
27195
27196 ;
27197 return 0;
27198 }
27199 _ACEOF
27200 if ac_fn_c_try_compile "$LINENO"
27201 then :
27202 ac_cv_lib_curses_resize_term=yes
27203 else $as_nop
27204 ac_cv_lib_curses_resize_term=no
27205 fi
27206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27207
27208 fi
27209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resize_term" >&5
27210 printf "%s\n" "$ac_cv_lib_curses_resize_term" >&6; }
27211 if test "x$ac_cv_lib_curses_resize_term" = xyes
27212 then :
27213
27214 printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
27215
27216 fi
27217
27218
27219
27220
27221
27222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resizeterm" >&5
27223 printf %s "checking for curses function resizeterm... " >&6; }
27224 if test ${ac_cv_lib_curses_resizeterm+y}
27225 then :
27226 printf %s "(cached) " >&6
27227 else $as_nop
27228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27229 /* end confdefs.h. */
27230
27231 #define NCURSES_OPAQUE 0
27232 #if defined(HAVE_NCURSESW_NCURSES_H)
27233 # include <ncursesw/ncurses.h>
27234 #elif defined(HAVE_NCURSESW_CURSES_H)
27235 # include <ncursesw/curses.h>
27236 #elif defined(HAVE_NCURSES_NCURSES_H)
27237 # include <ncurses/ncurses.h>
27238 #elif defined(HAVE_NCURSES_CURSES_H)
27239 # include <ncurses/curses.h>
27240 #elif defined(HAVE_NCURSES_H)
27241 # include <ncurses.h>
27242 #elif defined(HAVE_CURSES_H)
27243 # include <curses.h>
27244 #endif
27245
27246 int
27247 main (void)
27248 {
27249
27250 #ifndef resizeterm
27251 void *x=resizeterm
27252 #endif
27253
27254 ;
27255 return 0;
27256 }
27257 _ACEOF
27258 if ac_fn_c_try_compile "$LINENO"
27259 then :
27260 ac_cv_lib_curses_resizeterm=yes
27261 else $as_nop
27262 ac_cv_lib_curses_resizeterm=no
27263 fi
27264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27265
27266 fi
27267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resizeterm" >&5
27268 printf "%s\n" "$ac_cv_lib_curses_resizeterm" >&6; }
27269 if test "x$ac_cv_lib_curses_resizeterm" = xyes
27270 then :
27271
27272 printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
27273
27274 fi
27275
27276
27277
27278
27279
27280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function immedok" >&5
27281 printf %s "checking for curses function immedok... " >&6; }
27282 if test ${ac_cv_lib_curses_immedok+y}
27283 then :
27284 printf %s "(cached) " >&6
27285 else $as_nop
27286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27287 /* end confdefs.h. */
27288
27289 #define NCURSES_OPAQUE 0
27290 #if defined(HAVE_NCURSESW_NCURSES_H)
27291 # include <ncursesw/ncurses.h>
27292 #elif defined(HAVE_NCURSESW_CURSES_H)
27293 # include <ncursesw/curses.h>
27294 #elif defined(HAVE_NCURSES_NCURSES_H)
27295 # include <ncurses/ncurses.h>
27296 #elif defined(HAVE_NCURSES_CURSES_H)
27297 # include <ncurses/curses.h>
27298 #elif defined(HAVE_NCURSES_H)
27299 # include <ncurses.h>
27300 #elif defined(HAVE_CURSES_H)
27301 # include <curses.h>
27302 #endif
27303
27304 int
27305 main (void)
27306 {
27307
27308 #ifndef immedok
27309 void *x=immedok
27310 #endif
27311
27312 ;
27313 return 0;
27314 }
27315 _ACEOF
27316 if ac_fn_c_try_compile "$LINENO"
27317 then :
27318 ac_cv_lib_curses_immedok=yes
27319 else $as_nop
27320 ac_cv_lib_curses_immedok=no
27321 fi
27322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27323
27324 fi
27325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_immedok" >&5
27326 printf "%s\n" "$ac_cv_lib_curses_immedok" >&6; }
27327 if test "x$ac_cv_lib_curses_immedok" = xyes
27328 then :
27329
27330 printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
27331
27332 fi
27333
27334
27335
27336
27337
27338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function syncok" >&5
27339 printf %s "checking for curses function syncok... " >&6; }
27340 if test ${ac_cv_lib_curses_syncok+y}
27341 then :
27342 printf %s "(cached) " >&6
27343 else $as_nop
27344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27345 /* end confdefs.h. */
27346
27347 #define NCURSES_OPAQUE 0
27348 #if defined(HAVE_NCURSESW_NCURSES_H)
27349 # include <ncursesw/ncurses.h>
27350 #elif defined(HAVE_NCURSESW_CURSES_H)
27351 # include <ncursesw/curses.h>
27352 #elif defined(HAVE_NCURSES_NCURSES_H)
27353 # include <ncurses/ncurses.h>
27354 #elif defined(HAVE_NCURSES_CURSES_H)
27355 # include <ncurses/curses.h>
27356 #elif defined(HAVE_NCURSES_H)
27357 # include <ncurses.h>
27358 #elif defined(HAVE_CURSES_H)
27359 # include <curses.h>
27360 #endif
27361
27362 int
27363 main (void)
27364 {
27365
27366 #ifndef syncok
27367 void *x=syncok
27368 #endif
27369
27370 ;
27371 return 0;
27372 }
27373 _ACEOF
27374 if ac_fn_c_try_compile "$LINENO"
27375 then :
27376 ac_cv_lib_curses_syncok=yes
27377 else $as_nop
27378 ac_cv_lib_curses_syncok=no
27379 fi
27380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27381
27382 fi
27383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_syncok" >&5
27384 printf "%s\n" "$ac_cv_lib_curses_syncok" >&6; }
27385 if test "x$ac_cv_lib_curses_syncok" = xyes
27386 then :
27387
27388 printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
27389
27390 fi
27391
27392
27393
27394
27395
27396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function wchgat" >&5
27397 printf %s "checking for curses function wchgat... " >&6; }
27398 if test ${ac_cv_lib_curses_wchgat+y}
27399 then :
27400 printf %s "(cached) " >&6
27401 else $as_nop
27402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27403 /* end confdefs.h. */
27404
27405 #define NCURSES_OPAQUE 0
27406 #if defined(HAVE_NCURSESW_NCURSES_H)
27407 # include <ncursesw/ncurses.h>
27408 #elif defined(HAVE_NCURSESW_CURSES_H)
27409 # include <ncursesw/curses.h>
27410 #elif defined(HAVE_NCURSES_NCURSES_H)
27411 # include <ncurses/ncurses.h>
27412 #elif defined(HAVE_NCURSES_CURSES_H)
27413 # include <ncurses/curses.h>
27414 #elif defined(HAVE_NCURSES_H)
27415 # include <ncurses.h>
27416 #elif defined(HAVE_CURSES_H)
27417 # include <curses.h>
27418 #endif
27419
27420 int
27421 main (void)
27422 {
27423
27424 #ifndef wchgat
27425 void *x=wchgat
27426 #endif
27427
27428 ;
27429 return 0;
27430 }
27431 _ACEOF
27432 if ac_fn_c_try_compile "$LINENO"
27433 then :
27434 ac_cv_lib_curses_wchgat=yes
27435 else $as_nop
27436 ac_cv_lib_curses_wchgat=no
27437 fi
27438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27439
27440 fi
27441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wchgat" >&5
27442 printf "%s\n" "$ac_cv_lib_curses_wchgat" >&6; }
27443 if test "x$ac_cv_lib_curses_wchgat" = xyes
27444 then :
27445
27446 printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
27447
27448 fi
27449
27450
27451
27452
27453
27454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function filter" >&5
27455 printf %s "checking for curses function filter... " >&6; }
27456 if test ${ac_cv_lib_curses_filter+y}
27457 then :
27458 printf %s "(cached) " >&6
27459 else $as_nop
27460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27461 /* end confdefs.h. */
27462
27463 #define NCURSES_OPAQUE 0
27464 #if defined(HAVE_NCURSESW_NCURSES_H)
27465 # include <ncursesw/ncurses.h>
27466 #elif defined(HAVE_NCURSESW_CURSES_H)
27467 # include <ncursesw/curses.h>
27468 #elif defined(HAVE_NCURSES_NCURSES_H)
27469 # include <ncurses/ncurses.h>
27470 #elif defined(HAVE_NCURSES_CURSES_H)
27471 # include <ncurses/curses.h>
27472 #elif defined(HAVE_NCURSES_H)
27473 # include <ncurses.h>
27474 #elif defined(HAVE_CURSES_H)
27475 # include <curses.h>
27476 #endif
27477
27478 int
27479 main (void)
27480 {
27481
27482 #ifndef filter
27483 void *x=filter
27484 #endif
27485
27486 ;
27487 return 0;
27488 }
27489 _ACEOF
27490 if ac_fn_c_try_compile "$LINENO"
27491 then :
27492 ac_cv_lib_curses_filter=yes
27493 else $as_nop
27494 ac_cv_lib_curses_filter=no
27495 fi
27496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27497
27498 fi
27499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_filter" >&5
27500 printf "%s\n" "$ac_cv_lib_curses_filter" >&6; }
27501 if test "x$ac_cv_lib_curses_filter" = xyes
27502 then :
27503
27504 printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h
27505
27506 fi
27507
27508
27509
27510
27511
27512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function has_key" >&5
27513 printf %s "checking for curses function has_key... " >&6; }
27514 if test ${ac_cv_lib_curses_has_key+y}
27515 then :
27516 printf %s "(cached) " >&6
27517 else $as_nop
27518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27519 /* end confdefs.h. */
27520
27521 #define NCURSES_OPAQUE 0
27522 #if defined(HAVE_NCURSESW_NCURSES_H)
27523 # include <ncursesw/ncurses.h>
27524 #elif defined(HAVE_NCURSESW_CURSES_H)
27525 # include <ncursesw/curses.h>
27526 #elif defined(HAVE_NCURSES_NCURSES_H)
27527 # include <ncurses/ncurses.h>
27528 #elif defined(HAVE_NCURSES_CURSES_H)
27529 # include <ncurses/curses.h>
27530 #elif defined(HAVE_NCURSES_H)
27531 # include <ncurses.h>
27532 #elif defined(HAVE_CURSES_H)
27533 # include <curses.h>
27534 #endif
27535
27536 int
27537 main (void)
27538 {
27539
27540 #ifndef has_key
27541 void *x=has_key
27542 #endif
27543
27544 ;
27545 return 0;
27546 }
27547 _ACEOF
27548 if ac_fn_c_try_compile "$LINENO"
27549 then :
27550 ac_cv_lib_curses_has_key=yes
27551 else $as_nop
27552 ac_cv_lib_curses_has_key=no
27553 fi
27554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27555
27556 fi
27557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_has_key" >&5
27558 printf "%s\n" "$ac_cv_lib_curses_has_key" >&6; }
27559 if test "x$ac_cv_lib_curses_has_key" = xyes
27560 then :
27561
27562 printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
27563
27564 fi
27565
27566
27567
27568
27569
27570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function typeahead" >&5
27571 printf %s "checking for curses function typeahead... " >&6; }
27572 if test ${ac_cv_lib_curses_typeahead+y}
27573 then :
27574 printf %s "(cached) " >&6
27575 else $as_nop
27576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27577 /* end confdefs.h. */
27578
27579 #define NCURSES_OPAQUE 0
27580 #if defined(HAVE_NCURSESW_NCURSES_H)
27581 # include <ncursesw/ncurses.h>
27582 #elif defined(HAVE_NCURSESW_CURSES_H)
27583 # include <ncursesw/curses.h>
27584 #elif defined(HAVE_NCURSES_NCURSES_H)
27585 # include <ncurses/ncurses.h>
27586 #elif defined(HAVE_NCURSES_CURSES_H)
27587 # include <ncurses/curses.h>
27588 #elif defined(HAVE_NCURSES_H)
27589 # include <ncurses.h>
27590 #elif defined(HAVE_CURSES_H)
27591 # include <curses.h>
27592 #endif
27593
27594 int
27595 main (void)
27596 {
27597
27598 #ifndef typeahead
27599 void *x=typeahead
27600 #endif
27601
27602 ;
27603 return 0;
27604 }
27605 _ACEOF
27606 if ac_fn_c_try_compile "$LINENO"
27607 then :
27608 ac_cv_lib_curses_typeahead=yes
27609 else $as_nop
27610 ac_cv_lib_curses_typeahead=no
27611 fi
27612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27613
27614 fi
27615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_typeahead" >&5
27616 printf "%s\n" "$ac_cv_lib_curses_typeahead" >&6; }
27617 if test "x$ac_cv_lib_curses_typeahead" = xyes
27618 then :
27619
27620 printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
27621
27622 fi
27623
27624
27625
27626
27627
27628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function use_env" >&5
27629 printf %s "checking for curses function use_env... " >&6; }
27630 if test ${ac_cv_lib_curses_use_env+y}
27631 then :
27632 printf %s "(cached) " >&6
27633 else $as_nop
27634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27635 /* end confdefs.h. */
27636
27637 #define NCURSES_OPAQUE 0
27638 #if defined(HAVE_NCURSESW_NCURSES_H)
27639 # include <ncursesw/ncurses.h>
27640 #elif defined(HAVE_NCURSESW_CURSES_H)
27641 # include <ncursesw/curses.h>
27642 #elif defined(HAVE_NCURSES_NCURSES_H)
27643 # include <ncurses/ncurses.h>
27644 #elif defined(HAVE_NCURSES_CURSES_H)
27645 # include <ncurses/curses.h>
27646 #elif defined(HAVE_NCURSES_H)
27647 # include <ncurses.h>
27648 #elif defined(HAVE_CURSES_H)
27649 # include <curses.h>
27650 #endif
27651
27652 int
27653 main (void)
27654 {
27655
27656 #ifndef use_env
27657 void *x=use_env
27658 #endif
27659
27660 ;
27661 return 0;
27662 }
27663 _ACEOF
27664 if ac_fn_c_try_compile "$LINENO"
27665 then :
27666 ac_cv_lib_curses_use_env=yes
27667 else $as_nop
27668 ac_cv_lib_curses_use_env=no
27669 fi
27670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27671
27672 fi
27673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_use_env" >&5
27674 printf "%s\n" "$ac_cv_lib_curses_use_env" >&6; }
27675 if test "x$ac_cv_lib_curses_use_env" = xyes
27676 then :
27677
27678 printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
27679
27680 fi
27681
27682
27683
27684
27685
27686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function set_escdelay" >&5
27687 printf %s "checking for curses function set_escdelay... " >&6; }
27688 if test ${ac_cv_lib_curses_set_escdelay+y}
27689 then :
27690 printf %s "(cached) " >&6
27691 else $as_nop
27692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27693 /* end confdefs.h. */
27694
27695 #define NCURSES_OPAQUE 0
27696 #if defined(HAVE_NCURSESW_NCURSES_H)
27697 # include <ncursesw/ncurses.h>
27698 #elif defined(HAVE_NCURSESW_CURSES_H)
27699 # include <ncursesw/curses.h>
27700 #elif defined(HAVE_NCURSES_NCURSES_H)
27701 # include <ncurses/ncurses.h>
27702 #elif defined(HAVE_NCURSES_CURSES_H)
27703 # include <ncurses/curses.h>
27704 #elif defined(HAVE_NCURSES_H)
27705 # include <ncurses.h>
27706 #elif defined(HAVE_CURSES_H)
27707 # include <curses.h>
27708 #endif
27709
27710 int
27711 main (void)
27712 {
27713
27714 #ifndef set_escdelay
27715 void *x=set_escdelay
27716 #endif
27717
27718 ;
27719 return 0;
27720 }
27721 _ACEOF
27722 if ac_fn_c_try_compile "$LINENO"
27723 then :
27724 ac_cv_lib_curses_set_escdelay=yes
27725 else $as_nop
27726 ac_cv_lib_curses_set_escdelay=no
27727 fi
27728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27729
27730 fi
27731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_set_escdelay" >&5
27732 printf "%s\n" "$ac_cv_lib_curses_set_escdelay" >&6; }
27733 if test "x$ac_cv_lib_curses_set_escdelay" = xyes
27734 then :
27735
27736 printf "%s\n" "#define HAVE_CURSES_SET_ESCDELAY 1" >>confdefs.h
27737
27738 fi
27739
27740
27741
27742
27743
27744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function set_tabsize" >&5
27745 printf %s "checking for curses function set_tabsize... " >&6; }
27746 if test ${ac_cv_lib_curses_set_tabsize+y}
27747 then :
27748 printf %s "(cached) " >&6
27749 else $as_nop
27750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27751 /* end confdefs.h. */
27752
27753 #define NCURSES_OPAQUE 0
27754 #if defined(HAVE_NCURSESW_NCURSES_H)
27755 # include <ncursesw/ncurses.h>
27756 #elif defined(HAVE_NCURSESW_CURSES_H)
27757 # include <ncursesw/curses.h>
27758 #elif defined(HAVE_NCURSES_NCURSES_H)
27759 # include <ncurses/ncurses.h>
27760 #elif defined(HAVE_NCURSES_CURSES_H)
27761 # include <ncurses/curses.h>
27762 #elif defined(HAVE_NCURSES_H)
27763 # include <ncurses.h>
27764 #elif defined(HAVE_CURSES_H)
27765 # include <curses.h>
27766 #endif
27767
27768 int
27769 main (void)
27770 {
27771
27772 #ifndef set_tabsize
27773 void *x=set_tabsize
27774 #endif
27775
27776 ;
27777 return 0;
27778 }
27779 _ACEOF
27780 if ac_fn_c_try_compile "$LINENO"
27781 then :
27782 ac_cv_lib_curses_set_tabsize=yes
27783 else $as_nop
27784 ac_cv_lib_curses_set_tabsize=no
27785 fi
27786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27787
27788 fi
27789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_set_tabsize" >&5
27790 printf "%s\n" "$ac_cv_lib_curses_set_tabsize" >&6; }
27791 if test "x$ac_cv_lib_curses_set_tabsize" = xyes
27792 then :
27793
27794 printf "%s\n" "#define HAVE_CURSES_SET_TABSIZE 1" >>confdefs.h
27795
27796 fi
27797
27798
27799
27800
27801
27802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses variable ESCDELAY" >&5
27803 printf %s "checking for curses variable ESCDELAY... " >&6; }
27804 if test ${ac_cv_lib_curses_ESCDELAY+y}
27805 then :
27806 printf %s "(cached) " >&6
27807 else $as_nop
27808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27809 /* end confdefs.h. */
27810
27811 #define NCURSES_OPAQUE 0
27812 #if defined(HAVE_NCURSESW_NCURSES_H)
27813 # include <ncursesw/ncurses.h>
27814 #elif defined(HAVE_NCURSESW_CURSES_H)
27815 # include <ncursesw/curses.h>
27816 #elif defined(HAVE_NCURSES_NCURSES_H)
27817 # include <ncurses/ncurses.h>
27818 #elif defined(HAVE_NCURSES_CURSES_H)
27819 # include <ncurses/curses.h>
27820 #elif defined(HAVE_NCURSES_H)
27821 # include <ncurses.h>
27822 #elif defined(HAVE_CURSES_H)
27823 # include <curses.h>
27824 #endif
27825
27826 int
27827 main (void)
27828 {
27829
27830 int x = ESCDELAY; (void)x;
27831
27832 ;
27833 return 0;
27834 }
27835 _ACEOF
27836 if ac_fn_c_try_compile "$LINENO"
27837 then :
27838 ac_cv_lib_curses_ESCDELAY=yes
27839 else $as_nop
27840 ac_cv_lib_curses_ESCDELAY=no
27841 fi
27842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27843
27844 fi
27845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_ESCDELAY" >&5
27846 printf "%s\n" "$ac_cv_lib_curses_ESCDELAY" >&6; }
27847 if test "x$ac_cv_lib_curses_ESCDELAY" = xyes
27848 then :
27849
27850 printf "%s\n" "#define HAVE_CURSES_ESCDELAY 1" >>confdefs.h
27851
27852 fi
27853
27854
27855
27856
27857
27858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses variable TABSIZE" >&5
27859 printf %s "checking for curses variable TABSIZE... " >&6; }
27860 if test ${ac_cv_lib_curses_TABSIZE+y}
27861 then :
27862 printf %s "(cached) " >&6
27863 else $as_nop
27864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27865 /* end confdefs.h. */
27866
27867 #define NCURSES_OPAQUE 0
27868 #if defined(HAVE_NCURSESW_NCURSES_H)
27869 # include <ncursesw/ncurses.h>
27870 #elif defined(HAVE_NCURSESW_CURSES_H)
27871 # include <ncursesw/curses.h>
27872 #elif defined(HAVE_NCURSES_NCURSES_H)
27873 # include <ncurses/ncurses.h>
27874 #elif defined(HAVE_NCURSES_CURSES_H)
27875 # include <ncurses/curses.h>
27876 #elif defined(HAVE_NCURSES_H)
27877 # include <ncurses.h>
27878 #elif defined(HAVE_CURSES_H)
27879 # include <curses.h>
27880 #endif
27881
27882 int
27883 main (void)
27884 {
27885
27886 int x = TABSIZE; (void)x;
27887
27888 ;
27889 return 0;
27890 }
27891 _ACEOF
27892 if ac_fn_c_try_compile "$LINENO"
27893 then :
27894 ac_cv_lib_curses_TABSIZE=yes
27895 else $as_nop
27896 ac_cv_lib_curses_TABSIZE=no
27897 fi
27898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27899
27900 fi
27901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_TABSIZE" >&5
27902 printf "%s\n" "$ac_cv_lib_curses_TABSIZE" >&6; }
27903 if test "x$ac_cv_lib_curses_TABSIZE" = xyes
27904 then :
27905
27906 printf "%s\n" "#define HAVE_CURSES_TABSIZE 1" >>confdefs.h
27907
27908 fi
27909
27910
27911
27912
27913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses-style curses function getmouse" >&5
27914 printf %s "checking for ncurses-style curses function getmouse... " >&6; }
27915 if test ${ac_cv_lib_curses_getmouse+y}
27916 then :
27917 printf %s "(cached) " >&6
27918 else $as_nop
27919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27920 /* end confdefs.h. */
27921
27922 #define NCURSES_OPAQUE 0
27923 #if defined(HAVE_NCURSESW_NCURSES_H)
27924 # include <ncursesw/ncurses.h>
27925 #elif defined(HAVE_NCURSESW_CURSES_H)
27926 # include <ncursesw/curses.h>
27927 #elif defined(HAVE_NCURSES_NCURSES_H)
27928 # include <ncurses/ncurses.h>
27929 #elif defined(HAVE_NCURSES_CURSES_H)
27930 # include <ncurses/curses.h>
27931 #elif defined(HAVE_NCURSES_H)
27932 # include <ncurses.h>
27933 #elif defined(HAVE_CURSES_H)
27934 # include <curses.h>
27935 #endif
27936
27937 int
27938 main (void)
27939 {
27940 MEVENT event; (void)getmouse(&event);
27941 ;
27942 return 0;
27943 }
27944 _ACEOF
27945 if ac_fn_c_try_compile "$LINENO"
27946 then :
27947 ac_cv_lib_curses_getmouse=yes
27948 else $as_nop
27949 ac_cv_lib_curses_getmouse=no
27950 fi
27951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27952 fi
27953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_getmouse" >&5
27954 printf "%s\n" "$ac_cv_lib_curses_getmouse" >&6; }
27955 if test "x$ac_cv_lib_curses_getmouse" = xyes
27956 then :
27957
27958 printf "%s\n" "#define HAVE_CURSES_GETMOUSE 1" >>confdefs.h
27959
27960 fi
27961 CPPFLAGS=$ac_save_cppflags
27962
27963 fi
27964 CFLAGS=$save_CFLAGS
27965 CPPFLAGS=$save_CPPFLAGS
27966 LDFLAGS=$save_LDFLAGS
27967 LIBS=$save_LIBS
27968
27969
27970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
27971 printf "%s\n" "$as_me: checking for device files" >&6;}
27972
27973 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
27974 ac_cv_file__dev_ptmx=no
27975 ac_cv_file__dev_ptc=no
27976 else
27977 if test "x$cross_compiling" = xyes; then
27978 if test "${ac_cv_file__dev_ptmx+set}" != set; then
27979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27980 printf %s "checking for /dev/ptmx... " >&6; }
27981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
27982 printf "%s\n" "not set" >&6; }
27983 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
27984 fi
27985 if test "${ac_cv_file__dev_ptc+set}" != set; then
27986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
27987 printf %s "checking for /dev/ptc... " >&6; }
27988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
27989 printf "%s\n" "not set" >&6; }
27990 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
27991 fi
27992 fi
27993
27994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27995 printf %s "checking for /dev/ptmx... " >&6; }
27996 if test ${ac_cv_file__dev_ptmx+y}
27997 then :
27998 printf %s "(cached) " >&6
27999 else $as_nop
28000 test "$cross_compiling" = yes &&
28001 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
28002 if test -r "/dev/ptmx"; then
28003 ac_cv_file__dev_ptmx=yes
28004 else
28005 ac_cv_file__dev_ptmx=no
28006 fi
28007 fi
28008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
28009 printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; }
28010 if test "x$ac_cv_file__dev_ptmx" = xyes
28011 then :
28012
28013 fi
28014
28015 if test "x$ac_cv_file__dev_ptmx" = xyes; then
28016
28017 printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h
28018
28019 fi
28020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
28021 printf %s "checking for /dev/ptc... " >&6; }
28022 if test ${ac_cv_file__dev_ptc+y}
28023 then :
28024 printf %s "(cached) " >&6
28025 else $as_nop
28026 test "$cross_compiling" = yes &&
28027 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
28028 if test -r "/dev/ptc"; then
28029 ac_cv_file__dev_ptc=yes
28030 else
28031 ac_cv_file__dev_ptc=no
28032 fi
28033 fi
28034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
28035 printf "%s\n" "$ac_cv_file__dev_ptc" >&6; }
28036 if test "x$ac_cv_file__dev_ptc" = xyes
28037 then :
28038
28039 fi
28040
28041 if test "x$ac_cv_file__dev_ptc" = xyes; then
28042
28043 printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h
28044
28045 fi
28046 fi
28047
28048 if test $ac_sys_system = Darwin
28049 then
28050 LIBS="$LIBS -framework CoreFoundation"
28051 fi
28052
28053 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
28054 #ifdef HAVE_SYS_TYPES_H
28055 #include <sys/types.h>
28056 #endif
28057 #ifdef HAVE_SYS_SOCKET_H
28058 #include <sys/socket.h>
28059 #endif
28060
28061 "
28062 if test "x$ac_cv_type_socklen_t" = xyes
28063 then :
28064
28065 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
28066
28067
28068 else $as_nop
28069
28070 printf "%s\n" "#define socklen_t int" >>confdefs.h
28071
28072 fi
28073
28074
28075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
28076 printf %s "checking for broken mbstowcs... " >&6; }
28077 if test ${ac_cv_broken_mbstowcs+y}
28078 then :
28079 printf %s "(cached) " >&6
28080 else $as_nop
28081 if test "$cross_compiling" = yes
28082 then :
28083 ac_cv_broken_mbstowcs=no
28084 else $as_nop
28085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28086 /* end confdefs.h. */
28087
28088 #include <stddef.h>
28089 #include <stdio.h>
28090 #include <stdlib.h>
28091 int main(void) {
28092 size_t len = -1;
28093 const char *str = "text";
28094 len = mbstowcs(NULL, str, 0);
28095 return (len != 4);
28096 }
28097
28098 _ACEOF
28099 if ac_fn_c_try_run "$LINENO"
28100 then :
28101 ac_cv_broken_mbstowcs=no
28102 else $as_nop
28103 ac_cv_broken_mbstowcs=yes
28104 fi
28105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28106 conftest.$ac_objext conftest.beam conftest.$ac_ext
28107 fi
28108
28109 fi
28110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
28111 printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; }
28112 if test "$ac_cv_broken_mbstowcs" = yes
28113 then
28114
28115 printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
28116
28117 fi
28118
28119 # Check for --with-computed-gotos
28120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
28121 printf %s "checking for --with-computed-gotos... " >&6; }
28122
28123 # Check whether --with-computed-gotos was given.
28124 if test ${with_computed_gotos+y}
28125 then :
28126 withval=$with_computed_gotos;
28127 if test "$withval" = yes
28128 then
28129
28130 printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
28131
28132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28133 printf "%s\n" "yes" >&6; }
28134 fi
28135 if test "$withval" = no
28136 then
28137
28138 printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
28139
28140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28141 printf "%s\n" "no" >&6; }
28142 fi
28143
28144 else $as_nop
28145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
28146 printf "%s\n" "no value specified" >&6; }
28147 fi
28148
28149
28150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
28151 printf %s "checking whether $CC supports computed gotos... " >&6; }
28152 if test ${ac_cv_computed_gotos+y}
28153 then :
28154 printf %s "(cached) " >&6
28155 else $as_nop
28156 if test "$cross_compiling" = yes
28157 then :
28158 if test "${with_computed_gotos+set}" = set; then
28159 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
28160 else
28161 ac_cv_computed_gotos=no
28162 fi
28163 else $as_nop
28164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28165 /* end confdefs.h. */
28166
28167 int main(int argc, char **argv)
28168 {
28169 static void *targets[1] = { &&LABEL1 };
28170 goto LABEL2;
28171 LABEL1:
28172 return 0;
28173 LABEL2:
28174 goto *targets[0];
28175 return 1;
28176 }
28177
28178 _ACEOF
28179 if ac_fn_c_try_run "$LINENO"
28180 then :
28181 ac_cv_computed_gotos=yes
28182 else $as_nop
28183 ac_cv_computed_gotos=no
28184 fi
28185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28186 conftest.$ac_objext conftest.beam conftest.$ac_ext
28187 fi
28188
28189 fi
28190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
28191 printf "%s\n" "$ac_cv_computed_gotos" >&6; }
28192 case "$ac_cv_computed_gotos" in yes*)
28193
28194 printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
28195
28196 esac
28197
28198 case $ac_sys_system in
28199 AIX*)
28200
28201 printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
28202 ;;
28203 esac
28204
28205
28206
28207
28208 for h in `(cd $srcdir;echo Python/thread_*.h)`
28209 do
28210 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
28211 done
28212
28213
28214 SRCDIRS="\
28215 Modules \
28216 Modules/_blake2 \
28217 Modules/_ctypes \
28218 Modules/_decimal \
28219 Modules/_decimal/libmpdec \
28220 Modules/_hacl \
28221 Modules/_io \
28222 Modules/_multiprocessing \
28223 Modules/_sqlite \
28224 Modules/_sre \
28225 Modules/_testcapi \
28226 Modules/_testinternalcapi \
28227 Modules/_testlimitedcapi \
28228 Modules/_xxtestfuzz \
28229 Modules/cjkcodecs \
28230 Modules/expat \
28231 Objects \
28232 Objects/mimalloc \
28233 Objects/mimalloc/prim \
28234 Parser \
28235 Parser/tokenizer \
28236 Parser/lexer \
28237 Programs \
28238 Python \
28239 Python/frozen_modules"
28240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
28241 printf %s "checking for build directories... " >&6; }
28242 for dir in $SRCDIRS; do
28243 if test ! -d $dir; then
28244 mkdir $dir
28245 fi
28246 done
28247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
28248 printf "%s\n" "done" >&6; }
28249
28250 # Availability of -O2:
28251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
28252 printf %s "checking for -O2... " >&6; }
28253 if test ${ac_cv_compile_o2+y}
28254 then :
28255 printf %s "(cached) " >&6
28256 else $as_nop
28257
28258 saved_cflags="$CFLAGS"
28259 CFLAGS="-O2"
28260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28261 /* end confdefs.h. */
28262
28263 int
28264 main (void)
28265 {
28266
28267 ;
28268 return 0;
28269 }
28270 _ACEOF
28271 if ac_fn_c_try_compile "$LINENO"
28272 then :
28273 ac_cv_compile_o2=yes
28274 else $as_nop
28275 ac_cv_compile_o2=no
28276 fi
28277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28278 CFLAGS="$saved_cflags"
28279
28280 fi
28281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compile_o2" >&5
28282 printf "%s\n" "$ac_cv_compile_o2" >&6; }
28283
28284 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
28285 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
28286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
28287 printf %s "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
28288 saved_cflags="$CFLAGS"
28289 CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
28290 if test "$ac_cv_compile_o2" = no; then
28291 CFLAGS=""
28292 fi
28293 if test "$cross_compiling" = yes
28294 then :
28295 have_glibc_memmove_bug=undefined
28296 else $as_nop
28297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28298 /* end confdefs.h. */
28299
28300 #include <stdio.h>
28301 #include <stdlib.h>
28302 #include <string.h>
28303 void foo(void *p, void *q) { memmove(p, q, 19); }
28304 int main(void) {
28305 char a[32] = "123456789000000000";
28306 foo(&a[9], a);
28307 if (strcmp(a, "123456789123456789000000000") != 0)
28308 return 1;
28309 foo(a, &a[9]);
28310 if (strcmp(a, "123456789000000000") != 0)
28311 return 1;
28312 return 0;
28313 }
28314
28315 _ACEOF
28316 if ac_fn_c_try_run "$LINENO"
28317 then :
28318 have_glibc_memmove_bug=no
28319 else $as_nop
28320 have_glibc_memmove_bug=yes
28321 fi
28322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28323 conftest.$ac_objext conftest.beam conftest.$ac_ext
28324 fi
28325
28326 CFLAGS="$saved_cflags"
28327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
28328 printf "%s\n" "$have_glibc_memmove_bug" >&6; }
28329 if test "$have_glibc_memmove_bug" = yes; then
28330
28331 printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
28332
28333 fi
28334
28335 if test "$ac_cv_gcc_asm_for_x87" = yes; then
28336 # Some versions of gcc miscompile inline asm:
28337 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
28338 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
28339 case $CC in
28340 *gcc*)
28341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
28342 printf %s "checking for gcc ipa-pure-const bug... " >&6; }
28343 saved_cflags="$CFLAGS"
28344 CFLAGS="-O2"
28345 if test "$cross_compiling" = yes
28346 then :
28347 have_ipa_pure_const_bug=undefined
28348 else $as_nop
28349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28350 /* end confdefs.h. */
28351
28352 __attribute__((noinline)) int
28353 foo(int *p) {
28354 int r;
28355 asm ( "movl \$6, (%1)\n\t"
28356 "xorl %0, %0\n\t"
28357 : "=r" (r) : "r" (p) : "memory"
28358 );
28359 return r;
28360 }
28361 int main(void) {
28362 int p = 8;
28363 if ((foo(&p) ? : p) != 6)
28364 return 1;
28365 return 0;
28366 }
28367
28368 _ACEOF
28369 if ac_fn_c_try_run "$LINENO"
28370 then :
28371 have_ipa_pure_const_bug=no
28372 else $as_nop
28373 have_ipa_pure_const_bug=yes
28374 fi
28375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28376 conftest.$ac_objext conftest.beam conftest.$ac_ext
28377 fi
28378
28379 CFLAGS="$saved_cflags"
28380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
28381 printf "%s\n" "$have_ipa_pure_const_bug" >&6; }
28382 if test "$have_ipa_pure_const_bug" = yes; then
28383
28384 printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
28385
28386 fi
28387 ;;
28388 esac
28389 fi
28390
28391 # ensurepip option
28392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
28393 printf %s "checking for ensurepip... " >&6; }
28394
28395 # Check whether --with-ensurepip was given.
28396 if test ${with_ensurepip+y}
28397 then :
28398 withval=$with_ensurepip;
28399 else $as_nop
28400
28401 case $ac_sys_system in #(
28402 Emscripten) :
28403 with_ensurepip=no ;; #(
28404 WASI) :
28405 with_ensurepip=no ;; #(
28406 iOS) :
28407 with_ensurepip=no ;; #(
28408 *) :
28409 with_ensurepip=upgrade
28410 ;;
28411 esac
28412
28413 fi
28414
28415 case $with_ensurepip in #(
28416 yes|upgrade) :
28417 ENSUREPIP=upgrade ;; #(
28418 install) :
28419 ENSUREPIP=install ;; #(
28420 no) :
28421 ENSUREPIP=no ;; #(
28422 *) :
28423 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
28424 esac
28425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
28426 printf "%s\n" "$ENSUREPIP" >&6; }
28427
28428
28429 # check if the dirent structure of a d_type field and DT_UNKNOWN is defined
28430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
28431 printf %s "checking if the dirent structure of a d_type field... " >&6; }
28432 if test ${ac_cv_dirent_d_type+y}
28433 then :
28434 printf %s "(cached) " >&6
28435 else $as_nop
28436
28437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28438 /* end confdefs.h. */
28439
28440
28441 #include <dirent.h>
28442
28443 int main(void) {
28444 struct dirent entry;
28445 return entry.d_type == DT_UNKNOWN;
28446 }
28447
28448
28449 _ACEOF
28450 if ac_fn_c_try_link "$LINENO"
28451 then :
28452 ac_cv_dirent_d_type=yes
28453 else $as_nop
28454 ac_cv_dirent_d_type=no
28455 fi
28456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28457 conftest$ac_exeext conftest.$ac_ext
28458
28459 fi
28460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_type" >&5
28461 printf "%s\n" "$ac_cv_dirent_d_type" >&6; }
28462
28463 if test "x$ac_cv_dirent_d_type" = xyes
28464 then :
28465
28466
28467 printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
28468
28469
28470 fi
28471
28472 # check if the Linux getrandom() syscall is available
28473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
28474 printf %s "checking for the Linux getrandom() syscall... " >&6; }
28475 if test ${ac_cv_getrandom_syscall+y}
28476 then :
28477 printf %s "(cached) " >&6
28478 else $as_nop
28479
28480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28481 /* end confdefs.h. */
28482
28483
28484 #include <stddef.h>
28485 #include <unistd.h>
28486 #include <sys/syscall.h>
28487 #include <linux/random.h>
28488
28489 int main(void) {
28490 char buffer[1];
28491 const size_t buflen = sizeof(buffer);
28492 const int flags = GRND_NONBLOCK;
28493 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
28494 (void)syscall(SYS_getrandom, buffer, buflen, flags);
28495 return 0;
28496 }
28497
28498
28499 _ACEOF
28500 if ac_fn_c_try_link "$LINENO"
28501 then :
28502 ac_cv_getrandom_syscall=yes
28503 else $as_nop
28504 ac_cv_getrandom_syscall=no
28505 fi
28506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28507 conftest$ac_exeext conftest.$ac_ext
28508
28509 fi
28510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getrandom_syscall" >&5
28511 printf "%s\n" "$ac_cv_getrandom_syscall" >&6; }
28512
28513 if test "x$ac_cv_getrandom_syscall" = xyes
28514 then :
28515
28516
28517 printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
28518
28519
28520 fi
28521
28522 # check if the getrandom() function is available
28523 # the test was written for the Solaris function of <sys/random.h>
28524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
28525 printf %s "checking for the getrandom() function... " >&6; }
28526 if test ${ac_cv_func_getrandom+y}
28527 then :
28528 printf %s "(cached) " >&6
28529 else $as_nop
28530
28531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28532 /* end confdefs.h. */
28533
28534
28535 #include <stddef.h>
28536 #include <sys/random.h>
28537
28538 int main(void) {
28539 char buffer[1];
28540 const size_t buflen = sizeof(buffer);
28541 const int flags = 0;
28542 /* ignore the result, Python checks for ENOSYS at runtime */
28543 (void)getrandom(buffer, buflen, flags);
28544 return 0;
28545 }
28546
28547
28548 _ACEOF
28549 if ac_fn_c_try_link "$LINENO"
28550 then :
28551 ac_cv_func_getrandom=yes
28552 else $as_nop
28553 ac_cv_func_getrandom=no
28554 fi
28555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28556 conftest$ac_exeext conftest.$ac_ext
28557
28558 fi
28559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getrandom" >&5
28560 printf "%s\n" "$ac_cv_func_getrandom" >&6; }
28561
28562 if test "x$ac_cv_func_getrandom" = xyes
28563 then :
28564
28565
28566 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
28567
28568
28569 fi
28570
28571 # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
28572 # shm_* may only be available if linking against librt
28573 POSIXSHMEM_CFLAGS='-I$(srcdir)/Modules/_multiprocessing'
28574 save_CFLAGS=$CFLAGS
28575 save_CPPFLAGS=$CPPFLAGS
28576 save_LDFLAGS=$LDFLAGS
28577 save_LIBS=$LIBS
28578
28579
28580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
28581 printf %s "checking for library containing shm_open... " >&6; }
28582 if test ${ac_cv_search_shm_open+y}
28583 then :
28584 printf %s "(cached) " >&6
28585 else $as_nop
28586 ac_func_search_save_LIBS=$LIBS
28587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28588 /* end confdefs.h. */
28589
28590 /* Override any GCC internal prototype to avoid an error.
28591 Use char because int might match the return type of a GCC
28592 builtin and then its argument prototype would still apply. */
28593 char shm_open ();
28594 int
28595 main (void)
28596 {
28597 return shm_open ();
28598 ;
28599 return 0;
28600 }
28601 _ACEOF
28602 for ac_lib in '' rt
28603 do
28604 if test -z "$ac_lib"; then
28605 ac_res="none required"
28606 else
28607 ac_res=-l$ac_lib
28608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28609 fi
28610 if ac_fn_c_try_link "$LINENO"
28611 then :
28612 ac_cv_search_shm_open=$ac_res
28613 fi
28614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28615 conftest$ac_exeext
28616 if test ${ac_cv_search_shm_open+y}
28617 then :
28618 break
28619 fi
28620 done
28621 if test ${ac_cv_search_shm_open+y}
28622 then :
28623
28624 else $as_nop
28625 ac_cv_search_shm_open=no
28626 fi
28627 rm conftest.$ac_ext
28628 LIBS=$ac_func_search_save_LIBS
28629 fi
28630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
28631 printf "%s\n" "$ac_cv_search_shm_open" >&6; }
28632 ac_res=$ac_cv_search_shm_open
28633 if test "$ac_res" != no
28634 then :
28635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28636
28637 fi
28638
28639 if test "x$ac_cv_search_shm_open" = x-lrt
28640 then :
28641 POSIXSHMEM_LIBS="-lrt"
28642 fi
28643
28644 save_ac_includes_default=$ac_includes_default
28645 ac_includes_default="\
28646 ${ac_includes_default}
28647 #ifndef __cplusplus
28648 # ifdef HAVE_SYS_MMAN_H
28649 # include <sys/mman.h>
28650 # endif
28651 #endif
28652 "
28653
28654 for ac_func in shm_open shm_unlink
28655 do :
28656 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
28657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28658 if eval test \"x\$"$as_ac_var"\" = x"yes"
28659 then :
28660 cat >>confdefs.h <<_ACEOF
28661 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
28662 _ACEOF
28663 have_posix_shmem=yes
28664 else $as_nop
28665 have_posix_shmem=no
28666 fi
28667
28668 done
28669 ac_includes_default=$save_ac_includes_default
28670
28671 CFLAGS=$save_CFLAGS
28672 CPPFLAGS=$save_CPPFLAGS
28673 LDFLAGS=$save_LDFLAGS
28674 LIBS=$save_LIBS
28675
28676
28677
28678 # Check for usable OpenSSL
28679
28680 found=false
28681
28682 # Check whether --with-openssl was given.
28683 if test ${with_openssl+y}
28684 then :
28685 withval=$with_openssl;
28686 case "$withval" in
28687 "" | y | ye | yes | n | no)
28688 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
28689 ;;
28690 *) ssldirs="$withval"
28691 ;;
28692 esac
28693
28694 else $as_nop
28695
28696 # if pkg-config is installed and openssl has installed a .pc file,
28697 # then use that information and don't search ssldirs
28698 if test -n "$ac_tool_prefix"; then
28699 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28700 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28702 printf %s "checking for $ac_word... " >&6; }
28703 if test ${ac_cv_prog_PKG_CONFIG+y}
28704 then :
28705 printf %s "(cached) " >&6
28706 else $as_nop
28707 if test -n "$PKG_CONFIG"; then
28708 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
28709 else
28710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28711 for as_dir in $PATH
28712 do
28713 IFS=$as_save_IFS
28714 case $as_dir in #(((
28715 '') as_dir=./ ;;
28716 */) ;;
28717 *) as_dir=$as_dir/ ;;
28718 esac
28719 for ac_exec_ext in '' $ac_executable_extensions; do
28720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28721 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
28722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28723 break 2
28724 fi
28725 done
28726 done
28727 IFS=$as_save_IFS
28728
28729 fi
28730 fi
28731 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
28732 if test -n "$PKG_CONFIG"; then
28733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
28734 printf "%s\n" "$PKG_CONFIG" >&6; }
28735 else
28736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28737 printf "%s\n" "no" >&6; }
28738 fi
28739
28740
28741 fi
28742 if test -z "$ac_cv_prog_PKG_CONFIG"; then
28743 ac_ct_PKG_CONFIG=$PKG_CONFIG
28744 # Extract the first word of "pkg-config", so it can be a program name with args.
28745 set dummy pkg-config; ac_word=$2
28746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28747 printf %s "checking for $ac_word... " >&6; }
28748 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
28749 then :
28750 printf %s "(cached) " >&6
28751 else $as_nop
28752 if test -n "$ac_ct_PKG_CONFIG"; then
28753 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
28754 else
28755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28756 for as_dir in $PATH
28757 do
28758 IFS=$as_save_IFS
28759 case $as_dir in #(((
28760 '') as_dir=./ ;;
28761 */) ;;
28762 *) as_dir=$as_dir/ ;;
28763 esac
28764 for ac_exec_ext in '' $ac_executable_extensions; do
28765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28766 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
28767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28768 break 2
28769 fi
28770 done
28771 done
28772 IFS=$as_save_IFS
28773
28774 fi
28775 fi
28776 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
28777 if test -n "$ac_ct_PKG_CONFIG"; then
28778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
28779 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
28780 else
28781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28782 printf "%s\n" "no" >&6; }
28783 fi
28784
28785 if test "x$ac_ct_PKG_CONFIG" = x; then
28786 PKG_CONFIG=""
28787 else
28788 case $cross_compiling:$ac_tool_warned in
28789 yes:)
28790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28791 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28792 ac_tool_warned=yes ;;
28793 esac
28794 PKG_CONFIG=$ac_ct_PKG_CONFIG
28795 fi
28796 else
28797 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
28798 fi
28799
28800 if test x"$PKG_CONFIG" != x""; then
28801 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
28802 if test $? = 0; then
28803 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
28804 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
28805 found=true
28806 fi
28807 fi
28808
28809 # no such luck; use some default ssldirs
28810 if ! $found; then
28811 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
28812 fi
28813
28814
28815 fi
28816
28817
28818
28819 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
28820 # an 'openssl' subdirectory
28821
28822 if ! $found; then
28823 OPENSSL_INCLUDES=
28824 for ssldir in $ssldirs; do
28825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
28826 printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; }
28827 if test -f "$ssldir/include/openssl/ssl.h"; then
28828 OPENSSL_INCLUDES="-I$ssldir/include"
28829 OPENSSL_LDFLAGS="-L$ssldir/lib"
28830 OPENSSL_LIBS="-lssl -lcrypto"
28831 found=true
28832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28833 printf "%s\n" "yes" >&6; }
28834 break
28835 else
28836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28837 printf "%s\n" "no" >&6; }
28838 fi
28839 done
28840
28841 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
28842 # it will just work!
28843 fi
28844
28845 # try the preprocessor and linker with our new flags,
28846 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
28847
28848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
28849 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
28850 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
28851 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
28852
28853 save_LIBS="$LIBS"
28854 save_LDFLAGS="$LDFLAGS"
28855 save_CPPFLAGS="$CPPFLAGS"
28856 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
28857 LIBS="$OPENSSL_LIBS $LIBS"
28858 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
28859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28860 /* end confdefs.h. */
28861 #include <openssl/ssl.h>
28862 int
28863 main (void)
28864 {
28865 SSL_new(NULL)
28866 ;
28867 return 0;
28868 }
28869 _ACEOF
28870 if ac_fn_c_try_link "$LINENO"
28871 then :
28872
28873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28874 printf "%s\n" "yes" >&6; }
28875 have_openssl=yes
28876
28877 else $as_nop
28878
28879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28880 printf "%s\n" "no" >&6; }
28881 have_openssl=no
28882
28883 fi
28884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28885 conftest$ac_exeext conftest.$ac_ext
28886 CPPFLAGS="$save_CPPFLAGS"
28887 LDFLAGS="$save_LDFLAGS"
28888 LIBS="$save_LIBS"
28889
28890
28891
28892
28893
28894
28895 # rpath to libssl and libcrypto
28896 if test "x$GNULD" = xyes
28897 then :
28898
28899 rpath_arg="-Wl,--enable-new-dtags,-rpath="
28900
28901 else $as_nop
28902
28903 if test "$ac_sys_system" = "Darwin"
28904 then
28905 rpath_arg="-Wl,-rpath,"
28906 else
28907 rpath_arg="-Wl,-rpath="
28908 fi
28909
28910 fi
28911
28912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5
28913 printf %s "checking for --with-openssl-rpath... " >&6; }
28914
28915 # Check whether --with-openssl-rpath was given.
28916 if test ${with_openssl_rpath+y}
28917 then :
28918 withval=$with_openssl_rpath;
28919 else $as_nop
28920 with_openssl_rpath=no
28921
28922 fi
28923
28924 case $with_openssl_rpath in #(
28925 auto|yes) :
28926
28927 OPENSSL_RPATH=auto
28928 for arg in "$OPENSSL_LDFLAGS"; do
28929 case $arg in #(
28930 -L*) :
28931 OPENSSL_LDFLAGS_RPATH="$OPENSSL_LDFLAGS_RPATH ${rpath_arg}$(echo $arg | cut -c3-)"
28932 ;; #(
28933 *) :
28934 ;;
28935 esac
28936 done
28937 ;; #(
28938 no) :
28939 OPENSSL_RPATH= ;; #(
28940 *) :
28941 if test -d "$with_openssl_rpath"
28942 then :
28943
28944 OPENSSL_RPATH="$with_openssl_rpath"
28945 OPENSSL_LDFLAGS_RPATH="${rpath_arg}$with_openssl_rpath"
28946
28947 else $as_nop
28948 as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5
28949 fi
28950
28951 ;;
28952 esac
28953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5
28954 printf "%s\n" "$OPENSSL_RPATH" >&6; }
28955
28956 # This static linking is NOT OFFICIALLY SUPPORTED and not advertised.
28957 # Requires static OpenSSL build with position-independent code. Some features
28958 # like DSO engines or external OSSL providers don't work. Only tested with GCC
28959 # and clang on X86_64.
28960 if test "x$PY_UNSUPPORTED_OPENSSL_BUILD" = xstatic
28961 then :
28962
28963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsupported static openssl build" >&5
28964 printf %s "checking for unsupported static openssl build... " >&6; }
28965 new_OPENSSL_LIBS=
28966 for arg in $OPENSSL_LIBS; do
28967 case $arg in #(
28968 -l*) :
28969
28970 libname=$(echo $arg | cut -c3-)
28971 new_OPENSSL_LIBS="$new_OPENSSL_LIBS -l:lib${libname}.a -Wl,--exclude-libs,lib${libname}.a"
28972 ;; #(
28973 *) :
28974 new_OPENSSL_LIBS="$new_OPENSSL_LIBS $arg"
28975 ;;
28976 esac
28977 done
28978 OPENSSL_LIBS="$new_OPENSSL_LIBS $ZLIB_LIBS"
28979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5
28980 printf "%s\n" "$OPENSSL_LIBS" >&6; }
28981
28982 fi
28983
28984 LIBCRYPTO_LIBS=
28985 for arg in $OPENSSL_LIBS; do
28986 case $arg in #(
28987 -l*ssl*|-Wl*ssl*) :
28988 ;; #(
28989 *) :
28990 LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS $arg"
28991 ;;
28992 esac
28993 done
28994
28995 # check if OpenSSL libraries work as expected
28996 save_CFLAGS=$CFLAGS
28997 save_CPPFLAGS=$CPPFLAGS
28998 save_LDFLAGS=$LDFLAGS
28999 save_LIBS=$LIBS
29000
29001
29002 LIBS="$LIBS $OPENSSL_LIBS"
29003 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
29004 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
29005
29006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required ssl module APIs" >&5
29007 printf %s "checking whether OpenSSL provides required ssl module APIs... " >&6; }
29008 if test ${ac_cv_working_openssl_ssl+y}
29009 then :
29010 printf %s "(cached) " >&6
29011 else $as_nop
29012
29013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29014 /* end confdefs.h. */
29015
29016 #include <openssl/opensslv.h>
29017 #include <openssl/ssl.h>
29018 #if OPENSSL_VERSION_NUMBER < 0x10101000L
29019 #error "OpenSSL >= 1.1.1 is required"
29020 #endif
29021 static void keylog_cb(const SSL *ssl, const char *line) {}
29022
29023 int
29024 main (void)
29025 {
29026
29027 SSL_CTX *ctx = SSL_CTX_new(TLS_client_method());
29028 SSL_CTX_set_keylog_callback(ctx, keylog_cb);
29029 SSL *ssl = SSL_new(ctx);
29030 X509_VERIFY_PARAM *param = SSL_get0_param(ssl);
29031 X509_VERIFY_PARAM_set1_host(param, "python.org", 0);
29032 SSL_free(ssl);
29033 SSL_CTX_free(ctx);
29034
29035 ;
29036 return 0;
29037 }
29038 _ACEOF
29039 if ac_fn_c_try_link "$LINENO"
29040 then :
29041 ac_cv_working_openssl_ssl=yes
29042 else $as_nop
29043 ac_cv_working_openssl_ssl=no
29044 fi
29045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29046 conftest$ac_exeext conftest.$ac_ext
29047
29048 fi
29049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_ssl" >&5
29050 printf "%s\n" "$ac_cv_working_openssl_ssl" >&6; }
29051
29052 CFLAGS=$save_CFLAGS
29053 CPPFLAGS=$save_CPPFLAGS
29054 LDFLAGS=$save_LDFLAGS
29055 LIBS=$save_LIBS
29056
29057
29058
29059 save_CFLAGS=$CFLAGS
29060 save_CPPFLAGS=$CPPFLAGS
29061 save_LDFLAGS=$LDFLAGS
29062 save_LIBS=$LIBS
29063
29064
29065 LIBS="$LIBS $LIBCRYPTO_LIBS"
29066 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
29067 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
29068
29069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required hashlib module APIs" >&5
29070 printf %s "checking whether OpenSSL provides required hashlib module APIs... " >&6; }
29071 if test ${ac_cv_working_openssl_hashlib+y}
29072 then :
29073 printf %s "(cached) " >&6
29074 else $as_nop
29075
29076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29077 /* end confdefs.h. */
29078
29079 #include <openssl/opensslv.h>
29080 #include <openssl/evp.h>
29081 #if OPENSSL_VERSION_NUMBER < 0x10101000L
29082 #error "OpenSSL >= 1.1.1 is required"
29083 #endif
29084
29085 int
29086 main (void)
29087 {
29088
29089 OBJ_nid2sn(NID_md5);
29090 OBJ_nid2sn(NID_sha1);
29091 OBJ_nid2sn(NID_sha3_512);
29092 OBJ_nid2sn(NID_blake2b512);
29093 EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0);
29094
29095 ;
29096 return 0;
29097 }
29098 _ACEOF
29099 if ac_fn_c_try_link "$LINENO"
29100 then :
29101 ac_cv_working_openssl_hashlib=yes
29102 else $as_nop
29103 ac_cv_working_openssl_hashlib=no
29104 fi
29105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29106 conftest$ac_exeext conftest.$ac_ext
29107
29108 fi
29109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_hashlib" >&5
29110 printf "%s\n" "$ac_cv_working_openssl_hashlib" >&6; }
29111
29112 CFLAGS=$save_CFLAGS
29113 CPPFLAGS=$save_CPPFLAGS
29114 LDFLAGS=$save_LDFLAGS
29115 LIBS=$save_LIBS
29116
29117
29118
29119 # ssl module default cipher suite string
29120
29121
29122
29123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
29124 printf %s "checking for --with-ssl-default-suites... " >&6; }
29125
29126 # Check whether --with-ssl-default-suites was given.
29127 if test ${with_ssl_default_suites+y}
29128 then :
29129 withval=$with_ssl_default_suites;
29130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
29131 printf "%s\n" "$withval" >&6; }
29132 case "$withval" in
29133 python)
29134 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
29135
29136 ;;
29137 openssl)
29138 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
29139
29140 ;;
29141 *)
29142 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
29143
29144 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h
29145
29146 ;;
29147 esac
29148
29149 else $as_nop
29150
29151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5
29152 printf "%s\n" "python" >&6; }
29153 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
29154
29155
29156 fi
29157
29158
29159 # builtin hash modules
29160 default_hashlib_hashes="md5,sha1,sha2,sha3,blake2"
29161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5
29162 printf %s "checking for --with-builtin-hashlib-hashes... " >&6; }
29163
29164 # Check whether --with-builtin-hashlib-hashes was given.
29165 if test ${with_builtin_hashlib_hashes+y}
29166 then :
29167 withval=$with_builtin_hashlib_hashes;
29168 case $with_builtin_hashlib_hashes in #(
29169 yes) :
29170 with_builtin_hashlib_hashes=$default_hashlib_hashes ;; #(
29171 no) :
29172 with_builtin_hashlib_hashes=""
29173 ;; #(
29174 *) :
29175 ;;
29176 esac
29177
29178 else $as_nop
29179 with_builtin_hashlib_hashes=$default_hashlib_hashes
29180 fi
29181
29182
29183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_builtin_hashlib_hashes" >&5
29184 printf "%s\n" "$with_builtin_hashlib_hashes" >&6; }
29185
29186 printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$with_builtin_hashlib_hashes\"" >>confdefs.h
29187
29188
29189 as_save_IFS=$IFS
29190 IFS=,
29191 for builtin_hash in $with_builtin_hashlib_hashes; do
29192 case $builtin_hash in #(
29193 md5) :
29194 with_builtin_md5=yes ;; #(
29195 sha1) :
29196 with_builtin_sha1=yes ;; #(
29197 sha2) :
29198 with_builtin_sha2=yes ;; #(
29199 sha3) :
29200 with_builtin_sha3=yes ;; #(
29201 blake2) :
29202 with_builtin_blake2=yes
29203 ;; #(
29204 *) :
29205 ;;
29206 esac
29207 done
29208 IFS=$as_save_IFS
29209
29210 if test "x$with_builtin_blake2" = xyes
29211 then :
29212
29213
29214 pkg_failed=no
29215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libb2" >&5
29216 printf %s "checking for libb2... " >&6; }
29217
29218 if test -n "$LIBB2_CFLAGS"; then
29219 pkg_cv_LIBB2_CFLAGS="$LIBB2_CFLAGS"
29220 elif test -n "$PKG_CONFIG"; then
29221 if test -n "$PKG_CONFIG" && \
29222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5
29223 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5
29224 ac_status=$?
29225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29226 test $ac_status = 0; }; then
29227 pkg_cv_LIBB2_CFLAGS=`$PKG_CONFIG --cflags "libb2" 2>/dev/null`
29228 test "x$?" != "x0" && pkg_failed=yes
29229 else
29230 pkg_failed=yes
29231 fi
29232 else
29233 pkg_failed=untried
29234 fi
29235 if test -n "$LIBB2_LIBS"; then
29236 pkg_cv_LIBB2_LIBS="$LIBB2_LIBS"
29237 elif test -n "$PKG_CONFIG"; then
29238 if test -n "$PKG_CONFIG" && \
29239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5
29240 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5
29241 ac_status=$?
29242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29243 test $ac_status = 0; }; then
29244 pkg_cv_LIBB2_LIBS=`$PKG_CONFIG --libs "libb2" 2>/dev/null`
29245 test "x$?" != "x0" && pkg_failed=yes
29246 else
29247 pkg_failed=yes
29248 fi
29249 else
29250 pkg_failed=untried
29251 fi
29252
29253
29254
29255 if test $pkg_failed = yes; then
29256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29257 printf "%s\n" "no" >&6; }
29258
29259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29260 _pkg_short_errors_supported=yes
29261 else
29262 _pkg_short_errors_supported=no
29263 fi
29264 if test $_pkg_short_errors_supported = yes; then
29265 LIBB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libb2" 2>&1`
29266 else
29267 LIBB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libb2" 2>&1`
29268 fi
29269 # Put the nasty error message in config.log where it belongs
29270 echo "$LIBB2_PKG_ERRORS" >&5
29271
29272 have_libb2=no
29273 elif test $pkg_failed = untried; then
29274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29275 printf "%s\n" "no" >&6; }
29276 have_libb2=no
29277 else
29278 LIBB2_CFLAGS=$pkg_cv_LIBB2_CFLAGS
29279 LIBB2_LIBS=$pkg_cv_LIBB2_LIBS
29280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29281 printf "%s\n" "yes" >&6; }
29282
29283 have_libb2=yes
29284
29285 printf "%s\n" "#define HAVE_LIBB2 1" >>confdefs.h
29286
29287
29288 fi
29289
29290 fi
29291
29292 # Check whether to disable test modules. Once set, setup.py will not build
29293 # test extension modules and "make install" will not install test suites.
29294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5
29295 printf %s "checking for --disable-test-modules... " >&6; }
29296 # Check whether --enable-test-modules was given.
29297 if test ${enable_test_modules+y}
29298 then :
29299 enableval=$enable_test_modules;
29300 if test "x$enable_test_modules" = xyes
29301 then :
29302 TEST_MODULES=yes
29303 else $as_nop
29304 TEST_MODULES=no
29305 fi
29306
29307 else $as_nop
29308
29309 case $ac_sys_system/$ac_sys_emscripten_target in #(
29310 Emscripten/browser*) :
29311 TEST_MODULES=no ;; #(
29312 *) :
29313 TEST_MODULES=yes
29314 ;;
29315 esac
29316
29317 fi
29318
29319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEST_MODULES" >&5
29320 printf "%s\n" "$TEST_MODULES" >&6; }
29321
29322
29323 # gh-109054: Check if -latomic is needed to get <pyatomic.h> atomic functions.
29324 # On Linux aarch64, GCC may require programs and libraries to be linked
29325 # explicitly to libatomic. Call _Py_atomic_or_uint64() which may require
29326 # libatomic __atomic_fetch_or_8(), or not, depending on the C compiler and the
29327 # compiler flags.
29328 #
29329 # gh-112779: On RISC-V, GCC 12 and earlier require libatomic support for 1-byte
29330 # and 2-byte operations, but not for 8-byte operations.
29331 #
29332 # Avoid #include <Python.h> or #include <pyport.h>. The <Python.h> header
29333 # requires <pyconfig.h> header which is only written below by AC_OUTPUT below.
29334 # If the check is done after AC_OUTPUT, modifying LIBS has no effect
29335 # anymore. <pyport.h> cannot be included alone, it's designed to be included
29336 # by <Python.h>: it expects other includes and macros to be defined.
29337 save_CPPFLAGS=$CPPFLAGS
29338 CPPFLAGS="${BASECPPFLAGS} -I. -I${srcdir}/Include ${CPPFLAGS}"
29339
29340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libatomic is needed by <pyatomic.h>" >&5
29341 printf %s "checking whether libatomic is needed by <pyatomic.h>... " >&6; }
29342 if test ${ac_cv_libatomic_needed+y}
29343 then :
29344 printf %s "(cached) " >&6
29345 else $as_nop
29346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29347 /* end confdefs.h. */
29348
29349 // pyatomic.h needs uint64_t and Py_ssize_t types
29350 #include <stdint.h> // int64_t, intptr_t
29351 #ifdef HAVE_SYS_TYPES_H
29352 # include <sys/types.h> // ssize_t
29353 #endif
29354 // Code adapted from Include/pyport.h
29355 #if HAVE_SSIZE_T
29356 typedef ssize_t Py_ssize_t;
29357 #elif SIZEOF_VOID_P == SIZEOF_SIZE_T
29358 typedef intptr_t Py_ssize_t;
29359 #else
29360 # error "unable to define Py_ssize_t"
29361 #endif
29362
29363 #include "pyatomic.h"
29364
29365 int main()
29366 {
29367 uint64_t value;
29368 _Py_atomic_store_uint64(&value, 2);
29369 if (_Py_atomic_or_uint64(&value, 8) != 2) {
29370 return 1; // error
29371 }
29372 if (_Py_atomic_load_uint64(&value) != 10) {
29373 return 1; // error
29374 }
29375 uint8_t byte = 0xb8;
29376 if (_Py_atomic_or_uint8(&byte, 0x2d) != 0xb8) {
29377 return 1; // error
29378 }
29379 if (_Py_atomic_load_uint8(&byte) != 0xbd) {
29380 return 1; // error
29381 }
29382 return 0; // all good
29383 }
29384
29385 _ACEOF
29386 if ac_fn_c_try_link "$LINENO"
29387 then :
29388 ac_cv_libatomic_needed=no
29389 else $as_nop
29390 ac_cv_libatomic_needed=yes
29391 fi
29392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29393 conftest$ac_exeext conftest.$ac_ext
29394 fi
29395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5
29396 printf "%s\n" "$ac_cv_libatomic_needed" >&6; }
29397
29398 if test "x$ac_cv_libatomic_needed" = xyes
29399 then :
29400 LIBS="${LIBS} -latomic"
29401 LIBATOMIC=${LIBATOMIC-"-latomic"}
29402 fi
29403 CPPFLAGS=$save_CPPFLAGS
29404
29405
29406 # stdlib
29407
29408
29409 # stdlib not available
29410 case $ac_sys_system in #(
29411 AIX) :
29412
29413
29414 py_cv_module__scproxy=n/a
29415 ;; #(
29416 VxWorks*) :
29417
29418
29419 py_cv_module__scproxy=n/a
29420 py_cv_module_termios=n/a
29421 py_cv_module_grp=n/a
29422 ;; #(
29423 Darwin) :
29424 ;; #(
29425 iOS) :
29426
29427
29428
29429 py_cv_module__curses=n/a
29430 py_cv_module__curses_panel=n/a
29431 py_cv_module__gdbm=n/a
29432 py_cv_module__multiprocessing=n/a
29433 py_cv_module__posixshmem=n/a
29434 py_cv_module__posixsubprocess=n/a
29435 py_cv_module__scproxy=n/a
29436 py_cv_module__tkinter=n/a
29437 py_cv_module_grp=n/a
29438 py_cv_module_nis=n/a
29439 py_cv_module_readline=n/a
29440 py_cv_module_pwd=n/a
29441 py_cv_module_spwd=n/a
29442 py_cv_module_syslog=n/a
29443 py_cv_module_=n/a
29444
29445 ;; #(
29446 CYGWIN*) :
29447
29448
29449 py_cv_module__scproxy=n/a
29450 ;; #(
29451 QNX*) :
29452
29453
29454 py_cv_module__scproxy=n/a
29455 ;; #(
29456 FreeBSD*) :
29457
29458
29459 py_cv_module__scproxy=n/a
29460 ;; #(
29461 Emscripten|WASI) :
29462
29463
29464
29465 py_cv_module__curses=n/a
29466 py_cv_module__curses_panel=n/a
29467 py_cv_module__dbm=n/a
29468 py_cv_module__gdbm=n/a
29469 py_cv_module__multiprocessing=n/a
29470 py_cv_module__posixshmem=n/a
29471 py_cv_module__posixsubprocess=n/a
29472 py_cv_module__scproxy=n/a
29473 py_cv_module__tkinter=n/a
29474 py_cv_module__interpreters=n/a
29475 py_cv_module__interpchannels=n/a
29476 py_cv_module__interpqueues=n/a
29477 py_cv_module_grp=n/a
29478 py_cv_module_pwd=n/a
29479 py_cv_module_resource=n/a
29480 py_cv_module_syslog=n/a
29481 py_cv_module_=n/a
29482
29483 case $ac_sys_system/$ac_sys_emscripten_target in #(
29484 Emscripten/browser*) :
29485
29486
29487
29488 py_cv_module_fcntl=n/a
29489 py_cv_module_readline=n/a
29490 py_cv_module_termios=n/a
29491 py_cv_module_=n/a
29492
29493 ;; #(
29494 Emscripten/node*) :
29495 ;; #(
29496 WASI/*) :
29497
29498
29499
29500 py_cv_module__ctypes_test=n/a
29501 py_cv_module__testexternalinspection=n/a
29502 py_cv_module__testimportmultiple=n/a
29503 py_cv_module__testmultiphase=n/a
29504 py_cv_module__testsinglephase=n/a
29505 py_cv_module_fcntl=n/a
29506 py_cv_module_mmap=n/a
29507 py_cv_module_termios=n/a
29508 py_cv_module_xxlimited=n/a
29509 py_cv_module_xxlimited_35=n/a
29510 py_cv_module_=n/a
29511
29512
29513 ;; #(
29514 *) :
29515 ;;
29516 esac
29517 ;; #(
29518 *) :
29519
29520
29521 py_cv_module__scproxy=n/a
29522
29523 ;;
29524 esac
29525
29526
29527 case $host_cpu in #(
29528 wasm32|wasm64) :
29529 MODULE_BUILDTYPE=static ;; #(
29530 *) :
29531 MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared}
29532 ;;
29533 esac
29534
29535
29536
29537 MODULE_BLOCK=
29538
29539
29540
29541
29542
29543
29544 if test "$py_cv_module__io" != "n/a"
29545 then :
29546 py_cv_module__io=yes
29547 fi
29548 if test "$py_cv_module__io" = yes; then
29549 MODULE__IO_TRUE=
29550 MODULE__IO_FALSE='#'
29551 else
29552 MODULE__IO_TRUE='#'
29553 MODULE__IO_FALSE=
29554 fi
29555
29556 as_fn_append MODULE_BLOCK "MODULE__IO_STATE=$py_cv_module__io$as_nl"
29557 if test "x$py_cv_module__io" = xyes
29558 then :
29559
29560 as_fn_append MODULE_BLOCK "MODULE__IO_CFLAGS=-I\$(srcdir)/Modules/_io$as_nl"
29561
29562
29563 fi
29564
29565
29566 if test "$py_cv_module_time" != "n/a"
29567 then :
29568 py_cv_module_time=yes
29569 fi
29570 if test "$py_cv_module_time" = yes; then
29571 MODULE_TIME_TRUE=
29572 MODULE_TIME_FALSE='#'
29573 else
29574 MODULE_TIME_TRUE='#'
29575 MODULE_TIME_FALSE=
29576 fi
29577
29578 as_fn_append MODULE_BLOCK "MODULE_TIME_STATE=$py_cv_module_time$as_nl"
29579 if test "x$py_cv_module_time" = xyes
29580 then :
29581
29582
29583 as_fn_append MODULE_BLOCK "MODULE_TIME_LDFLAGS=$TIMEMODULE_LIB$as_nl"
29584
29585 fi
29586
29587
29588
29589 if test "$py_cv_module_array" != "n/a"
29590 then :
29591 py_cv_module_array=yes
29592 fi
29593 if test "$py_cv_module_array" = yes; then
29594 MODULE_ARRAY_TRUE=
29595 MODULE_ARRAY_FALSE='#'
29596 else
29597 MODULE_ARRAY_TRUE='#'
29598 MODULE_ARRAY_FALSE=
29599 fi
29600
29601 as_fn_append MODULE_BLOCK "MODULE_ARRAY_STATE=$py_cv_module_array$as_nl"
29602 if test "x$py_cv_module_array" = xyes
29603 then :
29604
29605
29606
29607
29608 fi
29609
29610
29611 if test "$py_cv_module__asyncio" != "n/a"
29612 then :
29613 py_cv_module__asyncio=yes
29614 fi
29615 if test "$py_cv_module__asyncio" = yes; then
29616 MODULE__ASYNCIO_TRUE=
29617 MODULE__ASYNCIO_FALSE='#'
29618 else
29619 MODULE__ASYNCIO_TRUE='#'
29620 MODULE__ASYNCIO_FALSE=
29621 fi
29622
29623 as_fn_append MODULE_BLOCK "MODULE__ASYNCIO_STATE=$py_cv_module__asyncio$as_nl"
29624 if test "x$py_cv_module__asyncio" = xyes
29625 then :
29626
29627
29628
29629
29630 fi
29631
29632
29633 if test "$py_cv_module__bisect" != "n/a"
29634 then :
29635 py_cv_module__bisect=yes
29636 fi
29637 if test "$py_cv_module__bisect" = yes; then
29638 MODULE__BISECT_TRUE=
29639 MODULE__BISECT_FALSE='#'
29640 else
29641 MODULE__BISECT_TRUE='#'
29642 MODULE__BISECT_FALSE=
29643 fi
29644
29645 as_fn_append MODULE_BLOCK "MODULE__BISECT_STATE=$py_cv_module__bisect$as_nl"
29646 if test "x$py_cv_module__bisect" = xyes
29647 then :
29648
29649
29650
29651
29652 fi
29653
29654
29655 if test "$py_cv_module__contextvars" != "n/a"
29656 then :
29657 py_cv_module__contextvars=yes
29658 fi
29659 if test "$py_cv_module__contextvars" = yes; then
29660 MODULE__CONTEXTVARS_TRUE=
29661 MODULE__CONTEXTVARS_FALSE='#'
29662 else
29663 MODULE__CONTEXTVARS_TRUE='#'
29664 MODULE__CONTEXTVARS_FALSE=
29665 fi
29666
29667 as_fn_append MODULE_BLOCK "MODULE__CONTEXTVARS_STATE=$py_cv_module__contextvars$as_nl"
29668 if test "x$py_cv_module__contextvars" = xyes
29669 then :
29670
29671
29672
29673
29674 fi
29675
29676
29677 if test "$py_cv_module__csv" != "n/a"
29678 then :
29679 py_cv_module__csv=yes
29680 fi
29681 if test "$py_cv_module__csv" = yes; then
29682 MODULE__CSV_TRUE=
29683 MODULE__CSV_FALSE='#'
29684 else
29685 MODULE__CSV_TRUE='#'
29686 MODULE__CSV_FALSE=
29687 fi
29688
29689 as_fn_append MODULE_BLOCK "MODULE__CSV_STATE=$py_cv_module__csv$as_nl"
29690 if test "x$py_cv_module__csv" = xyes
29691 then :
29692
29693
29694
29695
29696 fi
29697
29698
29699 if test "$py_cv_module__heapq" != "n/a"
29700 then :
29701 py_cv_module__heapq=yes
29702 fi
29703 if test "$py_cv_module__heapq" = yes; then
29704 MODULE__HEAPQ_TRUE=
29705 MODULE__HEAPQ_FALSE='#'
29706 else
29707 MODULE__HEAPQ_TRUE='#'
29708 MODULE__HEAPQ_FALSE=
29709 fi
29710
29711 as_fn_append MODULE_BLOCK "MODULE__HEAPQ_STATE=$py_cv_module__heapq$as_nl"
29712 if test "x$py_cv_module__heapq" = xyes
29713 then :
29714
29715
29716
29717
29718 fi
29719
29720
29721 if test "$py_cv_module__json" != "n/a"
29722 then :
29723 py_cv_module__json=yes
29724 fi
29725 if test "$py_cv_module__json" = yes; then
29726 MODULE__JSON_TRUE=
29727 MODULE__JSON_FALSE='#'
29728 else
29729 MODULE__JSON_TRUE='#'
29730 MODULE__JSON_FALSE=
29731 fi
29732
29733 as_fn_append MODULE_BLOCK "MODULE__JSON_STATE=$py_cv_module__json$as_nl"
29734 if test "x$py_cv_module__json" = xyes
29735 then :
29736
29737
29738
29739
29740 fi
29741
29742
29743 if test "$py_cv_module__lsprof" != "n/a"
29744 then :
29745 py_cv_module__lsprof=yes
29746 fi
29747 if test "$py_cv_module__lsprof" = yes; then
29748 MODULE__LSPROF_TRUE=
29749 MODULE__LSPROF_FALSE='#'
29750 else
29751 MODULE__LSPROF_TRUE='#'
29752 MODULE__LSPROF_FALSE=
29753 fi
29754
29755 as_fn_append MODULE_BLOCK "MODULE__LSPROF_STATE=$py_cv_module__lsprof$as_nl"
29756 if test "x$py_cv_module__lsprof" = xyes
29757 then :
29758
29759
29760
29761
29762 fi
29763
29764
29765 if test "$py_cv_module__opcode" != "n/a"
29766 then :
29767 py_cv_module__opcode=yes
29768 fi
29769 if test "$py_cv_module__opcode" = yes; then
29770 MODULE__OPCODE_TRUE=
29771 MODULE__OPCODE_FALSE='#'
29772 else
29773 MODULE__OPCODE_TRUE='#'
29774 MODULE__OPCODE_FALSE=
29775 fi
29776
29777 as_fn_append MODULE_BLOCK "MODULE__OPCODE_STATE=$py_cv_module__opcode$as_nl"
29778 if test "x$py_cv_module__opcode" = xyes
29779 then :
29780
29781
29782
29783
29784 fi
29785
29786
29787 if test "$py_cv_module__pickle" != "n/a"
29788 then :
29789 py_cv_module__pickle=yes
29790 fi
29791 if test "$py_cv_module__pickle" = yes; then
29792 MODULE__PICKLE_TRUE=
29793 MODULE__PICKLE_FALSE='#'
29794 else
29795 MODULE__PICKLE_TRUE='#'
29796 MODULE__PICKLE_FALSE=
29797 fi
29798
29799 as_fn_append MODULE_BLOCK "MODULE__PICKLE_STATE=$py_cv_module__pickle$as_nl"
29800 if test "x$py_cv_module__pickle" = xyes
29801 then :
29802
29803
29804
29805
29806 fi
29807
29808
29809 if test "$py_cv_module__posixsubprocess" != "n/a"
29810 then :
29811 py_cv_module__posixsubprocess=yes
29812 fi
29813 if test "$py_cv_module__posixsubprocess" = yes; then
29814 MODULE__POSIXSUBPROCESS_TRUE=
29815 MODULE__POSIXSUBPROCESS_FALSE='#'
29816 else
29817 MODULE__POSIXSUBPROCESS_TRUE='#'
29818 MODULE__POSIXSUBPROCESS_FALSE=
29819 fi
29820
29821 as_fn_append MODULE_BLOCK "MODULE__POSIXSUBPROCESS_STATE=$py_cv_module__posixsubprocess$as_nl"
29822 if test "x$py_cv_module__posixsubprocess" = xyes
29823 then :
29824
29825
29826
29827
29828 fi
29829
29830
29831 if test "$py_cv_module__queue" != "n/a"
29832 then :
29833 py_cv_module__queue=yes
29834 fi
29835 if test "$py_cv_module__queue" = yes; then
29836 MODULE__QUEUE_TRUE=
29837 MODULE__QUEUE_FALSE='#'
29838 else
29839 MODULE__QUEUE_TRUE='#'
29840 MODULE__QUEUE_FALSE=
29841 fi
29842
29843 as_fn_append MODULE_BLOCK "MODULE__QUEUE_STATE=$py_cv_module__queue$as_nl"
29844 if test "x$py_cv_module__queue" = xyes
29845 then :
29846
29847
29848
29849
29850 fi
29851
29852
29853 if test "$py_cv_module__random" != "n/a"
29854 then :
29855 py_cv_module__random=yes
29856 fi
29857 if test "$py_cv_module__random" = yes; then
29858 MODULE__RANDOM_TRUE=
29859 MODULE__RANDOM_FALSE='#'
29860 else
29861 MODULE__RANDOM_TRUE='#'
29862 MODULE__RANDOM_FALSE=
29863 fi
29864
29865 as_fn_append MODULE_BLOCK "MODULE__RANDOM_STATE=$py_cv_module__random$as_nl"
29866 if test "x$py_cv_module__random" = xyes
29867 then :
29868
29869
29870
29871
29872 fi
29873
29874
29875 if test "$py_cv_module_select" != "n/a"
29876 then :
29877 py_cv_module_select=yes
29878 fi
29879 if test "$py_cv_module_select" = yes; then
29880 MODULE_SELECT_TRUE=
29881 MODULE_SELECT_FALSE='#'
29882 else
29883 MODULE_SELECT_TRUE='#'
29884 MODULE_SELECT_FALSE=
29885 fi
29886
29887 as_fn_append MODULE_BLOCK "MODULE_SELECT_STATE=$py_cv_module_select$as_nl"
29888 if test "x$py_cv_module_select" = xyes
29889 then :
29890
29891
29892
29893
29894 fi
29895
29896
29897 if test "$py_cv_module__struct" != "n/a"
29898 then :
29899 py_cv_module__struct=yes
29900 fi
29901 if test "$py_cv_module__struct" = yes; then
29902 MODULE__STRUCT_TRUE=
29903 MODULE__STRUCT_FALSE='#'
29904 else
29905 MODULE__STRUCT_TRUE='#'
29906 MODULE__STRUCT_FALSE=
29907 fi
29908
29909 as_fn_append MODULE_BLOCK "MODULE__STRUCT_STATE=$py_cv_module__struct$as_nl"
29910 if test "x$py_cv_module__struct" = xyes
29911 then :
29912
29913
29914
29915
29916 fi
29917
29918
29919 if test "$py_cv_module__typing" != "n/a"
29920 then :
29921 py_cv_module__typing=yes
29922 fi
29923 if test "$py_cv_module__typing" = yes; then
29924 MODULE__TYPING_TRUE=
29925 MODULE__TYPING_FALSE='#'
29926 else
29927 MODULE__TYPING_TRUE='#'
29928 MODULE__TYPING_FALSE=
29929 fi
29930
29931 as_fn_append MODULE_BLOCK "MODULE__TYPING_STATE=$py_cv_module__typing$as_nl"
29932 if test "x$py_cv_module__typing" = xyes
29933 then :
29934
29935
29936
29937
29938 fi
29939
29940
29941 if test "$py_cv_module__interpreters" != "n/a"
29942 then :
29943 py_cv_module__interpreters=yes
29944 fi
29945 if test "$py_cv_module__interpreters" = yes; then
29946 MODULE__INTERPRETERS_TRUE=
29947 MODULE__INTERPRETERS_FALSE='#'
29948 else
29949 MODULE__INTERPRETERS_TRUE='#'
29950 MODULE__INTERPRETERS_FALSE=
29951 fi
29952
29953 as_fn_append MODULE_BLOCK "MODULE__INTERPRETERS_STATE=$py_cv_module__interpreters$as_nl"
29954 if test "x$py_cv_module__interpreters" = xyes
29955 then :
29956
29957
29958
29959
29960 fi
29961
29962
29963 if test "$py_cv_module__interpchannels" != "n/a"
29964 then :
29965 py_cv_module__interpchannels=yes
29966 fi
29967 if test "$py_cv_module__interpchannels" = yes; then
29968 MODULE__INTERPCHANNELS_TRUE=
29969 MODULE__INTERPCHANNELS_FALSE='#'
29970 else
29971 MODULE__INTERPCHANNELS_TRUE='#'
29972 MODULE__INTERPCHANNELS_FALSE=
29973 fi
29974
29975 as_fn_append MODULE_BLOCK "MODULE__INTERPCHANNELS_STATE=$py_cv_module__interpchannels$as_nl"
29976 if test "x$py_cv_module__interpchannels" = xyes
29977 then :
29978
29979
29980
29981
29982 fi
29983
29984
29985 if test "$py_cv_module__interpqueues" != "n/a"
29986 then :
29987 py_cv_module__interpqueues=yes
29988 fi
29989 if test "$py_cv_module__interpqueues" = yes; then
29990 MODULE__INTERPQUEUES_TRUE=
29991 MODULE__INTERPQUEUES_FALSE='#'
29992 else
29993 MODULE__INTERPQUEUES_TRUE='#'
29994 MODULE__INTERPQUEUES_FALSE=
29995 fi
29996
29997 as_fn_append MODULE_BLOCK "MODULE__INTERPQUEUES_STATE=$py_cv_module__interpqueues$as_nl"
29998 if test "x$py_cv_module__interpqueues" = xyes
29999 then :
30000
30001
30002
30003
30004 fi
30005
30006
30007 if test "$py_cv_module__zoneinfo" != "n/a"
30008 then :
30009 py_cv_module__zoneinfo=yes
30010 fi
30011 if test "$py_cv_module__zoneinfo" = yes; then
30012 MODULE__ZONEINFO_TRUE=
30013 MODULE__ZONEINFO_FALSE='#'
30014 else
30015 MODULE__ZONEINFO_TRUE='#'
30016 MODULE__ZONEINFO_FALSE=
30017 fi
30018
30019 as_fn_append MODULE_BLOCK "MODULE__ZONEINFO_STATE=$py_cv_module__zoneinfo$as_nl"
30020 if test "x$py_cv_module__zoneinfo" = xyes
30021 then :
30022
30023
30024
30025
30026 fi
30027
30028
30029
30030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _multiprocessing" >&5
30031 printf %s "checking for stdlib extension module _multiprocessing... " >&6; }
30032 if test "$py_cv_module__multiprocessing" != "n/a"
30033 then :
30034
30035 if true
30036 then :
30037 if test "$ac_cv_func_sem_unlink" = "yes"
30038 then :
30039 py_cv_module__multiprocessing=yes
30040 else $as_nop
30041 py_cv_module__multiprocessing=missing
30042 fi
30043 else $as_nop
30044 py_cv_module__multiprocessing=disabled
30045 fi
30046
30047 fi
30048 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_STATE=$py_cv_module__multiprocessing$as_nl"
30049 if test "x$py_cv_module__multiprocessing" = xyes
30050 then :
30051
30052 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_CFLAGS=-I\$(srcdir)/Modules/_multiprocessing$as_nl"
30053
30054
30055 fi
30056 if test "$py_cv_module__multiprocessing" = yes; then
30057 MODULE__MULTIPROCESSING_TRUE=
30058 MODULE__MULTIPROCESSING_FALSE='#'
30059 else
30060 MODULE__MULTIPROCESSING_TRUE='#'
30061 MODULE__MULTIPROCESSING_FALSE=
30062 fi
30063
30064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__multiprocessing" >&5
30065 printf "%s\n" "$py_cv_module__multiprocessing" >&6; }
30066
30067
30068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5
30069 printf %s "checking for stdlib extension module _posixshmem... " >&6; }
30070 if test "$py_cv_module__posixshmem" != "n/a"
30071 then :
30072
30073 if true
30074 then :
30075 if test "$have_posix_shmem" = "yes"
30076 then :
30077 py_cv_module__posixshmem=yes
30078 else $as_nop
30079 py_cv_module__posixshmem=missing
30080 fi
30081 else $as_nop
30082 py_cv_module__posixshmem=disabled
30083 fi
30084
30085 fi
30086 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_STATE=$py_cv_module__posixshmem$as_nl"
30087 if test "x$py_cv_module__posixshmem" = xyes
30088 then :
30089
30090 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl"
30091 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl"
30092
30093 fi
30094 if test "$py_cv_module__posixshmem" = yes; then
30095 MODULE__POSIXSHMEM_TRUE=
30096 MODULE__POSIXSHMEM_FALSE='#'
30097 else
30098 MODULE__POSIXSHMEM_TRUE='#'
30099 MODULE__POSIXSHMEM_FALSE=
30100 fi
30101
30102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5
30103 printf "%s\n" "$py_cv_module__posixshmem" >&6; }
30104
30105
30106
30107 if test "$py_cv_module__statistics" != "n/a"
30108 then :
30109 py_cv_module__statistics=yes
30110 fi
30111 if test "$py_cv_module__statistics" = yes; then
30112 MODULE__STATISTICS_TRUE=
30113 MODULE__STATISTICS_FALSE='#'
30114 else
30115 MODULE__STATISTICS_TRUE='#'
30116 MODULE__STATISTICS_FALSE=
30117 fi
30118
30119 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_STATE=$py_cv_module__statistics$as_nl"
30120 if test "x$py_cv_module__statistics" = xyes
30121 then :
30122
30123
30124 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_LDFLAGS=$LIBM$as_nl"
30125
30126 fi
30127
30128
30129 if test "$py_cv_module_cmath" != "n/a"
30130 then :
30131 py_cv_module_cmath=yes
30132 fi
30133 if test "$py_cv_module_cmath" = yes; then
30134 MODULE_CMATH_TRUE=
30135 MODULE_CMATH_FALSE='#'
30136 else
30137 MODULE_CMATH_TRUE='#'
30138 MODULE_CMATH_FALSE=
30139 fi
30140
30141 as_fn_append MODULE_BLOCK "MODULE_CMATH_STATE=$py_cv_module_cmath$as_nl"
30142 if test "x$py_cv_module_cmath" = xyes
30143 then :
30144
30145
30146 as_fn_append MODULE_BLOCK "MODULE_CMATH_LDFLAGS=$LIBM$as_nl"
30147
30148 fi
30149
30150
30151 if test "$py_cv_module_math" != "n/a"
30152 then :
30153 py_cv_module_math=yes
30154 fi
30155 if test "$py_cv_module_math" = yes; then
30156 MODULE_MATH_TRUE=
30157 MODULE_MATH_FALSE='#'
30158 else
30159 MODULE_MATH_TRUE='#'
30160 MODULE_MATH_FALSE=
30161 fi
30162
30163 as_fn_append MODULE_BLOCK "MODULE_MATH_STATE=$py_cv_module_math$as_nl"
30164 if test "x$py_cv_module_math" = xyes
30165 then :
30166
30167
30168 as_fn_append MODULE_BLOCK "MODULE_MATH_LDFLAGS=$LIBM$as_nl"
30169
30170 fi
30171
30172
30173
30174 if test "$py_cv_module__datetime" != "n/a"
30175 then :
30176 py_cv_module__datetime=yes
30177 fi
30178 if test "$py_cv_module__datetime" = yes; then
30179 MODULE__DATETIME_TRUE=
30180 MODULE__DATETIME_FALSE='#'
30181 else
30182 MODULE__DATETIME_TRUE='#'
30183 MODULE__DATETIME_FALSE=
30184 fi
30185
30186 as_fn_append MODULE_BLOCK "MODULE__DATETIME_STATE=$py_cv_module__datetime$as_nl"
30187 if test "x$py_cv_module__datetime" = xyes
30188 then :
30189
30190
30191 as_fn_append MODULE_BLOCK "MODULE__DATETIME_LDFLAGS=$TIMEMODULE_LIB $LIBM$as_nl"
30192
30193 fi
30194
30195
30196
30197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module fcntl" >&5
30198 printf %s "checking for stdlib extension module fcntl... " >&6; }
30199 if test "$py_cv_module_fcntl" != "n/a"
30200 then :
30201
30202 if true
30203 then :
30204 if test "$ac_cv_header_sys_ioctl_h" = "yes" -a "$ac_cv_header_fcntl_h" = "yes"
30205 then :
30206 py_cv_module_fcntl=yes
30207 else $as_nop
30208 py_cv_module_fcntl=missing
30209 fi
30210 else $as_nop
30211 py_cv_module_fcntl=disabled
30212 fi
30213
30214 fi
30215 as_fn_append MODULE_BLOCK "MODULE_FCNTL_STATE=$py_cv_module_fcntl$as_nl"
30216 if test "x$py_cv_module_fcntl" = xyes
30217 then :
30218
30219
30220 as_fn_append MODULE_BLOCK "MODULE_FCNTL_LDFLAGS=$FCNTL_LIBS$as_nl"
30221
30222 fi
30223 if test "$py_cv_module_fcntl" = yes; then
30224 MODULE_FCNTL_TRUE=
30225 MODULE_FCNTL_FALSE='#'
30226 else
30227 MODULE_FCNTL_TRUE='#'
30228 MODULE_FCNTL_FALSE=
30229 fi
30230
30231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_fcntl" >&5
30232 printf "%s\n" "$py_cv_module_fcntl" >&6; }
30233
30234
30235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module mmap" >&5
30236 printf %s "checking for stdlib extension module mmap... " >&6; }
30237 if test "$py_cv_module_mmap" != "n/a"
30238 then :
30239
30240 if true
30241 then :
30242 if test "$ac_cv_header_sys_mman_h" = "yes" -a "$ac_cv_header_sys_stat_h" = "yes"
30243 then :
30244 py_cv_module_mmap=yes
30245 else $as_nop
30246 py_cv_module_mmap=missing
30247 fi
30248 else $as_nop
30249 py_cv_module_mmap=disabled
30250 fi
30251
30252 fi
30253 as_fn_append MODULE_BLOCK "MODULE_MMAP_STATE=$py_cv_module_mmap$as_nl"
30254 if test "x$py_cv_module_mmap" = xyes
30255 then :
30256
30257
30258
30259
30260 fi
30261 if test "$py_cv_module_mmap" = yes; then
30262 MODULE_MMAP_TRUE=
30263 MODULE_MMAP_FALSE='#'
30264 else
30265 MODULE_MMAP_TRUE='#'
30266 MODULE_MMAP_FALSE=
30267 fi
30268
30269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_mmap" >&5
30270 printf "%s\n" "$py_cv_module_mmap" >&6; }
30271
30272
30273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _socket" >&5
30274 printf %s "checking for stdlib extension module _socket... " >&6; }
30275 if test "$py_cv_module__socket" != "n/a"
30276 then :
30277
30278 if true
30279 then :
30280 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"
30281 then :
30282 py_cv_module__socket=yes
30283 else $as_nop
30284 py_cv_module__socket=missing
30285 fi
30286 else $as_nop
30287 py_cv_module__socket=disabled
30288 fi
30289
30290 fi
30291 as_fn_append MODULE_BLOCK "MODULE__SOCKET_STATE=$py_cv_module__socket$as_nl"
30292 if test "x$py_cv_module__socket" = xyes
30293 then :
30294
30295
30296
30297
30298 fi
30299 if test "$py_cv_module__socket" = yes; then
30300 MODULE__SOCKET_TRUE=
30301 MODULE__SOCKET_FALSE='#'
30302 else
30303 MODULE__SOCKET_TRUE='#'
30304 MODULE__SOCKET_FALSE=
30305 fi
30306
30307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__socket" >&5
30308 printf "%s\n" "$py_cv_module__socket" >&6; }
30309
30310
30311
30312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module grp" >&5
30313 printf %s "checking for stdlib extension module grp... " >&6; }
30314 if test "$py_cv_module_grp" != "n/a"
30315 then :
30316
30317 if true
30318 then :
30319 if test "$ac_cv_func_getgrent" = "yes" &&
30320 { test "$ac_cv_func_getgrgid" = "yes" || test "$ac_cv_func_getgrgid_r" = "yes"; }
30321 then :
30322 py_cv_module_grp=yes
30323 else $as_nop
30324 py_cv_module_grp=missing
30325 fi
30326 else $as_nop
30327 py_cv_module_grp=disabled
30328 fi
30329
30330 fi
30331 as_fn_append MODULE_BLOCK "MODULE_GRP_STATE=$py_cv_module_grp$as_nl"
30332 if test "x$py_cv_module_grp" = xyes
30333 then :
30334
30335
30336
30337
30338 fi
30339 if test "$py_cv_module_grp" = yes; then
30340 MODULE_GRP_TRUE=
30341 MODULE_GRP_FALSE='#'
30342 else
30343 MODULE_GRP_TRUE='#'
30344 MODULE_GRP_FALSE=
30345 fi
30346
30347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_grp" >&5
30348 printf "%s\n" "$py_cv_module_grp" >&6; }
30349
30350
30351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pwd" >&5
30352 printf %s "checking for stdlib extension module pwd... " >&6; }
30353 if test "$py_cv_module_pwd" != "n/a"
30354 then :
30355
30356 if true
30357 then :
30358 if test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes
30359 then :
30360 py_cv_module_pwd=yes
30361 else $as_nop
30362 py_cv_module_pwd=missing
30363 fi
30364 else $as_nop
30365 py_cv_module_pwd=disabled
30366 fi
30367
30368 fi
30369 as_fn_append MODULE_BLOCK "MODULE_PWD_STATE=$py_cv_module_pwd$as_nl"
30370 if test "x$py_cv_module_pwd" = xyes
30371 then :
30372
30373
30374
30375
30376 fi
30377 if test "$py_cv_module_pwd" = yes; then
30378 MODULE_PWD_TRUE=
30379 MODULE_PWD_FALSE='#'
30380 else
30381 MODULE_PWD_TRUE='#'
30382 MODULE_PWD_FALSE=
30383 fi
30384
30385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pwd" >&5
30386 printf "%s\n" "$py_cv_module_pwd" >&6; }
30387
30388
30389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module resource" >&5
30390 printf %s "checking for stdlib extension module resource... " >&6; }
30391 if test "$py_cv_module_resource" != "n/a"
30392 then :
30393
30394 if true
30395 then :
30396 if test "$ac_cv_header_sys_resource_h" = yes
30397 then :
30398 py_cv_module_resource=yes
30399 else $as_nop
30400 py_cv_module_resource=missing
30401 fi
30402 else $as_nop
30403 py_cv_module_resource=disabled
30404 fi
30405
30406 fi
30407 as_fn_append MODULE_BLOCK "MODULE_RESOURCE_STATE=$py_cv_module_resource$as_nl"
30408 if test "x$py_cv_module_resource" = xyes
30409 then :
30410
30411
30412
30413
30414 fi
30415 if test "$py_cv_module_resource" = yes; then
30416 MODULE_RESOURCE_TRUE=
30417 MODULE_RESOURCE_FALSE='#'
30418 else
30419 MODULE_RESOURCE_TRUE='#'
30420 MODULE_RESOURCE_FALSE=
30421 fi
30422
30423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_resource" >&5
30424 printf "%s\n" "$py_cv_module_resource" >&6; }
30425
30426
30427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _scproxy" >&5
30428 printf %s "checking for stdlib extension module _scproxy... " >&6; }
30429 if test "$py_cv_module__scproxy" != "n/a"
30430 then :
30431
30432 if test "$ac_sys_system" = "Darwin"
30433 then :
30434 if true
30435 then :
30436 py_cv_module__scproxy=yes
30437 else $as_nop
30438 py_cv_module__scproxy=missing
30439 fi
30440 else $as_nop
30441 py_cv_module__scproxy=disabled
30442 fi
30443
30444 fi
30445 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_STATE=$py_cv_module__scproxy$as_nl"
30446 if test "x$py_cv_module__scproxy" = xyes
30447 then :
30448
30449
30450 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_LDFLAGS=-framework SystemConfiguration -framework CoreFoundation$as_nl"
30451
30452 fi
30453 if test "$py_cv_module__scproxy" = yes; then
30454 MODULE__SCPROXY_TRUE=
30455 MODULE__SCPROXY_FALSE='#'
30456 else
30457 MODULE__SCPROXY_TRUE='#'
30458 MODULE__SCPROXY_FALSE=
30459 fi
30460
30461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__scproxy" >&5
30462 printf "%s\n" "$py_cv_module__scproxy" >&6; }
30463
30464
30465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module syslog" >&5
30466 printf %s "checking for stdlib extension module syslog... " >&6; }
30467 if test "$py_cv_module_syslog" != "n/a"
30468 then :
30469
30470 if true
30471 then :
30472 if test "$ac_cv_header_syslog_h" = yes
30473 then :
30474 py_cv_module_syslog=yes
30475 else $as_nop
30476 py_cv_module_syslog=missing
30477 fi
30478 else $as_nop
30479 py_cv_module_syslog=disabled
30480 fi
30481
30482 fi
30483 as_fn_append MODULE_BLOCK "MODULE_SYSLOG_STATE=$py_cv_module_syslog$as_nl"
30484 if test "x$py_cv_module_syslog" = xyes
30485 then :
30486
30487
30488
30489
30490 fi
30491 if test "$py_cv_module_syslog" = yes; then
30492 MODULE_SYSLOG_TRUE=
30493 MODULE_SYSLOG_FALSE='#'
30494 else
30495 MODULE_SYSLOG_TRUE='#'
30496 MODULE_SYSLOG_FALSE=
30497 fi
30498
30499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_syslog" >&5
30500 printf "%s\n" "$py_cv_module_syslog" >&6; }
30501
30502
30503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module termios" >&5
30504 printf %s "checking for stdlib extension module termios... " >&6; }
30505 if test "$py_cv_module_termios" != "n/a"
30506 then :
30507
30508 if true
30509 then :
30510 if test "$ac_cv_header_termios_h" = yes
30511 then :
30512 py_cv_module_termios=yes
30513 else $as_nop
30514 py_cv_module_termios=missing
30515 fi
30516 else $as_nop
30517 py_cv_module_termios=disabled
30518 fi
30519
30520 fi
30521 as_fn_append MODULE_BLOCK "MODULE_TERMIOS_STATE=$py_cv_module_termios$as_nl"
30522 if test "x$py_cv_module_termios" = xyes
30523 then :
30524
30525
30526
30527
30528 fi
30529 if test "$py_cv_module_termios" = yes; then
30530 MODULE_TERMIOS_TRUE=
30531 MODULE_TERMIOS_FALSE='#'
30532 else
30533 MODULE_TERMIOS_TRUE='#'
30534 MODULE_TERMIOS_FALSE=
30535 fi
30536
30537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_termios" >&5
30538 printf "%s\n" "$py_cv_module_termios" >&6; }
30539
30540
30541
30542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pyexpat" >&5
30543 printf %s "checking for stdlib extension module pyexpat... " >&6; }
30544 if test "$py_cv_module_pyexpat" != "n/a"
30545 then :
30546
30547 if true
30548 then :
30549 if test "$ac_cv_header_sys_time_h" = "yes"
30550 then :
30551 py_cv_module_pyexpat=yes
30552 else $as_nop
30553 py_cv_module_pyexpat=missing
30554 fi
30555 else $as_nop
30556 py_cv_module_pyexpat=disabled
30557 fi
30558
30559 fi
30560 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_STATE=$py_cv_module_pyexpat$as_nl"
30561 if test "x$py_cv_module_pyexpat" = xyes
30562 then :
30563
30564 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
30565 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_LDFLAGS=$LIBEXPAT_LDFLAGS$as_nl"
30566
30567 fi
30568 if test "$py_cv_module_pyexpat" = yes; then
30569 MODULE_PYEXPAT_TRUE=
30570 MODULE_PYEXPAT_FALSE='#'
30571 else
30572 MODULE_PYEXPAT_TRUE='#'
30573 MODULE_PYEXPAT_FALSE=
30574 fi
30575
30576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pyexpat" >&5
30577 printf "%s\n" "$py_cv_module_pyexpat" >&6; }
30578
30579
30580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _elementtree" >&5
30581 printf %s "checking for stdlib extension module _elementtree... " >&6; }
30582 if test "$py_cv_module__elementtree" != "n/a"
30583 then :
30584
30585 if true
30586 then :
30587 if true
30588 then :
30589 py_cv_module__elementtree=yes
30590 else $as_nop
30591 py_cv_module__elementtree=missing
30592 fi
30593 else $as_nop
30594 py_cv_module__elementtree=disabled
30595 fi
30596
30597 fi
30598 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_STATE=$py_cv_module__elementtree$as_nl"
30599 if test "x$py_cv_module__elementtree" = xyes
30600 then :
30601
30602 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
30603
30604
30605 fi
30606 if test "$py_cv_module__elementtree" = yes; then
30607 MODULE__ELEMENTTREE_TRUE=
30608 MODULE__ELEMENTTREE_FALSE='#'
30609 else
30610 MODULE__ELEMENTTREE_TRUE='#'
30611 MODULE__ELEMENTTREE_FALSE=
30612 fi
30613
30614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__elementtree" >&5
30615 printf "%s\n" "$py_cv_module__elementtree" >&6; }
30616
30617
30618 if test "$py_cv_module__codecs_cn" != "n/a"
30619 then :
30620 py_cv_module__codecs_cn=yes
30621 fi
30622 if test "$py_cv_module__codecs_cn" = yes; then
30623 MODULE__CODECS_CN_TRUE=
30624 MODULE__CODECS_CN_FALSE='#'
30625 else
30626 MODULE__CODECS_CN_TRUE='#'
30627 MODULE__CODECS_CN_FALSE=
30628 fi
30629
30630 as_fn_append MODULE_BLOCK "MODULE__CODECS_CN_STATE=$py_cv_module__codecs_cn$as_nl"
30631 if test "x$py_cv_module__codecs_cn" = xyes
30632 then :
30633
30634
30635
30636
30637 fi
30638
30639
30640 if test "$py_cv_module__codecs_hk" != "n/a"
30641 then :
30642 py_cv_module__codecs_hk=yes
30643 fi
30644 if test "$py_cv_module__codecs_hk" = yes; then
30645 MODULE__CODECS_HK_TRUE=
30646 MODULE__CODECS_HK_FALSE='#'
30647 else
30648 MODULE__CODECS_HK_TRUE='#'
30649 MODULE__CODECS_HK_FALSE=
30650 fi
30651
30652 as_fn_append MODULE_BLOCK "MODULE__CODECS_HK_STATE=$py_cv_module__codecs_hk$as_nl"
30653 if test "x$py_cv_module__codecs_hk" = xyes
30654 then :
30655
30656
30657
30658
30659 fi
30660
30661
30662 if test "$py_cv_module__codecs_iso2022" != "n/a"
30663 then :
30664 py_cv_module__codecs_iso2022=yes
30665 fi
30666 if test "$py_cv_module__codecs_iso2022" = yes; then
30667 MODULE__CODECS_ISO2022_TRUE=
30668 MODULE__CODECS_ISO2022_FALSE='#'
30669 else
30670 MODULE__CODECS_ISO2022_TRUE='#'
30671 MODULE__CODECS_ISO2022_FALSE=
30672 fi
30673
30674 as_fn_append MODULE_BLOCK "MODULE__CODECS_ISO2022_STATE=$py_cv_module__codecs_iso2022$as_nl"
30675 if test "x$py_cv_module__codecs_iso2022" = xyes
30676 then :
30677
30678
30679
30680
30681 fi
30682
30683
30684 if test "$py_cv_module__codecs_jp" != "n/a"
30685 then :
30686 py_cv_module__codecs_jp=yes
30687 fi
30688 if test "$py_cv_module__codecs_jp" = yes; then
30689 MODULE__CODECS_JP_TRUE=
30690 MODULE__CODECS_JP_FALSE='#'
30691 else
30692 MODULE__CODECS_JP_TRUE='#'
30693 MODULE__CODECS_JP_FALSE=
30694 fi
30695
30696 as_fn_append MODULE_BLOCK "MODULE__CODECS_JP_STATE=$py_cv_module__codecs_jp$as_nl"
30697 if test "x$py_cv_module__codecs_jp" = xyes
30698 then :
30699
30700
30701
30702
30703 fi
30704
30705
30706 if test "$py_cv_module__codecs_kr" != "n/a"
30707 then :
30708 py_cv_module__codecs_kr=yes
30709 fi
30710 if test "$py_cv_module__codecs_kr" = yes; then
30711 MODULE__CODECS_KR_TRUE=
30712 MODULE__CODECS_KR_FALSE='#'
30713 else
30714 MODULE__CODECS_KR_TRUE='#'
30715 MODULE__CODECS_KR_FALSE=
30716 fi
30717
30718 as_fn_append MODULE_BLOCK "MODULE__CODECS_KR_STATE=$py_cv_module__codecs_kr$as_nl"
30719 if test "x$py_cv_module__codecs_kr" = xyes
30720 then :
30721
30722
30723
30724
30725 fi
30726
30727
30728 if test "$py_cv_module__codecs_tw" != "n/a"
30729 then :
30730 py_cv_module__codecs_tw=yes
30731 fi
30732 if test "$py_cv_module__codecs_tw" = yes; then
30733 MODULE__CODECS_TW_TRUE=
30734 MODULE__CODECS_TW_FALSE='#'
30735 else
30736 MODULE__CODECS_TW_TRUE='#'
30737 MODULE__CODECS_TW_FALSE=
30738 fi
30739
30740 as_fn_append MODULE_BLOCK "MODULE__CODECS_TW_STATE=$py_cv_module__codecs_tw$as_nl"
30741 if test "x$py_cv_module__codecs_tw" = xyes
30742 then :
30743
30744
30745
30746
30747 fi
30748
30749
30750 if test "$py_cv_module__multibytecodec" != "n/a"
30751 then :
30752 py_cv_module__multibytecodec=yes
30753 fi
30754 if test "$py_cv_module__multibytecodec" = yes; then
30755 MODULE__MULTIBYTECODEC_TRUE=
30756 MODULE__MULTIBYTECODEC_FALSE='#'
30757 else
30758 MODULE__MULTIBYTECODEC_TRUE='#'
30759 MODULE__MULTIBYTECODEC_FALSE=
30760 fi
30761
30762 as_fn_append MODULE_BLOCK "MODULE__MULTIBYTECODEC_STATE=$py_cv_module__multibytecodec$as_nl"
30763 if test "x$py_cv_module__multibytecodec" = xyes
30764 then :
30765
30766
30767
30768
30769 fi
30770
30771
30772 if test "$py_cv_module_unicodedata" != "n/a"
30773 then :
30774 py_cv_module_unicodedata=yes
30775 fi
30776 if test "$py_cv_module_unicodedata" = yes; then
30777 MODULE_UNICODEDATA_TRUE=
30778 MODULE_UNICODEDATA_FALSE='#'
30779 else
30780 MODULE_UNICODEDATA_TRUE='#'
30781 MODULE_UNICODEDATA_FALSE=
30782 fi
30783
30784 as_fn_append MODULE_BLOCK "MODULE_UNICODEDATA_STATE=$py_cv_module_unicodedata$as_nl"
30785 if test "x$py_cv_module_unicodedata" = xyes
30786 then :
30787
30788
30789
30790
30791 fi
30792
30793
30794
30795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _md5" >&5
30796 printf %s "checking for stdlib extension module _md5... " >&6; }
30797 if test "$py_cv_module__md5" != "n/a"
30798 then :
30799
30800 if test "$with_builtin_md5" = yes
30801 then :
30802 if true
30803 then :
30804 py_cv_module__md5=yes
30805 else $as_nop
30806 py_cv_module__md5=missing
30807 fi
30808 else $as_nop
30809 py_cv_module__md5=disabled
30810 fi
30811
30812 fi
30813 as_fn_append MODULE_BLOCK "MODULE__MD5_STATE=$py_cv_module__md5$as_nl"
30814 if test "x$py_cv_module__md5" = xyes
30815 then :
30816
30817 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"
30818
30819
30820 fi
30821 if test "$py_cv_module__md5" = yes; then
30822 MODULE__MD5_TRUE=
30823 MODULE__MD5_FALSE='#'
30824 else
30825 MODULE__MD5_TRUE='#'
30826 MODULE__MD5_FALSE=
30827 fi
30828
30829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__md5" >&5
30830 printf "%s\n" "$py_cv_module__md5" >&6; }
30831
30832
30833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha1" >&5
30834 printf %s "checking for stdlib extension module _sha1... " >&6; }
30835 if test "$py_cv_module__sha1" != "n/a"
30836 then :
30837
30838 if test "$with_builtin_sha1" = yes
30839 then :
30840 if true
30841 then :
30842 py_cv_module__sha1=yes
30843 else $as_nop
30844 py_cv_module__sha1=missing
30845 fi
30846 else $as_nop
30847 py_cv_module__sha1=disabled
30848 fi
30849
30850 fi
30851 as_fn_append MODULE_BLOCK "MODULE__SHA1_STATE=$py_cv_module__sha1$as_nl"
30852 if test "x$py_cv_module__sha1" = xyes
30853 then :
30854
30855 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"
30856
30857
30858 fi
30859 if test "$py_cv_module__sha1" = yes; then
30860 MODULE__SHA1_TRUE=
30861 MODULE__SHA1_FALSE='#'
30862 else
30863 MODULE__SHA1_TRUE='#'
30864 MODULE__SHA1_FALSE=
30865 fi
30866
30867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha1" >&5
30868 printf "%s\n" "$py_cv_module__sha1" >&6; }
30869
30870
30871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha2" >&5
30872 printf %s "checking for stdlib extension module _sha2... " >&6; }
30873 if test "$py_cv_module__sha2" != "n/a"
30874 then :
30875
30876 if test "$with_builtin_sha2" = yes
30877 then :
30878 if true
30879 then :
30880 py_cv_module__sha2=yes
30881 else $as_nop
30882 py_cv_module__sha2=missing
30883 fi
30884 else $as_nop
30885 py_cv_module__sha2=disabled
30886 fi
30887
30888 fi
30889 as_fn_append MODULE_BLOCK "MODULE__SHA2_STATE=$py_cv_module__sha2$as_nl"
30890 if test "x$py_cv_module__sha2" = xyes
30891 then :
30892
30893 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"
30894
30895
30896 fi
30897 if test "$py_cv_module__sha2" = yes; then
30898 MODULE__SHA2_TRUE=
30899 MODULE__SHA2_FALSE='#'
30900 else
30901 MODULE__SHA2_TRUE='#'
30902 MODULE__SHA2_FALSE=
30903 fi
30904
30905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha2" >&5
30906 printf "%s\n" "$py_cv_module__sha2" >&6; }
30907
30908
30909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha3" >&5
30910 printf %s "checking for stdlib extension module _sha3... " >&6; }
30911 if test "$py_cv_module__sha3" != "n/a"
30912 then :
30913
30914 if test "$with_builtin_sha3" = yes
30915 then :
30916 if true
30917 then :
30918 py_cv_module__sha3=yes
30919 else $as_nop
30920 py_cv_module__sha3=missing
30921 fi
30922 else $as_nop
30923 py_cv_module__sha3=disabled
30924 fi
30925
30926 fi
30927 as_fn_append MODULE_BLOCK "MODULE__SHA3_STATE=$py_cv_module__sha3$as_nl"
30928 if test "x$py_cv_module__sha3" = xyes
30929 then :
30930
30931
30932
30933
30934 fi
30935 if test "$py_cv_module__sha3" = yes; then
30936 MODULE__SHA3_TRUE=
30937 MODULE__SHA3_FALSE='#'
30938 else
30939 MODULE__SHA3_TRUE='#'
30940 MODULE__SHA3_FALSE=
30941 fi
30942
30943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha3" >&5
30944 printf "%s\n" "$py_cv_module__sha3" >&6; }
30945
30946
30947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _blake2" >&5
30948 printf %s "checking for stdlib extension module _blake2... " >&6; }
30949 if test "$py_cv_module__blake2" != "n/a"
30950 then :
30951
30952 if test "$with_builtin_blake2" = yes
30953 then :
30954 if true
30955 then :
30956 py_cv_module__blake2=yes
30957 else $as_nop
30958 py_cv_module__blake2=missing
30959 fi
30960 else $as_nop
30961 py_cv_module__blake2=disabled
30962 fi
30963
30964 fi
30965 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_STATE=$py_cv_module__blake2$as_nl"
30966 if test "x$py_cv_module__blake2" = xyes
30967 then :
30968
30969 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_CFLAGS=$LIBB2_CFLAGS$as_nl"
30970 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_LDFLAGS=$LIBB2_LIBS$as_nl"
30971
30972 fi
30973 if test "$py_cv_module__blake2" = yes; then
30974 MODULE__BLAKE2_TRUE=
30975 MODULE__BLAKE2_FALSE='#'
30976 else
30977 MODULE__BLAKE2_TRUE='#'
30978 MODULE__BLAKE2_FALSE=
30979 fi
30980
30981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__blake2" >&5
30982 printf "%s\n" "$py_cv_module__blake2" >&6; }
30983
30984
30985
30986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes" >&5
30987 printf %s "checking for stdlib extension module _ctypes... " >&6; }
30988 if test "$py_cv_module__ctypes" != "n/a"
30989 then :
30990
30991 if true
30992 then :
30993 if test "$have_libffi" = yes
30994 then :
30995 py_cv_module__ctypes=yes
30996 else $as_nop
30997 py_cv_module__ctypes=missing
30998 fi
30999 else $as_nop
31000 py_cv_module__ctypes=disabled
31001 fi
31002
31003 fi
31004 as_fn_append MODULE_BLOCK "MODULE__CTYPES_STATE=$py_cv_module__ctypes$as_nl"
31005 if test "x$py_cv_module__ctypes" = xyes
31006 then :
31007
31008 as_fn_append MODULE_BLOCK "MODULE__CTYPES_CFLAGS=$NO_STRICT_OVERFLOW_CFLAGS $LIBFFI_CFLAGS$as_nl"
31009 as_fn_append MODULE_BLOCK "MODULE__CTYPES_LDFLAGS=$LIBFFI_LIBS$as_nl"
31010
31011 fi
31012 if test "$py_cv_module__ctypes" = yes; then
31013 MODULE__CTYPES_TRUE=
31014 MODULE__CTYPES_FALSE='#'
31015 else
31016 MODULE__CTYPES_TRUE='#'
31017 MODULE__CTYPES_FALSE=
31018 fi
31019
31020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes" >&5
31021 printf "%s\n" "$py_cv_module__ctypes" >&6; }
31022
31023
31024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses" >&5
31025 printf %s "checking for stdlib extension module _curses... " >&6; }
31026 if test "$py_cv_module__curses" != "n/a"
31027 then :
31028
31029 if true
31030 then :
31031 if test "$have_curses" = "yes"
31032 then :
31033 py_cv_module__curses=yes
31034 else $as_nop
31035 py_cv_module__curses=missing
31036 fi
31037 else $as_nop
31038 py_cv_module__curses=disabled
31039 fi
31040
31041 fi
31042 as_fn_append MODULE_BLOCK "MODULE__CURSES_STATE=$py_cv_module__curses$as_nl"
31043 if test "x$py_cv_module__curses" = xyes
31044 then :
31045
31046 as_fn_append MODULE_BLOCK "MODULE__CURSES_CFLAGS=$CURSES_CFLAGS$as_nl"
31047 as_fn_append MODULE_BLOCK "MODULE__CURSES_LDFLAGS=$CURSES_LIBS
31048 $as_nl"
31049
31050 fi
31051 if test "$py_cv_module__curses" = yes; then
31052 MODULE__CURSES_TRUE=
31053 MODULE__CURSES_FALSE='#'
31054 else
31055 MODULE__CURSES_TRUE='#'
31056 MODULE__CURSES_FALSE=
31057 fi
31058
31059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses" >&5
31060 printf "%s\n" "$py_cv_module__curses" >&6; }
31061
31062
31063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses_panel" >&5
31064 printf %s "checking for stdlib extension module _curses_panel... " >&6; }
31065 if test "$py_cv_module__curses_panel" != "n/a"
31066 then :
31067
31068 if true
31069 then :
31070 if test "$have_curses" = "yes" && test "$have_panel" = "yes"
31071 then :
31072 py_cv_module__curses_panel=yes
31073 else $as_nop
31074 py_cv_module__curses_panel=missing
31075 fi
31076 else $as_nop
31077 py_cv_module__curses_panel=disabled
31078 fi
31079
31080 fi
31081 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_STATE=$py_cv_module__curses_panel$as_nl"
31082 if test "x$py_cv_module__curses_panel" = xyes
31083 then :
31084
31085 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_CFLAGS=$PANEL_CFLAGS $CURSES_CFLAGS$as_nl"
31086 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_LDFLAGS=$PANEL_LIBS $CURSES_LIBS
31087 $as_nl"
31088
31089 fi
31090 if test "$py_cv_module__curses_panel" = yes; then
31091 MODULE__CURSES_PANEL_TRUE=
31092 MODULE__CURSES_PANEL_FALSE='#'
31093 else
31094 MODULE__CURSES_PANEL_TRUE='#'
31095 MODULE__CURSES_PANEL_FALSE=
31096 fi
31097
31098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses_panel" >&5
31099 printf "%s\n" "$py_cv_module__curses_panel" >&6; }
31100
31101
31102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _decimal" >&5
31103 printf %s "checking for stdlib extension module _decimal... " >&6; }
31104 if test "$py_cv_module__decimal" != "n/a"
31105 then :
31106
31107 if true
31108 then :
31109 if test "$have_mpdec" = "yes"
31110 then :
31111 py_cv_module__decimal=yes
31112 else $as_nop
31113 py_cv_module__decimal=missing
31114 fi
31115 else $as_nop
31116 py_cv_module__decimal=disabled
31117 fi
31118
31119 fi
31120 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_STATE=$py_cv_module__decimal$as_nl"
31121 if test "x$py_cv_module__decimal" = xyes
31122 then :
31123
31124 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_CFLAGS=$LIBMPDEC_CFLAGS$as_nl"
31125 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_LDFLAGS=$LIBMPDEC_LIBS$as_nl"
31126
31127 fi
31128 if test "$py_cv_module__decimal" = yes; then
31129 MODULE__DECIMAL_TRUE=
31130 MODULE__DECIMAL_FALSE='#'
31131 else
31132 MODULE__DECIMAL_TRUE='#'
31133 MODULE__DECIMAL_FALSE=
31134 fi
31135
31136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__decimal" >&5
31137 printf "%s\n" "$py_cv_module__decimal" >&6; }
31138
31139
31140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _dbm" >&5
31141 printf %s "checking for stdlib extension module _dbm... " >&6; }
31142 if test "$py_cv_module__dbm" != "n/a"
31143 then :
31144
31145 if test -n "$with_dbmliborder"
31146 then :
31147 if test "$have_dbm" != "no"
31148 then :
31149 py_cv_module__dbm=yes
31150 else $as_nop
31151 py_cv_module__dbm=missing
31152 fi
31153 else $as_nop
31154 py_cv_module__dbm=disabled
31155 fi
31156
31157 fi
31158 as_fn_append MODULE_BLOCK "MODULE__DBM_STATE=$py_cv_module__dbm$as_nl"
31159 if test "x$py_cv_module__dbm" = xyes
31160 then :
31161
31162 as_fn_append MODULE_BLOCK "MODULE__DBM_CFLAGS=$DBM_CFLAGS$as_nl"
31163 as_fn_append MODULE_BLOCK "MODULE__DBM_LDFLAGS=$DBM_LIBS$as_nl"
31164
31165 fi
31166 if test "$py_cv_module__dbm" = yes; then
31167 MODULE__DBM_TRUE=
31168 MODULE__DBM_FALSE='#'
31169 else
31170 MODULE__DBM_TRUE='#'
31171 MODULE__DBM_FALSE=
31172 fi
31173
31174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__dbm" >&5
31175 printf "%s\n" "$py_cv_module__dbm" >&6; }
31176
31177
31178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _gdbm" >&5
31179 printf %s "checking for stdlib extension module _gdbm... " >&6; }
31180 if test "$py_cv_module__gdbm" != "n/a"
31181 then :
31182
31183 if test "$have_gdbm_dbmliborder" = yes
31184 then :
31185 if test "$have_gdbm" = yes
31186 then :
31187 py_cv_module__gdbm=yes
31188 else $as_nop
31189 py_cv_module__gdbm=missing
31190 fi
31191 else $as_nop
31192 py_cv_module__gdbm=disabled
31193 fi
31194
31195 fi
31196 as_fn_append MODULE_BLOCK "MODULE__GDBM_STATE=$py_cv_module__gdbm$as_nl"
31197 if test "x$py_cv_module__gdbm" = xyes
31198 then :
31199
31200 as_fn_append MODULE_BLOCK "MODULE__GDBM_CFLAGS=$GDBM_CFLAGS$as_nl"
31201 as_fn_append MODULE_BLOCK "MODULE__GDBM_LDFLAGS=$GDBM_LIBS$as_nl"
31202
31203 fi
31204 if test "$py_cv_module__gdbm" = yes; then
31205 MODULE__GDBM_TRUE=
31206 MODULE__GDBM_FALSE='#'
31207 else
31208 MODULE__GDBM_TRUE='#'
31209 MODULE__GDBM_FALSE=
31210 fi
31211
31212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__gdbm" >&5
31213 printf "%s\n" "$py_cv_module__gdbm" >&6; }
31214
31215
31216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module readline" >&5
31217 printf %s "checking for stdlib extension module readline... " >&6; }
31218 if test "$py_cv_module_readline" != "n/a"
31219 then :
31220
31221 if true
31222 then :
31223 if test "$with_readline" != "no"
31224 then :
31225 py_cv_module_readline=yes
31226 else $as_nop
31227 py_cv_module_readline=missing
31228 fi
31229 else $as_nop
31230 py_cv_module_readline=disabled
31231 fi
31232
31233 fi
31234 as_fn_append MODULE_BLOCK "MODULE_READLINE_STATE=$py_cv_module_readline$as_nl"
31235 if test "x$py_cv_module_readline" = xyes
31236 then :
31237
31238 as_fn_append MODULE_BLOCK "MODULE_READLINE_CFLAGS=$READLINE_CFLAGS$as_nl"
31239 as_fn_append MODULE_BLOCK "MODULE_READLINE_LDFLAGS=$READLINE_LIBS$as_nl"
31240
31241 fi
31242 if test "$py_cv_module_readline" = yes; then
31243 MODULE_READLINE_TRUE=
31244 MODULE_READLINE_FALSE='#'
31245 else
31246 MODULE_READLINE_TRUE='#'
31247 MODULE_READLINE_FALSE=
31248 fi
31249
31250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_readline" >&5
31251 printf "%s\n" "$py_cv_module_readline" >&6; }
31252
31253
31254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sqlite3" >&5
31255 printf %s "checking for stdlib extension module _sqlite3... " >&6; }
31256 if test "$py_cv_module__sqlite3" != "n/a"
31257 then :
31258
31259 if test "$have_sqlite3" = "yes"
31260 then :
31261 if test "$have_supported_sqlite3" = "yes"
31262 then :
31263 py_cv_module__sqlite3=yes
31264 else $as_nop
31265 py_cv_module__sqlite3=missing
31266 fi
31267 else $as_nop
31268 py_cv_module__sqlite3=disabled
31269 fi
31270
31271 fi
31272 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_STATE=$py_cv_module__sqlite3$as_nl"
31273 if test "x$py_cv_module__sqlite3" = xyes
31274 then :
31275
31276 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_CFLAGS=$LIBSQLITE3_CFLAGS$as_nl"
31277 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_LDFLAGS=$LIBSQLITE3_LIBS$as_nl"
31278
31279 fi
31280 if test "$py_cv_module__sqlite3" = yes; then
31281 MODULE__SQLITE3_TRUE=
31282 MODULE__SQLITE3_FALSE='#'
31283 else
31284 MODULE__SQLITE3_TRUE='#'
31285 MODULE__SQLITE3_FALSE=
31286 fi
31287
31288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sqlite3" >&5
31289 printf "%s\n" "$py_cv_module__sqlite3" >&6; }
31290
31291
31292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _tkinter" >&5
31293 printf %s "checking for stdlib extension module _tkinter... " >&6; }
31294 if test "$py_cv_module__tkinter" != "n/a"
31295 then :
31296
31297 if true
31298 then :
31299 if test "$have_tcltk" = "yes"
31300 then :
31301 py_cv_module__tkinter=yes
31302 else $as_nop
31303 py_cv_module__tkinter=missing
31304 fi
31305 else $as_nop
31306 py_cv_module__tkinter=disabled
31307 fi
31308
31309 fi
31310 as_fn_append MODULE_BLOCK "MODULE__TKINTER_STATE=$py_cv_module__tkinter$as_nl"
31311 if test "x$py_cv_module__tkinter" = xyes
31312 then :
31313
31314 as_fn_append MODULE_BLOCK "MODULE__TKINTER_CFLAGS=$TCLTK_CFLAGS$as_nl"
31315 as_fn_append MODULE_BLOCK "MODULE__TKINTER_LDFLAGS=$TCLTK_LIBS$as_nl"
31316
31317 fi
31318 if test "$py_cv_module__tkinter" = yes; then
31319 MODULE__TKINTER_TRUE=
31320 MODULE__TKINTER_FALSE='#'
31321 else
31322 MODULE__TKINTER_TRUE='#'
31323 MODULE__TKINTER_FALSE=
31324 fi
31325
31326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__tkinter" >&5
31327 printf "%s\n" "$py_cv_module__tkinter" >&6; }
31328
31329
31330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _uuid" >&5
31331 printf %s "checking for stdlib extension module _uuid... " >&6; }
31332 if test "$py_cv_module__uuid" != "n/a"
31333 then :
31334
31335 if true
31336 then :
31337 if test "$have_uuid" = "yes"
31338 then :
31339 py_cv_module__uuid=yes
31340 else $as_nop
31341 py_cv_module__uuid=missing
31342 fi
31343 else $as_nop
31344 py_cv_module__uuid=disabled
31345 fi
31346
31347 fi
31348 as_fn_append MODULE_BLOCK "MODULE__UUID_STATE=$py_cv_module__uuid$as_nl"
31349 if test "x$py_cv_module__uuid" = xyes
31350 then :
31351
31352 as_fn_append MODULE_BLOCK "MODULE__UUID_CFLAGS=$LIBUUID_CFLAGS$as_nl"
31353 as_fn_append MODULE_BLOCK "MODULE__UUID_LDFLAGS=$LIBUUID_LIBS$as_nl"
31354
31355 fi
31356 if test "$py_cv_module__uuid" = yes; then
31357 MODULE__UUID_TRUE=
31358 MODULE__UUID_FALSE='#'
31359 else
31360 MODULE__UUID_TRUE='#'
31361 MODULE__UUID_FALSE=
31362 fi
31363
31364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__uuid" >&5
31365 printf "%s\n" "$py_cv_module__uuid" >&6; }
31366
31367
31368
31369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module zlib" >&5
31370 printf %s "checking for stdlib extension module zlib... " >&6; }
31371 if test "$py_cv_module_zlib" != "n/a"
31372 then :
31373
31374 if true
31375 then :
31376 if test "$have_zlib" = yes
31377 then :
31378 py_cv_module_zlib=yes
31379 else $as_nop
31380 py_cv_module_zlib=missing
31381 fi
31382 else $as_nop
31383 py_cv_module_zlib=disabled
31384 fi
31385
31386 fi
31387 as_fn_append MODULE_BLOCK "MODULE_ZLIB_STATE=$py_cv_module_zlib$as_nl"
31388 if test "x$py_cv_module_zlib" = xyes
31389 then :
31390
31391 as_fn_append MODULE_BLOCK "MODULE_ZLIB_CFLAGS=$ZLIB_CFLAGS$as_nl"
31392 as_fn_append MODULE_BLOCK "MODULE_ZLIB_LDFLAGS=$ZLIB_LIBS$as_nl"
31393
31394 fi
31395 if test "$py_cv_module_zlib" = yes; then
31396 MODULE_ZLIB_TRUE=
31397 MODULE_ZLIB_FALSE='#'
31398 else
31399 MODULE_ZLIB_TRUE='#'
31400 MODULE_ZLIB_FALSE=
31401 fi
31402
31403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_zlib" >&5
31404 printf "%s\n" "$py_cv_module_zlib" >&6; }
31405
31406
31407 if test "$py_cv_module_binascii" != "n/a"
31408 then :
31409 py_cv_module_binascii=yes
31410 fi
31411 if test "$py_cv_module_binascii" = yes; then
31412 MODULE_BINASCII_TRUE=
31413 MODULE_BINASCII_FALSE='#'
31414 else
31415 MODULE_BINASCII_TRUE='#'
31416 MODULE_BINASCII_FALSE=
31417 fi
31418
31419 as_fn_append MODULE_BLOCK "MODULE_BINASCII_STATE=$py_cv_module_binascii$as_nl"
31420 if test "x$py_cv_module_binascii" = xyes
31421 then :
31422
31423 as_fn_append MODULE_BLOCK "MODULE_BINASCII_CFLAGS=$BINASCII_CFLAGS$as_nl"
31424 as_fn_append MODULE_BLOCK "MODULE_BINASCII_LDFLAGS=$BINASCII_LIBS$as_nl"
31425
31426 fi
31427
31428
31429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _bz2" >&5
31430 printf %s "checking for stdlib extension module _bz2... " >&6; }
31431 if test "$py_cv_module__bz2" != "n/a"
31432 then :
31433
31434 if true
31435 then :
31436 if test "$have_bzip2" = yes
31437 then :
31438 py_cv_module__bz2=yes
31439 else $as_nop
31440 py_cv_module__bz2=missing
31441 fi
31442 else $as_nop
31443 py_cv_module__bz2=disabled
31444 fi
31445
31446 fi
31447 as_fn_append MODULE_BLOCK "MODULE__BZ2_STATE=$py_cv_module__bz2$as_nl"
31448 if test "x$py_cv_module__bz2" = xyes
31449 then :
31450
31451 as_fn_append MODULE_BLOCK "MODULE__BZ2_CFLAGS=$BZIP2_CFLAGS$as_nl"
31452 as_fn_append MODULE_BLOCK "MODULE__BZ2_LDFLAGS=$BZIP2_LIBS$as_nl"
31453
31454 fi
31455 if test "$py_cv_module__bz2" = yes; then
31456 MODULE__BZ2_TRUE=
31457 MODULE__BZ2_FALSE='#'
31458 else
31459 MODULE__BZ2_TRUE='#'
31460 MODULE__BZ2_FALSE=
31461 fi
31462
31463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__bz2" >&5
31464 printf "%s\n" "$py_cv_module__bz2" >&6; }
31465
31466
31467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _lzma" >&5
31468 printf %s "checking for stdlib extension module _lzma... " >&6; }
31469 if test "$py_cv_module__lzma" != "n/a"
31470 then :
31471
31472 if true
31473 then :
31474 if test "$have_liblzma" = yes
31475 then :
31476 py_cv_module__lzma=yes
31477 else $as_nop
31478 py_cv_module__lzma=missing
31479 fi
31480 else $as_nop
31481 py_cv_module__lzma=disabled
31482 fi
31483
31484 fi
31485 as_fn_append MODULE_BLOCK "MODULE__LZMA_STATE=$py_cv_module__lzma$as_nl"
31486 if test "x$py_cv_module__lzma" = xyes
31487 then :
31488
31489 as_fn_append MODULE_BLOCK "MODULE__LZMA_CFLAGS=$LIBLZMA_CFLAGS$as_nl"
31490 as_fn_append MODULE_BLOCK "MODULE__LZMA_LDFLAGS=$LIBLZMA_LIBS$as_nl"
31491
31492 fi
31493 if test "$py_cv_module__lzma" = yes; then
31494 MODULE__LZMA_TRUE=
31495 MODULE__LZMA_FALSE='#'
31496 else
31497 MODULE__LZMA_TRUE='#'
31498 MODULE__LZMA_FALSE=
31499 fi
31500
31501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__lzma" >&5
31502 printf "%s\n" "$py_cv_module__lzma" >&6; }
31503
31504
31505
31506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ssl" >&5
31507 printf %s "checking for stdlib extension module _ssl... " >&6; }
31508 if test "$py_cv_module__ssl" != "n/a"
31509 then :
31510
31511 if true
31512 then :
31513 if test "$ac_cv_working_openssl_ssl" = yes
31514 then :
31515 py_cv_module__ssl=yes
31516 else $as_nop
31517 py_cv_module__ssl=missing
31518 fi
31519 else $as_nop
31520 py_cv_module__ssl=disabled
31521 fi
31522
31523 fi
31524 as_fn_append MODULE_BLOCK "MODULE__SSL_STATE=$py_cv_module__ssl$as_nl"
31525 if test "x$py_cv_module__ssl" = xyes
31526 then :
31527
31528 as_fn_append MODULE_BLOCK "MODULE__SSL_CFLAGS=$OPENSSL_INCLUDES$as_nl"
31529 as_fn_append MODULE_BLOCK "MODULE__SSL_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $OPENSSL_LIBS$as_nl"
31530
31531 fi
31532 if test "$py_cv_module__ssl" = yes; then
31533 MODULE__SSL_TRUE=
31534 MODULE__SSL_FALSE='#'
31535 else
31536 MODULE__SSL_TRUE='#'
31537 MODULE__SSL_FALSE=
31538 fi
31539
31540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ssl" >&5
31541 printf "%s\n" "$py_cv_module__ssl" >&6; }
31542
31543
31544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hashlib" >&5
31545 printf %s "checking for stdlib extension module _hashlib... " >&6; }
31546 if test "$py_cv_module__hashlib" != "n/a"
31547 then :
31548
31549 if true
31550 then :
31551 if test "$ac_cv_working_openssl_hashlib" = yes
31552 then :
31553 py_cv_module__hashlib=yes
31554 else $as_nop
31555 py_cv_module__hashlib=missing
31556 fi
31557 else $as_nop
31558 py_cv_module__hashlib=disabled
31559 fi
31560
31561 fi
31562 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_STATE=$py_cv_module__hashlib$as_nl"
31563 if test "x$py_cv_module__hashlib" = xyes
31564 then :
31565
31566 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_CFLAGS=$OPENSSL_INCLUDES$as_nl"
31567 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS$as_nl"
31568
31569 fi
31570 if test "$py_cv_module__hashlib" = yes; then
31571 MODULE__HASHLIB_TRUE=
31572 MODULE__HASHLIB_FALSE='#'
31573 else
31574 MODULE__HASHLIB_TRUE='#'
31575 MODULE__HASHLIB_FALSE=
31576 fi
31577
31578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hashlib" >&5
31579 printf "%s\n" "$py_cv_module__hashlib" >&6; }
31580
31581
31582
31583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testcapi" >&5
31584 printf %s "checking for stdlib extension module _testcapi... " >&6; }
31585 if test "$py_cv_module__testcapi" != "n/a"
31586 then :
31587
31588 if test "$TEST_MODULES" = yes
31589 then :
31590 if true
31591 then :
31592 py_cv_module__testcapi=yes
31593 else $as_nop
31594 py_cv_module__testcapi=missing
31595 fi
31596 else $as_nop
31597 py_cv_module__testcapi=disabled
31598 fi
31599
31600 fi
31601 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_STATE=$py_cv_module__testcapi$as_nl"
31602 if test "x$py_cv_module__testcapi" = xyes
31603 then :
31604
31605
31606 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_LDFLAGS=$LIBATOMIC$as_nl"
31607
31608 fi
31609 if test "$py_cv_module__testcapi" = yes; then
31610 MODULE__TESTCAPI_TRUE=
31611 MODULE__TESTCAPI_FALSE='#'
31612 else
31613 MODULE__TESTCAPI_TRUE='#'
31614 MODULE__TESTCAPI_FALSE=
31615 fi
31616
31617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testcapi" >&5
31618 printf "%s\n" "$py_cv_module__testcapi" >&6; }
31619
31620
31621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic" >&5
31622 printf %s "checking for stdlib extension module _testclinic... " >&6; }
31623 if test "$py_cv_module__testclinic" != "n/a"
31624 then :
31625
31626 if test "$TEST_MODULES" = yes
31627 then :
31628 if true
31629 then :
31630 py_cv_module__testclinic=yes
31631 else $as_nop
31632 py_cv_module__testclinic=missing
31633 fi
31634 else $as_nop
31635 py_cv_module__testclinic=disabled
31636 fi
31637
31638 fi
31639 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_STATE=$py_cv_module__testclinic$as_nl"
31640 if test "x$py_cv_module__testclinic" = xyes
31641 then :
31642
31643
31644
31645
31646 fi
31647 if test "$py_cv_module__testclinic" = yes; then
31648 MODULE__TESTCLINIC_TRUE=
31649 MODULE__TESTCLINIC_FALSE='#'
31650 else
31651 MODULE__TESTCLINIC_TRUE='#'
31652 MODULE__TESTCLINIC_FALSE=
31653 fi
31654
31655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic" >&5
31656 printf "%s\n" "$py_cv_module__testclinic" >&6; }
31657
31658
31659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic_limited" >&5
31660 printf %s "checking for stdlib extension module _testclinic_limited... " >&6; }
31661 if test "$py_cv_module__testclinic_limited" != "n/a"
31662 then :
31663
31664 if test "$TEST_MODULES" = yes
31665 then :
31666 if true
31667 then :
31668 py_cv_module__testclinic_limited=yes
31669 else $as_nop
31670 py_cv_module__testclinic_limited=missing
31671 fi
31672 else $as_nop
31673 py_cv_module__testclinic_limited=disabled
31674 fi
31675
31676 fi
31677 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_LIMITED_STATE=$py_cv_module__testclinic_limited$as_nl"
31678 if test "x$py_cv_module__testclinic_limited" = xyes
31679 then :
31680
31681
31682
31683
31684 fi
31685 if test "$py_cv_module__testclinic_limited" = yes; then
31686 MODULE__TESTCLINIC_LIMITED_TRUE=
31687 MODULE__TESTCLINIC_LIMITED_FALSE='#'
31688 else
31689 MODULE__TESTCLINIC_LIMITED_TRUE='#'
31690 MODULE__TESTCLINIC_LIMITED_FALSE=
31691 fi
31692
31693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic_limited" >&5
31694 printf "%s\n" "$py_cv_module__testclinic_limited" >&6; }
31695
31696
31697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testlimitedcapi" >&5
31698 printf %s "checking for stdlib extension module _testlimitedcapi... " >&6; }
31699 if test "$py_cv_module__testlimitedcapi" != "n/a"
31700 then :
31701
31702 if test "$TEST_MODULES" = yes
31703 then :
31704 if true
31705 then :
31706 py_cv_module__testlimitedcapi=yes
31707 else $as_nop
31708 py_cv_module__testlimitedcapi=missing
31709 fi
31710 else $as_nop
31711 py_cv_module__testlimitedcapi=disabled
31712 fi
31713
31714 fi
31715 as_fn_append MODULE_BLOCK "MODULE__TESTLIMITEDCAPI_STATE=$py_cv_module__testlimitedcapi$as_nl"
31716 if test "x$py_cv_module__testlimitedcapi" = xyes
31717 then :
31718
31719
31720
31721
31722 fi
31723 if test "$py_cv_module__testlimitedcapi" = yes; then
31724 MODULE__TESTLIMITEDCAPI_TRUE=
31725 MODULE__TESTLIMITEDCAPI_FALSE='#'
31726 else
31727 MODULE__TESTLIMITEDCAPI_TRUE='#'
31728 MODULE__TESTLIMITEDCAPI_FALSE=
31729 fi
31730
31731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testlimitedcapi" >&5
31732 printf "%s\n" "$py_cv_module__testlimitedcapi" >&6; }
31733
31734
31735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5
31736 printf %s "checking for stdlib extension module _testinternalcapi... " >&6; }
31737 if test "$py_cv_module__testinternalcapi" != "n/a"
31738 then :
31739
31740 if test "$TEST_MODULES" = yes
31741 then :
31742 if true
31743 then :
31744 py_cv_module__testinternalcapi=yes
31745 else $as_nop
31746 py_cv_module__testinternalcapi=missing
31747 fi
31748 else $as_nop
31749 py_cv_module__testinternalcapi=disabled
31750 fi
31751
31752 fi
31753 as_fn_append MODULE_BLOCK "MODULE__TESTINTERNALCAPI_STATE=$py_cv_module__testinternalcapi$as_nl"
31754 if test "x$py_cv_module__testinternalcapi" = xyes
31755 then :
31756
31757
31758
31759
31760 fi
31761 if test "$py_cv_module__testinternalcapi" = yes; then
31762 MODULE__TESTINTERNALCAPI_TRUE=
31763 MODULE__TESTINTERNALCAPI_FALSE='#'
31764 else
31765 MODULE__TESTINTERNALCAPI_TRUE='#'
31766 MODULE__TESTINTERNALCAPI_FALSE=
31767 fi
31768
31769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testinternalcapi" >&5
31770 printf "%s\n" "$py_cv_module__testinternalcapi" >&6; }
31771
31772
31773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testbuffer" >&5
31774 printf %s "checking for stdlib extension module _testbuffer... " >&6; }
31775 if test "$py_cv_module__testbuffer" != "n/a"
31776 then :
31777
31778 if test "$TEST_MODULES" = yes
31779 then :
31780 if true
31781 then :
31782 py_cv_module__testbuffer=yes
31783 else $as_nop
31784 py_cv_module__testbuffer=missing
31785 fi
31786 else $as_nop
31787 py_cv_module__testbuffer=disabled
31788 fi
31789
31790 fi
31791 as_fn_append MODULE_BLOCK "MODULE__TESTBUFFER_STATE=$py_cv_module__testbuffer$as_nl"
31792 if test "x$py_cv_module__testbuffer" = xyes
31793 then :
31794
31795
31796
31797
31798 fi
31799 if test "$py_cv_module__testbuffer" = yes; then
31800 MODULE__TESTBUFFER_TRUE=
31801 MODULE__TESTBUFFER_FALSE='#'
31802 else
31803 MODULE__TESTBUFFER_TRUE='#'
31804 MODULE__TESTBUFFER_FALSE=
31805 fi
31806
31807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testbuffer" >&5
31808 printf "%s\n" "$py_cv_module__testbuffer" >&6; }
31809
31810
31811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testimportmultiple" >&5
31812 printf %s "checking for stdlib extension module _testimportmultiple... " >&6; }
31813 if test "$py_cv_module__testimportmultiple" != "n/a"
31814 then :
31815
31816 if test "$TEST_MODULES" = yes
31817 then :
31818 if test "$ac_cv_func_dlopen" = yes
31819 then :
31820 py_cv_module__testimportmultiple=yes
31821 else $as_nop
31822 py_cv_module__testimportmultiple=missing
31823 fi
31824 else $as_nop
31825 py_cv_module__testimportmultiple=disabled
31826 fi
31827
31828 fi
31829 as_fn_append MODULE_BLOCK "MODULE__TESTIMPORTMULTIPLE_STATE=$py_cv_module__testimportmultiple$as_nl"
31830 if test "x$py_cv_module__testimportmultiple" = xyes
31831 then :
31832
31833
31834
31835
31836 fi
31837 if test "$py_cv_module__testimportmultiple" = yes; then
31838 MODULE__TESTIMPORTMULTIPLE_TRUE=
31839 MODULE__TESTIMPORTMULTIPLE_FALSE='#'
31840 else
31841 MODULE__TESTIMPORTMULTIPLE_TRUE='#'
31842 MODULE__TESTIMPORTMULTIPLE_FALSE=
31843 fi
31844
31845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testimportmultiple" >&5
31846 printf "%s\n" "$py_cv_module__testimportmultiple" >&6; }
31847
31848
31849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testmultiphase" >&5
31850 printf %s "checking for stdlib extension module _testmultiphase... " >&6; }
31851 if test "$py_cv_module__testmultiphase" != "n/a"
31852 then :
31853
31854 if test "$TEST_MODULES" = yes
31855 then :
31856 if test "$ac_cv_func_dlopen" = yes
31857 then :
31858 py_cv_module__testmultiphase=yes
31859 else $as_nop
31860 py_cv_module__testmultiphase=missing
31861 fi
31862 else $as_nop
31863 py_cv_module__testmultiphase=disabled
31864 fi
31865
31866 fi
31867 as_fn_append MODULE_BLOCK "MODULE__TESTMULTIPHASE_STATE=$py_cv_module__testmultiphase$as_nl"
31868 if test "x$py_cv_module__testmultiphase" = xyes
31869 then :
31870
31871
31872
31873
31874 fi
31875 if test "$py_cv_module__testmultiphase" = yes; then
31876 MODULE__TESTMULTIPHASE_TRUE=
31877 MODULE__TESTMULTIPHASE_FALSE='#'
31878 else
31879 MODULE__TESTMULTIPHASE_TRUE='#'
31880 MODULE__TESTMULTIPHASE_FALSE=
31881 fi
31882
31883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testmultiphase" >&5
31884 printf "%s\n" "$py_cv_module__testmultiphase" >&6; }
31885
31886
31887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testsinglephase" >&5
31888 printf %s "checking for stdlib extension module _testsinglephase... " >&6; }
31889 if test "$py_cv_module__testsinglephase" != "n/a"
31890 then :
31891
31892 if test "$TEST_MODULES" = yes
31893 then :
31894 if test "$ac_cv_func_dlopen" = yes
31895 then :
31896 py_cv_module__testsinglephase=yes
31897 else $as_nop
31898 py_cv_module__testsinglephase=missing
31899 fi
31900 else $as_nop
31901 py_cv_module__testsinglephase=disabled
31902 fi
31903
31904 fi
31905 as_fn_append MODULE_BLOCK "MODULE__TESTSINGLEPHASE_STATE=$py_cv_module__testsinglephase$as_nl"
31906 if test "x$py_cv_module__testsinglephase" = xyes
31907 then :
31908
31909
31910
31911
31912 fi
31913 if test "$py_cv_module__testsinglephase" = yes; then
31914 MODULE__TESTSINGLEPHASE_TRUE=
31915 MODULE__TESTSINGLEPHASE_FALSE='#'
31916 else
31917 MODULE__TESTSINGLEPHASE_TRUE='#'
31918 MODULE__TESTSINGLEPHASE_FALSE=
31919 fi
31920
31921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testsinglephase" >&5
31922 printf "%s\n" "$py_cv_module__testsinglephase" >&6; }
31923
31924
31925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testexternalinspection" >&5
31926 printf %s "checking for stdlib extension module _testexternalinspection... " >&6; }
31927 if test "$py_cv_module__testexternalinspection" != "n/a"
31928 then :
31929
31930 if test "$TEST_MODULES" = yes
31931 then :
31932 if true
31933 then :
31934 py_cv_module__testexternalinspection=yes
31935 else $as_nop
31936 py_cv_module__testexternalinspection=missing
31937 fi
31938 else $as_nop
31939 py_cv_module__testexternalinspection=disabled
31940 fi
31941
31942 fi
31943 as_fn_append MODULE_BLOCK "MODULE__TESTEXTERNALINSPECTION_STATE=$py_cv_module__testexternalinspection$as_nl"
31944 if test "x$py_cv_module__testexternalinspection" = xyes
31945 then :
31946
31947
31948
31949
31950 fi
31951 if test "$py_cv_module__testexternalinspection" = yes; then
31952 MODULE__TESTEXTERNALINSPECTION_TRUE=
31953 MODULE__TESTEXTERNALINSPECTION_FALSE='#'
31954 else
31955 MODULE__TESTEXTERNALINSPECTION_TRUE='#'
31956 MODULE__TESTEXTERNALINSPECTION_FALSE=
31957 fi
31958
31959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testexternalinspection" >&5
31960 printf "%s\n" "$py_cv_module__testexternalinspection" >&6; }
31961
31962
31963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxsubtype" >&5
31964 printf %s "checking for stdlib extension module xxsubtype... " >&6; }
31965 if test "$py_cv_module_xxsubtype" != "n/a"
31966 then :
31967
31968 if test "$TEST_MODULES" = yes
31969 then :
31970 if true
31971 then :
31972 py_cv_module_xxsubtype=yes
31973 else $as_nop
31974 py_cv_module_xxsubtype=missing
31975 fi
31976 else $as_nop
31977 py_cv_module_xxsubtype=disabled
31978 fi
31979
31980 fi
31981 as_fn_append MODULE_BLOCK "MODULE_XXSUBTYPE_STATE=$py_cv_module_xxsubtype$as_nl"
31982 if test "x$py_cv_module_xxsubtype" = xyes
31983 then :
31984
31985
31986
31987
31988 fi
31989 if test "$py_cv_module_xxsubtype" = yes; then
31990 MODULE_XXSUBTYPE_TRUE=
31991 MODULE_XXSUBTYPE_FALSE='#'
31992 else
31993 MODULE_XXSUBTYPE_TRUE='#'
31994 MODULE_XXSUBTYPE_FALSE=
31995 fi
31996
31997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxsubtype" >&5
31998 printf "%s\n" "$py_cv_module_xxsubtype" >&6; }
31999
32000
32001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _xxtestfuzz" >&5
32002 printf %s "checking for stdlib extension module _xxtestfuzz... " >&6; }
32003 if test "$py_cv_module__xxtestfuzz" != "n/a"
32004 then :
32005
32006 if test "$TEST_MODULES" = yes
32007 then :
32008 if true
32009 then :
32010 py_cv_module__xxtestfuzz=yes
32011 else $as_nop
32012 py_cv_module__xxtestfuzz=missing
32013 fi
32014 else $as_nop
32015 py_cv_module__xxtestfuzz=disabled
32016 fi
32017
32018 fi
32019 as_fn_append MODULE_BLOCK "MODULE__XXTESTFUZZ_STATE=$py_cv_module__xxtestfuzz$as_nl"
32020 if test "x$py_cv_module__xxtestfuzz" = xyes
32021 then :
32022
32023
32024
32025
32026 fi
32027 if test "$py_cv_module__xxtestfuzz" = yes; then
32028 MODULE__XXTESTFUZZ_TRUE=
32029 MODULE__XXTESTFUZZ_FALSE='#'
32030 else
32031 MODULE__XXTESTFUZZ_TRUE='#'
32032 MODULE__XXTESTFUZZ_FALSE=
32033 fi
32034
32035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__xxtestfuzz" >&5
32036 printf "%s\n" "$py_cv_module__xxtestfuzz" >&6; }
32037
32038
32039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes_test" >&5
32040 printf %s "checking for stdlib extension module _ctypes_test... " >&6; }
32041 if test "$py_cv_module__ctypes_test" != "n/a"
32042 then :
32043
32044 if test "$TEST_MODULES" = yes
32045 then :
32046 if test "$have_libffi" = yes -a "$ac_cv_func_dlopen" = yes
32047 then :
32048 py_cv_module__ctypes_test=yes
32049 else $as_nop
32050 py_cv_module__ctypes_test=missing
32051 fi
32052 else $as_nop
32053 py_cv_module__ctypes_test=disabled
32054 fi
32055
32056 fi
32057 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_STATE=$py_cv_module__ctypes_test$as_nl"
32058 if test "x$py_cv_module__ctypes_test" = xyes
32059 then :
32060
32061
32062 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_LDFLAGS=$LIBM$as_nl"
32063
32064 fi
32065 if test "$py_cv_module__ctypes_test" = yes; then
32066 MODULE__CTYPES_TEST_TRUE=
32067 MODULE__CTYPES_TEST_FALSE='#'
32068 else
32069 MODULE__CTYPES_TEST_TRUE='#'
32070 MODULE__CTYPES_TEST_FALSE=
32071 fi
32072
32073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes_test" >&5
32074 printf "%s\n" "$py_cv_module__ctypes_test" >&6; }
32075
32076
32077
32078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited" >&5
32079 printf %s "checking for stdlib extension module xxlimited... " >&6; }
32080 if test "$py_cv_module_xxlimited" != "n/a"
32081 then :
32082
32083 if test "$TEST_MODULES" = yes
32084 then :
32085 if test "$ac_cv_func_dlopen" = yes
32086 then :
32087 py_cv_module_xxlimited=yes
32088 else $as_nop
32089 py_cv_module_xxlimited=missing
32090 fi
32091 else $as_nop
32092 py_cv_module_xxlimited=disabled
32093 fi
32094
32095 fi
32096 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_STATE=$py_cv_module_xxlimited$as_nl"
32097 if test "x$py_cv_module_xxlimited" = xyes
32098 then :
32099
32100
32101
32102
32103 fi
32104 if test "$py_cv_module_xxlimited" = yes; then
32105 MODULE_XXLIMITED_TRUE=
32106 MODULE_XXLIMITED_FALSE='#'
32107 else
32108 MODULE_XXLIMITED_TRUE='#'
32109 MODULE_XXLIMITED_FALSE=
32110 fi
32111
32112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited" >&5
32113 printf "%s\n" "$py_cv_module_xxlimited" >&6; }
32114
32115
32116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited_35" >&5
32117 printf %s "checking for stdlib extension module xxlimited_35... " >&6; }
32118 if test "$py_cv_module_xxlimited_35" != "n/a"
32119 then :
32120
32121 if test "$TEST_MODULES" = yes
32122 then :
32123 if test "$ac_cv_func_dlopen" = yes
32124 then :
32125 py_cv_module_xxlimited_35=yes
32126 else $as_nop
32127 py_cv_module_xxlimited_35=missing
32128 fi
32129 else $as_nop
32130 py_cv_module_xxlimited_35=disabled
32131 fi
32132
32133 fi
32134 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_35_STATE=$py_cv_module_xxlimited_35$as_nl"
32135 if test "x$py_cv_module_xxlimited_35" = xyes
32136 then :
32137
32138
32139
32140
32141 fi
32142 if test "$py_cv_module_xxlimited_35" = yes; then
32143 MODULE_XXLIMITED_35_TRUE=
32144 MODULE_XXLIMITED_35_FALSE='#'
32145 else
32146 MODULE_XXLIMITED_35_TRUE='#'
32147 MODULE_XXLIMITED_35_FALSE=
32148 fi
32149
32150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited_35" >&5
32151 printf "%s\n" "$py_cv_module_xxlimited_35" >&6; }
32152
32153
32154 # substitute multiline block, must come after last PY_STDLIB_MOD()
32155
32156
32157 # generate output files
32158 ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
32159
32160 ac_config_files="$ac_config_files Modules/Setup.bootstrap Modules/Setup.stdlib"
32161
32162 ac_config_files="$ac_config_files Modules/ld_so_aix"
32163
32164 # Generate files like pyconfig.h
32165 cat >confcache <<\_ACEOF
32166 # This file is a shell script that caches the results of configure
32167 # tests run on this system so they can be shared between configure
32168 # scripts and configure runs, see configure's option --config-cache.
32169 # It is not useful on other systems. If it contains results you don't
32170 # want to keep, you may remove or edit it.
32171 #
32172 # config.status only pays attention to the cache file if you give it
32173 # the --recheck option to rerun configure.
32174 #
32175 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32176 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32177 # following values.
32178
32179 _ACEOF
32180
32181 # The following way of writing the cache mishandles newlines in values,
32182 # but we know of no workaround that is simple, portable, and efficient.
32183 # So, we kill variables containing newlines.
32184 # Ultrix sh set writes to stderr and can't be redirected directly,
32185 # and sets the high bit in the cache file unless we assign to the vars.
32186 (
32187 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32188 eval ac_val=\$$ac_var
32189 case $ac_val in #(
32190 *${as_nl}*)
32191 case $ac_var in #(
32192 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32193 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32194 esac
32195 case $ac_var in #(
32196 _ | IFS | as_nl) ;; #(
32197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32198 *) { eval $ac_var=; unset $ac_var;} ;;
32199 esac ;;
32200 esac
32201 done
32202
32203 (set) 2>&1 |
32204 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32205 *${as_nl}ac_space=\ *)
32206 # `set' does not quote correctly, so add quotes: double-quote
32207 # substitution turns \\\\ into \\, and sed turns \\ into \.
32208 sed -n \
32209 "s/'/'\\\\''/g;
32210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32211 ;; #(
32212 *)
32213 # `set' quotes correctly as required by POSIX, so do not add quotes.
32214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32215 ;;
32216 esac |
32217 sort
32218 ) |
32219 sed '
32220 /^ac_cv_env_/b end
32221 t clear
32222 :clear
32223 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
32224 t end
32225 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32226 :end' >>confcache
32227 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32228 if test -w "$cache_file"; then
32229 if test "x$cache_file" != "x/dev/null"; then
32230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32231 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
32232 if test ! -f "$cache_file" || test -h "$cache_file"; then
32233 cat confcache >"$cache_file"
32234 else
32235 case $cache_file in #(
32236 */* | ?:*)
32237 mv -f confcache "$cache_file"$$ &&
32238 mv -f "$cache_file"$$ "$cache_file" ;; #(
32239 *)
32240 mv -f confcache "$cache_file" ;;
32241 esac
32242 fi
32243 fi
32244 else
32245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32246 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
32247 fi
32248 fi
32249 rm -f confcache
32250
32251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32252 # Let make expand exec_prefix.
32253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32254
32255 DEFS=-DHAVE_CONFIG_H
32256
32257 ac_libobjs=
32258 ac_ltlibobjs=
32259 U=
32260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32261 # 1. Remove the extension, and $U if already installed.
32262 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32263 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
32264 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32265 # will be set to the directory where LIBOBJS objects are built.
32266 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32267 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32268 done
32269 LIBOBJS=$ac_libobjs
32270
32271 LTLIBOBJS=$ac_ltlibobjs
32272
32273
32274
32275 if test -z "${MODULE__IO_TRUE}" && test -z "${MODULE__IO_FALSE}"; then
32276 as_fn_error $? "conditional \"MODULE__IO\" was never defined.
32277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32278 fi
32279 if test -z "${MODULE_TIME_TRUE}" && test -z "${MODULE_TIME_FALSE}"; then
32280 as_fn_error $? "conditional \"MODULE_TIME\" was never defined.
32281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32282 fi
32283 if test -z "${MODULE_ARRAY_TRUE}" && test -z "${MODULE_ARRAY_FALSE}"; then
32284 as_fn_error $? "conditional \"MODULE_ARRAY\" was never defined.
32285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32286 fi
32287 if test -z "${MODULE__ASYNCIO_TRUE}" && test -z "${MODULE__ASYNCIO_FALSE}"; then
32288 as_fn_error $? "conditional \"MODULE__ASYNCIO\" was never defined.
32289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32290 fi
32291 if test -z "${MODULE__BISECT_TRUE}" && test -z "${MODULE__BISECT_FALSE}"; then
32292 as_fn_error $? "conditional \"MODULE__BISECT\" was never defined.
32293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32294 fi
32295 if test -z "${MODULE__CONTEXTVARS_TRUE}" && test -z "${MODULE__CONTEXTVARS_FALSE}"; then
32296 as_fn_error $? "conditional \"MODULE__CONTEXTVARS\" was never defined.
32297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32298 fi
32299 if test -z "${MODULE__CSV_TRUE}" && test -z "${MODULE__CSV_FALSE}"; then
32300 as_fn_error $? "conditional \"MODULE__CSV\" was never defined.
32301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32302 fi
32303 if test -z "${MODULE__HEAPQ_TRUE}" && test -z "${MODULE__HEAPQ_FALSE}"; then
32304 as_fn_error $? "conditional \"MODULE__HEAPQ\" was never defined.
32305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32306 fi
32307 if test -z "${MODULE__JSON_TRUE}" && test -z "${MODULE__JSON_FALSE}"; then
32308 as_fn_error $? "conditional \"MODULE__JSON\" was never defined.
32309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32310 fi
32311 if test -z "${MODULE__LSPROF_TRUE}" && test -z "${MODULE__LSPROF_FALSE}"; then
32312 as_fn_error $? "conditional \"MODULE__LSPROF\" was never defined.
32313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32314 fi
32315 if test -z "${MODULE__OPCODE_TRUE}" && test -z "${MODULE__OPCODE_FALSE}"; then
32316 as_fn_error $? "conditional \"MODULE__OPCODE\" was never defined.
32317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32318 fi
32319 if test -z "${MODULE__PICKLE_TRUE}" && test -z "${MODULE__PICKLE_FALSE}"; then
32320 as_fn_error $? "conditional \"MODULE__PICKLE\" was never defined.
32321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32322 fi
32323 if test -z "${MODULE__POSIXSUBPROCESS_TRUE}" && test -z "${MODULE__POSIXSUBPROCESS_FALSE}"; then
32324 as_fn_error $? "conditional \"MODULE__POSIXSUBPROCESS\" was never defined.
32325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32326 fi
32327 if test -z "${MODULE__QUEUE_TRUE}" && test -z "${MODULE__QUEUE_FALSE}"; then
32328 as_fn_error $? "conditional \"MODULE__QUEUE\" was never defined.
32329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32330 fi
32331 if test -z "${MODULE__RANDOM_TRUE}" && test -z "${MODULE__RANDOM_FALSE}"; then
32332 as_fn_error $? "conditional \"MODULE__RANDOM\" was never defined.
32333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32334 fi
32335 if test -z "${MODULE_SELECT_TRUE}" && test -z "${MODULE_SELECT_FALSE}"; then
32336 as_fn_error $? "conditional \"MODULE_SELECT\" was never defined.
32337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32338 fi
32339 if test -z "${MODULE__STRUCT_TRUE}" && test -z "${MODULE__STRUCT_FALSE}"; then
32340 as_fn_error $? "conditional \"MODULE__STRUCT\" was never defined.
32341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32342 fi
32343 if test -z "${MODULE__TYPING_TRUE}" && test -z "${MODULE__TYPING_FALSE}"; then
32344 as_fn_error $? "conditional \"MODULE__TYPING\" was never defined.
32345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32346 fi
32347 if test -z "${MODULE__INTERPRETERS_TRUE}" && test -z "${MODULE__INTERPRETERS_FALSE}"; then
32348 as_fn_error $? "conditional \"MODULE__INTERPRETERS\" was never defined.
32349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32350 fi
32351 if test -z "${MODULE__INTERPCHANNELS_TRUE}" && test -z "${MODULE__INTERPCHANNELS_FALSE}"; then
32352 as_fn_error $? "conditional \"MODULE__INTERPCHANNELS\" was never defined.
32353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32354 fi
32355 if test -z "${MODULE__INTERPQUEUES_TRUE}" && test -z "${MODULE__INTERPQUEUES_FALSE}"; then
32356 as_fn_error $? "conditional \"MODULE__INTERPQUEUES\" was never defined.
32357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32358 fi
32359 if test -z "${MODULE__ZONEINFO_TRUE}" && test -z "${MODULE__ZONEINFO_FALSE}"; then
32360 as_fn_error $? "conditional \"MODULE__ZONEINFO\" was never defined.
32361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32362 fi
32363 if test -z "${MODULE__MULTIPROCESSING_TRUE}" && test -z "${MODULE__MULTIPROCESSING_FALSE}"; then
32364 as_fn_error $? "conditional \"MODULE__MULTIPROCESSING\" was never defined.
32365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32366 fi
32367 if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then
32368 as_fn_error $? "conditional \"MODULE__POSIXSHMEM\" was never defined.
32369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32370 fi
32371 if test -z "${MODULE__STATISTICS_TRUE}" && test -z "${MODULE__STATISTICS_FALSE}"; then
32372 as_fn_error $? "conditional \"MODULE__STATISTICS\" was never defined.
32373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32374 fi
32375 if test -z "${MODULE_CMATH_TRUE}" && test -z "${MODULE_CMATH_FALSE}"; then
32376 as_fn_error $? "conditional \"MODULE_CMATH\" was never defined.
32377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32378 fi
32379 if test -z "${MODULE_MATH_TRUE}" && test -z "${MODULE_MATH_FALSE}"; then
32380 as_fn_error $? "conditional \"MODULE_MATH\" was never defined.
32381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32382 fi
32383 if test -z "${MODULE__DATETIME_TRUE}" && test -z "${MODULE__DATETIME_FALSE}"; then
32384 as_fn_error $? "conditional \"MODULE__DATETIME\" was never defined.
32385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32386 fi
32387 if test -z "${MODULE_FCNTL_TRUE}" && test -z "${MODULE_FCNTL_FALSE}"; then
32388 as_fn_error $? "conditional \"MODULE_FCNTL\" was never defined.
32389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32390 fi
32391 if test -z "${MODULE_MMAP_TRUE}" && test -z "${MODULE_MMAP_FALSE}"; then
32392 as_fn_error $? "conditional \"MODULE_MMAP\" was never defined.
32393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32394 fi
32395 if test -z "${MODULE__SOCKET_TRUE}" && test -z "${MODULE__SOCKET_FALSE}"; then
32396 as_fn_error $? "conditional \"MODULE__SOCKET\" was never defined.
32397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32398 fi
32399 if test -z "${MODULE_GRP_TRUE}" && test -z "${MODULE_GRP_FALSE}"; then
32400 as_fn_error $? "conditional \"MODULE_GRP\" was never defined.
32401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32402 fi
32403 if test -z "${MODULE_PWD_TRUE}" && test -z "${MODULE_PWD_FALSE}"; then
32404 as_fn_error $? "conditional \"MODULE_PWD\" was never defined.
32405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32406 fi
32407 if test -z "${MODULE_RESOURCE_TRUE}" && test -z "${MODULE_RESOURCE_FALSE}"; then
32408 as_fn_error $? "conditional \"MODULE_RESOURCE\" was never defined.
32409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32410 fi
32411 if test -z "${MODULE__SCPROXY_TRUE}" && test -z "${MODULE__SCPROXY_FALSE}"; then
32412 as_fn_error $? "conditional \"MODULE__SCPROXY\" was never defined.
32413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32414 fi
32415 if test -z "${MODULE_SYSLOG_TRUE}" && test -z "${MODULE_SYSLOG_FALSE}"; then
32416 as_fn_error $? "conditional \"MODULE_SYSLOG\" was never defined.
32417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32418 fi
32419 if test -z "${MODULE_TERMIOS_TRUE}" && test -z "${MODULE_TERMIOS_FALSE}"; then
32420 as_fn_error $? "conditional \"MODULE_TERMIOS\" was never defined.
32421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32422 fi
32423 if test -z "${MODULE_PYEXPAT_TRUE}" && test -z "${MODULE_PYEXPAT_FALSE}"; then
32424 as_fn_error $? "conditional \"MODULE_PYEXPAT\" was never defined.
32425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32426 fi
32427 if test -z "${MODULE__ELEMENTTREE_TRUE}" && test -z "${MODULE__ELEMENTTREE_FALSE}"; then
32428 as_fn_error $? "conditional \"MODULE__ELEMENTTREE\" was never defined.
32429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32430 fi
32431 if test -z "${MODULE__CODECS_CN_TRUE}" && test -z "${MODULE__CODECS_CN_FALSE}"; then
32432 as_fn_error $? "conditional \"MODULE__CODECS_CN\" was never defined.
32433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32434 fi
32435 if test -z "${MODULE__CODECS_HK_TRUE}" && test -z "${MODULE__CODECS_HK_FALSE}"; then
32436 as_fn_error $? "conditional \"MODULE__CODECS_HK\" was never defined.
32437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32438 fi
32439 if test -z "${MODULE__CODECS_ISO2022_TRUE}" && test -z "${MODULE__CODECS_ISO2022_FALSE}"; then
32440 as_fn_error $? "conditional \"MODULE__CODECS_ISO2022\" was never defined.
32441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32442 fi
32443 if test -z "${MODULE__CODECS_JP_TRUE}" && test -z "${MODULE__CODECS_JP_FALSE}"; then
32444 as_fn_error $? "conditional \"MODULE__CODECS_JP\" was never defined.
32445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32446 fi
32447 if test -z "${MODULE__CODECS_KR_TRUE}" && test -z "${MODULE__CODECS_KR_FALSE}"; then
32448 as_fn_error $? "conditional \"MODULE__CODECS_KR\" was never defined.
32449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32450 fi
32451 if test -z "${MODULE__CODECS_TW_TRUE}" && test -z "${MODULE__CODECS_TW_FALSE}"; then
32452 as_fn_error $? "conditional \"MODULE__CODECS_TW\" was never defined.
32453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32454 fi
32455 if test -z "${MODULE__MULTIBYTECODEC_TRUE}" && test -z "${MODULE__MULTIBYTECODEC_FALSE}"; then
32456 as_fn_error $? "conditional \"MODULE__MULTIBYTECODEC\" was never defined.
32457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32458 fi
32459 if test -z "${MODULE_UNICODEDATA_TRUE}" && test -z "${MODULE_UNICODEDATA_FALSE}"; then
32460 as_fn_error $? "conditional \"MODULE_UNICODEDATA\" was never defined.
32461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32462 fi
32463 if test -z "${MODULE__MD5_TRUE}" && test -z "${MODULE__MD5_FALSE}"; then
32464 as_fn_error $? "conditional \"MODULE__MD5\" was never defined.
32465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32466 fi
32467 if test -z "${MODULE__SHA1_TRUE}" && test -z "${MODULE__SHA1_FALSE}"; then
32468 as_fn_error $? "conditional \"MODULE__SHA1\" was never defined.
32469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32470 fi
32471 if test -z "${MODULE__SHA2_TRUE}" && test -z "${MODULE__SHA2_FALSE}"; then
32472 as_fn_error $? "conditional \"MODULE__SHA2\" was never defined.
32473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32474 fi
32475 if test -z "${MODULE__SHA3_TRUE}" && test -z "${MODULE__SHA3_FALSE}"; then
32476 as_fn_error $? "conditional \"MODULE__SHA3\" was never defined.
32477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32478 fi
32479 if test -z "${MODULE__BLAKE2_TRUE}" && test -z "${MODULE__BLAKE2_FALSE}"; then
32480 as_fn_error $? "conditional \"MODULE__BLAKE2\" was never defined.
32481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32482 fi
32483 if test -z "${MODULE__CTYPES_TRUE}" && test -z "${MODULE__CTYPES_FALSE}"; then
32484 as_fn_error $? "conditional \"MODULE__CTYPES\" was never defined.
32485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32486 fi
32487 if test -z "${MODULE__CURSES_TRUE}" && test -z "${MODULE__CURSES_FALSE}"; then
32488 as_fn_error $? "conditional \"MODULE__CURSES\" was never defined.
32489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32490 fi
32491 if test -z "${MODULE__CURSES_PANEL_TRUE}" && test -z "${MODULE__CURSES_PANEL_FALSE}"; then
32492 as_fn_error $? "conditional \"MODULE__CURSES_PANEL\" was never defined.
32493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32494 fi
32495 if test -z "${MODULE__DECIMAL_TRUE}" && test -z "${MODULE__DECIMAL_FALSE}"; then
32496 as_fn_error $? "conditional \"MODULE__DECIMAL\" was never defined.
32497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32498 fi
32499 if test -z "${MODULE__DBM_TRUE}" && test -z "${MODULE__DBM_FALSE}"; then
32500 as_fn_error $? "conditional \"MODULE__DBM\" was never defined.
32501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32502 fi
32503 if test -z "${MODULE__GDBM_TRUE}" && test -z "${MODULE__GDBM_FALSE}"; then
32504 as_fn_error $? "conditional \"MODULE__GDBM\" was never defined.
32505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32506 fi
32507 if test -z "${MODULE_READLINE_TRUE}" && test -z "${MODULE_READLINE_FALSE}"; then
32508 as_fn_error $? "conditional \"MODULE_READLINE\" was never defined.
32509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32510 fi
32511 if test -z "${MODULE__SQLITE3_TRUE}" && test -z "${MODULE__SQLITE3_FALSE}"; then
32512 as_fn_error $? "conditional \"MODULE__SQLITE3\" was never defined.
32513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32514 fi
32515 if test -z "${MODULE__TKINTER_TRUE}" && test -z "${MODULE__TKINTER_FALSE}"; then
32516 as_fn_error $? "conditional \"MODULE__TKINTER\" was never defined.
32517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32518 fi
32519 if test -z "${MODULE__UUID_TRUE}" && test -z "${MODULE__UUID_FALSE}"; then
32520 as_fn_error $? "conditional \"MODULE__UUID\" was never defined.
32521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32522 fi
32523 if test -z "${MODULE_ZLIB_TRUE}" && test -z "${MODULE_ZLIB_FALSE}"; then
32524 as_fn_error $? "conditional \"MODULE_ZLIB\" was never defined.
32525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32526 fi
32527 if test -z "${MODULE_BINASCII_TRUE}" && test -z "${MODULE_BINASCII_FALSE}"; then
32528 as_fn_error $? "conditional \"MODULE_BINASCII\" was never defined.
32529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32530 fi
32531 if test -z "${MODULE__BZ2_TRUE}" && test -z "${MODULE__BZ2_FALSE}"; then
32532 as_fn_error $? "conditional \"MODULE__BZ2\" was never defined.
32533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32534 fi
32535 if test -z "${MODULE__LZMA_TRUE}" && test -z "${MODULE__LZMA_FALSE}"; then
32536 as_fn_error $? "conditional \"MODULE__LZMA\" was never defined.
32537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32538 fi
32539 if test -z "${MODULE__SSL_TRUE}" && test -z "${MODULE__SSL_FALSE}"; then
32540 as_fn_error $? "conditional \"MODULE__SSL\" was never defined.
32541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32542 fi
32543 if test -z "${MODULE__HASHLIB_TRUE}" && test -z "${MODULE__HASHLIB_FALSE}"; then
32544 as_fn_error $? "conditional \"MODULE__HASHLIB\" was never defined.
32545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32546 fi
32547 if test -z "${MODULE__TESTCAPI_TRUE}" && test -z "${MODULE__TESTCAPI_FALSE}"; then
32548 as_fn_error $? "conditional \"MODULE__TESTCAPI\" was never defined.
32549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32550 fi
32551 if test -z "${MODULE__TESTCLINIC_TRUE}" && test -z "${MODULE__TESTCLINIC_FALSE}"; then
32552 as_fn_error $? "conditional \"MODULE__TESTCLINIC\" was never defined.
32553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32554 fi
32555 if test -z "${MODULE__TESTCLINIC_LIMITED_TRUE}" && test -z "${MODULE__TESTCLINIC_LIMITED_FALSE}"; then
32556 as_fn_error $? "conditional \"MODULE__TESTCLINIC_LIMITED\" was never defined.
32557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32558 fi
32559 if test -z "${MODULE__TESTLIMITEDCAPI_TRUE}" && test -z "${MODULE__TESTLIMITEDCAPI_FALSE}"; then
32560 as_fn_error $? "conditional \"MODULE__TESTLIMITEDCAPI\" was never defined.
32561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32562 fi
32563 if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then
32564 as_fn_error $? "conditional \"MODULE__TESTINTERNALCAPI\" was never defined.
32565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32566 fi
32567 if test -z "${MODULE__TESTBUFFER_TRUE}" && test -z "${MODULE__TESTBUFFER_FALSE}"; then
32568 as_fn_error $? "conditional \"MODULE__TESTBUFFER\" was never defined.
32569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32570 fi
32571 if test -z "${MODULE__TESTIMPORTMULTIPLE_TRUE}" && test -z "${MODULE__TESTIMPORTMULTIPLE_FALSE}"; then
32572 as_fn_error $? "conditional \"MODULE__TESTIMPORTMULTIPLE\" was never defined.
32573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32574 fi
32575 if test -z "${MODULE__TESTMULTIPHASE_TRUE}" && test -z "${MODULE__TESTMULTIPHASE_FALSE}"; then
32576 as_fn_error $? "conditional \"MODULE__TESTMULTIPHASE\" was never defined.
32577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32578 fi
32579 if test -z "${MODULE__TESTSINGLEPHASE_TRUE}" && test -z "${MODULE__TESTSINGLEPHASE_FALSE}"; then
32580 as_fn_error $? "conditional \"MODULE__TESTSINGLEPHASE\" was never defined.
32581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32582 fi
32583 if test -z "${MODULE__TESTEXTERNALINSPECTION_TRUE}" && test -z "${MODULE__TESTEXTERNALINSPECTION_FALSE}"; then
32584 as_fn_error $? "conditional \"MODULE__TESTEXTERNALINSPECTION\" was never defined.
32585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32586 fi
32587 if test -z "${MODULE_XXSUBTYPE_TRUE}" && test -z "${MODULE_XXSUBTYPE_FALSE}"; then
32588 as_fn_error $? "conditional \"MODULE_XXSUBTYPE\" was never defined.
32589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32590 fi
32591 if test -z "${MODULE__XXTESTFUZZ_TRUE}" && test -z "${MODULE__XXTESTFUZZ_FALSE}"; then
32592 as_fn_error $? "conditional \"MODULE__XXTESTFUZZ\" was never defined.
32593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32594 fi
32595 if test -z "${MODULE__CTYPES_TEST_TRUE}" && test -z "${MODULE__CTYPES_TEST_FALSE}"; then
32596 as_fn_error $? "conditional \"MODULE__CTYPES_TEST\" was never defined.
32597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32598 fi
32599 if test -z "${MODULE_XXLIMITED_TRUE}" && test -z "${MODULE_XXLIMITED_FALSE}"; then
32600 as_fn_error $? "conditional \"MODULE_XXLIMITED\" was never defined.
32601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32602 fi
32603 if test -z "${MODULE_XXLIMITED_35_TRUE}" && test -z "${MODULE_XXLIMITED_35_FALSE}"; then
32604 as_fn_error $? "conditional \"MODULE_XXLIMITED_35\" was never defined.
32605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32606 fi
32607
32608 : "${CONFIG_STATUS=./config.status}"
32609 ac_write_fail=0
32610 ac_clean_files_save=$ac_clean_files
32611 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32613 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
32614 as_write_fail=0
32615 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32616 #! $SHELL
32617 # Generated by $as_me.
32618 # Run this file to recreate the current configuration.
32619 # Compiler output produced by configure, useful for debugging
32620 # configure, is in config.log if it exists.
32621
32622 debug=false
32623 ac_cs_recheck=false
32624 ac_cs_silent=false
32625
32626 SHELL=\${CONFIG_SHELL-$SHELL}
32627 export SHELL
32628 _ASEOF
32629 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32630 ## -------------------- ##
32631 ## M4sh Initialization. ##
32632 ## -------------------- ##
32633
32634 # Be more Bourne compatible
32635 DUALCASE=1; export DUALCASE # for MKS sh
32636 as_nop=:
32637 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
32638 then :
32639 emulate sh
32640 NULLCMD=:
32641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32642 # is contrary to our usage. Disable this feature.
32643 alias -g '${1+"$@"}'='"$@"'
32644 setopt NO_GLOB_SUBST
32645 else $as_nop
32646 case `(set -o) 2>/dev/null` in #(
32647 *posix*) :
32648 set -o posix ;; #(
32649 *) :
32650 ;;
32651 esac
32652 fi
32653
32654
32655
32656 # Reset variables that may have inherited troublesome values from
32657 # the environment.
32658
32659 # IFS needs to be set, to space, tab, and newline, in precisely that order.
32660 # (If _AS_PATH_WALK were called with IFS unset, it would have the
32661 # side effect of setting IFS to empty, thus disabling word splitting.)
32662 # Quoting is to prevent editors from complaining about space-tab.
32663 as_nl='
32664 '
32665 export as_nl
32666 IFS=" "" $as_nl"
32667
32668 PS1='$ '
32669 PS2='> '
32670 PS4='+ '
32671
32672 # Ensure predictable behavior from utilities with locale-dependent output.
32673 LC_ALL=C
32674 export LC_ALL
32675 LANGUAGE=C
32676 export LANGUAGE
32677
32678 # We cannot yet rely on "unset" to work, but we need these variables
32679 # to be unset--not just set to an empty or harmless value--now, to
32680 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
32681 # also avoids known problems related to "unset" and subshell syntax
32682 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
32683 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
32684 do eval test \${$as_var+y} \
32685 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32686 done
32687
32688 # Ensure that fds 0, 1, and 2 are open.
32689 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
32690 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
32691 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
32692
32693 # The user is always right.
32694 if ${PATH_SEPARATOR+false} :; then
32695 PATH_SEPARATOR=:
32696 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32697 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32698 PATH_SEPARATOR=';'
32699 }
32700 fi
32701
32702
32703 # Find who we are. Look in the path if we contain no directory separator.
32704 as_myself=
32705 case $0 in #((
32706 *[\\/]* ) as_myself=$0 ;;
32707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32708 for as_dir in $PATH
32709 do
32710 IFS=$as_save_IFS
32711 case $as_dir in #(((
32712 '') as_dir=./ ;;
32713 */) ;;
32714 *) as_dir=$as_dir/ ;;
32715 esac
32716 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
32717 done
32718 IFS=$as_save_IFS
32719
32720 ;;
32721 esac
32722 # We did not find ourselves, most probably we were run as `sh COMMAND'
32723 # in which case we are not to be found in the path.
32724 if test "x$as_myself" = x; then
32725 as_myself=$0
32726 fi
32727 if test ! -f "$as_myself"; then
32728 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32729 exit 1
32730 fi
32731
32732
32733
32734 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32735 # ----------------------------------------
32736 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32737 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32738 # script with STATUS, using 1 if that was 0.
32739 as_fn_error ()
32740 {
32741 as_status=$1; test $as_status -eq 0 && as_status=1
32742 if test "$4"; then
32743 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32745 fi
32746 printf "%s\n" "$as_me: error: $2" >&2
32747 as_fn_exit $as_status
32748 } # as_fn_error
32749
32750
32751
32752 # as_fn_set_status STATUS
32753 # -----------------------
32754 # Set $? to STATUS, without forking.
32755 as_fn_set_status ()
32756 {
32757 return $1
32758 } # as_fn_set_status
32759
32760 # as_fn_exit STATUS
32761 # -----------------
32762 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32763 as_fn_exit ()
32764 {
32765 set +e
32766 as_fn_set_status $1
32767 exit $1
32768 } # as_fn_exit
32769
32770 # as_fn_unset VAR
32771 # ---------------
32772 # Portably unset VAR.
32773 as_fn_unset ()
32774 {
32775 { eval $1=; unset $1;}
32776 }
32777 as_unset=as_fn_unset
32778
32779 # as_fn_append VAR VALUE
32780 # ----------------------
32781 # Append the text in VALUE to the end of the definition contained in VAR. Take
32782 # advantage of any shell optimizations that allow amortized linear growth over
32783 # repeated appends, instead of the typical quadratic growth present in naive
32784 # implementations.
32785 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
32786 then :
32787 eval 'as_fn_append ()
32788 {
32789 eval $1+=\$2
32790 }'
32791 else $as_nop
32792 as_fn_append ()
32793 {
32794 eval $1=\$$1\$2
32795 }
32796 fi # as_fn_append
32797
32798 # as_fn_arith ARG...
32799 # ------------------
32800 # Perform arithmetic evaluation on the ARGs, and store the result in the
32801 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32802 # must be portable across $(()) and expr.
32803 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
32804 then :
32805 eval 'as_fn_arith ()
32806 {
32807 as_val=$(( $* ))
32808 }'
32809 else $as_nop
32810 as_fn_arith ()
32811 {
32812 as_val=`expr "$@" || test $? -eq 1`
32813 }
32814 fi # as_fn_arith
32815
32816
32817 if expr a : '\(a\)' >/dev/null 2>&1 &&
32818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32819 as_expr=expr
32820 else
32821 as_expr=false
32822 fi
32823
32824 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32825 as_basename=basename
32826 else
32827 as_basename=false
32828 fi
32829
32830 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32831 as_dirname=dirname
32832 else
32833 as_dirname=false
32834 fi
32835
32836 as_me=`$as_basename -- "$0" ||
32837 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32838 X"$0" : 'X\(//\)$' \| \
32839 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32840 printf "%s\n" X/"$0" |
32841 sed '/^.*\/\([^/][^/]*\)\/*$/{
32842 s//\1/
32843 q
32844 }
32845 /^X\/\(\/\/\)$/{
32846 s//\1/
32847 q
32848 }
32849 /^X\/\(\/\).*/{
32850 s//\1/
32851 q
32852 }
32853 s/.*/./; q'`
32854
32855 # Avoid depending upon Character Ranges.
32856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32859 as_cr_digits='0123456789'
32860 as_cr_alnum=$as_cr_Letters$as_cr_digits
32861
32862
32863 # Determine whether it's possible to make 'echo' print without a newline.
32864 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
32865 # for compatibility with existing Makefiles.
32866 ECHO_C= ECHO_N= ECHO_T=
32867 case `echo -n x` in #(((((
32868 -n*)
32869 case `echo 'xy\c'` in
32870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32871 xy) ECHO_C='\c';;
32872 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32873 ECHO_T=' ';;
32874 esac;;
32875 *)
32876 ECHO_N='-n';;
32877 esac
32878
32879 # For backward compatibility with old third-party macros, we provide
32880 # the shell variables $as_echo and $as_echo_n. New code should use
32881 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
32882 as_echo='printf %s\n'
32883 as_echo_n='printf %s'
32884
32885 rm -f conf$$ conf$$.exe conf$$.file
32886 if test -d conf$$.dir; then
32887 rm -f conf$$.dir/conf$$.file
32888 else
32889 rm -f conf$$.dir
32890 mkdir conf$$.dir 2>/dev/null
32891 fi
32892 if (echo >conf$$.file) 2>/dev/null; then
32893 if ln -s conf$$.file conf$$ 2>/dev/null; then
32894 as_ln_s='ln -s'
32895 # ... but there are two gotchas:
32896 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32897 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32898 # In both cases, we have to default to `cp -pR'.
32899 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32900 as_ln_s='cp -pR'
32901 elif ln conf$$.file conf$$ 2>/dev/null; then
32902 as_ln_s=ln
32903 else
32904 as_ln_s='cp -pR'
32905 fi
32906 else
32907 as_ln_s='cp -pR'
32908 fi
32909 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32910 rmdir conf$$.dir 2>/dev/null
32911
32912
32913 # as_fn_mkdir_p
32914 # -------------
32915 # Create "$as_dir" as a directory, including parents if necessary.
32916 as_fn_mkdir_p ()
32917 {
32918
32919 case $as_dir in #(
32920 -*) as_dir=./$as_dir;;
32921 esac
32922 test -d "$as_dir" || eval $as_mkdir_p || {
32923 as_dirs=
32924 while :; do
32925 case $as_dir in #(
32926 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32927 *) as_qdir=$as_dir;;
32928 esac
32929 as_dirs="'$as_qdir' $as_dirs"
32930 as_dir=`$as_dirname -- "$as_dir" ||
32931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32932 X"$as_dir" : 'X\(//\)[^/]' \| \
32933 X"$as_dir" : 'X\(//\)$' \| \
32934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32935 printf "%s\n" X"$as_dir" |
32936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32937 s//\1/
32938 q
32939 }
32940 /^X\(\/\/\)[^/].*/{
32941 s//\1/
32942 q
32943 }
32944 /^X\(\/\/\)$/{
32945 s//\1/
32946 q
32947 }
32948 /^X\(\/\).*/{
32949 s//\1/
32950 q
32951 }
32952 s/.*/./; q'`
32953 test -d "$as_dir" && break
32954 done
32955 test -z "$as_dirs" || eval "mkdir $as_dirs"
32956 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32957
32958
32959 } # as_fn_mkdir_p
32960 if mkdir -p . 2>/dev/null; then
32961 as_mkdir_p='mkdir -p "$as_dir"'
32962 else
32963 test -d ./-p && rmdir ./-p
32964 as_mkdir_p=false
32965 fi
32966
32967
32968 # as_fn_executable_p FILE
32969 # -----------------------
32970 # Test if FILE is an executable regular file.
32971 as_fn_executable_p ()
32972 {
32973 test -f "$1" && test -x "$1"
32974 } # as_fn_executable_p
32975 as_test_x='test -x'
32976 as_executable_p=as_fn_executable_p
32977
32978 # Sed expression to map a string onto a valid CPP name.
32979 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32980
32981 # Sed expression to map a string onto a valid variable name.
32982 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32983
32984
32985 exec 6>&1
32986 ## ----------------------------------- ##
32987 ## Main body of $CONFIG_STATUS script. ##
32988 ## ----------------------------------- ##
32989 _ASEOF
32990 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32991
32992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32993 # Save the log message, to keep $0 and so on meaningful, and to
32994 # report actual input values of CONFIG_FILES etc. instead of their
32995 # values after options handling.
32996 ac_log="
32997 This file was extended by python $as_me 3.13, which was
32998 generated by GNU Autoconf 2.71. Invocation command line was
32999
33000 CONFIG_FILES = $CONFIG_FILES
33001 CONFIG_HEADERS = $CONFIG_HEADERS
33002 CONFIG_LINKS = $CONFIG_LINKS
33003 CONFIG_COMMANDS = $CONFIG_COMMANDS
33004 $ $0 $@
33005
33006 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33007 "
33008
33009 _ACEOF
33010
33011 case $ac_config_files in *"
33012 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33013 esac
33014
33015 case $ac_config_headers in *"
33016 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33017 esac
33018
33019
33020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33021 # Files that config.status was made for.
33022 config_files="$ac_config_files"
33023 config_headers="$ac_config_headers"
33024
33025 _ACEOF
33026
33027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33028 ac_cs_usage="\
33029 \`$as_me' instantiates files and other configuration actions
33030 from templates according to the current configuration. Unless the files
33031 and actions are specified as TAGs, all are instantiated by default.
33032
33033 Usage: $0 [OPTION]... [TAG]...
33034
33035 -h, --help print this help, then exit
33036 -V, --version print version number and configuration settings, then exit
33037 --config print configuration, then exit
33038 -q, --quiet, --silent
33039 do not print progress messages
33040 -d, --debug don't remove temporary files
33041 --recheck update $as_me by reconfiguring in the same conditions
33042 --file=FILE[:TEMPLATE]
33043 instantiate the configuration file FILE
33044 --header=FILE[:TEMPLATE]
33045 instantiate the configuration header FILE
33046
33047 Configuration files:
33048 $config_files
33049
33050 Configuration headers:
33051 $config_headers
33052
33053 Report bugs to <https://github.com/python/cpython/issues/>."
33054
33055 _ACEOF
33056 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
33057 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
33058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33059 ac_cs_config='$ac_cs_config_escaped'
33060 ac_cs_version="\\
33061 python config.status 3.13
33062 configured by $0, generated by GNU Autoconf 2.71,
33063 with options \\"\$ac_cs_config\\"
33064
33065 Copyright (C) 2021 Free Software Foundation, Inc.
33066 This config.status script is free software; the Free Software Foundation
33067 gives unlimited permission to copy, distribute and modify it."
33068
33069 ac_pwd='$ac_pwd'
33070 srcdir='$srcdir'
33071 INSTALL='$INSTALL'
33072 MKDIR_P='$MKDIR_P'
33073 test -n "\$AWK" || AWK=awk
33074 _ACEOF
33075
33076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33077 # The default lists apply if the user does not specify any file.
33078 ac_need_defaults=:
33079 while test $# != 0
33080 do
33081 case $1 in
33082 --*=?*)
33083 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33084 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33085 ac_shift=:
33086 ;;
33087 --*=)
33088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33089 ac_optarg=
33090 ac_shift=:
33091 ;;
33092 *)
33093 ac_option=$1
33094 ac_optarg=$2
33095 ac_shift=shift
33096 ;;
33097 esac
33098
33099 case $ac_option in
33100 # Handling of the options.
33101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33102 ac_cs_recheck=: ;;
33103 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33104 printf "%s\n" "$ac_cs_version"; exit ;;
33105 --config | --confi | --conf | --con | --co | --c )
33106 printf "%s\n" "$ac_cs_config"; exit ;;
33107 --debug | --debu | --deb | --de | --d | -d )
33108 debug=: ;;
33109 --file | --fil | --fi | --f )
33110 $ac_shift
33111 case $ac_optarg in
33112 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33113 '') as_fn_error $? "missing file argument" ;;
33114 esac
33115 as_fn_append CONFIG_FILES " '$ac_optarg'"
33116 ac_need_defaults=false;;
33117 --header | --heade | --head | --hea )
33118 $ac_shift
33119 case $ac_optarg in
33120 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33121 esac
33122 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33123 ac_need_defaults=false;;
33124 --he | --h)
33125 # Conflict between --help and --header
33126 as_fn_error $? "ambiguous option: \`$1'
33127 Try \`$0 --help' for more information.";;
33128 --help | --hel | -h )
33129 printf "%s\n" "$ac_cs_usage"; exit ;;
33130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33132 ac_cs_silent=: ;;
33133
33134 # This is an error.
33135 -*) as_fn_error $? "unrecognized option: \`$1'
33136 Try \`$0 --help' for more information." ;;
33137
33138 *) as_fn_append ac_config_targets " $1"
33139 ac_need_defaults=false ;;
33140
33141 esac
33142 shift
33143 done
33144
33145 ac_configure_extra_args=
33146
33147 if $ac_cs_silent; then
33148 exec 6>/dev/null
33149 ac_configure_extra_args="$ac_configure_extra_args --silent"
33150 fi
33151
33152 _ACEOF
33153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33154 if \$ac_cs_recheck; then
33155 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33156 shift
33157 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
33158 CONFIG_SHELL='$SHELL'
33159 export CONFIG_SHELL
33160 exec "\$@"
33161 fi
33162
33163 _ACEOF
33164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33165 exec 5>>config.log
33166 {
33167 echo
33168 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33169 ## Running $as_me. ##
33170 _ASBOX
33171 printf "%s\n" "$ac_log"
33172 } >&5
33173
33174 _ACEOF
33175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33176 _ACEOF
33177
33178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33179
33180 # Handling of arguments.
33181 for ac_config_target in $ac_config_targets
33182 do
33183 case $ac_config_target in
33184 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
33185 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
33186 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
33187 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
33188 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
33189 "iOS/Resources/Info.plist") CONFIG_FILES="$CONFIG_FILES iOS/Resources/Info.plist" ;;
33190 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
33191 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
33192 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;;
33193 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
33194 "Modules/Setup.bootstrap") CONFIG_FILES="$CONFIG_FILES Modules/Setup.bootstrap" ;;
33195 "Modules/Setup.stdlib") CONFIG_FILES="$CONFIG_FILES Modules/Setup.stdlib" ;;
33196 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
33197
33198 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33199 esac
33200 done
33201
33202
33203 # If the user did not use the arguments to specify the items to instantiate,
33204 # then the envvar interface is used. Set only those that are not.
33205 # We use the long form for the default assignment because of an extremely
33206 # bizarre bug on SunOS 4.1.3.
33207 if $ac_need_defaults; then
33208 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
33209 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
33210 fi
33211
33212 # Have a temporary directory for convenience. Make it in the build tree
33213 # simply because there is no reason against having it here, and in addition,
33214 # creating and moving files from /tmp can sometimes cause problems.
33215 # Hook for its removal unless debugging.
33216 # Note that there is a small window in which the directory will not be cleaned:
33217 # after its creation but before its name has been assigned to `$tmp'.
33218 $debug ||
33219 {
33220 tmp= ac_tmp=
33221 trap 'exit_status=$?
33222 : "${ac_tmp:=$tmp}"
33223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33224 ' 0
33225 trap 'as_fn_exit 1' 1 2 13 15
33226 }
33227 # Create a (secure) tmp directory for tmp files.
33228
33229 {
33230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33231 test -d "$tmp"
33232 } ||
33233 {
33234 tmp=./conf$$-$RANDOM
33235 (umask 077 && mkdir "$tmp")
33236 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33237 ac_tmp=$tmp
33238
33239 # Set up the scripts for CONFIG_FILES section.
33240 # No need to generate them if there are no CONFIG_FILES.
33241 # This happens for instance with `./config.status config.h'.
33242 if test -n "$CONFIG_FILES"; then
33243
33244
33245 ac_cr=`echo X | tr X '\015'`
33246 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33247 # But we know of no other shell where ac_cr would be empty at this
33248 # point, so we can use a bashism as a fallback.
33249 if test "x$ac_cr" = x; then
33250 eval ac_cr=\$\'\\r\'
33251 fi
33252 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33253 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33254 ac_cs_awk_cr='\\r'
33255 else
33256 ac_cs_awk_cr=$ac_cr
33257 fi
33258
33259 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33260 _ACEOF
33261
33262
33263 {
33264 echo "cat >conf$$subs.awk <<_ACEOF" &&
33265 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33266 echo "_ACEOF"
33267 } >conf$$subs.sh ||
33268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33269 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33270 ac_delim='%!_!# '
33271 for ac_last_try in false false false false false :; do
33272 . ./conf$$subs.sh ||
33273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33274
33275 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33276 if test $ac_delim_n = $ac_delim_num; then
33277 break
33278 elif $ac_last_try; then
33279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33280 else
33281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33282 fi
33283 done
33284 rm -f conf$$subs.sh
33285
33286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33287 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33288 _ACEOF
33289 sed -n '
33290 h
33291 s/^/S["/; s/!.*/"]=/
33292 p
33293 g
33294 s/^[^!]*!//
33295 :repl
33296 t repl
33297 s/'"$ac_delim"'$//
33298 t delim
33299 :nl
33300 h
33301 s/\(.\{148\}\)..*/\1/
33302 t more1
33303 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33304 p
33305 n
33306 b repl
33307 :more1
33308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33309 p
33310 g
33311 s/.\{148\}//
33312 t nl
33313 :delim
33314 h
33315 s/\(.\{148\}\)..*/\1/
33316 t more2
33317 s/["\\]/\\&/g; s/^/"/; s/$/"/
33318 p
33319 b
33320 :more2
33321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33322 p
33323 g
33324 s/.\{148\}//
33325 t delim
33326 ' <conf$$subs.awk | sed '
33327 /^[^""]/{
33328 N
33329 s/\n//
33330 }
33331 ' >>$CONFIG_STATUS || ac_write_fail=1
33332 rm -f conf$$subs.awk
33333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33334 _ACAWK
33335 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33336 for (key in S) S_is_set[key] = 1
33337 FS = ""
33338
33339 }
33340 {
33341 line = $ 0
33342 nfields = split(line, field, "@")
33343 substed = 0
33344 len = length(field[1])
33345 for (i = 2; i < nfields; i++) {
33346 key = field[i]
33347 keylen = length(key)
33348 if (S_is_set[key]) {
33349 value = S[key]
33350 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33351 len += length(value) + length(field[++i])
33352 substed = 1
33353 } else
33354 len += 1 + keylen
33355 }
33356
33357 print line
33358 }
33359
33360 _ACAWK
33361 _ACEOF
33362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33363 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33364 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33365 else
33366 cat
33367 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33368 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33369 _ACEOF
33370
33371 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33372 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33373 # trailing colons and then remove the whole line if VPATH becomes empty
33374 # (actually we leave an empty line to preserve line numbers).
33375 if test "x$srcdir" = x.; then
33376 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33377 h
33378 s///
33379 s/^/:/
33380 s/[ ]*$/:/
33381 s/:\$(srcdir):/:/g
33382 s/:\${srcdir}:/:/g
33383 s/:@srcdir@:/:/g
33384 s/^:*//
33385 s/:*$//
33386 x
33387 s/\(=[ ]*\).*/\1/
33388 G
33389 s/\n//
33390 s/^[^=]*=[ ]*$//
33391 }'
33392 fi
33393
33394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33395 fi # test -n "$CONFIG_FILES"
33396
33397 # Set up the scripts for CONFIG_HEADERS section.
33398 # No need to generate them if there are no CONFIG_HEADERS.
33399 # This happens for instance with `./config.status Makefile'.
33400 if test -n "$CONFIG_HEADERS"; then
33401 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33402 BEGIN {
33403 _ACEOF
33404
33405 # Transform confdefs.h into an awk script `defines.awk', embedded as
33406 # here-document in config.status, that substitutes the proper values into
33407 # config.h.in to produce config.h.
33408
33409 # Create a delimiter string that does not exist in confdefs.h, to ease
33410 # handling of long lines.
33411 ac_delim='%!_!# '
33412 for ac_last_try in false false :; do
33413 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33414 if test -z "$ac_tt"; then
33415 break
33416 elif $ac_last_try; then
33417 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33418 else
33419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33420 fi
33421 done
33422
33423 # For the awk script, D is an array of macro values keyed by name,
33424 # likewise P contains macro parameters if any. Preserve backslash
33425 # newline sequences.
33426
33427 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33428 sed -n '
33429 s/.\{148\}/&'"$ac_delim"'/g
33430 t rset
33431 :rset
33432 s/^[ ]*#[ ]*define[ ][ ]*/ /
33433 t def
33434 d
33435 :def
33436 s/\\$//
33437 t bsnl
33438 s/["\\]/\\&/g
33439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33440 D["\1"]=" \3"/p
33441 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33442 d
33443 :bsnl
33444 s/["\\]/\\&/g
33445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33446 D["\1"]=" \3\\\\\\n"\\/p
33447 t cont
33448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33449 t cont
33450 d
33451 :cont
33452 n
33453 s/.\{148\}/&'"$ac_delim"'/g
33454 t clear
33455 :clear
33456 s/\\$//
33457 t bsnlc
33458 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33459 d
33460 :bsnlc
33461 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33462 b cont
33463 ' <confdefs.h | sed '
33464 s/'"$ac_delim"'/"\\\
33465 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33466
33467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33468 for (key in D) D_is_set[key] = 1
33469 FS = ""
33470 }
33471 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33472 line = \$ 0
33473 split(line, arg, " ")
33474 if (arg[1] == "#") {
33475 defundef = arg[2]
33476 mac1 = arg[3]
33477 } else {
33478 defundef = substr(arg[1], 2)
33479 mac1 = arg[2]
33480 }
33481 split(mac1, mac2, "(") #)
33482 macro = mac2[1]
33483 prefix = substr(line, 1, index(line, defundef) - 1)
33484 if (D_is_set[macro]) {
33485 # Preserve the white space surrounding the "#".
33486 print prefix "define", macro P[macro] D[macro]
33487 next
33488 } else {
33489 # Replace #undef with comments. This is necessary, for example,
33490 # in the case of _POSIX_SOURCE, which is predefined and required
33491 # on some systems where configure will not decide to define it.
33492 if (defundef == "undef") {
33493 print "/*", prefix defundef, macro, "*/"
33494 next
33495 }
33496 }
33497 }
33498 { print }
33499 _ACAWK
33500 _ACEOF
33501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33502 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33503 fi # test -n "$CONFIG_HEADERS"
33504
33505
33506 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
33507 shift
33508 for ac_tag
33509 do
33510 case $ac_tag in
33511 :[FHLC]) ac_mode=$ac_tag; continue;;
33512 esac
33513 case $ac_mode$ac_tag in
33514 :[FHL]*:*);;
33515 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33516 :[FH]-) ac_tag=-:-;;
33517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33518 esac
33519 ac_save_IFS=$IFS
33520 IFS=:
33521 set x $ac_tag
33522 IFS=$ac_save_IFS
33523 shift
33524 ac_file=$1
33525 shift
33526
33527 case $ac_mode in
33528 :L) ac_source=$1;;
33529 :[FH])
33530 ac_file_inputs=
33531 for ac_f
33532 do
33533 case $ac_f in
33534 -) ac_f="$ac_tmp/stdin";;
33535 *) # Look for the file first in the build tree, then in the source tree
33536 # (if the path is not absolute). The absolute path cannot be DOS-style,
33537 # because $ac_f cannot contain `:'.
33538 test -f "$ac_f" ||
33539 case $ac_f in
33540 [\\/$]*) false;;
33541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33542 esac ||
33543 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33544 esac
33545 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33546 as_fn_append ac_file_inputs " '$ac_f'"
33547 done
33548
33549 # Let's still pretend it is `configure' which instantiates (i.e., don't
33550 # use $as_me), people would be surprised to read:
33551 # /* config.h. Generated by config.status. */
33552 configure_input='Generated from '`
33553 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33554 `' by configure.'
33555 if test x"$ac_file" != x-; then
33556 configure_input="$ac_file. $configure_input"
33557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33558 printf "%s\n" "$as_me: creating $ac_file" >&6;}
33559 fi
33560 # Neutralize special characters interpreted by sed in replacement strings.
33561 case $configure_input in #(
33562 *\&* | *\|* | *\\* )
33563 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
33564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33565 *) ac_sed_conf_input=$configure_input;;
33566 esac
33567
33568 case $ac_tag in
33569 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33571 esac
33572 ;;
33573 esac
33574
33575 ac_dir=`$as_dirname -- "$ac_file" ||
33576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33577 X"$ac_file" : 'X\(//\)[^/]' \| \
33578 X"$ac_file" : 'X\(//\)$' \| \
33579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33580 printf "%s\n" X"$ac_file" |
33581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33582 s//\1/
33583 q
33584 }
33585 /^X\(\/\/\)[^/].*/{
33586 s//\1/
33587 q
33588 }
33589 /^X\(\/\/\)$/{
33590 s//\1/
33591 q
33592 }
33593 /^X\(\/\).*/{
33594 s//\1/
33595 q
33596 }
33597 s/.*/./; q'`
33598 as_dir="$ac_dir"; as_fn_mkdir_p
33599 ac_builddir=.
33600
33601 case "$ac_dir" in
33602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33603 *)
33604 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
33605 # A ".." for each directory in $ac_dir_suffix.
33606 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33607 case $ac_top_builddir_sub in
33608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33610 esac ;;
33611 esac
33612 ac_abs_top_builddir=$ac_pwd
33613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33614 # for backward compatibility:
33615 ac_top_builddir=$ac_top_build_prefix
33616
33617 case $srcdir in
33618 .) # We are building in place.
33619 ac_srcdir=.
33620 ac_top_srcdir=$ac_top_builddir_sub
33621 ac_abs_top_srcdir=$ac_pwd ;;
33622 [\\/]* | ?:[\\/]* ) # Absolute name.
33623 ac_srcdir=$srcdir$ac_dir_suffix;
33624 ac_top_srcdir=$srcdir
33625 ac_abs_top_srcdir=$srcdir ;;
33626 *) # Relative name.
33627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33628 ac_top_srcdir=$ac_top_build_prefix$srcdir
33629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33630 esac
33631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33632
33633
33634 case $ac_mode in
33635 :F)
33636 #
33637 # CONFIG_FILE
33638 #
33639
33640 case $INSTALL in
33641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33643 esac
33644 ac_MKDIR_P=$MKDIR_P
33645 case $MKDIR_P in
33646 [\\/$]* | ?:[\\/]* ) ;;
33647 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33648 esac
33649 _ACEOF
33650
33651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33652 # If the template does not know about datarootdir, expand it.
33653 # FIXME: This hack should be removed a few years after 2.60.
33654 ac_datarootdir_hack=; ac_datarootdir_seen=
33655 ac_sed_dataroot='
33656 /datarootdir/ {
33657 p
33658 q
33659 }
33660 /@datadir@/p
33661 /@docdir@/p
33662 /@infodir@/p
33663 /@localedir@/p
33664 /@mandir@/p'
33665 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33666 *datarootdir*) ac_datarootdir_seen=yes;;
33667 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33669 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33670 _ACEOF
33671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33672 ac_datarootdir_hack='
33673 s&@datadir@&$datadir&g
33674 s&@docdir@&$docdir&g
33675 s&@infodir@&$infodir&g
33676 s&@localedir@&$localedir&g
33677 s&@mandir@&$mandir&g
33678 s&\\\${datarootdir}&$datarootdir&g' ;;
33679 esac
33680 _ACEOF
33681
33682 # Neutralize VPATH when `$srcdir' = `.'.
33683 # Shell code in configure.ac might set extrasub.
33684 # FIXME: do we really want to maintain this feature?
33685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33686 ac_sed_extra="$ac_vpsub
33687 $extrasub
33688 _ACEOF
33689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33690 :t
33691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33692 s|@configure_input@|$ac_sed_conf_input|;t t
33693 s&@top_builddir@&$ac_top_builddir_sub&;t t
33694 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33695 s&@srcdir@&$ac_srcdir&;t t
33696 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33697 s&@top_srcdir@&$ac_top_srcdir&;t t
33698 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33699 s&@builddir@&$ac_builddir&;t t
33700 s&@abs_builddir@&$ac_abs_builddir&;t t
33701 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33702 s&@INSTALL@&$ac_INSTALL&;t t
33703 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33704 $ac_datarootdir_hack
33705 "
33706 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33707 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33708
33709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33710 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33712 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33714 which seems to be undefined. Please make sure it is defined" >&5
33715 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33716 which seems to be undefined. Please make sure it is defined" >&2;}
33717
33718 rm -f "$ac_tmp/stdin"
33719 case $ac_file in
33720 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33721 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33722 esac \
33723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33724 ;;
33725 :H)
33726 #
33727 # CONFIG_HEADER
33728 #
33729 if test x"$ac_file" != x-; then
33730 {
33731 printf "%s\n" "/* $configure_input */" >&1 \
33732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33733 } >"$ac_tmp/config.h" \
33734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33735 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33737 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
33738 else
33739 rm -f "$ac_file"
33740 mv "$ac_tmp/config.h" "$ac_file" \
33741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33742 fi
33743 else
33744 printf "%s\n" "/* $configure_input */" >&1 \
33745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33746 || as_fn_error $? "could not create -" "$LINENO" 5
33747 fi
33748 ;;
33749
33750
33751 esac
33752
33753
33754 case $ac_file$ac_mode in
33755 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
33756
33757 esac
33758 done # for ac_tag
33759
33760
33761 as_fn_exit 0
33762 _ACEOF
33763 ac_clean_files=$ac_clean_files_save
33764
33765 test $ac_write_fail = 0 ||
33766 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33767
33768
33769 # configure is writing to config.log, and then calls config.status.
33770 # config.status does its own redirection, appending to config.log.
33771 # Unfortunately, on DOS this fails, as config.log is still kept open
33772 # by configure, so config.status won't be able to write to it; its
33773 # output is simply discarded. So we exec the FD to /dev/null,
33774 # effectively closing config.log, so it can be properly (re)opened and
33775 # appended to by config.status. When coming back to configure, we
33776 # need to make the FD available again.
33777 if test "$no_create" != yes; then
33778 ac_cs_success=:
33779 ac_config_status_args=
33780 test "$silent" = yes &&
33781 ac_config_status_args="$ac_config_status_args --quiet"
33782 exec 5>/dev/null
33783 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33784 exec 5>>config.log
33785 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33786 # would make configure fail if this is the last instruction.
33787 $ac_cs_success || as_fn_exit 1
33788 fi
33789 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33791 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33792 fi
33793
33794
33795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Modules/Setup.local" >&5
33796 printf "%s\n" "$as_me: creating Modules/Setup.local" >&6;}
33797 if test ! -f Modules/Setup.local
33798 then
33799 echo "# Edit this file for local setup changes" >Modules/Setup.local
33800 fi
33801
33802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5
33803 printf "%s\n" "$as_me: creating Makefile" >&6;}
33804 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
33805 -s Modules \
33806 Modules/Setup.local Modules/Setup.stdlib Modules/Setup.bootstrap $srcdir/Modules/Setup
33807 if test $? -ne 0; then
33808 as_fn_error $? "makesetup failed" "$LINENO" 5
33809 fi
33810
33811 mv config.c Modules
33812
33813 if test -z "$PKG_CONFIG"; then
33814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&5
33815 printf "%s\n" "$as_me: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&2;}
33816 fi
33817
33818 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
33819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
33820
33821 If you want a release build with all stable optimizations active (PGO, etc),
33822 please run ./configure --enable-optimizations
33823 " >&5
33824 printf "%s\n" "$as_me:
33825
33826 If you want a release build with all stable optimizations active (PGO, etc),
33827 please run ./configure --enable-optimizations
33828 " >&6;}
33829 fi
33830
33831 if test "x$PY_SUPPORT_TIER" = x0
33832 then :
33833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
33834
33835 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
33836 CPython core team, see https://peps.python.org/pep-0011/ for more information.
33837 " >&5
33838 printf "%s\n" "$as_me: WARNING:
33839
33840 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
33841 CPython core team, see https://peps.python.org/pep-0011/ for more information.
33842 " >&2;}
33843 fi
33844
33845 if test "$ac_cv_header_stdatomic_h" != "yes"; then
33846 { 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
33847 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;}
33848 fi
33849