• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for python 3.10.
4#
5# Report bugs to <https://bugs.python.org/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.python.org/ about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='python'
582PACKAGE_TARNAME='python'
583PACKAGE_VERSION='3.10'
584PACKAGE_STRING='python 3.10'
585PACKAGE_BUGREPORT='https://bugs.python.org/'
586PACKAGE_URL=''
587
588ac_unique_file="Include/object.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='LTLIBOBJS
626TEST_MODULES
627LIBRARY_DEPS
628STATIC_LIBPYTHON
629OPENSSL_RPATH
630OPENSSL_LDFLAGS
631OPENSSL_LIBS
632OPENSSL_INCLUDES
633ENSUREPIP
634SRCDIRS
635THREADHEADERS
636WHEEL_PKG_DIR
637LIBPL
638PY_ENABLE_SHARED
639PLATLIBDIR
640BINLIBDEST
641LIBPYTHON
642EXT_SUFFIX
643ALT_SOABI
644SOABI
645LIBC
646LIBM
647HAVE_GETHOSTBYNAME
648HAVE_GETHOSTBYNAME_R
649HAVE_GETHOSTBYNAME_R_3_ARG
650HAVE_GETHOSTBYNAME_R_5_ARG
651HAVE_GETHOSTBYNAME_R_6_ARG
652LIBOBJS
653TRUE
654MACHDEP_OBJS
655DYNLOADFILE
656DLINCLDIR
657DTRACE_OBJS
658DTRACE_HEADERS
659DFLAGS
660DTRACE
661TCLTK_LIBS
662TCLTK_INCLUDES
663LIBFFI_INCLUDEDIR
664PKG_CONFIG_LIBDIR
665PKG_CONFIG_PATH
666PKG_CONFIG
667TZPATH
668SHLIBS
669CFLAGSFORSHARED
670LINKFORSHARED
671CCSHARED
672BLDSHARED
673LDCXXSHARED
674LDSHARED
675SHLIB_SUFFIX
676LIBTOOL_CRUFT
677OTHER_LIBTOOL_OPT
678UNIVERSAL_ARCH_FLAGS
679LDFLAGS_NODIST
680CFLAGS_NODIST
681BASECFLAGS
682CFLAGS_ALIASING
683OPT
684LLVM_PROF_FOUND
685LLVM_PROFDATA
686LLVM_PROF_ERR
687LLVM_PROF_FILE
688LLVM_PROF_MERGER
689PGO_PROF_USE_FLAG
690PGO_PROF_GEN_FLAG
691LLVM_AR_FOUND
692LLVM_AR
693PROFILE_TASK
694DEF_MAKE_RULE
695DEF_MAKE_ALL_RULE
696ABIFLAGS
697LN
698MKDIR_P
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
702ac_ct_READELF
703READELF
704ARFLAGS
705ac_ct_AR
706AR
707GNULD
708EXPORTSFROM
709EXPORTSYMS
710LINKCC
711LDVERSION
712RUNSHARED
713INSTSONAME
714LDLIBRARYDIR
715PY3LIBRARY
716BLDLIBRARY
717DLLLIBRARY
718LDLIBRARY
719LIBRARY
720BUILDEXEEXT
721EGREP
722NO_AS_NEEDED
723MULTIARCH_CPPFLAGS
724PLATFORM_TRIPLET
725MULTIARCH
726ac_ct_CXX
727MAINCC
728CXX
729SED
730GREP
731CPP
732OBJEXT
733EXEEXT
734ac_ct_CC
735CPPFLAGS
736LDFLAGS
737CFLAGS
738CC
739EXPORT_MACOSX_DEPLOYMENT_TARGET
740CONFIGURE_MACOSX_DEPLOYMENT_TARGET
741_PYTHON_HOST_PLATFORM
742MACHDEP
743FRAMEWORKINSTALLAPPSPREFIX
744FRAMEWORKUNIXTOOLSPREFIX
745FRAMEWORKPYTHONW
746FRAMEWORKALTINSTALLLAST
747FRAMEWORKALTINSTALLFIRST
748FRAMEWORKINSTALLLAST
749FRAMEWORKINSTALLFIRST
750PYTHONFRAMEWORKINSTALLDIR
751PYTHONFRAMEWORKPREFIX
752PYTHONFRAMEWORKDIR
753PYTHONFRAMEWORKIDENTIFIER
754PYTHONFRAMEWORK
755LIPO_INTEL64_FLAGS
756LIPO_32BIT_FLAGS
757ARCH_RUN_32BIT
758UNIVERSALSDK
759CONFIG_ARGS
760SOVERSION
761VERSION
762PYTHON_FOR_BUILD
763PYTHON_FOR_REGEN
764host_os
765host_vendor
766host_cpu
767host
768build_os
769build_vendor
770build_cpu
771build
772HAS_GIT
773GITBRANCH
774GITTAG
775GITVERSION
776BASECPPFLAGS
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796runstatedir
797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_URL
809PACKAGE_BUGREPORT
810PACKAGE_STRING
811PACKAGE_VERSION
812PACKAGE_TARNAME
813PACKAGE_NAME
814PATH_SEPARATOR
815SHELL'
816ac_subst_files=''
817ac_user_opts='
818enable_option_checking
819enable_universalsdk
820with_universal_archs
821with_framework_name
822enable_framework
823with_cxx_main
824with_suffix
825enable_shared
826enable_profiling
827with_pydebug
828with_trace_refs
829with_assertions
830enable_optimizations
831with_lto
832with_address_sanitizer
833with_memory_sanitizer
834with_undefined_behavior_sanitizer
835with_hash_algorithm
836with_tzpath
837with_libs
838with_system_expat
839with_system_ffi
840with_system_libmpdec
841with_decimal_contextvar
842enable_loadable_sqlite_extensions
843with_tcltk_includes
844with_tcltk_libs
845with_dbmliborder
846enable_ipv6
847with_doc_strings
848with_pymalloc
849with_c_locale_coercion
850with_valgrind
851with_dtrace
852with_libm
853with_libc
854enable_big_digits
855with_platlibdir
856with_wheel_pkg_dir
857with_readline
858with_computed_gotos
859with_ensurepip
860with_openssl
861with_openssl_rpath
862with_ssl_default_suites
863with_builtin_hashlib_hashes
864with_experimental_isolated_subinterpreters
865with_static_libpython
866enable_test_modules
867'
868      ac_precious_vars='build_alias
869host_alias
870target_alias
871MACHDEP
872CC
873CFLAGS
874LDFLAGS
875LIBS
876CPPFLAGS
877CPP
878PROFILE_TASK
879PKG_CONFIG
880PKG_CONFIG_PATH
881PKG_CONFIG_LIBDIR'
882
883
884# Initialize some variables set by options.
885ac_init_help=
886ac_init_version=false
887ac_unrecognized_opts=
888ac_unrecognized_sep=
889# The variables have the same names as the options, with
890# dashes changed to underlines.
891cache_file=/dev/null
892exec_prefix=NONE
893no_create=
894no_recursion=
895prefix=NONE
896program_prefix=NONE
897program_suffix=NONE
898program_transform_name=s,x,x,
899silent=
900site=
901srcdir=
902verbose=
903x_includes=NONE
904x_libraries=NONE
905
906# Installation directory options.
907# These are left unexpanded so users can "make install exec_prefix=/foo"
908# and all the variables that are supposed to be based on exec_prefix
909# by default will actually change.
910# Use braces instead of parens because sh, perl, etc. also accept them.
911# (The list follows the same order as the GNU Coding Standards.)
912bindir='${exec_prefix}/bin'
913sbindir='${exec_prefix}/sbin'
914libexecdir='${exec_prefix}/libexec'
915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
917sysconfdir='${prefix}/etc'
918sharedstatedir='${prefix}/com'
919localstatedir='${prefix}/var'
920runstatedir='${localstatedir}/run'
921includedir='${prefix}/include'
922oldincludedir='/usr/include'
923docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924infodir='${datarootdir}/info'
925htmldir='${docdir}'
926dvidir='${docdir}'
927pdfdir='${docdir}'
928psdir='${docdir}'
929libdir='${exec_prefix}/lib'
930localedir='${datarootdir}/locale'
931mandir='${datarootdir}/man'
932
933ac_prev=
934ac_dashdash=
935for ac_option
936do
937  # If the previous option needs an argument, assign it.
938  if test -n "$ac_prev"; then
939    eval $ac_prev=\$ac_option
940    ac_prev=
941    continue
942  fi
943
944  case $ac_option in
945  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946  *=)   ac_optarg= ;;
947  *)    ac_optarg=yes ;;
948  esac
949
950  # Accept the important Cygnus configure options, so we can diagnose typos.
951
952  case $ac_dashdash$ac_option in
953  --)
954    ac_dashdash=yes ;;
955
956  -bindir | --bindir | --bindi | --bind | --bin | --bi)
957    ac_prev=bindir ;;
958  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959    bindir=$ac_optarg ;;
960
961  -build | --build | --buil | --bui | --bu)
962    ac_prev=build_alias ;;
963  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964    build_alias=$ac_optarg ;;
965
966  -cache-file | --cache-file | --cache-fil | --cache-fi \
967  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968    ac_prev=cache_file ;;
969  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971    cache_file=$ac_optarg ;;
972
973  --config-cache | -C)
974    cache_file=config.cache ;;
975
976  -datadir | --datadir | --datadi | --datad)
977    ac_prev=datadir ;;
978  -datadir=* | --datadir=* | --datadi=* | --datad=*)
979    datadir=$ac_optarg ;;
980
981  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982  | --dataroo | --dataro | --datar)
983    ac_prev=datarootdir ;;
984  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986    datarootdir=$ac_optarg ;;
987
988  -disable-* | --disable-*)
989    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990    # Reject names that are not valid shell variable names.
991    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992      as_fn_error $? "invalid feature name: $ac_useropt"
993    ac_useropt_orig=$ac_useropt
994    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995    case $ac_user_opts in
996      *"
997"enable_$ac_useropt"
998"*) ;;
999      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000	 ac_unrecognized_sep=', ';;
1001    esac
1002    eval enable_$ac_useropt=no ;;
1003
1004  -docdir | --docdir | --docdi | --doc | --do)
1005    ac_prev=docdir ;;
1006  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007    docdir=$ac_optarg ;;
1008
1009  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010    ac_prev=dvidir ;;
1011  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012    dvidir=$ac_optarg ;;
1013
1014  -enable-* | --enable-*)
1015    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018      as_fn_error $? "invalid feature name: $ac_useropt"
1019    ac_useropt_orig=$ac_useropt
1020    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021    case $ac_user_opts in
1022      *"
1023"enable_$ac_useropt"
1024"*) ;;
1025      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026	 ac_unrecognized_sep=', ';;
1027    esac
1028    eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032  | --exec | --exe | --ex)
1033    ac_prev=exec_prefix ;;
1034  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036  | --exec=* | --exe=* | --ex=*)
1037    exec_prefix=$ac_optarg ;;
1038
1039  -gas | --gas | --ga | --g)
1040    # Obsolete; use --with-gas.
1041    with_gas=yes ;;
1042
1043  -help | --help | --hel | --he | -h)
1044    ac_init_help=long ;;
1045  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046    ac_init_help=recursive ;;
1047  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048    ac_init_help=short ;;
1049
1050  -host | --host | --hos | --ho)
1051    ac_prev=host_alias ;;
1052  -host=* | --host=* | --hos=* | --ho=*)
1053    host_alias=$ac_optarg ;;
1054
1055  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056    ac_prev=htmldir ;;
1057  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058  | --ht=*)
1059    htmldir=$ac_optarg ;;
1060
1061  -includedir | --includedir | --includedi | --included | --include \
1062  | --includ | --inclu | --incl | --inc)
1063    ac_prev=includedir ;;
1064  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065  | --includ=* | --inclu=* | --incl=* | --inc=*)
1066    includedir=$ac_optarg ;;
1067
1068  -infodir | --infodir | --infodi | --infod | --info | --inf)
1069    ac_prev=infodir ;;
1070  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071    infodir=$ac_optarg ;;
1072
1073  -libdir | --libdir | --libdi | --libd)
1074    ac_prev=libdir ;;
1075  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076    libdir=$ac_optarg ;;
1077
1078  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079  | --libexe | --libex | --libe)
1080    ac_prev=libexecdir ;;
1081  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082  | --libexe=* | --libex=* | --libe=*)
1083    libexecdir=$ac_optarg ;;
1084
1085  -localedir | --localedir | --localedi | --localed | --locale)
1086    ac_prev=localedir ;;
1087  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088    localedir=$ac_optarg ;;
1089
1090  -localstatedir | --localstatedir | --localstatedi | --localstated \
1091  | --localstate | --localstat | --localsta | --localst | --locals)
1092    ac_prev=localstatedir ;;
1093  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095    localstatedir=$ac_optarg ;;
1096
1097  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098    ac_prev=mandir ;;
1099  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100    mandir=$ac_optarg ;;
1101
1102  -nfp | --nfp | --nf)
1103    # Obsolete; use --without-fp.
1104    with_fp=no ;;
1105
1106  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107  | --no-cr | --no-c | -n)
1108    no_create=yes ;;
1109
1110  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112    no_recursion=yes ;;
1113
1114  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116  | --oldin | --oldi | --old | --ol | --o)
1117    ac_prev=oldincludedir ;;
1118  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121    oldincludedir=$ac_optarg ;;
1122
1123  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124    ac_prev=prefix ;;
1125  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126    prefix=$ac_optarg ;;
1127
1128  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129  | --program-pre | --program-pr | --program-p)
1130    ac_prev=program_prefix ;;
1131  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133    program_prefix=$ac_optarg ;;
1134
1135  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136  | --program-suf | --program-su | --program-s)
1137    ac_prev=program_suffix ;;
1138  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140    program_suffix=$ac_optarg ;;
1141
1142  -program-transform-name | --program-transform-name \
1143  | --program-transform-nam | --program-transform-na \
1144  | --program-transform-n | --program-transform- \
1145  | --program-transform | --program-transfor \
1146  | --program-transfo | --program-transf \
1147  | --program-trans | --program-tran \
1148  | --progr-tra | --program-tr | --program-t)
1149    ac_prev=program_transform_name ;;
1150  -program-transform-name=* | --program-transform-name=* \
1151  | --program-transform-nam=* | --program-transform-na=* \
1152  | --program-transform-n=* | --program-transform-=* \
1153  | --program-transform=* | --program-transfor=* \
1154  | --program-transfo=* | --program-transf=* \
1155  | --program-trans=* | --program-tran=* \
1156  | --progr-tra=* | --program-tr=* | --program-t=*)
1157    program_transform_name=$ac_optarg ;;
1158
1159  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160    ac_prev=pdfdir ;;
1161  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162    pdfdir=$ac_optarg ;;
1163
1164  -psdir | --psdir | --psdi | --psd | --ps)
1165    ac_prev=psdir ;;
1166  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167    psdir=$ac_optarg ;;
1168
1169  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170  | -silent | --silent | --silen | --sile | --sil)
1171    silent=yes ;;
1172
1173  -runstatedir | --runstatedir | --runstatedi | --runstated \
1174  | --runstate | --runstat | --runsta | --runst | --runs \
1175  | --run | --ru | --r)
1176    ac_prev=runstatedir ;;
1177  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1178  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1179  | --run=* | --ru=* | --r=*)
1180    runstatedir=$ac_optarg ;;
1181
1182  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183    ac_prev=sbindir ;;
1184  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185  | --sbi=* | --sb=*)
1186    sbindir=$ac_optarg ;;
1187
1188  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190  | --sharedst | --shareds | --shared | --share | --shar \
1191  | --sha | --sh)
1192    ac_prev=sharedstatedir ;;
1193  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196  | --sha=* | --sh=*)
1197    sharedstatedir=$ac_optarg ;;
1198
1199  -site | --site | --sit)
1200    ac_prev=site ;;
1201  -site=* | --site=* | --sit=*)
1202    site=$ac_optarg ;;
1203
1204  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205    ac_prev=srcdir ;;
1206  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207    srcdir=$ac_optarg ;;
1208
1209  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210  | --syscon | --sysco | --sysc | --sys | --sy)
1211    ac_prev=sysconfdir ;;
1212  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214    sysconfdir=$ac_optarg ;;
1215
1216  -target | --target | --targe | --targ | --tar | --ta | --t)
1217    ac_prev=target_alias ;;
1218  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219    target_alias=$ac_optarg ;;
1220
1221  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222    verbose=yes ;;
1223
1224  -version | --version | --versio | --versi | --vers | -V)
1225    ac_init_version=: ;;
1226
1227  -with-* | --with-*)
1228    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231      as_fn_error $? "invalid package name: $ac_useropt"
1232    ac_useropt_orig=$ac_useropt
1233    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234    case $ac_user_opts in
1235      *"
1236"with_$ac_useropt"
1237"*) ;;
1238      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239	 ac_unrecognized_sep=', ';;
1240    esac
1241    eval with_$ac_useropt=\$ac_optarg ;;
1242
1243  -without-* | --without-*)
1244    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245    # Reject names that are not valid shell variable names.
1246    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247      as_fn_error $? "invalid package name: $ac_useropt"
1248    ac_useropt_orig=$ac_useropt
1249    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250    case $ac_user_opts in
1251      *"
1252"with_$ac_useropt"
1253"*) ;;
1254      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255	 ac_unrecognized_sep=', ';;
1256    esac
1257    eval with_$ac_useropt=no ;;
1258
1259  --x)
1260    # Obsolete; use --with-x.
1261    with_x=yes ;;
1262
1263  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264  | --x-incl | --x-inc | --x-in | --x-i)
1265    ac_prev=x_includes ;;
1266  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268    x_includes=$ac_optarg ;;
1269
1270  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272    ac_prev=x_libraries ;;
1273  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275    x_libraries=$ac_optarg ;;
1276
1277  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278Try \`$0 --help' for more information"
1279    ;;
1280
1281  *=*)
1282    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283    # Reject names that are not valid shell variable names.
1284    case $ac_envvar in #(
1285      '' | [0-9]* | *[!_$as_cr_alnum]* )
1286      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287    esac
1288    eval $ac_envvar=\$ac_optarg
1289    export $ac_envvar ;;
1290
1291  *)
1292    # FIXME: should be removed in autoconf 3.0.
1293    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297    ;;
1298
1299  esac
1300done
1301
1302if test -n "$ac_prev"; then
1303  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304  as_fn_error $? "missing argument to $ac_option"
1305fi
1306
1307if test -n "$ac_unrecognized_opts"; then
1308  case $enable_option_checking in
1309    no) ;;
1310    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312  esac
1313fi
1314
1315# Check all directory arguments for consistency.
1316for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317		datadir sysconfdir sharedstatedir localstatedir includedir \
1318		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319		libdir localedir mandir runstatedir
1320do
1321  eval ac_val=\$$ac_var
1322  # Remove trailing slashes.
1323  case $ac_val in
1324    */ )
1325      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326      eval $ac_var=\$ac_val;;
1327  esac
1328  # Be sure to have absolute directory names.
1329  case $ac_val in
1330    [\\/$]* | ?:[\\/]* )  continue;;
1331    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332  esac
1333  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334done
1335
1336# There might be people who depend on the old broken behavior: `$host'
1337# used to hold the argument of --host etc.
1338# FIXME: To remove some day.
1339build=$build_alias
1340host=$host_alias
1341target=$target_alias
1342
1343# FIXME: To remove some day.
1344if test "x$host_alias" != x; then
1345  if test "x$build_alias" = x; then
1346    cross_compiling=maybe
1347  elif test "x$build_alias" != "x$host_alias"; then
1348    cross_compiling=yes
1349  fi
1350fi
1351
1352ac_tool_prefix=
1353test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355test "$silent" = yes && exec 6>/dev/null
1356
1357
1358ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359ac_ls_di=`ls -di .` &&
1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361  as_fn_error $? "working directory cannot be determined"
1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363  as_fn_error $? "pwd does not report name of working directory"
1364
1365
1366# Find the source files, if location was not specified.
1367if test -z "$srcdir"; then
1368  ac_srcdir_defaulted=yes
1369  # Try the directory containing this script, then the parent directory.
1370  ac_confdir=`$as_dirname -- "$as_myself" ||
1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372	 X"$as_myself" : 'X\(//\)[^/]' \| \
1373	 X"$as_myself" : 'X\(//\)$' \| \
1374	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375$as_echo X"$as_myself" |
1376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377	    s//\1/
1378	    q
1379	  }
1380	  /^X\(\/\/\)[^/].*/{
1381	    s//\1/
1382	    q
1383	  }
1384	  /^X\(\/\/\)$/{
1385	    s//\1/
1386	    q
1387	  }
1388	  /^X\(\/\).*/{
1389	    s//\1/
1390	    q
1391	  }
1392	  s/.*/./; q'`
1393  srcdir=$ac_confdir
1394  if test ! -r "$srcdir/$ac_unique_file"; then
1395    srcdir=..
1396  fi
1397else
1398  ac_srcdir_defaulted=no
1399fi
1400if test ! -r "$srcdir/$ac_unique_file"; then
1401  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403fi
1404ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405ac_abs_confdir=`(
1406	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407	pwd)`
1408# When building in place, set srcdir=.
1409if test "$ac_abs_confdir" = "$ac_pwd"; then
1410  srcdir=.
1411fi
1412# Remove unnecessary trailing slashes from srcdir.
1413# Double slashes in file names in object file debugging info
1414# mess up M-x gdb in Emacs.
1415case $srcdir in
1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417esac
1418for ac_var in $ac_precious_vars; do
1419  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420  eval ac_env_${ac_var}_value=\$${ac_var}
1421  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429  # Omit some internal or obsolete options to make the list less imposing.
1430  # This message is too long to be a string in the A/UX 3.1 sh.
1431  cat <<_ACEOF
1432\`configure' configures python 3.10 to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442  -h, --help              display this help and exit
1443      --help=short        display options specific to this package
1444      --help=recursive    display the short help of all the included packages
1445  -V, --version           display version information and exit
1446  -q, --quiet, --silent   do not print \`checking ...' messages
1447      --cache-file=FILE   cache test results in FILE [disabled]
1448  -C, --config-cache      alias for \`--cache-file=config.cache'
1449  -n, --no-create         do not create output files
1450      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452Installation directories:
1453  --prefix=PREFIX         install architecture-independent files in PREFIX
1454                          [$ac_default_prefix]
1455  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                          [PREFIX]
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
1466  --bindir=DIR            user executables [EPREFIX/bin]
1467  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1468  --libexecdir=DIR        program executables [EPREFIX/libexec]
1469  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1470  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1471  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1472  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1473  --libdir=DIR            object code libraries [EPREFIX/lib]
1474  --includedir=DIR        C header files [PREFIX/include]
1475  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1476  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1477  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1478  --infodir=DIR           info documentation [DATAROOTDIR/info]
1479  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1480  --mandir=DIR            man documentation [DATAROOTDIR/man]
1481  --docdir=DIR            documentation root [DATAROOTDIR/doc/python]
1482  --htmldir=DIR           html documentation [DOCDIR]
1483  --dvidir=DIR            dvi documentation [DOCDIR]
1484  --pdfdir=DIR            pdf documentation [DOCDIR]
1485  --psdir=DIR             ps documentation [DOCDIR]
1486_ACEOF
1487
1488  cat <<\_ACEOF
1489
1490System types:
1491  --build=BUILD     configure for building on BUILD [guessed]
1492  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493_ACEOF
1494fi
1495
1496if test -n "$ac_init_help"; then
1497  case $ac_init_help in
1498     short | recursive ) echo "Configuration of python 3.10:";;
1499   esac
1500  cat <<\_ACEOF
1501
1502Optional Features:
1503  --disable-option-checking  ignore unrecognized --enable/--with options
1504  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1506  --enable-universalsdk[=SDKDIR]
1507                          create a universal binary build. SDKDIR specifies
1508                          which macOS SDK should be used to perform the build,
1509                          see Mac/README.rst. (default is no)
1510  --enable-framework[=INSTALLDIR]
1511                          create a Python.framework rather than a traditional
1512                          Unix install. optional INSTALLDIR specifies the
1513                          installation path. see Mac/README.rst (default is
1514                          no)
1515  --enable-shared         enable building a shared Python library (default is
1516                          no)
1517  --enable-profiling      enable C-level code profiling with gprof (default is
1518                          no)
1519  --enable-optimizations  enable expensive, stable optimizations (PGO, etc.)
1520                          (default is no)
1521  --enable-loadable-sqlite-extensions
1522                          support loadable extensions in _sqlite module, see
1523                          Doc/library/sqlite3.rst (default is no)
1524  --enable-ipv6           enable ipv6 (with ipv4) support, see
1525                          Doc/library/socket.rst (default is yes if supported)
1526  --enable-big-digits[=15|30]
1527                          use big digits (30 or 15 bits) for Python longs
1528                          (default is system-dependent)]
1529  --disable-test-modules  don't build nor install test modules
1530
1531Optional Packages:
1532  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1533  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1534  --with-universal-archs=ARCH
1535                          specify the kind of macOS universal binary that
1536                          should be created. This option is only valid when
1537                          --enable-universalsdk is set; options are:
1538                          ("universal2", "intel-64", "intel-32", "intel",
1539                          "32-bit", "64-bit", "3-way", or "all") see
1540                          Mac/README.rst
1541  --with-framework-name=FRAMEWORK
1542                          specify the name for the python framework on macOS
1543                          only valid when --enable-framework is set. see
1544                          Mac/README.rst (default is 'Python')
1545  --with-cxx-main[=COMPILER]
1546                          compile main() and link Python executable with C++
1547                          compiler specified in COMPILER (default is $CXX)
1548  --with-suffix=SUFFIX    set executable suffix to SUFFIX (default is '.exe')
1549  --with-pydebug          build with Py_DEBUG defined (default is no)
1550  --with-trace-refs       enable tracing references for debugging purpose
1551                          (default is no)
1552  --with-assertions       build with C assertions enabled (default is no)
1553  --with-lto              enable Link-Time-Optimization in any build (default
1554                          is no)
1555  --with-address-sanitizer
1556                          enable AddressSanitizer memory error detector,
1557                          'asan' (default is no)
1558  --with-memory-sanitizer enable MemorySanitizer allocation error detector,
1559                          'msan' (default is no)
1560  --with-undefined-behavior-sanitizer
1561                          enable UndefinedBehaviorSanitizer undefined
1562                          behaviour detector, 'ubsan' (default is no)
1563  --with-hash-algorithm=[fnv|siphash24]
1564                          select hash algorithm for use in Python/pyhash.c
1565                          (default is SipHash24)
1566  --with-tzpath=<list of absolute paths separated by pathsep>
1567                           Select the default time zone search path for zoneinfo.TZPATH
1568
1569  --with-libs='lib1 ...'  link against additional libs (default is no)
1570  --with-system-expat     build pyexpat module using an installed expat
1571                          library, see Doc/library/pyexpat.rst (default is no)
1572  --with-system-ffi       build _ctypes module using an installed ffi library,
1573                          see Doc/library/ctypes.rst (default is
1574                          system-dependent)
1575  --with-system-libmpdec  build _decimal module using an installed libmpdec
1576                          library, see Doc/library/decimal.rst (default is no)
1577  --with-decimal-contextvar
1578                          build _decimal module using a coroutine-local rather
1579                          than a thread-local context (default is yes)
1580  --with-tcltk-includes='-I...'
1581                          override search for Tcl and Tk include files
1582  --with-tcltk-libs='-L...'
1583                          override search for Tcl and Tk libs
1584  --with-dbmliborder=db1:db2:...
1585                          override order to check db backends for dbm; a valid
1586                          value is a colon separated string with the backend
1587                          names `ndbm', `gdbm' and `bdb'.
1588  --with-doc-strings      enable documentation strings (default is yes)
1589  --with-pymalloc         enable specialized mallocs (default is yes)
1590  --with-c-locale-coercion
1591                          enable C locale coercion to a UTF-8 based locale
1592                          (default is yes)
1593  --with-valgrind         enable Valgrind support (default is no)
1594  --with-dtrace           enable DTrace support (default is no)
1595  --with-libm=STRING      override libm math library to STRING (default is
1596                          system-dependent)
1597  --with-libc=STRING      override libc C library to STRING (default is
1598                          system-dependent)
1599  --with-platlibdir=DIRNAME
1600                          Python library directory name (default is "lib")
1601  --with-wheel-pkg-dir=PATH
1602                          Directory of wheel packages used by ensurepip
1603                          (default: none)
1604  --with(out)-readline[=editline]
1605                          use Editline for backend or disable readline module
1606  --with-computed-gotos   enable computed gotos in evaluation loop (enabled by
1607                          default on supported compilers)
1608  --with-ensurepip[=install|upgrade|no]
1609                          "install" or "upgrade" using bundled pip (default is
1610                          upgrade)
1611  --with-openssl=DIR      root of the OpenSSL directory
1612  --with-openssl-rpath=[DIR|auto|no]
1613                          Set runtime library directory (rpath) for OpenSSL
1614                          libraries, no (default): don't set rpath, auto:
1615                          auto-detect rpath from --with-openssl and
1616                          pkg-config, DIR: set an explicit rpath
1617  --with-ssl-default-suites=[python|openssl|STRING]
1618                          override default cipher suites string, python: use
1619                          Python's preferred selection (default), openssl:
1620                          leave OpenSSL's defaults untouched, STRING: use a
1621                          custom string, python and STRING also set TLS 1.2 as
1622                          minimum TLS version
1623  --with-builtin-hashlib-hashes=md5,sha1,sha256,sha512,sha3,blake2
1624                          builtin hash modules, md5, sha1, sha256, sha512,
1625                          sha3 (with shake), blake2
1626  --with-experimental-isolated-subinterpreters
1627                          better isolate subinterpreters, experimental build
1628                          mode (default is no)
1629  --without-static-libpython
1630                          do not build libpythonMAJOR.MINOR.a and do not
1631                          install python.o (default is yes)
1632
1633Some influential environment variables:
1634  MACHDEP     name for machine-dependent library files
1635  CC          C compiler command
1636  CFLAGS      C compiler flags
1637  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1638              nonstandard directory <lib dir>
1639  LIBS        libraries to pass to the linker, e.g. -l<library>
1640  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1641              you have headers in a nonstandard directory <include dir>
1642  CPP         C preprocessor
1643  PROFILE_TASK
1644              Python args for PGO generation task
1645  PKG_CONFIG  path to pkg-config utility
1646  PKG_CONFIG_PATH
1647              directories to add to pkg-config's search path
1648  PKG_CONFIG_LIBDIR
1649              path overriding pkg-config's built-in search path
1650
1651Use these variables to override the choices made by `configure' or to help
1652it to find libraries and programs with nonstandard names/locations.
1653
1654Report bugs to <https://bugs.python.org/>.
1655_ACEOF
1656ac_status=$?
1657fi
1658
1659if test "$ac_init_help" = "recursive"; then
1660  # If there are subdirs, report their specific --help.
1661  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662    test -d "$ac_dir" ||
1663      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1664      continue
1665    ac_builddir=.
1666
1667case "$ac_dir" in
1668.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669*)
1670  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671  # A ".." for each directory in $ac_dir_suffix.
1672  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673  case $ac_top_builddir_sub in
1674  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676  esac ;;
1677esac
1678ac_abs_top_builddir=$ac_pwd
1679ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680# for backward compatibility:
1681ac_top_builddir=$ac_top_build_prefix
1682
1683case $srcdir in
1684  .)  # We are building in place.
1685    ac_srcdir=.
1686    ac_top_srcdir=$ac_top_builddir_sub
1687    ac_abs_top_srcdir=$ac_pwd ;;
1688  [\\/]* | ?:[\\/]* )  # Absolute name.
1689    ac_srcdir=$srcdir$ac_dir_suffix;
1690    ac_top_srcdir=$srcdir
1691    ac_abs_top_srcdir=$srcdir ;;
1692  *) # Relative name.
1693    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694    ac_top_srcdir=$ac_top_build_prefix$srcdir
1695    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696esac
1697ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698
1699    cd "$ac_dir" || { ac_status=$?; continue; }
1700    # Check for guested configure.
1701    if test -f "$ac_srcdir/configure.gnu"; then
1702      echo &&
1703      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704    elif test -f "$ac_srcdir/configure"; then
1705      echo &&
1706      $SHELL "$ac_srcdir/configure" --help=recursive
1707    else
1708      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709    fi || ac_status=$?
1710    cd "$ac_pwd" || { ac_status=$?; break; }
1711  done
1712fi
1713
1714test -n "$ac_init_help" && exit $ac_status
1715if $ac_init_version; then
1716  cat <<\_ACEOF
1717python configure 3.10
1718generated by GNU Autoconf 2.69
1719
1720Copyright (C) 2012 Free Software Foundation, Inc.
1721This configure script is free software; the Free Software Foundation
1722gives unlimited permission to copy, distribute and modify it.
1723_ACEOF
1724  exit
1725fi
1726
1727## ------------------------ ##
1728## Autoconf initialization. ##
1729## ------------------------ ##
1730
1731# ac_fn_c_try_compile LINENO
1732# --------------------------
1733# Try to compile conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_compile ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  rm -f conftest.$ac_objext
1738  if { { ac_try="$ac_compile"
1739case "(($ac_try" in
1740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741  *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745  (eval "$ac_compile") 2>conftest.err
1746  ac_status=$?
1747  if test -s conftest.err; then
1748    grep -v '^ *+' conftest.err >conftest.er1
1749    cat conftest.er1 >&5
1750    mv -f conftest.er1 conftest.err
1751  fi
1752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753  test $ac_status = 0; } && {
1754	 test -z "$ac_c_werror_flag" ||
1755	 test ! -s conftest.err
1756       } && test -s conftest.$ac_objext; then :
1757  ac_retval=0
1758else
1759  $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762	ac_retval=1
1763fi
1764  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765  as_fn_set_status $ac_retval
1766
1767} # ac_fn_c_try_compile
1768
1769# ac_fn_c_try_cpp LINENO
1770# ----------------------
1771# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_cpp ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  if { { ac_try="$ac_cpp conftest.$ac_ext"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1783  ac_status=$?
1784  if test -s conftest.err; then
1785    grep -v '^ *+' conftest.err >conftest.er1
1786    cat conftest.er1 >&5
1787    mv -f conftest.er1 conftest.err
1788  fi
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } > conftest.i && {
1791	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1792	 test ! -s conftest.err
1793       }; then :
1794  ac_retval=0
1795else
1796  $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799    ac_retval=1
1800fi
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802  as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_cpp
1805
1806# ac_fn_c_try_link LINENO
1807# -----------------------
1808# Try to link conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_c_try_link ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  rm -f conftest.$ac_objext conftest$ac_exeext
1813  if { { ac_try="$ac_link"
1814case "(($ac_try" in
1815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816  *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820  (eval "$ac_link") 2>conftest.err
1821  ac_status=$?
1822  if test -s conftest.err; then
1823    grep -v '^ *+' conftest.err >conftest.er1
1824    cat conftest.er1 >&5
1825    mv -f conftest.er1 conftest.err
1826  fi
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; } && {
1829	 test -z "$ac_c_werror_flag" ||
1830	 test ! -s conftest.err
1831       } && test -s conftest$ac_exeext && {
1832	 test "$cross_compiling" = yes ||
1833	 test -x conftest$ac_exeext
1834       }; then :
1835  ac_retval=0
1836else
1837  $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840	ac_retval=1
1841fi
1842  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844  # interfere with the next link command; also delete a directory that is
1845  # left behind by Apple's compiler.  We do this before executing the actions.
1846  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848  as_fn_set_status $ac_retval
1849
1850} # ac_fn_c_try_link
1851
1852# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1853# -------------------------------------------------------
1854# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1855# the include files in INCLUDES and setting the cache variable VAR
1856# accordingly.
1857ac_fn_c_check_header_mongrel ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  if eval \${$3+:} false; then :
1861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if eval \${$3+:} false; then :
1864  $as_echo_n "(cached) " >&6
1865fi
1866eval ac_res=\$$3
1867	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868$as_echo "$ac_res" >&6; }
1869else
1870  # Is the header compilable?
1871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1872$as_echo_n "checking $2 usability... " >&6; }
1873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h.  */
1875$4
1876#include <$2>
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879  ac_header_compiler=yes
1880else
1881  ac_header_compiler=no
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1885$as_echo "$ac_header_compiler" >&6; }
1886
1887# Is the header present?
1888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1889$as_echo_n "checking $2 presence... " >&6; }
1890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h.  */
1892#include <$2>
1893_ACEOF
1894if ac_fn_c_try_cpp "$LINENO"; then :
1895  ac_header_preproc=yes
1896else
1897  ac_header_preproc=no
1898fi
1899rm -f conftest.err conftest.i conftest.$ac_ext
1900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1901$as_echo "$ac_header_preproc" >&6; }
1902
1903# So?  What about this header?
1904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1905  yes:no: )
1906    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1907$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1908    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910    ;;
1911  no:yes:* )
1912    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1913$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1914    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1915$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1916    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1917$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1918    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1919$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1921$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1922( $as_echo "## --------------------------------------- ##
1923## Report this to https://bugs.python.org/ ##
1924## --------------------------------------- ##"
1925     ) | sed "s/^/$as_me: WARNING:     /" >&2
1926    ;;
1927esac
1928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if eval \${$3+:} false; then :
1931  $as_echo_n "(cached) " >&6
1932else
1933  eval "$3=\$ac_header_compiler"
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938fi
1939  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940
1941} # ac_fn_c_check_header_mongrel
1942
1943# ac_fn_c_try_run LINENO
1944# ----------------------
1945# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1946# that executables *can* be run.
1947ac_fn_c_try_run ()
1948{
1949  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950  if { { ac_try="$ac_link"
1951case "(($ac_try" in
1952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953  *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957  (eval "$ac_link") 2>&5
1958  ac_status=$?
1959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961  { { case "(($ac_try" in
1962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963  *) ac_try_echo=$ac_try;;
1964esac
1965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966$as_echo "$ac_try_echo"; } >&5
1967  (eval "$ac_try") 2>&5
1968  ac_status=$?
1969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970  test $ac_status = 0; }; }; then :
1971  ac_retval=0
1972else
1973  $as_echo "$as_me: program exited with status $ac_status" >&5
1974       $as_echo "$as_me: failed program was:" >&5
1975sed 's/^/| /' conftest.$ac_ext >&5
1976
1977       ac_retval=$ac_status
1978fi
1979  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981  as_fn_set_status $ac_retval
1982
1983} # ac_fn_c_try_run
1984
1985# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986# -------------------------------------------------------
1987# Tests whether HEADER exists and can be compiled using the include files in
1988# INCLUDES, setting the cache variable VAR accordingly.
1989ac_fn_c_check_header_compile ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993$as_echo_n "checking for $2... " >&6; }
1994if eval \${$3+:} false; then :
1995  $as_echo_n "(cached) " >&6
1996else
1997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h.  */
1999$4
2000#include <$2>
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003  eval "$3=yes"
2004else
2005  eval "$3=no"
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014} # ac_fn_c_check_header_compile
2015
2016# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2017# -------------------------------------------
2018# Tests whether TYPE exists after having included INCLUDES, setting cache
2019# variable VAR accordingly.
2020ac_fn_c_check_type ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024$as_echo_n "checking for $2... " >&6; }
2025if eval \${$3+:} false; then :
2026  $as_echo_n "(cached) " >&6
2027else
2028  eval "$3=no"
2029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h.  */
2031$4
2032int
2033main ()
2034{
2035if (sizeof ($2))
2036	 return 0;
2037  ;
2038  return 0;
2039}
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"; then :
2042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043/* end confdefs.h.  */
2044$4
2045int
2046main ()
2047{
2048if (sizeof (($2)))
2049	    return 0;
2050  ;
2051  return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055
2056else
2057  eval "$3=yes"
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062fi
2063eval ac_res=\$$3
2064	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067
2068} # ac_fn_c_check_type
2069
2070# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2071# --------------------------------------------
2072# Tries to find the compile-time value of EXPR in a program that includes
2073# INCLUDES, setting VAR accordingly. Returns whether the value could be
2074# computed
2075ac_fn_c_compute_int ()
2076{
2077  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078  if test "$cross_compiling" = yes; then
2079    # Depending upon the size, compute the lo and hi bounds.
2080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083int
2084main ()
2085{
2086static int test_array [1 - 2 * !(($2) >= 0)];
2087test_array [0] = 0;
2088return test_array [0];
2089
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095  ac_lo=0 ac_mid=0
2096  while :; do
2097    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h.  */
2099$4
2100int
2101main ()
2102{
2103static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104test_array [0] = 0;
2105return test_array [0];
2106
2107  ;
2108  return 0;
2109}
2110_ACEOF
2111if ac_fn_c_try_compile "$LINENO"; then :
2112  ac_hi=$ac_mid; break
2113else
2114  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115			if test $ac_lo -le $ac_mid; then
2116			  ac_lo= ac_hi=
2117			  break
2118			fi
2119			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122  done
2123else
2124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h.  */
2126$4
2127int
2128main ()
2129{
2130static int test_array [1 - 2 * !(($2) < 0)];
2131test_array [0] = 0;
2132return test_array [0];
2133
2134  ;
2135  return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_compile "$LINENO"; then :
2139  ac_hi=-1 ac_mid=-1
2140  while :; do
2141    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h.  */
2143$4
2144int
2145main ()
2146{
2147static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2148test_array [0] = 0;
2149return test_array [0];
2150
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
2156  ac_lo=$ac_mid; break
2157else
2158  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2159			if test $ac_mid -le $ac_hi; then
2160			  ac_lo= ac_hi=
2161			  break
2162			fi
2163			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2164fi
2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166  done
2167else
2168  ac_lo= ac_hi=
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171fi
2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173# Binary search between lo and hi bounds.
2174while test "x$ac_lo" != "x$ac_hi"; do
2175  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h.  */
2178$4
2179int
2180main ()
2181{
2182static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183test_array [0] = 0;
2184return test_array [0];
2185
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191  ac_hi=$ac_mid
2192else
2193  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196done
2197case $ac_lo in #((
2198?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199'') ac_retval=1 ;;
2200esac
2201  else
2202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h.  */
2204$4
2205static long int longval () { return $2; }
2206static unsigned long int ulongval () { return $2; }
2207#include <stdio.h>
2208#include <stdlib.h>
2209int
2210main ()
2211{
2212
2213  FILE *f = fopen ("conftest.val", "w");
2214  if (! f)
2215    return 1;
2216  if (($2) < 0)
2217    {
2218      long int i = longval ();
2219      if (i != ($2))
2220	return 1;
2221      fprintf (f, "%ld", i);
2222    }
2223  else
2224    {
2225      unsigned long int i = ulongval ();
2226      if (i != ($2))
2227	return 1;
2228      fprintf (f, "%lu", i);
2229    }
2230  /* Do not output a trailing newline, as this causes \r\n confusion
2231     on some platforms.  */
2232  return ferror (f) || fclose (f) != 0;
2233
2234  ;
2235  return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_run "$LINENO"; then :
2239  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240else
2241  ac_retval=1
2242fi
2243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244  conftest.$ac_objext conftest.beam conftest.$ac_ext
2245rm -f conftest.val
2246
2247  fi
2248  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249  as_fn_set_status $ac_retval
2250
2251} # ac_fn_c_compute_int
2252
2253# ac_fn_c_check_func LINENO FUNC VAR
2254# ----------------------------------
2255# Tests whether FUNC exists, setting the cache variable VAR accordingly
2256ac_fn_c_check_func ()
2257{
2258  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260$as_echo_n "checking for $2... " >&6; }
2261if eval \${$3+:} false; then :
2262  $as_echo_n "(cached) " >&6
2263else
2264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265/* end confdefs.h.  */
2266/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2267   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2268#define $2 innocuous_$2
2269
2270/* System header to define __stub macros and hopefully few prototypes,
2271    which can conflict with char $2 (); below.
2272    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2273    <limits.h> exists even on freestanding compilers.  */
2274
2275#ifdef __STDC__
2276# include <limits.h>
2277#else
2278# include <assert.h>
2279#endif
2280
2281#undef $2
2282
2283/* Override any GCC internal prototype to avoid an error.
2284   Use char because int might match the return type of a GCC
2285   builtin and then its argument prototype would still apply.  */
2286#ifdef __cplusplus
2287extern "C"
2288#endif
2289char $2 ();
2290/* The GNU C library defines this for functions which it implements
2291    to always fail with ENOSYS.  Some functions are actually named
2292    something starting with __ and the normal name is an alias.  */
2293#if defined __stub_$2 || defined __stub___$2
2294choke me
2295#endif
2296
2297int
2298main ()
2299{
2300return $2 ();
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_link "$LINENO"; then :
2306  eval "$3=yes"
2307else
2308  eval "$3=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext \
2311    conftest$ac_exeext conftest.$ac_ext
2312fi
2313eval ac_res=\$$3
2314	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315$as_echo "$ac_res" >&6; }
2316  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317
2318} # ac_fn_c_check_func
2319
2320# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2321# ---------------------------------------------
2322# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2323# accordingly.
2324ac_fn_c_check_decl ()
2325{
2326  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327  as_decl_name=`echo $2|sed 's/ *(.*//'`
2328  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2330$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2331if eval \${$3+:} false; then :
2332  $as_echo_n "(cached) " >&6
2333else
2334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335/* end confdefs.h.  */
2336$4
2337int
2338main ()
2339{
2340#ifndef $as_decl_name
2341#ifdef __cplusplus
2342  (void) $as_decl_use;
2343#else
2344  (void) $as_decl_name;
2345#endif
2346#endif
2347
2348  ;
2349  return 0;
2350}
2351_ACEOF
2352if ac_fn_c_try_compile "$LINENO"; then :
2353  eval "$3=yes"
2354else
2355  eval "$3=no"
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358fi
2359eval ac_res=\$$3
2360	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361$as_echo "$ac_res" >&6; }
2362  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363
2364} # ac_fn_c_check_decl
2365
2366# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2367# ----------------------------------------------------
2368# Tries to find if the field MEMBER exists in type AGGR, after including
2369# INCLUDES, setting cache variable VAR accordingly.
2370ac_fn_c_check_member ()
2371{
2372  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2374$as_echo_n "checking for $2.$3... " >&6; }
2375if eval \${$4+:} false; then :
2376  $as_echo_n "(cached) " >&6
2377else
2378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h.  */
2380$5
2381int
2382main ()
2383{
2384static $2 ac_aggr;
2385if (ac_aggr.$3)
2386return 0;
2387  ;
2388  return 0;
2389}
2390_ACEOF
2391if ac_fn_c_try_compile "$LINENO"; then :
2392  eval "$4=yes"
2393else
2394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395/* end confdefs.h.  */
2396$5
2397int
2398main ()
2399{
2400static $2 ac_aggr;
2401if (sizeof ac_aggr.$3)
2402return 0;
2403  ;
2404  return 0;
2405}
2406_ACEOF
2407if ac_fn_c_try_compile "$LINENO"; then :
2408  eval "$4=yes"
2409else
2410  eval "$4=no"
2411fi
2412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413fi
2414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415fi
2416eval ac_res=\$$4
2417	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418$as_echo "$ac_res" >&6; }
2419  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420
2421} # ac_fn_c_check_member
2422cat >config.log <<_ACEOF
2423This file contains any messages produced by compilers while
2424running configure, to aid debugging if configure makes a mistake.
2425
2426It was created by python $as_me 3.10, which was
2427generated by GNU Autoconf 2.69.  Invocation command line was
2428
2429  $ $0 $@
2430
2431_ACEOF
2432exec 5>>config.log
2433{
2434cat <<_ASUNAME
2435## --------- ##
2436## Platform. ##
2437## --------- ##
2438
2439hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2440uname -m = `(uname -m) 2>/dev/null || echo unknown`
2441uname -r = `(uname -r) 2>/dev/null || echo unknown`
2442uname -s = `(uname -s) 2>/dev/null || echo unknown`
2443uname -v = `(uname -v) 2>/dev/null || echo unknown`
2444
2445/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2446/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2447
2448/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2449/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2450/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2451/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2452/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2453/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2454/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2455
2456_ASUNAME
2457
2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461  IFS=$as_save_IFS
2462  test -z "$as_dir" && as_dir=.
2463    $as_echo "PATH: $as_dir"
2464  done
2465IFS=$as_save_IFS
2466
2467} >&5
2468
2469cat >&5 <<_ACEOF
2470
2471
2472## ----------- ##
2473## Core tests. ##
2474## ----------- ##
2475
2476_ACEOF
2477
2478
2479# Keep a trace of the command line.
2480# Strip out --no-create and --no-recursion so they do not pile up.
2481# Strip out --silent because we don't want to record it for future runs.
2482# Also quote any args containing shell meta-characters.
2483# Make two passes to allow for proper duplicate-argument suppression.
2484ac_configure_args=
2485ac_configure_args0=
2486ac_configure_args1=
2487ac_must_keep_next=false
2488for ac_pass in 1 2
2489do
2490  for ac_arg
2491  do
2492    case $ac_arg in
2493    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2494    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2495    | -silent | --silent | --silen | --sile | --sil)
2496      continue ;;
2497    *\'*)
2498      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2499    esac
2500    case $ac_pass in
2501    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2502    2)
2503      as_fn_append ac_configure_args1 " '$ac_arg'"
2504      if test $ac_must_keep_next = true; then
2505	ac_must_keep_next=false # Got value, back to normal.
2506      else
2507	case $ac_arg in
2508	  *=* | --config-cache | -C | -disable-* | --disable-* \
2509	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2510	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2511	  | -with-* | --with-* | -without-* | --without-* | --x)
2512	    case "$ac_configure_args0 " in
2513	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2514	    esac
2515	    ;;
2516	  -* ) ac_must_keep_next=true ;;
2517	esac
2518      fi
2519      as_fn_append ac_configure_args " '$ac_arg'"
2520      ;;
2521    esac
2522  done
2523done
2524{ ac_configure_args0=; unset ac_configure_args0;}
2525{ ac_configure_args1=; unset ac_configure_args1;}
2526
2527# When interrupted or exit'd, cleanup temporary files, and complete
2528# config.log.  We remove comments because anyway the quotes in there
2529# would cause problems or look ugly.
2530# WARNING: Use '\'' to represent an apostrophe within the trap.
2531# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2532trap 'exit_status=$?
2533  # Save into config.log some information that might help in debugging.
2534  {
2535    echo
2536
2537    $as_echo "## ---------------- ##
2538## Cache variables. ##
2539## ---------------- ##"
2540    echo
2541    # The following way of writing the cache mishandles newlines in values,
2542(
2543  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2544    eval ac_val=\$$ac_var
2545    case $ac_val in #(
2546    *${as_nl}*)
2547      case $ac_var in #(
2548      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2549$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2550      esac
2551      case $ac_var in #(
2552      _ | IFS | as_nl) ;; #(
2553      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2554      *) { eval $ac_var=; unset $ac_var;} ;;
2555      esac ;;
2556    esac
2557  done
2558  (set) 2>&1 |
2559    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2560    *${as_nl}ac_space=\ *)
2561      sed -n \
2562	"s/'\''/'\''\\\\'\'''\''/g;
2563	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2564      ;; #(
2565    *)
2566      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2567      ;;
2568    esac |
2569    sort
2570)
2571    echo
2572
2573    $as_echo "## ----------------- ##
2574## Output variables. ##
2575## ----------------- ##"
2576    echo
2577    for ac_var in $ac_subst_vars
2578    do
2579      eval ac_val=\$$ac_var
2580      case $ac_val in
2581      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2582      esac
2583      $as_echo "$ac_var='\''$ac_val'\''"
2584    done | sort
2585    echo
2586
2587    if test -n "$ac_subst_files"; then
2588      $as_echo "## ------------------- ##
2589## File substitutions. ##
2590## ------------------- ##"
2591      echo
2592      for ac_var in $ac_subst_files
2593      do
2594	eval ac_val=\$$ac_var
2595	case $ac_val in
2596	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2597	esac
2598	$as_echo "$ac_var='\''$ac_val'\''"
2599      done | sort
2600      echo
2601    fi
2602
2603    if test -s confdefs.h; then
2604      $as_echo "## ----------- ##
2605## confdefs.h. ##
2606## ----------- ##"
2607      echo
2608      cat confdefs.h
2609      echo
2610    fi
2611    test "$ac_signal" != 0 &&
2612      $as_echo "$as_me: caught signal $ac_signal"
2613    $as_echo "$as_me: exit $exit_status"
2614  } >&5
2615  rm -f core *.core core.conftest.* &&
2616    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2617    exit $exit_status
2618' 0
2619for ac_signal in 1 2 13 15; do
2620  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2621done
2622ac_signal=0
2623
2624# confdefs.h avoids OS command line length limits that DEFS can exceed.
2625rm -f -r conftest* confdefs.h
2626
2627$as_echo "/* confdefs.h */" > confdefs.h
2628
2629# Predefined preprocessor variables.
2630
2631cat >>confdefs.h <<_ACEOF
2632#define PACKAGE_NAME "$PACKAGE_NAME"
2633_ACEOF
2634
2635cat >>confdefs.h <<_ACEOF
2636#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2637_ACEOF
2638
2639cat >>confdefs.h <<_ACEOF
2640#define PACKAGE_VERSION "$PACKAGE_VERSION"
2641_ACEOF
2642
2643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE_STRING "$PACKAGE_STRING"
2645_ACEOF
2646
2647cat >>confdefs.h <<_ACEOF
2648#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2649_ACEOF
2650
2651cat >>confdefs.h <<_ACEOF
2652#define PACKAGE_URL "$PACKAGE_URL"
2653_ACEOF
2654
2655
2656# Let the site file select an alternate cache file if it wants to.
2657# Prefer an explicitly selected file to automatically selected ones.
2658ac_site_file1=NONE
2659ac_site_file2=NONE
2660if test -n "$CONFIG_SITE"; then
2661  # We do not want a PATH search for config.site.
2662  case $CONFIG_SITE in #((
2663    -*)  ac_site_file1=./$CONFIG_SITE;;
2664    */*) ac_site_file1=$CONFIG_SITE;;
2665    *)   ac_site_file1=./$CONFIG_SITE;;
2666  esac
2667elif test "x$prefix" != xNONE; then
2668  ac_site_file1=$prefix/share/config.site
2669  ac_site_file2=$prefix/etc/config.site
2670else
2671  ac_site_file1=$ac_default_prefix/share/config.site
2672  ac_site_file2=$ac_default_prefix/etc/config.site
2673fi
2674for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2675do
2676  test "x$ac_site_file" = xNONE && continue
2677  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2678    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2679$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2680    sed 's/^/| /' "$ac_site_file" >&5
2681    . "$ac_site_file" \
2682      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684as_fn_error $? "failed to load site script $ac_site_file
2685See \`config.log' for more details" "$LINENO" 5; }
2686  fi
2687done
2688
2689if test -r "$cache_file"; then
2690  # Some versions of bash will fail to source /dev/null (special files
2691  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2692  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2693    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2694$as_echo "$as_me: loading cache $cache_file" >&6;}
2695    case $cache_file in
2696      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2697      *)                      . "./$cache_file";;
2698    esac
2699  fi
2700else
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2702$as_echo "$as_me: creating cache $cache_file" >&6;}
2703  >$cache_file
2704fi
2705
2706# Check that the precious variables saved in the cache have kept the same
2707# value.
2708ac_cache_corrupted=false
2709for ac_var in $ac_precious_vars; do
2710  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2711  eval ac_new_set=\$ac_env_${ac_var}_set
2712  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2713  eval ac_new_val=\$ac_env_${ac_var}_value
2714  case $ac_old_set,$ac_new_set in
2715    set,)
2716      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2717$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2718      ac_cache_corrupted=: ;;
2719    ,set)
2720      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2721$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2722      ac_cache_corrupted=: ;;
2723    ,);;
2724    *)
2725      if test "x$ac_old_val" != "x$ac_new_val"; then
2726	# differences in whitespace do not lead to failure.
2727	ac_old_val_w=`echo x $ac_old_val`
2728	ac_new_val_w=`echo x $ac_new_val`
2729	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2730	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2731$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2732	  ac_cache_corrupted=:
2733	else
2734	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2735$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2736	  eval $ac_var=\$ac_old_val
2737	fi
2738	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2739$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2740	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2741$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2742      fi;;
2743  esac
2744  # Pass precious variables to config.status.
2745  if test "$ac_new_set" = set; then
2746    case $ac_new_val in
2747    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2748    *) ac_arg=$ac_var=$ac_new_val ;;
2749    esac
2750    case " $ac_configure_args " in
2751      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2752      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2753    esac
2754  fi
2755done
2756if $ac_cache_corrupted; then
2757  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2760$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2761  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2762fi
2763## -------------------- ##
2764## Main body of script. ##
2765## -------------------- ##
2766
2767ac_ext=c
2768ac_cpp='$CPP $CPPFLAGS'
2769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
2773
2774
2775
2776
2777
2778if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
2779    # If we're building out-of-tree, we need to make sure the following
2780    # resources get picked up before their $srcdir counterparts.
2781    #   Objects/ -> typeslots.inc
2782    #   Include/ -> Python.h
2783    #   Python/  -> importlib.h
2784    # (A side effect of this is that these resources will automatically be
2785    #  regenerated when building out-of-tree, regardless of whether or not
2786    #  the $srcdir counterpart is up-to-date.  This is an acceptable trade
2787    #  off.)
2788    BASECPPFLAGS="-IObjects -IInclude -IPython"
2789else
2790    BASECPPFLAGS=""
2791fi
2792
2793
2794
2795
2796
2797if test -e $srcdir/.git
2798then
2799# Extract the first word of "git", so it can be a program name with args.
2800set dummy git; ac_word=$2
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802$as_echo_n "checking for $ac_word... " >&6; }
2803if ${ac_cv_prog_HAS_GIT+:} false; then :
2804  $as_echo_n "(cached) " >&6
2805else
2806  if test -n "$HAS_GIT"; then
2807  ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
2808else
2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH
2811do
2812  IFS=$as_save_IFS
2813  test -z "$as_dir" && as_dir=.
2814    for ac_exec_ext in '' $ac_executable_extensions; do
2815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816    ac_cv_prog_HAS_GIT="found"
2817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818    break 2
2819  fi
2820done
2821  done
2822IFS=$as_save_IFS
2823
2824  test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
2825fi
2826fi
2827HAS_GIT=$ac_cv_prog_HAS_GIT
2828if test -n "$HAS_GIT"; then
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
2830$as_echo "$HAS_GIT" >&6; }
2831else
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833$as_echo "no" >&6; }
2834fi
2835
2836
2837else
2838HAS_GIT=no-repository
2839fi
2840if test $HAS_GIT = found
2841then
2842    GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
2843    GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
2844    GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
2845else
2846    GITVERSION=""
2847    GITTAG=""
2848    GITBRANCH=""
2849fi
2850
2851
2852ac_config_headers="$ac_config_headers pyconfig.h"
2853
2854
2855ac_aux_dir=
2856for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2857  if test -f "$ac_dir/install-sh"; then
2858    ac_aux_dir=$ac_dir
2859    ac_install_sh="$ac_aux_dir/install-sh -c"
2860    break
2861  elif test -f "$ac_dir/install.sh"; then
2862    ac_aux_dir=$ac_dir
2863    ac_install_sh="$ac_aux_dir/install.sh -c"
2864    break
2865  elif test -f "$ac_dir/shtool"; then
2866    ac_aux_dir=$ac_dir
2867    ac_install_sh="$ac_aux_dir/shtool install -c"
2868    break
2869  fi
2870done
2871if test -z "$ac_aux_dir"; then
2872  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2873fi
2874
2875# These three variables are undocumented and unsupported,
2876# and are intended to be withdrawn in a future Autoconf release.
2877# They can cause serious problems if a builder's source tree is in a directory
2878# whose full name contains unusual characters.
2879ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2880ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2881ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2882
2883
2884# Make sure we can run config.sub.
2885$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2886  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2887
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2889$as_echo_n "checking build system type... " >&6; }
2890if ${ac_cv_build+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  ac_build_alias=$build_alias
2894test "x$ac_build_alias" = x &&
2895  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2896test "x$ac_build_alias" = x &&
2897  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2898ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2899  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2900
2901fi
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2903$as_echo "$ac_cv_build" >&6; }
2904case $ac_cv_build in
2905*-*-*) ;;
2906*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2907esac
2908build=$ac_cv_build
2909ac_save_IFS=$IFS; IFS='-'
2910set x $ac_cv_build
2911shift
2912build_cpu=$1
2913build_vendor=$2
2914shift; shift
2915# Remember, the first character of IFS is used to create $*,
2916# except with old shells:
2917build_os=$*
2918IFS=$ac_save_IFS
2919case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2920
2921
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2923$as_echo_n "checking host system type... " >&6; }
2924if ${ac_cv_host+:} false; then :
2925  $as_echo_n "(cached) " >&6
2926else
2927  if test "x$host_alias" = x; then
2928  ac_cv_host=$ac_cv_build
2929else
2930  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2931    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2932fi
2933
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2936$as_echo "$ac_cv_host" >&6; }
2937case $ac_cv_host in
2938*-*-*) ;;
2939*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2940esac
2941host=$ac_cv_host
2942ac_save_IFS=$IFS; IFS='-'
2943set x $ac_cv_host
2944shift
2945host_cpu=$1
2946host_vendor=$2
2947shift; shift
2948# Remember, the first character of IFS is used to create $*,
2949# except with old shells:
2950host_os=$*
2951IFS=$ac_save_IFS
2952case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2953
2954
2955
2956
2957
2958# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2959rm -f pybuilddir.txt
2960
2961for ac_prog in python$PACKAGE_VERSION python3 python
2962do
2963  # Extract the first word of "$ac_prog", so it can be a program name with args.
2964set dummy $ac_prog; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$PYTHON_FOR_REGEN"; then
2971  ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
2991if test -n "$PYTHON_FOR_REGEN"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
2993$as_echo "$PYTHON_FOR_REGEN" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000  test -n "$PYTHON_FOR_REGEN" && break
3001done
3002test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
3003
3004
3005
3006if test "$cross_compiling" = yes; then
3007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
3008$as_echo_n "checking for python interpreter for cross build... " >&6; }
3009    if test -z "$PYTHON_FOR_BUILD"; then
3010        for interp in python$PACKAGE_VERSION python3 python; do
3011	    which $interp >/dev/null 2>&1 || continue
3012	    if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then
3013	        break
3014	    fi
3015            interp=
3016	done
3017        if test x$interp = x; then
3018	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
3019	fi
3020        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
3021$as_echo "$interp" >&6; }
3022	PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp
3023    fi
3024elif test "$cross_compiling" = maybe; then
3025    as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
3026else
3027    PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
3028fi
3029
3030
3031
3032if test "$prefix" != "/"; then
3033    prefix=`echo "$prefix" | sed -e 's/\/$//g'`
3034fi
3035
3036
3037
3038
3039# We don't use PACKAGE_ variables, and they cause conflicts
3040# with other autoconf-based packages that include Python.h
3041grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
3042rm confdefs.h
3043mv confdefs.h.new confdefs.h
3044
3045
3046VERSION=3.10
3047
3048# Version number of Python's own shared library file.
3049
3050SOVERSION=1.0
3051
3052# The later defininition of _XOPEN_SOURCE disables certain features
3053# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
3054
3055$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3056
3057
3058# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3059# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3060# them.
3061
3062$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3063
3064
3065# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3066# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3067# them.
3068
3069$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
3070
3071
3072# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3073# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3074# them.
3075
3076$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3077
3078
3079
3080define_xopen_source=yes
3081
3082# Arguments passed to configure.
3083
3084CONFIG_ARGS="$ac_configure_args"
3085
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3087$as_echo_n "checking for --enable-universalsdk... " >&6; }
3088# Check whether --enable-universalsdk was given.
3089if test "${enable_universalsdk+set}" = set; then :
3090  enableval=$enable_universalsdk;
3091	case $enableval in
3092	yes)
3093		# Locate the best usable SDK, see Mac/README for more
3094		# information
3095		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
3096		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
3097		then
3098			enableval=/Developer/SDKs/MacOSX10.4u.sdk
3099			if test ! -d "${enableval}"
3100			then
3101				enableval=/
3102			fi
3103		fi
3104		;;
3105	esac
3106	case $enableval in
3107	no)
3108		UNIVERSALSDK=
3109		enable_universalsdk=
3110		;;
3111	*)
3112		UNIVERSALSDK=$enableval
3113		if test ! -d "${UNIVERSALSDK}"
3114		then
3115			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
3116		fi
3117		;;
3118	esac
3119
3120
3121else
3122
3123   	UNIVERSALSDK=
3124	enable_universalsdk=
3125
3126fi
3127
3128if test -n "${UNIVERSALSDK}"
3129then
3130	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3131$as_echo "${UNIVERSALSDK}" >&6; }
3132else
3133	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137
3138
3139ARCH_RUN_32BIT=""
3140
3141# For backward compatibility reasons we prefer to select '32-bit' if available,
3142# otherwise use 'intel'
3143UNIVERSAL_ARCHS="32-bit"
3144if test "`uname -s`" = "Darwin"
3145then
3146	if test -n "${UNIVERSALSDK}"
3147	then
3148		if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
3149		then
3150			UNIVERSAL_ARCHS="intel"
3151		fi
3152	fi
3153fi
3154
3155
3156
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3158$as_echo_n "checking for --with-universal-archs... " >&6; }
3159
3160# Check whether --with-universal-archs was given.
3161if test "${with_universal_archs+set}" = set; then :
3162  withval=$with_universal_archs;
3163	UNIVERSAL_ARCHS="$withval"
3164
3165fi
3166
3167if test -n "${UNIVERSALSDK}"
3168then
3169	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3170$as_echo "${UNIVERSAL_ARCHS}" >&6; }
3171else
3172	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174fi
3175
3176
3177# Check whether --with-framework-name was given.
3178if test "${with_framework_name+set}" = set; then :
3179  withval=$with_framework_name;
3180    PYTHONFRAMEWORK=${withval}
3181    PYTHONFRAMEWORKDIR=${withval}.framework
3182    PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3183
3184else
3185
3186    PYTHONFRAMEWORK=Python
3187    PYTHONFRAMEWORKDIR=Python.framework
3188    PYTHONFRAMEWORKIDENTIFIER=org.python.python
3189
3190fi
3191
3192# Check whether --enable-framework was given.
3193if test "${enable_framework+set}" = set; then :
3194  enableval=$enable_framework;
3195	case $enableval in
3196	yes)
3197		enableval=/Library/Frameworks
3198	esac
3199	case $enableval in
3200	no)
3201		PYTHONFRAMEWORK=
3202		PYTHONFRAMEWORKDIR=no-framework
3203		PYTHONFRAMEWORKPREFIX=
3204		PYTHONFRAMEWORKINSTALLDIR=
3205		FRAMEWORKINSTALLFIRST=
3206		FRAMEWORKINSTALLLAST=
3207		FRAMEWORKALTINSTALLFIRST=
3208		FRAMEWORKALTINSTALLLAST=
3209		FRAMEWORKPYTHONW=
3210		if test "x${prefix}" = "xNONE"; then
3211			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3212		else
3213			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3214		fi
3215		enable_framework=
3216		;;
3217	*)
3218		PYTHONFRAMEWORKPREFIX="${enableval}"
3219		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
3220		FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
3221		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
3222		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3223		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
3224		FRAMEWORKPYTHONW="frameworkpythonw"
3225		FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3226
3227		if test "x${prefix}" = "xNONE" ; then
3228			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3229
3230		else
3231			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3232		fi
3233
3234		case "${enableval}" in
3235		/System*)
3236			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3237			if test "${prefix}" = "NONE" ; then
3238				# See below
3239				FRAMEWORKUNIXTOOLSPREFIX="/usr"
3240			fi
3241			;;
3242
3243		/Library*)
3244			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3245			;;
3246
3247		*/Library/Frameworks)
3248			MDIR="`dirname "${enableval}"`"
3249			MDIR="`dirname "${MDIR}"`"
3250			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3251
3252			if test "${prefix}" = "NONE"; then
3253				# User hasn't specified the
3254				# --prefix option, but wants to install
3255				# the framework in a non-default location,
3256				# ensure that the compatibility links get
3257				# installed relative to that prefix as well
3258				# instead of in /usr/local.
3259				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3260			fi
3261			;;
3262
3263		*)
3264			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3265			;;
3266		esac
3267
3268		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
3269
3270		# Add files for Mac specific code to the list of output
3271		# files:
3272		ac_config_files="$ac_config_files Mac/Makefile"
3273
3274		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
3275
3276		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3277
3278		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3279
3280	esac
3281
3282else
3283
3284	PYTHONFRAMEWORK=
3285	PYTHONFRAMEWORKDIR=no-framework
3286	PYTHONFRAMEWORKPREFIX=
3287	PYTHONFRAMEWORKINSTALLDIR=
3288	FRAMEWORKINSTALLFIRST=
3289	FRAMEWORKINSTALLLAST=
3290	FRAMEWORKALTINSTALLFIRST=
3291	FRAMEWORKALTINSTALLLAST=
3292	FRAMEWORKPYTHONW=
3293	if test "x${prefix}" = "xNONE" ; then
3294		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3295	else
3296		FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3297	fi
3298	enable_framework=
3299
3300
3301fi
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317cat >>confdefs.h <<_ACEOF
3318#define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}"
3319_ACEOF
3320
3321
3322##AC_ARG_WITH(dyld,
3323##            AS_HELP_STRING([--with-dyld],
3324##                           [use (OpenStep|Rhapsody) dynamic linker]))
3325##
3326# Set name for machine-dependent library files
3327
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3329$as_echo_n "checking MACHDEP... " >&6; }
3330if test -z "$MACHDEP"
3331then
3332    # avoid using uname for cross builds
3333    if test "$cross_compiling" = yes; then
3334       # ac_sys_system and ac_sys_release are used for setting
3335       # a lot of different things including 'define_xopen_source'
3336       # in the case statement below.
3337	case "$host" in
3338	*-*-linux-android*)
3339		ac_sys_system=Linux-android
3340		;;
3341	*-*-linux*)
3342		ac_sys_system=Linux
3343		;;
3344	*-*-cygwin*)
3345		ac_sys_system=Cygwin
3346		;;
3347	*-*-vxworks*)
3348	    ac_sys_system=VxWorks
3349	    ;;
3350	*)
3351		# for now, limit cross builds to known configurations
3352		MACHDEP="unknown"
3353		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3354	esac
3355	ac_sys_release=
3356    else
3357	ac_sys_system=`uname -s`
3358	if test "$ac_sys_system" = "AIX" \
3359	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
3360		ac_sys_release=`uname -v`
3361	else
3362		ac_sys_release=`uname -r`
3363	fi
3364    fi
3365    ac_md_system=`echo $ac_sys_system |
3366			tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3367    ac_md_release=`echo $ac_sys_release |
3368			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3369    MACHDEP="$ac_md_system$ac_md_release"
3370
3371    case $MACHDEP in
3372	aix*) MACHDEP="aix";;
3373	linux*) MACHDEP="linux";;
3374	cygwin*) MACHDEP="cygwin";;
3375	darwin*) MACHDEP="darwin";;
3376	'')	MACHDEP="unknown";;
3377    esac
3378fi
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5
3380$as_echo "\"$MACHDEP\"" >&6; }
3381
3382
3383if test "$cross_compiling" = yes; then
3384	case "$host" in
3385	*-*-linux*)
3386		case "$host_cpu" in
3387		arm*)
3388			_host_cpu=arm
3389			;;
3390		*)
3391			_host_cpu=$host_cpu
3392		esac
3393		;;
3394	*-*-cygwin*)
3395		_host_cpu=
3396		;;
3397	*-*-vxworks*)
3398		_host_cpu=$host_cpu
3399		;;
3400	*)
3401		# for now, limit cross builds to known configurations
3402		MACHDEP="unknown"
3403		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3404	esac
3405	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3406fi
3407
3408# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3409# disable features if it is defined, without any means to access these
3410# features as extensions. For these systems, we skip the definition of
3411# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3412# some feature, make sure there is no alternative way to access this
3413# feature. Also, when using wildcards, make sure you have verified the
3414# need for not defining _XOPEN_SOURCE on all systems matching the
3415# wildcard, and that the wildcard does not include future systems
3416# (which may remove their limitations).
3417case $ac_sys_system/$ac_sys_release in
3418  # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3419  # even though select is a POSIX function. Reported by J. Ribbens.
3420  # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3421  # In addition, Stefan Krah confirms that issue #1244610 exists through
3422  # OpenBSD 4.6, but is fixed in 4.7.
3423  OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
3424    define_xopen_source=no
3425    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3426    # also defined. This can be overridden by defining _BSD_SOURCE
3427    # As this has a different meaning on Linux, only define it on OpenBSD
3428
3429$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3430
3431    ;;
3432  OpenBSD/*)
3433    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3434    # also defined. This can be overridden by defining _BSD_SOURCE
3435    # As this has a different meaning on Linux, only define it on OpenBSD
3436
3437$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3438
3439    ;;
3440  # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3441  # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3442  # Marc Recht
3443  NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
3444    define_xopen_source=no;;
3445  # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3446  # request to enable features supported by the standard as a request
3447  # to disable features not supported by the standard.  The best way
3448  # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3449  # entirely and define __EXTENSIONS__ instead.
3450  SunOS/*)
3451    define_xopen_source=no;;
3452  # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3453  # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
3454  # Reconfirmed for 7.1.4 by Martin v. Loewis.
3455  OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
3456    define_xopen_source=no;;
3457  # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
3458  # but used in struct sockaddr.sa_family. Reported by Tim Rice.
3459  SCO_SV/3.2)
3460    define_xopen_source=no;;
3461  # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3462  # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3463  # identifies itself as Darwin/7.*
3464  # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3465  # disables platform specific features beyond repair.
3466  # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3467  # has no effect, don't bother defining them
3468  Darwin/[6789].*)
3469    define_xopen_source=no;;
3470  Darwin/[12][0-9].*)
3471    define_xopen_source=no;;
3472  # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3473  # defining NI_NUMERICHOST.
3474  QNX/6.3.2)
3475    define_xopen_source=no
3476    ;;
3477  # On VxWorks, defining _XOPEN_SOURCE causes compile failures
3478  # in network headers still using system V types.
3479  VxWorks/*)
3480    define_xopen_source=no
3481    ;;
3482
3483  # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides
3484  # chroot() and other functions
3485  hp*|HP*)
3486    define_xopen_source=no
3487    ;;
3488
3489esac
3490
3491if test $define_xopen_source = yes
3492then
3493  # X/Open 7, incorporating POSIX.1-2008
3494
3495$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
3496
3497
3498  # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3499  # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3500  # several APIs are not declared. Since this is also needed in some
3501  # cases for HP-UX, we define it globally.
3502
3503$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3504
3505
3506
3507$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
3508
3509fi
3510
3511# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
3512case $ac_sys_system in
3513  hp*|HP*)
3514    define_stdc_a1=yes;;
3515  *)
3516    define_stdc_a1=no;;
3517esac
3518
3519if test $define_stdc_a1 = yes
3520then
3521
3522$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
3523
3524fi
3525
3526# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3527# it may influence the way we can build extensions, so distutils
3528# needs to check it
3529
3530
3531CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
3532EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
3533
3534# checks for alternative programs
3535
3536# compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just
3537# for debug/optimization stuff.  BASECFLAGS is for flags that are required
3538# just to get things to compile and link.  Users are free to override OPT
3539# when running configure or make.  The build should not break if they do.
3540# BASECFLAGS should generally not be messed with, however.
3541
3542# If the user switches compilers, we can't believe the cache
3543if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3544then
3545  as_fn_error $? "cached CC is different -- throw away $cache_file
3546(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3547fi
3548
3549# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
3550# when the compiler supports them, but we don't always want -O2, and
3551# we set -g later.
3552if test -z "$CFLAGS"; then
3553        CFLAGS=
3554fi
3555
3556if test "$ac_sys_system" = "Darwin"
3557then
3558	# Compiler selection on MacOSX is more complicated than
3559	# AC_PROG_CC can handle, see Mac/README for more
3560	# information
3561	if test -z "${CC}"
3562	then
3563		found_gcc=
3564		found_clang=
3565		as_save_IFS=$IFS; IFS=:
3566		for as_dir in $PATH
3567		do
3568			IFS=$as_save_IFS
3569			if test -x "${as_dir}/gcc"; then
3570				if test -z "${found_gcc}"; then
3571					found_gcc="${as_dir}/gcc"
3572				fi
3573			fi
3574			if test -x "${as_dir}/clang"; then
3575				if test -z "${found_clang}"; then
3576					found_clang="${as_dir}/clang"
3577				fi
3578			fi
3579		done
3580		IFS=$as_save_IFS
3581
3582		if test -n "$found_gcc" -a -n "$found_clang"
3583		then
3584			if test -n "`"$found_gcc" --version | grep llvm-gcc`"
3585			then
3586				{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
3587$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
3588				CC="$found_clang"
3589				CXX="$found_clang++"
3590			fi
3591
3592
3593		elif test -z "$found_gcc" -a -n "$found_clang"
3594		then
3595			{ $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
3596$as_echo "$as_me: No GCC found, use CLANG" >&6;}
3597			CC="$found_clang"
3598			CXX="$found_clang++"
3599
3600		elif test -z "$found_gcc" -a -z "$found_clang"
3601		then
3602			found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
3603			if test -n "${found_clang}"
3604			then
3605				{ $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
3606$as_echo "$as_me: Using clang from Xcode.app" >&6;}
3607				CC="${found_clang}"
3608				CXX="`/usr/bin/xcrun -find clang++`"
3609
3610			# else: use default behaviour
3611			fi
3612		fi
3613	fi
3614fi
3615ac_ext=c
3616ac_cpp='$CPP $CPPFLAGS'
3617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620if test -n "$ac_tool_prefix"; then
3621  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3622set dummy ${ac_tool_prefix}gcc; ac_word=$2
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
3625if ${ac_cv_prog_CC+:} false; then :
3626  $as_echo_n "(cached) " >&6
3627else
3628  if test -n "$CC"; then
3629  ac_cv_prog_CC="$CC" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634  IFS=$as_save_IFS
3635  test -z "$as_dir" && as_dir=.
3636    for ac_exec_ext in '' $ac_executable_extensions; do
3637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640    break 2
3641  fi
3642done
3643  done
3644IFS=$as_save_IFS
3645
3646fi
3647fi
3648CC=$ac_cv_prog_CC
3649if test -n "$CC"; then
3650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651$as_echo "$CC" >&6; }
3652else
3653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654$as_echo "no" >&6; }
3655fi
3656
3657
3658fi
3659if test -z "$ac_cv_prog_CC"; then
3660  ac_ct_CC=$CC
3661  # Extract the first word of "gcc", so it can be a program name with args.
3662set dummy gcc; ac_word=$2
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664$as_echo_n "checking for $ac_word... " >&6; }
3665if ${ac_cv_prog_ac_ct_CC+:} false; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  if test -n "$ac_ct_CC"; then
3669  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674  IFS=$as_save_IFS
3675  test -z "$as_dir" && as_dir=.
3676    for ac_exec_ext in '' $ac_executable_extensions; do
3677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678    ac_cv_prog_ac_ct_CC="gcc"
3679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680    break 2
3681  fi
3682done
3683  done
3684IFS=$as_save_IFS
3685
3686fi
3687fi
3688ac_ct_CC=$ac_cv_prog_ac_ct_CC
3689if test -n "$ac_ct_CC"; then
3690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3691$as_echo "$ac_ct_CC" >&6; }
3692else
3693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694$as_echo "no" >&6; }
3695fi
3696
3697  if test "x$ac_ct_CC" = x; then
3698    CC=""
3699  else
3700    case $cross_compiling:$ac_tool_warned in
3701yes:)
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704ac_tool_warned=yes ;;
3705esac
3706    CC=$ac_ct_CC
3707  fi
3708else
3709  CC="$ac_cv_prog_CC"
3710fi
3711
3712if test -z "$CC"; then
3713          if test -n "$ac_tool_prefix"; then
3714    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3715set dummy ${ac_tool_prefix}cc; ac_word=$2
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717$as_echo_n "checking for $ac_word... " >&6; }
3718if ${ac_cv_prog_CC+:} false; then :
3719  $as_echo_n "(cached) " >&6
3720else
3721  if test -n "$CC"; then
3722  ac_cv_prog_CC="$CC" # Let the user override the test.
3723else
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727  IFS=$as_save_IFS
3728  test -z "$as_dir" && as_dir=.
3729    for ac_exec_ext in '' $ac_executable_extensions; do
3730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731    ac_cv_prog_CC="${ac_tool_prefix}cc"
3732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733    break 2
3734  fi
3735done
3736  done
3737IFS=$as_save_IFS
3738
3739fi
3740fi
3741CC=$ac_cv_prog_CC
3742if test -n "$CC"; then
3743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744$as_echo "$CC" >&6; }
3745else
3746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747$as_echo "no" >&6; }
3748fi
3749
3750
3751  fi
3752fi
3753if test -z "$CC"; then
3754  # Extract the first word of "cc", so it can be a program name with args.
3755set dummy cc; ac_word=$2
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757$as_echo_n "checking for $ac_word... " >&6; }
3758if ${ac_cv_prog_CC+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  if test -n "$CC"; then
3762  ac_cv_prog_CC="$CC" # Let the user override the test.
3763else
3764  ac_prog_rejected=no
3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768  IFS=$as_save_IFS
3769  test -z "$as_dir" && as_dir=.
3770    for ac_exec_ext in '' $ac_executable_extensions; do
3771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3773       ac_prog_rejected=yes
3774       continue
3775     fi
3776    ac_cv_prog_CC="cc"
3777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778    break 2
3779  fi
3780done
3781  done
3782IFS=$as_save_IFS
3783
3784if test $ac_prog_rejected = yes; then
3785  # We found a bogon in the path, so make sure we never use it.
3786  set dummy $ac_cv_prog_CC
3787  shift
3788  if test $# != 0; then
3789    # We chose a different compiler from the bogus one.
3790    # However, it has the same basename, so the bogon will be chosen
3791    # first if we set CC to just the basename; use the full file name.
3792    shift
3793    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3794  fi
3795fi
3796fi
3797fi
3798CC=$ac_cv_prog_CC
3799if test -n "$CC"; then
3800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3801$as_echo "$CC" >&6; }
3802else
3803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804$as_echo "no" >&6; }
3805fi
3806
3807
3808fi
3809if test -z "$CC"; then
3810  if test -n "$ac_tool_prefix"; then
3811  for ac_prog in cl.exe
3812  do
3813    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
3817if ${ac_cv_prog_CC+:} false; then :
3818  $as_echo_n "(cached) " >&6
3819else
3820  if test -n "$CC"; then
3821  ac_cv_prog_CC="$CC" # Let the user override the test.
3822else
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826  IFS=$as_save_IFS
3827  test -z "$as_dir" && as_dir=.
3828    for ac_exec_ext in '' $ac_executable_extensions; do
3829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832    break 2
3833  fi
3834done
3835  done
3836IFS=$as_save_IFS
3837
3838fi
3839fi
3840CC=$ac_cv_prog_CC
3841if test -n "$CC"; then
3842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843$as_echo "$CC" >&6; }
3844else
3845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
3847fi
3848
3849
3850    test -n "$CC" && break
3851  done
3852fi
3853if test -z "$CC"; then
3854  ac_ct_CC=$CC
3855  for ac_prog in cl.exe
3856do
3857  # Extract the first word of "$ac_prog", so it can be a program name with args.
3858set dummy $ac_prog; ac_word=$2
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
3861if ${ac_cv_prog_ac_ct_CC+:} false; then :
3862  $as_echo_n "(cached) " >&6
3863else
3864  if test -n "$ac_ct_CC"; then
3865  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870  IFS=$as_save_IFS
3871  test -z "$as_dir" && as_dir=.
3872    for ac_exec_ext in '' $ac_executable_extensions; do
3873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874    ac_cv_prog_ac_ct_CC="$ac_prog"
3875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876    break 2
3877  fi
3878done
3879  done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884ac_ct_CC=$ac_cv_prog_ac_ct_CC
3885if test -n "$ac_ct_CC"; then
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3887$as_echo "$ac_ct_CC" >&6; }
3888else
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893
3894  test -n "$ac_ct_CC" && break
3895done
3896
3897  if test "x$ac_ct_CC" = x; then
3898    CC=""
3899  else
3900    case $cross_compiling:$ac_tool_warned in
3901yes:)
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3904ac_tool_warned=yes ;;
3905esac
3906    CC=$ac_ct_CC
3907  fi
3908fi
3909
3910fi
3911
3912
3913test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915as_fn_error $? "no acceptable C compiler found in \$PATH
3916See \`config.log' for more details" "$LINENO" 5; }
3917
3918# Provide some information about the compiler.
3919$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3920set X $ac_compile
3921ac_compiler=$2
3922for ac_option in --version -v -V -qversion; do
3923  { { ac_try="$ac_compiler $ac_option >&5"
3924case "(($ac_try" in
3925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926  *) ac_try_echo=$ac_try;;
3927esac
3928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929$as_echo "$ac_try_echo"; } >&5
3930  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3931  ac_status=$?
3932  if test -s conftest.err; then
3933    sed '10a\
3934... rest of stderr output deleted ...
3935         10q' conftest.err >conftest.er1
3936    cat conftest.er1 >&5
3937  fi
3938  rm -f conftest.er1 conftest.err
3939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940  test $ac_status = 0; }
3941done
3942
3943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944/* end confdefs.h.  */
3945
3946int
3947main ()
3948{
3949
3950  ;
3951  return 0;
3952}
3953_ACEOF
3954ac_clean_files_save=$ac_clean_files
3955ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3956# Try to create an executable without -o first, disregard a.out.
3957# It will help us diagnose broken compilers, and finding out an intuition
3958# of exeext.
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3960$as_echo_n "checking whether the C compiler works... " >&6; }
3961ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3962
3963# The possible output files:
3964ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3965
3966ac_rmfiles=
3967for ac_file in $ac_files
3968do
3969  case $ac_file in
3970    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3972  esac
3973done
3974rm -f $ac_rmfiles
3975
3976if { { ac_try="$ac_link_default"
3977case "(($ac_try" in
3978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979  *) ac_try_echo=$ac_try;;
3980esac
3981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982$as_echo "$ac_try_echo"; } >&5
3983  (eval "$ac_link_default") 2>&5
3984  ac_status=$?
3985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986  test $ac_status = 0; }; then :
3987  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3988# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3989# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3990# so that the user can short-circuit this test for compilers unknown to
3991# Autoconf.
3992for ac_file in $ac_files ''
3993do
3994  test -f "$ac_file" || continue
3995  case $ac_file in
3996    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3997	;;
3998    [ab].out )
3999	# We found the default executable, but exeext='' is most
4000	# certainly right.
4001	break;;
4002    *.* )
4003	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4004	then :; else
4005	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4006	fi
4007	# We set ac_cv_exeext here because the later test for it is not
4008	# safe: cross compilers may not add the suffix if given an `-o'
4009	# argument, so we may need to know it at that point already.
4010	# Even if this section looks crufty: it has the advantage of
4011	# actually working.
4012	break;;
4013    * )
4014	break;;
4015  esac
4016done
4017test "$ac_cv_exeext" = no && ac_cv_exeext=
4018
4019else
4020  ac_file=''
4021fi
4022if test -z "$ac_file"; then :
4023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024$as_echo "no" >&6; }
4025$as_echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030as_fn_error 77 "C compiler cannot create executables
4031See \`config.log' for more details" "$LINENO" 5; }
4032else
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4034$as_echo "yes" >&6; }
4035fi
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4037$as_echo_n "checking for C compiler default output file name... " >&6; }
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4039$as_echo "$ac_file" >&6; }
4040ac_exeext=$ac_cv_exeext
4041
4042rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4043ac_clean_files=$ac_clean_files_save
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4045$as_echo_n "checking for suffix of executables... " >&6; }
4046if { { ac_try="$ac_link"
4047case "(($ac_try" in
4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049  *) ac_try_echo=$ac_try;;
4050esac
4051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052$as_echo "$ac_try_echo"; } >&5
4053  (eval "$ac_link") 2>&5
4054  ac_status=$?
4055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056  test $ac_status = 0; }; then :
4057  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4058# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4059# work properly (i.e., refer to `conftest.exe'), while it won't with
4060# `rm'.
4061for ac_file in conftest.exe conftest conftest.*; do
4062  test -f "$ac_file" || continue
4063  case $ac_file in
4064    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4065    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4066	  break;;
4067    * ) break;;
4068  esac
4069done
4070else
4071  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4074See \`config.log' for more details" "$LINENO" 5; }
4075fi
4076rm -f conftest conftest$ac_cv_exeext
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4078$as_echo "$ac_cv_exeext" >&6; }
4079
4080rm -f conftest.$ac_ext
4081EXEEXT=$ac_cv_exeext
4082ac_exeext=$EXEEXT
4083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h.  */
4085#include <stdio.h>
4086int
4087main ()
4088{
4089FILE *f = fopen ("conftest.out", "w");
4090 return ferror (f) || fclose (f) != 0;
4091
4092  ;
4093  return 0;
4094}
4095_ACEOF
4096ac_clean_files="$ac_clean_files conftest.out"
4097# Check that the compiler produces executables we can run.  If not, either
4098# the compiler is broken, or we cross compile.
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4100$as_echo_n "checking whether we are cross compiling... " >&6; }
4101if test "$cross_compiling" != yes; then
4102  { { ac_try="$ac_link"
4103case "(($ac_try" in
4104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105  *) ac_try_echo=$ac_try;;
4106esac
4107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108$as_echo "$ac_try_echo"; } >&5
4109  (eval "$ac_link") 2>&5
4110  ac_status=$?
4111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112  test $ac_status = 0; }
4113  if { ac_try='./conftest$ac_cv_exeext'
4114  { { case "(($ac_try" in
4115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116  *) ac_try_echo=$ac_try;;
4117esac
4118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119$as_echo "$ac_try_echo"; } >&5
4120  (eval "$ac_try") 2>&5
4121  ac_status=$?
4122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123  test $ac_status = 0; }; }; then
4124    cross_compiling=no
4125  else
4126    if test "$cross_compiling" = maybe; then
4127	cross_compiling=yes
4128    else
4129	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131as_fn_error $? "cannot run C compiled programs.
4132If you meant to cross compile, use \`--host'.
4133See \`config.log' for more details" "$LINENO" 5; }
4134    fi
4135  fi
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4138$as_echo "$cross_compiling" >&6; }
4139
4140rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4141ac_clean_files=$ac_clean_files_save
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4143$as_echo_n "checking for suffix of object files... " >&6; }
4144if ${ac_cv_objext+:} false; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149
4150int
4151main ()
4152{
4153
4154  ;
4155  return 0;
4156}
4157_ACEOF
4158rm -f conftest.o conftest.obj
4159if { { ac_try="$ac_compile"
4160case "(($ac_try" in
4161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162  *) ac_try_echo=$ac_try;;
4163esac
4164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4165$as_echo "$ac_try_echo"; } >&5
4166  (eval "$ac_compile") 2>&5
4167  ac_status=$?
4168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4169  test $ac_status = 0; }; then :
4170  for ac_file in conftest.o conftest.obj conftest.*; do
4171  test -f "$ac_file" || continue;
4172  case $ac_file in
4173    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4174    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4175       break;;
4176  esac
4177done
4178else
4179  $as_echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4184as_fn_error $? "cannot compute suffix of object files: cannot compile
4185See \`config.log' for more details" "$LINENO" 5; }
4186fi
4187rm -f conftest.$ac_cv_objext conftest.$ac_ext
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4190$as_echo "$ac_cv_objext" >&6; }
4191OBJEXT=$ac_cv_objext
4192ac_objext=$OBJEXT
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4194$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4195if ${ac_cv_c_compiler_gnu+:} false; then :
4196  $as_echo_n "(cached) " >&6
4197else
4198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h.  */
4200
4201int
4202main ()
4203{
4204#ifndef __GNUC__
4205       choke me
4206#endif
4207
4208  ;
4209  return 0;
4210}
4211_ACEOF
4212if ac_fn_c_try_compile "$LINENO"; then :
4213  ac_compiler_gnu=yes
4214else
4215  ac_compiler_gnu=no
4216fi
4217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218ac_cv_c_compiler_gnu=$ac_compiler_gnu
4219
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4222$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4223if test $ac_compiler_gnu = yes; then
4224  GCC=yes
4225else
4226  GCC=
4227fi
4228ac_test_CFLAGS=${CFLAGS+set}
4229ac_save_CFLAGS=$CFLAGS
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4231$as_echo_n "checking whether $CC accepts -g... " >&6; }
4232if ${ac_cv_prog_cc_g+:} false; then :
4233  $as_echo_n "(cached) " >&6
4234else
4235  ac_save_c_werror_flag=$ac_c_werror_flag
4236   ac_c_werror_flag=yes
4237   ac_cv_prog_cc_g=no
4238   CFLAGS="-g"
4239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h.  */
4241
4242int
4243main ()
4244{
4245
4246  ;
4247  return 0;
4248}
4249_ACEOF
4250if ac_fn_c_try_compile "$LINENO"; then :
4251  ac_cv_prog_cc_g=yes
4252else
4253  CFLAGS=""
4254      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255/* end confdefs.h.  */
4256
4257int
4258main ()
4259{
4260
4261  ;
4262  return 0;
4263}
4264_ACEOF
4265if ac_fn_c_try_compile "$LINENO"; then :
4266
4267else
4268  ac_c_werror_flag=$ac_save_c_werror_flag
4269	 CFLAGS="-g"
4270	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h.  */
4272
4273int
4274main ()
4275{
4276
4277  ;
4278  return 0;
4279}
4280_ACEOF
4281if ac_fn_c_try_compile "$LINENO"; then :
4282  ac_cv_prog_cc_g=yes
4283fi
4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285fi
4286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287fi
4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289   ac_c_werror_flag=$ac_save_c_werror_flag
4290fi
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4292$as_echo "$ac_cv_prog_cc_g" >&6; }
4293if test "$ac_test_CFLAGS" = set; then
4294  CFLAGS=$ac_save_CFLAGS
4295elif test $ac_cv_prog_cc_g = yes; then
4296  if test "$GCC" = yes; then
4297    CFLAGS="-g -O2"
4298  else
4299    CFLAGS="-g"
4300  fi
4301else
4302  if test "$GCC" = yes; then
4303    CFLAGS="-O2"
4304  else
4305    CFLAGS=
4306  fi
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4309$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4310if ${ac_cv_prog_cc_c89+:} false; then :
4311  $as_echo_n "(cached) " >&6
4312else
4313  ac_cv_prog_cc_c89=no
4314ac_save_CC=$CC
4315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#include <stdarg.h>
4318#include <stdio.h>
4319struct stat;
4320/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4321struct buf { int x; };
4322FILE * (*rcsopen) (struct buf *, struct stat *, int);
4323static char *e (p, i)
4324     char **p;
4325     int i;
4326{
4327  return p[i];
4328}
4329static char *f (char * (*g) (char **, int), char **p, ...)
4330{
4331  char *s;
4332  va_list v;
4333  va_start (v,p);
4334  s = g (p, va_arg (v,int));
4335  va_end (v);
4336  return s;
4337}
4338
4339/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4340   function prototypes and stuff, but not '\xHH' hex character constants.
4341   These don't provoke an error unfortunately, instead are silently treated
4342   as 'x'.  The following induces an error, until -std is added to get
4343   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4344   array size at least.  It's necessary to write '\x00'==0 to get something
4345   that's true only with -std.  */
4346int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4347
4348/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4349   inside strings and character constants.  */
4350#define FOO(x) 'x'
4351int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4352
4353int test (int i, double x);
4354struct s1 {int (*f) (int a);};
4355struct s2 {int (*f) (double a);};
4356int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4357int argc;
4358char **argv;
4359int
4360main ()
4361{
4362return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4363  ;
4364  return 0;
4365}
4366_ACEOF
4367for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4368	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4369do
4370  CC="$ac_save_CC $ac_arg"
4371  if ac_fn_c_try_compile "$LINENO"; then :
4372  ac_cv_prog_cc_c89=$ac_arg
4373fi
4374rm -f core conftest.err conftest.$ac_objext
4375  test "x$ac_cv_prog_cc_c89" != "xno" && break
4376done
4377rm -f conftest.$ac_ext
4378CC=$ac_save_CC
4379
4380fi
4381# AC_CACHE_VAL
4382case "x$ac_cv_prog_cc_c89" in
4383  x)
4384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4385$as_echo "none needed" >&6; } ;;
4386  xno)
4387    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4388$as_echo "unsupported" >&6; } ;;
4389  *)
4390    CC="$CC $ac_cv_prog_cc_c89"
4391    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4392$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4393esac
4394if test "x$ac_cv_prog_cc_c89" != xno; then :
4395
4396fi
4397
4398ac_ext=c
4399ac_cpp='$CPP $CPPFLAGS'
4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4410$as_echo_n "checking how to run the C preprocessor... " >&6; }
4411# On Suns, sometimes $CPP names a directory.
4412if test -n "$CPP" && test -d "$CPP"; then
4413  CPP=
4414fi
4415if test -z "$CPP"; then
4416  if ${ac_cv_prog_CPP+:} false; then :
4417  $as_echo_n "(cached) " >&6
4418else
4419      # Double quotes because CPP needs to be expanded
4420    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4421    do
4422      ac_preproc_ok=false
4423for ac_c_preproc_warn_flag in '' yes
4424do
4425  # Use a header file that comes with gcc, so configuring glibc
4426  # with a fresh cross-compiler works.
4427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428  # <limits.h> exists even on freestanding compilers.
4429  # On the NeXT, cc -E runs the code through the compiler's parser,
4430  # not just through cpp. "Syntax error" is here to catch this case.
4431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433#ifdef __STDC__
4434# include <limits.h>
4435#else
4436# include <assert.h>
4437#endif
4438		     Syntax error
4439_ACEOF
4440if ac_fn_c_try_cpp "$LINENO"; then :
4441
4442else
4443  # Broken: fails on valid input.
4444continue
4445fi
4446rm -f conftest.err conftest.i conftest.$ac_ext
4447
4448  # OK, works on sane cases.  Now check whether nonexistent headers
4449  # can be detected and how.
4450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h.  */
4452#include <ac_nonexistent.h>
4453_ACEOF
4454if ac_fn_c_try_cpp "$LINENO"; then :
4455  # Broken: success on invalid input.
4456continue
4457else
4458  # Passes both tests.
4459ac_preproc_ok=:
4460break
4461fi
4462rm -f conftest.err conftest.i conftest.$ac_ext
4463
4464done
4465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466rm -f conftest.i conftest.err conftest.$ac_ext
4467if $ac_preproc_ok; then :
4468  break
4469fi
4470
4471    done
4472    ac_cv_prog_CPP=$CPP
4473
4474fi
4475  CPP=$ac_cv_prog_CPP
4476else
4477  ac_cv_prog_CPP=$CPP
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4480$as_echo "$CPP" >&6; }
4481ac_preproc_ok=false
4482for ac_c_preproc_warn_flag in '' yes
4483do
4484  # Use a header file that comes with gcc, so configuring glibc
4485  # with a fresh cross-compiler works.
4486  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487  # <limits.h> exists even on freestanding compilers.
4488  # On the NeXT, cc -E runs the code through the compiler's parser,
4489  # not just through cpp. "Syntax error" is here to catch this case.
4490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h.  */
4492#ifdef __STDC__
4493# include <limits.h>
4494#else
4495# include <assert.h>
4496#endif
4497		     Syntax error
4498_ACEOF
4499if ac_fn_c_try_cpp "$LINENO"; then :
4500
4501else
4502  # Broken: fails on valid input.
4503continue
4504fi
4505rm -f conftest.err conftest.i conftest.$ac_ext
4506
4507  # OK, works on sane cases.  Now check whether nonexistent headers
4508  # can be detected and how.
4509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511#include <ac_nonexistent.h>
4512_ACEOF
4513if ac_fn_c_try_cpp "$LINENO"; then :
4514  # Broken: success on invalid input.
4515continue
4516else
4517  # Passes both tests.
4518ac_preproc_ok=:
4519break
4520fi
4521rm -f conftest.err conftest.i conftest.$ac_ext
4522
4523done
4524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525rm -f conftest.i conftest.err conftest.$ac_ext
4526if $ac_preproc_ok; then :
4527
4528else
4529  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4532See \`config.log' for more details" "$LINENO" 5; }
4533fi
4534
4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4542$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4543if ${ac_cv_path_GREP+:} false; then :
4544  $as_echo_n "(cached) " >&6
4545else
4546  if test -z "$GREP"; then
4547  ac_path_GREP_found=false
4548  # Loop through the user's path and test for each of PROGNAME-LIST
4549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4551do
4552  IFS=$as_save_IFS
4553  test -z "$as_dir" && as_dir=.
4554    for ac_prog in grep ggrep; do
4555    for ac_exec_ext in '' $ac_executable_extensions; do
4556      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4557      as_fn_executable_p "$ac_path_GREP" || continue
4558# Check for GNU ac_path_GREP and select it if it is found.
4559  # Check for GNU $ac_path_GREP
4560case `"$ac_path_GREP" --version 2>&1` in
4561*GNU*)
4562  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4563*)
4564  ac_count=0
4565  $as_echo_n 0123456789 >"conftest.in"
4566  while :
4567  do
4568    cat "conftest.in" "conftest.in" >"conftest.tmp"
4569    mv "conftest.tmp" "conftest.in"
4570    cp "conftest.in" "conftest.nl"
4571    $as_echo 'GREP' >> "conftest.nl"
4572    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4573    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4574    as_fn_arith $ac_count + 1 && ac_count=$as_val
4575    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4576      # Best one so far, save it but keep looking for a better one
4577      ac_cv_path_GREP="$ac_path_GREP"
4578      ac_path_GREP_max=$ac_count
4579    fi
4580    # 10*(2^10) chars as input seems more than enough
4581    test $ac_count -gt 10 && break
4582  done
4583  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4584esac
4585
4586      $ac_path_GREP_found && break 3
4587    done
4588  done
4589  done
4590IFS=$as_save_IFS
4591  if test -z "$ac_cv_path_GREP"; then
4592    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4593  fi
4594else
4595  ac_cv_path_GREP=$GREP
4596fi
4597
4598fi
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4600$as_echo "$ac_cv_path_GREP" >&6; }
4601 GREP="$ac_cv_path_GREP"
4602
4603
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4605$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4606if ${ac_cv_path_SED+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4610     for ac_i in 1 2 3 4 5 6 7; do
4611       ac_script="$ac_script$as_nl$ac_script"
4612     done
4613     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4614     { ac_script=; unset ac_script;}
4615     if test -z "$SED"; then
4616  ac_path_SED_found=false
4617  # Loop through the user's path and test for each of PROGNAME-LIST
4618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621  IFS=$as_save_IFS
4622  test -z "$as_dir" && as_dir=.
4623    for ac_prog in sed gsed; do
4624    for ac_exec_ext in '' $ac_executable_extensions; do
4625      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4626      as_fn_executable_p "$ac_path_SED" || continue
4627# Check for GNU ac_path_SED and select it if it is found.
4628  # Check for GNU $ac_path_SED
4629case `"$ac_path_SED" --version 2>&1` in
4630*GNU*)
4631  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4632*)
4633  ac_count=0
4634  $as_echo_n 0123456789 >"conftest.in"
4635  while :
4636  do
4637    cat "conftest.in" "conftest.in" >"conftest.tmp"
4638    mv "conftest.tmp" "conftest.in"
4639    cp "conftest.in" "conftest.nl"
4640    $as_echo '' >> "conftest.nl"
4641    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643    as_fn_arith $ac_count + 1 && ac_count=$as_val
4644    if test $ac_count -gt ${ac_path_SED_max-0}; then
4645      # Best one so far, save it but keep looking for a better one
4646      ac_cv_path_SED="$ac_path_SED"
4647      ac_path_SED_max=$ac_count
4648    fi
4649    # 10*(2^10) chars as input seems more than enough
4650    test $ac_count -gt 10 && break
4651  done
4652  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653esac
4654
4655      $ac_path_SED_found && break 3
4656    done
4657  done
4658  done
4659IFS=$as_save_IFS
4660  if test -z "$ac_cv_path_SED"; then
4661    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4662  fi
4663else
4664  ac_cv_path_SED=$SED
4665fi
4666
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4669$as_echo "$ac_cv_path_SED" >&6; }
4670 SED="$ac_cv_path_SED"
4671  rm -f conftest.sed
4672
4673
4674
4675
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4677$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4678
4679# Check whether --with-cxx_main was given.
4680if test "${with_cxx_main+set}" = set; then :
4681  withval=$with_cxx_main;
4682
4683	case $withval in
4684	no)	with_cxx_main=no
4685		MAINCC='$(CC)';;
4686	yes)	with_cxx_main=yes
4687		MAINCC='$(CXX)';;
4688	*)	with_cxx_main=yes
4689		MAINCC=$withval
4690		if test -z "$CXX"
4691		then
4692			CXX=$withval
4693		fi;;
4694	esac
4695else
4696
4697	with_cxx_main=no
4698	MAINCC='$(CC)'
4699
4700fi
4701
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4703$as_echo "$with_cxx_main" >&6; }
4704
4705preset_cxx="$CXX"
4706if test -z "$CXX"
4707then
4708        case "$CC" in
4709        gcc)    if test -n "$ac_tool_prefix"; then
4710  # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4711set dummy ${ac_tool_prefix}g++; ac_word=$2
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713$as_echo_n "checking for $ac_word... " >&6; }
4714if ${ac_cv_path_CXX+:} false; then :
4715  $as_echo_n "(cached) " >&6
4716else
4717  case $CXX in
4718  [\\/]* | ?:[\\/]*)
4719  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4720  ;;
4721  *)
4722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in notfound
4724do
4725  IFS=$as_save_IFS
4726  test -z "$as_dir" && as_dir=.
4727    for ac_exec_ext in '' $ac_executable_extensions; do
4728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731    break 2
4732  fi
4733done
4734  done
4735IFS=$as_save_IFS
4736
4737  ;;
4738esac
4739fi
4740CXX=$ac_cv_path_CXX
4741if test -n "$CXX"; then
4742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4743$as_echo "$CXX" >&6; }
4744else
4745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746$as_echo "no" >&6; }
4747fi
4748
4749
4750fi
4751if test -z "$ac_cv_path_CXX"; then
4752  ac_pt_CXX=$CXX
4753  # Extract the first word of "g++", so it can be a program name with args.
4754set dummy g++; ac_word=$2
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756$as_echo_n "checking for $ac_word... " >&6; }
4757if ${ac_cv_path_ac_pt_CXX+:} false; then :
4758  $as_echo_n "(cached) " >&6
4759else
4760  case $ac_pt_CXX in
4761  [\\/]* | ?:[\\/]*)
4762  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4763  ;;
4764  *)
4765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in notfound
4767do
4768  IFS=$as_save_IFS
4769  test -z "$as_dir" && as_dir=.
4770    for ac_exec_ext in '' $ac_executable_extensions; do
4771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774    break 2
4775  fi
4776done
4777  done
4778IFS=$as_save_IFS
4779
4780  ;;
4781esac
4782fi
4783ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4784if test -n "$ac_pt_CXX"; then
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4786$as_echo "$ac_pt_CXX" >&6; }
4787else
4788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789$as_echo "no" >&6; }
4790fi
4791
4792  if test "x$ac_pt_CXX" = x; then
4793    CXX="g++"
4794  else
4795    case $cross_compiling:$ac_tool_warned in
4796yes:)
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799ac_tool_warned=yes ;;
4800esac
4801    CXX=$ac_pt_CXX
4802  fi
4803else
4804  CXX="$ac_cv_path_CXX"
4805fi
4806 ;;
4807        cc)     if test -n "$ac_tool_prefix"; then
4808  # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4809set dummy ${ac_tool_prefix}c++; ac_word=$2
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811$as_echo_n "checking for $ac_word... " >&6; }
4812if ${ac_cv_path_CXX+:} false; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815  case $CXX in
4816  [\\/]* | ?:[\\/]*)
4817  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4818  ;;
4819  *)
4820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in notfound
4822do
4823  IFS=$as_save_IFS
4824  test -z "$as_dir" && as_dir=.
4825    for ac_exec_ext in '' $ac_executable_extensions; do
4826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829    break 2
4830  fi
4831done
4832  done
4833IFS=$as_save_IFS
4834
4835  ;;
4836esac
4837fi
4838CXX=$ac_cv_path_CXX
4839if test -n "$CXX"; then
4840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4841$as_echo "$CXX" >&6; }
4842else
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844$as_echo "no" >&6; }
4845fi
4846
4847
4848fi
4849if test -z "$ac_cv_path_CXX"; then
4850  ac_pt_CXX=$CXX
4851  # Extract the first word of "c++", so it can be a program name with args.
4852set dummy c++; ac_word=$2
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
4855if ${ac_cv_path_ac_pt_CXX+:} false; then :
4856  $as_echo_n "(cached) " >&6
4857else
4858  case $ac_pt_CXX in
4859  [\\/]* | ?:[\\/]*)
4860  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4861  ;;
4862  *)
4863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in notfound
4865do
4866  IFS=$as_save_IFS
4867  test -z "$as_dir" && as_dir=.
4868    for ac_exec_ext in '' $ac_executable_extensions; do
4869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872    break 2
4873  fi
4874done
4875  done
4876IFS=$as_save_IFS
4877
4878  ;;
4879esac
4880fi
4881ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4882if test -n "$ac_pt_CXX"; then
4883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4884$as_echo "$ac_pt_CXX" >&6; }
4885else
4886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
4888fi
4889
4890  if test "x$ac_pt_CXX" = x; then
4891    CXX="c++"
4892  else
4893    case $cross_compiling:$ac_tool_warned in
4894yes:)
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897ac_tool_warned=yes ;;
4898esac
4899    CXX=$ac_pt_CXX
4900  fi
4901else
4902  CXX="$ac_cv_path_CXX"
4903fi
4904 ;;
4905        clang|*/clang)     if test -n "$ac_tool_prefix"; then
4906  # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
4907set dummy ${ac_tool_prefix}clang++; ac_word=$2
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909$as_echo_n "checking for $ac_word... " >&6; }
4910if ${ac_cv_path_CXX+:} false; then :
4911  $as_echo_n "(cached) " >&6
4912else
4913  case $CXX in
4914  [\\/]* | ?:[\\/]*)
4915  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4916  ;;
4917  *)
4918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919for as_dir in notfound
4920do
4921  IFS=$as_save_IFS
4922  test -z "$as_dir" && as_dir=.
4923    for ac_exec_ext in '' $ac_executable_extensions; do
4924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927    break 2
4928  fi
4929done
4930  done
4931IFS=$as_save_IFS
4932
4933  ;;
4934esac
4935fi
4936CXX=$ac_cv_path_CXX
4937if test -n "$CXX"; then
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4939$as_echo "$CXX" >&6; }
4940else
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
4943fi
4944
4945
4946fi
4947if test -z "$ac_cv_path_CXX"; then
4948  ac_pt_CXX=$CXX
4949  # Extract the first word of "clang++", so it can be a program name with args.
4950set dummy clang++; ac_word=$2
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
4953if ${ac_cv_path_ac_pt_CXX+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  case $ac_pt_CXX in
4957  [\\/]* | ?:[\\/]*)
4958  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4959  ;;
4960  *)
4961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in notfound
4963do
4964  IFS=$as_save_IFS
4965  test -z "$as_dir" && as_dir=.
4966    for ac_exec_ext in '' $ac_executable_extensions; do
4967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970    break 2
4971  fi
4972done
4973  done
4974IFS=$as_save_IFS
4975
4976  ;;
4977esac
4978fi
4979ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4980if test -n "$ac_pt_CXX"; then
4981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4982$as_echo "$ac_pt_CXX" >&6; }
4983else
4984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985$as_echo "no" >&6; }
4986fi
4987
4988  if test "x$ac_pt_CXX" = x; then
4989    CXX="clang++"
4990  else
4991    case $cross_compiling:$ac_tool_warned in
4992yes:)
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4995ac_tool_warned=yes ;;
4996esac
4997    CXX=$ac_pt_CXX
4998  fi
4999else
5000  CXX="$ac_cv_path_CXX"
5001fi
5002 ;;
5003        icc|*/icc)         if test -n "$ac_tool_prefix"; then
5004  # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
5005set dummy ${ac_tool_prefix}icpc; ac_word=$2
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007$as_echo_n "checking for $ac_word... " >&6; }
5008if ${ac_cv_path_CXX+:} false; then :
5009  $as_echo_n "(cached) " >&6
5010else
5011  case $CXX in
5012  [\\/]* | ?:[\\/]*)
5013  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
5014  ;;
5015  *)
5016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in notfound
5018do
5019  IFS=$as_save_IFS
5020  test -z "$as_dir" && as_dir=.
5021    for ac_exec_ext in '' $ac_executable_extensions; do
5022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023    ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
5024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025    break 2
5026  fi
5027done
5028  done
5029IFS=$as_save_IFS
5030
5031  ;;
5032esac
5033fi
5034CXX=$ac_cv_path_CXX
5035if test -n "$CXX"; then
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5037$as_echo "$CXX" >&6; }
5038else
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040$as_echo "no" >&6; }
5041fi
5042
5043
5044fi
5045if test -z "$ac_cv_path_CXX"; then
5046  ac_pt_CXX=$CXX
5047  # Extract the first word of "icpc", so it can be a program name with args.
5048set dummy icpc; ac_word=$2
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050$as_echo_n "checking for $ac_word... " >&6; }
5051if ${ac_cv_path_ac_pt_CXX+:} false; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  case $ac_pt_CXX in
5055  [\\/]* | ?:[\\/]*)
5056  ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
5057  ;;
5058  *)
5059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060for as_dir in notfound
5061do
5062  IFS=$as_save_IFS
5063  test -z "$as_dir" && as_dir=.
5064    for ac_exec_ext in '' $ac_executable_extensions; do
5065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066    ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
5067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068    break 2
5069  fi
5070done
5071  done
5072IFS=$as_save_IFS
5073
5074  ;;
5075esac
5076fi
5077ac_pt_CXX=$ac_cv_path_ac_pt_CXX
5078if test -n "$ac_pt_CXX"; then
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
5080$as_echo "$ac_pt_CXX" >&6; }
5081else
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083$as_echo "no" >&6; }
5084fi
5085
5086  if test "x$ac_pt_CXX" = x; then
5087    CXX="icpc"
5088  else
5089    case $cross_compiling:$ac_tool_warned in
5090yes:)
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093ac_tool_warned=yes ;;
5094esac
5095    CXX=$ac_pt_CXX
5096  fi
5097else
5098  CXX="$ac_cv_path_CXX"
5099fi
5100 ;;
5101        esac
5102	if test "$CXX" = "notfound"
5103	then
5104		CXX=""
5105	fi
5106fi
5107if test -z "$CXX"
5108then
5109	if test -n "$ac_tool_prefix"; then
5110  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5111  do
5112    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115$as_echo_n "checking for $ac_word... " >&6; }
5116if ${ac_cv_prog_CXX+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  if test -n "$CXX"; then
5120  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125  IFS=$as_save_IFS
5126  test -z "$as_dir" && as_dir=.
5127    for ac_exec_ext in '' $ac_executable_extensions; do
5128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131    break 2
5132  fi
5133done
5134  done
5135IFS=$as_save_IFS
5136
5137fi
5138fi
5139CXX=$ac_cv_prog_CXX
5140if test -n "$CXX"; then
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5142$as_echo "$CXX" >&6; }
5143else
5144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
5146fi
5147
5148
5149    test -n "$CXX" && break
5150  done
5151fi
5152if test -z "$CXX"; then
5153  ac_ct_CXX=$CXX
5154  for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5155do
5156  # Extract the first word of "$ac_prog", so it can be a program name with args.
5157set dummy $ac_prog; ac_word=$2
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; }
5160if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5161  $as_echo_n "(cached) " >&6
5162else
5163  if test -n "$ac_ct_CXX"; then
5164  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169  IFS=$as_save_IFS
5170  test -z "$as_dir" && as_dir=.
5171    for ac_exec_ext in '' $ac_executable_extensions; do
5172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173    ac_cv_prog_ac_ct_CXX="$ac_prog"
5174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175    break 2
5176  fi
5177done
5178  done
5179IFS=$as_save_IFS
5180
5181fi
5182fi
5183ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5184if test -n "$ac_ct_CXX"; then
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5186$as_echo "$ac_ct_CXX" >&6; }
5187else
5188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
5190fi
5191
5192
5193  test -n "$ac_ct_CXX" && break
5194done
5195
5196  if test "x$ac_ct_CXX" = x; then
5197    CXX="notfound"
5198  else
5199    case $cross_compiling:$ac_tool_warned in
5200yes:)
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203ac_tool_warned=yes ;;
5204esac
5205    CXX=$ac_ct_CXX
5206  fi
5207fi
5208
5209	if test "$CXX" = "notfound"
5210	then
5211		CXX=""
5212	fi
5213fi
5214if test "$preset_cxx" != "$CXX"
5215then
5216        { $as_echo "$as_me:${as_lineno-$LINENO}:
5217
5218  By default, distutils will build C++ extension modules with \"$CXX\".
5219  If this is not intended, then set CXX on the configure command line.
5220  " >&5
5221$as_echo "$as_me:
5222
5223  By default, distutils will build C++ extension modules with \"$CXX\".
5224  If this is not intended, then set CXX on the configure command line.
5225  " >&6;}
5226fi
5227
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
5230$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
5231cat >> conftest.c <<EOF
5232#undef bfin
5233#undef cris
5234#undef fr30
5235#undef linux
5236#undef hppa
5237#undef hpux
5238#undef i386
5239#undef mips
5240#undef powerpc
5241#undef sparc
5242#undef unix
5243#if defined(__ANDROID__)
5244    # Android is not a multiarch system.
5245#elif defined(__linux__)
5246# if defined(__x86_64__) && defined(__LP64__)
5247        x86_64-linux-gnu
5248# elif defined(__x86_64__) && defined(__ILP32__)
5249        x86_64-linux-gnux32
5250# elif defined(__i386__)
5251        i386-linux-gnu
5252# elif defined(__aarch64__) && defined(__AARCH64EL__)
5253#  if defined(__ILP32__)
5254        aarch64_ilp32-linux-gnu
5255#  else
5256        aarch64-linux-gnu
5257#  endif
5258# elif defined(__aarch64__) && defined(__AARCH64EB__)
5259#  if defined(__ILP32__)
5260        aarch64_be_ilp32-linux-gnu
5261#  else
5262        aarch64_be-linux-gnu
5263#  endif
5264# elif defined(__alpha__)
5265        alpha-linux-gnu
5266# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP)
5267#  if defined(__ARMEL__)
5268        arm-linux-gnueabihf
5269#  else
5270        armeb-linux-gnueabihf
5271#  endif
5272# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP)
5273#  if defined(__ARMEL__)
5274        arm-linux-gnueabi
5275#  else
5276        armeb-linux-gnueabi
5277#  endif
5278# elif defined(__hppa__)
5279        hppa-linux-gnu
5280# elif defined(__ia64__)
5281        ia64-linux-gnu
5282# elif defined(__m68k__) && !defined(__mcoldfire__)
5283        m68k-linux-gnu
5284# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
5285#  if _MIPS_SIM == _ABIO32
5286        mipsisa32r6el-linux-gnu
5287#  elif _MIPS_SIM == _ABIN32
5288        mipsisa64r6el-linux-gnuabin32
5289#  elif _MIPS_SIM == _ABI64
5290        mipsisa64r6el-linux-gnuabi64
5291#  else
5292#   error unknown platform triplet
5293#  endif
5294# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6)
5295#  if _MIPS_SIM == _ABIO32
5296        mipsisa32r6-linux-gnu
5297#  elif _MIPS_SIM == _ABIN32
5298        mipsisa64r6-linux-gnuabin32
5299#  elif _MIPS_SIM == _ABI64
5300        mipsisa64r6-linux-gnuabi64
5301#  else
5302#   error unknown platform triplet
5303#  endif
5304# elif defined(__mips_hard_float) && defined(_MIPSEL)
5305#  if _MIPS_SIM == _ABIO32
5306        mipsel-linux-gnu
5307#  elif _MIPS_SIM == _ABIN32
5308        mips64el-linux-gnuabin32
5309#  elif _MIPS_SIM == _ABI64
5310        mips64el-linux-gnuabi64
5311#  else
5312#   error unknown platform triplet
5313#  endif
5314# elif defined(__mips_hard_float)
5315#  if _MIPS_SIM == _ABIO32
5316        mips-linux-gnu
5317#  elif _MIPS_SIM == _ABIN32
5318        mips64-linux-gnuabin32
5319#  elif _MIPS_SIM == _ABI64
5320        mips64-linux-gnuabi64
5321#  else
5322#   error unknown platform triplet
5323#  endif
5324# elif defined(__or1k__)
5325        or1k-linux-gnu
5326# elif defined(__powerpc__) && defined(__SPE__)
5327        powerpc-linux-gnuspe
5328# elif defined(__powerpc64__)
5329#  if defined(__LITTLE_ENDIAN__)
5330        powerpc64le-linux-gnu
5331#  else
5332        powerpc64-linux-gnu
5333#  endif
5334# elif defined(__powerpc__)
5335        powerpc-linux-gnu
5336# elif defined(__s390x__)
5337        s390x-linux-gnu
5338# elif defined(__s390__)
5339        s390-linux-gnu
5340# elif defined(__sh__) && defined(__LITTLE_ENDIAN__)
5341        sh4-linux-gnu
5342# elif defined(__sparc__) && defined(__arch64__)
5343        sparc64-linux-gnu
5344# elif defined(__sparc__)
5345        sparc-linux-gnu
5346# elif defined(__riscv)
5347#  if __riscv_xlen == 32
5348        riscv32-linux-gnu
5349#  elif __riscv_xlen == 64
5350        riscv64-linux-gnu
5351#  else
5352#   error unknown platform triplet
5353#  endif
5354# else
5355#   error unknown platform triplet
5356# endif
5357#elif defined(__FreeBSD_kernel__)
5358# if defined(__LP64__)
5359        x86_64-kfreebsd-gnu
5360# elif defined(__i386__)
5361        i386-kfreebsd-gnu
5362# else
5363#   error unknown platform triplet
5364# endif
5365#elif defined(__gnu_hurd__)
5366        i386-gnu
5367#elif defined(__APPLE__)
5368        darwin
5369#elif defined(__VXWORKS__)
5370        vxworks
5371#else
5372# error unknown platform triplet
5373#endif
5374
5375EOF
5376
5377if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
5378  PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'`
5379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
5380$as_echo "$PLATFORM_TRIPLET" >&6; }
5381else
5382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5383$as_echo "none" >&6; }
5384fi
5385rm -f conftest.c conftest.out
5386
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5
5388$as_echo_n "checking for multiarch... " >&6; }
5389case $ac_sys_system in #(
5390  Darwin*) :
5391    MULTIARCH="" ;; #(
5392  FreeBSD*) :
5393    MULTIARCH="" ;; #(
5394  *) :
5395    MULTIARCH=$($CC --print-multiarch 2>/dev/null)
5396 ;;
5397esac
5398
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5
5400$as_echo "$MULTIARCH" >&6; }
5401
5402if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
5403  if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
5404    as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
5405  fi
5406elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
5407  MULTIARCH=$PLATFORM_TRIPLET
5408fi
5409
5410
5411if test x$MULTIARCH != x; then
5412  MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
5413fi
5414
5415
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
5417$as_echo_n "checking for -Wl,--no-as-needed... " >&6; }
5418save_LDFLAGS="$LDFLAGS"
5419LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
5420
5421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422/* end confdefs.h.  */
5423
5424int
5425main ()
5426{
5427
5428  ;
5429  return 0;
5430}
5431_ACEOF
5432if ac_fn_c_try_link "$LINENO"; then :
5433  NO_AS_NEEDED="-Wl,--no-as-needed"
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5435$as_echo "yes" >&6; }
5436else
5437  NO_AS_NEEDED=""
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439$as_echo "no" >&6; }
5440fi
5441rm -f core conftest.err conftest.$ac_objext \
5442    conftest$ac_exeext conftest.$ac_ext
5443LDFLAGS="$save_LDFLAGS"
5444
5445
5446
5447# checks for UNIX variants that set C preprocessor variables
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5450$as_echo_n "checking for egrep... " >&6; }
5451if ${ac_cv_path_EGREP+:} false; then :
5452  $as_echo_n "(cached) " >&6
5453else
5454  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5455   then ac_cv_path_EGREP="$GREP -E"
5456   else
5457     if test -z "$EGREP"; then
5458  ac_path_EGREP_found=false
5459  # Loop through the user's path and test for each of PROGNAME-LIST
5460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5462do
5463  IFS=$as_save_IFS
5464  test -z "$as_dir" && as_dir=.
5465    for ac_prog in egrep; do
5466    for ac_exec_ext in '' $ac_executable_extensions; do
5467      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5468      as_fn_executable_p "$ac_path_EGREP" || continue
5469# Check for GNU ac_path_EGREP and select it if it is found.
5470  # Check for GNU $ac_path_EGREP
5471case `"$ac_path_EGREP" --version 2>&1` in
5472*GNU*)
5473  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5474*)
5475  ac_count=0
5476  $as_echo_n 0123456789 >"conftest.in"
5477  while :
5478  do
5479    cat "conftest.in" "conftest.in" >"conftest.tmp"
5480    mv "conftest.tmp" "conftest.in"
5481    cp "conftest.in" "conftest.nl"
5482    $as_echo 'EGREP' >> "conftest.nl"
5483    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5485    as_fn_arith $ac_count + 1 && ac_count=$as_val
5486    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5487      # Best one so far, save it but keep looking for a better one
5488      ac_cv_path_EGREP="$ac_path_EGREP"
5489      ac_path_EGREP_max=$ac_count
5490    fi
5491    # 10*(2^10) chars as input seems more than enough
5492    test $ac_count -gt 10 && break
5493  done
5494  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495esac
5496
5497      $ac_path_EGREP_found && break 3
5498    done
5499  done
5500  done
5501IFS=$as_save_IFS
5502  if test -z "$ac_cv_path_EGREP"; then
5503    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5504  fi
5505else
5506  ac_cv_path_EGREP=$EGREP
5507fi
5508
5509   fi
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5512$as_echo "$ac_cv_path_EGREP" >&6; }
5513 EGREP="$ac_cv_path_EGREP"
5514
5515
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5517$as_echo_n "checking for ANSI C header files... " >&6; }
5518if ${ac_cv_header_stdc+:} false; then :
5519  $as_echo_n "(cached) " >&6
5520else
5521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522/* end confdefs.h.  */
5523#include <stdlib.h>
5524#include <stdarg.h>
5525#include <string.h>
5526#include <float.h>
5527
5528int
5529main ()
5530{
5531
5532  ;
5533  return 0;
5534}
5535_ACEOF
5536if ac_fn_c_try_compile "$LINENO"; then :
5537  ac_cv_header_stdc=yes
5538else
5539  ac_cv_header_stdc=no
5540fi
5541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542
5543if test $ac_cv_header_stdc = yes; then
5544  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547#include <string.h>
5548
5549_ACEOF
5550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551  $EGREP "memchr" >/dev/null 2>&1; then :
5552
5553else
5554  ac_cv_header_stdc=no
5555fi
5556rm -f conftest*
5557
5558fi
5559
5560if test $ac_cv_header_stdc = yes; then
5561  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h.  */
5564#include <stdlib.h>
5565
5566_ACEOF
5567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5568  $EGREP "free" >/dev/null 2>&1; then :
5569
5570else
5571  ac_cv_header_stdc=no
5572fi
5573rm -f conftest*
5574
5575fi
5576
5577if test $ac_cv_header_stdc = yes; then
5578  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5579  if test "$cross_compiling" = yes; then :
5580  :
5581else
5582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584#include <ctype.h>
5585#include <stdlib.h>
5586#if ((' ' & 0x0FF) == 0x020)
5587# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5588# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5589#else
5590# define ISLOWER(c) \
5591		   (('a' <= (c) && (c) <= 'i') \
5592		     || ('j' <= (c) && (c) <= 'r') \
5593		     || ('s' <= (c) && (c) <= 'z'))
5594# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5595#endif
5596
5597#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5598int
5599main ()
5600{
5601  int i;
5602  for (i = 0; i < 256; i++)
5603    if (XOR (islower (i), ISLOWER (i))
5604	|| toupper (i) != TOUPPER (i))
5605      return 2;
5606  return 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_run "$LINENO"; then :
5610
5611else
5612  ac_cv_header_stdc=no
5613fi
5614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5615  conftest.$ac_objext conftest.beam conftest.$ac_ext
5616fi
5617
5618fi
5619fi
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5621$as_echo "$ac_cv_header_stdc" >&6; }
5622if test $ac_cv_header_stdc = yes; then
5623
5624$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5625
5626fi
5627
5628# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5629for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5630		  inttypes.h stdint.h unistd.h
5631do :
5632  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5634"
5635if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5636  cat >>confdefs.h <<_ACEOF
5637#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5638_ACEOF
5639
5640fi
5641
5642done
5643
5644
5645
5646  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5647if test "x$ac_cv_header_minix_config_h" = xyes; then :
5648  MINIX=yes
5649else
5650  MINIX=
5651fi
5652
5653
5654  if test "$MINIX" = yes; then
5655
5656$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5657
5658
5659$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5660
5661
5662$as_echo "#define _MINIX 1" >>confdefs.h
5663
5664  fi
5665
5666
5667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5668$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5669if ${ac_cv_safe_to_define___extensions__+:} false; then :
5670  $as_echo_n "(cached) " >&6
5671else
5672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673/* end confdefs.h.  */
5674
5675#         define __EXTENSIONS__ 1
5676          $ac_includes_default
5677int
5678main ()
5679{
5680
5681  ;
5682  return 0;
5683}
5684_ACEOF
5685if ac_fn_c_try_compile "$LINENO"; then :
5686  ac_cv_safe_to_define___extensions__=yes
5687else
5688  ac_cv_safe_to_define___extensions__=no
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5693$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5694  test $ac_cv_safe_to_define___extensions__ = yes &&
5695    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5696
5697  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5698
5699  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5700
5701  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5702
5703  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5704
5705
5706
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
5708$as_echo_n "checking for the Android API level... " >&6; }
5709cat >> conftest.c <<EOF
5710#ifdef __ANDROID__
5711android_api = __ANDROID_API__
5712arm_arch = __ARM_ARCH
5713#else
5714#error not Android
5715#endif
5716EOF
5717
5718if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
5719  ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
5720  _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
5721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
5722$as_echo "$ANDROID_API_LEVEL" >&6; }
5723  if test -z "$ANDROID_API_LEVEL"; then
5724    echo 'Fatal: you must define __ANDROID_API__'
5725    exit 1
5726  fi
5727
5728cat >>confdefs.h <<_ACEOF
5729#define ANDROID_API_LEVEL $ANDROID_API_LEVEL
5730_ACEOF
5731
5732
5733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
5734$as_echo_n "checking for the Android arm ABI... " >&6; }
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
5736$as_echo "$_arm_arch" >&6; }
5737  if test "$_arm_arch" = 7; then
5738    BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
5739    LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
5740  fi
5741else
5742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
5743$as_echo "not Android" >&6; }
5744fi
5745rm -f conftest.c conftest.out
5746
5747# Check for unsupported systems
5748case $ac_sys_system/$ac_sys_release in
5749atheos*|Linux*/1*)
5750   echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5751   echo See README for details.
5752   exit 1;;
5753esac
5754
5755
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5757$as_echo_n "checking for --with-suffix... " >&6; }
5758
5759# Check whether --with-suffix was given.
5760if test "${with_suffix+set}" = set; then :
5761  withval=$with_suffix;
5762	case $withval in
5763	no)	EXEEXT=;;
5764	yes)	EXEEXT=.exe;;
5765	*)	EXEEXT=$withval;;
5766	esac
5767fi
5768
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5770$as_echo "$EXEEXT" >&6; }
5771
5772# Test whether we're running on a non-case-sensitive system, in which
5773# case we give a warning if no ext is given
5774
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5776$as_echo_n "checking for case-insensitive build directory... " >&6; }
5777if test ! -d CaseSensitiveTestDir; then
5778mkdir CaseSensitiveTestDir
5779fi
5780
5781if test -d casesensitivetestdir
5782then
5783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5784$as_echo "yes" >&6; }
5785    BUILDEXEEXT=.exe
5786else
5787	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789	BUILDEXEEXT=$EXEEXT
5790fi
5791rmdir CaseSensitiveTestDir
5792
5793case $ac_sys_system in
5794hp*|HP*)
5795    case $CC in
5796    cc|*/cc) CC="$CC -Ae";;
5797    esac;;
5798esac
5799
5800
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5802$as_echo_n "checking LIBRARY... " >&6; }
5803if test -z "$LIBRARY"
5804then
5805	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
5806fi
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5808$as_echo "$LIBRARY" >&6; }
5809
5810# LDLIBRARY is the name of the library to link against (as opposed to the
5811# name of the library into which to insert object files). BLDLIBRARY is also
5812# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5813# is blank as the main program is not linked directly against LDLIBRARY.
5814# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5815# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5816# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5817# DLLLIBRARY is the shared (i.e., DLL) library.
5818#
5819# RUNSHARED is used to run shared python without installed libraries
5820#
5821# INSTSONAME is the name of the shared library that will be use to install
5822# on the system - some systems like version suffix, others don't
5823#
5824# LDVERSION is the shared library version number, normally the Python version
5825# with the ABI build flags appended.
5826
5827
5828
5829
5830
5831
5832
5833
5834LDLIBRARY="$LIBRARY"
5835BLDLIBRARY='$(LDLIBRARY)'
5836INSTSONAME='$(LDLIBRARY)'
5837DLLLIBRARY=''
5838LDLIBRARYDIR=''
5839RUNSHARED=''
5840LDVERSION="$VERSION"
5841
5842# LINKCC is the command that links the python executable -- default is $(CC).
5843# If CXX is set, and if it is needed to link a main function that was
5844# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5845# python might then depend on the C++ runtime
5846
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5848$as_echo_n "checking LINKCC... " >&6; }
5849if test -z "$LINKCC"
5850then
5851	LINKCC='$(PURIFY) $(MAINCC)'
5852	case $ac_sys_system in
5853	QNX*)
5854	   # qcc must be used because the other compilers do not
5855	   # support -N.
5856	   LINKCC=qcc;;
5857	esac
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5860$as_echo "$LINKCC" >&6; }
5861
5862# EXPORTSYMS holds the list of exported symbols for AIX.
5863# EXPORTSFROM holds the module name exporting symbols on AIX.
5864EXPORTSYMS=
5865EXPORTSFROM=
5866
5867
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5
5869$as_echo_n "checking EXPORTSYMS... " >&6; }
5870case $ac_sys_system in
5871AIX*)
5872	EXPORTSYMS="Modules/python.exp"
5873	EXPORTSFROM=. # the main executable
5874	;;
5875esac
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5
5877$as_echo "$EXPORTSYMS" >&6; }
5878
5879# GNULD is set to "yes" if the GNU linker is used.  If this goes wrong
5880# make sure we default having it set to "no": this is used by
5881# distutils.unixccompiler to know if it should add --enable-new-dtags
5882# to linker command lines, and failing to detect GNU ld simply results
5883# in the same bahaviour as before.
5884
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5886$as_echo_n "checking for GNU ld... " >&6; }
5887ac_prog=ld
5888if test "$GCC" = yes; then
5889       ac_prog=`$CC -print-prog-name=ld`
5890fi
5891case `"$ac_prog" -V 2>&1 < /dev/null` in
5892      *GNU*)
5893          GNULD=yes;;
5894      *)
5895          GNULD=no;;
5896esac
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5898$as_echo "$GNULD" >&6; }
5899
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5901$as_echo_n "checking for --enable-shared... " >&6; }
5902# Check whether --enable-shared was given.
5903if test "${enable_shared+set}" = set; then :
5904  enableval=$enable_shared;
5905fi
5906
5907
5908if test -z "$enable_shared"
5909then
5910  case $ac_sys_system in
5911  CYGWIN*)
5912    enable_shared="yes";;
5913  *)
5914    enable_shared="no";;
5915  esac
5916fi
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5918$as_echo "$enable_shared" >&6; }
5919
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5921$as_echo_n "checking for --enable-profiling... " >&6; }
5922# Check whether --enable-profiling was given.
5923if test "${enable_profiling+set}" = set; then :
5924  enableval=$enable_profiling;
5925fi
5926
5927if test "x$enable_profiling" = xyes; then
5928  ac_save_cc="$CC"
5929  CC="$CC -pg"
5930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932int main() { return 0; }
5933_ACEOF
5934if ac_fn_c_try_link "$LINENO"; then :
5935
5936else
5937  enable_profiling=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext \
5940    conftest$ac_exeext conftest.$ac_ext
5941  CC="$ac_save_cc"
5942else
5943  enable_profiling=no
5944fi
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5946$as_echo "$enable_profiling" >&6; }
5947
5948if test "x$enable_profiling" = xyes; then
5949  BASECFLAGS="-pg $BASECFLAGS"
5950  LDFLAGS="-pg $LDFLAGS"
5951fi
5952
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5954$as_echo_n "checking LDLIBRARY... " >&6; }
5955
5956# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5957# library that we build, but we do not want to link against it (we
5958# will find it with a -framework option). For this reason there is an
5959# extra variable BLDLIBRARY against which Python and the extension
5960# modules are linked, BLDLIBRARY. This is normally the same as
5961# LDLIBRARY, but empty for MacOSX framework builds.
5962if test "$enable_framework"
5963then
5964  LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
5965  RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
5966  BLDLIBRARY=''
5967else
5968  BLDLIBRARY='$(LDLIBRARY)'
5969fi
5970
5971# Other platforms follow
5972if test $enable_shared = "yes"; then
5973  PY_ENABLE_SHARED=1
5974
5975$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
5976
5977  case $ac_sys_system in
5978    CYGWIN*)
5979          LDLIBRARY='libpython$(LDVERSION).dll.a'
5980          DLLLIBRARY='libpython$(LDVERSION).dll'
5981          ;;
5982    SunOS*)
5983	  LDLIBRARY='libpython$(LDVERSION).so'
5984	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
5985	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5986	  INSTSONAME="$LDLIBRARY".$SOVERSION
5987	  if test "$with_pydebug" != yes
5988	  then
5989	      PY3LIBRARY=libpython3.so
5990	  fi
5991          ;;
5992    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*)
5993	  LDLIBRARY='libpython$(LDVERSION).so'
5994	  BLDLIBRARY='-L. -lpython$(LDVERSION)'
5995	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5996	  INSTSONAME="$LDLIBRARY".$SOVERSION
5997	  if test "$with_pydebug" != yes
5998          then
5999	      PY3LIBRARY=libpython3.so
6000	  fi
6001	  ;;
6002    hp*|HP*)
6003	  case `uname -m` in
6004		ia64)
6005			LDLIBRARY='libpython$(LDVERSION).so'
6006			;;
6007		*)
6008			LDLIBRARY='libpython$(LDVERSION).sl'
6009			;;
6010	  esac
6011	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
6012	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
6013	  ;;
6014    Darwin*)
6015    	LDLIBRARY='libpython$(LDVERSION).dylib'
6016	BLDLIBRARY='-L. -lpython$(LDVERSION)'
6017	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
6018	;;
6019    AIX*)
6020	LDLIBRARY='libpython$(LDVERSION).so'
6021	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
6022	;;
6023
6024  esac
6025else # shared is disabled
6026  PY_ENABLE_SHARED=0
6027  case $ac_sys_system in
6028    CYGWIN*)
6029          BLDLIBRARY='$(LIBRARY)'
6030          LDLIBRARY='libpython$(LDVERSION).dll.a'
6031          ;;
6032  esac
6033fi
6034
6035if test "$cross_compiling" = yes; then
6036	RUNSHARED=
6037fi
6038
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
6040$as_echo "$LDLIBRARY" >&6; }
6041
6042
6043if test -n "$ac_tool_prefix"; then
6044  for ac_prog in ar aal
6045  do
6046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049$as_echo_n "checking for $ac_word... " >&6; }
6050if ${ac_cv_prog_AR+:} false; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  if test -n "$AR"; then
6054  ac_cv_prog_AR="$AR" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059  IFS=$as_save_IFS
6060  test -z "$as_dir" && as_dir=.
6061    for ac_exec_ext in '' $ac_executable_extensions; do
6062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065    break 2
6066  fi
6067done
6068  done
6069IFS=$as_save_IFS
6070
6071fi
6072fi
6073AR=$ac_cv_prog_AR
6074if test -n "$AR"; then
6075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6076$as_echo "$AR" >&6; }
6077else
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
6080fi
6081
6082
6083    test -n "$AR" && break
6084  done
6085fi
6086if test -z "$AR"; then
6087  ac_ct_AR=$AR
6088  for ac_prog in ar aal
6089do
6090  # Extract the first word of "$ac_prog", so it can be a program name with args.
6091set dummy $ac_prog; ac_word=$2
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
6094if ${ac_cv_prog_ac_ct_AR+:} false; then :
6095  $as_echo_n "(cached) " >&6
6096else
6097  if test -n "$ac_ct_AR"; then
6098  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103  IFS=$as_save_IFS
6104  test -z "$as_dir" && as_dir=.
6105    for ac_exec_ext in '' $ac_executable_extensions; do
6106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107    ac_cv_prog_ac_ct_AR="$ac_prog"
6108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109    break 2
6110  fi
6111done
6112  done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117ac_ct_AR=$ac_cv_prog_ac_ct_AR
6118if test -n "$ac_ct_AR"; then
6119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6120$as_echo "$ac_ct_AR" >&6; }
6121else
6122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124fi
6125
6126
6127  test -n "$ac_ct_AR" && break
6128done
6129
6130  if test "x$ac_ct_AR" = x; then
6131    AR="ar"
6132  else
6133    case $cross_compiling:$ac_tool_warned in
6134yes:)
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6137ac_tool_warned=yes ;;
6138esac
6139    AR=$ac_ct_AR
6140  fi
6141fi
6142
6143
6144# tweak ARFLAGS only if the user didn't set it on the command line
6145
6146if test -z "$ARFLAGS"
6147then
6148        ARFLAGS="rcs"
6149fi
6150
6151if test -n "$ac_tool_prefix"; then
6152  for ac_prog in readelf
6153  do
6154    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157$as_echo_n "checking for $ac_word... " >&6; }
6158if ${ac_cv_prog_READELF+:} false; then :
6159  $as_echo_n "(cached) " >&6
6160else
6161  if test -n "$READELF"; then
6162  ac_cv_prog_READELF="$READELF" # Let the user override the test.
6163else
6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165for as_dir in $PATH
6166do
6167  IFS=$as_save_IFS
6168  test -z "$as_dir" && as_dir=.
6169    for ac_exec_ext in '' $ac_executable_extensions; do
6170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171    ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173    break 2
6174  fi
6175done
6176  done
6177IFS=$as_save_IFS
6178
6179fi
6180fi
6181READELF=$ac_cv_prog_READELF
6182if test -n "$READELF"; then
6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6184$as_echo "$READELF" >&6; }
6185else
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187$as_echo "no" >&6; }
6188fi
6189
6190
6191    test -n "$READELF" && break
6192  done
6193fi
6194if test -z "$READELF"; then
6195  ac_ct_READELF=$READELF
6196  for ac_prog in readelf
6197do
6198  # Extract the first word of "$ac_prog", so it can be a program name with args.
6199set dummy $ac_prog; ac_word=$2
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201$as_echo_n "checking for $ac_word... " >&6; }
6202if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  if test -n "$ac_ct_READELF"; then
6206  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6207else
6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209for as_dir in $PATH
6210do
6211  IFS=$as_save_IFS
6212  test -z "$as_dir" && as_dir=.
6213    for ac_exec_ext in '' $ac_executable_extensions; do
6214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215    ac_cv_prog_ac_ct_READELF="$ac_prog"
6216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217    break 2
6218  fi
6219done
6220  done
6221IFS=$as_save_IFS
6222
6223fi
6224fi
6225ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6226if test -n "$ac_ct_READELF"; then
6227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6228$as_echo "$ac_ct_READELF" >&6; }
6229else
6230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231$as_echo "no" >&6; }
6232fi
6233
6234
6235  test -n "$ac_ct_READELF" && break
6236done
6237
6238  if test "x$ac_ct_READELF" = x; then
6239    READELF=":"
6240  else
6241    case $cross_compiling:$ac_tool_warned in
6242yes:)
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245ac_tool_warned=yes ;;
6246esac
6247    READELF=$ac_ct_READELF
6248  fi
6249fi
6250
6251if test "$cross_compiling" = yes; then
6252    case "$READELF" in
6253	readelf|:)
6254	as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
6255	;;
6256    esac
6257fi
6258
6259
6260
6261case $MACHDEP in
6262hp*|HP*)
6263	# install -d does not work on HP-UX
6264	if test -z "$INSTALL"
6265	then
6266		INSTALL="${srcdir}/install-sh -c"
6267	fi
6268esac
6269# Find a good install program.  We prefer a C program (faster),
6270# so one script is as good as another.  But avoid the broken or
6271# incompatible versions:
6272# SysV /etc/install, /usr/sbin/install
6273# SunOS /usr/etc/install
6274# IRIX /sbin/install
6275# AIX /bin/install
6276# AmigaOS /C/install, which installs bootblocks on floppy discs
6277# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6278# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6279# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6280# OS/2's system install, which has a completely different semantic
6281# ./install, which can be erroneously created by make from ./install.sh.
6282# Reject install programs that cannot install multiple files.
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6284$as_echo_n "checking for a BSD-compatible install... " >&6; }
6285if test -z "$INSTALL"; then
6286if ${ac_cv_path_install+:} false; then :
6287  $as_echo_n "(cached) " >&6
6288else
6289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292  IFS=$as_save_IFS
6293  test -z "$as_dir" && as_dir=.
6294    # Account for people who put trailing slashes in PATH elements.
6295case $as_dir/ in #((
6296  ./ | .// | /[cC]/* | \
6297  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6298  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6299  /usr/ucb/* ) ;;
6300  *)
6301    # OSF1 and SCO ODT 3.0 have their own names for install.
6302    # Don't use installbsd from OSF since it installs stuff as root
6303    # by default.
6304    for ac_prog in ginstall scoinst install; do
6305      for ac_exec_ext in '' $ac_executable_extensions; do
6306	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6307	  if test $ac_prog = install &&
6308	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6309	    # AIX install.  It has an incompatible calling convention.
6310	    :
6311	  elif test $ac_prog = install &&
6312	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6313	    # program-specific install script used by HP pwplus--don't use.
6314	    :
6315	  else
6316	    rm -rf conftest.one conftest.two conftest.dir
6317	    echo one > conftest.one
6318	    echo two > conftest.two
6319	    mkdir conftest.dir
6320	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6321	      test -s conftest.one && test -s conftest.two &&
6322	      test -s conftest.dir/conftest.one &&
6323	      test -s conftest.dir/conftest.two
6324	    then
6325	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6326	      break 3
6327	    fi
6328	  fi
6329	fi
6330      done
6331    done
6332    ;;
6333esac
6334
6335  done
6336IFS=$as_save_IFS
6337
6338rm -rf conftest.one conftest.two conftest.dir
6339
6340fi
6341  if test "${ac_cv_path_install+set}" = set; then
6342    INSTALL=$ac_cv_path_install
6343  else
6344    # As a last resort, use the slow shell script.  Don't cache a
6345    # value for INSTALL within a source directory, because that will
6346    # break other packages using the cache if that directory is
6347    # removed, or if the value is a relative name.
6348    INSTALL=$ac_install_sh
6349  fi
6350fi
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6352$as_echo "$INSTALL" >&6; }
6353
6354# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6355# It thinks the first close brace ends the variable substitution.
6356test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6357
6358test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6359
6360test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6361
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6363$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6364if test -z "$MKDIR_P"; then
6365  if ${ac_cv_path_mkdir+:} false; then :
6366  $as_echo_n "(cached) " >&6
6367else
6368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6370do
6371  IFS=$as_save_IFS
6372  test -z "$as_dir" && as_dir=.
6373    for ac_prog in mkdir gmkdir; do
6374	 for ac_exec_ext in '' $ac_executable_extensions; do
6375	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6376	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6377	     'mkdir (GNU coreutils) '* | \
6378	     'mkdir (coreutils) '* | \
6379	     'mkdir (fileutils) '4.1*)
6380	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6381	       break 3;;
6382	   esac
6383	 done
6384       done
6385  done
6386IFS=$as_save_IFS
6387
6388fi
6389
6390  test -d ./--version && rmdir ./--version
6391  if test "${ac_cv_path_mkdir+set}" = set; then
6392    MKDIR_P="$ac_cv_path_mkdir -p"
6393  else
6394    # As a last resort, use the slow shell script.  Don't cache a
6395    # value for MKDIR_P within a source directory, because that will
6396    # break other packages using the cache if that directory is
6397    # removed, or if the value is a relative name.
6398    MKDIR_P="$ac_install_sh -d"
6399  fi
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6402$as_echo "$MKDIR_P" >&6; }
6403
6404
6405# Not every filesystem supports hard links
6406
6407if test -z "$LN" ; then
6408	case $ac_sys_system in
6409		CYGWIN*) LN="ln -s";;
6410		*) LN=ln;;
6411	esac
6412fi
6413
6414# For calculating the .so ABI tag.
6415
6416ABIFLAGS=""
6417
6418# Check for --with-pydebug
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
6420$as_echo_n "checking for --with-pydebug... " >&6; }
6421
6422# Check whether --with-pydebug was given.
6423if test "${with_pydebug+set}" = set; then :
6424  withval=$with_pydebug;
6425if test "$withval" != no
6426then
6427
6428$as_echo "#define Py_DEBUG 1" >>confdefs.h
6429
6430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6431$as_echo "yes" >&6; };
6432  Py_DEBUG='true'
6433  ABIFLAGS="${ABIFLAGS}d"
6434else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435$as_echo "no" >&6; }; Py_DEBUG='false'
6436fi
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443# Check for --with-trace-refs
6444# --with-trace-refs
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5
6446$as_echo_n "checking for --with-trace-refs... " >&6; }
6447
6448# Check whether --with-trace-refs was given.
6449if test "${with_trace_refs+set}" = set; then :
6450  withval=$with_trace_refs;
6451else
6452  with_trace_refs=no
6453fi
6454
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5
6456$as_echo "$with_trace_refs" >&6; }
6457
6458if test "$with_trace_refs" = "yes"
6459then
6460
6461$as_echo "#define Py_TRACE_REFS 1" >>confdefs.h
6462
6463fi
6464
6465# Check for --with-assertions.
6466# This allows enabling assertions without Py_DEBUG.
6467assertions='false'
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
6469$as_echo_n "checking for --with-assertions... " >&6; }
6470
6471# Check whether --with-assertions was given.
6472if test "${with_assertions+set}" = set; then :
6473  withval=$with_assertions;
6474if test "$withval" != no
6475then
6476  assertions='true'
6477fi
6478fi
6479
6480if test "$assertions" = 'true'; then
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6482$as_echo "yes" >&6; }
6483elif test "$Py_DEBUG" = 'true'; then
6484  assertions='true'
6485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
6486$as_echo "implied by --with-pydebug" >&6; }
6487else
6488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489$as_echo "no" >&6; }
6490fi
6491
6492# Enable optimization flags
6493
6494
6495Py_OPT='false'
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6497$as_echo_n "checking for --enable-optimizations... " >&6; }
6498# Check whether --enable-optimizations was given.
6499if test "${enable_optimizations+set}" = set; then :
6500  enableval=$enable_optimizations;
6501if test "$enableval" != no
6502then
6503  Py_OPT='true'
6504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6505$as_echo "yes" >&6; };
6506else
6507  Py_OPT='false'
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509$as_echo "no" >&6; };
6510fi
6511else
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }
6514fi
6515
6516if test "$Py_OPT" = 'true' ; then
6517  # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not
6518  # compile working code using it and both test_distutils and test_gdb are
6519  # broken when you do manage to get a toolchain that works with it.  People
6520  # who want LTO need to use --with-lto themselves.
6521  DEF_MAKE_ALL_RULE="profile-opt"
6522  REQUIRE_PGO="yes"
6523  DEF_MAKE_RULE="build_all"
6524  case $CC in
6525    *gcc*)
6526      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5
6527$as_echo_n "checking whether C compiler accepts -fno-semantic-interposition... " >&6; }
6528if ${ax_cv_check_cflags___fno_semantic_interposition+:} false; then :
6529  $as_echo_n "(cached) " >&6
6530else
6531
6532  ax_check_save_flags=$CFLAGS
6533  CFLAGS="$CFLAGS  -fno-semantic-interposition"
6534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h.  */
6536
6537int
6538main ()
6539{
6540
6541  ;
6542  return 0;
6543}
6544_ACEOF
6545if ac_fn_c_try_compile "$LINENO"; then :
6546  ax_cv_check_cflags___fno_semantic_interposition=yes
6547else
6548  ax_cv_check_cflags___fno_semantic_interposition=no
6549fi
6550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551  CFLAGS=$ax_check_save_flags
6552fi
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_semantic_interposition" >&5
6554$as_echo "$ax_cv_check_cflags___fno_semantic_interposition" >&6; }
6555if test "x$ax_cv_check_cflags___fno_semantic_interposition" = xyes; then :
6556
6557      CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition"
6558      LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition"
6559
6560else
6561  :
6562fi
6563
6564      ;;
6565  esac
6566
6567
6568else
6569  DEF_MAKE_ALL_RULE="build_all"
6570  REQUIRE_PGO="no"
6571  DEF_MAKE_RULE="all"
6572fi
6573
6574
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5
6576$as_echo_n "checking PROFILE_TASK... " >&6; }
6577if test -z "$PROFILE_TASK"
6578then
6579	PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)'
6580fi
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
6582$as_echo "$PROFILE_TASK" >&6; }
6583
6584# Make llvm-relatec checks work on systems where llvm tools are not installed with their
6585# normal names in the default $PATH (ie: Ubuntu).  They exist under the
6586# non-suffixed name in their versioned llvm directory.
6587
6588llvm_bin_dir=''
6589llvm_path="${PATH}"
6590if test "${CC}" = "clang"
6591then
6592  clang_bin=`which clang`
6593  # Some systems install clang elsewhere as a symlink to the real path
6594  # which is where the related llvm tools are located.
6595  if test -L "${clang_bin}"
6596  then
6597    clang_dir=`dirname "${clang_bin}"`
6598    clang_bin=`readlink "${clang_bin}"`
6599    llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6600    llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6601  fi
6602fi
6603
6604# Enable LTO flags
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6606$as_echo_n "checking for --with-lto... " >&6; }
6607
6608# Check whether --with-lto was given.
6609if test "${with_lto+set}" = set; then :
6610  withval=$with_lto;
6611if test "$withval" != no
6612then
6613  Py_LTO='true'
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6615$as_echo "yes" >&6; };
6616else
6617  Py_LTO='false'
6618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; };
6620fi
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626if test "$Py_LTO" = 'true' ; then
6627  case $CC in
6628    *clang*)
6629
6630      if test -n "$ac_tool_prefix"; then
6631  # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
6632set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634$as_echo_n "checking for $ac_word... " >&6; }
6635if ${ac_cv_path_LLVM_AR+:} false; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  case $LLVM_AR in
6639  [\\/]* | ?:[\\/]*)
6640  ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path.
6641  ;;
6642  *)
6643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in ${llvm_path}
6645do
6646  IFS=$as_save_IFS
6647  test -z "$as_dir" && as_dir=.
6648    for ac_exec_ext in '' $ac_executable_extensions; do
6649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650    ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652    break 2
6653  fi
6654done
6655  done
6656IFS=$as_save_IFS
6657
6658  ;;
6659esac
6660fi
6661LLVM_AR=$ac_cv_path_LLVM_AR
6662if test -n "$LLVM_AR"; then
6663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
6664$as_echo "$LLVM_AR" >&6; }
6665else
6666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667$as_echo "no" >&6; }
6668fi
6669
6670
6671fi
6672if test -z "$ac_cv_path_LLVM_AR"; then
6673  ac_pt_LLVM_AR=$LLVM_AR
6674  # Extract the first word of "llvm-ar", so it can be a program name with args.
6675set dummy llvm-ar; ac_word=$2
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677$as_echo_n "checking for $ac_word... " >&6; }
6678if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681  case $ac_pt_LLVM_AR in
6682  [\\/]* | ?:[\\/]*)
6683  ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path.
6684  ;;
6685  *)
6686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in ${llvm_path}
6688do
6689  IFS=$as_save_IFS
6690  test -z "$as_dir" && as_dir=.
6691    for ac_exec_ext in '' $ac_executable_extensions; do
6692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693    ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695    break 2
6696  fi
6697done
6698  done
6699IFS=$as_save_IFS
6700
6701  ;;
6702esac
6703fi
6704ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR
6705if test -n "$ac_pt_LLVM_AR"; then
6706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
6707$as_echo "$ac_pt_LLVM_AR" >&6; }
6708else
6709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710$as_echo "no" >&6; }
6711fi
6712
6713  if test "x$ac_pt_LLVM_AR" = x; then
6714    LLVM_AR="''"
6715  else
6716    case $cross_compiling:$ac_tool_warned in
6717yes:)
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720ac_tool_warned=yes ;;
6721esac
6722    LLVM_AR=$ac_pt_LLVM_AR
6723  fi
6724else
6725  LLVM_AR="$ac_cv_path_LLVM_AR"
6726fi
6727
6728
6729      if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
6730      then
6731        LLVM_AR_FOUND="found"
6732      else
6733        LLVM_AR_FOUND="not-found"
6734      fi
6735      if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
6736      then
6737        # The Apple-supplied ar in Xcode or the Command Line Tools is apparently sufficient
6738        found_llvm_ar=`/usr/bin/xcrun -find ar 2>/dev/null`
6739        if test -n "${found_llvm_ar}"
6740        then
6741          LLVM_AR='/usr/bin/xcrun ar'
6742          LLVM_AR_FOUND=found
6743          { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
6744$as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
6745        fi
6746      fi
6747      if test $LLVM_AR_FOUND = not-found
6748      then
6749        LLVM_PROFR_ERR=yes
6750        as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
6751      else
6752        LLVM_AR_ERR=no
6753      fi
6754      AR="${LLVM_AR}"
6755      case $ac_sys_system in
6756        Darwin*)
6757          # Any changes made here should be reflected in the GCC+Darwin case below
6758          LTOFLAGS="-flto -Wl,-export_dynamic"
6759          LTOCFLAGS="-flto"
6760          ;;
6761        *)
6762          LTOFLAGS="-flto"
6763          ;;
6764      esac
6765      ;;
6766    *gcc*)
6767      case $ac_sys_system in
6768        Darwin*)
6769          LTOFLAGS="-flto -Wl,-export_dynamic"
6770          LTOCFLAGS="-flto"
6771          ;;
6772        *)
6773          LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6774          ;;
6775      esac
6776      ;;
6777  esac
6778
6779  if test "$ac_cv_prog_cc_g" = "yes"
6780  then
6781      # bpo-30345: Add -g to LDFLAGS when compiling with LTO
6782      # to get debug symbols.
6783      LTOFLAGS="$LTOFLAGS -g"
6784  fi
6785
6786  CFLAGS_NODIST="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}"
6787  LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS"
6788fi
6789
6790# Enable PGO flags.
6791
6792
6793
6794
6795
6796
6797if test -n "$ac_tool_prefix"; then
6798  # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args.
6799set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801$as_echo_n "checking for $ac_word... " >&6; }
6802if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  case $LLVM_PROFDATA in
6806  [\\/]* | ?:[\\/]*)
6807  ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6808  ;;
6809  *)
6810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in ${llvm_path}
6812do
6813  IFS=$as_save_IFS
6814  test -z "$as_dir" && as_dir=.
6815    for ac_exec_ext in '' $ac_executable_extensions; do
6816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817    ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819    break 2
6820  fi
6821done
6822  done
6823IFS=$as_save_IFS
6824
6825  ;;
6826esac
6827fi
6828LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6829if test -n "$LLVM_PROFDATA"; then
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6831$as_echo "$LLVM_PROFDATA" >&6; }
6832else
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834$as_echo "no" >&6; }
6835fi
6836
6837
6838fi
6839if test -z "$ac_cv_path_LLVM_PROFDATA"; then
6840  ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6841  # Extract the first word of "llvm-profdata", so it can be a program name with args.
6842set dummy llvm-profdata; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  case $ac_pt_LLVM_PROFDATA in
6849  [\\/]* | ?:[\\/]*)
6850  ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6851  ;;
6852  *)
6853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in ${llvm_path}
6855do
6856  IFS=$as_save_IFS
6857  test -z "$as_dir" && as_dir=.
6858    for ac_exec_ext in '' $ac_executable_extensions; do
6859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860    ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862    break 2
6863  fi
6864done
6865  done
6866IFS=$as_save_IFS
6867
6868  ;;
6869esac
6870fi
6871ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6872if test -n "$ac_pt_LLVM_PROFDATA"; then
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6874$as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6875else
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877$as_echo "no" >&6; }
6878fi
6879
6880  if test "x$ac_pt_LLVM_PROFDATA" = x; then
6881    LLVM_PROFDATA="''"
6882  else
6883    case $cross_compiling:$ac_tool_warned in
6884yes:)
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887ac_tool_warned=yes ;;
6888esac
6889    LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6890  fi
6891else
6892  LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6893fi
6894
6895
6896if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6897then
6898  LLVM_PROF_FOUND="found"
6899else
6900  LLVM_PROF_FOUND="not-found"
6901fi
6902if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6903then
6904  found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6905  if test -n "${found_llvm_profdata}"
6906  then
6907    # llvm-profdata isn't directly in $PATH in some cases.
6908    # https://apple.stackexchange.com/questions/197053/
6909    LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6910    LLVM_PROF_FOUND=found
6911    { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6912$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6913  fi
6914fi
6915LLVM_PROF_ERR=no
6916case $CC in
6917  *clang*)
6918    # Any changes made here should be reflected in the GCC+Darwin case below
6919    PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6920    PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6921    LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6922    LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6923    if test $LLVM_PROF_FOUND = not-found
6924    then
6925      LLVM_PROF_ERR=yes
6926      if test "${REQUIRE_PGO}" = "yes"
6927      then
6928        as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6929      fi
6930    fi
6931    ;;
6932  *gcc*)
6933    case $ac_sys_system in
6934      Darwin*)
6935        PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6936        PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6937        LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6938        LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6939        if test "${LLVM_PROF_FOUND}" = "not-found"
6940        then
6941          LLVM_PROF_ERR=yes
6942          if test "${REQUIRE_PGO}" = "yes"
6943	  then
6944	    as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6945	  fi
6946        fi
6947        ;;
6948      *)
6949        PGO_PROF_GEN_FLAG="-fprofile-generate"
6950        PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6951        LLVM_PROF_MERGER="true"
6952        LLVM_PROF_FILE=""
6953        ;;
6954    esac
6955    ;;
6956  *icc*)
6957    PGO_PROF_GEN_FLAG="-prof-gen"
6958    PGO_PROF_USE_FLAG="-prof-use"
6959    LLVM_PROF_MERGER="true"
6960    LLVM_PROF_FILE=""
6961    ;;
6962esac
6963
6964# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
6965# merged with this chunk of code?
6966
6967# Optimizer/debugger flags
6968# ------------------------
6969# (The following bit of code is complicated enough - please keep things
6970# indented properly.  Just pretend you're editing Python code. ;-)
6971
6972# There are two parallel sets of case statements below, one that checks to
6973# see if OPT was set and one that does BASECFLAGS setting based upon
6974# compiler and platform.  BASECFLAGS tweaks need to be made even if the
6975# user set OPT.
6976
6977case $CC in
6978    *clang*)
6979        cc_is_clang=1
6980        ;;
6981    *)
6982        if $CC --version 2>&1 | grep -q clang
6983        then
6984            cc_is_clang=1
6985        else
6986            cc_is_clang=
6987        fi
6988esac
6989
6990# tweak OPT based on compiler and platform, only if the user didn't set
6991# it on the command line
6992
6993
6994if test "${OPT-unset}" = "unset"
6995then
6996    case $GCC in
6997    yes)
6998        # For gcc 4.x we need to use -fwrapv so lets check if its supported
6999        if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
7000           WRAP="-fwrapv"
7001        fi
7002
7003        if test -n "${cc_is_clang}"
7004        then
7005            # Clang also needs -fwrapv
7006            WRAP="-fwrapv"
7007            # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
7008            # see Makefile.pre.in for more information
7009            CFLAGS_ALIASING="-fno-strict-aliasing"
7010        fi
7011
7012	case $ac_cv_prog_cc_g in
7013	yes)
7014	    if test "$Py_DEBUG" = 'true' ; then
7015		# Optimization messes up debuggers, so turn it off for
7016		# debug builds.
7017                if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
7018                    OPT="-g -Og -Wall"
7019                else
7020                    OPT="-g -O0 -Wall"
7021                fi
7022	    else
7023		OPT="-g $WRAP -O3 -Wall"
7024	    fi
7025	    ;;
7026	*)
7027	    OPT="-O3 -Wall"
7028	    ;;
7029	esac
7030
7031	case $ac_sys_system in
7032	    SCO_SV*) OPT="$OPT -m486 -DSCO5"
7033	    ;;
7034        esac
7035	;;
7036
7037    *)
7038	OPT="-O"
7039	;;
7040    esac
7041fi
7042
7043
7044
7045
7046
7047# The -arch flags for universal builds on macOS
7048UNIVERSAL_ARCH_FLAGS=
7049
7050
7051# tweak BASECFLAGS based on compiler and platform
7052case $GCC in
7053yes)
7054    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
7055
7056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
7057$as_echo_n "checking for -Wextra... " >&6; }
7058     ac_save_cc="$CC"
7059     CC="$CC -Wextra -Werror"
7060     if ${ac_cv_extra_warnings+:} false; then :
7061  $as_echo_n "(cached) " >&6
7062else
7063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064/* end confdefs.h.  */
7065
7066
7067int
7068main ()
7069{
7070
7071  ;
7072  return 0;
7073}
7074
7075_ACEOF
7076if ac_fn_c_try_compile "$LINENO"; then :
7077
7078           ac_cv_extra_warnings=yes
7079
7080else
7081
7082           ac_cv_extra_warnings=no
7083
7084fi
7085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086fi
7087
7088     CC="$ac_save_cc"
7089    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5
7090$as_echo "$ac_cv_extra_warnings" >&6; }
7091
7092    if test $ac_cv_extra_warnings = yes
7093    then
7094      CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
7095    fi
7096
7097    # Python doesn't violate C99 aliasing rules, but older versions of
7098    # GCC produce warnings for legal Python code.  Enable
7099    # -fno-strict-aliasing on versions of GCC that support but produce
7100    # warnings.  See Issue3326
7101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
7102$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
7103     ac_save_cc="$CC"
7104     CC="$CC -fno-strict-aliasing"
7105     save_CFLAGS="$CFLAGS"
7106     if ${ac_cv_no_strict_aliasing+:} false; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h.  */
7111
7112
7113int
7114main ()
7115{
7116
7117  ;
7118  return 0;
7119}
7120
7121_ACEOF
7122if ac_fn_c_try_compile "$LINENO"; then :
7123
7124	   CC="$ac_save_cc -fstrict-aliasing"
7125           CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
7126           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127/* end confdefs.h.  */
7128
7129	       void f(int **x) {}
7130int
7131main ()
7132{
7133double *x; f((int **) &x);
7134  ;
7135  return 0;
7136}
7137
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"; then :
7140
7141	       ac_cv_no_strict_aliasing=no
7142
7143else
7144
7145               ac_cv_no_strict_aliasing=yes
7146
7147fi
7148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149
7150else
7151
7152	   ac_cv_no_strict_aliasing=no
7153
7154fi
7155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156fi
7157
7158     CFLAGS="$save_CFLAGS"
7159     CC="$ac_save_cc"
7160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
7161$as_echo "$ac_cv_no_strict_aliasing" >&6; }
7162    if test $ac_cv_no_strict_aliasing = yes
7163    then
7164      BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
7165    fi
7166
7167    # ICC doesn't recognize the option, but only emits a warning
7168    ## XXX does it emit an unused result warning and can it be disabled?
7169    case "$CC" in
7170    *icc*)
7171    ac_cv_disable_unused_result_warning=no
7172    ;;
7173    *)
7174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5
7175$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; }
7176     ac_save_cc="$CC"
7177     CC="$CC -Wunused-result -Werror"
7178     save_CFLAGS="$CFLAGS"
7179     if ${ac_cv_disable_unused_result_warning+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h.  */
7184
7185
7186int
7187main ()
7188{
7189
7190  ;
7191  return 0;
7192}
7193
7194_ACEOF
7195if ac_fn_c_try_compile "$LINENO"; then :
7196
7197           ac_cv_disable_unused_result_warning=yes
7198
7199else
7200
7201           ac_cv_disable_unused_result_warning=no
7202
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205fi
7206
7207     CFLAGS="$save_CFLAGS"
7208     CC="$ac_save_cc"
7209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
7210$as_echo "$ac_cv_disable_unused_result_warning" >&6; }
7211    ;;
7212    esac
7213
7214    if test $ac_cv_disable_unused_result_warning = yes
7215    then
7216      BASECFLAGS="$BASECFLAGS -Wno-unused-result"
7217      CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
7218    fi
7219
7220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5
7221$as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; }
7222     ac_save_cc="$CC"
7223     CC="$CC -Wunused-parameter -Werror"
7224     if ${ac_cv_disable_unused_parameter_warning+:} false; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228/* end confdefs.h.  */
7229
7230
7231int
7232main ()
7233{
7234
7235  ;
7236  return 0;
7237}
7238
7239_ACEOF
7240if ac_fn_c_try_compile "$LINENO"; then :
7241
7242           ac_cv_disable_unused_parameter_warning=yes
7243
7244else
7245
7246           ac_cv_disable_unused_parameter_warning=no
7247
7248fi
7249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250fi
7251
7252     CC="$ac_save_cc"
7253    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
7254$as_echo "$ac_cv_disable_unused_parameter_warning" >&6; }
7255
7256    if test $ac_cv_disable_unused_parameter_warning = yes
7257    then
7258      CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
7259    fi
7260
7261    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5
7262$as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; }
7263     ac_save_cc="$CC"
7264     CC="$CC -Wmissing-field-initializers -Werror"
7265     if ${ac_cv_disable_missing_field_initializers+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h.  */
7270
7271
7272int
7273main ()
7274{
7275
7276  ;
7277  return 0;
7278}
7279
7280_ACEOF
7281if ac_fn_c_try_compile "$LINENO"; then :
7282
7283           ac_cv_disable_missing_field_initializers=yes
7284
7285else
7286
7287           ac_cv_disable_missing_field_initializers=no
7288
7289fi
7290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291fi
7292
7293     CC="$ac_save_cc"
7294    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5
7295$as_echo "$ac_cv_disable_missing_field_initializers" >&6; }
7296
7297    if test $ac_cv_disable_missing_field_initializers = yes
7298    then
7299      CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
7300    fi
7301
7302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5
7303$as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; }
7304     ac_save_cc="$CC"
7305     CC="$CC -Wsign-compare"
7306     save_CFLAGS="$CFLAGS"
7307     if ${ac_cv_enable_sign_compare_warning+:} false; then :
7308  $as_echo_n "(cached) " >&6
7309else
7310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h.  */
7312
7313
7314int
7315main ()
7316{
7317
7318  ;
7319  return 0;
7320}
7321
7322_ACEOF
7323if ac_fn_c_try_compile "$LINENO"; then :
7324
7325           ac_cv_enable_sign_compare_warning=yes
7326
7327else
7328
7329           ac_cv_enable_sign_compare_warning=no
7330
7331fi
7332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333fi
7334
7335     CFLAGS="$save_CFLAGS"
7336     CC="$ac_save_cc"
7337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
7338$as_echo "$ac_cv_enable_sign_compare_warning" >&6; }
7339
7340    if test $ac_cv_enable_sign_compare_warning = yes
7341    then
7342      BASECFLAGS="$BASECFLAGS -Wsign-compare"
7343    fi
7344
7345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5
7346$as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; }
7347     ac_save_cc="$CC"
7348     CC="$CC -Wunreachable-code"
7349     save_CFLAGS="$CFLAGS"
7350     if ${ac_cv_enable_unreachable_code_warning+:} false; then :
7351  $as_echo_n "(cached) " >&6
7352else
7353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354/* end confdefs.h.  */
7355
7356
7357int
7358main ()
7359{
7360
7361  ;
7362  return 0;
7363}
7364
7365_ACEOF
7366if ac_fn_c_try_compile "$LINENO"; then :
7367
7368           ac_cv_enable_unreachable_code_warning=yes
7369
7370else
7371
7372           ac_cv_enable_unreachable_code_warning=no
7373
7374fi
7375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376fi
7377
7378     CFLAGS="$save_CFLAGS"
7379     CC="$ac_save_cc"
7380
7381    # Don't enable unreachable code warning in debug mode, since it usually
7382    # results in non-standard code paths.
7383    # Issue #24324: Unfortunately, the unreachable code warning does not work
7384    # correctly on gcc and has been silently removed from the compiler.
7385    # It is supported on clang but on OS X systems gcc may be an alias
7386    # for clang.  Try to determine if the compiler is not really gcc and,
7387    # if so, only then enable the warning.
7388    if test $ac_cv_enable_unreachable_code_warning = yes && \
7389        test "$Py_DEBUG" != "true" && \
7390        test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
7391    then
7392      BASECFLAGS="$BASECFLAGS -Wunreachable-code"
7393    else
7394      ac_cv_enable_unreachable_code_warning=no
7395    fi
7396    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
7397$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; }
7398
7399    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5
7400$as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; }
7401     ac_save_cc="$CC"
7402     CC="$CC -Werror -Wstrict-prototypes"
7403     if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h.  */
7408
7409
7410int
7411main ()
7412{
7413
7414  ;
7415  return 0;
7416}
7417
7418_ACEOF
7419if ac_fn_c_try_compile "$LINENO"; then :
7420
7421       ac_cv_enable_strict_prototypes_warning=yes
7422
7423else
7424
7425       ac_cv_enable_strict_prototypes_warning=no
7426
7427fi
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429fi
7430
7431     CC="$ac_save_cc"
7432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
7433$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; }
7434
7435    if test $ac_cv_enable_strict_prototypes_warning = yes
7436    then
7437      CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
7438    fi
7439
7440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
7441$as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; }
7442     ac_save_cc="$CC"
7443     CC="$CC -Werror=implicit-function-declaration"
7444     if ${ac_cv_enable_implicit_function_declaration_error+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449
7450
7451int
7452main ()
7453{
7454
7455  ;
7456  return 0;
7457}
7458
7459_ACEOF
7460if ac_fn_c_try_compile "$LINENO"; then :
7461
7462           ac_cv_enable_implicit_function_declaration_error=yes
7463
7464else
7465
7466           ac_cv_enable_implicit_function_declaration_error=no
7467
7468fi
7469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470fi
7471
7472     CC="$ac_save_cc"
7473    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
7474$as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; }
7475
7476    if test $ac_cv_enable_implicit_function_declaration_error = yes
7477    then
7478      CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
7479    fi
7480
7481    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5
7482$as_echo_n "checking if we can use visibility in $CC... " >&6; }
7483     ac_save_cc="$CC"
7484     CC="$CC -fvisibility=hidden"
7485     if ${ac_cv_enable_visibility+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490
7491
7492int
7493main ()
7494{
7495
7496  ;
7497  return 0;
7498}
7499
7500_ACEOF
7501if ac_fn_c_try_compile "$LINENO"; then :
7502
7503           ac_cv_enable_visibility=yes
7504
7505else
7506
7507           ac_cv_enable_visibility=no
7508
7509fi
7510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511fi
7512
7513     CC="$ac_save_cc"
7514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5
7515$as_echo "$ac_cv_enable_visibility" >&6; }
7516
7517    if test $ac_cv_enable_visibility = yes
7518    then
7519      CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden"
7520    fi
7521
7522    # if using gcc on alpha, use -mieee to get (near) full IEEE 754
7523    # support.  Without this, treatment of subnormals doesn't follow
7524    # the standard.
7525    case $host in
7526         alpha*)
7527                BASECFLAGS="$BASECFLAGS -mieee"
7528                ;;
7529    esac
7530
7531    case $ac_sys_system in
7532	SCO_SV*)
7533	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
7534	    ;;
7535
7536    Darwin*)
7537        # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
7538        # used to be here, but non-Apple gcc doesn't accept them.
7539        if test "${CC}" = gcc
7540        then
7541            { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
7542$as_echo_n "checking which compiler should be used... " >&6; }
7543            case "${UNIVERSALSDK}" in
7544            */MacOSX10.4u.sdk)
7545                # Build using 10.4 SDK, force usage of gcc when the
7546                # compiler is gcc, otherwise the user will get very
7547                # confusing error messages when building on OSX 10.6
7548                CC=gcc-4.0
7549                CPP=cpp-4.0
7550                ;;
7551            esac
7552            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7553$as_echo "$CC" >&6; }
7554        fi
7555
7556        LIPO_INTEL64_FLAGS=""
7557        if test "${enable_universalsdk}"
7558        then
7559            case "$UNIVERSAL_ARCHS" in
7560            32-bit)
7561               UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
7562               LIPO_32BIT_FLAGS=""
7563               ARCH_RUN_32BIT=""
7564               ;;
7565            64-bit)
7566               UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
7567               LIPO_32BIT_FLAGS=""
7568               ARCH_RUN_32BIT="true"
7569               ;;
7570            all)
7571               UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
7572               LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7573               ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7574               ;;
7575            universal2)
7576               UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64"
7577               LIPO_32BIT_FLAGS=""
7578               LIPO_INTEL64_FLAGS="-extract x86_64"
7579               ARCH_RUN_32BIT="true"
7580               ;;
7581            intel)
7582               UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
7583               LIPO_32BIT_FLAGS="-extract i386"
7584               ARCH_RUN_32BIT="/usr/bin/arch -i386"
7585               ;;
7586            intel-32)
7587               UNIVERSAL_ARCH_FLAGS="-arch i386"
7588               LIPO_32BIT_FLAGS=""
7589               ARCH_RUN_32BIT=""
7590               ;;
7591            intel-64)
7592               UNIVERSAL_ARCH_FLAGS="-arch x86_64"
7593               LIPO_32BIT_FLAGS=""
7594               ARCH_RUN_32BIT="true"
7595               ;;
7596            3-way)
7597               UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
7598               LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7599               ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7600               ;;
7601            *)
7602               as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5
7603               ;;
7604            esac
7605
7606            if test "${UNIVERSALSDK}" != "/"
7607            then
7608                CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
7609                LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
7610                CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
7611            else
7612                CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
7613                LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
7614            fi
7615        fi
7616
7617        # Calculate an appropriate deployment target for this build:
7618        # The deployment target value is used explicitly to enable certain
7619        # features are enabled (such as builtin libedit support for readline)
7620        # through the use of Apple's Availability Macros and is used as a
7621        # component of the string returned by distutils.get_platform().
7622        #
7623        # Use the value from:
7624        # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
7625        # 2. the operating system version of the build machine if >= 10.6
7626        # 3. If running on OS X 10.3 through 10.5, use the legacy tests
7627        #       below to pick either 10.3, 10.4, or 10.5 as the target.
7628        # 4. If we are running on OS X 10.2 or earlier, good luck!
7629
7630        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
7631$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
7632        cur_target_major=`sw_vers -productVersion | \
7633                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
7634        cur_target_minor=`sw_vers -productVersion | \
7635                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
7636        cur_target="${cur_target_major}.${cur_target_minor}"
7637        if test ${cur_target_major} -eq 10 && \
7638           test ${cur_target_minor} -ge 3 && \
7639           test ${cur_target_minor} -le 5
7640        then
7641            # OS X 10.3 through 10.5
7642            cur_target=10.3
7643            if test ${enable_universalsdk}
7644            then
7645                case "$UNIVERSAL_ARCHS" in
7646                all|3-way|intel|64-bit)
7647                    # These configurations were first supported in 10.5
7648                    cur_target='10.5'
7649                    ;;
7650                esac
7651            else
7652                if test `/usr/bin/arch` = "i386"
7653                then
7654                    # 10.4 was the first release to support Intel archs
7655                    cur_target="10.4"
7656                fi
7657            fi
7658        fi
7659        CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
7660
7661        # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
7662        # environment with a value that is the same as what we'll use
7663        # in the Makefile to ensure that we'll get the same compiler
7664        # environment during configure and build time.
7665        MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
7666        export MACOSX_DEPLOYMENT_TARGET
7667        EXPORT_MACOSX_DEPLOYMENT_TARGET=''
7668        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
7669$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
7670
7671        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5
7672$as_echo_n "checking if specified universal architectures work... " >&6; }
7673        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h.  */
7675#include <stdio.h>
7676int
7677main ()
7678{
7679printf("%d", 42);
7680  ;
7681  return 0;
7682}
7683_ACEOF
7684if ac_fn_c_try_link "$LINENO"; then :
7685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686$as_echo "yes" >&6; }
7687else
7688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689$as_echo "no" >&6; }
7690             as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5
7691
7692fi
7693rm -f core conftest.err conftest.$ac_objext \
7694    conftest$ac_exeext conftest.$ac_ext
7695
7696        # end of Darwin* tests
7697        ;;
7698    esac
7699    ;;
7700
7701*)
7702    case $ac_sys_system in
7703    OpenUNIX*|UnixWare*)
7704	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
7705	;;
7706    SCO_SV*)
7707	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
7708	;;
7709    esac
7710    ;;
7711esac
7712
7713case "$CC" in
7714*icc*)
7715    # ICC needs -fp-model strict or floats behave badly
7716    CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
7717    ;;
7718*xlc*)
7719    CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
7720    ;;
7721esac
7722
7723if test "$assertions" = 'true'; then
7724  :
7725else
7726  OPT="-DNDEBUG $OPT"
7727fi
7728
7729if test "$ac_arch_flags"
7730then
7731	BASECFLAGS="$BASECFLAGS $ac_arch_flags"
7732fi
7733
7734# On some compilers, pthreads are available without further options
7735# (e.g. MacOS X). On some of these systems, the compiler will not
7736# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
7737# So we have to see first whether pthreads are available without
7738# options before we can check whether -Kpthread improves anything.
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
7740$as_echo_n "checking whether pthreads are available without options... " >&6; }
7741if ${ac_cv_pthread_is_default+:} false; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  if test "$cross_compiling" = yes; then :
7745  ac_cv_pthread_is_default=no
7746else
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749
7750#include <stdio.h>
7751#include <pthread.h>
7752
7753void* routine(void* p){return NULL;}
7754
7755int main(){
7756  pthread_t p;
7757  if(pthread_create(&p,NULL,routine,NULL)!=0)
7758    return 1;
7759  (void)pthread_detach(p);
7760  return 0;
7761}
7762
7763_ACEOF
7764if ac_fn_c_try_run "$LINENO"; then :
7765
7766  ac_cv_pthread_is_default=yes
7767  ac_cv_kthread=no
7768  ac_cv_pthread=no
7769
7770else
7771  ac_cv_pthread_is_default=no
7772fi
7773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7774  conftest.$ac_objext conftest.beam conftest.$ac_ext
7775fi
7776
7777
7778fi
7779
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
7781$as_echo "$ac_cv_pthread_is_default" >&6; }
7782
7783
7784if test $ac_cv_pthread_is_default = yes
7785then
7786  ac_cv_kpthread=no
7787else
7788# -Kpthread, if available, provides the right #defines
7789# and linker options to make pthread_create available
7790# Some compilers won't report that they do not support -Kpthread,
7791# so we need to run a program to see whether it really made the
7792# function available.
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
7794$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
7795if ${ac_cv_kpthread+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  ac_save_cc="$CC"
7799CC="$CC -Kpthread"
7800if test "$cross_compiling" = yes; then :
7801  ac_cv_kpthread=no
7802else
7803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h.  */
7805
7806#include <stdio.h>
7807#include <pthread.h>
7808
7809void* routine(void* p){return NULL;}
7810
7811int main(){
7812  pthread_t p;
7813  if(pthread_create(&p,NULL,routine,NULL)!=0)
7814    return 1;
7815  (void)pthread_detach(p);
7816  return 0;
7817}
7818
7819_ACEOF
7820if ac_fn_c_try_run "$LINENO"; then :
7821  ac_cv_kpthread=yes
7822else
7823  ac_cv_kpthread=no
7824fi
7825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7826  conftest.$ac_objext conftest.beam conftest.$ac_ext
7827fi
7828
7829CC="$ac_save_cc"
7830fi
7831
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
7833$as_echo "$ac_cv_kpthread" >&6; }
7834fi
7835
7836if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
7837then
7838# -Kthread, if available, provides the right #defines
7839# and linker options to make pthread_create available
7840# Some compilers won't report that they do not support -Kthread,
7841# so we need to run a program to see whether it really made the
7842# function available.
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
7844$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
7845if ${ac_cv_kthread+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  ac_save_cc="$CC"
7849CC="$CC -Kthread"
7850if test "$cross_compiling" = yes; then :
7851  ac_cv_kthread=no
7852else
7853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h.  */
7855
7856#include <stdio.h>
7857#include <pthread.h>
7858
7859void* routine(void* p){return NULL;}
7860
7861int main(){
7862  pthread_t p;
7863  if(pthread_create(&p,NULL,routine,NULL)!=0)
7864    return 1;
7865  (void)pthread_detach(p);
7866  return 0;
7867}
7868
7869_ACEOF
7870if ac_fn_c_try_run "$LINENO"; then :
7871  ac_cv_kthread=yes
7872else
7873  ac_cv_kthread=no
7874fi
7875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7876  conftest.$ac_objext conftest.beam conftest.$ac_ext
7877fi
7878
7879CC="$ac_save_cc"
7880fi
7881
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
7883$as_echo "$ac_cv_kthread" >&6; }
7884fi
7885
7886if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
7887then
7888# -pthread, if available, provides the right #defines
7889# and linker options to make pthread_create available
7890# Some compilers won't report that they do not support -pthread,
7891# so we need to run a program to see whether it really made the
7892# function available.
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
7894$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
7895if ${ac_cv_pthread+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  ac_save_cc="$CC"
7899CC="$CC -pthread"
7900if test "$cross_compiling" = yes; then :
7901  ac_cv_pthread=no
7902else
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905
7906#include <stdio.h>
7907#include <pthread.h>
7908
7909void* routine(void* p){return NULL;}
7910
7911int main(){
7912  pthread_t p;
7913  if(pthread_create(&p,NULL,routine,NULL)!=0)
7914    return 1;
7915  (void)pthread_detach(p);
7916  return 0;
7917}
7918
7919_ACEOF
7920if ac_fn_c_try_run "$LINENO"; then :
7921  ac_cv_pthread=yes
7922else
7923  ac_cv_pthread=no
7924fi
7925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7926  conftest.$ac_objext conftest.beam conftest.$ac_ext
7927fi
7928
7929CC="$ac_save_cc"
7930fi
7931
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
7933$as_echo "$ac_cv_pthread" >&6; }
7934fi
7935
7936# If we have set a CC compiler flag for thread support then
7937# check if it works for CXX, too.
7938ac_cv_cxx_thread=no
7939if test ! -z "$CXX"
7940then
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
7942$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
7943ac_save_cxx="$CXX"
7944
7945if test "$ac_cv_kpthread" = "yes"
7946then
7947  CXX="$CXX -Kpthread"
7948  ac_cv_cxx_thread=yes
7949elif test "$ac_cv_kthread" = "yes"
7950then
7951  CXX="$CXX -Kthread"
7952  ac_cv_cxx_thread=yes
7953elif test "$ac_cv_pthread" = "yes"
7954then
7955  CXX="$CXX -pthread"
7956  ac_cv_cxx_thread=yes
7957fi
7958
7959if test $ac_cv_cxx_thread = yes
7960then
7961  echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
7962  $CXX -c conftest.$ac_ext 2>&5
7963  if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
7964     && test -s conftest$ac_exeext && ./conftest$ac_exeext
7965  then
7966    ac_cv_cxx_thread=yes
7967  else
7968    ac_cv_cxx_thread=no
7969  fi
7970  rm -fr conftest*
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
7973$as_echo "$ac_cv_cxx_thread" >&6; }
7974fi
7975CXX="$ac_save_cxx"
7976
7977
7978# checks for header files
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7980$as_echo_n "checking for ANSI C header files... " >&6; }
7981if ${ac_cv_header_stdc+:} false; then :
7982  $as_echo_n "(cached) " >&6
7983else
7984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h.  */
7986#include <stdlib.h>
7987#include <stdarg.h>
7988#include <string.h>
7989#include <float.h>
7990
7991int
7992main ()
7993{
7994
7995  ;
7996  return 0;
7997}
7998_ACEOF
7999if ac_fn_c_try_compile "$LINENO"; then :
8000  ac_cv_header_stdc=yes
8001else
8002  ac_cv_header_stdc=no
8003fi
8004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005
8006if test $ac_cv_header_stdc = yes; then
8007  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009/* end confdefs.h.  */
8010#include <string.h>
8011
8012_ACEOF
8013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014  $EGREP "memchr" >/dev/null 2>&1; then :
8015
8016else
8017  ac_cv_header_stdc=no
8018fi
8019rm -f conftest*
8020
8021fi
8022
8023if test $ac_cv_header_stdc = yes; then
8024  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h.  */
8027#include <stdlib.h>
8028
8029_ACEOF
8030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8031  $EGREP "free" >/dev/null 2>&1; then :
8032
8033else
8034  ac_cv_header_stdc=no
8035fi
8036rm -f conftest*
8037
8038fi
8039
8040if test $ac_cv_header_stdc = yes; then
8041  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8042  if test "$cross_compiling" = yes; then :
8043  :
8044else
8045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047#include <ctype.h>
8048#include <stdlib.h>
8049#if ((' ' & 0x0FF) == 0x020)
8050# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8051# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8052#else
8053# define ISLOWER(c) \
8054		   (('a' <= (c) && (c) <= 'i') \
8055		     || ('j' <= (c) && (c) <= 'r') \
8056		     || ('s' <= (c) && (c) <= 'z'))
8057# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8058#endif
8059
8060#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8061int
8062main ()
8063{
8064  int i;
8065  for (i = 0; i < 256; i++)
8066    if (XOR (islower (i), ISLOWER (i))
8067	|| toupper (i) != TOUPPER (i))
8068      return 2;
8069  return 0;
8070}
8071_ACEOF
8072if ac_fn_c_try_run "$LINENO"; then :
8073
8074else
8075  ac_cv_header_stdc=no
8076fi
8077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8078  conftest.$ac_objext conftest.beam conftest.$ac_ext
8079fi
8080
8081fi
8082fi
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8084$as_echo "$ac_cv_header_stdc" >&6; }
8085if test $ac_cv_header_stdc = yes; then
8086
8087$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8088
8089fi
8090
8091for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
8092fcntl.h grp.h \
8093ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \
8094sched.h shadow.h signal.h stropts.h termios.h \
8095utime.h \
8096poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
8097sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
8098sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
8099sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
8100sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
8101sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
8102libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
8103linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
8104sys/endian.h sys/sysmacros.h linux/auxvec.h linux/memfd.h linux/wait.h sys/memfd.h \
8105sys/mman.h sys/eventfd.h
8106do :
8107  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8108ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8109if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8110  cat >>confdefs.h <<_ACEOF
8111#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8112_ACEOF
8113
8114fi
8115
8116done
8117
8118ac_header_dirent=no
8119for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8120  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8122$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8123if eval \${$as_ac_Header+:} false; then :
8124  $as_echo_n "(cached) " >&6
8125else
8126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127/* end confdefs.h.  */
8128#include <sys/types.h>
8129#include <$ac_hdr>
8130
8131int
8132main ()
8133{
8134if ((DIR *) 0)
8135return 0;
8136  ;
8137  return 0;
8138}
8139_ACEOF
8140if ac_fn_c_try_compile "$LINENO"; then :
8141  eval "$as_ac_Header=yes"
8142else
8143  eval "$as_ac_Header=no"
8144fi
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146fi
8147eval ac_res=\$$as_ac_Header
8148	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8149$as_echo "$ac_res" >&6; }
8150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8151  cat >>confdefs.h <<_ACEOF
8152#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8153_ACEOF
8154
8155ac_header_dirent=$ac_hdr; break
8156fi
8157
8158done
8159# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8160if test $ac_header_dirent = dirent.h; then
8161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8162$as_echo_n "checking for library containing opendir... " >&6; }
8163if ${ac_cv_search_opendir+:} false; then :
8164  $as_echo_n "(cached) " >&6
8165else
8166  ac_func_search_save_LIBS=$LIBS
8167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168/* end confdefs.h.  */
8169
8170/* Override any GCC internal prototype to avoid an error.
8171   Use char because int might match the return type of a GCC
8172   builtin and then its argument prototype would still apply.  */
8173#ifdef __cplusplus
8174extern "C"
8175#endif
8176char opendir ();
8177int
8178main ()
8179{
8180return opendir ();
8181  ;
8182  return 0;
8183}
8184_ACEOF
8185for ac_lib in '' dir; do
8186  if test -z "$ac_lib"; then
8187    ac_res="none required"
8188  else
8189    ac_res=-l$ac_lib
8190    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8191  fi
8192  if ac_fn_c_try_link "$LINENO"; then :
8193  ac_cv_search_opendir=$ac_res
8194fi
8195rm -f core conftest.err conftest.$ac_objext \
8196    conftest$ac_exeext
8197  if ${ac_cv_search_opendir+:} false; then :
8198  break
8199fi
8200done
8201if ${ac_cv_search_opendir+:} false; then :
8202
8203else
8204  ac_cv_search_opendir=no
8205fi
8206rm conftest.$ac_ext
8207LIBS=$ac_func_search_save_LIBS
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8210$as_echo "$ac_cv_search_opendir" >&6; }
8211ac_res=$ac_cv_search_opendir
8212if test "$ac_res" != no; then :
8213  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8214
8215fi
8216
8217else
8218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8219$as_echo_n "checking for library containing opendir... " >&6; }
8220if ${ac_cv_search_opendir+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  ac_func_search_save_LIBS=$LIBS
8224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h.  */
8226
8227/* Override any GCC internal prototype to avoid an error.
8228   Use char because int might match the return type of a GCC
8229   builtin and then its argument prototype would still apply.  */
8230#ifdef __cplusplus
8231extern "C"
8232#endif
8233char opendir ();
8234int
8235main ()
8236{
8237return opendir ();
8238  ;
8239  return 0;
8240}
8241_ACEOF
8242for ac_lib in '' x; do
8243  if test -z "$ac_lib"; then
8244    ac_res="none required"
8245  else
8246    ac_res=-l$ac_lib
8247    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8248  fi
8249  if ac_fn_c_try_link "$LINENO"; then :
8250  ac_cv_search_opendir=$ac_res
8251fi
8252rm -f core conftest.err conftest.$ac_objext \
8253    conftest$ac_exeext
8254  if ${ac_cv_search_opendir+:} false; then :
8255  break
8256fi
8257done
8258if ${ac_cv_search_opendir+:} false; then :
8259
8260else
8261  ac_cv_search_opendir=no
8262fi
8263rm conftest.$ac_ext
8264LIBS=$ac_func_search_save_LIBS
8265fi
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8267$as_echo "$ac_cv_search_opendir" >&6; }
8268ac_res=$ac_cv_search_opendir
8269if test "$ac_res" != no; then :
8270  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8271
8272fi
8273
8274fi
8275
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
8277$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
8278if ${ac_cv_header_sys_types_h_makedev+:} false; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h.  */
8283#include <sys/types.h>
8284int
8285main ()
8286{
8287return makedev(0, 0);
8288  ;
8289  return 0;
8290}
8291_ACEOF
8292if ac_fn_c_try_link "$LINENO"; then :
8293  ac_cv_header_sys_types_h_makedev=yes
8294else
8295  ac_cv_header_sys_types_h_makedev=no
8296fi
8297rm -f core conftest.err conftest.$ac_objext \
8298    conftest$ac_exeext conftest.$ac_ext
8299
8300fi
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
8302$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
8303
8304if test $ac_cv_header_sys_types_h_makedev = no; then
8305ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
8306if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
8307
8308$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
8309
8310fi
8311
8312
8313
8314  if test $ac_cv_header_sys_mkdev_h = no; then
8315    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
8316if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
8317
8318$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
8319
8320fi
8321
8322
8323  fi
8324fi
8325
8326
8327# bluetooth/bluetooth.h has been known to not compile with -std=c99.
8328# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
8329SAVE_CFLAGS=$CFLAGS
8330CFLAGS="-std=c99 $CFLAGS"
8331for ac_header in bluetooth/bluetooth.h
8332do :
8333  ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8334if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8335  cat >>confdefs.h <<_ACEOF
8336#define HAVE_BLUETOOTH_BLUETOOTH_H 1
8337_ACEOF
8338
8339fi
8340
8341done
8342
8343CFLAGS=$SAVE_CFLAGS
8344
8345# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
8346for ac_header in net/if.h
8347do :
8348  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
8349#ifdef STDC_HEADERS
8350# include <stdlib.h>
8351# include <stddef.h>
8352#else
8353# ifdef HAVE_STDLIB_H
8354#  include <stdlib.h>
8355# endif
8356#endif
8357#ifdef HAVE_SYS_SOCKET_H
8358# include <sys/socket.h>
8359#endif
8360
8361"
8362if test "x$ac_cv_header_net_if_h" = xyes; then :
8363  cat >>confdefs.h <<_ACEOF
8364#define HAVE_NET_IF_H 1
8365_ACEOF
8366
8367fi
8368
8369done
8370
8371
8372# On Linux, netlink.h requires asm/types.h
8373for ac_header in linux/netlink.h
8374do :
8375  ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
8376#ifdef HAVE_ASM_TYPES_H
8377#include <asm/types.h>
8378#endif
8379#ifdef HAVE_SYS_SOCKET_H
8380#include <sys/socket.h>
8381#endif
8382
8383"
8384if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
8385  cat >>confdefs.h <<_ACEOF
8386#define HAVE_LINUX_NETLINK_H 1
8387_ACEOF
8388
8389fi
8390
8391done
8392
8393
8394# On Linux, qrtr.h requires asm/types.h
8395for ac_header in linux/qrtr.h
8396do :
8397  ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
8398#ifdef HAVE_ASM_TYPES_H
8399#include <asm/types.h>
8400#endif
8401#ifdef HAVE_SYS_SOCKET_H
8402#include <sys/socket.h>
8403#endif
8404
8405"
8406if test "x$ac_cv_header_linux_qrtr_h" = xyes; then :
8407  cat >>confdefs.h <<_ACEOF
8408#define HAVE_LINUX_QRTR_H 1
8409_ACEOF
8410
8411fi
8412
8413done
8414
8415
8416for ac_header in linux/vm_sockets.h
8417do :
8418  ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
8419#ifdef HAVE_SYS_SOCKET_H
8420#include <sys/socket.h>
8421#endif
8422
8423"
8424if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then :
8425  cat >>confdefs.h <<_ACEOF
8426#define HAVE_LINUX_VM_SOCKETS_H 1
8427_ACEOF
8428
8429fi
8430
8431done
8432
8433
8434# On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h
8435for ac_header in linux/can.h linux/can/bcm.h linux/can/j1939.h linux/can/raw.h
8436do :
8437  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8438ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8439#ifdef HAVE_SYS_SOCKET_H
8440#include <sys/socket.h>
8441#endif
8442
8443"
8444if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8445  cat >>confdefs.h <<_ACEOF
8446#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8447_ACEOF
8448
8449fi
8450
8451done
8452
8453
8454# checks for typedefs
8455was_it_defined=no
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
8457$as_echo_n "checking for clock_t in time.h... " >&6; }
8458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h.  */
8460#include <time.h>
8461
8462_ACEOF
8463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8464  $EGREP "clock_t" >/dev/null 2>&1; then :
8465  was_it_defined=yes
8466else
8467
8468
8469$as_echo "#define clock_t long" >>confdefs.h
8470
8471
8472fi
8473rm -f conftest*
8474
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
8476$as_echo "$was_it_defined" >&6; }
8477
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
8479$as_echo_n "checking for makedev... " >&6; }
8480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481/* end confdefs.h.  */
8482
8483#if defined(MAJOR_IN_MKDEV)
8484#include <sys/mkdev.h>
8485#elif defined(MAJOR_IN_SYSMACROS)
8486#include <sys/sysmacros.h>
8487#else
8488#include <sys/types.h>
8489#endif
8490
8491int
8492main ()
8493{
8494
8495  makedev(0, 0)
8496  ;
8497  return 0;
8498}
8499
8500_ACEOF
8501if ac_fn_c_try_link "$LINENO"; then :
8502  ac_cv_has_makedev=yes
8503else
8504  ac_cv_has_makedev=no
8505fi
8506rm -f core conftest.err conftest.$ac_objext \
8507    conftest$ac_exeext conftest.$ac_ext
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
8509$as_echo "$ac_cv_has_makedev" >&6; }
8510if test "$ac_cv_has_makedev" = "yes"; then
8511
8512$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
8513
8514fi
8515
8516# byte swapping
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
8518$as_echo_n "checking for le64toh... " >&6; }
8519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h.  */
8521
8522#ifdef HAVE_ENDIAN_H
8523#include <endian.h>
8524#elif defined(HAVE_SYS_ENDIAN_H)
8525#include <sys/endian.h>
8526#endif
8527
8528int
8529main ()
8530{
8531
8532   le64toh(1)
8533  ;
8534  return 0;
8535}
8536
8537_ACEOF
8538if ac_fn_c_try_link "$LINENO"; then :
8539  ac_cv_has_le64toh=yes
8540else
8541  ac_cv_has_le64toh=no
8542fi
8543rm -f core conftest.err conftest.$ac_objext \
8544    conftest$ac_exeext conftest.$ac_ext
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5
8546$as_echo "$ac_cv_has_le64toh" >&6; }
8547if test "$ac_cv_has_le64toh" = "yes"; then
8548
8549$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
8550
8551fi
8552
8553use_lfs=yes
8554# Don't use largefile support for GNU/Hurd
8555case $ac_sys_system in GNU*)
8556  use_lfs=no
8557esac
8558
8559if test "$use_lfs" = "yes"; then
8560# Two defines needed to enable largefile support on various platforms
8561# These may affect some typedefs
8562case $ac_sys_system/$ac_sys_release in
8563AIX*)
8564
8565$as_echo "#define _LARGE_FILES 1" >>confdefs.h
8566
8567    ;;
8568esac
8569
8570$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
8571
8572
8573$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8574
8575fi
8576
8577# Add some code to confdefs.h so that the test for off_t works on SCO
8578cat >> confdefs.h <<\EOF
8579#if defined(SCO_DS)
8580#undef _OFF_T
8581#endif
8582EOF
8583
8584# Type availability checks
8585ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8586if test "x$ac_cv_type_mode_t" = xyes; then :
8587
8588else
8589
8590cat >>confdefs.h <<_ACEOF
8591#define mode_t int
8592_ACEOF
8593
8594fi
8595
8596ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8597if test "x$ac_cv_type_off_t" = xyes; then :
8598
8599else
8600
8601cat >>confdefs.h <<_ACEOF
8602#define off_t long int
8603_ACEOF
8604
8605fi
8606
8607ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8608if test "x$ac_cv_type_pid_t" = xyes; then :
8609
8610else
8611
8612cat >>confdefs.h <<_ACEOF
8613#define pid_t int
8614_ACEOF
8615
8616fi
8617
8618
8619cat >>confdefs.h <<_ACEOF
8620#define RETSIGTYPE void
8621_ACEOF
8622
8623ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8624if test "x$ac_cv_type_size_t" = xyes; then :
8625
8626else
8627
8628cat >>confdefs.h <<_ACEOF
8629#define size_t unsigned int
8630_ACEOF
8631
8632fi
8633
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8635$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8636if ${ac_cv_type_uid_t+:} false; then :
8637  $as_echo_n "(cached) " >&6
8638else
8639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640/* end confdefs.h.  */
8641#include <sys/types.h>
8642
8643_ACEOF
8644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8645  $EGREP "uid_t" >/dev/null 2>&1; then :
8646  ac_cv_type_uid_t=yes
8647else
8648  ac_cv_type_uid_t=no
8649fi
8650rm -f conftest*
8651
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8654$as_echo "$ac_cv_type_uid_t" >&6; }
8655if test $ac_cv_type_uid_t = no; then
8656
8657$as_echo "#define uid_t int" >>confdefs.h
8658
8659
8660$as_echo "#define gid_t int" >>confdefs.h
8661
8662fi
8663
8664
8665ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8666if test "x$ac_cv_type_ssize_t" = xyes; then :
8667
8668$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
8669
8670fi
8671
8672ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
8673if test "x$ac_cv_type___uint128_t" = xyes; then :
8674
8675$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
8676
8677fi
8678
8679
8680# Sizes and alignments of various common basic types
8681# ANSI C requires sizeof(char) == 1, so no need to check it
8682# The cast to long int works around a bug in the HP C Compiler
8683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8685# This bug is HP SR number 8606223364.
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8687$as_echo_n "checking size of int... " >&6; }
8688if ${ac_cv_sizeof_int+:} false; then :
8689  $as_echo_n "(cached) " >&6
8690else
8691  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
8692
8693else
8694  if test "$ac_cv_type_int" = yes; then
8695     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8697as_fn_error 77 "cannot compute sizeof (int)
8698See \`config.log' for more details" "$LINENO" 5; }
8699   else
8700     ac_cv_sizeof_int=0
8701   fi
8702fi
8703
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8706$as_echo "$ac_cv_sizeof_int" >&6; }
8707
8708
8709
8710cat >>confdefs.h <<_ACEOF
8711#define SIZEOF_INT $ac_cv_sizeof_int
8712_ACEOF
8713
8714
8715# The cast to long int works around a bug in the HP C Compiler
8716# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8717# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8718# This bug is HP SR number 8606223364.
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8720$as_echo_n "checking size of long... " >&6; }
8721if ${ac_cv_sizeof_long+:} false; then :
8722  $as_echo_n "(cached) " >&6
8723else
8724  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
8725
8726else
8727  if test "$ac_cv_type_long" = yes; then
8728     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8730as_fn_error 77 "cannot compute sizeof (long)
8731See \`config.log' for more details" "$LINENO" 5; }
8732   else
8733     ac_cv_sizeof_long=0
8734   fi
8735fi
8736
8737fi
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8739$as_echo "$ac_cv_sizeof_long" >&6; }
8740
8741
8742
8743cat >>confdefs.h <<_ACEOF
8744#define SIZEOF_LONG $ac_cv_sizeof_long
8745_ACEOF
8746
8747
8748# The cast to long int works around a bug in the HP C Compiler,
8749# see AC_CHECK_SIZEOF for more information.
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
8751$as_echo_n "checking alignment of long... " >&6; }
8752if ${ac_cv_alignof_long+:} false; then :
8753  $as_echo_n "(cached) " >&6
8754else
8755  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long"        "$ac_includes_default
8756#ifndef offsetof
8757# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
8758#endif
8759typedef struct { char x; long y; } ac__type_alignof_;"; then :
8760
8761else
8762  if test "$ac_cv_type_long" = yes; then
8763     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8765as_fn_error 77 "cannot compute alignment of long
8766See \`config.log' for more details" "$LINENO" 5; }
8767   else
8768     ac_cv_alignof_long=0
8769   fi
8770fi
8771
8772fi
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
8774$as_echo "$ac_cv_alignof_long" >&6; }
8775
8776
8777
8778cat >>confdefs.h <<_ACEOF
8779#define ALIGNOF_LONG $ac_cv_alignof_long
8780_ACEOF
8781
8782
8783# The cast to long int works around a bug in the HP C Compiler
8784# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8785# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8786# This bug is HP SR number 8606223364.
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8788$as_echo_n "checking size of long long... " >&6; }
8789if ${ac_cv_sizeof_long_long+:} false; then :
8790  $as_echo_n "(cached) " >&6
8791else
8792  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
8793
8794else
8795  if test "$ac_cv_type_long_long" = yes; then
8796     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8798as_fn_error 77 "cannot compute sizeof (long long)
8799See \`config.log' for more details" "$LINENO" 5; }
8800   else
8801     ac_cv_sizeof_long_long=0
8802   fi
8803fi
8804
8805fi
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8807$as_echo "$ac_cv_sizeof_long_long" >&6; }
8808
8809
8810
8811cat >>confdefs.h <<_ACEOF
8812#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8813_ACEOF
8814
8815
8816# The cast to long int works around a bug in the HP C Compiler
8817# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8818# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8819# This bug is HP SR number 8606223364.
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8821$as_echo_n "checking size of void *... " >&6; }
8822if ${ac_cv_sizeof_void_p+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
8826
8827else
8828  if test "$ac_cv_type_void_p" = yes; then
8829     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8831as_fn_error 77 "cannot compute sizeof (void *)
8832See \`config.log' for more details" "$LINENO" 5; }
8833   else
8834     ac_cv_sizeof_void_p=0
8835   fi
8836fi
8837
8838fi
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8840$as_echo "$ac_cv_sizeof_void_p" >&6; }
8841
8842
8843
8844cat >>confdefs.h <<_ACEOF
8845#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8846_ACEOF
8847
8848
8849# The cast to long int works around a bug in the HP C Compiler
8850# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8851# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8852# This bug is HP SR number 8606223364.
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8854$as_echo_n "checking size of short... " >&6; }
8855if ${ac_cv_sizeof_short+:} false; then :
8856  $as_echo_n "(cached) " >&6
8857else
8858  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
8859
8860else
8861  if test "$ac_cv_type_short" = yes; then
8862     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8864as_fn_error 77 "cannot compute sizeof (short)
8865See \`config.log' for more details" "$LINENO" 5; }
8866   else
8867     ac_cv_sizeof_short=0
8868   fi
8869fi
8870
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8873$as_echo "$ac_cv_sizeof_short" >&6; }
8874
8875
8876
8877cat >>confdefs.h <<_ACEOF
8878#define SIZEOF_SHORT $ac_cv_sizeof_short
8879_ACEOF
8880
8881
8882# The cast to long int works around a bug in the HP C Compiler
8883# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8884# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8885# This bug is HP SR number 8606223364.
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8887$as_echo_n "checking size of float... " >&6; }
8888if ${ac_cv_sizeof_float+:} false; then :
8889  $as_echo_n "(cached) " >&6
8890else
8891  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
8892
8893else
8894  if test "$ac_cv_type_float" = yes; then
8895     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8897as_fn_error 77 "cannot compute sizeof (float)
8898See \`config.log' for more details" "$LINENO" 5; }
8899   else
8900     ac_cv_sizeof_float=0
8901   fi
8902fi
8903
8904fi
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8906$as_echo "$ac_cv_sizeof_float" >&6; }
8907
8908
8909
8910cat >>confdefs.h <<_ACEOF
8911#define SIZEOF_FLOAT $ac_cv_sizeof_float
8912_ACEOF
8913
8914
8915# The cast to long int works around a bug in the HP C Compiler
8916# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8917# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8918# This bug is HP SR number 8606223364.
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8920$as_echo_n "checking size of double... " >&6; }
8921if ${ac_cv_sizeof_double+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
8925
8926else
8927  if test "$ac_cv_type_double" = yes; then
8928     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8930as_fn_error 77 "cannot compute sizeof (double)
8931See \`config.log' for more details" "$LINENO" 5; }
8932   else
8933     ac_cv_sizeof_double=0
8934   fi
8935fi
8936
8937fi
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8939$as_echo "$ac_cv_sizeof_double" >&6; }
8940
8941
8942
8943cat >>confdefs.h <<_ACEOF
8944#define SIZEOF_DOUBLE $ac_cv_sizeof_double
8945_ACEOF
8946
8947
8948# The cast to long int works around a bug in the HP C Compiler
8949# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8950# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8951# This bug is HP SR number 8606223364.
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
8953$as_echo_n "checking size of fpos_t... " >&6; }
8954if ${ac_cv_sizeof_fpos_t+:} false; then :
8955  $as_echo_n "(cached) " >&6
8956else
8957  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then :
8958
8959else
8960  if test "$ac_cv_type_fpos_t" = yes; then
8961     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8963as_fn_error 77 "cannot compute sizeof (fpos_t)
8964See \`config.log' for more details" "$LINENO" 5; }
8965   else
8966     ac_cv_sizeof_fpos_t=0
8967   fi
8968fi
8969
8970fi
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
8972$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
8973
8974
8975
8976cat >>confdefs.h <<_ACEOF
8977#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8978_ACEOF
8979
8980
8981# The cast to long int works around a bug in the HP C Compiler
8982# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8983# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8984# This bug is HP SR number 8606223364.
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8986$as_echo_n "checking size of size_t... " >&6; }
8987if ${ac_cv_sizeof_size_t+:} false; then :
8988  $as_echo_n "(cached) " >&6
8989else
8990  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
8991
8992else
8993  if test "$ac_cv_type_size_t" = yes; then
8994     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8996as_fn_error 77 "cannot compute sizeof (size_t)
8997See \`config.log' for more details" "$LINENO" 5; }
8998   else
8999     ac_cv_sizeof_size_t=0
9000   fi
9001fi
9002
9003fi
9004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9005$as_echo "$ac_cv_sizeof_size_t" >&6; }
9006
9007
9008
9009cat >>confdefs.h <<_ACEOF
9010#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9011_ACEOF
9012
9013
9014# The cast to long int works around a bug in the HP C Compiler,
9015# see AC_CHECK_SIZEOF for more information.
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
9017$as_echo_n "checking alignment of size_t... " >&6; }
9018if ${ac_cv_alignof_size_t+:} false; then :
9019  $as_echo_n "(cached) " >&6
9020else
9021  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t"        "$ac_includes_default
9022#ifndef offsetof
9023# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
9024#endif
9025typedef struct { char x; size_t y; } ac__type_alignof_;"; then :
9026
9027else
9028  if test "$ac_cv_type_size_t" = yes; then
9029     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9031as_fn_error 77 "cannot compute alignment of size_t
9032See \`config.log' for more details" "$LINENO" 5; }
9033   else
9034     ac_cv_alignof_size_t=0
9035   fi
9036fi
9037
9038fi
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5
9040$as_echo "$ac_cv_alignof_size_t" >&6; }
9041
9042
9043
9044cat >>confdefs.h <<_ACEOF
9045#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t
9046_ACEOF
9047
9048
9049# The cast to long int works around a bug in the HP C Compiler
9050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9052# This bug is HP SR number 8606223364.
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
9054$as_echo_n "checking size of pid_t... " >&6; }
9055if ${ac_cv_sizeof_pid_t+:} false; then :
9056  $as_echo_n "(cached) " >&6
9057else
9058  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then :
9059
9060else
9061  if test "$ac_cv_type_pid_t" = yes; then
9062     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9064as_fn_error 77 "cannot compute sizeof (pid_t)
9065See \`config.log' for more details" "$LINENO" 5; }
9066   else
9067     ac_cv_sizeof_pid_t=0
9068   fi
9069fi
9070
9071fi
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
9073$as_echo "$ac_cv_sizeof_pid_t" >&6; }
9074
9075
9076
9077cat >>confdefs.h <<_ACEOF
9078#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
9079_ACEOF
9080
9081
9082# The cast to long int works around a bug in the HP C Compiler
9083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9085# This bug is HP SR number 8606223364.
9086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
9087$as_echo_n "checking size of uintptr_t... " >&6; }
9088if ${ac_cv_sizeof_uintptr_t+:} false; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then :
9092
9093else
9094  if test "$ac_cv_type_uintptr_t" = yes; then
9095     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9097as_fn_error 77 "cannot compute sizeof (uintptr_t)
9098See \`config.log' for more details" "$LINENO" 5; }
9099   else
9100     ac_cv_sizeof_uintptr_t=0
9101   fi
9102fi
9103
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
9106$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
9107
9108
9109
9110cat >>confdefs.h <<_ACEOF
9111#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
9112_ACEOF
9113
9114
9115
9116
9117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
9118$as_echo_n "checking for long double... " >&6; }
9119if ${ac_cv_type_long_double+:} false; then :
9120  $as_echo_n "(cached) " >&6
9121else
9122  if test "$GCC" = yes; then
9123       ac_cv_type_long_double=yes
9124     else
9125       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126/* end confdefs.h.  */
9127/* The Stardent Vistra knows sizeof (long double), but does
9128		 not support it.  */
9129	      long double foo = 0.0L;
9130int
9131main ()
9132{
9133static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
9134	      sizeof (double) <= sizeof (long double))];
9135test_array [0] = 0;
9136return test_array [0];
9137
9138  ;
9139  return 0;
9140}
9141_ACEOF
9142if ac_fn_c_try_compile "$LINENO"; then :
9143  ac_cv_type_long_double=yes
9144else
9145  ac_cv_type_long_double=no
9146fi
9147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9148     fi
9149fi
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
9151$as_echo "$ac_cv_type_long_double" >&6; }
9152  if test $ac_cv_type_long_double = yes; then
9153
9154$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
9155
9156  fi
9157
9158# The cast to long int works around a bug in the HP C Compiler
9159# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9160# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9161# This bug is HP SR number 8606223364.
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
9163$as_echo_n "checking size of long double... " >&6; }
9164if ${ac_cv_sizeof_long_double+:} false; then :
9165  $as_echo_n "(cached) " >&6
9166else
9167  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
9168
9169else
9170  if test "$ac_cv_type_long_double" = yes; then
9171     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9173as_fn_error 77 "cannot compute sizeof (long double)
9174See \`config.log' for more details" "$LINENO" 5; }
9175   else
9176     ac_cv_sizeof_long_double=0
9177   fi
9178fi
9179
9180fi
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
9182$as_echo "$ac_cv_sizeof_long_double" >&6; }
9183
9184
9185
9186cat >>confdefs.h <<_ACEOF
9187#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
9188_ACEOF
9189
9190
9191
9192# The cast to long int works around a bug in the HP C Compiler
9193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9195# This bug is HP SR number 8606223364.
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
9197$as_echo_n "checking size of _Bool... " >&6; }
9198if ${ac_cv_sizeof__Bool+:} false; then :
9199  $as_echo_n "(cached) " >&6
9200else
9201  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then :
9202
9203else
9204  if test "$ac_cv_type__Bool" = yes; then
9205     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9207as_fn_error 77 "cannot compute sizeof (_Bool)
9208See \`config.log' for more details" "$LINENO" 5; }
9209   else
9210     ac_cv_sizeof__Bool=0
9211   fi
9212fi
9213
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
9216$as_echo "$ac_cv_sizeof__Bool" >&6; }
9217
9218
9219
9220cat >>confdefs.h <<_ACEOF
9221#define SIZEOF__BOOL $ac_cv_sizeof__Bool
9222_ACEOF
9223
9224
9225
9226# The cast to long int works around a bug in the HP C Compiler
9227# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9228# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9229# This bug is HP SR number 8606223364.
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
9231$as_echo_n "checking size of off_t... " >&6; }
9232if ${ac_cv_sizeof_off_t+:} false; then :
9233  $as_echo_n "(cached) " >&6
9234else
9235  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "
9236#ifdef HAVE_SYS_TYPES_H
9237#include <sys/types.h>
9238#endif
9239
9240"; then :
9241
9242else
9243  if test "$ac_cv_type_off_t" = yes; then
9244     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9246as_fn_error 77 "cannot compute sizeof (off_t)
9247See \`config.log' for more details" "$LINENO" 5; }
9248   else
9249     ac_cv_sizeof_off_t=0
9250   fi
9251fi
9252
9253fi
9254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
9255$as_echo "$ac_cv_sizeof_off_t" >&6; }
9256
9257
9258
9259cat >>confdefs.h <<_ACEOF
9260#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9261_ACEOF
9262
9263
9264
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
9266$as_echo_n "checking whether to enable large file support... " >&6; }
9267if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
9268	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
9269
9270$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
9271
9272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9273$as_echo "yes" >&6; }
9274else
9275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276$as_echo "no" >&6; }
9277fi
9278
9279# The cast to long int works around a bug in the HP C Compiler
9280# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9281# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9282# This bug is HP SR number 8606223364.
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9284$as_echo_n "checking size of time_t... " >&6; }
9285if ${ac_cv_sizeof_time_t+:} false; then :
9286  $as_echo_n "(cached) " >&6
9287else
9288  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
9289#ifdef HAVE_SYS_TYPES_H
9290#include <sys/types.h>
9291#endif
9292#ifdef HAVE_TIME_H
9293#include <time.h>
9294#endif
9295
9296"; then :
9297
9298else
9299  if test "$ac_cv_type_time_t" = yes; then
9300     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9302as_fn_error 77 "cannot compute sizeof (time_t)
9303See \`config.log' for more details" "$LINENO" 5; }
9304   else
9305     ac_cv_sizeof_time_t=0
9306   fi
9307fi
9308
9309fi
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9311$as_echo "$ac_cv_sizeof_time_t" >&6; }
9312
9313
9314
9315cat >>confdefs.h <<_ACEOF
9316#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9317_ACEOF
9318
9319
9320
9321# if have pthread_t then define SIZEOF_PTHREAD_T
9322ac_save_cc="$CC"
9323if test "$ac_cv_kpthread" = "yes"
9324then CC="$CC -Kpthread"
9325elif test "$ac_cv_kthread" = "yes"
9326then CC="$CC -Kthread"
9327elif test "$ac_cv_pthread" = "yes"
9328then CC="$CC -pthread"
9329fi
9330
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
9332$as_echo_n "checking for pthread_t... " >&6; }
9333have_pthread_t=no
9334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h.  */
9336
9337  #include <pthread.h>
9338int
9339main ()
9340{
9341pthread_t x; x = *(pthread_t*)0;
9342  ;
9343  return 0;
9344}
9345
9346_ACEOF
9347if ac_fn_c_try_compile "$LINENO"; then :
9348  have_pthread_t=yes
9349fi
9350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
9352$as_echo "$have_pthread_t" >&6; }
9353if test "$have_pthread_t" = yes ; then
9354  # The cast to long int works around a bug in the HP C Compiler
9355# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9356# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9357# This bug is HP SR number 8606223364.
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
9359$as_echo_n "checking size of pthread_t... " >&6; }
9360if ${ac_cv_sizeof_pthread_t+:} false; then :
9361  $as_echo_n "(cached) " >&6
9362else
9363  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
9364#ifdef HAVE_PTHREAD_H
9365#include <pthread.h>
9366#endif
9367
9368"; then :
9369
9370else
9371  if test "$ac_cv_type_pthread_t" = yes; then
9372     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9374as_fn_error 77 "cannot compute sizeof (pthread_t)
9375See \`config.log' for more details" "$LINENO" 5; }
9376   else
9377     ac_cv_sizeof_pthread_t=0
9378   fi
9379fi
9380
9381fi
9382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
9383$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
9384
9385
9386
9387cat >>confdefs.h <<_ACEOF
9388#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
9389_ACEOF
9390
9391
9392fi
9393
9394# Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
9395# This checking will be unnecessary after removing deprecated TLS API.
9396# The cast to long int works around a bug in the HP C Compiler
9397# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9398# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9399# This bug is HP SR number 8606223364.
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
9401$as_echo_n "checking size of pthread_key_t... " >&6; }
9402if ${ac_cv_sizeof_pthread_key_t+:} false; then :
9403  $as_echo_n "(cached) " >&6
9404else
9405  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t"        "#include <pthread.h>
9406"; then :
9407
9408else
9409  if test "$ac_cv_type_pthread_key_t" = yes; then
9410     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9412as_fn_error 77 "cannot compute sizeof (pthread_key_t)
9413See \`config.log' for more details" "$LINENO" 5; }
9414   else
9415     ac_cv_sizeof_pthread_key_t=0
9416   fi
9417fi
9418
9419fi
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
9421$as_echo "$ac_cv_sizeof_pthread_key_t" >&6; }
9422
9423
9424
9425cat >>confdefs.h <<_ACEOF
9426#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t
9427_ACEOF
9428
9429
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
9431$as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; }
9432if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
9433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h.  */
9435#include <pthread.h>
9436int
9437main ()
9438{
9439pthread_key_t k; k * 1;
9440  ;
9441  return 0;
9442}
9443_ACEOF
9444if ac_fn_c_try_compile "$LINENO"; then :
9445  ac_pthread_key_t_is_arithmetic_type=yes
9446else
9447  ac_pthread_key_t_is_arithmetic_type=no
9448
9449fi
9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5
9452$as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; }
9453  if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then
9454
9455$as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
9456
9457  fi
9458else
9459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460$as_echo "no" >&6; }
9461fi
9462CC="$ac_save_cc"
9463
9464
9465case $ac_sys_system/$ac_sys_release in
9466  Darwin/[01567]\..*)
9467    OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
9468    ;;
9469  Darwin/*)
9470    OTHER_LIBTOOL_OPT=""
9471    ;;
9472esac
9473
9474
9475
9476case $ac_sys_system/$ac_sys_release in
9477  Darwin/[01567]\..*)
9478    LIBTOOL_CRUFT="-framework System -lcc_dynamic"
9479    if test "${enable_universalsdk}"; then
9480	    :
9481    else
9482        LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
9483    fi
9484    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9485    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9486  Darwin/*)
9487    gcc_version=`gcc -dumpversion`
9488    if test ${gcc_version} '<' 4.0
9489        then
9490            LIBTOOL_CRUFT="-lcc_dynamic"
9491        else
9492            LIBTOOL_CRUFT=""
9493    fi
9494    if test "$cross_compiling" = yes; then :
9495  ac_osx_32bit=yes
9496else
9497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499
9500    #include <unistd.h>
9501    int main(int argc, char*argv[])
9502    {
9503      if (sizeof(long) == 4) {
9504    	  return 0;
9505      } else {
9506      	  return 1;
9507      }
9508    }
9509
9510_ACEOF
9511if ac_fn_c_try_run "$LINENO"; then :
9512  ac_osx_32bit=yes
9513else
9514  ac_osx_32bit=no
9515fi
9516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9517  conftest.$ac_objext conftest.beam conftest.$ac_ext
9518fi
9519
9520
9521    if test "${ac_osx_32bit}" = "yes"; then
9522    	case `/usr/bin/arch` in
9523    	i386)
9524    		MACOSX_DEFAULT_ARCH="i386"
9525    		;;
9526    	ppc)
9527    		MACOSX_DEFAULT_ARCH="ppc"
9528    		;;
9529    	*)
9530    		as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5
9531    		;;
9532    	esac
9533    else
9534    	case `/usr/bin/arch` in
9535    	i386)
9536    		MACOSX_DEFAULT_ARCH="x86_64"
9537    		;;
9538    	ppc)
9539    		MACOSX_DEFAULT_ARCH="ppc64"
9540		;;
9541    	arm64)
9542    		MACOSX_DEFAULT_ARCH="arm64"
9543    		;;
9544    	*)
9545    		as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5
9546    		;;
9547    	esac
9548
9549    fi
9550
9551    LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
9552    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9553    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9554esac
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
9556$as_echo_n "checking for --enable-framework... " >&6; }
9557if test "$enable_framework"
9558then
9559	BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
9560	# -F. is needed to allow linking to the framework while
9561	# in the build location.
9562
9563$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
9564
9565	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9566$as_echo "yes" >&6; }
9567	if test $enable_shared = "yes"
9568	then
9569		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
9570	fi
9571else
9572	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573$as_echo "no" >&6; }
9574fi
9575
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
9577$as_echo_n "checking for dyld... " >&6; }
9578case $ac_sys_system/$ac_sys_release in
9579  Darwin/*)
9580
9581$as_echo "#define WITH_DYLD 1" >>confdefs.h
9582
9583  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
9584$as_echo "always on for Darwin" >&6; }
9585  	;;
9586  *)
9587	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588$as_echo "no" >&6; }
9589	;;
9590esac
9591
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
9593$as_echo_n "checking for --with-address-sanitizer... " >&6; }
9594
9595# Check whether --with-address_sanitizer was given.
9596if test "${with_address_sanitizer+set}" = set; then :
9597  withval=$with_address_sanitizer;
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9599$as_echo "$withval" >&6; }
9600BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
9601LDFLAGS="-fsanitize=address $LDFLAGS"
9602# ASan works by controlling memory allocation, our own malloc interferes.
9603with_pymalloc="no"
9604
9605else
9606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607$as_echo "no" >&6; }
9608fi
9609
9610
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
9612$as_echo_n "checking for --with-memory-sanitizer... " >&6; }
9613
9614# Check whether --with-memory_sanitizer was given.
9615if test "${with_memory_sanitizer+set}" = set; then :
9616  withval=$with_memory_sanitizer;
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9618$as_echo "$withval" >&6; }
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5
9620$as_echo_n "checking whether C compiler accepts -fsanitize=memory... " >&6; }
9621if ${ax_cv_check_cflags___fsanitize_memory+:} false; then :
9622  $as_echo_n "(cached) " >&6
9623else
9624
9625  ax_check_save_flags=$CFLAGS
9626  CFLAGS="$CFLAGS  -fsanitize=memory"
9627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628/* end confdefs.h.  */
9629
9630int
9631main ()
9632{
9633
9634  ;
9635  return 0;
9636}
9637_ACEOF
9638if ac_fn_c_try_compile "$LINENO"; then :
9639  ax_cv_check_cflags___fsanitize_memory=yes
9640else
9641  ax_cv_check_cflags___fsanitize_memory=no
9642fi
9643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644  CFLAGS=$ax_check_save_flags
9645fi
9646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5
9647$as_echo "$ax_cv_check_cflags___fsanitize_memory" >&6; }
9648if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes; then :
9649
9650BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
9651LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
9652
9653else
9654  as_fn_error $? "The selected compiler doesn't support memory sanitizer" "$LINENO" 5
9655fi
9656
9657# MSan works by controlling memory allocation, our own malloc interferes.
9658with_pymalloc="no"
9659
9660else
9661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
9663fi
9664
9665
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
9667$as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; }
9668
9669# Check whether --with-undefined_behavior_sanitizer was given.
9670if test "${with_undefined_behavior_sanitizer+set}" = set; then :
9671  withval=$with_undefined_behavior_sanitizer;
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9673$as_echo "$withval" >&6; }
9674BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
9675LDFLAGS="-fsanitize=undefined $LDFLAGS"
9676with_ubsan="yes"
9677
9678else
9679
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681$as_echo "no" >&6; }
9682with_ubsan="no"
9683
9684fi
9685
9686
9687# Set info about shared libraries.
9688
9689
9690
9691
9692
9693
9694
9695# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
9696# -- usually .so, .sl on HP-UX, .dll on Cygwin
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
9698$as_echo_n "checking the extension of shared libraries... " >&6; }
9699if test -z "$SHLIB_SUFFIX"; then
9700	case $ac_sys_system in
9701	hp*|HP*)
9702		case `uname -m` in
9703			ia64) SHLIB_SUFFIX=.so;;
9704	  		*)    SHLIB_SUFFIX=.sl;;
9705		esac
9706		;;
9707	CYGWIN*)   SHLIB_SUFFIX=.dll;;
9708	*)	   SHLIB_SUFFIX=.so;;
9709	esac
9710fi
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
9712$as_echo "$SHLIB_SUFFIX" >&6; }
9713
9714# LDSHARED is the ld *command* used to create shared library
9715# -- "cc -G" on SunOS 5.x.
9716# (Shared libraries in this instance are shared modules to be loaded into
9717# Python, as opposed to building Python itself as a shared library.)
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
9719$as_echo_n "checking LDSHARED... " >&6; }
9720if test -z "$LDSHARED"
9721then
9722	case $ac_sys_system/$ac_sys_release in
9723	AIX*)
9724		BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9725		LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
9726		;;
9727	SunOS/5*)
9728		if test "$GCC" = "yes" ; then
9729			LDSHARED='$(CC) -shared'
9730			LDCXXSHARED='$(CXX) -shared'
9731		else
9732			LDSHARED='$(CC) -G'
9733			LDCXXSHARED='$(CXX) -G'
9734		fi ;;
9735	hp*|HP*)
9736		if test "$GCC" = "yes" ; then
9737			LDSHARED='$(CC) -shared'
9738			LDCXXSHARED='$(CXX) -shared'
9739		else
9740			LDSHARED='$(CC) -b'
9741			LDCXXSHARED='$(CXX) -b'
9742		fi ;;
9743	Darwin/1.3*)
9744		LDSHARED='$(CC) -bundle'
9745		LDCXXSHARED='$(CXX) -bundle'
9746		if test "$enable_framework" ; then
9747			# Link against the framework. All externals should be defined.
9748			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9749			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9750			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9751		else
9752			# No framework. Ignore undefined symbols, assuming they come from Python
9753			LDSHARED="$LDSHARED -undefined suppress"
9754			LDCXXSHARED="$LDCXXSHARED -undefined suppress"
9755		fi ;;
9756	Darwin/1.4*|Darwin/5.*|Darwin/6.*)
9757		LDSHARED='$(CC) -bundle'
9758		LDCXXSHARED='$(CXX) -bundle'
9759		if test "$enable_framework" ; then
9760			# Link against the framework. All externals should be defined.
9761			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9762			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9763			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9764		else
9765			# No framework, use the Python app as bundle-loader
9766			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9767			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9768			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9769		fi ;;
9770	Darwin/*)
9771		# Use -undefined dynamic_lookup whenever possible (10.3 and later).
9772		# This allows an extension to be used in any Python
9773
9774		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9775				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9776		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9777				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9778		if test ${dep_target_major} -eq 10 && \
9779		   test ${dep_target_minor} -le 2
9780		then
9781			# building for OS X 10.0 through 10.2
9782			as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5
9783		else
9784			# building for OS X 10.3 and later
9785			LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
9786			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
9787			BLDSHARED="$LDSHARED"
9788		fi
9789		;;
9790	Linux*|GNU*|QNX*|VxWorks*)
9791		LDSHARED='$(CC) -shared'
9792		LDCXXSHARED='$(CXX) -shared';;
9793	FreeBSD*)
9794		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9795		then
9796			LDSHARED='$(CC) -shared'
9797			LDCXXSHARED='$(CXX) -shared'
9798		else
9799			LDSHARED="ld -Bshareable"
9800		fi;;
9801	OpenBSD*)
9802		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9803		then
9804				LDSHARED='$(CC) -shared $(CCSHARED)'
9805				LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
9806		else
9807				case `uname -r` in
9808				[01].* | 2.[0-7] | 2.[0-7].*)
9809				   LDSHARED="ld -Bshareable ${LDFLAGS}"
9810				   ;;
9811				*)
9812				   LDSHARED='$(CC) -shared $(CCSHARED)'
9813				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
9814				   ;;
9815				esac
9816		fi;;
9817	NetBSD*|DragonFly*)
9818		LDSHARED='$(CC) -shared'
9819		LDCXXSHARED='$(CXX) -shared';;
9820	OpenUNIX*|UnixWare*)
9821		if test "$GCC" = "yes" ; then
9822			LDSHARED='$(CC) -shared'
9823			LDCXXSHARED='$(CXX) -shared'
9824		else
9825			LDSHARED='$(CC) -G'
9826			LDCXXSHARED='$(CXX) -G'
9827		fi;;
9828	SCO_SV*)
9829		LDSHARED='$(CC) -Wl,-G,-Bexport'
9830		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
9831	CYGWIN*)
9832		LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
9833		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
9834	*)	LDSHARED="ld";;
9835	esac
9836fi
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
9838$as_echo "$LDSHARED" >&6; }
9839LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
9840BLDSHARED=${BLDSHARED-$LDSHARED}
9841# CCSHARED are the C *flags* used to create objects to go into a shared
9842# library (module) -- this is only needed for a few systems
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
9844$as_echo_n "checking CCSHARED... " >&6; }
9845if test -z "$CCSHARED"
9846then
9847	case $ac_sys_system/$ac_sys_release in
9848	SunOS*) if test "$GCC" = yes;
9849		then CCSHARED="-fPIC";
9850		elif test `uname -p` = sparc;
9851		then CCSHARED="-xcode=pic32";
9852		else CCSHARED="-Kpic";
9853		fi;;
9854	hp*|HP*) if test "$GCC" = yes;
9855		 then CCSHARED="-fPIC";
9856		 else CCSHARED="+z";
9857		 fi;;
9858	Linux-android*) ;;
9859	Linux*|GNU*) CCSHARED="-fPIC";;
9860	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
9861	OpenUNIX*|UnixWare*)
9862		if test "$GCC" = "yes"
9863		then CCSHARED="-fPIC"
9864		else CCSHARED="-KPIC"
9865		fi;;
9866	SCO_SV*)
9867		if test "$GCC" = "yes"
9868		then CCSHARED="-fPIC"
9869		else CCSHARED="-Kpic -belf"
9870		fi;;
9871	VxWorks*)
9872		CCSHARED="-fpic -D__SO_PICABILINUX__  -ftls-model=global-dynamic"
9873	esac
9874fi
9875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
9876$as_echo "$CCSHARED" >&6; }
9877# LINKFORSHARED are the flags passed to the $(CC) command that links
9878# the python executable -- this is only needed for a few systems
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
9880$as_echo_n "checking LINKFORSHARED... " >&6; }
9881if test -z "$LINKFORSHARED"
9882then
9883	case $ac_sys_system/$ac_sys_release in
9884	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
9885	hp*|HP*)
9886	    LINKFORSHARED="-Wl,-E -Wl,+s";;
9887#	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9888	Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
9889	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
9890	# -u libsys_s pulls in all symbols in libsys
9891	Darwin/*)
9892		LINKFORSHARED="$extra_undefs -framework CoreFoundation"
9893
9894		# Issue #18075: the default maximum stack size (8MBytes) is too
9895		# small for the default recursion limit. Increase the stack size
9896		# to ensure that tests don't crash
9897    stack_size="1000000"  # 16 MB
9898    if test "$with_ubsan" = "yes"
9899    then
9900        # Undefined behavior sanitizer requires an even deeper stack
9901        stack_size="4000000"  # 64 MB
9902    fi
9903
9904    LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED"
9905
9906
9907cat >>confdefs.h <<_ACEOF
9908#define THREAD_STACK_SIZE 0x$stack_size
9909_ACEOF
9910
9911
9912		if test "$enable_framework"
9913		then
9914			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9915		fi
9916		LINKFORSHARED="$LINKFORSHARED";;
9917	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
9918	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
9919	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
9920	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
9921		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9922		then
9923			LINKFORSHARED="-Wl,--export-dynamic"
9924		fi;;
9925	SunOS/5*) case $CC in
9926		  *gcc*)
9927		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
9928		    then
9929			LINKFORSHARED="-Xlinker --export-dynamic"
9930		    fi;;
9931		  esac;;
9932	CYGWIN*)
9933		if test $enable_shared = "no"
9934		then
9935			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
9936		fi;;
9937	QNX*)
9938		# -Wl,-E causes the symbols to be added to the dynamic
9939		# symbol table so that they can be found when a module
9940		# is loaded.  -N 2048K causes the stack size to be set
9941		# to 2048 kilobytes so that the stack doesn't overflow
9942		# when running test_compile.py.
9943		LINKFORSHARED='-Wl,-E -N 2048K';;
9944	VxWorks*)
9945		LINKFORSHARED='-Wl,-export-dynamic';;
9946	esac
9947fi
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
9949$as_echo "$LINKFORSHARED" >&6; }
9950
9951
9952
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
9954$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
9955if test ! "$LIBRARY" = "$LDLIBRARY"
9956then
9957	case $ac_sys_system in
9958	CYGWIN*)
9959		# Cygwin needs CCSHARED when building extension DLLs
9960		# but not when building the interpreter DLL.
9961		CFLAGSFORSHARED='';;
9962	*)
9963		CFLAGSFORSHARED='$(CCSHARED)'
9964	esac
9965fi
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
9967$as_echo "$CFLAGSFORSHARED" >&6; }
9968
9969# SHLIBS are libraries (except -lc and -lm) to link to the python shared
9970# library (with --enable-shared).
9971# For platforms on which shared libraries are not allowed to have unresolved
9972# symbols, this must be set to $(LIBS) (expanded by make). We do this even
9973# if it is not required, since it creates a dependency of the shared library
9974# to LIBS. This, in turn, means that applications linking the shared libpython
9975# don't need to link LIBS explicitly. The default should be only changed
9976# on systems where this approach causes problems.
9977
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
9979$as_echo_n "checking SHLIBS... " >&6; }
9980case "$ac_sys_system" in
9981	*)
9982		SHLIBS='$(LIBS)';;
9983esac
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
9985$as_echo "$SHLIBS" >&6; }
9986
9987
9988# checks for libraries
9989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
9990$as_echo_n "checking for sendfile in -lsendfile... " >&6; }
9991if ${ac_cv_lib_sendfile_sendfile+:} false; then :
9992  $as_echo_n "(cached) " >&6
9993else
9994  ac_check_lib_save_LIBS=$LIBS
9995LIBS="-lsendfile  $LIBS"
9996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997/* end confdefs.h.  */
9998
9999/* Override any GCC internal prototype to avoid an error.
10000   Use char because int might match the return type of a GCC
10001   builtin and then its argument prototype would still apply.  */
10002#ifdef __cplusplus
10003extern "C"
10004#endif
10005char sendfile ();
10006int
10007main ()
10008{
10009return sendfile ();
10010  ;
10011  return 0;
10012}
10013_ACEOF
10014if ac_fn_c_try_link "$LINENO"; then :
10015  ac_cv_lib_sendfile_sendfile=yes
10016else
10017  ac_cv_lib_sendfile_sendfile=no
10018fi
10019rm -f core conftest.err conftest.$ac_objext \
10020    conftest$ac_exeext conftest.$ac_ext
10021LIBS=$ac_check_lib_save_LIBS
10022fi
10023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
10024$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
10025if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
10026  cat >>confdefs.h <<_ACEOF
10027#define HAVE_LIBSENDFILE 1
10028_ACEOF
10029
10030  LIBS="-lsendfile $LIBS"
10031
10032fi
10033
10034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10035$as_echo_n "checking for dlopen in -ldl... " >&6; }
10036if ${ac_cv_lib_dl_dlopen+:} false; then :
10037  $as_echo_n "(cached) " >&6
10038else
10039  ac_check_lib_save_LIBS=$LIBS
10040LIBS="-ldl  $LIBS"
10041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042/* end confdefs.h.  */
10043
10044/* Override any GCC internal prototype to avoid an error.
10045   Use char because int might match the return type of a GCC
10046   builtin and then its argument prototype would still apply.  */
10047#ifdef __cplusplus
10048extern "C"
10049#endif
10050char dlopen ();
10051int
10052main ()
10053{
10054return dlopen ();
10055  ;
10056  return 0;
10057}
10058_ACEOF
10059if ac_fn_c_try_link "$LINENO"; then :
10060  ac_cv_lib_dl_dlopen=yes
10061else
10062  ac_cv_lib_dl_dlopen=no
10063fi
10064rm -f core conftest.err conftest.$ac_objext \
10065    conftest$ac_exeext conftest.$ac_ext
10066LIBS=$ac_check_lib_save_LIBS
10067fi
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10069$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10070if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10071  cat >>confdefs.h <<_ACEOF
10072#define HAVE_LIBDL 1
10073_ACEOF
10074
10075  LIBS="-ldl $LIBS"
10076
10077fi
10078	# Dynamic linking for SunOS/Solaris and SYSV
10079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10080$as_echo_n "checking for shl_load in -ldld... " >&6; }
10081if ${ac_cv_lib_dld_shl_load+:} false; then :
10082  $as_echo_n "(cached) " >&6
10083else
10084  ac_check_lib_save_LIBS=$LIBS
10085LIBS="-ldld  $LIBS"
10086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h.  */
10088
10089/* Override any GCC internal prototype to avoid an error.
10090   Use char because int might match the return type of a GCC
10091   builtin and then its argument prototype would still apply.  */
10092#ifdef __cplusplus
10093extern "C"
10094#endif
10095char shl_load ();
10096int
10097main ()
10098{
10099return shl_load ();
10100  ;
10101  return 0;
10102}
10103_ACEOF
10104if ac_fn_c_try_link "$LINENO"; then :
10105  ac_cv_lib_dld_shl_load=yes
10106else
10107  ac_cv_lib_dld_shl_load=no
10108fi
10109rm -f core conftest.err conftest.$ac_objext \
10110    conftest$ac_exeext conftest.$ac_ext
10111LIBS=$ac_check_lib_save_LIBS
10112fi
10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10114$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10115if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10116  cat >>confdefs.h <<_ACEOF
10117#define HAVE_LIBDLD 1
10118_ACEOF
10119
10120  LIBS="-ldld $LIBS"
10121
10122fi
10123	# Dynamic linking for HP-UX
10124
10125# checks for uuid.h location
10126for ac_header in uuid/uuid.h uuid.h
10127do :
10128  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10129ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10131  cat >>confdefs.h <<_ACEOF
10132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10133_ACEOF
10134
10135fi
10136
10137done
10138
10139
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5
10141$as_echo_n "checking for uuid_generate_time_safe... " >&6; }
10142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h.  */
10144#include <uuid/uuid.h>
10145int
10146main ()
10147{
10148
10149#ifndef uuid_generate_time_safe
10150void *x = uuid_generate_time_safe
10151#endif
10152
10153  ;
10154  return 0;
10155}
10156_ACEOF
10157if ac_fn_c_try_compile "$LINENO"; then :
10158
10159$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
10160
10161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10162$as_echo "yes" >&6; }
10163else
10164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165$as_echo "no" >&6; }
10166
10167fi
10168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169
10170# check for libuuid from util-linux
10171save_LIBS=$LIBS
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
10173$as_echo_n "checking for uuid_generate_time in -luuid... " >&6; }
10174if ${ac_cv_lib_uuid_uuid_generate_time+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  ac_check_lib_save_LIBS=$LIBS
10178LIBS="-luuid  $LIBS"
10179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h.  */
10181
10182/* Override any GCC internal prototype to avoid an error.
10183   Use char because int might match the return type of a GCC
10184   builtin and then its argument prototype would still apply.  */
10185#ifdef __cplusplus
10186extern "C"
10187#endif
10188char uuid_generate_time ();
10189int
10190main ()
10191{
10192return uuid_generate_time ();
10193  ;
10194  return 0;
10195}
10196_ACEOF
10197if ac_fn_c_try_link "$LINENO"; then :
10198  ac_cv_lib_uuid_uuid_generate_time=yes
10199else
10200  ac_cv_lib_uuid_uuid_generate_time=no
10201fi
10202rm -f core conftest.err conftest.$ac_objext \
10203    conftest$ac_exeext conftest.$ac_ext
10204LIBS=$ac_check_lib_save_LIBS
10205fi
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
10207$as_echo "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
10208if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes; then :
10209  cat >>confdefs.h <<_ACEOF
10210#define HAVE_LIBUUID 1
10211_ACEOF
10212
10213  LIBS="-luuid $LIBS"
10214
10215fi
10216
10217LIBS=$save_LIBS
10218
10219# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007)
10220# FreeBSD and OpenBSD provides support in libc as well.
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5
10222$as_echo_n "checking for uuid_create... " >&6; }
10223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224/* end confdefs.h.  */
10225#include <uuid.h>
10226int
10227main ()
10228{
10229
10230#ifndef uuid_create
10231void *x = uuid_create
10232#endif
10233
10234  ;
10235  return 0;
10236}
10237_ACEOF
10238if ac_fn_c_try_compile "$LINENO"; then :
10239
10240$as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h
10241
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10243$as_echo "yes" >&6; }
10244else
10245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246$as_echo "no" >&6; }
10247
10248fi
10249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10250
10251# Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet
10252# stream in big-endian byte-order
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5
10254$as_echo_n "checking for uuid_enc_be... " >&6; }
10255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h.  */
10257#include <uuid.h>
10258int
10259main ()
10260{
10261
10262#ifndef uuid_enc_be
10263void *x = uuid_enc_be
10264#endif
10265
10266  ;
10267  return 0;
10268}
10269_ACEOF
10270if ac_fn_c_try_compile "$LINENO"; then :
10271
10272$as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h
10273
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10275$as_echo "yes" >&6; }
10276else
10277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278$as_echo "no" >&6; }
10279
10280fi
10281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10282
10283# 'Real Time' functions on Solaris
10284# posix4 on Solaris 2.6
10285# pthread (first!) on Linux
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
10287$as_echo_n "checking for library containing sem_init... " >&6; }
10288if ${ac_cv_search_sem_init+:} false; then :
10289  $as_echo_n "(cached) " >&6
10290else
10291  ac_func_search_save_LIBS=$LIBS
10292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293/* end confdefs.h.  */
10294
10295/* Override any GCC internal prototype to avoid an error.
10296   Use char because int might match the return type of a GCC
10297   builtin and then its argument prototype would still apply.  */
10298#ifdef __cplusplus
10299extern "C"
10300#endif
10301char sem_init ();
10302int
10303main ()
10304{
10305return sem_init ();
10306  ;
10307  return 0;
10308}
10309_ACEOF
10310for ac_lib in '' pthread rt posix4; do
10311  if test -z "$ac_lib"; then
10312    ac_res="none required"
10313  else
10314    ac_res=-l$ac_lib
10315    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10316  fi
10317  if ac_fn_c_try_link "$LINENO"; then :
10318  ac_cv_search_sem_init=$ac_res
10319fi
10320rm -f core conftest.err conftest.$ac_objext \
10321    conftest$ac_exeext
10322  if ${ac_cv_search_sem_init+:} false; then :
10323  break
10324fi
10325done
10326if ${ac_cv_search_sem_init+:} false; then :
10327
10328else
10329  ac_cv_search_sem_init=no
10330fi
10331rm conftest.$ac_ext
10332LIBS=$ac_func_search_save_LIBS
10333fi
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
10335$as_echo "$ac_cv_search_sem_init" >&6; }
10336ac_res=$ac_cv_search_sem_init
10337if test "$ac_res" != no; then :
10338  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10339
10340fi
10341
10342
10343# check if we need libintl for locale functions
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
10345$as_echo_n "checking for textdomain in -lintl... " >&6; }
10346if ${ac_cv_lib_intl_textdomain+:} false; then :
10347  $as_echo_n "(cached) " >&6
10348else
10349  ac_check_lib_save_LIBS=$LIBS
10350LIBS="-lintl  $LIBS"
10351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352/* end confdefs.h.  */
10353
10354/* Override any GCC internal prototype to avoid an error.
10355   Use char because int might match the return type of a GCC
10356   builtin and then its argument prototype would still apply.  */
10357#ifdef __cplusplus
10358extern "C"
10359#endif
10360char textdomain ();
10361int
10362main ()
10363{
10364return textdomain ();
10365  ;
10366  return 0;
10367}
10368_ACEOF
10369if ac_fn_c_try_link "$LINENO"; then :
10370  ac_cv_lib_intl_textdomain=yes
10371else
10372  ac_cv_lib_intl_textdomain=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext \
10375    conftest$ac_exeext conftest.$ac_ext
10376LIBS=$ac_check_lib_save_LIBS
10377fi
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
10379$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
10380if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
10381
10382$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
10383
10384        LIBS="-lintl $LIBS"
10385fi
10386
10387
10388# checks for system dependent C++ extensions support
10389case "$ac_sys_system" in
10390	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
10391$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
10392		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394
10395		  #include <load.h>
10396int
10397main ()
10398{
10399loadAndInit("", 0, "")
10400  ;
10401  return 0;
10402}
10403
10404_ACEOF
10405if ac_fn_c_try_link "$LINENO"; then :
10406
10407
10408$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
10409
10410		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10411$as_echo "yes" >&6; }
10412
10413else
10414
10415		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416$as_echo "no" >&6; }
10417
10418fi
10419rm -f core conftest.err conftest.$ac_objext \
10420    conftest$ac_exeext conftest.$ac_ext
10421# BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag
10422# of the AIX system used to build/package Python executable. This tag serves
10423# as a baseline for bdist module packages
10424               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5
10425$as_echo_n "checking for the system builddate... " >&6; }
10426               AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F:  '{ print $NF }')
10427
10428cat >>confdefs.h <<_ACEOF
10429#define AIX_BUILDDATE $AIX_BUILDDATE
10430_ACEOF
10431
10432               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5
10433$as_echo "$AIX_BUILDDATE" >&6; }
10434               ;;
10435	*) ;;
10436esac
10437
10438# check for systems that require aligned memory access
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
10440$as_echo_n "checking aligned memory access is required... " >&6; }
10441if ${ac_cv_aligned_required+:} false; then :
10442  $as_echo_n "(cached) " >&6
10443else
10444  if test "$cross_compiling" = yes; then :
10445  ac_cv_aligned_required=yes
10446else
10447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448/* end confdefs.h.  */
10449
10450int main()
10451{
10452    char s[16];
10453    int i, *p1, *p2;
10454    for (i=0; i < 16; i++)
10455        s[i] = i;
10456    p1 = (int*)(s+1);
10457    p2 = (int*)(s+2);
10458    if (*p1 == *p2)
10459        return 1;
10460    return 0;
10461}
10462_ACEOF
10463if ac_fn_c_try_run "$LINENO"; then :
10464  ac_cv_aligned_required=no
10465else
10466  ac_cv_aligned_required=yes
10467fi
10468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10469  conftest.$ac_objext conftest.beam conftest.$ac_ext
10470fi
10471
10472
10473fi
10474
10475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
10476$as_echo "$ac_cv_aligned_required" >&6; }
10477if test "$ac_cv_aligned_required" = yes ; then
10478
10479$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
10480
10481fi
10482
10483# str, bytes and memoryview hash algorithm
10484
10485
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
10487$as_echo_n "checking for --with-hash-algorithm... " >&6; }
10488
10489# Check whether --with-hash_algorithm was given.
10490if test "${with_hash_algorithm+set}" = set; then :
10491  withval=$with_hash_algorithm;
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10493$as_echo "$withval" >&6; }
10494case "$withval" in
10495    siphash24)
10496        $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h
10497
10498        ;;
10499    fnv)
10500        $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h
10501
10502        ;;
10503    *)
10504        as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
10505        ;;
10506esac
10507
10508else
10509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
10510$as_echo "default" >&6; }
10511fi
10512
10513
10514validate_tzpath() {
10515    # Checks that each element of hte path is an absolute path
10516    if test -z "$1"; then
10517        # Empty string is allowed: it indicates no system TZPATH
10518        return 0
10519    fi
10520
10521    # Bad paths are those that don't start with /
10522        if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then
10523        as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5
10524        return 1;
10525    fi
10526}
10527
10528TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo"
10529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5
10530$as_echo_n "checking for --with-tzpath... " >&6; }
10531
10532# Check whether --with-tzpath was given.
10533if test "${with_tzpath+set}" = set; then :
10534  withval=$with_tzpath;
10535case "$withval" in
10536    yes)
10537        as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5
10538        ;;
10539    *)
10540        validate_tzpath "$withval"
10541        TZPATH="$withval"
10542        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
10543$as_echo "\"$withval\"" >&6; }
10544        ;;
10545esac
10546
10547else
10548  validate_tzpath "$TZPATH"
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5
10550$as_echo "\"$TZPATH\"" >&6; }
10551fi
10552
10553
10554
10555# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
10556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
10557$as_echo_n "checking for t_open in -lnsl... " >&6; }
10558if ${ac_cv_lib_nsl_t_open+:} false; then :
10559  $as_echo_n "(cached) " >&6
10560else
10561  ac_check_lib_save_LIBS=$LIBS
10562LIBS="-lnsl  $LIBS"
10563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h.  */
10565
10566/* Override any GCC internal prototype to avoid an error.
10567   Use char because int might match the return type of a GCC
10568   builtin and then its argument prototype would still apply.  */
10569#ifdef __cplusplus
10570extern "C"
10571#endif
10572char t_open ();
10573int
10574main ()
10575{
10576return t_open ();
10577  ;
10578  return 0;
10579}
10580_ACEOF
10581if ac_fn_c_try_link "$LINENO"; then :
10582  ac_cv_lib_nsl_t_open=yes
10583else
10584  ac_cv_lib_nsl_t_open=no
10585fi
10586rm -f core conftest.err conftest.$ac_objext \
10587    conftest$ac_exeext conftest.$ac_ext
10588LIBS=$ac_check_lib_save_LIBS
10589fi
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
10591$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
10592if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
10593  LIBS="-lnsl $LIBS"
10594fi
10595 # SVR4
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10597$as_echo_n "checking for socket in -lsocket... " >&6; }
10598if ${ac_cv_lib_socket_socket+:} false; then :
10599  $as_echo_n "(cached) " >&6
10600else
10601  ac_check_lib_save_LIBS=$LIBS
10602LIBS="-lsocket $LIBS $LIBS"
10603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604/* end confdefs.h.  */
10605
10606/* Override any GCC internal prototype to avoid an error.
10607   Use char because int might match the return type of a GCC
10608   builtin and then its argument prototype would still apply.  */
10609#ifdef __cplusplus
10610extern "C"
10611#endif
10612char socket ();
10613int
10614main ()
10615{
10616return socket ();
10617  ;
10618  return 0;
10619}
10620_ACEOF
10621if ac_fn_c_try_link "$LINENO"; then :
10622  ac_cv_lib_socket_socket=yes
10623else
10624  ac_cv_lib_socket_socket=no
10625fi
10626rm -f core conftest.err conftest.$ac_objext \
10627    conftest$ac_exeext conftest.$ac_ext
10628LIBS=$ac_check_lib_save_LIBS
10629fi
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10631$as_echo "$ac_cv_lib_socket_socket" >&6; }
10632if test "x$ac_cv_lib_socket_socket" = xyes; then :
10633  LIBS="-lsocket $LIBS"
10634fi
10635 # SVR4 sockets
10636
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
10638$as_echo_n "checking for --with-libs... " >&6; }
10639
10640# Check whether --with-libs was given.
10641if test "${with_libs+set}" = set; then :
10642  withval=$with_libs;
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10644$as_echo "$withval" >&6; }
10645LIBS="$withval $LIBS"
10646
10647else
10648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649$as_echo "no" >&6; }
10650fi
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10661	if test -n "$ac_tool_prefix"; then
10662  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10663set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665$as_echo_n "checking for $ac_word... " >&6; }
10666if ${ac_cv_path_PKG_CONFIG+:} false; then :
10667  $as_echo_n "(cached) " >&6
10668else
10669  case $PKG_CONFIG in
10670  [\\/]* | ?:[\\/]*)
10671  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10672  ;;
10673  *)
10674  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675for as_dir in $PATH
10676do
10677  IFS=$as_save_IFS
10678  test -z "$as_dir" && as_dir=.
10679    for ac_exec_ext in '' $ac_executable_extensions; do
10680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10681    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683    break 2
10684  fi
10685done
10686  done
10687IFS=$as_save_IFS
10688
10689  ;;
10690esac
10691fi
10692PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10693if test -n "$PKG_CONFIG"; then
10694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10695$as_echo "$PKG_CONFIG" >&6; }
10696else
10697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698$as_echo "no" >&6; }
10699fi
10700
10701
10702fi
10703if test -z "$ac_cv_path_PKG_CONFIG"; then
10704  ac_pt_PKG_CONFIG=$PKG_CONFIG
10705  # Extract the first word of "pkg-config", so it can be a program name with args.
10706set dummy pkg-config; ac_word=$2
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708$as_echo_n "checking for $ac_word... " >&6; }
10709if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10710  $as_echo_n "(cached) " >&6
10711else
10712  case $ac_pt_PKG_CONFIG in
10713  [\\/]* | ?:[\\/]*)
10714  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10715  ;;
10716  *)
10717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $PATH
10719do
10720  IFS=$as_save_IFS
10721  test -z "$as_dir" && as_dir=.
10722    for ac_exec_ext in '' $ac_executable_extensions; do
10723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726    break 2
10727  fi
10728done
10729  done
10730IFS=$as_save_IFS
10731
10732  ;;
10733esac
10734fi
10735ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10736if test -n "$ac_pt_PKG_CONFIG"; then
10737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10738$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10739else
10740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
10742fi
10743
10744  if test "x$ac_pt_PKG_CONFIG" = x; then
10745    PKG_CONFIG=""
10746  else
10747    case $cross_compiling:$ac_tool_warned in
10748yes:)
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10751ac_tool_warned=yes ;;
10752esac
10753    PKG_CONFIG=$ac_pt_PKG_CONFIG
10754  fi
10755else
10756  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10757fi
10758
10759fi
10760if test -n "$PKG_CONFIG"; then
10761	_pkg_min_version=0.9.0
10762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10763$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10764	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10765		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766$as_echo "yes" >&6; }
10767	else
10768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769$as_echo "no" >&6; }
10770		PKG_CONFIG=""
10771	fi
10772fi
10773
10774# Check for use of the system expat library
10775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
10776$as_echo_n "checking for --with-system-expat... " >&6; }
10777
10778# Check whether --with-system_expat was given.
10779if test "${with_system_expat+set}" = set; then :
10780  withval=$with_system_expat;
10781else
10782  with_system_expat="no"
10783fi
10784
10785
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
10787$as_echo "$with_system_expat" >&6; }
10788
10789# Check for use of the system libffi library
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
10791$as_echo_n "checking for --with-system-ffi... " >&6; }
10792
10793# Check whether --with-system_ffi was given.
10794if test "${with_system_ffi+set}" = set; then :
10795  withval=$with_system_ffi;
10796fi
10797
10798
10799if test "$ac_sys_system" = "Darwin"
10800then
10801    case "$with_system_ffi" in
10802        "")
10803            with_system_ffi="no"
10804            ;;
10805        yes|no)
10806            ;;
10807        *)
10808            as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5
10809            ;;
10810    esac
10811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
10812$as_echo "$with_system_ffi" >&6; }
10813else
10814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10815$as_echo "yes" >&6; }
10816    if test "$with_system_ffi" != ""
10817    then
10818        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5
10819$as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;}
10820    fi
10821    with_system_ffi="yes"
10822fi
10823
10824if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
10825    LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
10826else
10827    LIBFFI_INCLUDEDIR=""
10828fi
10829
10830
10831# Check for use of the system libmpdec library
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
10833$as_echo_n "checking for --with-system-libmpdec... " >&6; }
10834
10835# Check whether --with-system_libmpdec was given.
10836if test "${with_system_libmpdec+set}" = set; then :
10837  withval=$with_system_libmpdec;
10838else
10839  with_system_libmpdec="no"
10840fi
10841
10842
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
10844$as_echo "$with_system_libmpdec" >&6; }
10845
10846# Check whether _decimal should use a coroutine-local or thread-local context
10847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
10848$as_echo_n "checking for --with-decimal-contextvar... " >&6; }
10849
10850# Check whether --with-decimal_contextvar was given.
10851if test "${with_decimal_contextvar+set}" = set; then :
10852  withval=$with_decimal_contextvar;
10853else
10854  with_decimal_contextvar="yes"
10855fi
10856
10857
10858if test "$with_decimal_contextvar" != "no"
10859then
10860
10861$as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
10862
10863fi
10864
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
10866$as_echo "$with_decimal_contextvar" >&6; }
10867
10868# Check for support for loadable sqlite extensions
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
10870$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; }
10871# Check whether --enable-loadable-sqlite-extensions was given.
10872if test "${enable_loadable_sqlite_extensions+set}" = set; then :
10873  enableval=$enable_loadable_sqlite_extensions;
10874else
10875  enable_loadable_sqlite_extensions="no"
10876fi
10877
10878
10879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5
10880$as_echo "$enable_loadable_sqlite_extensions" >&6; }
10881
10882# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
10883
10884
10885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
10886$as_echo_n "checking for --with-tcltk-includes... " >&6; }
10887
10888# Check whether --with-tcltk-includes was given.
10889if test "${with_tcltk_includes+set}" = set; then :
10890  withval=$with_tcltk_includes;
10891else
10892  with_tcltk_includes="default"
10893fi
10894
10895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
10896$as_echo "$with_tcltk_includes" >&6; }
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
10898$as_echo_n "checking for --with-tcltk-libs... " >&6; }
10899
10900# Check whether --with-tcltk-libs was given.
10901if test "${with_tcltk_libs+set}" = set; then :
10902  withval=$with_tcltk_libs;
10903else
10904  with_tcltk_libs="default"
10905fi
10906
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
10908$as_echo "$with_tcltk_libs" >&6; }
10909if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
10910then
10911  if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
10912  then
10913    as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
10914  fi
10915  if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists tcl tk; then
10916    TCLTK_INCLUDES="`"$PKG_CONFIG" tcl tk --cflags-only-I 2>/dev/null`"
10917    TCLTK_LIBS="`"$PKG_CONFIG" tcl tk --libs 2>/dev/null`"
10918  else
10919    TCLTK_INCLUDES=""
10920    TCLTK_LIBS=""
10921  fi
10922else
10923  TCLTK_INCLUDES="$with_tcltk_includes"
10924  TCLTK_LIBS="$with_tcltk_libs"
10925fi
10926
10927# Check for --with-dbmliborder
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
10929$as_echo_n "checking for --with-dbmliborder... " >&6; }
10930
10931# Check whether --with-dbmliborder was given.
10932if test "${with_dbmliborder+set}" = set; then :
10933  withval=$with_dbmliborder;
10934if test x$with_dbmliborder = xyes
10935then
10936as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
10937else
10938  for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
10939    if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
10940    then
10941      as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
10942    fi
10943  done
10944fi
10945fi
10946
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
10948$as_echo "$with_dbmliborder" >&6; }
10949
10950# Templates for things AC_DEFINEd more than once.
10951# For a single AC_DEFINE, no template is needed.
10952
10953
10954if test "$ac_cv_pthread_is_default" = yes
10955then
10956    # Defining _REENTRANT on system with POSIX threads should not hurt.
10957    $as_echo "#define _REENTRANT 1" >>confdefs.h
10958
10959    posix_threads=yes
10960    if test "$ac_sys_system" = "SunOS"; then
10961        CFLAGS="$CFLAGS -D_REENTRANT"
10962    fi
10963elif test "$ac_cv_kpthread" = "yes"
10964then
10965    CC="$CC -Kpthread"
10966    if test "$ac_cv_cxx_thread" = "yes"; then
10967        CXX="$CXX -Kpthread"
10968    fi
10969    posix_threads=yes
10970elif test "$ac_cv_kthread" = "yes"
10971then
10972    CC="$CC -Kthread"
10973    if test "$ac_cv_cxx_thread" = "yes"; then
10974        CXX="$CXX -Kthread"
10975    fi
10976    posix_threads=yes
10977elif test "$ac_cv_pthread" = "yes"
10978then
10979    CC="$CC -pthread"
10980    if test "$ac_cv_cxx_thread" = "yes"; then
10981        CXX="$CXX -pthread"
10982    fi
10983    posix_threads=yes
10984else
10985    if test ! -z "$withval" -a -d "$withval"
10986    then LDFLAGS="$LDFLAGS -L$withval"
10987    fi
10988
10989    # According to the POSIX spec, a pthreads implementation must
10990    # define _POSIX_THREADS in unistd.h. Some apparently don't
10991    # (e.g. gnu pth with pthread emulation)
10992    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
10993$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
10994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995/* end confdefs.h.  */
10996
10997#include <unistd.h>
10998#ifdef _POSIX_THREADS
10999yes
11000#endif
11001
11002_ACEOF
11003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11004  $EGREP "yes" >/dev/null 2>&1; then :
11005  unistd_defines_pthreads=yes
11006else
11007  unistd_defines_pthreads=no
11008fi
11009rm -f conftest*
11010
11011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
11012$as_echo "$unistd_defines_pthreads" >&6; }
11013
11014    $as_echo "#define _REENTRANT 1" >>confdefs.h
11015
11016    # Just looking for pthread_create in libpthread is not enough:
11017    # on HP/UX, pthread.h renames pthread_create to a different symbol name.
11018    # So we really have to include pthread.h, and then link.
11019    _libs=$LIBS
11020    LIBS="$LIBS -lpthread"
11021    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
11022$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
11023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024/* end confdefs.h.  */
11025
11026#include <stdio.h>
11027#include <pthread.h>
11028
11029void * start_routine (void *arg) { exit (0); }
11030int
11031main ()
11032{
11033
11034pthread_create (NULL, NULL, start_routine, NULL)
11035  ;
11036  return 0;
11037}
11038_ACEOF
11039if ac_fn_c_try_link "$LINENO"; then :
11040
11041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11042$as_echo "yes" >&6; }
11043    posix_threads=yes
11044
11045else
11046
11047    LIBS=$_libs
11048    ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
11049if test "x$ac_cv_func_pthread_detach" = xyes; then :
11050
11051    posix_threads=yes
11052
11053else
11054
11055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
11056$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
11057if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
11058  $as_echo_n "(cached) " >&6
11059else
11060  ac_check_lib_save_LIBS=$LIBS
11061LIBS="-lpthreads  $LIBS"
11062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063/* end confdefs.h.  */
11064
11065/* Override any GCC internal prototype to avoid an error.
11066   Use char because int might match the return type of a GCC
11067   builtin and then its argument prototype would still apply.  */
11068#ifdef __cplusplus
11069extern "C"
11070#endif
11071char pthread_create ();
11072int
11073main ()
11074{
11075return pthread_create ();
11076  ;
11077  return 0;
11078}
11079_ACEOF
11080if ac_fn_c_try_link "$LINENO"; then :
11081  ac_cv_lib_pthreads_pthread_create=yes
11082else
11083  ac_cv_lib_pthreads_pthread_create=no
11084fi
11085rm -f core conftest.err conftest.$ac_objext \
11086    conftest$ac_exeext conftest.$ac_ext
11087LIBS=$ac_check_lib_save_LIBS
11088fi
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
11090$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
11091if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
11092
11093    posix_threads=yes
11094    LIBS="$LIBS -lpthreads"
11095
11096else
11097
11098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
11099$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
11100if ${ac_cv_lib_c_r_pthread_create+:} false; then :
11101  $as_echo_n "(cached) " >&6
11102else
11103  ac_check_lib_save_LIBS=$LIBS
11104LIBS="-lc_r  $LIBS"
11105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106/* end confdefs.h.  */
11107
11108/* Override any GCC internal prototype to avoid an error.
11109   Use char because int might match the return type of a GCC
11110   builtin and then its argument prototype would still apply.  */
11111#ifdef __cplusplus
11112extern "C"
11113#endif
11114char pthread_create ();
11115int
11116main ()
11117{
11118return pthread_create ();
11119  ;
11120  return 0;
11121}
11122_ACEOF
11123if ac_fn_c_try_link "$LINENO"; then :
11124  ac_cv_lib_c_r_pthread_create=yes
11125else
11126  ac_cv_lib_c_r_pthread_create=no
11127fi
11128rm -f core conftest.err conftest.$ac_objext \
11129    conftest$ac_exeext conftest.$ac_ext
11130LIBS=$ac_check_lib_save_LIBS
11131fi
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
11133$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
11134if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
11135
11136    posix_threads=yes
11137    LIBS="$LIBS -lc_r"
11138
11139else
11140
11141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
11142$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
11143if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
11144  $as_echo_n "(cached) " >&6
11145else
11146  ac_check_lib_save_LIBS=$LIBS
11147LIBS="-lpthread  $LIBS"
11148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h.  */
11150
11151/* Override any GCC internal prototype to avoid an error.
11152   Use char because int might match the return type of a GCC
11153   builtin and then its argument prototype would still apply.  */
11154#ifdef __cplusplus
11155extern "C"
11156#endif
11157char __pthread_create_system ();
11158int
11159main ()
11160{
11161return __pthread_create_system ();
11162  ;
11163  return 0;
11164}
11165_ACEOF
11166if ac_fn_c_try_link "$LINENO"; then :
11167  ac_cv_lib_pthread___pthread_create_system=yes
11168else
11169  ac_cv_lib_pthread___pthread_create_system=no
11170fi
11171rm -f core conftest.err conftest.$ac_objext \
11172    conftest$ac_exeext conftest.$ac_ext
11173LIBS=$ac_check_lib_save_LIBS
11174fi
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
11176$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
11177if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
11178
11179    posix_threads=yes
11180    LIBS="$LIBS -lpthread"
11181
11182else
11183
11184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
11185$as_echo_n "checking for pthread_create in -lcma... " >&6; }
11186if ${ac_cv_lib_cma_pthread_create+:} false; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  ac_check_lib_save_LIBS=$LIBS
11190LIBS="-lcma  $LIBS"
11191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h.  */
11193
11194/* Override any GCC internal prototype to avoid an error.
11195   Use char because int might match the return type of a GCC
11196   builtin and then its argument prototype would still apply.  */
11197#ifdef __cplusplus
11198extern "C"
11199#endif
11200char pthread_create ();
11201int
11202main ()
11203{
11204return pthread_create ();
11205  ;
11206  return 0;
11207}
11208_ACEOF
11209if ac_fn_c_try_link "$LINENO"; then :
11210  ac_cv_lib_cma_pthread_create=yes
11211else
11212  ac_cv_lib_cma_pthread_create=no
11213fi
11214rm -f core conftest.err conftest.$ac_objext \
11215    conftest$ac_exeext conftest.$ac_ext
11216LIBS=$ac_check_lib_save_LIBS
11217fi
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
11219$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
11220if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
11221
11222    posix_threads=yes
11223    LIBS="$LIBS -lcma"
11224
11225else
11226
11227    as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
11228
11229fi
11230
11231
11232fi
11233
11234fi
11235
11236fi
11237
11238fi
11239
11240fi
11241rm -f core conftest.err conftest.$ac_objext \
11242    conftest$ac_exeext conftest.$ac_ext
11243
11244    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
11245$as_echo_n "checking for usconfig in -lmpc... " >&6; }
11246if ${ac_cv_lib_mpc_usconfig+:} false; then :
11247  $as_echo_n "(cached) " >&6
11248else
11249  ac_check_lib_save_LIBS=$LIBS
11250LIBS="-lmpc  $LIBS"
11251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252/* end confdefs.h.  */
11253
11254/* Override any GCC internal prototype to avoid an error.
11255   Use char because int might match the return type of a GCC
11256   builtin and then its argument prototype would still apply.  */
11257#ifdef __cplusplus
11258extern "C"
11259#endif
11260char usconfig ();
11261int
11262main ()
11263{
11264return usconfig ();
11265  ;
11266  return 0;
11267}
11268_ACEOF
11269if ac_fn_c_try_link "$LINENO"; then :
11270  ac_cv_lib_mpc_usconfig=yes
11271else
11272  ac_cv_lib_mpc_usconfig=no
11273fi
11274rm -f core conftest.err conftest.$ac_objext \
11275    conftest$ac_exeext conftest.$ac_ext
11276LIBS=$ac_check_lib_save_LIBS
11277fi
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
11279$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
11280if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
11281
11282    LIBS="$LIBS -lmpc"
11283
11284fi
11285
11286
11287fi
11288
11289if test "$posix_threads" = "yes"; then
11290      if test "$unistd_defines_pthreads" = "no"; then
11291
11292$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
11293
11294      fi
11295
11296      # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
11297      case  $ac_sys_system/$ac_sys_release in
11298      SunOS/5.6)
11299$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
11300
11301		       ;;
11302      SunOS/5.8)
11303$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
11304
11305		       ;;
11306      AIX/*)
11307$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
11308
11309		       ;;
11310      esac
11311
11312      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
11313$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
11314      if ${ac_cv_pthread_system_supported+:} false; then :
11315  $as_echo_n "(cached) " >&6
11316else
11317  if test "$cross_compiling" = yes; then :
11318  ac_cv_pthread_system_supported=no
11319else
11320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321/* end confdefs.h.  */
11322
11323      #include <stdio.h>
11324      #include <pthread.h>
11325      void *foo(void *parm) {
11326        return NULL;
11327      }
11328      main() {
11329        pthread_attr_t attr;
11330        pthread_t id;
11331        if (pthread_attr_init(&attr)) return (-1);
11332        if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
11333        if (pthread_create(&id, &attr, foo, NULL)) return (-1);
11334        return (0);
11335      }
11336_ACEOF
11337if ac_fn_c_try_run "$LINENO"; then :
11338  ac_cv_pthread_system_supported=yes
11339else
11340  ac_cv_pthread_system_supported=no
11341fi
11342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11343  conftest.$ac_objext conftest.beam conftest.$ac_ext
11344fi
11345
11346
11347fi
11348
11349      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
11350$as_echo "$ac_cv_pthread_system_supported" >&6; }
11351      if test "$ac_cv_pthread_system_supported" = "yes"; then
11352
11353$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
11354
11355      fi
11356      for ac_func in pthread_sigmask
11357do :
11358  ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
11359if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
11360  cat >>confdefs.h <<_ACEOF
11361#define HAVE_PTHREAD_SIGMASK 1
11362_ACEOF
11363 case $ac_sys_system in
11364        CYGWIN*)
11365
11366$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
11367
11368            ;;
11369        esac
11370fi
11371done
11372
11373      for ac_func in pthread_getcpuclockid
11374do :
11375  ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
11376if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then :
11377  cat >>confdefs.h <<_ACEOF
11378#define HAVE_PTHREAD_GETCPUCLOCKID 1
11379_ACEOF
11380
11381fi
11382done
11383
11384fi
11385
11386
11387# Check for enable-ipv6
11388
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
11390$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
11391# Check whether --enable-ipv6 was given.
11392if test "${enable_ipv6+set}" = set; then :
11393  enableval=$enable_ipv6;  case "$enableval" in
11394  no)
11395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
11397       ipv6=no
11398       ;;
11399  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400$as_echo "yes" >&6; }
11401       $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
11402
11403       ipv6=yes
11404       ;;
11405  esac
11406else
11407
11408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409/* end confdefs.h.  */
11410 /* AF_INET6 available check */
11411#include <sys/types.h>
11412#include <sys/socket.h>
11413int
11414main ()
11415{
11416int domain = AF_INET6;
11417  ;
11418  return 0;
11419}
11420_ACEOF
11421if ac_fn_c_try_compile "$LINENO"; then :
11422
11423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424$as_echo "yes" >&6; }
11425  ipv6=yes
11426
11427else
11428
11429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430$as_echo "no" >&6; }
11431  ipv6=no
11432
11433fi
11434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11435
11436if test "$ipv6" = "yes"; then
11437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
11438$as_echo_n "checking if RFC2553 API is available... " >&6; }
11439	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440/* end confdefs.h.  */
11441
11442	  #include <sys/types.h>
11443#include <netinet/in.h>
11444int
11445main ()
11446{
11447struct sockaddr_in6 x;
11448			    x.sin6_scope_id;
11449  ;
11450  return 0;
11451}
11452
11453_ACEOF
11454if ac_fn_c_try_compile "$LINENO"; then :
11455
11456	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11457$as_echo "yes" >&6; }
11458	  ipv6=yes
11459
11460else
11461
11462	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463$as_echo "no" >&6; }
11464	  ipv6=no
11465
11466fi
11467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468fi
11469
11470if test "$ipv6" = "yes"; then
11471	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
11472
11473fi
11474
11475fi
11476
11477
11478ipv6type=unknown
11479ipv6lib=none
11480ipv6trylibc=no
11481
11482if test "$ipv6" = "yes"; then
11483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
11484$as_echo_n "checking ipv6 stack type... " >&6; }
11485	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
11486	do
11487		case $i in
11488		inria)
11489						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490/* end confdefs.h.  */
11491
11492#include <netinet/in.h>
11493#ifdef IPV6_INRIA_VERSION
11494yes
11495#endif
11496_ACEOF
11497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11498  $EGREP "yes" >/dev/null 2>&1; then :
11499  ipv6type=$i
11500fi
11501rm -f conftest*
11502
11503			;;
11504		kame)
11505						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506/* end confdefs.h.  */
11507
11508#include <netinet/in.h>
11509#ifdef __KAME__
11510yes
11511#endif
11512_ACEOF
11513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11514  $EGREP "yes" >/dev/null 2>&1; then :
11515  ipv6type=$i;
11516				ipv6lib=inet6
11517				ipv6libdir=/usr/local/v6/lib
11518				ipv6trylibc=yes
11519fi
11520rm -f conftest*
11521
11522			;;
11523		linux-glibc)
11524						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525/* end confdefs.h.  */
11526
11527#include <features.h>
11528#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11529yes
11530#endif
11531_ACEOF
11532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11533  $EGREP "yes" >/dev/null 2>&1; then :
11534  ipv6type=$i;
11535				ipv6trylibc=yes
11536fi
11537rm -f conftest*
11538
11539			;;
11540		linux-inet6)
11541						if test -d /usr/inet6; then
11542				ipv6type=$i
11543				ipv6lib=inet6
11544				ipv6libdir=/usr/inet6/lib
11545				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
11546			fi
11547			;;
11548		solaris)
11549			if test -f /etc/netconfig; then
11550                          if $GREP -q tcp6 /etc/netconfig; then
11551				ipv6type=$i
11552				ipv6trylibc=yes
11553                          fi
11554                        fi
11555			;;
11556		toshiba)
11557			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558/* end confdefs.h.  */
11559
11560#include <sys/param.h>
11561#ifdef _TOSHIBA_INET6
11562yes
11563#endif
11564_ACEOF
11565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11566  $EGREP "yes" >/dev/null 2>&1; then :
11567  ipv6type=$i;
11568				ipv6lib=inet6;
11569				ipv6libdir=/usr/local/v6/lib
11570fi
11571rm -f conftest*
11572
11573			;;
11574		v6d)
11575			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576/* end confdefs.h.  */
11577
11578#include </usr/local/v6/include/sys/v6config.h>
11579#ifdef __V6D__
11580yes
11581#endif
11582_ACEOF
11583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11584  $EGREP "yes" >/dev/null 2>&1; then :
11585  ipv6type=$i;
11586				ipv6lib=v6;
11587				ipv6libdir=/usr/local/v6/lib;
11588				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
11589fi
11590rm -f conftest*
11591
11592			;;
11593		zeta)
11594			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595/* end confdefs.h.  */
11596
11597#include <sys/param.h>
11598#ifdef _ZETA_MINAMI_INET6
11599yes
11600#endif
11601_ACEOF
11602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11603  $EGREP "yes" >/dev/null 2>&1; then :
11604  ipv6type=$i;
11605				ipv6lib=inet6;
11606				ipv6libdir=/usr/local/v6/lib
11607fi
11608rm -f conftest*
11609
11610			;;
11611		esac
11612		if test "$ipv6type" != "unknown"; then
11613			break
11614		fi
11615	done
11616	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
11617$as_echo "$ipv6type" >&6; }
11618fi
11619
11620if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11621	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11622		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11623		echo "using lib$ipv6lib"
11624	else
11625		if test $ipv6trylibc = "yes"; then
11626			echo "using libc"
11627		else
11628			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
11629			echo "You need to fetch lib$ipv6lib.a from appropriate"
11630			echo 'ipv6 kit and compile beforehand.'
11631			exit 1
11632		fi
11633	fi
11634fi
11635
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5
11637$as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; }
11638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639/* end confdefs.h.  */
11640 /* CAN_RAW_FD_FRAMES available check */
11641#include <linux/can/raw.h>
11642int
11643main ()
11644{
11645int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
11646  ;
11647  return 0;
11648}
11649_ACEOF
11650if ac_fn_c_try_compile "$LINENO"; then :
11651
11652
11653$as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
11654
11655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11656$as_echo "yes" >&6; }
11657
11658else
11659
11660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
11662
11663fi
11664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11665
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5
11667$as_echo_n "checking for CAN_RAW_JOIN_FILTERS... " >&6; }
11668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669/* end confdefs.h.  */
11670
11671#include <linux/can/raw.h>
11672int
11673main ()
11674{
11675int can_raw_join_filters = CAN_RAW_JOIN_FILTERS;
11676  ;
11677  return 0;
11678}
11679_ACEOF
11680if ac_fn_c_try_compile "$LINENO"; then :
11681
11682
11683$as_echo "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h
11684
11685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11686$as_echo "yes" >&6; }
11687
11688else
11689
11690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
11692
11693fi
11694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695
11696# Check for --with-doc-strings
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
11698$as_echo_n "checking for --with-doc-strings... " >&6; }
11699
11700# Check whether --with-doc-strings was given.
11701if test "${with_doc_strings+set}" = set; then :
11702  withval=$with_doc_strings;
11703fi
11704
11705
11706if test -z "$with_doc_strings"
11707then with_doc_strings="yes"
11708fi
11709if test "$with_doc_strings" != "no"
11710then
11711
11712$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
11713
11714fi
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
11716$as_echo "$with_doc_strings" >&6; }
11717
11718# Check for Python-specific malloc support
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
11720$as_echo_n "checking for --with-pymalloc... " >&6; }
11721
11722# Check whether --with-pymalloc was given.
11723if test "${with_pymalloc+set}" = set; then :
11724  withval=$with_pymalloc;
11725fi
11726
11727
11728if test -z "$with_pymalloc"
11729then
11730    with_pymalloc="yes"
11731fi
11732if test "$with_pymalloc" != "no"
11733then
11734
11735$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
11736
11737fi
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
11739$as_echo "$with_pymalloc" >&6; }
11740
11741# Check for --with-c-locale-coercion
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
11743$as_echo_n "checking for --with-c-locale-coercion... " >&6; }
11744
11745# Check whether --with-c-locale-coercion was given.
11746if test "${with_c_locale_coercion+set}" = set; then :
11747  withval=$with_c_locale_coercion;
11748fi
11749
11750
11751if test -z "$with_c_locale_coercion"
11752then
11753    with_c_locale_coercion="yes"
11754fi
11755if test "$with_c_locale_coercion" != "no"
11756then
11757
11758$as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
11759
11760fi
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
11762$as_echo "$with_c_locale_coercion" >&6; }
11763
11764# Check for Valgrind support
11765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
11766$as_echo_n "checking for --with-valgrind... " >&6; }
11767
11768# Check whether --with-valgrind was given.
11769if test "${with_valgrind+set}" = set; then :
11770  withval=$with_valgrind;
11771else
11772  with_valgrind=no
11773fi
11774
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
11776$as_echo "$with_valgrind" >&6; }
11777if test "$with_valgrind" != no; then
11778    ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
11779if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
11780
11781$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
11782
11783else
11784  as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
11785
11786fi
11787
11788
11789    OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
11790fi
11791
11792# Check for DTrace support
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
11794$as_echo_n "checking for --with-dtrace... " >&6; }
11795
11796# Check whether --with-dtrace was given.
11797if test "${with_dtrace+set}" = set; then :
11798  withval=$with_dtrace;
11799else
11800  with_dtrace=no
11801fi
11802
11803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
11804$as_echo "$with_dtrace" >&6; }
11805
11806
11807
11808
11809
11810DTRACE=
11811DTRACE_HEADERS=
11812DTRACE_OBJS=
11813
11814if test "$with_dtrace" = "yes"
11815then
11816    # Extract the first word of "dtrace", so it can be a program name with args.
11817set dummy dtrace; ac_word=$2
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819$as_echo_n "checking for $ac_word... " >&6; }
11820if ${ac_cv_path_DTRACE+:} false; then :
11821  $as_echo_n "(cached) " >&6
11822else
11823  case $DTRACE in
11824  [\\/]* | ?:[\\/]*)
11825  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
11826  ;;
11827  *)
11828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831  IFS=$as_save_IFS
11832  test -z "$as_dir" && as_dir=.
11833    for ac_exec_ext in '' $ac_executable_extensions; do
11834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
11836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837    break 2
11838  fi
11839done
11840  done
11841IFS=$as_save_IFS
11842
11843  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
11844  ;;
11845esac
11846fi
11847DTRACE=$ac_cv_path_DTRACE
11848if test -n "$DTRACE"; then
11849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
11850$as_echo "$DTRACE" >&6; }
11851else
11852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853$as_echo "no" >&6; }
11854fi
11855
11856
11857    if test "$DTRACE" = "not found"; then
11858        as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
11859    fi
11860
11861$as_echo "#define WITH_DTRACE 1" >>confdefs.h
11862
11863    DTRACE_HEADERS="Include/pydtrace_probes.h"
11864
11865    # On OS X, DTrace providers do not need to be explicitly compiled and
11866    # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
11867    # generation flag '-G'. We check for presence of this flag, rather than
11868    # hardcoding support by OS, in the interest of robustness.
11869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
11870$as_echo_n "checking whether DTrace probes require linking... " >&6; }
11871if ${ac_cv_dtrace_link+:} false; then :
11872  $as_echo_n "(cached) " >&6
11873else
11874              ac_cv_dtrace_link=no
11875            echo 'BEGIN{}' > conftest.d
11876            "$DTRACE" $DFLAGS -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
11877                ac_cv_dtrace_link=yes
11878
11879fi
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
11881$as_echo "$ac_cv_dtrace_link" >&6; }
11882    if test "$ac_cv_dtrace_link" = "yes"; then
11883        DTRACE_OBJS="Python/pydtrace.o"
11884    fi
11885fi
11886
11887# -I${DLINCLDIR} is added to the compile rule for importdl.o
11888
11889DLINCLDIR=.
11890
11891# the dlopen() function means we might want to use dynload_shlib.o. some
11892# platforms have dlopen(), but don't want to use it.
11893for ac_func in dlopen
11894do :
11895  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11896if test "x$ac_cv_func_dlopen" = xyes; then :
11897  cat >>confdefs.h <<_ACEOF
11898#define HAVE_DLOPEN 1
11899_ACEOF
11900
11901fi
11902done
11903
11904
11905# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11906# loading of modules.
11907
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
11909$as_echo_n "checking DYNLOADFILE... " >&6; }
11910if test -z "$DYNLOADFILE"
11911then
11912	case $ac_sys_system/$ac_sys_release in
11913	hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
11914	*)
11915	# use dynload_shlib.c and dlopen() if we have it; otherwise stub
11916	# out any dynamic loading
11917	if test "$ac_cv_func_dlopen" = yes
11918	then DYNLOADFILE="dynload_shlib.o"
11919	else DYNLOADFILE="dynload_stub.o"
11920	fi
11921	;;
11922	esac
11923fi
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
11925$as_echo "$DYNLOADFILE" >&6; }
11926if test "$DYNLOADFILE" != "dynload_stub.o"
11927then
11928
11929$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
11930
11931fi
11932
11933# MACHDEP_OBJS can be set to platform-specific object files needed by Python
11934
11935
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
11937$as_echo_n "checking MACHDEP_OBJS... " >&6; }
11938if test -z "$MACHDEP_OBJS"
11939then
11940	MACHDEP_OBJS=$extra_machdep_objs
11941else
11942	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
11943fi
11944if test -z "$MACHDEP_OBJS"; then
11945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11946$as_echo "none" >&6; }
11947else
11948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
11949$as_echo "$MACHDEP_OBJS" >&6; }
11950fi
11951
11952# checks for library functions
11953for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
11954 clock confstr close_range copy_file_range ctermid dup3 execv explicit_bzero \
11955 explicit_memset faccessat fchmod fchmodat fchown fchownat \
11956 fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
11957 futimens futimes gai_strerror getentropy \
11958 getgrgid_r getgrnam_r \
11959 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
11960 getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \
11961 if_nameindex \
11962 initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
11963 memrchr mbrtowc mkdirat mkfifo \
11964 madvise mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
11965 posix_fallocate posix_fadvise posix_spawn posix_spawnp pread preadv preadv2 \
11966 pthread_condattr_setclock pthread_init pthread_kill pwrite pwritev pwritev2 \
11967 readlink readlinkat readv realpath renameat \
11968 sem_open sem_timedwait sem_clockwait sem_getvalue sem_unlink sendfile setegid seteuid \
11969 setgid sethostname \
11970 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \
11971 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \
11972 sched_rr_get_interval \
11973 sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \
11974 sigtimedwait sigwait sigwaitinfo snprintf splice strftime strlcpy strsignal symlinkat sync \
11975 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
11976 truncate uname unlinkat utimensat utimes vfork waitid waitpid wait3 wait4 \
11977 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty rtpSpawn
11978do :
11979  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11981if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11982  cat >>confdefs.h <<_ACEOF
11983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11984_ACEOF
11985
11986fi
11987done
11988
11989
11990# Force lchmod off for Linux. Linux disallows changing the mode of symbolic
11991# links. Some libc implementations have a stub lchmod implementation that always
11992# returns an error.
11993if test "$MACHDEP" != linux; then
11994  for ac_func in lchmod
11995do :
11996  ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
11997if test "x$ac_cv_func_lchmod" = xyes; then :
11998  cat >>confdefs.h <<_ACEOF
11999#define HAVE_LCHMOD 1
12000_ACEOF
12001
12002fi
12003done
12004
12005fi
12006
12007ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12008       #include <dirent.h>
12009"
12010if test "x$ac_cv_have_decl_dirfd" = xyes; then :
12011
12012$as_echo "#define HAVE_DIRFD 1" >>confdefs.h
12013
12014fi
12015
12016
12017# For some functions, having a definition is not sufficient, since
12018# we want to take their address.
12019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
12020$as_echo_n "checking for chroot... " >&6; }
12021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h.  */
12023#include <unistd.h>
12024int
12025main ()
12026{
12027void *x=chroot
12028  ;
12029  return 0;
12030}
12031_ACEOF
12032if ac_fn_c_try_compile "$LINENO"; then :
12033
12034$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
12035
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037$as_echo "yes" >&6; }
12038else
12039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040$as_echo "no" >&6; }
12041
12042fi
12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
12045$as_echo_n "checking for link... " >&6; }
12046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047/* end confdefs.h.  */
12048#include <unistd.h>
12049int
12050main ()
12051{
12052void *x=link
12053  ;
12054  return 0;
12055}
12056_ACEOF
12057if ac_fn_c_try_compile "$LINENO"; then :
12058
12059$as_echo "#define HAVE_LINK 1" >>confdefs.h
12060
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062$as_echo "yes" >&6; }
12063else
12064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
12066
12067fi
12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
12070$as_echo_n "checking for symlink... " >&6; }
12071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072/* end confdefs.h.  */
12073#include <unistd.h>
12074int
12075main ()
12076{
12077void *x=symlink
12078  ;
12079  return 0;
12080}
12081_ACEOF
12082if ac_fn_c_try_compile "$LINENO"; then :
12083
12084$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
12085
12086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12087$as_echo "yes" >&6; }
12088else
12089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090$as_echo "no" >&6; }
12091
12092fi
12093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
12095$as_echo_n "checking for fchdir... " >&6; }
12096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h.  */
12098#include <unistd.h>
12099int
12100main ()
12101{
12102void *x=fchdir
12103  ;
12104  return 0;
12105}
12106_ACEOF
12107if ac_fn_c_try_compile "$LINENO"; then :
12108
12109$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
12110
12111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12112$as_echo "yes" >&6; }
12113else
12114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
12116
12117fi
12118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
12120$as_echo_n "checking for fsync... " >&6; }
12121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122/* end confdefs.h.  */
12123#include <unistd.h>
12124int
12125main ()
12126{
12127void *x=fsync
12128  ;
12129  return 0;
12130}
12131_ACEOF
12132if ac_fn_c_try_compile "$LINENO"; then :
12133
12134$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
12135
12136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12137$as_echo "yes" >&6; }
12138else
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140$as_echo "no" >&6; }
12141
12142fi
12143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
12145$as_echo_n "checking for fdatasync... " >&6; }
12146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h.  */
12148#include <unistd.h>
12149int
12150main ()
12151{
12152void *x=fdatasync
12153  ;
12154  return 0;
12155}
12156_ACEOF
12157if ac_fn_c_try_compile "$LINENO"; then :
12158
12159$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
12160
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12162$as_echo "yes" >&6; }
12163else
12164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165$as_echo "no" >&6; }
12166
12167fi
12168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
12170$as_echo_n "checking for epoll... " >&6; }
12171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172/* end confdefs.h.  */
12173#include <sys/epoll.h>
12174int
12175main ()
12176{
12177void *x=epoll_create
12178  ;
12179  return 0;
12180}
12181_ACEOF
12182if ac_fn_c_try_compile "$LINENO"; then :
12183
12184$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
12185
12186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187$as_echo "yes" >&6; }
12188else
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190$as_echo "no" >&6; }
12191
12192fi
12193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
12195$as_echo_n "checking for epoll_create1... " >&6; }
12196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197/* end confdefs.h.  */
12198#include <sys/epoll.h>
12199int
12200main ()
12201{
12202void *x=epoll_create1
12203  ;
12204  return 0;
12205}
12206_ACEOF
12207if ac_fn_c_try_compile "$LINENO"; then :
12208
12209$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
12210
12211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12212$as_echo "yes" >&6; }
12213else
12214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
12216
12217fi
12218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
12220$as_echo_n "checking for kqueue... " >&6; }
12221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222/* end confdefs.h.  */
12223
12224#include <sys/types.h>
12225#include <sys/event.h>
12226
12227int
12228main ()
12229{
12230int x=kqueue()
12231  ;
12232  return 0;
12233}
12234_ACEOF
12235if ac_fn_c_try_compile "$LINENO"; then :
12236
12237$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
12238
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12240$as_echo "yes" >&6; }
12241else
12242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
12244
12245fi
12246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
12248$as_echo_n "checking for prlimit... " >&6; }
12249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250/* end confdefs.h.  */
12251
12252#include <sys/time.h>
12253#include <sys/resource.h>
12254
12255int
12256main ()
12257{
12258void *x=prlimit
12259  ;
12260  return 0;
12261}
12262_ACEOF
12263if ac_fn_c_try_compile "$LINENO"; then :
12264
12265$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h
12266
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12268$as_echo "yes" >&6; }
12269else
12270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271$as_echo "no" >&6; }
12272
12273fi
12274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5
12276$as_echo_n "checking for _dyld_shared_cache_contains_path... " >&6; }
12277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278/* end confdefs.h.  */
12279#include <mach-o/dyld.h>
12280int
12281main ()
12282{
12283void *x=_dyld_shared_cache_contains_path
12284  ;
12285  return 0;
12286}
12287_ACEOF
12288if ac_fn_c_try_compile "$LINENO"; then :
12289
12290$as_echo "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h
12291
12292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293$as_echo "yes" >&6; }
12294else
12295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
12297
12298fi
12299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
12302$as_echo_n "checking for memfd_create... " >&6; }
12303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304/* end confdefs.h.  */
12305
12306#ifdef HAVE_SYS_MMAN_H
12307#include <sys/mman.h>
12308#endif
12309#ifdef HAVE_SYS_MEMFD_H
12310#include <sys/memfd.h>
12311#endif
12312
12313int
12314main ()
12315{
12316void *x=memfd_create
12317  ;
12318  return 0;
12319}
12320_ACEOF
12321if ac_fn_c_try_compile "$LINENO"; then :
12322
12323$as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
12324
12325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12326$as_echo "yes" >&6; }
12327else
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329$as_echo "no" >&6; }
12330
12331fi
12332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
12335$as_echo_n "checking for eventfd... " >&6; }
12336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337/* end confdefs.h.  */
12338
12339#ifdef HAVE_SYS_EVENTFD_H
12340#include <sys/eventfd.h>
12341#endif
12342
12343int
12344main ()
12345{
12346int x = eventfd(0, EFD_CLOEXEC)
12347  ;
12348  return 0;
12349}
12350_ACEOF
12351if ac_fn_c_try_compile "$LINENO"; then :
12352
12353$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
12354
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12356$as_echo "yes" >&6; }
12357else
12358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359$as_echo "no" >&6; }
12360
12361fi
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363
12364# On some systems (eg. FreeBSD 5), we would find a definition of the
12365# functions ctermid_r, setgroups in the library, but no prototype
12366# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
12367# address to avoid compiler warnings and potential miscompilations
12368# because of the missing prototypes.
12369
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
12371$as_echo_n "checking for ctermid_r... " >&6; }
12372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373/* end confdefs.h.  */
12374
12375#include <stdio.h>
12376
12377int
12378main ()
12379{
12380void* p = ctermid_r
12381  ;
12382  return 0;
12383}
12384_ACEOF
12385if ac_fn_c_try_compile "$LINENO"; then :
12386
12387$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
12388
12389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390$as_echo "yes" >&6; }
12391else
12392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
12394
12395fi
12396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
12399$as_echo_n "checking for flock declaration... " >&6; }
12400if ${ac_cv_flock_decl+:} false; then :
12401  $as_echo_n "(cached) " >&6
12402else
12403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404/* end confdefs.h.  */
12405#include <sys/file.h>
12406int
12407main ()
12408{
12409void* p = flock
12410
12411  ;
12412  return 0;
12413}
12414_ACEOF
12415if ac_fn_c_try_compile "$LINENO"; then :
12416  ac_cv_flock_decl=yes
12417else
12418  ac_cv_flock_decl=no
12419
12420fi
12421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422
12423fi
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
12425$as_echo "$ac_cv_flock_decl" >&6; }
12426if test "x${ac_cv_flock_decl}" = xyes; then
12427  for ac_func in flock
12428do :
12429  ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
12430if test "x$ac_cv_func_flock" = xyes; then :
12431  cat >>confdefs.h <<_ACEOF
12432#define HAVE_FLOCK 1
12433_ACEOF
12434
12435else
12436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
12437$as_echo_n "checking for flock in -lbsd... " >&6; }
12438if ${ac_cv_lib_bsd_flock+:} false; then :
12439  $as_echo_n "(cached) " >&6
12440else
12441  ac_check_lib_save_LIBS=$LIBS
12442LIBS="-lbsd  $LIBS"
12443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444/* end confdefs.h.  */
12445
12446/* Override any GCC internal prototype to avoid an error.
12447   Use char because int might match the return type of a GCC
12448   builtin and then its argument prototype would still apply.  */
12449#ifdef __cplusplus
12450extern "C"
12451#endif
12452char flock ();
12453int
12454main ()
12455{
12456return flock ();
12457  ;
12458  return 0;
12459}
12460_ACEOF
12461if ac_fn_c_try_link "$LINENO"; then :
12462  ac_cv_lib_bsd_flock=yes
12463else
12464  ac_cv_lib_bsd_flock=no
12465fi
12466rm -f core conftest.err conftest.$ac_objext \
12467    conftest$ac_exeext conftest.$ac_ext
12468LIBS=$ac_check_lib_save_LIBS
12469fi
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
12471$as_echo "$ac_cv_lib_bsd_flock" >&6; }
12472if test "x$ac_cv_lib_bsd_flock" = xyes; then :
12473  $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
12474
12475
12476$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
12477
12478
12479fi
12480
12481
12482fi
12483done
12484
12485fi
12486
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
12488$as_echo_n "checking for getpagesize... " >&6; }
12489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490/* end confdefs.h.  */
12491
12492#include <unistd.h>
12493
12494int
12495main ()
12496{
12497void* p = getpagesize
12498  ;
12499  return 0;
12500}
12501_ACEOF
12502if ac_fn_c_try_compile "$LINENO"; then :
12503
12504$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12505
12506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12507$as_echo "yes" >&6; }
12508else
12509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510$as_echo "no" >&6; }
12511
12512fi
12513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
12516$as_echo_n "checking for broken unsetenv... " >&6; }
12517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518/* end confdefs.h.  */
12519
12520#include <stdlib.h>
12521
12522int
12523main ()
12524{
12525int res = unsetenv("DUMMY")
12526  ;
12527  return 0;
12528}
12529_ACEOF
12530if ac_fn_c_try_compile "$LINENO"; then :
12531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532$as_echo "no" >&6; }
12533else
12534
12535$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
12536
12537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12538$as_echo "yes" >&6; }
12539
12540fi
12541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12542
12543for ac_prog in true
12544do
12545  # Extract the first word of "$ac_prog", so it can be a program name with args.
12546set dummy $ac_prog; ac_word=$2
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if ${ac_cv_prog_TRUE+:} false; then :
12550  $as_echo_n "(cached) " >&6
12551else
12552  if test -n "$TRUE"; then
12553  ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
12554else
12555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558  IFS=$as_save_IFS
12559  test -z "$as_dir" && as_dir=.
12560    for ac_exec_ext in '' $ac_executable_extensions; do
12561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562    ac_cv_prog_TRUE="$ac_prog"
12563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564    break 2
12565  fi
12566done
12567  done
12568IFS=$as_save_IFS
12569
12570fi
12571fi
12572TRUE=$ac_cv_prog_TRUE
12573if test -n "$TRUE"; then
12574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
12575$as_echo "$TRUE" >&6; }
12576else
12577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578$as_echo "no" >&6; }
12579fi
12580
12581
12582  test -n "$TRUE" && break
12583done
12584test -n "$TRUE" || TRUE="/bin/true"
12585
12586
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
12588$as_echo_n "checking for inet_aton in -lc... " >&6; }
12589if ${ac_cv_lib_c_inet_aton+:} false; then :
12590  $as_echo_n "(cached) " >&6
12591else
12592  ac_check_lib_save_LIBS=$LIBS
12593LIBS="-lc  $LIBS"
12594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595/* end confdefs.h.  */
12596
12597/* Override any GCC internal prototype to avoid an error.
12598   Use char because int might match the return type of a GCC
12599   builtin and then its argument prototype would still apply.  */
12600#ifdef __cplusplus
12601extern "C"
12602#endif
12603char inet_aton ();
12604int
12605main ()
12606{
12607return inet_aton ();
12608  ;
12609  return 0;
12610}
12611_ACEOF
12612if ac_fn_c_try_link "$LINENO"; then :
12613  ac_cv_lib_c_inet_aton=yes
12614else
12615  ac_cv_lib_c_inet_aton=no
12616fi
12617rm -f core conftest.err conftest.$ac_objext \
12618    conftest$ac_exeext conftest.$ac_ext
12619LIBS=$ac_check_lib_save_LIBS
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
12622$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
12623if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
12624  $ac_cv_prog_TRUE
12625else
12626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
12627$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
12628if ${ac_cv_lib_resolv_inet_aton+:} false; then :
12629  $as_echo_n "(cached) " >&6
12630else
12631  ac_check_lib_save_LIBS=$LIBS
12632LIBS="-lresolv  $LIBS"
12633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634/* end confdefs.h.  */
12635
12636/* Override any GCC internal prototype to avoid an error.
12637   Use char because int might match the return type of a GCC
12638   builtin and then its argument prototype would still apply.  */
12639#ifdef __cplusplus
12640extern "C"
12641#endif
12642char inet_aton ();
12643int
12644main ()
12645{
12646return inet_aton ();
12647  ;
12648  return 0;
12649}
12650_ACEOF
12651if ac_fn_c_try_link "$LINENO"; then :
12652  ac_cv_lib_resolv_inet_aton=yes
12653else
12654  ac_cv_lib_resolv_inet_aton=no
12655fi
12656rm -f core conftest.err conftest.$ac_objext \
12657    conftest$ac_exeext conftest.$ac_ext
12658LIBS=$ac_check_lib_save_LIBS
12659fi
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
12661$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
12662if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
12663  cat >>confdefs.h <<_ACEOF
12664#define HAVE_LIBRESOLV 1
12665_ACEOF
12666
12667  LIBS="-lresolv $LIBS"
12668
12669fi
12670
12671
12672fi
12673
12674
12675# On Tru64, chflags seems to be present, but calling it will
12676# exit Python
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
12678$as_echo_n "checking for chflags... " >&6; }
12679if ${ac_cv_have_chflags+:} false; then :
12680  $as_echo_n "(cached) " >&6
12681else
12682  if test "$cross_compiling" = yes; then :
12683  ac_cv_have_chflags=cross
12684else
12685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686/* end confdefs.h.  */
12687
12688#include <sys/stat.h>
12689#include <unistd.h>
12690int main(int argc, char*argv[])
12691{
12692  if(chflags(argv[0], 0) != 0)
12693    return 1;
12694  return 0;
12695}
12696
12697_ACEOF
12698if ac_fn_c_try_run "$LINENO"; then :
12699  ac_cv_have_chflags=yes
12700else
12701  ac_cv_have_chflags=no
12702fi
12703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12704  conftest.$ac_objext conftest.beam conftest.$ac_ext
12705fi
12706
12707
12708fi
12709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
12710$as_echo "$ac_cv_have_chflags" >&6; }
12711if test "$ac_cv_have_chflags" = cross ; then
12712  ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
12713if test "x$ac_cv_func_chflags" = xyes; then :
12714  ac_cv_have_chflags="yes"
12715else
12716  ac_cv_have_chflags="no"
12717fi
12718
12719fi
12720if test "$ac_cv_have_chflags" = yes ; then
12721
12722$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
12723
12724fi
12725
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
12727$as_echo_n "checking for lchflags... " >&6; }
12728if ${ac_cv_have_lchflags+:} false; then :
12729  $as_echo_n "(cached) " >&6
12730else
12731  if test "$cross_compiling" = yes; then :
12732  ac_cv_have_lchflags=cross
12733else
12734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735/* end confdefs.h.  */
12736
12737#include <sys/stat.h>
12738#include <unistd.h>
12739int main(int argc, char*argv[])
12740{
12741  if(lchflags(argv[0], 0) != 0)
12742    return 1;
12743  return 0;
12744}
12745
12746_ACEOF
12747if ac_fn_c_try_run "$LINENO"; then :
12748  ac_cv_have_lchflags=yes
12749else
12750  ac_cv_have_lchflags=no
12751fi
12752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12753  conftest.$ac_objext conftest.beam conftest.$ac_ext
12754fi
12755
12756
12757fi
12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
12759$as_echo "$ac_cv_have_lchflags" >&6; }
12760if test "$ac_cv_have_lchflags" = cross ; then
12761  ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
12762if test "x$ac_cv_func_lchflags" = xyes; then :
12763  ac_cv_have_lchflags="yes"
12764else
12765  ac_cv_have_lchflags="no"
12766fi
12767
12768fi
12769if test "$ac_cv_have_lchflags" = yes ; then
12770
12771$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
12772
12773fi
12774
12775case $ac_sys_system/$ac_sys_release in
12776Darwin/*)
12777	_CUR_CFLAGS="${CFLAGS}"
12778	_CUR_LDFLAGS="${LDFLAGS}"
12779	CFLAGS="${CFLAGS} -Wl,-search_paths_first"
12780	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
12781	;;
12782esac
12783
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
12785$as_echo_n "checking for inflateCopy in -lz... " >&6; }
12786if ${ac_cv_lib_z_inflateCopy+:} false; then :
12787  $as_echo_n "(cached) " >&6
12788else
12789  ac_check_lib_save_LIBS=$LIBS
12790LIBS="-lz  $LIBS"
12791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792/* end confdefs.h.  */
12793
12794/* Override any GCC internal prototype to avoid an error.
12795   Use char because int might match the return type of a GCC
12796   builtin and then its argument prototype would still apply.  */
12797#ifdef __cplusplus
12798extern "C"
12799#endif
12800char inflateCopy ();
12801int
12802main ()
12803{
12804return inflateCopy ();
12805  ;
12806  return 0;
12807}
12808_ACEOF
12809if ac_fn_c_try_link "$LINENO"; then :
12810  ac_cv_lib_z_inflateCopy=yes
12811else
12812  ac_cv_lib_z_inflateCopy=no
12813fi
12814rm -f core conftest.err conftest.$ac_objext \
12815    conftest$ac_exeext conftest.$ac_ext
12816LIBS=$ac_check_lib_save_LIBS
12817fi
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
12819$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
12820if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
12821
12822$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
12823
12824fi
12825
12826
12827case $ac_sys_system/$ac_sys_release in
12828Darwin/*)
12829	CFLAGS="${_CUR_CFLAGS}"
12830	LDFLAGS="${_CUR_LDFLAGS}"
12831	;;
12832esac
12833
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
12835$as_echo_n "checking for hstrerror... " >&6; }
12836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837/* end confdefs.h.  */
12838
12839#include <netdb.h>
12840
12841int
12842main ()
12843{
12844void* p = hstrerror; hstrerror(0)
12845  ;
12846  return 0;
12847}
12848_ACEOF
12849if ac_fn_c_try_link "$LINENO"; then :
12850
12851$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
12852
12853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12854$as_echo "yes" >&6; }
12855else
12856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857$as_echo "no" >&6; }
12858
12859fi
12860rm -f core conftest.err conftest.$ac_objext \
12861    conftest$ac_exeext conftest.$ac_ext
12862
12863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
12864$as_echo_n "checking for inet_aton... " >&6; }
12865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867
12868#include <sys/types.h>
12869#include <sys/socket.h>
12870#include <netinet/in.h>
12871#include <arpa/inet.h>
12872
12873int
12874main ()
12875{
12876void* p = inet_aton;inet_aton(0,0)
12877  ;
12878  return 0;
12879}
12880_ACEOF
12881if ac_fn_c_try_link "$LINENO"; then :
12882
12883$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
12884
12885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12886$as_echo "yes" >&6; }
12887else
12888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
12890
12891fi
12892rm -f core conftest.err conftest.$ac_objext \
12893    conftest$ac_exeext conftest.$ac_ext
12894
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
12896$as_echo_n "checking for inet_pton... " >&6; }
12897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898/* end confdefs.h.  */
12899
12900#include <sys/types.h>
12901#include <sys/socket.h>
12902#include <netinet/in.h>
12903#include <arpa/inet.h>
12904
12905int
12906main ()
12907{
12908void* p = inet_pton
12909  ;
12910  return 0;
12911}
12912_ACEOF
12913if ac_fn_c_try_compile "$LINENO"; then :
12914
12915$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
12916
12917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918$as_echo "yes" >&6; }
12919else
12920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921$as_echo "no" >&6; }
12922
12923fi
12924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925
12926# On some systems, setgroups is in unistd.h, on others, in grp.h
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
12928$as_echo_n "checking for setgroups... " >&6; }
12929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930/* end confdefs.h.  */
12931
12932#include <unistd.h>
12933#ifdef HAVE_GRP_H
12934#include <grp.h>
12935#endif
12936
12937int
12938main ()
12939{
12940void* p = setgroups
12941  ;
12942  return 0;
12943}
12944_ACEOF
12945if ac_fn_c_try_compile "$LINENO"; then :
12946
12947$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
12948
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12950$as_echo "yes" >&6; }
12951else
12952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953$as_echo "no" >&6; }
12954
12955fi
12956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957
12958# check for openpty and forkpty
12959
12960for ac_func in openpty
12961do :
12962  ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
12963if test "x$ac_cv_func_openpty" = xyes; then :
12964  cat >>confdefs.h <<_ACEOF
12965#define HAVE_OPENPTY 1
12966_ACEOF
12967
12968else
12969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
12970$as_echo_n "checking for openpty in -lutil... " >&6; }
12971if ${ac_cv_lib_util_openpty+:} false; then :
12972  $as_echo_n "(cached) " >&6
12973else
12974  ac_check_lib_save_LIBS=$LIBS
12975LIBS="-lutil  $LIBS"
12976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978
12979/* Override any GCC internal prototype to avoid an error.
12980   Use char because int might match the return type of a GCC
12981   builtin and then its argument prototype would still apply.  */
12982#ifdef __cplusplus
12983extern "C"
12984#endif
12985char openpty ();
12986int
12987main ()
12988{
12989return openpty ();
12990  ;
12991  return 0;
12992}
12993_ACEOF
12994if ac_fn_c_try_link "$LINENO"; then :
12995  ac_cv_lib_util_openpty=yes
12996else
12997  ac_cv_lib_util_openpty=no
12998fi
12999rm -f core conftest.err conftest.$ac_objext \
13000    conftest$ac_exeext conftest.$ac_ext
13001LIBS=$ac_check_lib_save_LIBS
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
13004$as_echo "$ac_cv_lib_util_openpty" >&6; }
13005if test "x$ac_cv_lib_util_openpty" = xyes; then :
13006  $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
13007 LIBS="$LIBS -lutil"
13008else
13009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
13010$as_echo_n "checking for openpty in -lbsd... " >&6; }
13011if ${ac_cv_lib_bsd_openpty+:} false; then :
13012  $as_echo_n "(cached) " >&6
13013else
13014  ac_check_lib_save_LIBS=$LIBS
13015LIBS="-lbsd  $LIBS"
13016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017/* end confdefs.h.  */
13018
13019/* Override any GCC internal prototype to avoid an error.
13020   Use char because int might match the return type of a GCC
13021   builtin and then its argument prototype would still apply.  */
13022#ifdef __cplusplus
13023extern "C"
13024#endif
13025char openpty ();
13026int
13027main ()
13028{
13029return openpty ();
13030  ;
13031  return 0;
13032}
13033_ACEOF
13034if ac_fn_c_try_link "$LINENO"; then :
13035  ac_cv_lib_bsd_openpty=yes
13036else
13037  ac_cv_lib_bsd_openpty=no
13038fi
13039rm -f core conftest.err conftest.$ac_objext \
13040    conftest$ac_exeext conftest.$ac_ext
13041LIBS=$ac_check_lib_save_LIBS
13042fi
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
13044$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
13045if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
13046  $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
13047 LIBS="$LIBS -lbsd"
13048fi
13049
13050
13051fi
13052
13053
13054fi
13055done
13056
13057for ac_func in forkpty
13058do :
13059  ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
13060if test "x$ac_cv_func_forkpty" = xyes; then :
13061  cat >>confdefs.h <<_ACEOF
13062#define HAVE_FORKPTY 1
13063_ACEOF
13064
13065else
13066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
13067$as_echo_n "checking for forkpty in -lutil... " >&6; }
13068if ${ac_cv_lib_util_forkpty+:} false; then :
13069  $as_echo_n "(cached) " >&6
13070else
13071  ac_check_lib_save_LIBS=$LIBS
13072LIBS="-lutil  $LIBS"
13073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074/* end confdefs.h.  */
13075
13076/* Override any GCC internal prototype to avoid an error.
13077   Use char because int might match the return type of a GCC
13078   builtin and then its argument prototype would still apply.  */
13079#ifdef __cplusplus
13080extern "C"
13081#endif
13082char forkpty ();
13083int
13084main ()
13085{
13086return forkpty ();
13087  ;
13088  return 0;
13089}
13090_ACEOF
13091if ac_fn_c_try_link "$LINENO"; then :
13092  ac_cv_lib_util_forkpty=yes
13093else
13094  ac_cv_lib_util_forkpty=no
13095fi
13096rm -f core conftest.err conftest.$ac_objext \
13097    conftest$ac_exeext conftest.$ac_ext
13098LIBS=$ac_check_lib_save_LIBS
13099fi
13100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
13101$as_echo "$ac_cv_lib_util_forkpty" >&6; }
13102if test "x$ac_cv_lib_util_forkpty" = xyes; then :
13103  $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
13104 LIBS="$LIBS -lutil"
13105else
13106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
13107$as_echo_n "checking for forkpty in -lbsd... " >&6; }
13108if ${ac_cv_lib_bsd_forkpty+:} false; then :
13109  $as_echo_n "(cached) " >&6
13110else
13111  ac_check_lib_save_LIBS=$LIBS
13112LIBS="-lbsd  $LIBS"
13113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114/* end confdefs.h.  */
13115
13116/* Override any GCC internal prototype to avoid an error.
13117   Use char because int might match the return type of a GCC
13118   builtin and then its argument prototype would still apply.  */
13119#ifdef __cplusplus
13120extern "C"
13121#endif
13122char forkpty ();
13123int
13124main ()
13125{
13126return forkpty ();
13127  ;
13128  return 0;
13129}
13130_ACEOF
13131if ac_fn_c_try_link "$LINENO"; then :
13132  ac_cv_lib_bsd_forkpty=yes
13133else
13134  ac_cv_lib_bsd_forkpty=no
13135fi
13136rm -f core conftest.err conftest.$ac_objext \
13137    conftest$ac_exeext conftest.$ac_ext
13138LIBS=$ac_check_lib_save_LIBS
13139fi
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
13141$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
13142if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
13143  $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
13144 LIBS="$LIBS -lbsd"
13145fi
13146
13147
13148fi
13149
13150
13151fi
13152done
13153
13154
13155# check for long file support functions
13156for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
13157do :
13158  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13159ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13160if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13161  cat >>confdefs.h <<_ACEOF
13162#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13163_ACEOF
13164
13165fi
13166done
13167
13168
13169ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
13170if test "x$ac_cv_func_dup2" = xyes; then :
13171  $as_echo "#define HAVE_DUP2 1" >>confdefs.h
13172
13173else
13174  case " $LIBOBJS " in
13175  *" dup2.$ac_objext "* ) ;;
13176  *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
13177 ;;
13178esac
13179
13180fi
13181
13182
13183for ac_func in getpgrp
13184do :
13185  ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
13186if test "x$ac_cv_func_getpgrp" = xyes; then :
13187  cat >>confdefs.h <<_ACEOF
13188#define HAVE_GETPGRP 1
13189_ACEOF
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191/* end confdefs.h.  */
13192#include <unistd.h>
13193int
13194main ()
13195{
13196getpgrp(0);
13197  ;
13198  return 0;
13199}
13200_ACEOF
13201if ac_fn_c_try_compile "$LINENO"; then :
13202
13203$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
13204
13205fi
13206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207
13208fi
13209done
13210
13211for ac_func in setpgrp
13212do :
13213  ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
13214if test "x$ac_cv_func_setpgrp" = xyes; then :
13215  cat >>confdefs.h <<_ACEOF
13216#define HAVE_SETPGRP 1
13217_ACEOF
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219/* end confdefs.h.  */
13220#include <unistd.h>
13221int
13222main ()
13223{
13224setpgrp(0,0);
13225  ;
13226  return 0;
13227}
13228_ACEOF
13229if ac_fn_c_try_compile "$LINENO"; then :
13230
13231$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
13232
13233fi
13234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235
13236fi
13237done
13238
13239
13240# We search for both crypt and crypt_r as one or the other may be defined
13241# This gets us our -lcrypt in LIBS when required on the target platform.
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13243$as_echo_n "checking for library containing crypt... " >&6; }
13244if ${ac_cv_search_crypt+:} false; then :
13245  $as_echo_n "(cached) " >&6
13246else
13247  ac_func_search_save_LIBS=$LIBS
13248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249/* end confdefs.h.  */
13250
13251/* Override any GCC internal prototype to avoid an error.
13252   Use char because int might match the return type of a GCC
13253   builtin and then its argument prototype would still apply.  */
13254#ifdef __cplusplus
13255extern "C"
13256#endif
13257char crypt ();
13258int
13259main ()
13260{
13261return crypt ();
13262  ;
13263  return 0;
13264}
13265_ACEOF
13266for ac_lib in '' crypt; do
13267  if test -z "$ac_lib"; then
13268    ac_res="none required"
13269  else
13270    ac_res=-l$ac_lib
13271    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13272  fi
13273  if ac_fn_c_try_link "$LINENO"; then :
13274  ac_cv_search_crypt=$ac_res
13275fi
13276rm -f core conftest.err conftest.$ac_objext \
13277    conftest$ac_exeext
13278  if ${ac_cv_search_crypt+:} false; then :
13279  break
13280fi
13281done
13282if ${ac_cv_search_crypt+:} false; then :
13283
13284else
13285  ac_cv_search_crypt=no
13286fi
13287rm conftest.$ac_ext
13288LIBS=$ac_func_search_save_LIBS
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13291$as_echo "$ac_cv_search_crypt" >&6; }
13292ac_res=$ac_cv_search_crypt
13293if test "$ac_res" != no; then :
13294  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13295
13296fi
13297
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
13299$as_echo_n "checking for library containing crypt_r... " >&6; }
13300if ${ac_cv_search_crypt_r+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  ac_func_search_save_LIBS=$LIBS
13304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305/* end confdefs.h.  */
13306
13307/* Override any GCC internal prototype to avoid an error.
13308   Use char because int might match the return type of a GCC
13309   builtin and then its argument prototype would still apply.  */
13310#ifdef __cplusplus
13311extern "C"
13312#endif
13313char crypt_r ();
13314int
13315main ()
13316{
13317return crypt_r ();
13318  ;
13319  return 0;
13320}
13321_ACEOF
13322for ac_lib in '' crypt; do
13323  if test -z "$ac_lib"; then
13324    ac_res="none required"
13325  else
13326    ac_res=-l$ac_lib
13327    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13328  fi
13329  if ac_fn_c_try_link "$LINENO"; then :
13330  ac_cv_search_crypt_r=$ac_res
13331fi
13332rm -f core conftest.err conftest.$ac_objext \
13333    conftest$ac_exeext
13334  if ${ac_cv_search_crypt_r+:} false; then :
13335  break
13336fi
13337done
13338if ${ac_cv_search_crypt_r+:} false; then :
13339
13340else
13341  ac_cv_search_crypt_r=no
13342fi
13343rm conftest.$ac_ext
13344LIBS=$ac_func_search_save_LIBS
13345fi
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
13347$as_echo "$ac_cv_search_crypt_r" >&6; }
13348ac_res=$ac_cv_search_crypt_r
13349if test "$ac_res" != no; then :
13350  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13351
13352fi
13353
13354
13355ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
13356if test "x$ac_cv_func_crypt_r" = xyes; then :
13357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358/* end confdefs.h.  */
13359
13360#define _GNU_SOURCE  /* Required for crypt_r()'s prototype in glibc. */
13361#include <crypt.h>
13362
13363int
13364main ()
13365{
13366
13367struct crypt_data d;
13368char *r = crypt_r("", "", &d);
13369
13370  ;
13371  return 0;
13372}
13373_ACEOF
13374if ac_fn_c_try_compile "$LINENO"; then :
13375
13376$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
13377
13378fi
13379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380
13381fi
13382
13383
13384for ac_func in clock_gettime
13385do :
13386  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13387if test "x$ac_cv_func_clock_gettime" = xyes; then :
13388  cat >>confdefs.h <<_ACEOF
13389#define HAVE_CLOCK_GETTIME 1
13390_ACEOF
13391
13392else
13393
13394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13395$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13396if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13397  $as_echo_n "(cached) " >&6
13398else
13399  ac_check_lib_save_LIBS=$LIBS
13400LIBS="-lrt  $LIBS"
13401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402/* end confdefs.h.  */
13403
13404/* Override any GCC internal prototype to avoid an error.
13405   Use char because int might match the return type of a GCC
13406   builtin and then its argument prototype would still apply.  */
13407#ifdef __cplusplus
13408extern "C"
13409#endif
13410char clock_gettime ();
13411int
13412main ()
13413{
13414return clock_gettime ();
13415  ;
13416  return 0;
13417}
13418_ACEOF
13419if ac_fn_c_try_link "$LINENO"; then :
13420  ac_cv_lib_rt_clock_gettime=yes
13421else
13422  ac_cv_lib_rt_clock_gettime=no
13423fi
13424rm -f core conftest.err conftest.$ac_objext \
13425    conftest$ac_exeext conftest.$ac_ext
13426LIBS=$ac_check_lib_save_LIBS
13427fi
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13429$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13430if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13431
13432        LIBS="$LIBS -lrt"
13433        $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13434
13435
13436$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h
13437
13438
13439fi
13440
13441
13442fi
13443done
13444
13445
13446for ac_func in clock_getres
13447do :
13448  ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
13449if test "x$ac_cv_func_clock_getres" = xyes; then :
13450  cat >>confdefs.h <<_ACEOF
13451#define HAVE_CLOCK_GETRES 1
13452_ACEOF
13453
13454else
13455
13456    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
13457$as_echo_n "checking for clock_getres in -lrt... " >&6; }
13458if ${ac_cv_lib_rt_clock_getres+:} false; then :
13459  $as_echo_n "(cached) " >&6
13460else
13461  ac_check_lib_save_LIBS=$LIBS
13462LIBS="-lrt  $LIBS"
13463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464/* end confdefs.h.  */
13465
13466/* Override any GCC internal prototype to avoid an error.
13467   Use char because int might match the return type of a GCC
13468   builtin and then its argument prototype would still apply.  */
13469#ifdef __cplusplus
13470extern "C"
13471#endif
13472char clock_getres ();
13473int
13474main ()
13475{
13476return clock_getres ();
13477  ;
13478  return 0;
13479}
13480_ACEOF
13481if ac_fn_c_try_link "$LINENO"; then :
13482  ac_cv_lib_rt_clock_getres=yes
13483else
13484  ac_cv_lib_rt_clock_getres=no
13485fi
13486rm -f core conftest.err conftest.$ac_objext \
13487    conftest$ac_exeext conftest.$ac_ext
13488LIBS=$ac_check_lib_save_LIBS
13489fi
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
13491$as_echo "$ac_cv_lib_rt_clock_getres" >&6; }
13492if test "x$ac_cv_lib_rt_clock_getres" = xyes; then :
13493
13494        $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
13495
13496
13497fi
13498
13499
13500fi
13501done
13502
13503
13504for ac_func in clock_settime
13505do :
13506  ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
13507if test "x$ac_cv_func_clock_settime" = xyes; then :
13508  cat >>confdefs.h <<_ACEOF
13509#define HAVE_CLOCK_SETTIME 1
13510_ACEOF
13511
13512else
13513
13514    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
13515$as_echo_n "checking for clock_settime in -lrt... " >&6; }
13516if ${ac_cv_lib_rt_clock_settime+:} false; then :
13517  $as_echo_n "(cached) " >&6
13518else
13519  ac_check_lib_save_LIBS=$LIBS
13520LIBS="-lrt  $LIBS"
13521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522/* end confdefs.h.  */
13523
13524/* Override any GCC internal prototype to avoid an error.
13525   Use char because int might match the return type of a GCC
13526   builtin and then its argument prototype would still apply.  */
13527#ifdef __cplusplus
13528extern "C"
13529#endif
13530char clock_settime ();
13531int
13532main ()
13533{
13534return clock_settime ();
13535  ;
13536  return 0;
13537}
13538_ACEOF
13539if ac_fn_c_try_link "$LINENO"; then :
13540  ac_cv_lib_rt_clock_settime=yes
13541else
13542  ac_cv_lib_rt_clock_settime=no
13543fi
13544rm -f core conftest.err conftest.$ac_objext \
13545    conftest$ac_exeext conftest.$ac_ext
13546LIBS=$ac_check_lib_save_LIBS
13547fi
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
13549$as_echo "$ac_cv_lib_rt_clock_settime" >&6; }
13550if test "x$ac_cv_lib_rt_clock_settime" = xyes; then :
13551
13552        $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
13553
13554
13555fi
13556
13557
13558fi
13559done
13560
13561
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
13563$as_echo_n "checking for major... " >&6; }
13564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566
13567#if defined(MAJOR_IN_MKDEV)
13568#include <sys/mkdev.h>
13569#elif defined(MAJOR_IN_SYSMACROS)
13570#include <sys/sysmacros.h>
13571#else
13572#include <sys/types.h>
13573#endif
13574
13575int
13576main ()
13577{
13578
13579  makedev(major(0),minor(0));
13580
13581  ;
13582  return 0;
13583}
13584_ACEOF
13585if ac_fn_c_try_link "$LINENO"; then :
13586
13587
13588$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
13589
13590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591$as_echo "yes" >&6; }
13592
13593else
13594
13595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596$as_echo "no" >&6; }
13597
13598fi
13599rm -f core conftest.err conftest.$ac_objext \
13600    conftest$ac_exeext conftest.$ac_ext
13601
13602# On OSF/1 V5.1, getaddrinfo is available, but a define
13603# for [no]getaddrinfo in netdb.h.
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13605$as_echo_n "checking for getaddrinfo... " >&6; }
13606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607/* end confdefs.h.  */
13608
13609#include <sys/types.h>
13610#include <sys/socket.h>
13611#include <netdb.h>
13612#include <stdio.h>
13613
13614int
13615main ()
13616{
13617getaddrinfo(NULL, NULL, NULL, NULL);
13618  ;
13619  return 0;
13620}
13621_ACEOF
13622if ac_fn_c_try_link "$LINENO"; then :
13623  have_getaddrinfo=yes
13624else
13625  have_getaddrinfo=no
13626fi
13627rm -f core conftest.err conftest.$ac_objext \
13628    conftest$ac_exeext conftest.$ac_ext
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
13630$as_echo "$have_getaddrinfo" >&6; }
13631if test $have_getaddrinfo = yes
13632then
13633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
13634$as_echo_n "checking getaddrinfo bug... " >&6; }
13635  if ${ac_cv_buggy_getaddrinfo+:} false; then :
13636  $as_echo_n "(cached) " >&6
13637else
13638  if test "$cross_compiling" = yes; then :
13639
13640if test "${enable_ipv6+set}" = set; then
13641  ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
13642else
13643  ac_cv_buggy_getaddrinfo=yes
13644fi
13645else
13646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647/* end confdefs.h.  */
13648
13649#include <stdio.h>
13650#include <sys/types.h>
13651#include <netdb.h>
13652#include <string.h>
13653#include <sys/socket.h>
13654#include <netinet/in.h>
13655
13656int main()
13657{
13658  int passive, gaierr, inet4 = 0, inet6 = 0;
13659  struct addrinfo hints, *ai, *aitop;
13660  char straddr[INET6_ADDRSTRLEN], strport[16];
13661
13662  for (passive = 0; passive <= 1; passive++) {
13663    memset(&hints, 0, sizeof(hints));
13664    hints.ai_family = AF_UNSPEC;
13665    hints.ai_flags = passive ? AI_PASSIVE : 0;
13666    hints.ai_socktype = SOCK_STREAM;
13667    hints.ai_protocol = IPPROTO_TCP;
13668    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13669      (void)gai_strerror(gaierr);
13670      goto bad;
13671    }
13672    for (ai = aitop; ai; ai = ai->ai_next) {
13673      if (ai->ai_addr == NULL ||
13674          ai->ai_addrlen == 0 ||
13675          getnameinfo(ai->ai_addr, ai->ai_addrlen,
13676                      straddr, sizeof(straddr), strport, sizeof(strport),
13677                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13678        goto bad;
13679      }
13680      switch (ai->ai_family) {
13681      case AF_INET:
13682        if (strcmp(strport, "54321") != 0) {
13683          goto bad;
13684        }
13685        if (passive) {
13686          if (strcmp(straddr, "0.0.0.0") != 0) {
13687            goto bad;
13688          }
13689        } else {
13690          if (strcmp(straddr, "127.0.0.1") != 0) {
13691            goto bad;
13692          }
13693        }
13694        inet4++;
13695        break;
13696      case AF_INET6:
13697        if (strcmp(strport, "54321") != 0) {
13698          goto bad;
13699        }
13700        if (passive) {
13701          if (strcmp(straddr, "::") != 0) {
13702            goto bad;
13703          }
13704        } else {
13705          if (strcmp(straddr, "::1") != 0) {
13706            goto bad;
13707          }
13708        }
13709        inet6++;
13710        break;
13711      case AF_UNSPEC:
13712        goto bad;
13713        break;
13714      default:
13715        /* another family support? */
13716        break;
13717      }
13718    }
13719    freeaddrinfo(aitop);
13720    aitop = NULL;
13721  }
13722
13723  if (!(inet4 == 0 || inet4 == 2))
13724    goto bad;
13725  if (!(inet6 == 0 || inet6 == 2))
13726    goto bad;
13727
13728  if (aitop)
13729    freeaddrinfo(aitop);
13730  return 0;
13731
13732 bad:
13733  if (aitop)
13734    freeaddrinfo(aitop);
13735  return 1;
13736}
13737
13738_ACEOF
13739if ac_fn_c_try_run "$LINENO"; then :
13740  ac_cv_buggy_getaddrinfo=no
13741else
13742  ac_cv_buggy_getaddrinfo=yes
13743fi
13744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13745  conftest.$ac_objext conftest.beam conftest.$ac_ext
13746fi
13747
13748fi
13749
13750fi
13751
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
13753$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
13754
13755if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
13756then
13757	if test $ipv6 = yes
13758	then
13759		echo 'Fatal: You must get working getaddrinfo() function.'
13760		echo '       or you can specify "--disable-ipv6"'.
13761		exit 1
13762	fi
13763else
13764
13765$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13766
13767fi
13768
13769for ac_func in getnameinfo
13770do :
13771  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13772if test "x$ac_cv_func_getnameinfo" = xyes; then :
13773  cat >>confdefs.h <<_ACEOF
13774#define HAVE_GETNAMEINFO 1
13775_ACEOF
13776
13777fi
13778done
13779
13780
13781# checks for structures
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13783$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13784if ${ac_cv_header_time+:} false; then :
13785  $as_echo_n "(cached) " >&6
13786else
13787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788/* end confdefs.h.  */
13789#include <sys/types.h>
13790#include <sys/time.h>
13791#include <time.h>
13792
13793int
13794main ()
13795{
13796if ((struct tm *) 0)
13797return 0;
13798  ;
13799  return 0;
13800}
13801_ACEOF
13802if ac_fn_c_try_compile "$LINENO"; then :
13803  ac_cv_header_time=yes
13804else
13805  ac_cv_header_time=no
13806fi
13807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13808fi
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13810$as_echo "$ac_cv_header_time" >&6; }
13811if test $ac_cv_header_time = yes; then
13812
13813$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13814
13815fi
13816
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13818$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13819if ${ac_cv_struct_tm+:} false; then :
13820  $as_echo_n "(cached) " >&6
13821else
13822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823/* end confdefs.h.  */
13824#include <sys/types.h>
13825#include <time.h>
13826
13827int
13828main ()
13829{
13830struct tm tm;
13831				     int *p = &tm.tm_sec;
13832				     return !p;
13833  ;
13834  return 0;
13835}
13836_ACEOF
13837if ac_fn_c_try_compile "$LINENO"; then :
13838  ac_cv_struct_tm=time.h
13839else
13840  ac_cv_struct_tm=sys/time.h
13841fi
13842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843fi
13844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13845$as_echo "$ac_cv_struct_tm" >&6; }
13846if test $ac_cv_struct_tm = sys/time.h; then
13847
13848$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13849
13850fi
13851
13852ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13853#include <$ac_cv_struct_tm>
13854
13855"
13856if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13857
13858cat >>confdefs.h <<_ACEOF
13859#define HAVE_STRUCT_TM_TM_ZONE 1
13860_ACEOF
13861
13862
13863fi
13864
13865if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13866
13867$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13868
13869else
13870  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13871"
13872if test "x$ac_cv_have_decl_tzname" = xyes; then :
13873  ac_have_decl=1
13874else
13875  ac_have_decl=0
13876fi
13877
13878cat >>confdefs.h <<_ACEOF
13879#define HAVE_DECL_TZNAME $ac_have_decl
13880_ACEOF
13881
13882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13883$as_echo_n "checking for tzname... " >&6; }
13884if ${ac_cv_var_tzname+:} false; then :
13885  $as_echo_n "(cached) " >&6
13886else
13887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888/* end confdefs.h.  */
13889#include <time.h>
13890#if !HAVE_DECL_TZNAME
13891extern char *tzname[];
13892#endif
13893
13894int
13895main ()
13896{
13897return tzname[0][0];
13898  ;
13899  return 0;
13900}
13901_ACEOF
13902if ac_fn_c_try_link "$LINENO"; then :
13903  ac_cv_var_tzname=yes
13904else
13905  ac_cv_var_tzname=no
13906fi
13907rm -f core conftest.err conftest.$ac_objext \
13908    conftest$ac_exeext conftest.$ac_ext
13909fi
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13911$as_echo "$ac_cv_var_tzname" >&6; }
13912  if test $ac_cv_var_tzname = yes; then
13913
13914$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13915
13916  fi
13917fi
13918
13919ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13920if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
13921
13922cat >>confdefs.h <<_ACEOF
13923#define HAVE_STRUCT_STAT_ST_RDEV 1
13924_ACEOF
13925
13926
13927fi
13928
13929ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13930if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
13931
13932cat >>confdefs.h <<_ACEOF
13933#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13934_ACEOF
13935
13936
13937fi
13938
13939ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
13940if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
13941
13942cat >>confdefs.h <<_ACEOF
13943#define HAVE_STRUCT_STAT_ST_FLAGS 1
13944_ACEOF
13945
13946
13947fi
13948
13949ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
13950if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
13951
13952cat >>confdefs.h <<_ACEOF
13953#define HAVE_STRUCT_STAT_ST_GEN 1
13954_ACEOF
13955
13956
13957fi
13958
13959ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
13960if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
13961
13962cat >>confdefs.h <<_ACEOF
13963#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
13964_ACEOF
13965
13966
13967fi
13968
13969ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13970if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13971
13972cat >>confdefs.h <<_ACEOF
13973#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13974_ACEOF
13975
13976
13977fi
13978
13979ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
13980  #include <sys/types.h>
13981  #include <pwd.h>
13982
13983"
13984if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
13985
13986cat >>confdefs.h <<_ACEOF
13987#define HAVE_STRUCT_PASSWD_PW_GECOS 1
13988_ACEOF
13989
13990
13991fi
13992ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
13993  #include <sys/types.h>
13994  #include <pwd.h>
13995
13996"
13997if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
13998
13999cat >>confdefs.h <<_ACEOF
14000#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
14001_ACEOF
14002
14003
14004fi
14005
14006# Issue #21085: In Cygwin, siginfo_t does not have si_band field.
14007ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
14008"
14009if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then :
14010
14011cat >>confdefs.h <<_ACEOF
14012#define HAVE_SIGINFO_T_SI_BAND 1
14013_ACEOF
14014
14015
14016fi
14017
14018
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
14020$as_echo_n "checking for time.h that defines altzone... " >&6; }
14021if ${ac_cv_header_time_altzone+:} false; then :
14022  $as_echo_n "(cached) " >&6
14023else
14024
14025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026/* end confdefs.h.  */
14027#include <time.h>
14028int
14029main ()
14030{
14031return altzone;
14032  ;
14033  return 0;
14034}
14035_ACEOF
14036if ac_fn_c_try_compile "$LINENO"; then :
14037  ac_cv_header_time_altzone=yes
14038else
14039  ac_cv_header_time_altzone=no
14040fi
14041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042
14043fi
14044
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
14046$as_echo "$ac_cv_header_time_altzone" >&6; }
14047if test $ac_cv_header_time_altzone = yes; then
14048
14049$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14050
14051fi
14052
14053was_it_defined=no
14054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
14055$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
14056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057/* end confdefs.h.  */
14058
14059#include <sys/types.h>
14060#include <sys/select.h>
14061#include <sys/time.h>
14062
14063int
14064main ()
14065{
14066;
14067  ;
14068  return 0;
14069}
14070_ACEOF
14071if ac_fn_c_try_compile "$LINENO"; then :
14072
14073
14074$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
14075
14076  was_it_defined=yes
14077
14078fi
14079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
14081$as_echo "$was_it_defined" >&6; }
14082
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
14084$as_echo_n "checking for addrinfo... " >&6; }
14085if ${ac_cv_struct_addrinfo+:} false; then :
14086  $as_echo_n "(cached) " >&6
14087else
14088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089/* end confdefs.h.  */
14090#include <netdb.h>
14091int
14092main ()
14093{
14094struct addrinfo a
14095  ;
14096  return 0;
14097}
14098_ACEOF
14099if ac_fn_c_try_compile "$LINENO"; then :
14100  ac_cv_struct_addrinfo=yes
14101else
14102  ac_cv_struct_addrinfo=no
14103fi
14104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105fi
14106
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
14108$as_echo "$ac_cv_struct_addrinfo" >&6; }
14109if test $ac_cv_struct_addrinfo = yes; then
14110
14111$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
14112
14113fi
14114
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
14116$as_echo_n "checking for sockaddr_storage... " >&6; }
14117if ${ac_cv_struct_sockaddr_storage+:} false; then :
14118  $as_echo_n "(cached) " >&6
14119else
14120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121/* end confdefs.h.  */
14122
14123#		include <sys/types.h>
14124#		include <sys/socket.h>
14125int
14126main ()
14127{
14128struct sockaddr_storage s
14129  ;
14130  return 0;
14131}
14132_ACEOF
14133if ac_fn_c_try_compile "$LINENO"; then :
14134  ac_cv_struct_sockaddr_storage=yes
14135else
14136  ac_cv_struct_sockaddr_storage=no
14137fi
14138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14139fi
14140
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
14142$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
14143if test $ac_cv_struct_sockaddr_storage = yes; then
14144
14145$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
14146
14147fi
14148
14149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
14150$as_echo_n "checking for sockaddr_alg... " >&6; }
14151if ${ac_cv_struct_sockaddr_alg+:} false; then :
14152  $as_echo_n "(cached) " >&6
14153else
14154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155/* end confdefs.h.  */
14156
14157#		include <sys/types.h>
14158#		include <sys/socket.h>
14159#		include <linux/if_alg.h>
14160int
14161main ()
14162{
14163struct sockaddr_alg s
14164  ;
14165  return 0;
14166}
14167_ACEOF
14168if ac_fn_c_try_compile "$LINENO"; then :
14169  ac_cv_struct_sockaddr_alg=yes
14170else
14171  ac_cv_struct_sockaddr_alg=no
14172fi
14173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174fi
14175
14176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
14177$as_echo "$ac_cv_struct_sockaddr_alg" >&6; }
14178if test $ac_cv_struct_sockaddr_alg = yes; then
14179
14180$as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
14181
14182fi
14183
14184# checks for compiler characteristics
14185
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14187$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14188if ${ac_cv_c_const+:} false; then :
14189  $as_echo_n "(cached) " >&6
14190else
14191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192/* end confdefs.h.  */
14193
14194int
14195main ()
14196{
14197
14198#ifndef __cplusplus
14199  /* Ultrix mips cc rejects this sort of thing.  */
14200  typedef int charset[2];
14201  const charset cs = { 0, 0 };
14202  /* SunOS 4.1.1 cc rejects this.  */
14203  char const *const *pcpcc;
14204  char **ppc;
14205  /* NEC SVR4.0.2 mips cc rejects this.  */
14206  struct point {int x, y;};
14207  static struct point const zero = {0,0};
14208  /* AIX XL C 1.02.0.0 rejects this.
14209     It does not let you subtract one const X* pointer from another in
14210     an arm of an if-expression whose if-part is not a constant
14211     expression */
14212  const char *g = "string";
14213  pcpcc = &g + (g ? g-g : 0);
14214  /* HPUX 7.0 cc rejects these. */
14215  ++pcpcc;
14216  ppc = (char**) pcpcc;
14217  pcpcc = (char const *const *) ppc;
14218  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14219    char tx;
14220    char *t = &tx;
14221    char const *s = 0 ? (char *) 0 : (char const *) 0;
14222
14223    *t++ = 0;
14224    if (s) return 0;
14225  }
14226  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14227    int x[] = {25, 17};
14228    const int *foo = &x[0];
14229    ++foo;
14230  }
14231  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14232    typedef const int *iptr;
14233    iptr p = 0;
14234    ++p;
14235  }
14236  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14237       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14238    struct s { int j; const int *ap[3]; } bx;
14239    struct s *b = &bx; b->j = 5;
14240  }
14241  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14242    const int foo = 10;
14243    if (!foo) return 0;
14244  }
14245  return !cs[0] && !zero.x;
14246#endif
14247
14248  ;
14249  return 0;
14250}
14251_ACEOF
14252if ac_fn_c_try_compile "$LINENO"; then :
14253  ac_cv_c_const=yes
14254else
14255  ac_cv_c_const=no
14256fi
14257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258fi
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14260$as_echo "$ac_cv_c_const" >&6; }
14261if test $ac_cv_c_const = no; then
14262
14263$as_echo "#define const /**/" >>confdefs.h
14264
14265fi
14266
14267
14268works=no
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
14270$as_echo_n "checking for working signed char... " >&6; }
14271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272/* end confdefs.h.  */
14273
14274int
14275main ()
14276{
14277signed char c;
14278  ;
14279  return 0;
14280}
14281_ACEOF
14282if ac_fn_c_try_compile "$LINENO"; then :
14283  works=yes
14284else
14285
14286$as_echo "#define signed /**/" >>confdefs.h
14287
14288
14289fi
14290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
14292$as_echo "$works" >&6; }
14293
14294have_prototypes=no
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
14296$as_echo_n "checking for prototypes... " >&6; }
14297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298/* end confdefs.h.  */
14299int foo(int x) { return 0; }
14300int
14301main ()
14302{
14303return foo(10);
14304  ;
14305  return 0;
14306}
14307_ACEOF
14308if ac_fn_c_try_compile "$LINENO"; then :
14309
14310$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
14311
14312   have_prototypes=yes
14313fi
14314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
14316$as_echo "$have_prototypes" >&6; }
14317
14318works=no
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
14320$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
14321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h.  */
14323
14324#include <stdarg.h>
14325int foo(int x, ...) {
14326	va_list va;
14327	va_start(va, x);
14328	va_arg(va, int);
14329	va_arg(va, char *);
14330	va_arg(va, double);
14331	return 0;
14332}
14333
14334int
14335main ()
14336{
14337return foo(10, "", 3.14);
14338  ;
14339  return 0;
14340}
14341_ACEOF
14342if ac_fn_c_try_compile "$LINENO"; then :
14343
14344
14345$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
14346
14347  works=yes
14348
14349fi
14350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
14352$as_echo "$works" >&6; }
14353
14354# check for socketpair
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
14356$as_echo_n "checking for socketpair... " >&6; }
14357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358/* end confdefs.h.  */
14359
14360#include <sys/types.h>
14361#include <sys/socket.h>
14362
14363int
14364main ()
14365{
14366void *x=socketpair
14367  ;
14368  return 0;
14369}
14370_ACEOF
14371if ac_fn_c_try_compile "$LINENO"; then :
14372
14373$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
14374
14375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14376$as_echo "yes" >&6; }
14377else
14378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14379$as_echo "no" >&6; }
14380
14381fi
14382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383
14384# check if sockaddr has sa_len member
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
14386$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
14387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388/* end confdefs.h.  */
14389#include <sys/types.h>
14390#include <sys/socket.h>
14391int
14392main ()
14393{
14394struct sockaddr x;
14395x.sa_len = 0;
14396  ;
14397  return 0;
14398}
14399_ACEOF
14400if ac_fn_c_try_compile "$LINENO"; then :
14401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14402$as_echo "yes" >&6; }
14403
14404$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
14405
14406else
14407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408$as_echo "no" >&6; }
14409
14410fi
14411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412
14413# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
14414
14415
14416ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
14417if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
14418
14419  $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14420
14421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
14422$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
14423  OLD_CFLAGS=$CFLAGS
14424  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
14425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426/* end confdefs.h.  */
14427
14428#   include <netdb.h>
14429
14430int
14431main ()
14432{
14433
14434    char *name;
14435    struct hostent *he, *res;
14436    char buffer[2048];
14437    int buflen = 2048;
14438    int h_errnop;
14439
14440    (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
14441
14442  ;
14443  return 0;
14444}
14445_ACEOF
14446if ac_fn_c_try_compile "$LINENO"; then :
14447
14448    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14449
14450
14451$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
14452
14453    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14454$as_echo "yes" >&6; }
14455
14456else
14457
14458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14459$as_echo "no" >&6; }
14460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
14461$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
14462    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463/* end confdefs.h.  */
14464
14465#       include <netdb.h>
14466
14467int
14468main ()
14469{
14470
14471        char *name;
14472        struct hostent *he;
14473        char buffer[2048];
14474        int buflen = 2048;
14475        int h_errnop;
14476
14477        (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
14478
14479  ;
14480  return 0;
14481}
14482_ACEOF
14483if ac_fn_c_try_compile "$LINENO"; then :
14484
14485        $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14486
14487
14488$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
14489
14490        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14491$as_echo "yes" >&6; }
14492
14493else
14494
14495        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496$as_echo "no" >&6; }
14497        { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
14498$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
14499        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500/* end confdefs.h.  */
14501
14502#           include <netdb.h>
14503
14504int
14505main ()
14506{
14507
14508            char *name;
14509            struct hostent *he;
14510            struct hostent_data data;
14511
14512            (void) gethostbyname_r(name, he, &data);
14513
14514  ;
14515  return 0;
14516}
14517_ACEOF
14518if ac_fn_c_try_compile "$LINENO"; then :
14519
14520            $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14521
14522
14523$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
14524
14525            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14526$as_echo "yes" >&6; }
14527
14528else
14529
14530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531$as_echo "no" >&6; }
14532
14533fi
14534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535
14536fi
14537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538
14539fi
14540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541  CFLAGS=$OLD_CFLAGS
14542
14543else
14544
14545  for ac_func in gethostbyname
14546do :
14547  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14548if test "x$ac_cv_func_gethostbyname" = xyes; then :
14549  cat >>confdefs.h <<_ACEOF
14550#define HAVE_GETHOSTBYNAME 1
14551_ACEOF
14552
14553fi
14554done
14555
14556
14557fi
14558
14559
14560
14561
14562
14563
14564
14565# checks for system services
14566# (none yet)
14567
14568# Linux requires this for correct f.p. operations
14569ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
14570if test "x$ac_cv_func___fpu_control" = xyes; then :
14571
14572else
14573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
14574$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
14575if ${ac_cv_lib_ieee___fpu_control+:} false; then :
14576  $as_echo_n "(cached) " >&6
14577else
14578  ac_check_lib_save_LIBS=$LIBS
14579LIBS="-lieee  $LIBS"
14580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581/* end confdefs.h.  */
14582
14583/* Override any GCC internal prototype to avoid an error.
14584   Use char because int might match the return type of a GCC
14585   builtin and then its argument prototype would still apply.  */
14586#ifdef __cplusplus
14587extern "C"
14588#endif
14589char __fpu_control ();
14590int
14591main ()
14592{
14593return __fpu_control ();
14594  ;
14595  return 0;
14596}
14597_ACEOF
14598if ac_fn_c_try_link "$LINENO"; then :
14599  ac_cv_lib_ieee___fpu_control=yes
14600else
14601  ac_cv_lib_ieee___fpu_control=no
14602fi
14603rm -f core conftest.err conftest.$ac_objext \
14604    conftest$ac_exeext conftest.$ac_ext
14605LIBS=$ac_check_lib_save_LIBS
14606fi
14607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
14608$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
14609if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
14610  cat >>confdefs.h <<_ACEOF
14611#define HAVE_LIBIEEE 1
14612_ACEOF
14613
14614  LIBS="-lieee $LIBS"
14615
14616fi
14617
14618
14619fi
14620
14621
14622# check for --with-libm=...
14623
14624case $ac_sys_system in
14625Darwin) ;;
14626*) LIBM=-lm
14627esac
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
14629$as_echo_n "checking for --with-libm=STRING... " >&6; }
14630
14631# Check whether --with-libm was given.
14632if test "${with_libm+set}" = set; then :
14633  withval=$with_libm;
14634if test "$withval" = no
14635then LIBM=
14636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
14637$as_echo "force LIBM empty" >&6; }
14638elif test "$withval" != yes
14639then LIBM=$withval
14640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
14641$as_echo "set LIBM=\"$withval\"" >&6; }
14642else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
14643fi
14644else
14645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
14646$as_echo "default LIBM=\"$LIBM\"" >&6; }
14647fi
14648
14649
14650# check for --with-libc=...
14651
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
14653$as_echo_n "checking for --with-libc=STRING... " >&6; }
14654
14655# Check whether --with-libc was given.
14656if test "${with_libc+set}" = set; then :
14657  withval=$with_libc;
14658if test "$withval" = no
14659then LIBC=
14660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
14661$as_echo "force LIBC empty" >&6; }
14662elif test "$withval" != yes
14663then LIBC=$withval
14664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
14665$as_echo "set LIBC=\"$withval\"" >&6; }
14666else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
14667fi
14668else
14669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
14670$as_echo "default LIBC=\"$LIBC\"" >&6; }
14671fi
14672
14673
14674# **************************************
14675# * Check for gcc x64 inline assembler *
14676# **************************************
14677
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
14679$as_echo_n "checking for x64 gcc inline assembler... " >&6; }
14680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681/* end confdefs.h.  */
14682
14683int
14684main ()
14685{
14686
14687  __asm__ __volatile__ ("movq %rcx, %rax");
14688
14689  ;
14690  return 0;
14691}
14692_ACEOF
14693if ac_fn_c_try_link "$LINENO"; then :
14694  have_gcc_asm_for_x64=yes
14695else
14696  have_gcc_asm_for_x64=no
14697fi
14698rm -f core conftest.err conftest.$ac_objext \
14699    conftest$ac_exeext conftest.$ac_ext
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
14701$as_echo "$have_gcc_asm_for_x64" >&6; }
14702if test "$have_gcc_asm_for_x64" = yes
14703then
14704
14705$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
14706
14707fi
14708
14709# **************************************************
14710# * Check for various properties of floating point *
14711# **************************************************
14712
14713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
14714$as_echo_n "checking whether float word ordering is bigendian... " >&6; }
14715if ${ax_cv_c_float_words_bigendian+:} false; then :
14716  $as_echo_n "(cached) " >&6
14717else
14718
14719
14720ax_cv_c_float_words_bigendian=unknown
14721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722/* end confdefs.h.  */
14723
14724
14725double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
14726
14727
14728_ACEOF
14729if ac_fn_c_try_compile "$LINENO"; then :
14730
14731
14732if grep noonsees conftest.$ac_objext >/dev/null ; then
14733  ax_cv_c_float_words_bigendian=yes
14734fi
14735if grep seesnoon conftest.$ac_objext >/dev/null ; then
14736  if test "$ax_cv_c_float_words_bigendian" = unknown; then
14737    ax_cv_c_float_words_bigendian=no
14738  else
14739    ax_cv_c_float_words_bigendian=unknown
14740  fi
14741fi
14742
14743
14744fi
14745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14746fi
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
14748$as_echo "$ax_cv_c_float_words_bigendian" >&6; }
14749
14750case $ax_cv_c_float_words_bigendian in
14751  yes)
14752
14753$as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h
14754 ;;
14755  no)
14756     ;;
14757  *)
14758    as_fn_error $? "
14759
14760Unknown float word ordering. You need to manually preset
14761ax_cv_c_float_words_bigendian=no (or yes) according to your system.
14762
14763    " "$LINENO" 5 ;;
14764esac
14765
14766
14767if test "$ax_cv_c_float_words_bigendian" = "yes"
14768then
14769
14770$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
14771
14772elif test "$ax_cv_c_float_words_bigendian" = "no"
14773then
14774
14775$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
14776
14777else
14778  # Some ARM platforms use a mixed-endian representation for doubles.
14779  # While Python doesn't currently have full support for these platforms
14780  # (see e.g., issue 1762561), we can at least make sure that float <-> string
14781  # conversions work.
14782  # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big
14783  # or little, then it must be this?
14784
14785$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
14786
14787fi
14788
14789# The short float repr introduced in Python 3.1 requires the
14790# correctly-rounded string <-> double conversion functions from
14791# Python/dtoa.c, which in turn require that the FPU uses 53-bit
14792# rounding; this is a problem on x86, where the x87 FPU has a default
14793# rounding precision of 64 bits.  For gcc/x86, we can fix this by
14794# using inline assembler to get and set the x87 FPU control word.
14795
14796# This inline assembler syntax may also work for suncc and icc,
14797# so we try it on all platforms.
14798
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
14800$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
14801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802/* end confdefs.h.  */
14803
14804int
14805main ()
14806{
14807
14808  unsigned short cw;
14809  __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
14810  __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
14811
14812  ;
14813  return 0;
14814}
14815_ACEOF
14816if ac_fn_c_try_link "$LINENO"; then :
14817  have_gcc_asm_for_x87=yes
14818else
14819  have_gcc_asm_for_x87=no
14820fi
14821rm -f core conftest.err conftest.$ac_objext \
14822    conftest$ac_exeext conftest.$ac_ext
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
14824$as_echo "$have_gcc_asm_for_x87" >&6; }
14825if test "$have_gcc_asm_for_x87" = yes
14826then
14827
14828$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
14829
14830fi
14831
14832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
14833$as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
14834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835/* end confdefs.h.  */
14836
14837int
14838main ()
14839{
14840
14841  unsigned int fpcr;
14842  __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr));
14843  __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr));
14844
14845  ;
14846  return 0;
14847}
14848_ACEOF
14849if ac_fn_c_try_link "$LINENO"; then :
14850  have_gcc_asm_for_mc68881=yes
14851else
14852  have_gcc_asm_for_mc68881=no
14853fi
14854rm -f core conftest.err conftest.$ac_objext \
14855    conftest$ac_exeext conftest.$ac_ext
14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5
14857$as_echo "$have_gcc_asm_for_mc68881" >&6; }
14858if test "$have_gcc_asm_for_mc68881" = yes
14859then
14860
14861$as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
14862
14863fi
14864
14865# Detect whether system arithmetic is subject to x87-style double
14866# rounding issues.  The result of this test has little meaning on non
14867# IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding
14868# mode is round-to-nearest and double rounding issues are present, and
14869# 0 otherwise.  See http://bugs.python.org/issue2937 for more info.
14870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
14871$as_echo_n "checking for x87-style double rounding... " >&6; }
14872# $BASECFLAGS may affect the result
14873ac_save_cc="$CC"
14874CC="$CC $BASECFLAGS"
14875if test "$cross_compiling" = yes; then :
14876  ac_cv_x87_double_rounding=no
14877else
14878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879/* end confdefs.h.  */
14880
14881#include <stdlib.h>
14882#include <math.h>
14883int main() {
14884    volatile double x, y, z;
14885    /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14886    x = 0.99999999999999989; /* 1-2**-53 */
14887    y = 1./x;
14888    if (y != 1.)
14889        exit(0);
14890    /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
14891    x = 1e16;
14892    y = 2.99999;
14893    z = x + y;
14894    if (z != 1e16+4.)
14895        exit(0);
14896    /* both tests show evidence of double rounding */
14897    exit(1);
14898}
14899
14900_ACEOF
14901if ac_fn_c_try_run "$LINENO"; then :
14902  ac_cv_x87_double_rounding=no
14903else
14904  ac_cv_x87_double_rounding=yes
14905fi
14906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14907  conftest.$ac_objext conftest.beam conftest.$ac_ext
14908fi
14909
14910CC="$ac_save_cc"
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
14912$as_echo "$ac_cv_x87_double_rounding" >&6; }
14913if test "$ac_cv_x87_double_rounding" = yes
14914then
14915
14916$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
14917
14918fi
14919
14920# ************************************
14921# * Check for mathematical functions *
14922# ************************************
14923
14924LIBS_SAVE=$LIBS
14925LIBS="$LIBS $LIBM"
14926
14927for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
14928do :
14929  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14930ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14931if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14932  cat >>confdefs.h <<_ACEOF
14933#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14934_ACEOF
14935
14936fi
14937done
14938
14939for ac_func in hypot lgamma log1p log2 round tgamma
14940do :
14941  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14942ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14943if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14944  cat >>confdefs.h <<_ACEOF
14945#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14946_ACEOF
14947
14948fi
14949done
14950
14951ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
14952"
14953if test "x$ac_cv_have_decl_isinf" = xyes; then :
14954  ac_have_decl=1
14955else
14956  ac_have_decl=0
14957fi
14958
14959cat >>confdefs.h <<_ACEOF
14960#define HAVE_DECL_ISINF $ac_have_decl
14961_ACEOF
14962ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
14963"
14964if test "x$ac_cv_have_decl_isnan" = xyes; then :
14965  ac_have_decl=1
14966else
14967  ac_have_decl=0
14968fi
14969
14970cat >>confdefs.h <<_ACEOF
14971#define HAVE_DECL_ISNAN $ac_have_decl
14972_ACEOF
14973ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
14974"
14975if test "x$ac_cv_have_decl_isfinite" = xyes; then :
14976  ac_have_decl=1
14977else
14978  ac_have_decl=0
14979fi
14980
14981cat >>confdefs.h <<_ACEOF
14982#define HAVE_DECL_ISFINITE $ac_have_decl
14983_ACEOF
14984
14985
14986# For multiprocessing module, check that sem_open
14987# actually works.  For FreeBSD versions <= 7.2,
14988# the kernel module that provides POSIX semaphores
14989# isn't loaded by default, so an attempt to call
14990# sem_open results in a 'Signal 12' error.
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
14992$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
14993if ${ac_cv_posix_semaphores_enabled+:} false; then :
14994  $as_echo_n "(cached) " >&6
14995else
14996  if test "$cross_compiling" = yes; then :
14997  ac_cv_posix_semaphores_enabled=yes
14998else
14999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000/* end confdefs.h.  */
15001
15002#include <unistd.h>
15003#include <fcntl.h>
15004#include <stdio.h>
15005#include <semaphore.h>
15006#include <sys/stat.h>
15007
15008int main(void) {
15009  sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
15010  if (a == SEM_FAILED) {
15011    perror("sem_open");
15012    return 1;
15013  }
15014  sem_close(a);
15015  sem_unlink("/autoconf");
15016  return 0;
15017}
15018
15019_ACEOF
15020if ac_fn_c_try_run "$LINENO"; then :
15021  ac_cv_posix_semaphores_enabled=yes
15022else
15023  ac_cv_posix_semaphores_enabled=no
15024fi
15025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15026  conftest.$ac_objext conftest.beam conftest.$ac_ext
15027fi
15028
15029
15030fi
15031
15032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
15033$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
15034if test $ac_cv_posix_semaphores_enabled = no
15035then
15036
15037$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
15038
15039fi
15040
15041# Multiprocessing check for broken sem_getvalue
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
15043$as_echo_n "checking for broken sem_getvalue... " >&6; }
15044if ${ac_cv_broken_sem_getvalue+:} false; then :
15045  $as_echo_n "(cached) " >&6
15046else
15047  if test "$cross_compiling" = yes; then :
15048  ac_cv_broken_sem_getvalue=yes
15049else
15050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051/* end confdefs.h.  */
15052
15053#include <unistd.h>
15054#include <fcntl.h>
15055#include <stdio.h>
15056#include <semaphore.h>
15057#include <sys/stat.h>
15058
15059int main(void){
15060  sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
15061  int count;
15062  int res;
15063  if(a==SEM_FAILED){
15064    perror("sem_open");
15065    return 1;
15066
15067  }
15068  res = sem_getvalue(a, &count);
15069  sem_close(a);
15070  sem_unlink("/autocftw");
15071  return res==-1 ? 1 : 0;
15072}
15073
15074_ACEOF
15075if ac_fn_c_try_run "$LINENO"; then :
15076  ac_cv_broken_sem_getvalue=no
15077else
15078  ac_cv_broken_sem_getvalue=yes
15079fi
15080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15081  conftest.$ac_objext conftest.beam conftest.$ac_ext
15082fi
15083
15084
15085fi
15086
15087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
15088$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
15089if test $ac_cv_broken_sem_getvalue = yes
15090then
15091
15092$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
15093
15094fi
15095
15096ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
15097"
15098if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then :
15099  ac_have_decl=1
15100else
15101  ac_have_decl=0
15102fi
15103
15104cat >>confdefs.h <<_ACEOF
15105#define HAVE_DECL_RTLD_LAZY $ac_have_decl
15106_ACEOF
15107ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
15108"
15109if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
15110  ac_have_decl=1
15111else
15112  ac_have_decl=0
15113fi
15114
15115cat >>confdefs.h <<_ACEOF
15116#define HAVE_DECL_RTLD_NOW $ac_have_decl
15117_ACEOF
15118ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
15119"
15120if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then :
15121  ac_have_decl=1
15122else
15123  ac_have_decl=0
15124fi
15125
15126cat >>confdefs.h <<_ACEOF
15127#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
15128_ACEOF
15129ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
15130"
15131if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then :
15132  ac_have_decl=1
15133else
15134  ac_have_decl=0
15135fi
15136
15137cat >>confdefs.h <<_ACEOF
15138#define HAVE_DECL_RTLD_LOCAL $ac_have_decl
15139_ACEOF
15140ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
15141"
15142if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then :
15143  ac_have_decl=1
15144else
15145  ac_have_decl=0
15146fi
15147
15148cat >>confdefs.h <<_ACEOF
15149#define HAVE_DECL_RTLD_NODELETE $ac_have_decl
15150_ACEOF
15151ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
15152"
15153if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then :
15154  ac_have_decl=1
15155else
15156  ac_have_decl=0
15157fi
15158
15159cat >>confdefs.h <<_ACEOF
15160#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl
15161_ACEOF
15162ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
15163"
15164if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then :
15165  ac_have_decl=1
15166else
15167  ac_have_decl=0
15168fi
15169
15170cat >>confdefs.h <<_ACEOF
15171#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl
15172_ACEOF
15173ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
15174"
15175if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then :
15176  ac_have_decl=1
15177else
15178  ac_have_decl=0
15179fi
15180
15181cat >>confdefs.h <<_ACEOF
15182#define HAVE_DECL_RTLD_MEMBER $ac_have_decl
15183_ACEOF
15184
15185
15186# determine what size digit to use for Python's longs
15187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
15188$as_echo_n "checking digit size for Python's longs... " >&6; }
15189# Check whether --enable-big-digits was given.
15190if test "${enable_big_digits+set}" = set; then :
15191  enableval=$enable_big_digits; case $enable_big_digits in
15192yes)
15193  enable_big_digits=30 ;;
15194no)
15195  enable_big_digits=15 ;;
1519615|30)
15197  ;;
15198*)
15199  as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
15200esac
15201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
15202$as_echo "$enable_big_digits" >&6; }
15203
15204cat >>confdefs.h <<_ACEOF
15205#define PYLONG_BITS_IN_DIGIT $enable_big_digits
15206_ACEOF
15207
15208
15209else
15210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
15211$as_echo "no value specified" >&6; }
15212fi
15213
15214
15215# check for wchar.h
15216ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
15217if test "x$ac_cv_header_wchar_h" = xyes; then :
15218
15219
15220$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
15221
15222  wchar_h="yes"
15223
15224else
15225  wchar_h="no"
15226
15227fi
15228
15229
15230
15231# determine wchar_t size
15232if test "$wchar_h" = yes
15233then
15234  # The cast to long int works around a bug in the HP C Compiler
15235# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15236# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15237# This bug is HP SR number 8606223364.
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
15239$as_echo_n "checking size of wchar_t... " >&6; }
15240if ${ac_cv_sizeof_wchar_t+:} false; then :
15241  $as_echo_n "(cached) " >&6
15242else
15243  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h>
15244"; then :
15245
15246else
15247  if test "$ac_cv_type_wchar_t" = yes; then
15248     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15250as_fn_error 77 "cannot compute sizeof (wchar_t)
15251See \`config.log' for more details" "$LINENO" 5; }
15252   else
15253     ac_cv_sizeof_wchar_t=0
15254   fi
15255fi
15256
15257fi
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
15259$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
15260
15261
15262
15263cat >>confdefs.h <<_ACEOF
15264#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
15265_ACEOF
15266
15267
15268fi
15269
15270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
15271$as_echo_n "checking for UCS-4 tcl... " >&6; }
15272have_ucs4_tcl=no
15273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274/* end confdefs.h.  */
15275
15276#include <tcl.h>
15277#if TCL_UTF_MAX != 6
15278# error "NOT UCS4_TCL"
15279#endif
15280int
15281main ()
15282{
15283
15284  ;
15285  return 0;
15286}
15287_ACEOF
15288if ac_fn_c_try_compile "$LINENO"; then :
15289
15290
15291$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
15292
15293  have_ucs4_tcl=yes
15294
15295fi
15296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
15298$as_echo "$have_ucs4_tcl" >&6; }
15299
15300# check whether wchar_t is signed or not
15301if test "$wchar_h" = yes
15302then
15303  # check whether wchar_t is signed or not
15304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
15305$as_echo_n "checking whether wchar_t is signed... " >&6; }
15306  if ${ac_cv_wchar_t_signed+:} false; then :
15307  $as_echo_n "(cached) " >&6
15308else
15309
15310  if test "$cross_compiling" = yes; then :
15311  ac_cv_wchar_t_signed=yes
15312else
15313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314/* end confdefs.h.  */
15315
15316  #include <wchar.h>
15317  int main()
15318  {
15319	/* Success: exit code 0 */
15320        return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
15321  }
15322
15323_ACEOF
15324if ac_fn_c_try_run "$LINENO"; then :
15325  ac_cv_wchar_t_signed=yes
15326else
15327  ac_cv_wchar_t_signed=no
15328fi
15329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15330  conftest.$ac_objext conftest.beam conftest.$ac_ext
15331fi
15332
15333fi
15334
15335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
15336$as_echo "$ac_cv_wchar_t_signed" >&6; }
15337fi
15338
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
15340$as_echo_n "checking whether wchar_t is usable... " >&6; }
15341# wchar_t is only usable if it maps to an unsigned type
15342if test "$ac_cv_sizeof_wchar_t" -ge 2 \
15343          -a "$ac_cv_wchar_t_signed" = "no"
15344then
15345
15346$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
15347
15348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15349$as_echo "yes" >&6; }
15350else
15351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15352$as_echo "no" >&6; }
15353fi
15354
15355case $ac_sys_system/$ac_sys_release in
15356SunOS/*)
15357  if test -f /etc/os-release; then
15358    OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release)
15359    if test "x$OS_NAME" = "xOracle Solaris"; then
15360      # bpo-43667: In Oracle Solaris, the internal form of wchar_t in
15361      # non-Unicode locales is not Unicode and hence cannot be used directly.
15362      # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html
15363
15364$as_echo "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h
15365
15366    fi
15367  fi
15368  ;;
15369esac
15370
15371# check for endianness
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15373$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15374if ${ac_cv_c_bigendian+:} false; then :
15375  $as_echo_n "(cached) " >&6
15376else
15377  ac_cv_c_bigendian=unknown
15378    # See if we're dealing with a universal compiler.
15379    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380/* end confdefs.h.  */
15381#ifndef __APPLE_CC__
15382	       not a universal capable compiler
15383	     #endif
15384	     typedef int dummy;
15385
15386_ACEOF
15387if ac_fn_c_try_compile "$LINENO"; then :
15388
15389	# Check for potential -arch flags.  It is not universal unless
15390	# there are at least two -arch flags with different values.
15391	ac_arch=
15392	ac_prev=
15393	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15394	 if test -n "$ac_prev"; then
15395	   case $ac_word in
15396	     i?86 | x86_64 | ppc | ppc64)
15397	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15398		 ac_arch=$ac_word
15399	       else
15400		 ac_cv_c_bigendian=universal
15401		 break
15402	       fi
15403	       ;;
15404	   esac
15405	   ac_prev=
15406	 elif test "x$ac_word" = "x-arch"; then
15407	   ac_prev=arch
15408	 fi
15409       done
15410fi
15411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412    if test $ac_cv_c_bigendian = unknown; then
15413      # See if sys/param.h defines the BYTE_ORDER macro.
15414      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415/* end confdefs.h.  */
15416#include <sys/types.h>
15417	     #include <sys/param.h>
15418
15419int
15420main ()
15421{
15422#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15423		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15424		     && LITTLE_ENDIAN)
15425	      bogus endian macros
15426	     #endif
15427
15428  ;
15429  return 0;
15430}
15431_ACEOF
15432if ac_fn_c_try_compile "$LINENO"; then :
15433  # It does; now see whether it defined to BIG_ENDIAN or not.
15434	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435/* end confdefs.h.  */
15436#include <sys/types.h>
15437		#include <sys/param.h>
15438
15439int
15440main ()
15441{
15442#if BYTE_ORDER != BIG_ENDIAN
15443		 not big endian
15444		#endif
15445
15446  ;
15447  return 0;
15448}
15449_ACEOF
15450if ac_fn_c_try_compile "$LINENO"; then :
15451  ac_cv_c_bigendian=yes
15452else
15453  ac_cv_c_bigendian=no
15454fi
15455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456fi
15457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15458    fi
15459    if test $ac_cv_c_bigendian = unknown; then
15460      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15461      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462/* end confdefs.h.  */
15463#include <limits.h>
15464
15465int
15466main ()
15467{
15468#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15469	      bogus endian macros
15470	     #endif
15471
15472  ;
15473  return 0;
15474}
15475_ACEOF
15476if ac_fn_c_try_compile "$LINENO"; then :
15477  # It does; now see whether it defined to _BIG_ENDIAN or not.
15478	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479/* end confdefs.h.  */
15480#include <limits.h>
15481
15482int
15483main ()
15484{
15485#ifndef _BIG_ENDIAN
15486		 not big endian
15487		#endif
15488
15489  ;
15490  return 0;
15491}
15492_ACEOF
15493if ac_fn_c_try_compile "$LINENO"; then :
15494  ac_cv_c_bigendian=yes
15495else
15496  ac_cv_c_bigendian=no
15497fi
15498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15499fi
15500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15501    fi
15502    if test $ac_cv_c_bigendian = unknown; then
15503      # Compile a test program.
15504      if test "$cross_compiling" = yes; then :
15505  # Try to guess by grepping values from an object file.
15506	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507/* end confdefs.h.  */
15508short int ascii_mm[] =
15509		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15510		short int ascii_ii[] =
15511		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15512		int use_ascii (int i) {
15513		  return ascii_mm[i] + ascii_ii[i];
15514		}
15515		short int ebcdic_ii[] =
15516		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15517		short int ebcdic_mm[] =
15518		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15519		int use_ebcdic (int i) {
15520		  return ebcdic_mm[i] + ebcdic_ii[i];
15521		}
15522		extern int foo;
15523
15524int
15525main ()
15526{
15527return use_ascii (foo) == use_ebcdic (foo);
15528  ;
15529  return 0;
15530}
15531_ACEOF
15532if ac_fn_c_try_compile "$LINENO"; then :
15533  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15534	      ac_cv_c_bigendian=yes
15535	    fi
15536	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15537	      if test "$ac_cv_c_bigendian" = unknown; then
15538		ac_cv_c_bigendian=no
15539	      else
15540		# finding both strings is unlikely to happen, but who knows?
15541		ac_cv_c_bigendian=unknown
15542	      fi
15543	    fi
15544fi
15545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15546else
15547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549$ac_includes_default
15550int
15551main ()
15552{
15553
15554	     /* Are we little or big endian?  From Harbison&Steele.  */
15555	     union
15556	     {
15557	       long int l;
15558	       char c[sizeof (long int)];
15559	     } u;
15560	     u.l = 1;
15561	     return u.c[sizeof (long int) - 1] == 1;
15562
15563  ;
15564  return 0;
15565}
15566_ACEOF
15567if ac_fn_c_try_run "$LINENO"; then :
15568  ac_cv_c_bigendian=no
15569else
15570  ac_cv_c_bigendian=yes
15571fi
15572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15573  conftest.$ac_objext conftest.beam conftest.$ac_ext
15574fi
15575
15576    fi
15577fi
15578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15579$as_echo "$ac_cv_c_bigendian" >&6; }
15580 case $ac_cv_c_bigendian in #(
15581   yes)
15582     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15583;; #(
15584   no)
15585      ;; #(
15586   universal)
15587
15588$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15589
15590     ;; #(
15591   *)
15592     as_fn_error $? "unknown endianness
15593 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15594 esac
15595
15596
15597# ABI version string for Python extension modules.  This appears between the
15598# periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated
15599# from the following attributes which affect the ABI of this Python build (in
15600# this order):
15601#
15602# * The Python implementation (always 'cpython-' for us)
15603# * The major and minor version numbers
15604# * --with-pydebug (adds a 'd')
15605#
15606# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
15607# would get a shared library ABI version tag of 'cpython-32dmu' and shared
15608# libraries would be named 'foo.cpython-32dmu.so'.
15609#
15610# In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
15611# In Python 3.7 and older, --with-pymalloc added a 'm' flag.
15612
15613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
15614$as_echo_n "checking ABIFLAGS... " >&6; }
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
15616$as_echo "$ABIFLAGS" >&6; }
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
15618$as_echo_n "checking SOABI... " >&6; }
15619SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
15620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
15621$as_echo "$SOABI" >&6; }
15622
15623# Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI
15624if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then
15625  # Similar to SOABI but remove "d" flag from ABIFLAGS
15626
15627  ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
15628
15629cat >>confdefs.h <<_ACEOF
15630#define ALT_SOABI "${ALT_SOABI}"
15631_ACEOF
15632
15633fi
15634
15635
15636EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
15637
15638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
15639$as_echo_n "checking LDVERSION... " >&6; }
15640LDVERSION='$(VERSION)$(ABIFLAGS)'
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
15642$as_echo "$LDVERSION" >&6; }
15643
15644# On Android and Cygwin the shared libraries must be linked with libpython.
15645
15646if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
15647  LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
15648else
15649  LIBPYTHON=''
15650fi
15651
15652
15653
15654BINLIBDEST='$(LIBDIR)/python$(VERSION)'
15655
15656
15657# Check for --with-platlibdir
15658# /usr/$LIDIRNAME/python$VERSION
15659
15660PLATLIBDIR="lib"
15661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5
15662$as_echo_n "checking for --with-platlibdir... " >&6; }
15663
15664# Check whether --with-platlibdir was given.
15665if test "${with_platlibdir+set}" = set; then :
15666  withval=$with_platlibdir;
15667# ignore 3 options:
15668#   --with-platlibdir
15669#   --with-platlibdir=
15670#   --without-platlibdir
15671if test -n "$withval" -a "$withval" != yes -a "$withval" != no
15672then
15673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15674$as_echo "yes" >&6; }
15675  PLATLIBDIR="$withval"
15676  BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)'
15677else
15678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15679$as_echo "no" >&6; }
15680fi
15681else
15682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683$as_echo "no" >&6; }
15684fi
15685
15686
15687
15688
15689if test x$PLATFORM_TRIPLET = x; then
15690  LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}"
15691else
15692  LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
15693fi
15694
15695
15696# Check for --with-wheel-pkg-dir=PATH
15697
15698WHEEL_PKG_DIR=""
15699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5
15700$as_echo_n "checking for --with-wheel-pkg-dir... " >&6; }
15701
15702# Check whether --with-wheel-pkg-dir was given.
15703if test "${with_wheel_pkg_dir+set}" = set; then :
15704  withval=$with_wheel_pkg_dir;
15705if test -n "$withval"; then
15706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15707$as_echo "yes" >&6; }
15708  WHEEL_PKG_DIR="$withval"
15709else
15710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711$as_echo "no" >&6; }
15712fi
15713else
15714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15715$as_echo "no" >&6; }
15716fi
15717
15718
15719# Check whether right shifting a negative integer extends the sign bit
15720# or fills with zeros (like the Cray J90, according to Tim Peters).
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
15722$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
15723if ${ac_cv_rshift_extends_sign+:} false; then :
15724  $as_echo_n "(cached) " >&6
15725else
15726
15727if test "$cross_compiling" = yes; then :
15728  ac_cv_rshift_extends_sign=yes
15729else
15730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731/* end confdefs.h.  */
15732
15733int main()
15734{
15735	return (((-1)>>3 == -1) ? 0 : 1);
15736}
15737
15738_ACEOF
15739if ac_fn_c_try_run "$LINENO"; then :
15740  ac_cv_rshift_extends_sign=yes
15741else
15742  ac_cv_rshift_extends_sign=no
15743fi
15744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15745  conftest.$ac_objext conftest.beam conftest.$ac_ext
15746fi
15747
15748fi
15749
15750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
15751$as_echo "$ac_cv_rshift_extends_sign" >&6; }
15752if test "$ac_cv_rshift_extends_sign" = no
15753then
15754
15755$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
15756
15757fi
15758
15759# check for getc_unlocked and related locking functions
15760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
15761$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
15762if ${ac_cv_have_getc_unlocked+:} false; then :
15763  $as_echo_n "(cached) " >&6
15764else
15765
15766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767/* end confdefs.h.  */
15768#include <stdio.h>
15769int
15770main ()
15771{
15772
15773	FILE *f = fopen("/dev/null", "r");
15774	flockfile(f);
15775	getc_unlocked(f);
15776	funlockfile(f);
15777
15778  ;
15779  return 0;
15780}
15781_ACEOF
15782if ac_fn_c_try_link "$LINENO"; then :
15783  ac_cv_have_getc_unlocked=yes
15784else
15785  ac_cv_have_getc_unlocked=no
15786fi
15787rm -f core conftest.err conftest.$ac_objext \
15788    conftest$ac_exeext conftest.$ac_ext
15789fi
15790
15791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
15792$as_echo "$ac_cv_have_getc_unlocked" >&6; }
15793if test "$ac_cv_have_getc_unlocked" = yes
15794then
15795
15796$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
15797
15798fi
15799
15800
15801# Check whether --with-readline was given.
15802if test "${with_readline+set}" = set; then :
15803  withval=$with_readline;
15804else
15805  with_readline=yes
15806fi
15807
15808
15809# check where readline lives
15810py_cv_lib_readline=no
15811# save the value of LIBS so we don't actually link Python with readline
15812LIBS_no_readline=$LIBS
15813
15814if test "$with_readline" != no; then
15815  case "$with_readline" in
15816  editline|edit)
15817    LIBREADLINE=edit
15818
15819$as_echo "#define WITH_EDITLINE 1" >>confdefs.h
15820
15821    ;;
15822  yes|readline)
15823    LIBREADLINE=readline
15824    ;;
15825  *)
15826    as_fn_error $? "proper usage is --with(out)-readline[=editline]" "$LINENO" 5
15827    ;;
15828  esac
15829
15830  # On some systems we need to link readline to a termcap compatible
15831  # library.  NOTE: Keep the precedence of listed libraries synchronised
15832  # with setup.py.
15833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
15834$as_echo_n "checking how to link readline libs... " >&6; }
15835  for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
15836    if test -z "$py_libtermcap"; then
15837      READLINE_LIBS="-l$LIBREADLINE"
15838    else
15839      READLINE_LIBS="-l$LIBREADLINE -l$py_libtermcap"
15840    fi
15841    LIBS="$READLINE_LIBS $LIBS_no_readline"
15842    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843/* end confdefs.h.  */
15844
15845/* Override any GCC internal prototype to avoid an error.
15846   Use char because int might match the return type of a GCC
15847   builtin and then its argument prototype would still apply.  */
15848#ifdef __cplusplus
15849extern "C"
15850#endif
15851char readline ();
15852int
15853main ()
15854{
15855return readline ();
15856  ;
15857  return 0;
15858}
15859_ACEOF
15860if ac_fn_c_try_link "$LINENO"; then :
15861  py_cv_lib_readline=yes
15862fi
15863rm -f core conftest.err conftest.$ac_objext \
15864    conftest$ac_exeext conftest.$ac_ext
15865    if test $py_cv_lib_readline = yes; then
15866      break
15867    fi
15868  done
15869
15870  # Uncomment this line if you want to use READLINE_LIBS in Makefile or scripts
15871  #AC_SUBST([READLINE_LIBS])
15872  if test $py_cv_lib_readline = no; then
15873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15874$as_echo "none" >&6; }
15875  else
15876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
15877$as_echo "$READLINE_LIBS" >&6; }
15878
15879$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15880
15881  fi
15882fi
15883
15884if test "$py_cv_lib_readline" = yes; then
15885  # check for readline 2.2
15886  ac_fn_c_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" "
15887#include <stdio.h> /* Must be first for Gnu Readline */
15888#ifdef WITH_EDITLINE
15889# include <editline/readline.h>
15890#else
15891# include <readline/readline.h>
15892#endif
15893
15894"
15895if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes; then :
15896
15897$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
15898
15899fi
15900
15901  ac_fn_c_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" "
15902#include <stdio.h> /* Must be first for Gnu Readline */
15903#ifdef WITH_EDITLINE
15904# include <editline/readline.h>
15905#else
15906# include <readline/readline.h>
15907#endif
15908
15909"
15910if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes; then :
15911
15912$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
15913
15914fi
15915
15916
15917  # check for readline 4.0
15918  as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_pre_input_hook" | $as_tr_sh`
15919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5
15920$as_echo_n "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; }
15921if eval \${$as_ac_Lib+:} false; then :
15922  $as_echo_n "(cached) " >&6
15923else
15924  ac_check_lib_save_LIBS=$LIBS
15925LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS"
15926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927/* end confdefs.h.  */
15928
15929/* Override any GCC internal prototype to avoid an error.
15930   Use char because int might match the return type of a GCC
15931   builtin and then its argument prototype would still apply.  */
15932#ifdef __cplusplus
15933extern "C"
15934#endif
15935char rl_pre_input_hook ();
15936int
15937main ()
15938{
15939return rl_pre_input_hook ();
15940  ;
15941  return 0;
15942}
15943_ACEOF
15944if ac_fn_c_try_link "$LINENO"; then :
15945  eval "$as_ac_Lib=yes"
15946else
15947  eval "$as_ac_Lib=no"
15948fi
15949rm -f core conftest.err conftest.$ac_objext \
15950    conftest$ac_exeext conftest.$ac_ext
15951LIBS=$ac_check_lib_save_LIBS
15952fi
15953eval ac_res=\$$as_ac_Lib
15954	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15955$as_echo "$ac_res" >&6; }
15956if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15957
15958$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
15959
15960fi
15961
15962
15963  # also in 4.0
15964  as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_completion_display_matches_hook" | $as_tr_sh`
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5
15966$as_echo_n "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; }
15967if eval \${$as_ac_Lib+:} false; then :
15968  $as_echo_n "(cached) " >&6
15969else
15970  ac_check_lib_save_LIBS=$LIBS
15971LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS"
15972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973/* end confdefs.h.  */
15974
15975/* Override any GCC internal prototype to avoid an error.
15976   Use char because int might match the return type of a GCC
15977   builtin and then its argument prototype would still apply.  */
15978#ifdef __cplusplus
15979extern "C"
15980#endif
15981char rl_completion_display_matches_hook ();
15982int
15983main ()
15984{
15985return rl_completion_display_matches_hook ();
15986  ;
15987  return 0;
15988}
15989_ACEOF
15990if ac_fn_c_try_link "$LINENO"; then :
15991  eval "$as_ac_Lib=yes"
15992else
15993  eval "$as_ac_Lib=no"
15994fi
15995rm -f core conftest.err conftest.$ac_objext \
15996    conftest$ac_exeext conftest.$ac_ext
15997LIBS=$ac_check_lib_save_LIBS
15998fi
15999eval ac_res=\$$as_ac_Lib
16000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16001$as_echo "$ac_res" >&6; }
16002if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16003
16004$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
16005
16006fi
16007
16008
16009  # also in 4.0, but not in editline
16010  as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_resize_terminal" | $as_tr_sh`
16011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5
16012$as_echo_n "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; }
16013if eval \${$as_ac_Lib+:} false; then :
16014  $as_echo_n "(cached) " >&6
16015else
16016  ac_check_lib_save_LIBS=$LIBS
16017LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS"
16018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019/* end confdefs.h.  */
16020
16021/* Override any GCC internal prototype to avoid an error.
16022   Use char because int might match the return type of a GCC
16023   builtin and then its argument prototype would still apply.  */
16024#ifdef __cplusplus
16025extern "C"
16026#endif
16027char rl_resize_terminal ();
16028int
16029main ()
16030{
16031return rl_resize_terminal ();
16032  ;
16033  return 0;
16034}
16035_ACEOF
16036if ac_fn_c_try_link "$LINENO"; then :
16037  eval "$as_ac_Lib=yes"
16038else
16039  eval "$as_ac_Lib=no"
16040fi
16041rm -f core conftest.err conftest.$ac_objext \
16042    conftest$ac_exeext conftest.$ac_ext
16043LIBS=$ac_check_lib_save_LIBS
16044fi
16045eval ac_res=\$$as_ac_Lib
16046	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16047$as_echo "$ac_res" >&6; }
16048if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16049
16050$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
16051
16052fi
16053
16054
16055  # check for readline 4.2
16056  as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_rl_completion_matches" | $as_tr_sh`
16057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5
16058$as_echo_n "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; }
16059if eval \${$as_ac_Lib+:} false; then :
16060  $as_echo_n "(cached) " >&6
16061else
16062  ac_check_lib_save_LIBS=$LIBS
16063LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS"
16064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065/* end confdefs.h.  */
16066
16067/* Override any GCC internal prototype to avoid an error.
16068   Use char because int might match the return type of a GCC
16069   builtin and then its argument prototype would still apply.  */
16070#ifdef __cplusplus
16071extern "C"
16072#endif
16073char rl_completion_matches ();
16074int
16075main ()
16076{
16077return rl_completion_matches ();
16078  ;
16079  return 0;
16080}
16081_ACEOF
16082if ac_fn_c_try_link "$LINENO"; then :
16083  eval "$as_ac_Lib=yes"
16084else
16085  eval "$as_ac_Lib=no"
16086fi
16087rm -f core conftest.err conftest.$ac_objext \
16088    conftest$ac_exeext conftest.$ac_ext
16089LIBS=$ac_check_lib_save_LIBS
16090fi
16091eval ac_res=\$$as_ac_Lib
16092	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16093$as_echo "$ac_res" >&6; }
16094if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16095
16096$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
16097
16098fi
16099
16100
16101  # also in readline 4.2
16102  ac_fn_c_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" "
16103#include <stdio.h> /* Must be first for Gnu Readline */
16104#ifdef WITH_EDITLINE
16105# include <editline/readline.h>
16106#else
16107# include <readline/readline.h>
16108#endif
16109
16110"
16111if test "x$ac_cv_have_decl_rl_catch_signals" = xyes; then :
16112
16113$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
16114
16115fi
16116
16117
16118  as_ac_Lib=`$as_echo "ac_cv_lib_$LIBREADLINE''_append_history" | $as_tr_sh`
16119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5
16120$as_echo_n "checking for append_history in -l$LIBREADLINE... " >&6; }
16121if eval \${$as_ac_Lib+:} false; then :
16122  $as_echo_n "(cached) " >&6
16123else
16124  ac_check_lib_save_LIBS=$LIBS
16125LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS"
16126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127/* end confdefs.h.  */
16128
16129/* Override any GCC internal prototype to avoid an error.
16130   Use char because int might match the return type of a GCC
16131   builtin and then its argument prototype would still apply.  */
16132#ifdef __cplusplus
16133extern "C"
16134#endif
16135char append_history ();
16136int
16137main ()
16138{
16139return append_history ();
16140  ;
16141  return 0;
16142}
16143_ACEOF
16144if ac_fn_c_try_link "$LINENO"; then :
16145  eval "$as_ac_Lib=yes"
16146else
16147  eval "$as_ac_Lib=no"
16148fi
16149rm -f core conftest.err conftest.$ac_objext \
16150    conftest$ac_exeext conftest.$ac_ext
16151LIBS=$ac_check_lib_save_LIBS
16152fi
16153eval ac_res=\$$as_ac_Lib
16154	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16155$as_echo "$ac_res" >&6; }
16156if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16157
16158$as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
16159
16160fi
16161
16162fi
16163
16164# End of readline checks: restore LIBS
16165LIBS=$LIBS_no_readline
16166
16167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
16168$as_echo_n "checking for broken nice()... " >&6; }
16169if ${ac_cv_broken_nice+:} false; then :
16170  $as_echo_n "(cached) " >&6
16171else
16172
16173if test "$cross_compiling" = yes; then :
16174  ac_cv_broken_nice=no
16175else
16176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177/* end confdefs.h.  */
16178
16179#include <stdlib.h>
16180#include <unistd.h>
16181int main()
16182{
16183	int val1 = nice(1);
16184	if (val1 != -1 && val1 == nice(2))
16185		exit(0);
16186	exit(1);
16187}
16188
16189_ACEOF
16190if ac_fn_c_try_run "$LINENO"; then :
16191  ac_cv_broken_nice=yes
16192else
16193  ac_cv_broken_nice=no
16194fi
16195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16196  conftest.$ac_objext conftest.beam conftest.$ac_ext
16197fi
16198
16199fi
16200
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
16202$as_echo "$ac_cv_broken_nice" >&6; }
16203if test "$ac_cv_broken_nice" = yes
16204then
16205
16206$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
16207
16208fi
16209
16210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
16211$as_echo_n "checking for broken poll()... " >&6; }
16212if ${ac_cv_broken_poll+:} false; then :
16213  $as_echo_n "(cached) " >&6
16214else
16215  if test "$cross_compiling" = yes; then :
16216  ac_cv_broken_poll=no
16217else
16218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219/* end confdefs.h.  */
16220
16221#include <poll.h>
16222#include <unistd.h>
16223
16224int main()
16225{
16226    struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
16227    int poll_test;
16228
16229    close (42);
16230
16231    poll_test = poll(&poll_struct, 1, 0);
16232    if (poll_test < 0)
16233        return 0;
16234    else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
16235        return 0;
16236    else
16237        return 1;
16238}
16239
16240_ACEOF
16241if ac_fn_c_try_run "$LINENO"; then :
16242  ac_cv_broken_poll=yes
16243else
16244  ac_cv_broken_poll=no
16245fi
16246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16247  conftest.$ac_objext conftest.beam conftest.$ac_ext
16248fi
16249
16250fi
16251
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
16253$as_echo "$ac_cv_broken_poll" >&6; }
16254if test "$ac_cv_broken_poll" = yes
16255then
16256
16257$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
16258
16259fi
16260
16261# check tzset(3) exists and works like we expect it to
16262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
16263$as_echo_n "checking for working tzset()... " >&6; }
16264if ${ac_cv_working_tzset+:} false; then :
16265  $as_echo_n "(cached) " >&6
16266else
16267
16268if test "$cross_compiling" = yes; then :
16269  ac_cv_working_tzset=no
16270else
16271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272/* end confdefs.h.  */
16273
16274#include <stdlib.h>
16275#include <time.h>
16276#include <string.h>
16277
16278#if HAVE_TZNAME
16279extern char *tzname[];
16280#endif
16281
16282int main()
16283{
16284	/* Note that we need to ensure that not only does tzset(3)
16285	   do 'something' with localtime, but it works as documented
16286	   in the library reference and as expected by the test suite.
16287	   This includes making sure that tzname is set properly if
16288	   tm->tm_zone does not exist since it is the alternative way
16289	   of getting timezone info.
16290
16291	   Red Hat 6.2 doesn't understand the southern hemisphere
16292	   after New Year's Day.
16293	*/
16294
16295	time_t groundhogday = 1044144000; /* GMT-based */
16296	time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
16297
16298	putenv("TZ=UTC+0");
16299	tzset();
16300	if (localtime(&groundhogday)->tm_hour != 0)
16301	    exit(1);
16302#if HAVE_TZNAME
16303	/* For UTC, tzname[1] is sometimes "", sometimes "   " */
16304	if (strcmp(tzname[0], "UTC") ||
16305		(tzname[1][0] != 0 && tzname[1][0] != ' '))
16306	    exit(1);
16307#endif
16308
16309	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
16310	tzset();
16311	if (localtime(&groundhogday)->tm_hour != 19)
16312	    exit(1);
16313#if HAVE_TZNAME
16314	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
16315	    exit(1);
16316#endif
16317
16318	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
16319	tzset();
16320	if (localtime(&groundhogday)->tm_hour != 11)
16321	    exit(1);
16322#if HAVE_TZNAME
16323	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
16324	    exit(1);
16325#endif
16326
16327#if HAVE_STRUCT_TM_TM_ZONE
16328	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
16329	    exit(1);
16330	if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
16331	    exit(1);
16332#endif
16333
16334	exit(0);
16335}
16336
16337_ACEOF
16338if ac_fn_c_try_run "$LINENO"; then :
16339  ac_cv_working_tzset=yes
16340else
16341  ac_cv_working_tzset=no
16342fi
16343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16344  conftest.$ac_objext conftest.beam conftest.$ac_ext
16345fi
16346
16347fi
16348
16349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
16350$as_echo "$ac_cv_working_tzset" >&6; }
16351if test "$ac_cv_working_tzset" = yes
16352then
16353
16354$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
16355
16356fi
16357
16358# Look for subsecond timestamps in struct stat
16359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
16360$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
16361if ${ac_cv_stat_tv_nsec+:} false; then :
16362  $as_echo_n "(cached) " >&6
16363else
16364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365/* end confdefs.h.  */
16366#include <sys/stat.h>
16367int
16368main ()
16369{
16370
16371struct stat st;
16372st.st_mtim.tv_nsec = 1;
16373
16374  ;
16375  return 0;
16376}
16377_ACEOF
16378if ac_fn_c_try_compile "$LINENO"; then :
16379  ac_cv_stat_tv_nsec=yes
16380else
16381  ac_cv_stat_tv_nsec=no
16382fi
16383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384fi
16385
16386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
16387$as_echo "$ac_cv_stat_tv_nsec" >&6; }
16388if test "$ac_cv_stat_tv_nsec" = yes
16389then
16390
16391$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
16392
16393fi
16394
16395# Look for BSD style subsecond timestamps in struct stat
16396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
16397$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
16398if ${ac_cv_stat_tv_nsec2+:} false; then :
16399  $as_echo_n "(cached) " >&6
16400else
16401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402/* end confdefs.h.  */
16403#include <sys/stat.h>
16404int
16405main ()
16406{
16407
16408struct stat st;
16409st.st_mtimespec.tv_nsec = 1;
16410
16411  ;
16412  return 0;
16413}
16414_ACEOF
16415if ac_fn_c_try_compile "$LINENO"; then :
16416  ac_cv_stat_tv_nsec2=yes
16417else
16418  ac_cv_stat_tv_nsec2=no
16419fi
16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421fi
16422
16423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
16424$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
16425if test "$ac_cv_stat_tv_nsec2" = yes
16426then
16427
16428$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
16429
16430fi
16431
16432# first curses header check
16433ac_save_cppflags="$CPPFLAGS"
16434if test "$cross_compiling" = no; then
16435  CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
16436fi
16437
16438for ac_header in curses.h ncurses.h
16439do :
16440  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16441ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16442if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16443  cat >>confdefs.h <<_ACEOF
16444#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16445_ACEOF
16446
16447fi
16448
16449done
16450
16451
16452# On Solaris, term.h requires curses.h
16453for ac_header in term.h
16454do :
16455  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
16456#ifdef HAVE_CURSES_H
16457#include <curses.h>
16458#endif
16459
16460"
16461if test "x$ac_cv_header_term_h" = xyes; then :
16462  cat >>confdefs.h <<_ACEOF
16463#define HAVE_TERM_H 1
16464_ACEOF
16465
16466fi
16467
16468done
16469
16470
16471# On HP/UX 11.0, mvwdelch is a block with a return statement
16472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
16473$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
16474if ${ac_cv_mvwdelch_is_expression+:} false; then :
16475  $as_echo_n "(cached) " >&6
16476else
16477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h.  */
16479#include <curses.h>
16480int
16481main ()
16482{
16483
16484  int rtn;
16485  rtn = mvwdelch(0,0,0);
16486
16487  ;
16488  return 0;
16489}
16490_ACEOF
16491if ac_fn_c_try_compile "$LINENO"; then :
16492  ac_cv_mvwdelch_is_expression=yes
16493else
16494  ac_cv_mvwdelch_is_expression=no
16495fi
16496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497fi
16498
16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
16500$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
16501
16502if test "$ac_cv_mvwdelch_is_expression" = yes
16503then
16504
16505$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
16506
16507fi
16508
16509# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
16510# structs since version 5.7.  If the macro is defined as zero before including
16511# [n]curses.h, ncurses will expose fields of the structs regardless of the
16512# configuration.
16513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
16514$as_echo_n "checking whether WINDOW has _flags... " >&6; }
16515if ${ac_cv_window_has_flags+:} false; then :
16516  $as_echo_n "(cached) " >&6
16517else
16518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519/* end confdefs.h.  */
16520
16521  #define NCURSES_OPAQUE 0
16522  #include <curses.h>
16523
16524int
16525main ()
16526{
16527
16528  WINDOW *w;
16529  w->_flags = 0;
16530
16531  ;
16532  return 0;
16533}
16534_ACEOF
16535if ac_fn_c_try_compile "$LINENO"; then :
16536  ac_cv_window_has_flags=yes
16537else
16538  ac_cv_window_has_flags=no
16539fi
16540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541fi
16542
16543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
16544$as_echo "$ac_cv_window_has_flags" >&6; }
16545
16546
16547if test "$ac_cv_window_has_flags" = yes
16548then
16549
16550$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
16551
16552fi
16553
16554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
16555$as_echo_n "checking for is_pad... " >&6; }
16556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h.  */
16558#include <curses.h>
16559int
16560main ()
16561{
16562
16563#ifndef is_pad
16564void *x=is_pad
16565#endif
16566
16567  ;
16568  return 0;
16569}
16570_ACEOF
16571if ac_fn_c_try_compile "$LINENO"; then :
16572
16573$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
16574
16575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16576$as_echo "yes" >&6; }
16577else
16578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579$as_echo "no" >&6; }
16580
16581fi
16582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
16585$as_echo_n "checking for is_term_resized... " >&6; }
16586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587/* end confdefs.h.  */
16588#include <curses.h>
16589int
16590main ()
16591{
16592void *x=is_term_resized
16593  ;
16594  return 0;
16595}
16596_ACEOF
16597if ac_fn_c_try_compile "$LINENO"; then :
16598
16599$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
16600
16601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16602$as_echo "yes" >&6; }
16603else
16604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16605$as_echo "no" >&6; }
16606
16607fi
16608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609
16610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
16611$as_echo_n "checking for resize_term... " >&6; }
16612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16613/* end confdefs.h.  */
16614#include <curses.h>
16615int
16616main ()
16617{
16618void *x=resize_term
16619  ;
16620  return 0;
16621}
16622_ACEOF
16623if ac_fn_c_try_compile "$LINENO"; then :
16624
16625$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
16626
16627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16628$as_echo "yes" >&6; }
16629else
16630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16631$as_echo "no" >&6; }
16632
16633fi
16634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635
16636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
16637$as_echo_n "checking for resizeterm... " >&6; }
16638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640#include <curses.h>
16641int
16642main ()
16643{
16644void *x=resizeterm
16645  ;
16646  return 0;
16647}
16648_ACEOF
16649if ac_fn_c_try_compile "$LINENO"; then :
16650
16651$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
16652
16653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654$as_echo "yes" >&6; }
16655else
16656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657$as_echo "no" >&6; }
16658
16659fi
16660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661
16662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
16663$as_echo_n "checking for immedok... " >&6; }
16664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665/* end confdefs.h.  */
16666#include <curses.h>
16667int
16668main ()
16669{
16670
16671#ifndef immedok
16672void *x=immedok
16673#endif
16674
16675  ;
16676  return 0;
16677}
16678_ACEOF
16679if ac_fn_c_try_compile "$LINENO"; then :
16680
16681$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
16682
16683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16684$as_echo "yes" >&6; }
16685else
16686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16687$as_echo "no" >&6; }
16688
16689fi
16690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16691
16692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
16693$as_echo_n "checking for syncok... " >&6; }
16694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695/* end confdefs.h.  */
16696#include <curses.h>
16697int
16698main ()
16699{
16700
16701#ifndef syncok
16702void *x=syncok
16703#endif
16704
16705  ;
16706  return 0;
16707}
16708_ACEOF
16709if ac_fn_c_try_compile "$LINENO"; then :
16710
16711$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
16712
16713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16714$as_echo "yes" >&6; }
16715else
16716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16717$as_echo "no" >&6; }
16718
16719fi
16720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721
16722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
16723$as_echo_n "checking for wchgat... " >&6; }
16724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725/* end confdefs.h.  */
16726#include <curses.h>
16727int
16728main ()
16729{
16730
16731#ifndef wchgat
16732void *x=wchgat
16733#endif
16734
16735  ;
16736  return 0;
16737}
16738_ACEOF
16739if ac_fn_c_try_compile "$LINENO"; then :
16740
16741$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
16742
16743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16744$as_echo "yes" >&6; }
16745else
16746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16747$as_echo "no" >&6; }
16748
16749fi
16750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
16753$as_echo_n "checking for filter... " >&6; }
16754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755/* end confdefs.h.  */
16756#include <curses.h>
16757int
16758main ()
16759{
16760
16761#ifndef filter
16762void *x=filter
16763#endif
16764
16765  ;
16766  return 0;
16767}
16768_ACEOF
16769if ac_fn_c_try_compile "$LINENO"; then :
16770
16771$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
16772
16773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16774$as_echo "yes" >&6; }
16775else
16776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16777$as_echo "no" >&6; }
16778
16779fi
16780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
16783$as_echo_n "checking for has_key... " >&6; }
16784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785/* end confdefs.h.  */
16786#include <curses.h>
16787int
16788main ()
16789{
16790
16791#ifndef has_key
16792void *x=has_key
16793#endif
16794
16795  ;
16796  return 0;
16797}
16798_ACEOF
16799if ac_fn_c_try_compile "$LINENO"; then :
16800
16801$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
16802
16803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16804$as_echo "yes" >&6; }
16805else
16806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807$as_echo "no" >&6; }
16808
16809fi
16810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811
16812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
16813$as_echo_n "checking for typeahead... " >&6; }
16814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815/* end confdefs.h.  */
16816#include <curses.h>
16817int
16818main ()
16819{
16820
16821#ifndef typeahead
16822void *x=typeahead
16823#endif
16824
16825  ;
16826  return 0;
16827}
16828_ACEOF
16829if ac_fn_c_try_compile "$LINENO"; then :
16830
16831$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
16832
16833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834$as_echo "yes" >&6; }
16835else
16836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16837$as_echo "no" >&6; }
16838
16839fi
16840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841
16842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
16843$as_echo_n "checking for use_env... " >&6; }
16844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845/* end confdefs.h.  */
16846#include <curses.h>
16847int
16848main ()
16849{
16850
16851#ifndef use_env
16852void *x=use_env
16853#endif
16854
16855  ;
16856  return 0;
16857}
16858_ACEOF
16859if ac_fn_c_try_compile "$LINENO"; then :
16860
16861$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
16862
16863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16864$as_echo "yes" >&6; }
16865else
16866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16867$as_echo "no" >&6; }
16868
16869fi
16870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871# last curses configure check
16872CPPFLAGS=$ac_save_cppflags
16873
16874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
16875$as_echo "$as_me: checking for device files" >&6;}
16876
16877if test "x$cross_compiling" = xyes; then
16878  if test "${ac_cv_file__dev_ptmx+set}" != set; then
16879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16880$as_echo_n "checking for /dev/ptmx... " >&6; }
16881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16882$as_echo "not set" >&6; }
16883    as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16884  fi
16885  if test "${ac_cv_file__dev_ptc+set}" != set; then
16886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16887$as_echo_n "checking for /dev/ptc... " >&6; }
16888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16889$as_echo "not set" >&6; }
16890    as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16891  fi
16892fi
16893
16894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16895$as_echo_n "checking for /dev/ptmx... " >&6; }
16896if ${ac_cv_file__dev_ptmx+:} false; then :
16897  $as_echo_n "(cached) " >&6
16898else
16899  test "$cross_compiling" = yes &&
16900  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16901if test -r "/dev/ptmx"; then
16902  ac_cv_file__dev_ptmx=yes
16903else
16904  ac_cv_file__dev_ptmx=no
16905fi
16906fi
16907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
16908$as_echo "$ac_cv_file__dev_ptmx" >&6; }
16909if test "x$ac_cv_file__dev_ptmx" = xyes; then :
16910
16911fi
16912
16913if test "x$ac_cv_file__dev_ptmx" = xyes; then
16914
16915$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16916
16917fi
16918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16919$as_echo_n "checking for /dev/ptc... " >&6; }
16920if ${ac_cv_file__dev_ptc+:} false; then :
16921  $as_echo_n "(cached) " >&6
16922else
16923  test "$cross_compiling" = yes &&
16924  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16925if test -r "/dev/ptc"; then
16926  ac_cv_file__dev_ptc=yes
16927else
16928  ac_cv_file__dev_ptc=no
16929fi
16930fi
16931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
16932$as_echo "$ac_cv_file__dev_ptc" >&6; }
16933if test "x$ac_cv_file__dev_ptc" = xyes; then :
16934
16935fi
16936
16937if test "x$ac_cv_file__dev_ptc" = xyes; then
16938
16939$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
16940
16941fi
16942
16943if test $ac_sys_system = Darwin
16944then
16945	LIBS="$LIBS -framework CoreFoundation"
16946fi
16947
16948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
16949$as_echo_n "checking for %zd printf() format support... " >&6; }
16950if ${ac_cv_have_size_t_format+:} false; then :
16951  $as_echo_n "(cached) " >&6
16952else
16953  if test "$cross_compiling" = yes; then :
16954  ac_cv_have_size_t_format="cross -- assuming yes"
16955
16956else
16957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958/* end confdefs.h.  */
16959
16960#include <stdio.h>
16961#include <stddef.h>
16962#include <string.h>
16963
16964#ifdef HAVE_SYS_TYPES_H
16965#include <sys/types.h>
16966#endif
16967
16968#ifdef HAVE_SSIZE_T
16969typedef ssize_t Py_ssize_t;
16970#elif SIZEOF_VOID_P == SIZEOF_LONG
16971typedef long Py_ssize_t;
16972#else
16973typedef int Py_ssize_t;
16974#endif
16975
16976int main()
16977{
16978    char buffer[256];
16979
16980    if(sprintf(buffer, "%zd", (size_t)123) < 0)
16981       	return 1;
16982
16983    if (strcmp(buffer, "123"))
16984	return 1;
16985
16986    if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
16987       	return 1;
16988
16989    if (strcmp(buffer, "-123"))
16990	return 1;
16991
16992    return 0;
16993}
16994
16995_ACEOF
16996if ac_fn_c_try_run "$LINENO"; then :
16997  ac_cv_have_size_t_format=yes
16998else
16999  ac_cv_have_size_t_format=no
17000fi
17001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17002  conftest.$ac_objext conftest.beam conftest.$ac_ext
17003fi
17004
17005fi
17006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
17007$as_echo "$ac_cv_have_size_t_format" >&6; }
17008if test "$ac_cv_have_size_t_format" != no ; then
17009
17010$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
17011
17012fi
17013
17014ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
17015#ifdef HAVE_SYS_TYPES_H
17016#include <sys/types.h>
17017#endif
17018#ifdef HAVE_SYS_SOCKET_H
17019#include <sys/socket.h>
17020#endif
17021
17022"
17023if test "x$ac_cv_type_socklen_t" = xyes; then :
17024
17025else
17026
17027$as_echo "#define socklen_t int" >>confdefs.h
17028
17029fi
17030
17031
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
17033$as_echo_n "checking for broken mbstowcs... " >&6; }
17034if ${ac_cv_broken_mbstowcs+:} false; then :
17035  $as_echo_n "(cached) " >&6
17036else
17037  if test "$cross_compiling" = yes; then :
17038  ac_cv_broken_mbstowcs=no
17039else
17040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041/* end confdefs.h.  */
17042
17043#include <stdio.h>
17044#include<stdlib.h>
17045int main() {
17046    size_t len = -1;
17047    const char *str = "text";
17048    len = mbstowcs(NULL, str, 0);
17049    return (len != 4);
17050}
17051
17052_ACEOF
17053if ac_fn_c_try_run "$LINENO"; then :
17054  ac_cv_broken_mbstowcs=no
17055else
17056  ac_cv_broken_mbstowcs=yes
17057fi
17058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17059  conftest.$ac_objext conftest.beam conftest.$ac_ext
17060fi
17061
17062fi
17063
17064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
17065$as_echo "$ac_cv_broken_mbstowcs" >&6; }
17066if test "$ac_cv_broken_mbstowcs" = yes
17067then
17068
17069$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
17070
17071fi
17072
17073# Check for --with-computed-gotos
17074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
17075$as_echo_n "checking for --with-computed-gotos... " >&6; }
17076
17077# Check whether --with-computed-gotos was given.
17078if test "${with_computed_gotos+set}" = set; then :
17079  withval=$with_computed_gotos;
17080if test "$withval" = yes
17081then
17082
17083$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
17084
17085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17086$as_echo "yes" >&6; }
17087fi
17088if test "$withval" = no
17089then
17090
17091$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
17092
17093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17094$as_echo "no" >&6; }
17095fi
17096
17097else
17098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
17099$as_echo "no value specified" >&6; }
17100fi
17101
17102
17103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
17104$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
17105if ${ac_cv_computed_gotos+:} false; then :
17106  $as_echo_n "(cached) " >&6
17107else
17108  if test "$cross_compiling" = yes; then :
17109  if test "${with_computed_gotos+set}" = set; then
17110   ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
17111 else
17112   ac_cv_computed_gotos=no
17113 fi
17114else
17115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116/* end confdefs.h.  */
17117
17118int main(int argc, char **argv)
17119{
17120    static void *targets[1] = { &&LABEL1 };
17121    goto LABEL2;
17122LABEL1:
17123    return 0;
17124LABEL2:
17125    goto *targets[0];
17126    return 1;
17127}
17128
17129_ACEOF
17130if ac_fn_c_try_run "$LINENO"; then :
17131  ac_cv_computed_gotos=yes
17132else
17133  ac_cv_computed_gotos=no
17134fi
17135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17136  conftest.$ac_objext conftest.beam conftest.$ac_ext
17137fi
17138
17139fi
17140
17141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
17142$as_echo "$ac_cv_computed_gotos" >&6; }
17143case "$ac_cv_computed_gotos" in yes*)
17144
17145$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
17146
17147esac
17148
17149case $ac_sys_system in
17150AIX*)
17151
17152$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
17153 ;;
17154esac
17155
17156
17157
17158
17159for h in `(cd $srcdir;echo Python/thread_*.h)`
17160do
17161  THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
17162done
17163
17164
17165SRCDIRS="Parser Objects Python Modules Modules/_io Programs"
17166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
17167$as_echo_n "checking for build directories... " >&6; }
17168for dir in $SRCDIRS; do
17169    if test ! -d $dir; then
17170        mkdir $dir
17171    fi
17172done
17173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17174$as_echo "done" >&6; }
17175
17176# Availability of -O2:
17177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
17178$as_echo_n "checking for -O2... " >&6; }
17179saved_cflags="$CFLAGS"
17180CFLAGS="-O2"
17181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182/* end confdefs.h.  */
17183
17184int
17185main ()
17186{
17187
17188
17189  ;
17190  return 0;
17191}
17192_ACEOF
17193if ac_fn_c_try_compile "$LINENO"; then :
17194  have_O2=yes
17195else
17196  have_O2=no
17197fi
17198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
17200$as_echo "$have_O2" >&6; }
17201CFLAGS="$saved_cflags"
17202
17203# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
17204# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
17206$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
17207saved_cflags="$CFLAGS"
17208CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
17209if test "$have_O2" = no; then
17210    CFLAGS=""
17211fi
17212if test "$cross_compiling" = yes; then :
17213  have_glibc_memmove_bug=undefined
17214else
17215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216/* end confdefs.h.  */
17217
17218#include <stdio.h>
17219#include <stdlib.h>
17220#include <string.h>
17221void foo(void *p, void *q) { memmove(p, q, 19); }
17222int main() {
17223  char a[32] = "123456789000000000";
17224  foo(&a[9], a);
17225  if (strcmp(a, "123456789123456789000000000") != 0)
17226    return 1;
17227  foo(a, &a[9]);
17228  if (strcmp(a, "123456789000000000") != 0)
17229    return 1;
17230  return 0;
17231}
17232
17233_ACEOF
17234if ac_fn_c_try_run "$LINENO"; then :
17235  have_glibc_memmove_bug=no
17236else
17237  have_glibc_memmove_bug=yes
17238fi
17239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17240  conftest.$ac_objext conftest.beam conftest.$ac_ext
17241fi
17242
17243CFLAGS="$saved_cflags"
17244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
17245$as_echo "$have_glibc_memmove_bug" >&6; }
17246if test "$have_glibc_memmove_bug" = yes; then
17247
17248$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
17249
17250fi
17251
17252if test "$have_gcc_asm_for_x87" = yes; then
17253    # Some versions of gcc miscompile inline asm:
17254    # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
17255    # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
17256    case $CC in
17257        *gcc*)
17258            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
17259$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
17260            saved_cflags="$CFLAGS"
17261            CFLAGS="-O2"
17262            if test "$cross_compiling" = yes; then :
17263  have_ipa_pure_const_bug=undefined
17264else
17265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266/* end confdefs.h.  */
17267
17268            __attribute__((noinline)) int
17269            foo(int *p) {
17270              int r;
17271              asm ( "movl \$6, (%1)\n\t"
17272                    "xorl %0, %0\n\t"
17273                    : "=r" (r) : "r" (p) : "memory"
17274              );
17275              return r;
17276            }
17277            int main() {
17278              int p = 8;
17279              if ((foo(&p) ? : p) != 6)
17280                return 1;
17281              return 0;
17282            }
17283
17284_ACEOF
17285if ac_fn_c_try_run "$LINENO"; then :
17286  have_ipa_pure_const_bug=no
17287else
17288  have_ipa_pure_const_bug=yes
17289fi
17290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17291  conftest.$ac_objext conftest.beam conftest.$ac_ext
17292fi
17293
17294            CFLAGS="$saved_cflags"
17295            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
17296$as_echo "$have_ipa_pure_const_bug" >&6; }
17297            if test "$have_ipa_pure_const_bug" = yes; then
17298
17299$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
17300
17301            fi
17302        ;;
17303    esac
17304fi
17305
17306# Check for stdatomic.h
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
17308$as_echo_n "checking for stdatomic.h... " >&6; }
17309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310/* end confdefs.h.  */
17311
17312
17313    #include <stdatomic.h>
17314    atomic_int int_var;
17315    atomic_uintptr_t uintptr_var;
17316    int main() {
17317      atomic_store_explicit(&int_var, 5, memory_order_relaxed);
17318      atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
17319      int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
17320      return 0;
17321    }
17322
17323
17324_ACEOF
17325if ac_fn_c_try_link "$LINENO"; then :
17326  have_stdatomic_h=yes
17327else
17328  have_stdatomic_h=no
17329fi
17330rm -f core conftest.err conftest.$ac_objext \
17331    conftest$ac_exeext conftest.$ac_ext
17332
17333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5
17334$as_echo "$have_stdatomic_h" >&6; }
17335
17336if test "$have_stdatomic_h" = yes; then
17337
17338$as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h
17339
17340fi
17341
17342# Check for GCC >= 4.7 and clang __atomic builtin functions
17343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5
17344$as_echo_n "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; }
17345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346/* end confdefs.h.  */
17347
17348
17349    int val;
17350    int main() {
17351      __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
17352      (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
17353      return 0;
17354    }
17355
17356
17357_ACEOF
17358if ac_fn_c_try_link "$LINENO"; then :
17359  have_builtin_atomic=yes
17360else
17361  have_builtin_atomic=no
17362fi
17363rm -f core conftest.err conftest.$ac_objext \
17364    conftest$ac_exeext conftest.$ac_ext
17365
17366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5
17367$as_echo "$have_builtin_atomic" >&6; }
17368
17369if test "$have_builtin_atomic" = yes; then
17370
17371$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
17372
17373fi
17374
17375# ensurepip option
17376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
17377$as_echo_n "checking for ensurepip... " >&6; }
17378
17379# Check whether --with-ensurepip was given.
17380if test "${with_ensurepip+set}" = set; then :
17381  withval=$with_ensurepip;
17382else
17383  with_ensurepip=upgrade
17384fi
17385
17386case $with_ensurepip in #(
17387  yes|upgrade) :
17388    ENSUREPIP=upgrade ;; #(
17389  install) :
17390    ENSUREPIP=install ;; #(
17391  no) :
17392    ENSUREPIP=no ;; #(
17393  *) :
17394    as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
17395esac
17396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
17397$as_echo "$ENSUREPIP" >&6; }
17398
17399
17400# check if the dirent structure of a d_type field and DT_UNKNOWN is defined
17401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
17402$as_echo_n "checking if the dirent structure of a d_type field... " >&6; }
17403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404/* end confdefs.h.  */
17405
17406
17407    #include <dirent.h>
17408
17409    int main() {
17410      struct dirent entry;
17411      return entry.d_type == DT_UNKNOWN;
17412    }
17413
17414
17415_ACEOF
17416if ac_fn_c_try_link "$LINENO"; then :
17417  have_dirent_d_type=yes
17418else
17419  have_dirent_d_type=no
17420fi
17421rm -f core conftest.err conftest.$ac_objext \
17422    conftest$ac_exeext conftest.$ac_ext
17423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5
17424$as_echo "$have_dirent_d_type" >&6; }
17425
17426if test "$have_dirent_d_type" = yes; then
17427
17428$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
17429
17430fi
17431
17432# check if the Linux getrandom() syscall is available
17433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
17434$as_echo_n "checking for the Linux getrandom() syscall... " >&6; }
17435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436/* end confdefs.h.  */
17437
17438
17439    #include <unistd.h>
17440    #include <sys/syscall.h>
17441    #include <linux/random.h>
17442
17443    int main() {
17444        char buffer[1];
17445        const size_t buflen = sizeof(buffer);
17446        const int flags = GRND_NONBLOCK;
17447        /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
17448        (void)syscall(SYS_getrandom, buffer, buflen, flags);
17449        return 0;
17450    }
17451
17452
17453_ACEOF
17454if ac_fn_c_try_link "$LINENO"; then :
17455  have_getrandom_syscall=yes
17456else
17457  have_getrandom_syscall=no
17458fi
17459rm -f core conftest.err conftest.$ac_objext \
17460    conftest$ac_exeext conftest.$ac_ext
17461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5
17462$as_echo "$have_getrandom_syscall" >&6; }
17463
17464if test "$have_getrandom_syscall" = yes; then
17465
17466$as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
17467
17468fi
17469
17470# check if the getrandom() function is available
17471# the test was written for the Solaris function of <sys/random.h>
17472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
17473$as_echo_n "checking for the getrandom() function... " >&6; }
17474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475/* end confdefs.h.  */
17476
17477
17478    #include <sys/random.h>
17479
17480    int main() {
17481        char buffer[1];
17482        const size_t buflen = sizeof(buffer);
17483        const int flags = 0;
17484        /* ignore the result, Python checks for ENOSYS at runtime */
17485        (void)getrandom(buffer, buflen, flags);
17486        return 0;
17487    }
17488
17489
17490_ACEOF
17491if ac_fn_c_try_link "$LINENO"; then :
17492  have_getrandom=yes
17493else
17494  have_getrandom=no
17495fi
17496rm -f core conftest.err conftest.$ac_objext \
17497    conftest$ac_exeext conftest.$ac_ext
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5
17499$as_echo "$have_getrandom" >&6; }
17500
17501if test "$have_getrandom" = yes; then
17502
17503$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
17504
17505fi
17506
17507# checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
17508# shm_* may only be available if linking against librt
17509save_LIBS="$LIBS"
17510save_includes_default="$ac_includes_default"
17511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
17512$as_echo_n "checking for library containing shm_open... " >&6; }
17513if ${ac_cv_search_shm_open+:} false; then :
17514  $as_echo_n "(cached) " >&6
17515else
17516  ac_func_search_save_LIBS=$LIBS
17517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518/* end confdefs.h.  */
17519
17520/* Override any GCC internal prototype to avoid an error.
17521   Use char because int might match the return type of a GCC
17522   builtin and then its argument prototype would still apply.  */
17523#ifdef __cplusplus
17524extern "C"
17525#endif
17526char shm_open ();
17527int
17528main ()
17529{
17530return shm_open ();
17531  ;
17532  return 0;
17533}
17534_ACEOF
17535for ac_lib in '' rt; do
17536  if test -z "$ac_lib"; then
17537    ac_res="none required"
17538  else
17539    ac_res=-l$ac_lib
17540    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17541  fi
17542  if ac_fn_c_try_link "$LINENO"; then :
17543  ac_cv_search_shm_open=$ac_res
17544fi
17545rm -f core conftest.err conftest.$ac_objext \
17546    conftest$ac_exeext
17547  if ${ac_cv_search_shm_open+:} false; then :
17548  break
17549fi
17550done
17551if ${ac_cv_search_shm_open+:} false; then :
17552
17553else
17554  ac_cv_search_shm_open=no
17555fi
17556rm conftest.$ac_ext
17557LIBS=$ac_func_search_save_LIBS
17558fi
17559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
17560$as_echo "$ac_cv_search_shm_open" >&6; }
17561ac_res=$ac_cv_search_shm_open
17562if test "$ac_res" != no; then :
17563  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17564
17565fi
17566
17567if test "$ac_cv_search_shm_open" = "-lrt"; then
17568
17569$as_echo "#define SHM_NEEDS_LIBRT 1" >>confdefs.h
17570
17571fi
17572for ac_header in sys/mman.h
17573do :
17574  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17575if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17576  cat >>confdefs.h <<_ACEOF
17577#define HAVE_SYS_MMAN_H 1
17578_ACEOF
17579
17580fi
17581
17582done
17583
17584# temporarily override ac_includes_default for AC_CHECK_FUNCS below
17585ac_includes_default="\
17586${ac_includes_default}
17587#ifndef __cplusplus
17588#  ifdef HAVE_SYS_MMAN_H
17589#    include <sys/mman.h>
17590#  endif
17591#endif
17592"
17593for ac_func in shm_open shm_unlink
17594do :
17595  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17596ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17597if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17598  cat >>confdefs.h <<_ACEOF
17599#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17600_ACEOF
17601
17602fi
17603done
17604
17605# we don't want to link with librt always, restore LIBS
17606LIBS="$save_LIBS"
17607ac_includes_default="$save_includes_default"
17608
17609# Check for usable OpenSSL
17610
17611    found=false
17612
17613# Check whether --with-openssl was given.
17614if test "${with_openssl+set}" = set; then :
17615  withval=$with_openssl;
17616            case "$withval" in
17617            "" | y | ye | yes | n | no)
17618            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
17619              ;;
17620            *) ssldirs="$withval"
17621              ;;
17622            esac
17623
17624else
17625
17626            # if pkg-config is installed and openssl has installed a .pc file,
17627            # then use that information and don't search ssldirs
17628            if test -n "$ac_tool_prefix"; then
17629  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17630set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17632$as_echo_n "checking for $ac_word... " >&6; }
17633if ${ac_cv_prog_PKG_CONFIG+:} false; then :
17634  $as_echo_n "(cached) " >&6
17635else
17636  if test -n "$PKG_CONFIG"; then
17637  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17638else
17639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17640for as_dir in $PATH
17641do
17642  IFS=$as_save_IFS
17643  test -z "$as_dir" && as_dir=.
17644    for ac_exec_ext in '' $ac_executable_extensions; do
17645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17646    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17648    break 2
17649  fi
17650done
17651  done
17652IFS=$as_save_IFS
17653
17654fi
17655fi
17656PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17657if test -n "$PKG_CONFIG"; then
17658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17659$as_echo "$PKG_CONFIG" >&6; }
17660else
17661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17662$as_echo "no" >&6; }
17663fi
17664
17665
17666fi
17667if test -z "$ac_cv_prog_PKG_CONFIG"; then
17668  ac_ct_PKG_CONFIG=$PKG_CONFIG
17669  # Extract the first word of "pkg-config", so it can be a program name with args.
17670set dummy pkg-config; ac_word=$2
17671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17672$as_echo_n "checking for $ac_word... " >&6; }
17673if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
17674  $as_echo_n "(cached) " >&6
17675else
17676  if test -n "$ac_ct_PKG_CONFIG"; then
17677  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17678else
17679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17680for as_dir in $PATH
17681do
17682  IFS=$as_save_IFS
17683  test -z "$as_dir" && as_dir=.
17684    for ac_exec_ext in '' $ac_executable_extensions; do
17685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17686    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17688    break 2
17689  fi
17690done
17691  done
17692IFS=$as_save_IFS
17693
17694fi
17695fi
17696ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17697if test -n "$ac_ct_PKG_CONFIG"; then
17698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17699$as_echo "$ac_ct_PKG_CONFIG" >&6; }
17700else
17701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17702$as_echo "no" >&6; }
17703fi
17704
17705  if test "x$ac_ct_PKG_CONFIG" = x; then
17706    PKG_CONFIG=""
17707  else
17708    case $cross_compiling:$ac_tool_warned in
17709yes:)
17710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17712ac_tool_warned=yes ;;
17713esac
17714    PKG_CONFIG=$ac_ct_PKG_CONFIG
17715  fi
17716else
17717  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17718fi
17719
17720            if test x"$PKG_CONFIG" != x""; then
17721                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
17722                if test $? = 0; then
17723                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
17724                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
17725                    found=true
17726                fi
17727            fi
17728
17729            # no such luck; use some default ssldirs
17730            if ! $found; then
17731                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
17732            fi
17733
17734
17735fi
17736
17737
17738
17739    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
17740    # an 'openssl' subdirectory
17741
17742    if ! $found; then
17743        OPENSSL_INCLUDES=
17744        for ssldir in $ssldirs; do
17745            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
17746$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
17747            if test -f "$ssldir/include/openssl/ssl.h"; then
17748                OPENSSL_INCLUDES="-I$ssldir/include"
17749                OPENSSL_LDFLAGS="-L$ssldir/lib"
17750                OPENSSL_LIBS="-lssl -lcrypto"
17751                found=true
17752                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17753$as_echo "yes" >&6; }
17754                break
17755            else
17756                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17757$as_echo "no" >&6; }
17758            fi
17759        done
17760
17761        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
17762        # it will just work!
17763    fi
17764
17765    # try the preprocessor and linker with our new flags,
17766    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
17767
17768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
17769$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
17770    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
17771        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
17772
17773    save_LIBS="$LIBS"
17774    save_LDFLAGS="$LDFLAGS"
17775    save_CPPFLAGS="$CPPFLAGS"
17776    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
17777    LIBS="$OPENSSL_LIBS $LIBS"
17778    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
17779    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780/* end confdefs.h.  */
17781#include <openssl/ssl.h>
17782int
17783main ()
17784{
17785SSL_new(NULL)
17786  ;
17787  return 0;
17788}
17789_ACEOF
17790if ac_fn_c_try_link "$LINENO"; then :
17791
17792            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17793$as_echo "yes" >&6; }
17794            have_openssl=yes
17795
17796else
17797
17798            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799$as_echo "no" >&6; }
17800            have_openssl=no
17801
17802fi
17803rm -f core conftest.err conftest.$ac_objext \
17804    conftest$ac_exeext conftest.$ac_ext
17805    CPPFLAGS="$save_CPPFLAGS"
17806    LDFLAGS="$save_LDFLAGS"
17807    LIBS="$save_LIBS"
17808
17809
17810
17811
17812
17813
17814# rpath to libssl and libcrypto
17815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5
17816$as_echo_n "checking for --with-openssl-rpath... " >&6; }
17817
17818# Check whether --with-openssl-rpath was given.
17819if test "${with_openssl_rpath+set}" = set; then :
17820  withval=$with_openssl_rpath;
17821else
17822  with_openssl_rpath=no
17823
17824fi
17825
17826case $with_openssl_rpath in #(
17827  auto|yes) :
17828    OPENSSL_RPATH=auto ;; #(
17829  no) :
17830    OPENSSL_RPATH= ;; #(
17831  *) :
17832    if test -d "$with_openssl_rpath"; then :
17833  OPENSSL_RPATH="$with_openssl_rpath"
17834else
17835  as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5
17836fi
17837
17838 ;;
17839esac
17840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5
17841$as_echo "$OPENSSL_RPATH" >&6; }
17842
17843
17844# check if OpenSSL libraries work as expected
17845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required APIs" >&5
17846$as_echo_n "checking whether OpenSSL provides required APIs... " >&6; }
17847save_LIBS="$LIBS"
17848save_CFLAGS="$CFLAGS"
17849save_LDFLAGS="$LDFLAGS"
17850LIBS="$LIBS $OPENSSL_LIBS"
17851CFLAGS="$CFLAGS_NODIST $OPENSSL_INCLUDES"
17852LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
17853
17854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855/* end confdefs.h.  */
17856
17857#include <openssl/opensslv.h>
17858#include <openssl/evp.h>
17859#include <openssl/ssl.h>
17860
17861#if OPENSSL_VERSION_NUMBER < 0x10101000L
17862#error "OpenSSL >= 1.1.1 is required"
17863#endif
17864
17865static void keylog_cb(const SSL *ssl, const char *line) {}
17866
17867int
17868main ()
17869{
17870
17871/* SSL APIs */
17872SSL_CTX *ctx = SSL_CTX_new(TLS_client_method());
17873SSL_CTX_set_keylog_callback(ctx, keylog_cb);
17874SSL *ssl = SSL_new(ctx);
17875X509_VERIFY_PARAM *param = SSL_get0_param(ssl);
17876X509_VERIFY_PARAM_set1_host(param, "python.org", 0);
17877SSL_free(ssl);
17878SSL_CTX_free(ctx);
17879
17880/* hashlib APIs */
17881OBJ_nid2sn(NID_md5);
17882OBJ_nid2sn(NID_sha1);
17883OBJ_nid2sn(NID_sha3_512);
17884OBJ_nid2sn(NID_blake2b512);
17885EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0);
17886
17887  ;
17888  return 0;
17889}
17890_ACEOF
17891if ac_fn_c_try_link "$LINENO"; then :
17892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17893$as_echo "yes" >&6; }
17894else
17895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17896$as_echo "no" >&6; }
17897fi
17898rm -f core conftest.err conftest.$ac_objext \
17899    conftest$ac_exeext conftest.$ac_ext
17900LIBS="$save_LIBS"
17901CFLAGS="$save_CFLAGS"
17902LDFLAGS="$save_LDFLAGS"
17903
17904# ssl module default cipher suite string
17905
17906
17907
17908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
17909$as_echo_n "checking for --with-ssl-default-suites... " >&6; }
17910
17911# Check whether --with-ssl-default-suites was given.
17912if test "${with_ssl_default_suites+set}" = set; then :
17913  withval=$with_ssl_default_suites;
17914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17915$as_echo "$withval" >&6; }
17916case "$withval" in
17917    python)
17918        $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
17919
17920        ;;
17921    openssl)
17922        $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
17923
17924        ;;
17925    *)
17926        $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
17927
17928        cat >>confdefs.h <<_ACEOF
17929#define PY_SSL_DEFAULT_CIPHER_STRING "$withval"
17930_ACEOF
17931
17932        ;;
17933esac
17934
17935else
17936
17937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5
17938$as_echo "python" >&6; }
17939$as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
17940
17941
17942fi
17943
17944
17945# builtin hash modules
17946default_hashlib_hashes="md5,sha1,sha256,sha512,sha3,blake2"
17947
17948$as_echo "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h
17949
17950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5
17951$as_echo_n "checking for --with-builtin-hashlib-hashes... " >&6; }
17952
17953# Check whether --with-builtin-hashlib-hashes was given.
17954if test "${with_builtin_hashlib_hashes+set}" = set; then :
17955  withval=$with_builtin_hashlib_hashes;
17956case "$withval" in
17957    yes)
17958        withval=$default_hashlib_hashes
17959        ;;
17960    no)
17961        withval=""
17962        ;;
17963esac
17964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17965$as_echo "$withval" >&6; }
17966cat >>confdefs.h <<_ACEOF
17967#define PY_BUILTIN_HASHLIB_HASHES "$withval"
17968_ACEOF
17969
17970
17971else
17972
17973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_hashlib_hashes" >&5
17974$as_echo "$default_hashlib_hashes" >&6; };
17975cat >>confdefs.h <<_ACEOF
17976#define PY_BUILTIN_HASHLIB_HASHES "$default_hashlib_hashes"
17977_ACEOF
17978
17979
17980fi
17981
17982
17983# --with-experimental-isolated-subinterpreters
17984
17985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-experimental-isolated-subinterpreters" >&5
17986$as_echo_n "checking for --with-experimental-isolated-subinterpreters... " >&6; }
17987
17988# Check whether --with-experimental-isolated-subinterpreters was given.
17989if test "${with_experimental_isolated_subinterpreters+set}" = set; then :
17990  withval=$with_experimental_isolated_subinterpreters;
17991if test "$withval" != no
17992then
17993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17994$as_echo "yes" >&6; };
17995  $as_echo "#define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS 1" >>confdefs.h
17996
17997else
17998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17999$as_echo "no" >&6; };
18000fi
18001else
18002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003$as_echo "no" >&6; }
18004fi
18005
18006
18007# --with-static-libpython
18008STATIC_LIBPYTHON=1
18009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5
18010$as_echo_n "checking for --with-static-libpython... " >&6; }
18011
18012# Check whether --with-static-libpython was given.
18013if test "${with_static_libpython+set}" = set; then :
18014  withval=$with_static_libpython;
18015if test "$withval" = no
18016then
18017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18018$as_echo "no" >&6; };
18019  STATIC_LIBPYTHON=0
18020else
18021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18022$as_echo "yes" >&6; };
18023fi
18024else
18025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18026$as_echo "yes" >&6; }
18027fi
18028
18029LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)'
18030if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then
18031    LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS"
18032    if test "$STATIC_LIBPYTHON" = 1; then
18033        LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS"
18034    fi
18035else
18036    LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS"
18037fi
18038
18039
18040
18041# Check whether to disable test modules. Once set, setup.py will not build
18042# test extension modules and "make install" will not install test suites.
18043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5
18044$as_echo_n "checking for --disable-test-modules... " >&6; }
18045# Check whether --enable-test-modules was given.
18046if test "${enable_test_modules+set}" = set; then :
18047  enableval=$enable_test_modules;
18048fi
18049
18050if test "$enable_test_modules" = no; then
18051    TEST_MODULES=no
18052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18053$as_echo "yes" >&6; }
18054else
18055    TEST_MODULES=yes
18056    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18057$as_echo "no" >&6; }
18058fi
18059
18060
18061
18062# generate output files
18063ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
18064
18065ac_config_files="$ac_config_files Modules/ld_so_aix"
18066
18067cat >confcache <<\_ACEOF
18068# This file is a shell script that caches the results of configure
18069# tests run on this system so they can be shared between configure
18070# scripts and configure runs, see configure's option --config-cache.
18071# It is not useful on other systems.  If it contains results you don't
18072# want to keep, you may remove or edit it.
18073#
18074# config.status only pays attention to the cache file if you give it
18075# the --recheck option to rerun configure.
18076#
18077# `ac_cv_env_foo' variables (set or unset) will be overridden when
18078# loading this file, other *unset* `ac_cv_foo' will be assigned the
18079# following values.
18080
18081_ACEOF
18082
18083# The following way of writing the cache mishandles newlines in values,
18084# but we know of no workaround that is simple, portable, and efficient.
18085# So, we kill variables containing newlines.
18086# Ultrix sh set writes to stderr and can't be redirected directly,
18087# and sets the high bit in the cache file unless we assign to the vars.
18088(
18089  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18090    eval ac_val=\$$ac_var
18091    case $ac_val in #(
18092    *${as_nl}*)
18093      case $ac_var in #(
18094      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18095$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18096      esac
18097      case $ac_var in #(
18098      _ | IFS | as_nl) ;; #(
18099      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18100      *) { eval $ac_var=; unset $ac_var;} ;;
18101      esac ;;
18102    esac
18103  done
18104
18105  (set) 2>&1 |
18106    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18107    *${as_nl}ac_space=\ *)
18108      # `set' does not quote correctly, so add quotes: double-quote
18109      # substitution turns \\\\ into \\, and sed turns \\ into \.
18110      sed -n \
18111	"s/'/'\\\\''/g;
18112	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18113      ;; #(
18114    *)
18115      # `set' quotes correctly as required by POSIX, so do not add quotes.
18116      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18117      ;;
18118    esac |
18119    sort
18120) |
18121  sed '
18122     /^ac_cv_env_/b end
18123     t clear
18124     :clear
18125     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18126     t end
18127     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18128     :end' >>confcache
18129if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18130  if test -w "$cache_file"; then
18131    if test "x$cache_file" != "x/dev/null"; then
18132      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18133$as_echo "$as_me: updating cache $cache_file" >&6;}
18134      if test ! -f "$cache_file" || test -h "$cache_file"; then
18135	cat confcache >"$cache_file"
18136      else
18137        case $cache_file in #(
18138        */* | ?:*)
18139	  mv -f confcache "$cache_file"$$ &&
18140	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18141        *)
18142	  mv -f confcache "$cache_file" ;;
18143	esac
18144      fi
18145    fi
18146  else
18147    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18148$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18149  fi
18150fi
18151rm -f confcache
18152
18153test "x$prefix" = xNONE && prefix=$ac_default_prefix
18154# Let make expand exec_prefix.
18155test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18156
18157DEFS=-DHAVE_CONFIG_H
18158
18159ac_libobjs=
18160ac_ltlibobjs=
18161U=
18162for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18163  # 1. Remove the extension, and $U if already installed.
18164  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18165  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18166  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18167  #    will be set to the directory where LIBOBJS objects are built.
18168  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18169  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18170done
18171LIBOBJS=$ac_libobjs
18172
18173LTLIBOBJS=$ac_ltlibobjs
18174
18175
18176
18177
18178: "${CONFIG_STATUS=./config.status}"
18179ac_write_fail=0
18180ac_clean_files_save=$ac_clean_files
18181ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18182{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18183$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18184as_write_fail=0
18185cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18186#! $SHELL
18187# Generated by $as_me.
18188# Run this file to recreate the current configuration.
18189# Compiler output produced by configure, useful for debugging
18190# configure, is in config.log if it exists.
18191
18192debug=false
18193ac_cs_recheck=false
18194ac_cs_silent=false
18195
18196SHELL=\${CONFIG_SHELL-$SHELL}
18197export SHELL
18198_ASEOF
18199cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18200## -------------------- ##
18201## M4sh Initialization. ##
18202## -------------------- ##
18203
18204# Be more Bourne compatible
18205DUALCASE=1; export DUALCASE # for MKS sh
18206if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18207  emulate sh
18208  NULLCMD=:
18209  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18210  # is contrary to our usage.  Disable this feature.
18211  alias -g '${1+"$@"}'='"$@"'
18212  setopt NO_GLOB_SUBST
18213else
18214  case `(set -o) 2>/dev/null` in #(
18215  *posix*) :
18216    set -o posix ;; #(
18217  *) :
18218     ;;
18219esac
18220fi
18221
18222
18223as_nl='
18224'
18225export as_nl
18226# Printing a long string crashes Solaris 7 /usr/bin/printf.
18227as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18228as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18230# Prefer a ksh shell builtin over an external printf program on Solaris,
18231# but without wasting forks for bash or zsh.
18232if test -z "$BASH_VERSION$ZSH_VERSION" \
18233    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18234  as_echo='print -r --'
18235  as_echo_n='print -rn --'
18236elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18237  as_echo='printf %s\n'
18238  as_echo_n='printf %s'
18239else
18240  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18241    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18242    as_echo_n='/usr/ucb/echo -n'
18243  else
18244    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18245    as_echo_n_body='eval
18246      arg=$1;
18247      case $arg in #(
18248      *"$as_nl"*)
18249	expr "X$arg" : "X\\(.*\\)$as_nl";
18250	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18251      esac;
18252      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18253    '
18254    export as_echo_n_body
18255    as_echo_n='sh -c $as_echo_n_body as_echo'
18256  fi
18257  export as_echo_body
18258  as_echo='sh -c $as_echo_body as_echo'
18259fi
18260
18261# The user is always right.
18262if test "${PATH_SEPARATOR+set}" != set; then
18263  PATH_SEPARATOR=:
18264  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18265    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18266      PATH_SEPARATOR=';'
18267  }
18268fi
18269
18270
18271# IFS
18272# We need space, tab and new line, in precisely that order.  Quoting is
18273# there to prevent editors from complaining about space-tab.
18274# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18275# splitting by setting IFS to empty value.)
18276IFS=" ""	$as_nl"
18277
18278# Find who we are.  Look in the path if we contain no directory separator.
18279as_myself=
18280case $0 in #((
18281  *[\\/]* ) as_myself=$0 ;;
18282  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18283for as_dir in $PATH
18284do
18285  IFS=$as_save_IFS
18286  test -z "$as_dir" && as_dir=.
18287    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18288  done
18289IFS=$as_save_IFS
18290
18291     ;;
18292esac
18293# We did not find ourselves, most probably we were run as `sh COMMAND'
18294# in which case we are not to be found in the path.
18295if test "x$as_myself" = x; then
18296  as_myself=$0
18297fi
18298if test ! -f "$as_myself"; then
18299  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18300  exit 1
18301fi
18302
18303# Unset variables that we do not need and which cause bugs (e.g. in
18304# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18305# suppresses any "Segmentation fault" message there.  '((' could
18306# trigger a bug in pdksh 5.2.14.
18307for as_var in BASH_ENV ENV MAIL MAILPATH
18308do eval test x\${$as_var+set} = xset \
18309  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18310done
18311PS1='$ '
18312PS2='> '
18313PS4='+ '
18314
18315# NLS nuisances.
18316LC_ALL=C
18317export LC_ALL
18318LANGUAGE=C
18319export LANGUAGE
18320
18321# CDPATH.
18322(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18323
18324
18325# as_fn_error STATUS ERROR [LINENO LOG_FD]
18326# ----------------------------------------
18327# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18328# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18329# script with STATUS, using 1 if that was 0.
18330as_fn_error ()
18331{
18332  as_status=$1; test $as_status -eq 0 && as_status=1
18333  if test "$4"; then
18334    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18335    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18336  fi
18337  $as_echo "$as_me: error: $2" >&2
18338  as_fn_exit $as_status
18339} # as_fn_error
18340
18341
18342# as_fn_set_status STATUS
18343# -----------------------
18344# Set $? to STATUS, without forking.
18345as_fn_set_status ()
18346{
18347  return $1
18348} # as_fn_set_status
18349
18350# as_fn_exit STATUS
18351# -----------------
18352# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18353as_fn_exit ()
18354{
18355  set +e
18356  as_fn_set_status $1
18357  exit $1
18358} # as_fn_exit
18359
18360# as_fn_unset VAR
18361# ---------------
18362# Portably unset VAR.
18363as_fn_unset ()
18364{
18365  { eval $1=; unset $1;}
18366}
18367as_unset=as_fn_unset
18368# as_fn_append VAR VALUE
18369# ----------------------
18370# Append the text in VALUE to the end of the definition contained in VAR. Take
18371# advantage of any shell optimizations that allow amortized linear growth over
18372# repeated appends, instead of the typical quadratic growth present in naive
18373# implementations.
18374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18375  eval 'as_fn_append ()
18376  {
18377    eval $1+=\$2
18378  }'
18379else
18380  as_fn_append ()
18381  {
18382    eval $1=\$$1\$2
18383  }
18384fi # as_fn_append
18385
18386# as_fn_arith ARG...
18387# ------------------
18388# Perform arithmetic evaluation on the ARGs, and store the result in the
18389# global $as_val. Take advantage of shells that can avoid forks. The arguments
18390# must be portable across $(()) and expr.
18391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18392  eval 'as_fn_arith ()
18393  {
18394    as_val=$(( $* ))
18395  }'
18396else
18397  as_fn_arith ()
18398  {
18399    as_val=`expr "$@" || test $? -eq 1`
18400  }
18401fi # as_fn_arith
18402
18403
18404if expr a : '\(a\)' >/dev/null 2>&1 &&
18405   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18406  as_expr=expr
18407else
18408  as_expr=false
18409fi
18410
18411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18412  as_basename=basename
18413else
18414  as_basename=false
18415fi
18416
18417if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18418  as_dirname=dirname
18419else
18420  as_dirname=false
18421fi
18422
18423as_me=`$as_basename -- "$0" ||
18424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18425	 X"$0" : 'X\(//\)$' \| \
18426	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18427$as_echo X/"$0" |
18428    sed '/^.*\/\([^/][^/]*\)\/*$/{
18429	    s//\1/
18430	    q
18431	  }
18432	  /^X\/\(\/\/\)$/{
18433	    s//\1/
18434	    q
18435	  }
18436	  /^X\/\(\/\).*/{
18437	    s//\1/
18438	    q
18439	  }
18440	  s/.*/./; q'`
18441
18442# Avoid depending upon Character Ranges.
18443as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18445as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18446as_cr_digits='0123456789'
18447as_cr_alnum=$as_cr_Letters$as_cr_digits
18448
18449ECHO_C= ECHO_N= ECHO_T=
18450case `echo -n x` in #(((((
18451-n*)
18452  case `echo 'xy\c'` in
18453  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18454  xy)  ECHO_C='\c';;
18455  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18456       ECHO_T='	';;
18457  esac;;
18458*)
18459  ECHO_N='-n';;
18460esac
18461
18462rm -f conf$$ conf$$.exe conf$$.file
18463if test -d conf$$.dir; then
18464  rm -f conf$$.dir/conf$$.file
18465else
18466  rm -f conf$$.dir
18467  mkdir conf$$.dir 2>/dev/null
18468fi
18469if (echo >conf$$.file) 2>/dev/null; then
18470  if ln -s conf$$.file conf$$ 2>/dev/null; then
18471    as_ln_s='ln -s'
18472    # ... but there are two gotchas:
18473    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18474    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18475    # In both cases, we have to default to `cp -pR'.
18476    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18477      as_ln_s='cp -pR'
18478  elif ln conf$$.file conf$$ 2>/dev/null; then
18479    as_ln_s=ln
18480  else
18481    as_ln_s='cp -pR'
18482  fi
18483else
18484  as_ln_s='cp -pR'
18485fi
18486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18487rmdir conf$$.dir 2>/dev/null
18488
18489
18490# as_fn_mkdir_p
18491# -------------
18492# Create "$as_dir" as a directory, including parents if necessary.
18493as_fn_mkdir_p ()
18494{
18495
18496  case $as_dir in #(
18497  -*) as_dir=./$as_dir;;
18498  esac
18499  test -d "$as_dir" || eval $as_mkdir_p || {
18500    as_dirs=
18501    while :; do
18502      case $as_dir in #(
18503      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18504      *) as_qdir=$as_dir;;
18505      esac
18506      as_dirs="'$as_qdir' $as_dirs"
18507      as_dir=`$as_dirname -- "$as_dir" ||
18508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18509	 X"$as_dir" : 'X\(//\)[^/]' \| \
18510	 X"$as_dir" : 'X\(//\)$' \| \
18511	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18512$as_echo X"$as_dir" |
18513    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18514	    s//\1/
18515	    q
18516	  }
18517	  /^X\(\/\/\)[^/].*/{
18518	    s//\1/
18519	    q
18520	  }
18521	  /^X\(\/\/\)$/{
18522	    s//\1/
18523	    q
18524	  }
18525	  /^X\(\/\).*/{
18526	    s//\1/
18527	    q
18528	  }
18529	  s/.*/./; q'`
18530      test -d "$as_dir" && break
18531    done
18532    test -z "$as_dirs" || eval "mkdir $as_dirs"
18533  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18534
18535
18536} # as_fn_mkdir_p
18537if mkdir -p . 2>/dev/null; then
18538  as_mkdir_p='mkdir -p "$as_dir"'
18539else
18540  test -d ./-p && rmdir ./-p
18541  as_mkdir_p=false
18542fi
18543
18544
18545# as_fn_executable_p FILE
18546# -----------------------
18547# Test if FILE is an executable regular file.
18548as_fn_executable_p ()
18549{
18550  test -f "$1" && test -x "$1"
18551} # as_fn_executable_p
18552as_test_x='test -x'
18553as_executable_p=as_fn_executable_p
18554
18555# Sed expression to map a string onto a valid CPP name.
18556as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18557
18558# Sed expression to map a string onto a valid variable name.
18559as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18560
18561
18562exec 6>&1
18563## ----------------------------------- ##
18564## Main body of $CONFIG_STATUS script. ##
18565## ----------------------------------- ##
18566_ASEOF
18567test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18568
18569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18570# Save the log message, to keep $0 and so on meaningful, and to
18571# report actual input values of CONFIG_FILES etc. instead of their
18572# values after options handling.
18573ac_log="
18574This file was extended by python $as_me 3.10, which was
18575generated by GNU Autoconf 2.69.  Invocation command line was
18576
18577  CONFIG_FILES    = $CONFIG_FILES
18578  CONFIG_HEADERS  = $CONFIG_HEADERS
18579  CONFIG_LINKS    = $CONFIG_LINKS
18580  CONFIG_COMMANDS = $CONFIG_COMMANDS
18581  $ $0 $@
18582
18583on `(hostname || uname -n) 2>/dev/null | sed 1q`
18584"
18585
18586_ACEOF
18587
18588case $ac_config_files in *"
18589"*) set x $ac_config_files; shift; ac_config_files=$*;;
18590esac
18591
18592case $ac_config_headers in *"
18593"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18594esac
18595
18596
18597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18598# Files that config.status was made for.
18599config_files="$ac_config_files"
18600config_headers="$ac_config_headers"
18601
18602_ACEOF
18603
18604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18605ac_cs_usage="\
18606\`$as_me' instantiates files and other configuration actions
18607from templates according to the current configuration.  Unless the files
18608and actions are specified as TAGs, all are instantiated by default.
18609
18610Usage: $0 [OPTION]... [TAG]...
18611
18612  -h, --help       print this help, then exit
18613  -V, --version    print version number and configuration settings, then exit
18614      --config     print configuration, then exit
18615  -q, --quiet, --silent
18616                   do not print progress messages
18617  -d, --debug      don't remove temporary files
18618      --recheck    update $as_me by reconfiguring in the same conditions
18619      --file=FILE[:TEMPLATE]
18620                   instantiate the configuration file FILE
18621      --header=FILE[:TEMPLATE]
18622                   instantiate the configuration header FILE
18623
18624Configuration files:
18625$config_files
18626
18627Configuration headers:
18628$config_headers
18629
18630Report bugs to <https://bugs.python.org/>."
18631
18632_ACEOF
18633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18634ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18635ac_cs_version="\\
18636python config.status 3.10
18637configured by $0, generated by GNU Autoconf 2.69,
18638  with options \\"\$ac_cs_config\\"
18639
18640Copyright (C) 2012 Free Software Foundation, Inc.
18641This config.status script is free software; the Free Software Foundation
18642gives unlimited permission to copy, distribute and modify it."
18643
18644ac_pwd='$ac_pwd'
18645srcdir='$srcdir'
18646INSTALL='$INSTALL'
18647MKDIR_P='$MKDIR_P'
18648test -n "\$AWK" || AWK=awk
18649_ACEOF
18650
18651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18652# The default lists apply if the user does not specify any file.
18653ac_need_defaults=:
18654while test $# != 0
18655do
18656  case $1 in
18657  --*=?*)
18658    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18659    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18660    ac_shift=:
18661    ;;
18662  --*=)
18663    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18664    ac_optarg=
18665    ac_shift=:
18666    ;;
18667  *)
18668    ac_option=$1
18669    ac_optarg=$2
18670    ac_shift=shift
18671    ;;
18672  esac
18673
18674  case $ac_option in
18675  # Handling of the options.
18676  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18677    ac_cs_recheck=: ;;
18678  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18679    $as_echo "$ac_cs_version"; exit ;;
18680  --config | --confi | --conf | --con | --co | --c )
18681    $as_echo "$ac_cs_config"; exit ;;
18682  --debug | --debu | --deb | --de | --d | -d )
18683    debug=: ;;
18684  --file | --fil | --fi | --f )
18685    $ac_shift
18686    case $ac_optarg in
18687    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18688    '') as_fn_error $? "missing file argument" ;;
18689    esac
18690    as_fn_append CONFIG_FILES " '$ac_optarg'"
18691    ac_need_defaults=false;;
18692  --header | --heade | --head | --hea )
18693    $ac_shift
18694    case $ac_optarg in
18695    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18696    esac
18697    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18698    ac_need_defaults=false;;
18699  --he | --h)
18700    # Conflict between --help and --header
18701    as_fn_error $? "ambiguous option: \`$1'
18702Try \`$0 --help' for more information.";;
18703  --help | --hel | -h )
18704    $as_echo "$ac_cs_usage"; exit ;;
18705  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18706  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18707    ac_cs_silent=: ;;
18708
18709  # This is an error.
18710  -*) as_fn_error $? "unrecognized option: \`$1'
18711Try \`$0 --help' for more information." ;;
18712
18713  *) as_fn_append ac_config_targets " $1"
18714     ac_need_defaults=false ;;
18715
18716  esac
18717  shift
18718done
18719
18720ac_configure_extra_args=
18721
18722if $ac_cs_silent; then
18723  exec 6>/dev/null
18724  ac_configure_extra_args="$ac_configure_extra_args --silent"
18725fi
18726
18727_ACEOF
18728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18729if \$ac_cs_recheck; then
18730  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18731  shift
18732  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18733  CONFIG_SHELL='$SHELL'
18734  export CONFIG_SHELL
18735  exec "\$@"
18736fi
18737
18738_ACEOF
18739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18740exec 5>>config.log
18741{
18742  echo
18743  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18744## Running $as_me. ##
18745_ASBOX
18746  $as_echo "$ac_log"
18747} >&5
18748
18749_ACEOF
18750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18751_ACEOF
18752
18753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18754
18755# Handling of arguments.
18756for ac_config_target in $ac_config_targets
18757do
18758  case $ac_config_target in
18759    "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
18760    "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
18761    "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
18762    "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
18763    "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
18764    "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
18765    "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
18766    "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;;
18767    "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
18768    "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
18769
18770  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18771  esac
18772done
18773
18774
18775# If the user did not use the arguments to specify the items to instantiate,
18776# then the envvar interface is used.  Set only those that are not.
18777# We use the long form for the default assignment because of an extremely
18778# bizarre bug on SunOS 4.1.3.
18779if $ac_need_defaults; then
18780  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18781  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18782fi
18783
18784# Have a temporary directory for convenience.  Make it in the build tree
18785# simply because there is no reason against having it here, and in addition,
18786# creating and moving files from /tmp can sometimes cause problems.
18787# Hook for its removal unless debugging.
18788# Note that there is a small window in which the directory will not be cleaned:
18789# after its creation but before its name has been assigned to `$tmp'.
18790$debug ||
18791{
18792  tmp= ac_tmp=
18793  trap 'exit_status=$?
18794  : "${ac_tmp:=$tmp}"
18795  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18796' 0
18797  trap 'as_fn_exit 1' 1 2 13 15
18798}
18799# Create a (secure) tmp directory for tmp files.
18800
18801{
18802  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18803  test -d "$tmp"
18804}  ||
18805{
18806  tmp=./conf$$-$RANDOM
18807  (umask 077 && mkdir "$tmp")
18808} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18809ac_tmp=$tmp
18810
18811# Set up the scripts for CONFIG_FILES section.
18812# No need to generate them if there are no CONFIG_FILES.
18813# This happens for instance with `./config.status config.h'.
18814if test -n "$CONFIG_FILES"; then
18815
18816
18817ac_cr=`echo X | tr X '\015'`
18818# On cygwin, bash can eat \r inside `` if the user requested igncr.
18819# But we know of no other shell where ac_cr would be empty at this
18820# point, so we can use a bashism as a fallback.
18821if test "x$ac_cr" = x; then
18822  eval ac_cr=\$\'\\r\'
18823fi
18824ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18825if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18826  ac_cs_awk_cr='\\r'
18827else
18828  ac_cs_awk_cr=$ac_cr
18829fi
18830
18831echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18832_ACEOF
18833
18834
18835{
18836  echo "cat >conf$$subs.awk <<_ACEOF" &&
18837  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18838  echo "_ACEOF"
18839} >conf$$subs.sh ||
18840  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18841ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18842ac_delim='%!_!# '
18843for ac_last_try in false false false false false :; do
18844  . ./conf$$subs.sh ||
18845    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18846
18847  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18848  if test $ac_delim_n = $ac_delim_num; then
18849    break
18850  elif $ac_last_try; then
18851    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18852  else
18853    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18854  fi
18855done
18856rm -f conf$$subs.sh
18857
18858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18859cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18860_ACEOF
18861sed -n '
18862h
18863s/^/S["/; s/!.*/"]=/
18864p
18865g
18866s/^[^!]*!//
18867:repl
18868t repl
18869s/'"$ac_delim"'$//
18870t delim
18871:nl
18872h
18873s/\(.\{148\}\)..*/\1/
18874t more1
18875s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18876p
18877n
18878b repl
18879:more1
18880s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18881p
18882g
18883s/.\{148\}//
18884t nl
18885:delim
18886h
18887s/\(.\{148\}\)..*/\1/
18888t more2
18889s/["\\]/\\&/g; s/^/"/; s/$/"/
18890p
18891b
18892:more2
18893s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18894p
18895g
18896s/.\{148\}//
18897t delim
18898' <conf$$subs.awk | sed '
18899/^[^""]/{
18900  N
18901  s/\n//
18902}
18903' >>$CONFIG_STATUS || ac_write_fail=1
18904rm -f conf$$subs.awk
18905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18906_ACAWK
18907cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18908  for (key in S) S_is_set[key] = 1
18909  FS = ""
18910
18911}
18912{
18913  line = $ 0
18914  nfields = split(line, field, "@")
18915  substed = 0
18916  len = length(field[1])
18917  for (i = 2; i < nfields; i++) {
18918    key = field[i]
18919    keylen = length(key)
18920    if (S_is_set[key]) {
18921      value = S[key]
18922      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18923      len += length(value) + length(field[++i])
18924      substed = 1
18925    } else
18926      len += 1 + keylen
18927  }
18928
18929  print line
18930}
18931
18932_ACAWK
18933_ACEOF
18934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18935if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18936  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18937else
18938  cat
18939fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18940  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18941_ACEOF
18942
18943# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18944# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18945# trailing colons and then remove the whole line if VPATH becomes empty
18946# (actually we leave an empty line to preserve line numbers).
18947if test "x$srcdir" = x.; then
18948  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18949h
18950s///
18951s/^/:/
18952s/[	 ]*$/:/
18953s/:\$(srcdir):/:/g
18954s/:\${srcdir}:/:/g
18955s/:@srcdir@:/:/g
18956s/^:*//
18957s/:*$//
18958x
18959s/\(=[	 ]*\).*/\1/
18960G
18961s/\n//
18962s/^[^=]*=[	 ]*$//
18963}'
18964fi
18965
18966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18967fi # test -n "$CONFIG_FILES"
18968
18969# Set up the scripts for CONFIG_HEADERS section.
18970# No need to generate them if there are no CONFIG_HEADERS.
18971# This happens for instance with `./config.status Makefile'.
18972if test -n "$CONFIG_HEADERS"; then
18973cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18974BEGIN {
18975_ACEOF
18976
18977# Transform confdefs.h into an awk script `defines.awk', embedded as
18978# here-document in config.status, that substitutes the proper values into
18979# config.h.in to produce config.h.
18980
18981# Create a delimiter string that does not exist in confdefs.h, to ease
18982# handling of long lines.
18983ac_delim='%!_!# '
18984for ac_last_try in false false :; do
18985  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18986  if test -z "$ac_tt"; then
18987    break
18988  elif $ac_last_try; then
18989    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18990  else
18991    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18992  fi
18993done
18994
18995# For the awk script, D is an array of macro values keyed by name,
18996# likewise P contains macro parameters if any.  Preserve backslash
18997# newline sequences.
18998
18999ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19000sed -n '
19001s/.\{148\}/&'"$ac_delim"'/g
19002t rset
19003:rset
19004s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19005t def
19006d
19007:def
19008s/\\$//
19009t bsnl
19010s/["\\]/\\&/g
19011s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19012D["\1"]=" \3"/p
19013s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19014d
19015:bsnl
19016s/["\\]/\\&/g
19017s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19018D["\1"]=" \3\\\\\\n"\\/p
19019t cont
19020s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19021t cont
19022d
19023:cont
19024n
19025s/.\{148\}/&'"$ac_delim"'/g
19026t clear
19027:clear
19028s/\\$//
19029t bsnlc
19030s/["\\]/\\&/g; s/^/"/; s/$/"/p
19031d
19032:bsnlc
19033s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19034b cont
19035' <confdefs.h | sed '
19036s/'"$ac_delim"'/"\\\
19037"/g' >>$CONFIG_STATUS || ac_write_fail=1
19038
19039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19040  for (key in D) D_is_set[key] = 1
19041  FS = ""
19042}
19043/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19044  line = \$ 0
19045  split(line, arg, " ")
19046  if (arg[1] == "#") {
19047    defundef = arg[2]
19048    mac1 = arg[3]
19049  } else {
19050    defundef = substr(arg[1], 2)
19051    mac1 = arg[2]
19052  }
19053  split(mac1, mac2, "(") #)
19054  macro = mac2[1]
19055  prefix = substr(line, 1, index(line, defundef) - 1)
19056  if (D_is_set[macro]) {
19057    # Preserve the white space surrounding the "#".
19058    print prefix "define", macro P[macro] D[macro]
19059    next
19060  } else {
19061    # Replace #undef with comments.  This is necessary, for example,
19062    # in the case of _POSIX_SOURCE, which is predefined and required
19063    # on some systems where configure will not decide to define it.
19064    if (defundef == "undef") {
19065      print "/*", prefix defundef, macro, "*/"
19066      next
19067    }
19068  }
19069}
19070{ print }
19071_ACAWK
19072_ACEOF
19073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19074  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19075fi # test -n "$CONFIG_HEADERS"
19076
19077
19078eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
19079shift
19080for ac_tag
19081do
19082  case $ac_tag in
19083  :[FHLC]) ac_mode=$ac_tag; continue;;
19084  esac
19085  case $ac_mode$ac_tag in
19086  :[FHL]*:*);;
19087  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19088  :[FH]-) ac_tag=-:-;;
19089  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19090  esac
19091  ac_save_IFS=$IFS
19092  IFS=:
19093  set x $ac_tag
19094  IFS=$ac_save_IFS
19095  shift
19096  ac_file=$1
19097  shift
19098
19099  case $ac_mode in
19100  :L) ac_source=$1;;
19101  :[FH])
19102    ac_file_inputs=
19103    for ac_f
19104    do
19105      case $ac_f in
19106      -) ac_f="$ac_tmp/stdin";;
19107      *) # Look for the file first in the build tree, then in the source tree
19108	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19109	 # because $ac_f cannot contain `:'.
19110	 test -f "$ac_f" ||
19111	   case $ac_f in
19112	   [\\/$]*) false;;
19113	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19114	   esac ||
19115	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19116      esac
19117      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19118      as_fn_append ac_file_inputs " '$ac_f'"
19119    done
19120
19121    # Let's still pretend it is `configure' which instantiates (i.e., don't
19122    # use $as_me), people would be surprised to read:
19123    #    /* config.h.  Generated by config.status.  */
19124    configure_input='Generated from '`
19125	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19126	`' by configure.'
19127    if test x"$ac_file" != x-; then
19128      configure_input="$ac_file.  $configure_input"
19129      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19130$as_echo "$as_me: creating $ac_file" >&6;}
19131    fi
19132    # Neutralize special characters interpreted by sed in replacement strings.
19133    case $configure_input in #(
19134    *\&* | *\|* | *\\* )
19135       ac_sed_conf_input=`$as_echo "$configure_input" |
19136       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19137    *) ac_sed_conf_input=$configure_input;;
19138    esac
19139
19140    case $ac_tag in
19141    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19142      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19143    esac
19144    ;;
19145  esac
19146
19147  ac_dir=`$as_dirname -- "$ac_file" ||
19148$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19149	 X"$ac_file" : 'X\(//\)[^/]' \| \
19150	 X"$ac_file" : 'X\(//\)$' \| \
19151	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19152$as_echo X"$ac_file" |
19153    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19154	    s//\1/
19155	    q
19156	  }
19157	  /^X\(\/\/\)[^/].*/{
19158	    s//\1/
19159	    q
19160	  }
19161	  /^X\(\/\/\)$/{
19162	    s//\1/
19163	    q
19164	  }
19165	  /^X\(\/\).*/{
19166	    s//\1/
19167	    q
19168	  }
19169	  s/.*/./; q'`
19170  as_dir="$ac_dir"; as_fn_mkdir_p
19171  ac_builddir=.
19172
19173case "$ac_dir" in
19174.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19175*)
19176  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19177  # A ".." for each directory in $ac_dir_suffix.
19178  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19179  case $ac_top_builddir_sub in
19180  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19181  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19182  esac ;;
19183esac
19184ac_abs_top_builddir=$ac_pwd
19185ac_abs_builddir=$ac_pwd$ac_dir_suffix
19186# for backward compatibility:
19187ac_top_builddir=$ac_top_build_prefix
19188
19189case $srcdir in
19190  .)  # We are building in place.
19191    ac_srcdir=.
19192    ac_top_srcdir=$ac_top_builddir_sub
19193    ac_abs_top_srcdir=$ac_pwd ;;
19194  [\\/]* | ?:[\\/]* )  # Absolute name.
19195    ac_srcdir=$srcdir$ac_dir_suffix;
19196    ac_top_srcdir=$srcdir
19197    ac_abs_top_srcdir=$srcdir ;;
19198  *) # Relative name.
19199    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19200    ac_top_srcdir=$ac_top_build_prefix$srcdir
19201    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19202esac
19203ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19204
19205
19206  case $ac_mode in
19207  :F)
19208  #
19209  # CONFIG_FILE
19210  #
19211
19212  case $INSTALL in
19213  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19214  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19215  esac
19216  ac_MKDIR_P=$MKDIR_P
19217  case $MKDIR_P in
19218  [\\/$]* | ?:[\\/]* ) ;;
19219  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19220  esac
19221_ACEOF
19222
19223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19224# If the template does not know about datarootdir, expand it.
19225# FIXME: This hack should be removed a few years after 2.60.
19226ac_datarootdir_hack=; ac_datarootdir_seen=
19227ac_sed_dataroot='
19228/datarootdir/ {
19229  p
19230  q
19231}
19232/@datadir@/p
19233/@docdir@/p
19234/@infodir@/p
19235/@localedir@/p
19236/@mandir@/p'
19237case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19238*datarootdir*) ac_datarootdir_seen=yes;;
19239*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19240  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19241$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19242_ACEOF
19243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19244  ac_datarootdir_hack='
19245  s&@datadir@&$datadir&g
19246  s&@docdir@&$docdir&g
19247  s&@infodir@&$infodir&g
19248  s&@localedir@&$localedir&g
19249  s&@mandir@&$mandir&g
19250  s&\\\${datarootdir}&$datarootdir&g' ;;
19251esac
19252_ACEOF
19253
19254# Neutralize VPATH when `$srcdir' = `.'.
19255# Shell code in configure.ac might set extrasub.
19256# FIXME: do we really want to maintain this feature?
19257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19258ac_sed_extra="$ac_vpsub
19259$extrasub
19260_ACEOF
19261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19262:t
19263/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19264s|@configure_input@|$ac_sed_conf_input|;t t
19265s&@top_builddir@&$ac_top_builddir_sub&;t t
19266s&@top_build_prefix@&$ac_top_build_prefix&;t t
19267s&@srcdir@&$ac_srcdir&;t t
19268s&@abs_srcdir@&$ac_abs_srcdir&;t t
19269s&@top_srcdir@&$ac_top_srcdir&;t t
19270s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19271s&@builddir@&$ac_builddir&;t t
19272s&@abs_builddir@&$ac_abs_builddir&;t t
19273s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19274s&@INSTALL@&$ac_INSTALL&;t t
19275s&@MKDIR_P@&$ac_MKDIR_P&;t t
19276$ac_datarootdir_hack
19277"
19278eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19279  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19280
19281test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19282  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19283  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19284      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19285  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19286which seems to be undefined.  Please make sure it is defined" >&5
19287$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19288which seems to be undefined.  Please make sure it is defined" >&2;}
19289
19290  rm -f "$ac_tmp/stdin"
19291  case $ac_file in
19292  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19293  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19294  esac \
19295  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19296 ;;
19297  :H)
19298  #
19299  # CONFIG_HEADER
19300  #
19301  if test x"$ac_file" != x-; then
19302    {
19303      $as_echo "/* $configure_input  */" \
19304      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19305    } >"$ac_tmp/config.h" \
19306      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19307    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19308      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19309$as_echo "$as_me: $ac_file is unchanged" >&6;}
19310    else
19311      rm -f "$ac_file"
19312      mv "$ac_tmp/config.h" "$ac_file" \
19313	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19314    fi
19315  else
19316    $as_echo "/* $configure_input  */" \
19317      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19318      || as_fn_error $? "could not create -" "$LINENO" 5
19319  fi
19320 ;;
19321
19322
19323  esac
19324
19325
19326  case $ac_file$ac_mode in
19327    "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
19328
19329  esac
19330done # for ac_tag
19331
19332
19333as_fn_exit 0
19334_ACEOF
19335ac_clean_files=$ac_clean_files_save
19336
19337test $ac_write_fail = 0 ||
19338  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19339
19340
19341# configure is writing to config.log, and then calls config.status.
19342# config.status does its own redirection, appending to config.log.
19343# Unfortunately, on DOS this fails, as config.log is still kept open
19344# by configure, so config.status won't be able to write to it; its
19345# output is simply discarded.  So we exec the FD to /dev/null,
19346# effectively closing config.log, so it can be properly (re)opened and
19347# appended to by config.status.  When coming back to configure, we
19348# need to make the FD available again.
19349if test "$no_create" != yes; then
19350  ac_cs_success=:
19351  ac_config_status_args=
19352  test "$silent" = yes &&
19353    ac_config_status_args="$ac_config_status_args --quiet"
19354  exec 5>/dev/null
19355  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19356  exec 5>>config.log
19357  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19358  # would make configure fail if this is the last instruction.
19359  $ac_cs_success || as_fn_exit 1
19360fi
19361if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19362  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19363$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19364fi
19365
19366
19367echo "creating Modules/Setup.local" >&6
19368if test ! -f Modules/Setup.local
19369then
19370	echo "# Edit this file for local setup changes" >Modules/Setup.local
19371fi
19372
19373echo "creating Makefile" >&6
19374$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
19375			-s Modules \
19376			Modules/Setup.local $srcdir/Modules/Setup
19377mv config.c Modules
19378
19379if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
19380    echo "" >&6
19381    echo "" >&6
19382    echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6
19383    echo "please run ./configure --enable-optimizations" >&6
19384    echo "" >&6
19385    echo "" >&6
19386fi
19387