Home | History | Annotate | Download | only in cpython3
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for python 3.7.
      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
     18 DUALCASE=1; export DUALCASE # for MKS sh
     19 if 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
     26 else
     27   case `(set -o) 2>/dev/null` in #(
     28   *posix*) :
     29     set -o posix ;; #(
     30   *) :
     31      ;;
     32 esac
     33 fi
     34 
     35 
     36 as_nl='
     37 '
     38 export as_nl
     39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     42 as_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.
     45 if 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 --'
     49 elif (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'
     52 else
     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'
     72 fi
     73 
     74 # The user is always right.
     75 if 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   }
     81 fi
     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.)
     89 IFS=" ""	$as_nl"
     90 
     91 # Find who we are.  Look in the path if we contain no directory separator.
     92 as_myself=
     93 case $0 in #((
     94   *[\\/]* ) as_myself=$0 ;;
     95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     96 for as_dir in $PATH
     97 do
     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
    102 IFS=$as_save_IFS
    103 
    104      ;;
    105 esac
    106 # We did not find ourselves, most probably we were run as `sh COMMAND'
    107 # in which case we are not to be found in the path.
    108 if test "x$as_myself" = x; then
    109   as_myself=$0
    110 fi
    111 if test ! -f "$as_myself"; then
    112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    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.
    120 for as_var in BASH_ENV ENV MAIL MAILPATH
    121 do eval test x\${$as_var+set} = xset \
    122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    123 done
    124 PS1='$ '
    125 PS2='> '
    126 PS4='+ '
    127 
    128 # NLS nuisances.
    129 LC_ALL=C
    130 export LC_ALL
    131 LANGUAGE=C
    132 export 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.
    145 BASH_ENV=/dev/null
    146 ENV=/dev/null
    147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    148 case $- in # ((((
    149   *v*x* | *x*v* ) as_opts=-vx ;;
    150   *v* ) as_opts=-v ;;
    151   *x* ) as_opts=-x ;;
    152   * ) as_opts= ;;
    153 esac
    154 exec $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
    158 as_fn_exit 255
    159   fi
    160   # We don't want this to propagate to other subprocesses.
    161           { _as_can_reexec=; unset _as_can_reexec;}
    162 if 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
    170 else
    171   case \`(set -o) 2>/dev/null\` in #(
    172   *posix*) :
    173     set -o posix ;; #(
    174   *) :
    175      ;;
    176 esac
    177 fi
    178 "
    179   as_required="as_fn_return () { (exit \$1); }
    180 as_fn_success () { as_fn_return 0; }
    181 as_fn_failure () { as_fn_return 1; }
    182 as_fn_ret_success () { return 0; }
    183 as_fn_ret_failure () { return 1; }
    184 
    185 exitcode=0
    186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    191 
    192 else
    193   exitcode=1; echo positional parameters were not saved.
    194 fi
    195 test x\$exitcode = x0 || exit 1
    196 test -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
    201 test \$(( 1 + 1 )) = 2 || exit 1"
    202   if (eval "$as_required") 2>/dev/null; then :
    203   as_have_required=yes
    204 else
    205   as_have_required=no
    206 fi
    207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    208 
    209 else
    210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    211 as_found=false
    212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    213 do
    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
    227 fi
    228 fi
    229 	   done;;
    230        esac
    231   as_found=false
    232 done
    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
    236 fi; }
    237 IFS=$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.
    246 BASH_ENV=/dev/null
    247 ENV=/dev/null
    248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    249 case $- in # ((((
    250   *v*x* | *x*v* ) as_opts=-vx ;;
    251   *v* ) as_opts=-v ;;
    252   *x* ) as_opts=-x ;;
    253   * ) as_opts= ;;
    254 esac
    255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    256 # Admittedly, this is quite paranoid, since all the known shells bail
    257 # out after a failed `exec'.
    258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    259 exit 255
    260 fi
    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 (at] 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
    276 fi
    277 fi
    278 fi
    279 SHELL=${CONFIG_SHELL-/bin/sh}
    280 export SHELL
    281 # Unset more variables known to interfere with behavior of common tools.
    282 CLICOLOR_FORCE= GREP_OPTIONS=
    283 unset CLICOLOR_FORCE GREP_OPTIONS
    284 
    285 ## --------------------- ##
    286 ## M4sh Shell Functions. ##
    287 ## --------------------- ##
    288 # as_fn_unset VAR
    289 # ---------------
    290 # Portably unset VAR.
    291 as_fn_unset ()
    292 {
    293   { eval $1=; unset $1;}
    294 }
    295 as_unset=as_fn_unset
    296 
    297 # as_fn_set_status STATUS
    298 # -----------------------
    299 # Set $? to STATUS, without forking.
    300 as_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.
    308 as_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.
    318 as_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.
    366 as_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.
    376 if (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   }'
    381 else
    382   as_fn_append ()
    383   {
    384     eval $1=\$$1\$2
    385   }
    386 fi # 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.
    393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    394   eval 'as_fn_arith ()
    395   {
    396     as_val=$(( $* ))
    397   }'
    398 else
    399   as_fn_arith ()
    400   {
    401     as_val=`expr "$@" || test $? -eq 1`
    402   }
    403 fi # 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.
    411 as_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 
    422 if expr a : '\(a\)' >/dev/null 2>&1 &&
    423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    424   as_expr=expr
    425 else
    426   as_expr=false
    427 fi
    428 
    429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    430   as_basename=basename
    431 else
    432   as_basename=false
    433 fi
    434 
    435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    436   as_dirname=dirname
    437 else
    438   as_dirname=false
    439 fi
    440 
    441 as_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.
    461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    464 as_cr_digits='0123456789'
    465 as_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 
    503 ECHO_C= ECHO_N= ECHO_T=
    504 case `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';;
    514 esac
    515 
    516 rm -f conf$$ conf$$.exe conf$$.file
    517 if test -d conf$$.dir; then
    518   rm -f conf$$.dir/conf$$.file
    519 else
    520   rm -f conf$$.dir
    521   mkdir conf$$.dir 2>/dev/null
    522 fi
    523 if (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
    537 else
    538   as_ln_s='cp -pR'
    539 fi
    540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    541 rmdir conf$$.dir 2>/dev/null
    542 
    543 if mkdir -p . 2>/dev/null; then
    544   as_mkdir_p='mkdir -p "$as_dir"'
    545 else
    546   test -d ./-p && rmdir ./-p
    547   as_mkdir_p=false
    548 fi
    549 
    550 as_test_x='test -x'
    551 as_executable_p=as_fn_executable_p
    552 
    553 # Sed expression to map a string onto a valid CPP name.
    554 as_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.
    557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    558 
    559 
    560 test -n "$DJDIR" || exec 7<&0 </dev/null
    561 exec 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.
    566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    567 
    568 #
    569 # Initializations.
    570 #
    571 ac_default_prefix=/usr/local
    572 ac_clean_files=
    573 ac_config_libobj_dir=.
    574 LIBOBJS=
    575 cross_compiling=no
    576 subdirs=
    577 MFLAGS=
    578 MAKEFLAGS=
    579 
    580 # Identity of this package.
    581 PACKAGE_NAME='python'
    582 PACKAGE_TARNAME='python'
    583 PACKAGE_VERSION='3.7'
    584 PACKAGE_STRING='python 3.7'
    585 PACKAGE_BUGREPORT='https://bugs.python.org/'
    586 PACKAGE_URL=''
    587 
    588 ac_unique_file="Include/object.h"
    589 # Factoring default headers for most tests.
    590 ac_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 
    625 ac_subst_vars='LTLIBOBJS
    626 OPENSSL_LDFLAGS
    627 OPENSSL_LIBS
    628 OPENSSL_INCLUDES
    629 ENSUREPIP
    630 SRCDIRS
    631 THREADHEADERS
    632 LIBPL
    633 PY_ENABLE_SHARED
    634 EXT_SUFFIX
    635 SOABI
    636 LIBC
    637 LIBM
    638 HAVE_GETHOSTBYNAME
    639 HAVE_GETHOSTBYNAME_R
    640 HAVE_GETHOSTBYNAME_R_3_ARG
    641 HAVE_GETHOSTBYNAME_R_5_ARG
    642 HAVE_GETHOSTBYNAME_R_6_ARG
    643 LIBOBJS
    644 TRUE
    645 MACHDEP_OBJS
    646 DYNLOADFILE
    647 DLINCLDIR
    648 DTRACE_OBJS
    649 DTRACE_HEADERS
    650 DFLAGS
    651 DTRACE
    652 LDLAST
    653 TCLTK_LIBS
    654 TCLTK_INCLUDES
    655 LIBFFI_INCLUDEDIR
    656 PKG_CONFIG_LIBDIR
    657 PKG_CONFIG_PATH
    658 PKG_CONFIG
    659 SHLIBS
    660 CFLAGSFORSHARED
    661 LINKFORSHARED
    662 CCSHARED
    663 BLDSHARED
    664 LDCXXSHARED
    665 LDSHARED
    666 SHLIB_SUFFIX
    667 LIBTOOL_CRUFT
    668 OTHER_LIBTOOL_OPT
    669 UNIVERSAL_ARCH_FLAGS
    670 LDFLAGS_NODIST
    671 CFLAGS_NODIST
    672 BASECFLAGS
    673 CFLAGS_ALIASING
    674 OPT
    675 LLVM_PROF_FOUND
    676 LLVM_PROFDATA
    677 LLVM_PROF_ERR
    678 LLVM_PROF_FILE
    679 LLVM_PROF_MERGER
    680 PGO_PROF_USE_FLAG
    681 PGO_PROF_GEN_FLAG
    682 LLVM_AR_FOUND
    683 target_os
    684 target_vendor
    685 target_cpu
    686 target
    687 LLVM_AR
    688 DEF_MAKE_RULE
    689 DEF_MAKE_ALL_RULE
    690 ABIFLAGS
    691 LN
    692 MKDIR_P
    693 INSTALL_DATA
    694 INSTALL_SCRIPT
    695 INSTALL_PROGRAM
    696 ac_ct_READELF
    697 READELF
    698 ARFLAGS
    699 ac_ct_AR
    700 AR
    701 GNULD
    702 LINKCC
    703 LDVERSION
    704 RUNSHARED
    705 INSTSONAME
    706 LDLIBRARYDIR
    707 PY3LIBRARY
    708 BLDLIBRARY
    709 DLLLIBRARY
    710 LDLIBRARY
    711 LIBRARY
    712 BUILDEXEEXT
    713 EGREP
    714 NO_AS_NEEDED
    715 MULTIARCH_CPPFLAGS
    716 PLATFORM_TRIPLET
    717 MULTIARCH
    718 ac_ct_CXX
    719 MAINCC
    720 CXX
    721 SED
    722 GREP
    723 CPP
    724 OBJEXT
    725 EXEEXT
    726 ac_ct_CC
    727 CPPFLAGS
    728 LDFLAGS
    729 CFLAGS
    730 CC
    731 EXPORT_MACOSX_DEPLOYMENT_TARGET
    732 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
    733 _PYTHON_HOST_PLATFORM
    734 MACHDEP
    735 FRAMEWORKINSTALLAPPSPREFIX
    736 FRAMEWORKUNIXTOOLSPREFIX
    737 FRAMEWORKPYTHONW
    738 FRAMEWORKALTINSTALLLAST
    739 FRAMEWORKALTINSTALLFIRST
    740 FRAMEWORKINSTALLLAST
    741 FRAMEWORKINSTALLFIRST
    742 PYTHONFRAMEWORKINSTALLDIR
    743 PYTHONFRAMEWORKPREFIX
    744 PYTHONFRAMEWORKDIR
    745 PYTHONFRAMEWORKIDENTIFIER
    746 PYTHONFRAMEWORK
    747 LIPO_32BIT_FLAGS
    748 ARCH_RUN_32BIT
    749 UNIVERSALSDK
    750 CONFIG_ARGS
    751 SOVERSION
    752 VERSION
    753 PYTHON_FOR_BUILD
    754 PYTHON_FOR_REGEN
    755 host_os
    756 host_vendor
    757 host_cpu
    758 host
    759 build_os
    760 build_vendor
    761 build_cpu
    762 build
    763 HAS_GIT
    764 GITBRANCH
    765 GITTAG
    766 GITVERSION
    767 BASECPPFLAGS
    768 target_alias
    769 host_alias
    770 build_alias
    771 LIBS
    772 ECHO_T
    773 ECHO_N
    774 ECHO_C
    775 DEFS
    776 mandir
    777 localedir
    778 libdir
    779 psdir
    780 pdfdir
    781 dvidir
    782 htmldir
    783 infodir
    784 docdir
    785 oldincludedir
    786 includedir
    787 runstatedir
    788 localstatedir
    789 sharedstatedir
    790 sysconfdir
    791 datadir
    792 datarootdir
    793 libexecdir
    794 sbindir
    795 bindir
    796 program_transform_name
    797 prefix
    798 exec_prefix
    799 PACKAGE_URL
    800 PACKAGE_BUGREPORT
    801 PACKAGE_STRING
    802 PACKAGE_VERSION
    803 PACKAGE_TARNAME
    804 PACKAGE_NAME
    805 PATH_SEPARATOR
    806 SHELL'
    807 ac_subst_files=''
    808 ac_user_opts='
    809 enable_option_checking
    810 enable_universalsdk
    811 with_universal_archs
    812 with_framework_name
    813 enable_framework
    814 with_gcc
    815 with_icc
    816 with_cxx_main
    817 with_suffix
    818 enable_shared
    819 enable_profiling
    820 with_pydebug
    821 with_assertions
    822 enable_optimizations
    823 with_lto
    824 with_hash_algorithm
    825 with_address_sanitizer
    826 with_memory_sanitizer
    827 with_undefined_behavior_sanitizer
    828 with_libs
    829 with_system_expat
    830 with_system_ffi
    831 with_system_libmpdec
    832 enable_loadable_sqlite_extensions
    833 with_tcltk_includes
    834 with_tcltk_libs
    835 with_dbmliborder
    836 enable_ipv6
    837 with_doc_strings
    838 with_pymalloc
    839 with_c_locale_coercion
    840 with_valgrind
    841 with_dtrace
    842 with_libm
    843 with_libc
    844 enable_big_digits
    845 with_computed_gotos
    846 with_ensurepip
    847 with_openssl
    848 with_ssl_default_suites
    849 '
    850       ac_precious_vars='build_alias
    851 host_alias
    852 target_alias
    853 MACHDEP
    854 CC
    855 CFLAGS
    856 LDFLAGS
    857 LIBS
    858 CPPFLAGS
    859 CPP
    860 PKG_CONFIG
    861 PKG_CONFIG_PATH
    862 PKG_CONFIG_LIBDIR'
    863 
    864 
    865 # Initialize some variables set by options.
    866 ac_init_help=
    867 ac_init_version=false
    868 ac_unrecognized_opts=
    869 ac_unrecognized_sep=
    870 # The variables have the same names as the options, with
    871 # dashes changed to underlines.
    872 cache_file=/dev/null
    873 exec_prefix=NONE
    874 no_create=
    875 no_recursion=
    876 prefix=NONE
    877 program_prefix=NONE
    878 program_suffix=NONE
    879 program_transform_name=s,x,x,
    880 silent=
    881 site=
    882 srcdir=
    883 verbose=
    884 x_includes=NONE
    885 x_libraries=NONE
    886 
    887 # Installation directory options.
    888 # These are left unexpanded so users can "make install exec_prefix=/foo"
    889 # and all the variables that are supposed to be based on exec_prefix
    890 # by default will actually change.
    891 # Use braces instead of parens because sh, perl, etc. also accept them.
    892 # (The list follows the same order as the GNU Coding Standards.)
    893 bindir='${exec_prefix}/bin'
    894 sbindir='${exec_prefix}/sbin'
    895 libexecdir='${exec_prefix}/libexec'
    896 datarootdir='${prefix}/share'
    897 datadir='${datarootdir}'
    898 sysconfdir='${prefix}/etc'
    899 sharedstatedir='${prefix}/com'
    900 localstatedir='${prefix}/var'
    901 runstatedir='${localstatedir}/run'
    902 includedir='${prefix}/include'
    903 oldincludedir='/usr/include'
    904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    905 infodir='${datarootdir}/info'
    906 htmldir='${docdir}'
    907 dvidir='${docdir}'
    908 pdfdir='${docdir}'
    909 psdir='${docdir}'
    910 libdir='${exec_prefix}/lib'
    911 localedir='${datarootdir}/locale'
    912 mandir='${datarootdir}/man'
    913 
    914 ac_prev=
    915 ac_dashdash=
    916 for ac_option
    917 do
    918   # If the previous option needs an argument, assign it.
    919   if test -n "$ac_prev"; then
    920     eval $ac_prev=\$ac_option
    921     ac_prev=
    922     continue
    923   fi
    924 
    925   case $ac_option in
    926   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    927   *=)   ac_optarg= ;;
    928   *)    ac_optarg=yes ;;
    929   esac
    930 
    931   # Accept the important Cygnus configure options, so we can diagnose typos.
    932 
    933   case $ac_dashdash$ac_option in
    934   --)
    935     ac_dashdash=yes ;;
    936 
    937   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    938     ac_prev=bindir ;;
    939   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    940     bindir=$ac_optarg ;;
    941 
    942   -build | --build | --buil | --bui | --bu)
    943     ac_prev=build_alias ;;
    944   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    945     build_alias=$ac_optarg ;;
    946 
    947   -cache-file | --cache-file | --cache-fil | --cache-fi \
    948   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    949     ac_prev=cache_file ;;
    950   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    951   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    952     cache_file=$ac_optarg ;;
    953 
    954   --config-cache | -C)
    955     cache_file=config.cache ;;
    956 
    957   -datadir | --datadir | --datadi | --datad)
    958     ac_prev=datadir ;;
    959   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    960     datadir=$ac_optarg ;;
    961 
    962   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    963   | --dataroo | --dataro | --datar)
    964     ac_prev=datarootdir ;;
    965   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    966   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    967     datarootdir=$ac_optarg ;;
    968 
    969   -disable-* | --disable-*)
    970     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    971     # Reject names that are not valid shell variable names.
    972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    973       as_fn_error $? "invalid feature name: $ac_useropt"
    974     ac_useropt_orig=$ac_useropt
    975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    976     case $ac_user_opts in
    977       *"
    978 "enable_$ac_useropt"
    979 "*) ;;
    980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    981 	 ac_unrecognized_sep=', ';;
    982     esac
    983     eval enable_$ac_useropt=no ;;
    984 
    985   -docdir | --docdir | --docdi | --doc | --do)
    986     ac_prev=docdir ;;
    987   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    988     docdir=$ac_optarg ;;
    989 
    990   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    991     ac_prev=dvidir ;;
    992   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    993     dvidir=$ac_optarg ;;
    994 
    995   -enable-* | --enable-*)
    996     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    997     # Reject names that are not valid shell variable names.
    998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    999       as_fn_error $? "invalid feature name: $ac_useropt"
   1000     ac_useropt_orig=$ac_useropt
   1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1002     case $ac_user_opts in
   1003       *"
   1004 "enable_$ac_useropt"
   1005 "*) ;;
   1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1007 	 ac_unrecognized_sep=', ';;
   1008     esac
   1009     eval enable_$ac_useropt=\$ac_optarg ;;
   1010 
   1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1013   | --exec | --exe | --ex)
   1014     ac_prev=exec_prefix ;;
   1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1017   | --exec=* | --exe=* | --ex=*)
   1018     exec_prefix=$ac_optarg ;;
   1019 
   1020   -gas | --gas | --ga | --g)
   1021     # Obsolete; use --with-gas.
   1022     with_gas=yes ;;
   1023 
   1024   -help | --help | --hel | --he | -h)
   1025     ac_init_help=long ;;
   1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1027     ac_init_help=recursive ;;
   1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1029     ac_init_help=short ;;
   1030 
   1031   -host | --host | --hos | --ho)
   1032     ac_prev=host_alias ;;
   1033   -host=* | --host=* | --hos=* | --ho=*)
   1034     host_alias=$ac_optarg ;;
   1035 
   1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1037     ac_prev=htmldir ;;
   1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1039   | --ht=*)
   1040     htmldir=$ac_optarg ;;
   1041 
   1042   -includedir | --includedir | --includedi | --included | --include \
   1043   | --includ | --inclu | --incl | --inc)
   1044     ac_prev=includedir ;;
   1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1047     includedir=$ac_optarg ;;
   1048 
   1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1050     ac_prev=infodir ;;
   1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1052     infodir=$ac_optarg ;;
   1053 
   1054   -libdir | --libdir | --libdi | --libd)
   1055     ac_prev=libdir ;;
   1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1057     libdir=$ac_optarg ;;
   1058 
   1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1060   | --libexe | --libex | --libe)
   1061     ac_prev=libexecdir ;;
   1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1063   | --libexe=* | --libex=* | --libe=*)
   1064     libexecdir=$ac_optarg ;;
   1065 
   1066   -localedir | --localedir | --localedi | --localed | --locale)
   1067     ac_prev=localedir ;;
   1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1069     localedir=$ac_optarg ;;
   1070 
   1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1072   | --localstate | --localstat | --localsta | --localst | --locals)
   1073     ac_prev=localstatedir ;;
   1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1076     localstatedir=$ac_optarg ;;
   1077 
   1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1079     ac_prev=mandir ;;
   1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1081     mandir=$ac_optarg ;;
   1082 
   1083   -nfp | --nfp | --nf)
   1084     # Obsolete; use --without-fp.
   1085     with_fp=no ;;
   1086 
   1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1088   | --no-cr | --no-c | -n)
   1089     no_create=yes ;;
   1090 
   1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1093     no_recursion=yes ;;
   1094 
   1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1097   | --oldin | --oldi | --old | --ol | --o)
   1098     ac_prev=oldincludedir ;;
   1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1102     oldincludedir=$ac_optarg ;;
   1103 
   1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1105     ac_prev=prefix ;;
   1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1107     prefix=$ac_optarg ;;
   1108 
   1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1110   | --program-pre | --program-pr | --program-p)
   1111     ac_prev=program_prefix ;;
   1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1114     program_prefix=$ac_optarg ;;
   1115 
   1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1117   | --program-suf | --program-su | --program-s)
   1118     ac_prev=program_suffix ;;
   1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1121     program_suffix=$ac_optarg ;;
   1122 
   1123   -program-transform-name | --program-transform-name \
   1124   | --program-transform-nam | --program-transform-na \
   1125   | --program-transform-n | --program-transform- \
   1126   | --program-transform | --program-transfor \
   1127   | --program-transfo | --program-transf \
   1128   | --program-trans | --program-tran \
   1129   | --progr-tra | --program-tr | --program-t)
   1130     ac_prev=program_transform_name ;;
   1131   -program-transform-name=* | --program-transform-name=* \
   1132   | --program-transform-nam=* | --program-transform-na=* \
   1133   | --program-transform-n=* | --program-transform-=* \
   1134   | --program-transform=* | --program-transfor=* \
   1135   | --program-transfo=* | --program-transf=* \
   1136   | --program-trans=* | --program-tran=* \
   1137   | --progr-tra=* | --program-tr=* | --program-t=*)
   1138     program_transform_name=$ac_optarg ;;
   1139 
   1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1141     ac_prev=pdfdir ;;
   1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1143     pdfdir=$ac_optarg ;;
   1144 
   1145   -psdir | --psdir | --psdi | --psd | --ps)
   1146     ac_prev=psdir ;;
   1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1148     psdir=$ac_optarg ;;
   1149 
   1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1151   | -silent | --silent | --silen | --sile | --sil)
   1152     silent=yes ;;
   1153 
   1154   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1155   | --runstate | --runstat | --runsta | --runst | --runs \
   1156   | --run | --ru | --r)
   1157     ac_prev=runstatedir ;;
   1158   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1159   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1160   | --run=* | --ru=* | --r=*)
   1161     runstatedir=$ac_optarg ;;
   1162 
   1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1164     ac_prev=sbindir ;;
   1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1166   | --sbi=* | --sb=*)
   1167     sbindir=$ac_optarg ;;
   1168 
   1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1171   | --sharedst | --shareds | --shared | --share | --shar \
   1172   | --sha | --sh)
   1173     ac_prev=sharedstatedir ;;
   1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1177   | --sha=* | --sh=*)
   1178     sharedstatedir=$ac_optarg ;;
   1179 
   1180   -site | --site | --sit)
   1181     ac_prev=site ;;
   1182   -site=* | --site=* | --sit=*)
   1183     site=$ac_optarg ;;
   1184 
   1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1186     ac_prev=srcdir ;;
   1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1188     srcdir=$ac_optarg ;;
   1189 
   1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1191   | --syscon | --sysco | --sysc | --sys | --sy)
   1192     ac_prev=sysconfdir ;;
   1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1195     sysconfdir=$ac_optarg ;;
   1196 
   1197   -target | --target | --targe | --targ | --tar | --ta | --t)
   1198     ac_prev=target_alias ;;
   1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1200     target_alias=$ac_optarg ;;
   1201 
   1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1203     verbose=yes ;;
   1204 
   1205   -version | --version | --versio | --versi | --vers | -V)
   1206     ac_init_version=: ;;
   1207 
   1208   -with-* | --with-*)
   1209     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1210     # Reject names that are not valid shell variable names.
   1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1212       as_fn_error $? "invalid package name: $ac_useropt"
   1213     ac_useropt_orig=$ac_useropt
   1214     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1215     case $ac_user_opts in
   1216       *"
   1217 "with_$ac_useropt"
   1218 "*) ;;
   1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1220 	 ac_unrecognized_sep=', ';;
   1221     esac
   1222     eval with_$ac_useropt=\$ac_optarg ;;
   1223 
   1224   -without-* | --without-*)
   1225     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1226     # Reject names that are not valid shell variable names.
   1227     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1228       as_fn_error $? "invalid package name: $ac_useropt"
   1229     ac_useropt_orig=$ac_useropt
   1230     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1231     case $ac_user_opts in
   1232       *"
   1233 "with_$ac_useropt"
   1234 "*) ;;
   1235       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1236 	 ac_unrecognized_sep=', ';;
   1237     esac
   1238     eval with_$ac_useropt=no ;;
   1239 
   1240   --x)
   1241     # Obsolete; use --with-x.
   1242     with_x=yes ;;
   1243 
   1244   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1245   | --x-incl | --x-inc | --x-in | --x-i)
   1246     ac_prev=x_includes ;;
   1247   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1248   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1249     x_includes=$ac_optarg ;;
   1250 
   1251   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1252   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1253     ac_prev=x_libraries ;;
   1254   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1255   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1256     x_libraries=$ac_optarg ;;
   1257 
   1258   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1259 Try \`$0 --help' for more information"
   1260     ;;
   1261 
   1262   *=*)
   1263     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1264     # Reject names that are not valid shell variable names.
   1265     case $ac_envvar in #(
   1266       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1267       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1268     esac
   1269     eval $ac_envvar=\$ac_optarg
   1270     export $ac_envvar ;;
   1271 
   1272   *)
   1273     # FIXME: should be removed in autoconf 3.0.
   1274     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1275     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1276       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1277     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1278     ;;
   1279 
   1280   esac
   1281 done
   1282 
   1283 if test -n "$ac_prev"; then
   1284   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1285   as_fn_error $? "missing argument to $ac_option"
   1286 fi
   1287 
   1288 if test -n "$ac_unrecognized_opts"; then
   1289   case $enable_option_checking in
   1290     no) ;;
   1291     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1292     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1293   esac
   1294 fi
   1295 
   1296 # Check all directory arguments for consistency.
   1297 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1298 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1299 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1300 		libdir localedir mandir runstatedir
   1301 do
   1302   eval ac_val=\$$ac_var
   1303   # Remove trailing slashes.
   1304   case $ac_val in
   1305     */ )
   1306       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1307       eval $ac_var=\$ac_val;;
   1308   esac
   1309   # Be sure to have absolute directory names.
   1310   case $ac_val in
   1311     [\\/$]* | ?:[\\/]* )  continue;;
   1312     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1313   esac
   1314   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1315 done
   1316 
   1317 # There might be people who depend on the old broken behavior: `$host'
   1318 # used to hold the argument of --host etc.
   1319 # FIXME: To remove some day.
   1320 build=$build_alias
   1321 host=$host_alias
   1322 target=$target_alias
   1323 
   1324 # FIXME: To remove some day.
   1325 if test "x$host_alias" != x; then
   1326   if test "x$build_alias" = x; then
   1327     cross_compiling=maybe
   1328   elif test "x$build_alias" != "x$host_alias"; then
   1329     cross_compiling=yes
   1330   fi
   1331 fi
   1332 
   1333 ac_tool_prefix=
   1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1335 
   1336 test "$silent" = yes && exec 6>/dev/null
   1337 
   1338 
   1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1340 ac_ls_di=`ls -di .` &&
   1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1342   as_fn_error $? "working directory cannot be determined"
   1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1344   as_fn_error $? "pwd does not report name of working directory"
   1345 
   1346 
   1347 # Find the source files, if location was not specified.
   1348 if test -z "$srcdir"; then
   1349   ac_srcdir_defaulted=yes
   1350   # Try the directory containing this script, then the parent directory.
   1351   ac_confdir=`$as_dirname -- "$as_myself" ||
   1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1353 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1354 	 X"$as_myself" : 'X\(//\)$' \| \
   1355 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1356 $as_echo X"$as_myself" |
   1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1358 	    s//\1/
   1359 	    q
   1360 	  }
   1361 	  /^X\(\/\/\)[^/].*/{
   1362 	    s//\1/
   1363 	    q
   1364 	  }
   1365 	  /^X\(\/\/\)$/{
   1366 	    s//\1/
   1367 	    q
   1368 	  }
   1369 	  /^X\(\/\).*/{
   1370 	    s//\1/
   1371 	    q
   1372 	  }
   1373 	  s/.*/./; q'`
   1374   srcdir=$ac_confdir
   1375   if test ! -r "$srcdir/$ac_unique_file"; then
   1376     srcdir=..
   1377   fi
   1378 else
   1379   ac_srcdir_defaulted=no
   1380 fi
   1381 if test ! -r "$srcdir/$ac_unique_file"; then
   1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1383   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1384 fi
   1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1386 ac_abs_confdir=`(
   1387 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1388 	pwd)`
   1389 # When building in place, set srcdir=.
   1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1391   srcdir=.
   1392 fi
   1393 # Remove unnecessary trailing slashes from srcdir.
   1394 # Double slashes in file names in object file debugging info
   1395 # mess up M-x gdb in Emacs.
   1396 case $srcdir in
   1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1398 esac
   1399 for ac_var in $ac_precious_vars; do
   1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1401   eval ac_env_${ac_var}_value=\$${ac_var}
   1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1404 done
   1405 
   1406 #
   1407 # Report the --help message.
   1408 #
   1409 if test "$ac_init_help" = "long"; then
   1410   # Omit some internal or obsolete options to make the list less imposing.
   1411   # This message is too long to be a string in the A/UX 3.1 sh.
   1412   cat <<_ACEOF
   1413 \`configure' configures python 3.7 to adapt to many kinds of systems.
   1414 
   1415 Usage: $0 [OPTION]... [VAR=VALUE]...
   1416 
   1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1419 
   1420 Defaults for the options are specified in brackets.
   1421 
   1422 Configuration:
   1423   -h, --help              display this help and exit
   1424       --help=short        display options specific to this package
   1425       --help=recursive    display the short help of all the included packages
   1426   -V, --version           display version information and exit
   1427   -q, --quiet, --silent   do not print \`checking ...' messages
   1428       --cache-file=FILE   cache test results in FILE [disabled]
   1429   -C, --config-cache      alias for \`--cache-file=config.cache'
   1430   -n, --no-create         do not create output files
   1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1432 
   1433 Installation directories:
   1434   --prefix=PREFIX         install architecture-independent files in PREFIX
   1435                           [$ac_default_prefix]
   1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1437                           [PREFIX]
   1438 
   1439 By default, \`make install' will install all the files in
   1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1442 for instance \`--prefix=\$HOME'.
   1443 
   1444 For better control, use the options below.
   1445 
   1446 Fine tuning of the installation directories:
   1447   --bindir=DIR            user executables [EPREFIX/bin]
   1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1453   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1454   --libdir=DIR            object code libraries [EPREFIX/lib]
   1455   --includedir=DIR        C header files [PREFIX/include]
   1456   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1457   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1458   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1459   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1460   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1461   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1462   --docdir=DIR            documentation root [DATAROOTDIR/doc/python]
   1463   --htmldir=DIR           html documentation [DOCDIR]
   1464   --dvidir=DIR            dvi documentation [DOCDIR]
   1465   --pdfdir=DIR            pdf documentation [DOCDIR]
   1466   --psdir=DIR             ps documentation [DOCDIR]
   1467 _ACEOF
   1468 
   1469   cat <<\_ACEOF
   1470 
   1471 System types:
   1472   --build=BUILD     configure for building on BUILD [guessed]
   1473   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1474   --target=TARGET   configure for building compilers for TARGET [HOST]
   1475 _ACEOF
   1476 fi
   1477 
   1478 if test -n "$ac_init_help"; then
   1479   case $ac_init_help in
   1480      short | recursive ) echo "Configuration of python 3.7:";;
   1481    esac
   1482   cat <<\_ACEOF
   1483 
   1484 Optional Features:
   1485   --disable-option-checking  ignore unrecognized --enable/--with options
   1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1488   --enable-universalsdk[=SDKDIR]
   1489                           Build fat binary against Mac OS X SDK
   1490   --enable-framework[=INSTALLDIR]
   1491                           Build (MacOSX|Darwin) framework
   1492   --enable-shared         disable/enable building shared python library
   1493   --enable-profiling      enable C-level code profiling
   1494   --enable-optimizations  Enable expensive, stable optimizations (PGO, etc).
   1495                           Disabled by default.
   1496   --enable-loadable-sqlite-extensions
   1497                           support loadable extensions in _sqlite module
   1498   --enable-ipv6           Enable ipv6 (with ipv4) support
   1499   --disable-ipv6          Disable ipv6 support
   1500   --enable-big-digits[=BITS]
   1501                           use big digits for Python longs [[BITS=30]]
   1502 
   1503 Optional Packages:
   1504   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1505   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1506   --with-universal-archs=ARCH
   1507                           select architectures for universal build ("32-bit",
   1508                           "64-bit", "3-way", "intel", "intel-32", "intel-64",
   1509                           or "all")
   1510   --with-framework-name=FRAMEWORK
   1511                           specify an alternate name of the framework built
   1512                           with --enable-framework
   1513   --without-gcc           never use gcc
   1514   --with-icc              build with icc
   1515   --with-cxx-main=<compiler>
   1516                           compile main() and link python executable with C++
   1517                           compiler
   1518   --with-suffix=.exe      set executable suffix
   1519   --with-pydebug          build with Py_DEBUG defined
   1520   --with-assertions       build with C assertions enabled
   1521   --with-lto              Enable Link Time Optimization in any build. Disabled
   1522                           by default.
   1523   --with-hash-algorithm=[fnv|siphash24]
   1524                           select hash algorithm
   1525   --with-address-sanitizer
   1526                           enable AddressSanitizer (asan)
   1527   --with-memory-sanitizer enable MemorySanitizer (msan)
   1528   --with-undefined-behavior-sanitizer
   1529                           enable UndefinedBehaviorSanitizer (ubsan)
   1530   --with-libs='lib1 ...'  link against additional libs
   1531   --with-system-expat     build pyexpat module using an installed expat
   1532                           library
   1533   --with-system-ffi       build _ctypes module using an installed ffi library
   1534   --with-system-libmpdec  build _decimal module using an installed libmpdec
   1535                           library
   1536   --with-tcltk-includes='-I...'
   1537                           override search for Tcl and Tk include files
   1538   --with-tcltk-libs='-L...'
   1539                           override search for Tcl and Tk libs
   1540   --with-dbmliborder=db1:db2:...
   1541                           order to check db backends for dbm. Valid value is a
   1542                           colon separated string with the backend names
   1543                           `ndbm', `gdbm' and `bdb'.
   1544   --with(out)-doc-strings disable/enable documentation strings
   1545   --with(out)-pymalloc    disable/enable specialized mallocs
   1546   --with(out)-c-locale-coercion
   1547                           disable/enable C locale coercion to a UTF-8 based
   1548                           locale
   1549   --with-valgrind         Enable Valgrind support
   1550   --with(out)-dtrace      disable/enable DTrace support
   1551   --with-libm=STRING      math library
   1552   --with-libc=STRING      C library
   1553   --with(out)-computed-gotos
   1554                           Use computed gotos in evaluation loop (enabled by
   1555                           default on supported compilers)
   1556   --with(out)-ensurepip=[=upgrade]
   1557                           "install" or "upgrade" using bundled pip
   1558   --with-openssl=DIR      root of the OpenSSL directory
   1559   --with-ssl-default-suites=[python|openssl|STRING]
   1560                           Override default cipher suites string, python: use
   1561                           Python's preferred selection (default), openssl:
   1562                           leave OpenSSL's defaults untouched, STRING: use a
   1563                           custom string, PROTOCOL_SSLv2 ignores the setting
   1564 
   1565 Some influential environment variables:
   1566   MACHDEP     name for machine-dependent library files
   1567   CC          C compiler command
   1568   CFLAGS      C compiler flags
   1569   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1570               nonstandard directory <lib dir>
   1571   LIBS        libraries to pass to the linker, e.g. -l<library>
   1572   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1573               you have headers in a nonstandard directory <include dir>
   1574   CPP         C preprocessor
   1575   PKG_CONFIG  path to pkg-config utility
   1576   PKG_CONFIG_PATH
   1577               directories to add to pkg-config's search path
   1578   PKG_CONFIG_LIBDIR
   1579               path overriding pkg-config's built-in search path
   1580 
   1581 Use these variables to override the choices made by `configure' or to help
   1582 it to find libraries and programs with nonstandard names/locations.
   1583 
   1584 Report bugs to <https://bugs.python.org/>.
   1585 _ACEOF
   1586 ac_status=$?
   1587 fi
   1588 
   1589 if test "$ac_init_help" = "recursive"; then
   1590   # If there are subdirs, report their specific --help.
   1591   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1592     test -d "$ac_dir" ||
   1593       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1594       continue
   1595     ac_builddir=.
   1596 
   1597 case "$ac_dir" in
   1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1599 *)
   1600   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1601   # A ".." for each directory in $ac_dir_suffix.
   1602   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1603   case $ac_top_builddir_sub in
   1604   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1605   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1606   esac ;;
   1607 esac
   1608 ac_abs_top_builddir=$ac_pwd
   1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1610 # for backward compatibility:
   1611 ac_top_builddir=$ac_top_build_prefix
   1612 
   1613 case $srcdir in
   1614   .)  # We are building in place.
   1615     ac_srcdir=.
   1616     ac_top_srcdir=$ac_top_builddir_sub
   1617     ac_abs_top_srcdir=$ac_pwd ;;
   1618   [\\/]* | ?:[\\/]* )  # Absolute name.
   1619     ac_srcdir=$srcdir$ac_dir_suffix;
   1620     ac_top_srcdir=$srcdir
   1621     ac_abs_top_srcdir=$srcdir ;;
   1622   *) # Relative name.
   1623     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1624     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1625     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1626 esac
   1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1628 
   1629     cd "$ac_dir" || { ac_status=$?; continue; }
   1630     # Check for guested configure.
   1631     if test -f "$ac_srcdir/configure.gnu"; then
   1632       echo &&
   1633       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1634     elif test -f "$ac_srcdir/configure"; then
   1635       echo &&
   1636       $SHELL "$ac_srcdir/configure" --help=recursive
   1637     else
   1638       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1639     fi || ac_status=$?
   1640     cd "$ac_pwd" || { ac_status=$?; break; }
   1641   done
   1642 fi
   1643 
   1644 test -n "$ac_init_help" && exit $ac_status
   1645 if $ac_init_version; then
   1646   cat <<\_ACEOF
   1647 python configure 3.7
   1648 generated by GNU Autoconf 2.69
   1649 
   1650 Copyright (C) 2012 Free Software Foundation, Inc.
   1651 This configure script is free software; the Free Software Foundation
   1652 gives unlimited permission to copy, distribute and modify it.
   1653 _ACEOF
   1654   exit
   1655 fi
   1656 
   1657 ## ------------------------ ##
   1658 ## Autoconf initialization. ##
   1659 ## ------------------------ ##
   1660 
   1661 # ac_fn_c_try_compile LINENO
   1662 # --------------------------
   1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1664 ac_fn_c_try_compile ()
   1665 {
   1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1667   rm -f conftest.$ac_objext
   1668   if { { ac_try="$ac_compile"
   1669 case "(($ac_try" in
   1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1671   *) ac_try_echo=$ac_try;;
   1672 esac
   1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1674 $as_echo "$ac_try_echo"; } >&5
   1675   (eval "$ac_compile") 2>conftest.err
   1676   ac_status=$?
   1677   if test -s conftest.err; then
   1678     grep -v '^ *+' conftest.err >conftest.er1
   1679     cat conftest.er1 >&5
   1680     mv -f conftest.er1 conftest.err
   1681   fi
   1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1683   test $ac_status = 0; } && {
   1684 	 test -z "$ac_c_werror_flag" ||
   1685 	 test ! -s conftest.err
   1686        } && test -s conftest.$ac_objext; then :
   1687   ac_retval=0
   1688 else
   1689   $as_echo "$as_me: failed program was:" >&5
   1690 sed 's/^/| /' conftest.$ac_ext >&5
   1691 
   1692 	ac_retval=1
   1693 fi
   1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1695   as_fn_set_status $ac_retval
   1696 
   1697 } # ac_fn_c_try_compile
   1698 
   1699 # ac_fn_c_try_cpp LINENO
   1700 # ----------------------
   1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1702 ac_fn_c_try_cpp ()
   1703 {
   1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1705   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1706 case "(($ac_try" in
   1707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1708   *) ac_try_echo=$ac_try;;
   1709 esac
   1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1711 $as_echo "$ac_try_echo"; } >&5
   1712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1713   ac_status=$?
   1714   if test -s conftest.err; then
   1715     grep -v '^ *+' conftest.err >conftest.er1
   1716     cat conftest.er1 >&5
   1717     mv -f conftest.er1 conftest.err
   1718   fi
   1719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1720   test $ac_status = 0; } > conftest.i && {
   1721 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1722 	 test ! -s conftest.err
   1723        }; then :
   1724   ac_retval=0
   1725 else
   1726   $as_echo "$as_me: failed program was:" >&5
   1727 sed 's/^/| /' conftest.$ac_ext >&5
   1728 
   1729     ac_retval=1
   1730 fi
   1731   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1732   as_fn_set_status $ac_retval
   1733 
   1734 } # ac_fn_c_try_cpp
   1735 
   1736 # ac_fn_c_try_link LINENO
   1737 # -----------------------
   1738 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1739 ac_fn_c_try_link ()
   1740 {
   1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1742   rm -f conftest.$ac_objext conftest$ac_exeext
   1743   if { { ac_try="$ac_link"
   1744 case "(($ac_try" in
   1745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1746   *) ac_try_echo=$ac_try;;
   1747 esac
   1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1749 $as_echo "$ac_try_echo"; } >&5
   1750   (eval "$ac_link") 2>conftest.err
   1751   ac_status=$?
   1752   if test -s conftest.err; then
   1753     grep -v '^ *+' conftest.err >conftest.er1
   1754     cat conftest.er1 >&5
   1755     mv -f conftest.er1 conftest.err
   1756   fi
   1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1758   test $ac_status = 0; } && {
   1759 	 test -z "$ac_c_werror_flag" ||
   1760 	 test ! -s conftest.err
   1761        } && test -s conftest$ac_exeext && {
   1762 	 test "$cross_compiling" = yes ||
   1763 	 test -x conftest$ac_exeext
   1764        }; then :
   1765   ac_retval=0
   1766 else
   1767   $as_echo "$as_me: failed program was:" >&5
   1768 sed 's/^/| /' conftest.$ac_ext >&5
   1769 
   1770 	ac_retval=1
   1771 fi
   1772   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1773   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1774   # interfere with the next link command; also delete a directory that is
   1775   # left behind by Apple's compiler.  We do this before executing the actions.
   1776   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1778   as_fn_set_status $ac_retval
   1779 
   1780 } # ac_fn_c_try_link
   1781 
   1782 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1783 # -------------------------------------------------------
   1784 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1785 # the include files in INCLUDES and setting the cache variable VAR
   1786 # accordingly.
   1787 ac_fn_c_check_header_mongrel ()
   1788 {
   1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1790   if eval \${$3+:} false; then :
   1791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1792 $as_echo_n "checking for $2... " >&6; }
   1793 if eval \${$3+:} false; then :
   1794   $as_echo_n "(cached) " >&6
   1795 fi
   1796 eval ac_res=\$$3
   1797 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1798 $as_echo "$ac_res" >&6; }
   1799 else
   1800   # Is the header compilable?
   1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1802 $as_echo_n "checking $2 usability... " >&6; }
   1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1804 /* end confdefs.h.  */
   1805 $4
   1806 #include <$2>
   1807 _ACEOF
   1808 if ac_fn_c_try_compile "$LINENO"; then :
   1809   ac_header_compiler=yes
   1810 else
   1811   ac_header_compiler=no
   1812 fi
   1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1815 $as_echo "$ac_header_compiler" >&6; }
   1816 
   1817 # Is the header present?
   1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1819 $as_echo_n "checking $2 presence... " >&6; }
   1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1821 /* end confdefs.h.  */
   1822 #include <$2>
   1823 _ACEOF
   1824 if ac_fn_c_try_cpp "$LINENO"; then :
   1825   ac_header_preproc=yes
   1826 else
   1827   ac_header_preproc=no
   1828 fi
   1829 rm -f conftest.err conftest.i conftest.$ac_ext
   1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1831 $as_echo "$ac_header_preproc" >&6; }
   1832 
   1833 # So?  What about this header?
   1834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1835   yes:no: )
   1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1837 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1840     ;;
   1841   no:yes:* )
   1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1843 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1845 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1847 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1849 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1852 ( $as_echo "## --------------------------------------- ##
   1853 ## Report this to https://bugs.python.org/ ##
   1854 ## --------------------------------------- ##"
   1855      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1856     ;;
   1857 esac
   1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1859 $as_echo_n "checking for $2... " >&6; }
   1860 if eval \${$3+:} false; then :
   1861   $as_echo_n "(cached) " >&6
   1862 else
   1863   eval "$3=\$ac_header_compiler"
   1864 fi
   1865 eval ac_res=\$$3
   1866 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1867 $as_echo "$ac_res" >&6; }
   1868 fi
   1869   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1870 
   1871 } # ac_fn_c_check_header_mongrel
   1872 
   1873 # ac_fn_c_try_run LINENO
   1874 # ----------------------
   1875 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1876 # that executables *can* be run.
   1877 ac_fn_c_try_run ()
   1878 {
   1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1880   if { { ac_try="$ac_link"
   1881 case "(($ac_try" in
   1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1883   *) ac_try_echo=$ac_try;;
   1884 esac
   1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1886 $as_echo "$ac_try_echo"; } >&5
   1887   (eval "$ac_link") 2>&5
   1888   ac_status=$?
   1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1890   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1891   { { case "(($ac_try" in
   1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1893   *) ac_try_echo=$ac_try;;
   1894 esac
   1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1896 $as_echo "$ac_try_echo"; } >&5
   1897   (eval "$ac_try") 2>&5
   1898   ac_status=$?
   1899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1900   test $ac_status = 0; }; }; then :
   1901   ac_retval=0
   1902 else
   1903   $as_echo "$as_me: program exited with status $ac_status" >&5
   1904        $as_echo "$as_me: failed program was:" >&5
   1905 sed 's/^/| /' conftest.$ac_ext >&5
   1906 
   1907        ac_retval=$ac_status
   1908 fi
   1909   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1910   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1911   as_fn_set_status $ac_retval
   1912 
   1913 } # ac_fn_c_try_run
   1914 
   1915 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1916 # -------------------------------------------------------
   1917 # Tests whether HEADER exists and can be compiled using the include files in
   1918 # INCLUDES, setting the cache variable VAR accordingly.
   1919 ac_fn_c_check_header_compile ()
   1920 {
   1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1923 $as_echo_n "checking for $2... " >&6; }
   1924 if eval \${$3+:} false; then :
   1925   $as_echo_n "(cached) " >&6
   1926 else
   1927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1928 /* end confdefs.h.  */
   1929 $4
   1930 #include <$2>
   1931 _ACEOF
   1932 if ac_fn_c_try_compile "$LINENO"; then :
   1933   eval "$3=yes"
   1934 else
   1935   eval "$3=no"
   1936 fi
   1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1938 fi
   1939 eval ac_res=\$$3
   1940 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1941 $as_echo "$ac_res" >&6; }
   1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1943 
   1944 } # ac_fn_c_check_header_compile
   1945 
   1946 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1947 # -------------------------------------------
   1948 # Tests whether TYPE exists after having included INCLUDES, setting cache
   1949 # variable VAR accordingly.
   1950 ac_fn_c_check_type ()
   1951 {
   1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1954 $as_echo_n "checking for $2... " >&6; }
   1955 if eval \${$3+:} false; then :
   1956   $as_echo_n "(cached) " >&6
   1957 else
   1958   eval "$3=no"
   1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1960 /* end confdefs.h.  */
   1961 $4
   1962 int
   1963 main ()
   1964 {
   1965 if (sizeof ($2))
   1966 	 return 0;
   1967   ;
   1968   return 0;
   1969 }
   1970 _ACEOF
   1971 if ac_fn_c_try_compile "$LINENO"; then :
   1972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1973 /* end confdefs.h.  */
   1974 $4
   1975 int
   1976 main ()
   1977 {
   1978 if (sizeof (($2)))
   1979 	    return 0;
   1980   ;
   1981   return 0;
   1982 }
   1983 _ACEOF
   1984 if ac_fn_c_try_compile "$LINENO"; then :
   1985 
   1986 else
   1987   eval "$3=yes"
   1988 fi
   1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1990 fi
   1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1992 fi
   1993 eval ac_res=\$$3
   1994 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1995 $as_echo "$ac_res" >&6; }
   1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1997 
   1998 } # ac_fn_c_check_type
   1999 
   2000 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2001 # --------------------------------------------
   2002 # Tries to find the compile-time value of EXPR in a program that includes
   2003 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2004 # computed
   2005 ac_fn_c_compute_int ()
   2006 {
   2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2008   if test "$cross_compiling" = yes; then
   2009     # Depending upon the size, compute the lo and hi bounds.
   2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2011 /* end confdefs.h.  */
   2012 $4
   2013 int
   2014 main ()
   2015 {
   2016 static int test_array [1 - 2 * !(($2) >= 0)];
   2017 test_array [0] = 0;
   2018 return test_array [0];
   2019 
   2020   ;
   2021   return 0;
   2022 }
   2023 _ACEOF
   2024 if ac_fn_c_try_compile "$LINENO"; then :
   2025   ac_lo=0 ac_mid=0
   2026   while :; do
   2027     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2028 /* end confdefs.h.  */
   2029 $4
   2030 int
   2031 main ()
   2032 {
   2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2034 test_array [0] = 0;
   2035 return test_array [0];
   2036 
   2037   ;
   2038   return 0;
   2039 }
   2040 _ACEOF
   2041 if ac_fn_c_try_compile "$LINENO"; then :
   2042   ac_hi=$ac_mid; break
   2043 else
   2044   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2045 			if test $ac_lo -le $ac_mid; then
   2046 			  ac_lo= ac_hi=
   2047 			  break
   2048 			fi
   2049 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2050 fi
   2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2052   done
   2053 else
   2054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2055 /* end confdefs.h.  */
   2056 $4
   2057 int
   2058 main ()
   2059 {
   2060 static int test_array [1 - 2 * !(($2) < 0)];
   2061 test_array [0] = 0;
   2062 return test_array [0];
   2063 
   2064   ;
   2065   return 0;
   2066 }
   2067 _ACEOF
   2068 if ac_fn_c_try_compile "$LINENO"; then :
   2069   ac_hi=-1 ac_mid=-1
   2070   while :; do
   2071     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2072 /* end confdefs.h.  */
   2073 $4
   2074 int
   2075 main ()
   2076 {
   2077 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2078 test_array [0] = 0;
   2079 return test_array [0];
   2080 
   2081   ;
   2082   return 0;
   2083 }
   2084 _ACEOF
   2085 if ac_fn_c_try_compile "$LINENO"; then :
   2086   ac_lo=$ac_mid; break
   2087 else
   2088   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2089 			if test $ac_mid -le $ac_hi; then
   2090 			  ac_lo= ac_hi=
   2091 			  break
   2092 			fi
   2093 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2094 fi
   2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2096   done
   2097 else
   2098   ac_lo= ac_hi=
   2099 fi
   2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2101 fi
   2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2103 # Binary search between lo and hi bounds.
   2104 while test "x$ac_lo" != "x$ac_hi"; do
   2105   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2107 /* end confdefs.h.  */
   2108 $4
   2109 int
   2110 main ()
   2111 {
   2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2113 test_array [0] = 0;
   2114 return test_array [0];
   2115 
   2116   ;
   2117   return 0;
   2118 }
   2119 _ACEOF
   2120 if ac_fn_c_try_compile "$LINENO"; then :
   2121   ac_hi=$ac_mid
   2122 else
   2123   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2124 fi
   2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2126 done
   2127 case $ac_lo in #((
   2128 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2129 '') ac_retval=1 ;;
   2130 esac
   2131   else
   2132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2133 /* end confdefs.h.  */
   2134 $4
   2135 static long int longval () { return $2; }
   2136 static unsigned long int ulongval () { return $2; }
   2137 #include <stdio.h>
   2138 #include <stdlib.h>
   2139 int
   2140 main ()
   2141 {
   2142 
   2143   FILE *f = fopen ("conftest.val", "w");
   2144   if (! f)
   2145     return 1;
   2146   if (($2) < 0)
   2147     {
   2148       long int i = longval ();
   2149       if (i != ($2))
   2150 	return 1;
   2151       fprintf (f, "%ld", i);
   2152     }
   2153   else
   2154     {
   2155       unsigned long int i = ulongval ();
   2156       if (i != ($2))
   2157 	return 1;
   2158       fprintf (f, "%lu", i);
   2159     }
   2160   /* Do not output a trailing newline, as this causes \r\n confusion
   2161      on some platforms.  */
   2162   return ferror (f) || fclose (f) != 0;
   2163 
   2164   ;
   2165   return 0;
   2166 }
   2167 _ACEOF
   2168 if ac_fn_c_try_run "$LINENO"; then :
   2169   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2170 else
   2171   ac_retval=1
   2172 fi
   2173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2174   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2175 rm -f conftest.val
   2176 
   2177   fi
   2178   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2179   as_fn_set_status $ac_retval
   2180 
   2181 } # ac_fn_c_compute_int
   2182 
   2183 # ac_fn_c_check_func LINENO FUNC VAR
   2184 # ----------------------------------
   2185 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2186 ac_fn_c_check_func ()
   2187 {
   2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2190 $as_echo_n "checking for $2... " >&6; }
   2191 if eval \${$3+:} false; then :
   2192   $as_echo_n "(cached) " >&6
   2193 else
   2194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2195 /* end confdefs.h.  */
   2196 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2198 #define $2 innocuous_$2
   2199 
   2200 /* System header to define __stub macros and hopefully few prototypes,
   2201     which can conflict with char $2 (); below.
   2202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2203     <limits.h> exists even on freestanding compilers.  */
   2204 
   2205 #ifdef __STDC__
   2206 # include <limits.h>
   2207 #else
   2208 # include <assert.h>
   2209 #endif
   2210 
   2211 #undef $2
   2212 
   2213 /* Override any GCC internal prototype to avoid an error.
   2214    Use char because int might match the return type of a GCC
   2215    builtin and then its argument prototype would still apply.  */
   2216 #ifdef __cplusplus
   2217 extern "C"
   2218 #endif
   2219 char $2 ();
   2220 /* The GNU C library defines this for functions which it implements
   2221     to always fail with ENOSYS.  Some functions are actually named
   2222     something starting with __ and the normal name is an alias.  */
   2223 #if defined __stub_$2 || defined __stub___$2
   2224 choke me
   2225 #endif
   2226 
   2227 int
   2228 main ()
   2229 {
   2230 return $2 ();
   2231   ;
   2232   return 0;
   2233 }
   2234 _ACEOF
   2235 if ac_fn_c_try_link "$LINENO"; then :
   2236   eval "$3=yes"
   2237 else
   2238   eval "$3=no"
   2239 fi
   2240 rm -f core conftest.err conftest.$ac_objext \
   2241     conftest$ac_exeext conftest.$ac_ext
   2242 fi
   2243 eval ac_res=\$$3
   2244 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2245 $as_echo "$ac_res" >&6; }
   2246   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2247 
   2248 } # ac_fn_c_check_func
   2249 
   2250 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   2251 # ---------------------------------------------
   2252 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2253 # accordingly.
   2254 ac_fn_c_check_decl ()
   2255 {
   2256   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2257   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2258   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2260 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2261 if eval \${$3+:} false; then :
   2262   $as_echo_n "(cached) " >&6
   2263 else
   2264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2265 /* end confdefs.h.  */
   2266 $4
   2267 int
   2268 main ()
   2269 {
   2270 #ifndef $as_decl_name
   2271 #ifdef __cplusplus
   2272   (void) $as_decl_use;
   2273 #else
   2274   (void) $as_decl_name;
   2275 #endif
   2276 #endif
   2277 
   2278   ;
   2279   return 0;
   2280 }
   2281 _ACEOF
   2282 if ac_fn_c_try_compile "$LINENO"; then :
   2283   eval "$3=yes"
   2284 else
   2285   eval "$3=no"
   2286 fi
   2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2288 fi
   2289 eval ac_res=\$$3
   2290 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2291 $as_echo "$ac_res" >&6; }
   2292   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2293 
   2294 } # ac_fn_c_check_decl
   2295 
   2296 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2297 # ----------------------------------------------------
   2298 # Tries to find if the field MEMBER exists in type AGGR, after including
   2299 # INCLUDES, setting cache variable VAR accordingly.
   2300 ac_fn_c_check_member ()
   2301 {
   2302   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2304 $as_echo_n "checking for $2.$3... " >&6; }
   2305 if eval \${$4+:} false; then :
   2306   $as_echo_n "(cached) " >&6
   2307 else
   2308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2309 /* end confdefs.h.  */
   2310 $5
   2311 int
   2312 main ()
   2313 {
   2314 static $2 ac_aggr;
   2315 if (ac_aggr.$3)
   2316 return 0;
   2317   ;
   2318   return 0;
   2319 }
   2320 _ACEOF
   2321 if ac_fn_c_try_compile "$LINENO"; then :
   2322   eval "$4=yes"
   2323 else
   2324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2325 /* end confdefs.h.  */
   2326 $5
   2327 int
   2328 main ()
   2329 {
   2330 static $2 ac_aggr;
   2331 if (sizeof ac_aggr.$3)
   2332 return 0;
   2333   ;
   2334   return 0;
   2335 }
   2336 _ACEOF
   2337 if ac_fn_c_try_compile "$LINENO"; then :
   2338   eval "$4=yes"
   2339 else
   2340   eval "$4=no"
   2341 fi
   2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2343 fi
   2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2345 fi
   2346 eval ac_res=\$$4
   2347 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2348 $as_echo "$ac_res" >&6; }
   2349   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2350 
   2351 } # ac_fn_c_check_member
   2352 cat >config.log <<_ACEOF
   2353 This file contains any messages produced by compilers while
   2354 running configure, to aid debugging if configure makes a mistake.
   2355 
   2356 It was created by python $as_me 3.7, which was
   2357 generated by GNU Autoconf 2.69.  Invocation command line was
   2358 
   2359   $ $0 $@
   2360 
   2361 _ACEOF
   2362 exec 5>>config.log
   2363 {
   2364 cat <<_ASUNAME
   2365 ## --------- ##
   2366 ## Platform. ##
   2367 ## --------- ##
   2368 
   2369 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2370 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2371 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2372 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2373 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2374 
   2375 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2376 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2377 
   2378 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2379 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2380 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2381 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2382 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2383 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2384 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2385 
   2386 _ASUNAME
   2387 
   2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2389 for as_dir in $PATH
   2390 do
   2391   IFS=$as_save_IFS
   2392   test -z "$as_dir" && as_dir=.
   2393     $as_echo "PATH: $as_dir"
   2394   done
   2395 IFS=$as_save_IFS
   2396 
   2397 } >&5
   2398 
   2399 cat >&5 <<_ACEOF
   2400 
   2401 
   2402 ## ----------- ##
   2403 ## Core tests. ##
   2404 ## ----------- ##
   2405 
   2406 _ACEOF
   2407 
   2408 
   2409 # Keep a trace of the command line.
   2410 # Strip out --no-create and --no-recursion so they do not pile up.
   2411 # Strip out --silent because we don't want to record it for future runs.
   2412 # Also quote any args containing shell meta-characters.
   2413 # Make two passes to allow for proper duplicate-argument suppression.
   2414 ac_configure_args=
   2415 ac_configure_args0=
   2416 ac_configure_args1=
   2417 ac_must_keep_next=false
   2418 for ac_pass in 1 2
   2419 do
   2420   for ac_arg
   2421   do
   2422     case $ac_arg in
   2423     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2424     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2425     | -silent | --silent | --silen | --sile | --sil)
   2426       continue ;;
   2427     *\'*)
   2428       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2429     esac
   2430     case $ac_pass in
   2431     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2432     2)
   2433       as_fn_append ac_configure_args1 " '$ac_arg'"
   2434       if test $ac_must_keep_next = true; then
   2435 	ac_must_keep_next=false # Got value, back to normal.
   2436       else
   2437 	case $ac_arg in
   2438 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2439 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2440 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2441 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2442 	    case "$ac_configure_args0 " in
   2443 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2444 	    esac
   2445 	    ;;
   2446 	  -* ) ac_must_keep_next=true ;;
   2447 	esac
   2448       fi
   2449       as_fn_append ac_configure_args " '$ac_arg'"
   2450       ;;
   2451     esac
   2452   done
   2453 done
   2454 { ac_configure_args0=; unset ac_configure_args0;}
   2455 { ac_configure_args1=; unset ac_configure_args1;}
   2456 
   2457 # When interrupted or exit'd, cleanup temporary files, and complete
   2458 # config.log.  We remove comments because anyway the quotes in there
   2459 # would cause problems or look ugly.
   2460 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2461 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2462 trap 'exit_status=$?
   2463   # Save into config.log some information that might help in debugging.
   2464   {
   2465     echo
   2466 
   2467     $as_echo "## ---------------- ##
   2468 ## Cache variables. ##
   2469 ## ---------------- ##"
   2470     echo
   2471     # The following way of writing the cache mishandles newlines in values,
   2472 (
   2473   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2474     eval ac_val=\$$ac_var
   2475     case $ac_val in #(
   2476     *${as_nl}*)
   2477       case $ac_var in #(
   2478       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2479 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2480       esac
   2481       case $ac_var in #(
   2482       _ | IFS | as_nl) ;; #(
   2483       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2484       *) { eval $ac_var=; unset $ac_var;} ;;
   2485       esac ;;
   2486     esac
   2487   done
   2488   (set) 2>&1 |
   2489     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2490     *${as_nl}ac_space=\ *)
   2491       sed -n \
   2492 	"s/'\''/'\''\\\\'\'''\''/g;
   2493 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2494       ;; #(
   2495     *)
   2496       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2497       ;;
   2498     esac |
   2499     sort
   2500 )
   2501     echo
   2502 
   2503     $as_echo "## ----------------- ##
   2504 ## Output variables. ##
   2505 ## ----------------- ##"
   2506     echo
   2507     for ac_var in $ac_subst_vars
   2508     do
   2509       eval ac_val=\$$ac_var
   2510       case $ac_val in
   2511       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2512       esac
   2513       $as_echo "$ac_var='\''$ac_val'\''"
   2514     done | sort
   2515     echo
   2516 
   2517     if test -n "$ac_subst_files"; then
   2518       $as_echo "## ------------------- ##
   2519 ## File substitutions. ##
   2520 ## ------------------- ##"
   2521       echo
   2522       for ac_var in $ac_subst_files
   2523       do
   2524 	eval ac_val=\$$ac_var
   2525 	case $ac_val in
   2526 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2527 	esac
   2528 	$as_echo "$ac_var='\''$ac_val'\''"
   2529       done | sort
   2530       echo
   2531     fi
   2532 
   2533     if test -s confdefs.h; then
   2534       $as_echo "## ----------- ##
   2535 ## confdefs.h. ##
   2536 ## ----------- ##"
   2537       echo
   2538       cat confdefs.h
   2539       echo
   2540     fi
   2541     test "$ac_signal" != 0 &&
   2542       $as_echo "$as_me: caught signal $ac_signal"
   2543     $as_echo "$as_me: exit $exit_status"
   2544   } >&5
   2545   rm -f core *.core core.conftest.* &&
   2546     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2547     exit $exit_status
   2548 ' 0
   2549 for ac_signal in 1 2 13 15; do
   2550   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2551 done
   2552 ac_signal=0
   2553 
   2554 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2555 rm -f -r conftest* confdefs.h
   2556 
   2557 $as_echo "/* confdefs.h */" > confdefs.h
   2558 
   2559 # Predefined preprocessor variables.
   2560 
   2561 cat >>confdefs.h <<_ACEOF
   2562 #define PACKAGE_NAME "$PACKAGE_NAME"
   2563 _ACEOF
   2564 
   2565 cat >>confdefs.h <<_ACEOF
   2566 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2567 _ACEOF
   2568 
   2569 cat >>confdefs.h <<_ACEOF
   2570 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2571 _ACEOF
   2572 
   2573 cat >>confdefs.h <<_ACEOF
   2574 #define PACKAGE_STRING "$PACKAGE_STRING"
   2575 _ACEOF
   2576 
   2577 cat >>confdefs.h <<_ACEOF
   2578 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2579 _ACEOF
   2580 
   2581 cat >>confdefs.h <<_ACEOF
   2582 #define PACKAGE_URL "$PACKAGE_URL"
   2583 _ACEOF
   2584 
   2585 
   2586 # Let the site file select an alternate cache file if it wants to.
   2587 # Prefer an explicitly selected file to automatically selected ones.
   2588 ac_site_file1=NONE
   2589 ac_site_file2=NONE
   2590 if test -n "$CONFIG_SITE"; then
   2591   # We do not want a PATH search for config.site.
   2592   case $CONFIG_SITE in #((
   2593     -*)  ac_site_file1=./$CONFIG_SITE;;
   2594     */*) ac_site_file1=$CONFIG_SITE;;
   2595     *)   ac_site_file1=./$CONFIG_SITE;;
   2596   esac
   2597 elif test "x$prefix" != xNONE; then
   2598   ac_site_file1=$prefix/share/config.site
   2599   ac_site_file2=$prefix/etc/config.site
   2600 else
   2601   ac_site_file1=$ac_default_prefix/share/config.site
   2602   ac_site_file2=$ac_default_prefix/etc/config.site
   2603 fi
   2604 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2605 do
   2606   test "x$ac_site_file" = xNONE && continue
   2607   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2608     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2609 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2610     sed 's/^/| /' "$ac_site_file" >&5
   2611     . "$ac_site_file" \
   2612       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2614 as_fn_error $? "failed to load site script $ac_site_file
   2615 See \`config.log' for more details" "$LINENO" 5; }
   2616   fi
   2617 done
   2618 
   2619 if test -r "$cache_file"; then
   2620   # Some versions of bash will fail to source /dev/null (special files
   2621   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2622   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2623     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2624 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2625     case $cache_file in
   2626       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2627       *)                      . "./$cache_file";;
   2628     esac
   2629   fi
   2630 else
   2631   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2632 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2633   >$cache_file
   2634 fi
   2635 
   2636 # Check that the precious variables saved in the cache have kept the same
   2637 # value.
   2638 ac_cache_corrupted=false
   2639 for ac_var in $ac_precious_vars; do
   2640   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2641   eval ac_new_set=\$ac_env_${ac_var}_set
   2642   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2643   eval ac_new_val=\$ac_env_${ac_var}_value
   2644   case $ac_old_set,$ac_new_set in
   2645     set,)
   2646       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2647 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2648       ac_cache_corrupted=: ;;
   2649     ,set)
   2650       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2651 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2652       ac_cache_corrupted=: ;;
   2653     ,);;
   2654     *)
   2655       if test "x$ac_old_val" != "x$ac_new_val"; then
   2656 	# differences in whitespace do not lead to failure.
   2657 	ac_old_val_w=`echo x $ac_old_val`
   2658 	ac_new_val_w=`echo x $ac_new_val`
   2659 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2660 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2661 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2662 	  ac_cache_corrupted=:
   2663 	else
   2664 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2665 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2666 	  eval $ac_var=\$ac_old_val
   2667 	fi
   2668 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2669 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2670 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2671 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2672       fi;;
   2673   esac
   2674   # Pass precious variables to config.status.
   2675   if test "$ac_new_set" = set; then
   2676     case $ac_new_val in
   2677     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2678     *) ac_arg=$ac_var=$ac_new_val ;;
   2679     esac
   2680     case " $ac_configure_args " in
   2681       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2682       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2683     esac
   2684   fi
   2685 done
   2686 if $ac_cache_corrupted; then
   2687   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2689   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2690 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2691   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2692 fi
   2693 ## -------------------- ##
   2694 ## Main body of script. ##
   2695 ## -------------------- ##
   2696 
   2697 ac_ext=c
   2698 ac_cpp='$CPP $CPPFLAGS'
   2699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2702 
   2703 
   2704 
   2705 
   2706 
   2707 
   2708 if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
   2709     # If we're building out-of-tree, we need to make sure the following
   2710     # resources get picked up before their $srcdir counterparts.
   2711     #   Objects/ -> typeslots.inc
   2712     #   Include/ -> Python-ast.h, graminit.h
   2713     #   Python/  -> importlib.h
   2714     # (A side effect of this is that these resources will automatically be
   2715     #  regenerated when building out-of-tree, regardless of whether or not
   2716     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade
   2717     #  off.)
   2718     BASECPPFLAGS="-IObjects -IInclude -IPython"
   2719 else
   2720     BASECPPFLAGS=""
   2721 fi
   2722 
   2723 
   2724 
   2725 
   2726 
   2727 if test -e $srcdir/.git
   2728 then
   2729 # Extract the first word of "git", so it can be a program name with args.
   2730 set dummy git; ac_word=$2
   2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2732 $as_echo_n "checking for $ac_word... " >&6; }
   2733 if ${ac_cv_prog_HAS_GIT+:} false; then :
   2734   $as_echo_n "(cached) " >&6
   2735 else
   2736   if test -n "$HAS_GIT"; then
   2737   ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
   2738 else
   2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2740 for as_dir in $PATH
   2741 do
   2742   IFS=$as_save_IFS
   2743   test -z "$as_dir" && as_dir=.
   2744     for ac_exec_ext in '' $ac_executable_extensions; do
   2745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2746     ac_cv_prog_HAS_GIT="found"
   2747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2748     break 2
   2749   fi
   2750 done
   2751   done
   2752 IFS=$as_save_IFS
   2753 
   2754   test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
   2755 fi
   2756 fi
   2757 HAS_GIT=$ac_cv_prog_HAS_GIT
   2758 if test -n "$HAS_GIT"; then
   2759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
   2760 $as_echo "$HAS_GIT" >&6; }
   2761 else
   2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2763 $as_echo "no" >&6; }
   2764 fi
   2765 
   2766 
   2767 else
   2768 HAS_GIT=no-repository
   2769 fi
   2770 if test $HAS_GIT = found
   2771 then
   2772     GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
   2773     GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
   2774     GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
   2775 else
   2776     GITVERSION=""
   2777     GITTAG=""
   2778     GITBRANCH=""
   2779 fi
   2780 
   2781 
   2782 ac_config_headers="$ac_config_headers pyconfig.h"
   2783 
   2784 
   2785 ac_aux_dir=
   2786 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2787   if test -f "$ac_dir/install-sh"; then
   2788     ac_aux_dir=$ac_dir
   2789     ac_install_sh="$ac_aux_dir/install-sh -c"
   2790     break
   2791   elif test -f "$ac_dir/install.sh"; then
   2792     ac_aux_dir=$ac_dir
   2793     ac_install_sh="$ac_aux_dir/install.sh -c"
   2794     break
   2795   elif test -f "$ac_dir/shtool"; then
   2796     ac_aux_dir=$ac_dir
   2797     ac_install_sh="$ac_aux_dir/shtool install -c"
   2798     break
   2799   fi
   2800 done
   2801 if test -z "$ac_aux_dir"; then
   2802   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2803 fi
   2804 
   2805 # These three variables are undocumented and unsupported,
   2806 # and are intended to be withdrawn in a future Autoconf release.
   2807 # They can cause serious problems if a builder's source tree is in a directory
   2808 # whose full name contains unusual characters.
   2809 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2810 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2811 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2812 
   2813 
   2814 # Make sure we can run config.sub.
   2815 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2816   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2817 
   2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2819 $as_echo_n "checking build system type... " >&6; }
   2820 if ${ac_cv_build+:} false; then :
   2821   $as_echo_n "(cached) " >&6
   2822 else
   2823   ac_build_alias=$build_alias
   2824 test "x$ac_build_alias" = x &&
   2825   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2826 test "x$ac_build_alias" = x &&
   2827   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2828 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2829   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2830 
   2831 fi
   2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2833 $as_echo "$ac_cv_build" >&6; }
   2834 case $ac_cv_build in
   2835 *-*-*) ;;
   2836 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2837 esac
   2838 build=$ac_cv_build
   2839 ac_save_IFS=$IFS; IFS='-'
   2840 set x $ac_cv_build
   2841 shift
   2842 build_cpu=$1
   2843 build_vendor=$2
   2844 shift; shift
   2845 # Remember, the first character of IFS is used to create $*,
   2846 # except with old shells:
   2847 build_os=$*
   2848 IFS=$ac_save_IFS
   2849 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2850 
   2851 
   2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2853 $as_echo_n "checking host system type... " >&6; }
   2854 if ${ac_cv_host+:} false; then :
   2855   $as_echo_n "(cached) " >&6
   2856 else
   2857   if test "x$host_alias" = x; then
   2858   ac_cv_host=$ac_cv_build
   2859 else
   2860   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2861     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2862 fi
   2863 
   2864 fi
   2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2866 $as_echo "$ac_cv_host" >&6; }
   2867 case $ac_cv_host in
   2868 *-*-*) ;;
   2869 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2870 esac
   2871 host=$ac_cv_host
   2872 ac_save_IFS=$IFS; IFS='-'
   2873 set x $ac_cv_host
   2874 shift
   2875 host_cpu=$1
   2876 host_vendor=$2
   2877 shift; shift
   2878 # Remember, the first character of IFS is used to create $*,
   2879 # except with old shells:
   2880 host_os=$*
   2881 IFS=$ac_save_IFS
   2882 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2883 
   2884 
   2885 
   2886 
   2887 
   2888 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile
   2889 rm -f pybuilddir.txt
   2890 
   2891 for ac_prog in python$PACKAGE_VERSION python3 python
   2892 do
   2893   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2894 set dummy $ac_prog; ac_word=$2
   2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2896 $as_echo_n "checking for $ac_word... " >&6; }
   2897 if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
   2898   $as_echo_n "(cached) " >&6
   2899 else
   2900   if test -n "$PYTHON_FOR_REGEN"; then
   2901   ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
   2902 else
   2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2904 for as_dir in $PATH
   2905 do
   2906   IFS=$as_save_IFS
   2907   test -z "$as_dir" && as_dir=.
   2908     for ac_exec_ext in '' $ac_executable_extensions; do
   2909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2910     ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
   2911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2912     break 2
   2913   fi
   2914 done
   2915   done
   2916 IFS=$as_save_IFS
   2917 
   2918 fi
   2919 fi
   2920 PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
   2921 if test -n "$PYTHON_FOR_REGEN"; then
   2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
   2923 $as_echo "$PYTHON_FOR_REGEN" >&6; }
   2924 else
   2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2926 $as_echo "no" >&6; }
   2927 fi
   2928 
   2929 
   2930   test -n "$PYTHON_FOR_REGEN" && break
   2931 done
   2932 test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
   2933 
   2934 
   2935 
   2936 if test "$cross_compiling" = yes; then
   2937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
   2938 $as_echo_n "checking for python interpreter for cross build... " >&6; }
   2939     if test -z "$PYTHON_FOR_BUILD"; then
   2940         for interp in python$PACKAGE_VERSION python3 python; do
   2941 	    which $interp >/dev/null 2>&1 || continue
   2942 	    if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then
   2943 	        break
   2944 	    fi
   2945             interp=
   2946 	done
   2947         if test x$interp = x; then
   2948 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
   2949 	fi
   2950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
   2951 $as_echo "$interp" >&6; }
   2952 	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
   2953     fi
   2954 elif test "$cross_compiling" = maybe; then
   2955     as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
   2956 else
   2957     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
   2958 fi
   2959 
   2960 
   2961 
   2962 if test "$prefix" != "/"; then
   2963     prefix=`echo "$prefix" | sed -e 's/\/$//g'`
   2964 fi
   2965 
   2966 
   2967 
   2968 
   2969 # We don't use PACKAGE_ variables, and they cause conflicts
   2970 # with other autoconf-based packages that include Python.h
   2971 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
   2972 rm confdefs.h
   2973 mv confdefs.h.new confdefs.h
   2974 
   2975 
   2976 VERSION=3.7
   2977 
   2978 # Version number of Python's own shared library file.
   2979 
   2980 SOVERSION=1.0
   2981 
   2982 # The later defininition of _XOPEN_SOURCE disables certain features
   2983 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
   2984 
   2985 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   2986 
   2987 
   2988 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
   2989 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
   2990 # them.
   2991 
   2992 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
   2993 
   2994 
   2995 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
   2996 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
   2997 # them.
   2998 
   2999 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
   3000 
   3001 
   3002 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
   3003 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
   3004 # them.
   3005 
   3006 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
   3007 
   3008 
   3009 
   3010 define_xopen_source=yes
   3011 
   3012 # Arguments passed to configure.
   3013 
   3014 CONFIG_ARGS="$ac_configure_args"
   3015 
   3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
   3017 $as_echo_n "checking for --enable-universalsdk... " >&6; }
   3018 # Check whether --enable-universalsdk was given.
   3019 if test "${enable_universalsdk+set}" = set; then :
   3020   enableval=$enable_universalsdk;
   3021 	case $enableval in
   3022 	yes)
   3023 		# Locate the best usable SDK, see Mac/README for more
   3024 		# information
   3025 		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
   3026 		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
   3027 		then
   3028 			enableval=/Developer/SDKs/MacOSX10.4u.sdk
   3029 			if test ! -d "${enableval}"
   3030 			then
   3031 				enableval=/
   3032 			fi
   3033 		fi
   3034 		;;
   3035 	esac
   3036 	case $enableval in
   3037 	no)
   3038 		UNIVERSALSDK=
   3039 		enable_universalsdk=
   3040 		;;
   3041 	*)
   3042 		UNIVERSALSDK=$enableval
   3043 		if test ! -d "${UNIVERSALSDK}"
   3044 		then
   3045 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
   3046 		fi
   3047 		;;
   3048 	esac
   3049 
   3050 
   3051 else
   3052 
   3053    	UNIVERSALSDK=
   3054 	enable_universalsdk=
   3055 
   3056 fi
   3057 
   3058 if test -n "${UNIVERSALSDK}"
   3059 then
   3060 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
   3061 $as_echo "${UNIVERSALSDK}" >&6; }
   3062 else
   3063 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3064 $as_echo "no" >&6; }
   3065 fi
   3066 
   3067 
   3068 
   3069 ARCH_RUN_32BIT=""
   3070 
   3071 # For backward compatibility reasons we prefer to select '32-bit' if available,
   3072 # otherwise use 'intel'
   3073 UNIVERSAL_ARCHS="32-bit"
   3074 if test "`uname -s`" = "Darwin"
   3075 then
   3076 	if test -n "${UNIVERSALSDK}"
   3077 	then
   3078 		if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
   3079 		then
   3080 			UNIVERSAL_ARCHS="intel"
   3081 		fi
   3082 	fi
   3083 fi
   3084 
   3085 
   3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
   3087 $as_echo_n "checking for --with-universal-archs... " >&6; }
   3088 
   3089 # Check whether --with-universal-archs was given.
   3090 if test "${with_universal_archs+set}" = set; then :
   3091   withval=$with_universal_archs;
   3092 	UNIVERSAL_ARCHS="$withval"
   3093 
   3094 fi
   3095 
   3096 if test -n "${UNIVERSALSDK}"
   3097 then
   3098 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
   3099 $as_echo "${UNIVERSAL_ARCHS}" >&6; }
   3100 else
   3101 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3102 $as_echo "no" >&6; }
   3103 fi
   3104 
   3105 
   3106 # Check whether --with-framework-name was given.
   3107 if test "${with_framework_name+set}" = set; then :
   3108   withval=$with_framework_name;
   3109     PYTHONFRAMEWORK=${withval}
   3110     PYTHONFRAMEWORKDIR=${withval}.framework
   3111     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
   3112 
   3113 else
   3114 
   3115     PYTHONFRAMEWORK=Python
   3116     PYTHONFRAMEWORKDIR=Python.framework
   3117     PYTHONFRAMEWORKIDENTIFIER=org.python.python
   3118 
   3119 fi
   3120 
   3121 # Check whether --enable-framework was given.
   3122 if test "${enable_framework+set}" = set; then :
   3123   enableval=$enable_framework;
   3124 	case $enableval in
   3125 	yes)
   3126 		enableval=/Library/Frameworks
   3127 	esac
   3128 	case $enableval in
   3129 	no)
   3130 		PYTHONFRAMEWORK=
   3131 		PYTHONFRAMEWORKDIR=no-framework
   3132 		PYTHONFRAMEWORKPREFIX=
   3133 		PYTHONFRAMEWORKINSTALLDIR=
   3134 		FRAMEWORKINSTALLFIRST=
   3135 		FRAMEWORKINSTALLLAST=
   3136 		FRAMEWORKALTINSTALLFIRST=
   3137 		FRAMEWORKALTINSTALLLAST=
   3138 		FRAMEWORKPYTHONW=
   3139 		if test "x${prefix}" = "xNONE"; then
   3140 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
   3141 		else
   3142 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
   3143 		fi
   3144 		enable_framework=
   3145 		;;
   3146 	*)
   3147 		PYTHONFRAMEWORKPREFIX="${enableval}"
   3148 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
   3149 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
   3150 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
   3151 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
   3152 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
   3153 		FRAMEWORKPYTHONW="frameworkpythonw"
   3154 		FRAMEWORKINSTALLAPPSPREFIX="/Applications"
   3155 
   3156 		if test "x${prefix}" = "xNONE" ; then
   3157 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
   3158 
   3159 		else
   3160 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
   3161 		fi
   3162 
   3163 		case "${enableval}" in
   3164 		/System*)
   3165 			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
   3166 			if test "${prefix}" = "NONE" ; then
   3167 				# See below
   3168 				FRAMEWORKUNIXTOOLSPREFIX="/usr"
   3169 			fi
   3170 			;;
   3171 
   3172 		/Library*)
   3173 			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
   3174 			;;
   3175 
   3176 		*/Library/Frameworks)
   3177 			MDIR="`dirname "${enableval}"`"
   3178 			MDIR="`dirname "${MDIR}"`"
   3179 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
   3180 
   3181 			if test "${prefix}" = "NONE"; then
   3182 				# User hasn't specified the
   3183 				# --prefix option, but wants to install
   3184 				# the framework in a non-default location,
   3185 				# ensure that the compatibility links get
   3186 				# installed relative to that prefix as well
   3187 				# instead of in /usr/local.
   3188 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
   3189 			fi
   3190 			;;
   3191 
   3192 		*)
   3193 			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
   3194 			;;
   3195 		esac
   3196 
   3197 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
   3198 
   3199 		# Add files for Mac specific code to the list of output
   3200 		# files:
   3201 		ac_config_files="$ac_config_files Mac/Makefile"
   3202 
   3203 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
   3204 
   3205 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
   3206 
   3207 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
   3208 
   3209 	esac
   3210 
   3211 else
   3212 
   3213 	PYTHONFRAMEWORK=
   3214 	PYTHONFRAMEWORKDIR=no-framework
   3215 	PYTHONFRAMEWORKPREFIX=
   3216 	PYTHONFRAMEWORKINSTALLDIR=
   3217 	FRAMEWORKINSTALLFIRST=
   3218 	FRAMEWORKINSTALLLAST=
   3219 	FRAMEWORKALTINSTALLFIRST=
   3220 	FRAMEWORKALTINSTALLLAST=
   3221 	FRAMEWORKPYTHONW=
   3222 	if test "x${prefix}" = "xNONE" ; then
   3223 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
   3224 	else
   3225 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
   3226 	fi
   3227 	enable_framework=
   3228 
   3229 
   3230 fi
   3231 
   3232 
   3233 
   3234 
   3235 
   3236 
   3237 
   3238 
   3239 
   3240 
   3241 
   3242 
   3243 
   3244 
   3245 
   3246 cat >>confdefs.h <<_ACEOF
   3247 #define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}"
   3248 _ACEOF
   3249 
   3250 
   3251 ##AC_ARG_WITH(dyld,
   3252 ##            AS_HELP_STRING([--with-dyld],
   3253 ##                           [Use (OpenStep|Rhapsody) dynamic linker]))
   3254 ##
   3255 # Set name for machine-dependent library files
   3256 
   3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
   3258 $as_echo_n "checking MACHDEP... " >&6; }
   3259 if test -z "$MACHDEP"
   3260 then
   3261     # avoid using uname for cross builds
   3262     if test "$cross_compiling" = yes; then
   3263        # ac_sys_system and ac_sys_release are used for setting
   3264        # a lot of different things including 'define_xopen_source'
   3265        # in the case statement below.
   3266 	case "$host" in
   3267 	*-*-linux-android*)
   3268 		ac_sys_system=Linux-android
   3269 		;;
   3270 	*-*-linux*)
   3271 		ac_sys_system=Linux
   3272 		;;
   3273 	*-*-cygwin*)
   3274 		ac_sys_system=Cygwin
   3275 		;;
   3276 	*)
   3277 		# for now, limit cross builds to known configurations
   3278 		MACHDEP="unknown"
   3279 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
   3280 	esac
   3281 	ac_sys_release=
   3282     else
   3283 	ac_sys_system=`uname -s`
   3284 	if test "$ac_sys_system" = "AIX" \
   3285 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
   3286 		ac_sys_release=`uname -v`
   3287 	else
   3288 		ac_sys_release=`uname -r`
   3289 	fi
   3290     fi
   3291     ac_md_system=`echo $ac_sys_system |
   3292 			tr -d '/ ' | tr '[A-Z]' '[a-z]'`
   3293     ac_md_release=`echo $ac_sys_release |
   3294 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
   3295     MACHDEP="$ac_md_system$ac_md_release"
   3296 
   3297     case $MACHDEP in
   3298 	linux*) MACHDEP="linux";;
   3299 	cygwin*) MACHDEP="cygwin";;
   3300 	darwin*) MACHDEP="darwin";;
   3301 	'')	MACHDEP="unknown";;
   3302     esac
   3303 fi
   3304 
   3305 
   3306 if test "$cross_compiling" = yes; then
   3307 	case "$host" in
   3308 	*-*-linux*)
   3309 		case "$host_cpu" in
   3310 		arm*)
   3311 			_host_cpu=arm
   3312 			;;
   3313 		*)
   3314 			_host_cpu=$host_cpu
   3315 		esac
   3316 		;;
   3317 	*-*-cygwin*)
   3318 		_host_cpu=
   3319 		;;
   3320 	*)
   3321 		# for now, limit cross builds to known configurations
   3322 		MACHDEP="unknown"
   3323 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
   3324 	esac
   3325 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
   3326 fi
   3327 
   3328 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
   3329 # disable features if it is defined, without any means to access these
   3330 # features as extensions. For these systems, we skip the definition of
   3331 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
   3332 # some feature, make sure there is no alternative way to access this
   3333 # feature. Also, when using wildcards, make sure you have verified the
   3334 # need for not defining _XOPEN_SOURCE on all systems matching the
   3335 # wildcard, and that the wildcard does not include future systems
   3336 # (which may remove their limitations).
   3337 case $ac_sys_system/$ac_sys_release in
   3338   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
   3339   # even though select is a POSIX function. Reported by J. Ribbens.
   3340   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
   3341   # In addition, Stefan Krah confirms that issue #1244610 exists through
   3342   # OpenBSD 4.6, but is fixed in 4.7.
   3343   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
   3344     define_xopen_source=no
   3345     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
   3346     # also defined. This can be overridden by defining _BSD_SOURCE
   3347     # As this has a different meaning on Linux, only define it on OpenBSD
   3348 
   3349 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
   3350 
   3351     ;;
   3352   OpenBSD/*)
   3353     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
   3354     # also defined. This can be overridden by defining _BSD_SOURCE
   3355     # As this has a different meaning on Linux, only define it on OpenBSD
   3356 
   3357 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
   3358 
   3359     ;;
   3360   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
   3361   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
   3362   # Marc Recht
   3363   NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
   3364     define_xopen_source=no;;
   3365   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
   3366   # request to enable features supported by the standard as a request
   3367   # to disable features not supported by the standard.  The best way
   3368   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
   3369   # entirely and define __EXTENSIONS__ instead.
   3370   SunOS/*)
   3371     define_xopen_source=no;;
   3372   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
   3373   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
   3374   # Reconfirmed for 7.1.4 by Martin v. Loewis.
   3375   OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
   3376     define_xopen_source=no;;
   3377   # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
   3378   # but used in struct sockaddr.sa_family. Reported by Tim Rice.
   3379   SCO_SV/3.2)
   3380     define_xopen_source=no;;
   3381   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
   3382   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
   3383   # identifies itself as Darwin/7.*
   3384   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
   3385   # disables platform specific features beyond repair.
   3386   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
   3387   # has no effect, don't bother defining them
   3388   Darwin/[6789].*)
   3389     define_xopen_source=no;;
   3390   Darwin/1[0-9].*)
   3391     define_xopen_source=no;;
   3392   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
   3393   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
   3394   # or has another value. By not (re)defining it, the defaults come in place.
   3395   AIX/4)
   3396     define_xopen_source=no;;
   3397   AIX/5)
   3398     if test `uname -r` -eq 1; then
   3399       define_xopen_source=no
   3400     fi
   3401     ;;
   3402   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
   3403   # defining NI_NUMERICHOST.
   3404   QNX/6.3.2)
   3405     define_xopen_source=no
   3406     ;;
   3407 
   3408 esac
   3409 
   3410 if test $define_xopen_source = yes
   3411 then
   3412   # X/Open 7, incorporating POSIX.1-2008
   3413 
   3414 $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
   3415 
   3416 
   3417   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
   3418   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
   3419   # several APIs are not declared. Since this is also needed in some
   3420   # cases for HP-UX, we define it globally.
   3421 
   3422 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
   3423 
   3424 
   3425 
   3426 $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
   3427 
   3428 fi
   3429 
   3430 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
   3431 case $ac_sys_system in
   3432   hp*|HP*)
   3433     define_stdc_a1=yes;;
   3434   *)
   3435     define_stdc_a1=no;;
   3436 esac
   3437 
   3438 if test $define_stdc_a1 = yes
   3439 then
   3440 
   3441 $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
   3442 
   3443 fi
   3444 
   3445 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
   3446 # it may influence the way we can build extensions, so distutils
   3447 # needs to check it
   3448 
   3449 
   3450 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
   3451 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
   3452 
   3453 # checks for alternative programs
   3454 
   3455 # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just
   3456 # for debug/optimization stuff.  BASECFLAGS is for flags that are required
   3457 # just to get things to compile and link.  Users are free to override OPT
   3458 # when running configure or make.  The build should not break if they do.
   3459 # BASECFLAGS should generally not be messed with, however.
   3460 
   3461 # XXX shouldn't some/most/all of this code be merged with the stuff later
   3462 # on that fiddles with OPT and BASECFLAGS?
   3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
   3464 $as_echo_n "checking for --without-gcc... " >&6; }
   3465 
   3466 # Check whether --with-gcc was given.
   3467 if test "${with_gcc+set}" = set; then :
   3468   withval=$with_gcc;
   3469 	case $withval in
   3470 	no)	CC=${CC:-cc}
   3471 		without_gcc=yes;;
   3472 	yes)	CC=gcc
   3473 		without_gcc=no;;
   3474 	*)	CC=$withval
   3475 		without_gcc=$withval;;
   3476 	esac
   3477 else
   3478 
   3479 	case $ac_sys_system in
   3480 	AIX*)   CC=${CC:-xlc_r}
   3481 		without_gcc=;;
   3482 	*)	without_gcc=no;;
   3483 	esac
   3484 fi
   3485 
   3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
   3487 $as_echo "$without_gcc" >&6; }
   3488 
   3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5
   3490 $as_echo_n "checking for --with-icc... " >&6; }
   3491 
   3492 # Check whether --with-icc was given.
   3493 if test "${with_icc+set}" = set; then :
   3494   withval=$with_icc;
   3495 	case $withval in
   3496 	no)	CC=${CC:-cc}
   3497 		with_icc=no;;
   3498 	yes)	CC=icc
   3499 		CXX=icpc
   3500 		with_icc=yes;;
   3501 	*)	CC=$withval
   3502 		with_icc=$withval;;
   3503 	esac
   3504 else
   3505 
   3506 	with_icc=no
   3507 fi
   3508 
   3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5
   3510 $as_echo "$with_icc" >&6; }
   3511 
   3512 # If the user switches compilers, we can't believe the cache
   3513 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
   3514 then
   3515   as_fn_error $? "cached CC is different -- throw away $cache_file
   3516 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
   3517 fi
   3518 
   3519 # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
   3520 # when the compiler supports them, but we don't always want -O2, and
   3521 # we set -g later.
   3522 if test -z "$CFLAGS"; then
   3523         CFLAGS=
   3524 fi
   3525 
   3526 if test "$ac_sys_system" = "Darwin"
   3527 then
   3528 	# Compiler selection on MacOSX is more complicated than
   3529 	# AC_PROG_CC can handle, see Mac/README for more
   3530 	# information
   3531 	if test -z "${CC}"
   3532 	then
   3533 		found_gcc=
   3534 		found_clang=
   3535 		as_save_IFS=$IFS; IFS=:
   3536 		for as_dir in $PATH
   3537 		do
   3538 			IFS=$as_save_IFS
   3539 			if test -x "${as_dir}/gcc"; then
   3540 				if test -z "${found_gcc}"; then
   3541 					found_gcc="${as_dir}/gcc"
   3542 				fi
   3543 			fi
   3544 			if test -x "${as_dir}/clang"; then
   3545 				if test -z "${found_clang}"; then
   3546 					found_clang="${as_dir}/clang"
   3547 				fi
   3548 			fi
   3549 		done
   3550 		IFS=$as_save_IFS
   3551 
   3552 		if test -n "$found_gcc" -a -n "$found_clang"
   3553 		then
   3554 			if test -n "`"$found_gcc" --version | grep llvm-gcc`"
   3555 			then
   3556 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
   3557 $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
   3558 				CC="$found_clang"
   3559 				CXX="$found_clang++"
   3560 			fi
   3561 
   3562 
   3563 		elif test -z "$found_gcc" -a -n "$found_clang"
   3564 		then
   3565 			{ $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
   3566 $as_echo "$as_me: No GCC found, use CLANG" >&6;}
   3567 			CC="$found_clang"
   3568 			CXX="$found_clang++"
   3569 
   3570 		elif test -z "$found_gcc" -a -z "$found_clang"
   3571 		then
   3572 			found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
   3573 			if test -n "${found_clang}"
   3574 			then
   3575 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
   3576 $as_echo "$as_me: Using clang from Xcode.app" >&6;}
   3577 				CC="${found_clang}"
   3578 				CXX="`/usr/bin/xcrun -find clang++`"
   3579 
   3580 			# else: use default behaviour
   3581 			fi
   3582 		fi
   3583 	fi
   3584 fi
   3585 ac_ext=c
   3586 ac_cpp='$CPP $CPPFLAGS'
   3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3590 if test -n "$ac_tool_prefix"; then
   3591   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3592 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3594 $as_echo_n "checking for $ac_word... " >&6; }
   3595 if ${ac_cv_prog_CC+:} false; then :
   3596   $as_echo_n "(cached) " >&6
   3597 else
   3598   if test -n "$CC"; then
   3599   ac_cv_prog_CC="$CC" # Let the user override the test.
   3600 else
   3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3602 for as_dir in $PATH
   3603 do
   3604   IFS=$as_save_IFS
   3605   test -z "$as_dir" && as_dir=.
   3606     for ac_exec_ext in '' $ac_executable_extensions; do
   3607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3608     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3610     break 2
   3611   fi
   3612 done
   3613   done
   3614 IFS=$as_save_IFS
   3615 
   3616 fi
   3617 fi
   3618 CC=$ac_cv_prog_CC
   3619 if test -n "$CC"; then
   3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3621 $as_echo "$CC" >&6; }
   3622 else
   3623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3624 $as_echo "no" >&6; }
   3625 fi
   3626 
   3627 
   3628 fi
   3629 if test -z "$ac_cv_prog_CC"; then
   3630   ac_ct_CC=$CC
   3631   # Extract the first word of "gcc", so it can be a program name with args.
   3632 set dummy gcc; ac_word=$2
   3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3634 $as_echo_n "checking for $ac_word... " >&6; }
   3635 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3636   $as_echo_n "(cached) " >&6
   3637 else
   3638   if test -n "$ac_ct_CC"; then
   3639   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3640 else
   3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3642 for as_dir in $PATH
   3643 do
   3644   IFS=$as_save_IFS
   3645   test -z "$as_dir" && as_dir=.
   3646     for ac_exec_ext in '' $ac_executable_extensions; do
   3647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3648     ac_cv_prog_ac_ct_CC="gcc"
   3649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3650     break 2
   3651   fi
   3652 done
   3653   done
   3654 IFS=$as_save_IFS
   3655 
   3656 fi
   3657 fi
   3658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3659 if test -n "$ac_ct_CC"; then
   3660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3661 $as_echo "$ac_ct_CC" >&6; }
   3662 else
   3663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3664 $as_echo "no" >&6; }
   3665 fi
   3666 
   3667   if test "x$ac_ct_CC" = x; then
   3668     CC=""
   3669   else
   3670     case $cross_compiling:$ac_tool_warned in
   3671 yes:)
   3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3674 ac_tool_warned=yes ;;
   3675 esac
   3676     CC=$ac_ct_CC
   3677   fi
   3678 else
   3679   CC="$ac_cv_prog_CC"
   3680 fi
   3681 
   3682 if test -z "$CC"; then
   3683           if test -n "$ac_tool_prefix"; then
   3684     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3685 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3687 $as_echo_n "checking for $ac_word... " >&6; }
   3688 if ${ac_cv_prog_CC+:} false; then :
   3689   $as_echo_n "(cached) " >&6
   3690 else
   3691   if test -n "$CC"; then
   3692   ac_cv_prog_CC="$CC" # Let the user override the test.
   3693 else
   3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3695 for as_dir in $PATH
   3696 do
   3697   IFS=$as_save_IFS
   3698   test -z "$as_dir" && as_dir=.
   3699     for ac_exec_ext in '' $ac_executable_extensions; do
   3700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3701     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3703     break 2
   3704   fi
   3705 done
   3706   done
   3707 IFS=$as_save_IFS
   3708 
   3709 fi
   3710 fi
   3711 CC=$ac_cv_prog_CC
   3712 if test -n "$CC"; then
   3713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3714 $as_echo "$CC" >&6; }
   3715 else
   3716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3717 $as_echo "no" >&6; }
   3718 fi
   3719 
   3720 
   3721   fi
   3722 fi
   3723 if test -z "$CC"; then
   3724   # Extract the first word of "cc", so it can be a program name with args.
   3725 set dummy cc; ac_word=$2
   3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3727 $as_echo_n "checking for $ac_word... " >&6; }
   3728 if ${ac_cv_prog_CC+:} false; then :
   3729   $as_echo_n "(cached) " >&6
   3730 else
   3731   if test -n "$CC"; then
   3732   ac_cv_prog_CC="$CC" # Let the user override the test.
   3733 else
   3734   ac_prog_rejected=no
   3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3736 for as_dir in $PATH
   3737 do
   3738   IFS=$as_save_IFS
   3739   test -z "$as_dir" && as_dir=.
   3740     for ac_exec_ext in '' $ac_executable_extensions; do
   3741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3742     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3743        ac_prog_rejected=yes
   3744        continue
   3745      fi
   3746     ac_cv_prog_CC="cc"
   3747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3748     break 2
   3749   fi
   3750 done
   3751   done
   3752 IFS=$as_save_IFS
   3753 
   3754 if test $ac_prog_rejected = yes; then
   3755   # We found a bogon in the path, so make sure we never use it.
   3756   set dummy $ac_cv_prog_CC
   3757   shift
   3758   if test $# != 0; then
   3759     # We chose a different compiler from the bogus one.
   3760     # However, it has the same basename, so the bogon will be chosen
   3761     # first if we set CC to just the basename; use the full file name.
   3762     shift
   3763     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3764   fi
   3765 fi
   3766 fi
   3767 fi
   3768 CC=$ac_cv_prog_CC
   3769 if test -n "$CC"; then
   3770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3771 $as_echo "$CC" >&6; }
   3772 else
   3773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3774 $as_echo "no" >&6; }
   3775 fi
   3776 
   3777 
   3778 fi
   3779 if test -z "$CC"; then
   3780   if test -n "$ac_tool_prefix"; then
   3781   for ac_prog in cl.exe
   3782   do
   3783     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3786 $as_echo_n "checking for $ac_word... " >&6; }
   3787 if ${ac_cv_prog_CC+:} false; then :
   3788   $as_echo_n "(cached) " >&6
   3789 else
   3790   if test -n "$CC"; then
   3791   ac_cv_prog_CC="$CC" # Let the user override the test.
   3792 else
   3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3794 for as_dir in $PATH
   3795 do
   3796   IFS=$as_save_IFS
   3797   test -z "$as_dir" && as_dir=.
   3798     for ac_exec_ext in '' $ac_executable_extensions; do
   3799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3800     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3802     break 2
   3803   fi
   3804 done
   3805   done
   3806 IFS=$as_save_IFS
   3807 
   3808 fi
   3809 fi
   3810 CC=$ac_cv_prog_CC
   3811 if test -n "$CC"; then
   3812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3813 $as_echo "$CC" >&6; }
   3814 else
   3815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3816 $as_echo "no" >&6; }
   3817 fi
   3818 
   3819 
   3820     test -n "$CC" && break
   3821   done
   3822 fi
   3823 if test -z "$CC"; then
   3824   ac_ct_CC=$CC
   3825   for ac_prog in cl.exe
   3826 do
   3827   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3828 set dummy $ac_prog; ac_word=$2
   3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3830 $as_echo_n "checking for $ac_word... " >&6; }
   3831 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3832   $as_echo_n "(cached) " >&6
   3833 else
   3834   if test -n "$ac_ct_CC"; then
   3835   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3836 else
   3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3838 for as_dir in $PATH
   3839 do
   3840   IFS=$as_save_IFS
   3841   test -z "$as_dir" && as_dir=.
   3842     for ac_exec_ext in '' $ac_executable_extensions; do
   3843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3844     ac_cv_prog_ac_ct_CC="$ac_prog"
   3845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3846     break 2
   3847   fi
   3848 done
   3849   done
   3850 IFS=$as_save_IFS
   3851 
   3852 fi
   3853 fi
   3854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3855 if test -n "$ac_ct_CC"; then
   3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3857 $as_echo "$ac_ct_CC" >&6; }
   3858 else
   3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3860 $as_echo "no" >&6; }
   3861 fi
   3862 
   3863 
   3864   test -n "$ac_ct_CC" && break
   3865 done
   3866 
   3867   if test "x$ac_ct_CC" = x; then
   3868     CC=""
   3869   else
   3870     case $cross_compiling:$ac_tool_warned in
   3871 yes:)
   3872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3874 ac_tool_warned=yes ;;
   3875 esac
   3876     CC=$ac_ct_CC
   3877   fi
   3878 fi
   3879 
   3880 fi
   3881 
   3882 
   3883 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3885 as_fn_error $? "no acceptable C compiler found in \$PATH
   3886 See \`config.log' for more details" "$LINENO" 5; }
   3887 
   3888 # Provide some information about the compiler.
   3889 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3890 set X $ac_compile
   3891 ac_compiler=$2
   3892 for ac_option in --version -v -V -qversion; do
   3893   { { ac_try="$ac_compiler $ac_option >&5"
   3894 case "(($ac_try" in
   3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3896   *) ac_try_echo=$ac_try;;
   3897 esac
   3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3899 $as_echo "$ac_try_echo"; } >&5
   3900   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3901   ac_status=$?
   3902   if test -s conftest.err; then
   3903     sed '10a\
   3904 ... rest of stderr output deleted ...
   3905          10q' conftest.err >conftest.er1
   3906     cat conftest.er1 >&5
   3907   fi
   3908   rm -f conftest.er1 conftest.err
   3909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3910   test $ac_status = 0; }
   3911 done
   3912 
   3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3914 /* end confdefs.h.  */
   3915 
   3916 int
   3917 main ()
   3918 {
   3919 
   3920   ;
   3921   return 0;
   3922 }
   3923 _ACEOF
   3924 ac_clean_files_save=$ac_clean_files
   3925 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3926 # Try to create an executable without -o first, disregard a.out.
   3927 # It will help us diagnose broken compilers, and finding out an intuition
   3928 # of exeext.
   3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3930 $as_echo_n "checking whether the C compiler works... " >&6; }
   3931 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3932 
   3933 # The possible output files:
   3934 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3935 
   3936 ac_rmfiles=
   3937 for ac_file in $ac_files
   3938 do
   3939   case $ac_file in
   3940     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3941     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3942   esac
   3943 done
   3944 rm -f $ac_rmfiles
   3945 
   3946 if { { ac_try="$ac_link_default"
   3947 case "(($ac_try" in
   3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3949   *) ac_try_echo=$ac_try;;
   3950 esac
   3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3952 $as_echo "$ac_try_echo"; } >&5
   3953   (eval "$ac_link_default") 2>&5
   3954   ac_status=$?
   3955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3956   test $ac_status = 0; }; then :
   3957   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3958 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3959 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3960 # so that the user can short-circuit this test for compilers unknown to
   3961 # Autoconf.
   3962 for ac_file in $ac_files ''
   3963 do
   3964   test -f "$ac_file" || continue
   3965   case $ac_file in
   3966     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3967 	;;
   3968     [ab].out )
   3969 	# We found the default executable, but exeext='' is most
   3970 	# certainly right.
   3971 	break;;
   3972     *.* )
   3973 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3974 	then :; else
   3975 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3976 	fi
   3977 	# We set ac_cv_exeext here because the later test for it is not
   3978 	# safe: cross compilers may not add the suffix if given an `-o'
   3979 	# argument, so we may need to know it at that point already.
   3980 	# Even if this section looks crufty: it has the advantage of
   3981 	# actually working.
   3982 	break;;
   3983     * )
   3984 	break;;
   3985   esac
   3986 done
   3987 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3988 
   3989 else
   3990   ac_file=''
   3991 fi
   3992 if test -z "$ac_file"; then :
   3993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3994 $as_echo "no" >&6; }
   3995 $as_echo "$as_me: failed program was:" >&5
   3996 sed 's/^/| /' conftest.$ac_ext >&5
   3997 
   3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4000 as_fn_error 77 "C compiler cannot create executables
   4001 See \`config.log' for more details" "$LINENO" 5; }
   4002 else
   4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4004 $as_echo "yes" >&6; }
   4005 fi
   4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   4007 $as_echo_n "checking for C compiler default output file name... " >&6; }
   4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   4009 $as_echo "$ac_file" >&6; }
   4010 ac_exeext=$ac_cv_exeext
   4011 
   4012 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   4013 ac_clean_files=$ac_clean_files_save
   4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   4015 $as_echo_n "checking for suffix of executables... " >&6; }
   4016 if { { ac_try="$ac_link"
   4017 case "(($ac_try" in
   4018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4019   *) ac_try_echo=$ac_try;;
   4020 esac
   4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4022 $as_echo "$ac_try_echo"; } >&5
   4023   (eval "$ac_link") 2>&5
   4024   ac_status=$?
   4025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4026   test $ac_status = 0; }; then :
   4027   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   4028 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   4029 # work properly (i.e., refer to `conftest.exe'), while it won't with
   4030 # `rm'.
   4031 for ac_file in conftest.exe conftest conftest.*; do
   4032   test -f "$ac_file" || continue
   4033   case $ac_file in
   4034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4035     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4036 	  break;;
   4037     * ) break;;
   4038   esac
   4039 done
   4040 else
   4041   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4043 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4044 See \`config.log' for more details" "$LINENO" 5; }
   4045 fi
   4046 rm -f conftest conftest$ac_cv_exeext
   4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4048 $as_echo "$ac_cv_exeext" >&6; }
   4049 
   4050 rm -f conftest.$ac_ext
   4051 EXEEXT=$ac_cv_exeext
   4052 ac_exeext=$EXEEXT
   4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4054 /* end confdefs.h.  */
   4055 #include <stdio.h>
   4056 int
   4057 main ()
   4058 {
   4059 FILE *f = fopen ("conftest.out", "w");
   4060  return ferror (f) || fclose (f) != 0;
   4061 
   4062   ;
   4063   return 0;
   4064 }
   4065 _ACEOF
   4066 ac_clean_files="$ac_clean_files conftest.out"
   4067 # Check that the compiler produces executables we can run.  If not, either
   4068 # the compiler is broken, or we cross compile.
   4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4070 $as_echo_n "checking whether we are cross compiling... " >&6; }
   4071 if test "$cross_compiling" != yes; then
   4072   { { ac_try="$ac_link"
   4073 case "(($ac_try" in
   4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4075   *) ac_try_echo=$ac_try;;
   4076 esac
   4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4078 $as_echo "$ac_try_echo"; } >&5
   4079   (eval "$ac_link") 2>&5
   4080   ac_status=$?
   4081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4082   test $ac_status = 0; }
   4083   if { ac_try='./conftest$ac_cv_exeext'
   4084   { { case "(($ac_try" in
   4085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4086   *) ac_try_echo=$ac_try;;
   4087 esac
   4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4089 $as_echo "$ac_try_echo"; } >&5
   4090   (eval "$ac_try") 2>&5
   4091   ac_status=$?
   4092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4093   test $ac_status = 0; }; }; then
   4094     cross_compiling=no
   4095   else
   4096     if test "$cross_compiling" = maybe; then
   4097 	cross_compiling=yes
   4098     else
   4099 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4101 as_fn_error $? "cannot run C compiled programs.
   4102 If you meant to cross compile, use \`--host'.
   4103 See \`config.log' for more details" "$LINENO" 5; }
   4104     fi
   4105   fi
   4106 fi
   4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4108 $as_echo "$cross_compiling" >&6; }
   4109 
   4110 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4111 ac_clean_files=$ac_clean_files_save
   4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4113 $as_echo_n "checking for suffix of object files... " >&6; }
   4114 if ${ac_cv_objext+:} false; then :
   4115   $as_echo_n "(cached) " >&6
   4116 else
   4117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4118 /* end confdefs.h.  */
   4119 
   4120 int
   4121 main ()
   4122 {
   4123 
   4124   ;
   4125   return 0;
   4126 }
   4127 _ACEOF
   4128 rm -f conftest.o conftest.obj
   4129 if { { ac_try="$ac_compile"
   4130 case "(($ac_try" in
   4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4132   *) ac_try_echo=$ac_try;;
   4133 esac
   4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4135 $as_echo "$ac_try_echo"; } >&5
   4136   (eval "$ac_compile") 2>&5
   4137   ac_status=$?
   4138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4139   test $ac_status = 0; }; then :
   4140   for ac_file in conftest.o conftest.obj conftest.*; do
   4141   test -f "$ac_file" || continue;
   4142   case $ac_file in
   4143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4144     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4145        break;;
   4146   esac
   4147 done
   4148 else
   4149   $as_echo "$as_me: failed program was:" >&5
   4150 sed 's/^/| /' conftest.$ac_ext >&5
   4151 
   4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4154 as_fn_error $? "cannot compute suffix of object files: cannot compile
   4155 See \`config.log' for more details" "$LINENO" 5; }
   4156 fi
   4157 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4158 fi
   4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4160 $as_echo "$ac_cv_objext" >&6; }
   4161 OBJEXT=$ac_cv_objext
   4162 ac_objext=$OBJEXT
   4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4164 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4165 if ${ac_cv_c_compiler_gnu+:} false; then :
   4166   $as_echo_n "(cached) " >&6
   4167 else
   4168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4169 /* end confdefs.h.  */
   4170 
   4171 int
   4172 main ()
   4173 {
   4174 #ifndef __GNUC__
   4175        choke me
   4176 #endif
   4177 
   4178   ;
   4179   return 0;
   4180 }
   4181 _ACEOF
   4182 if ac_fn_c_try_compile "$LINENO"; then :
   4183   ac_compiler_gnu=yes
   4184 else
   4185   ac_compiler_gnu=no
   4186 fi
   4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4188 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4189 
   4190 fi
   4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4192 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4193 if test $ac_compiler_gnu = yes; then
   4194   GCC=yes
   4195 else
   4196   GCC=
   4197 fi
   4198 ac_test_CFLAGS=${CFLAGS+set}
   4199 ac_save_CFLAGS=$CFLAGS
   4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4201 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4202 if ${ac_cv_prog_cc_g+:} false; then :
   4203   $as_echo_n "(cached) " >&6
   4204 else
   4205   ac_save_c_werror_flag=$ac_c_werror_flag
   4206    ac_c_werror_flag=yes
   4207    ac_cv_prog_cc_g=no
   4208    CFLAGS="-g"
   4209    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4210 /* end confdefs.h.  */
   4211 
   4212 int
   4213 main ()
   4214 {
   4215 
   4216   ;
   4217   return 0;
   4218 }
   4219 _ACEOF
   4220 if ac_fn_c_try_compile "$LINENO"; then :
   4221   ac_cv_prog_cc_g=yes
   4222 else
   4223   CFLAGS=""
   4224       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4225 /* end confdefs.h.  */
   4226 
   4227 int
   4228 main ()
   4229 {
   4230 
   4231   ;
   4232   return 0;
   4233 }
   4234 _ACEOF
   4235 if ac_fn_c_try_compile "$LINENO"; then :
   4236 
   4237 else
   4238   ac_c_werror_flag=$ac_save_c_werror_flag
   4239 	 CFLAGS="-g"
   4240 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4241 /* end confdefs.h.  */
   4242 
   4243 int
   4244 main ()
   4245 {
   4246 
   4247   ;
   4248   return 0;
   4249 }
   4250 _ACEOF
   4251 if ac_fn_c_try_compile "$LINENO"; then :
   4252   ac_cv_prog_cc_g=yes
   4253 fi
   4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4255 fi
   4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4257 fi
   4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4259    ac_c_werror_flag=$ac_save_c_werror_flag
   4260 fi
   4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4262 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4263 if test "$ac_test_CFLAGS" = set; then
   4264   CFLAGS=$ac_save_CFLAGS
   4265 elif test $ac_cv_prog_cc_g = yes; then
   4266   if test "$GCC" = yes; then
   4267     CFLAGS="-g -O2"
   4268   else
   4269     CFLAGS="-g"
   4270   fi
   4271 else
   4272   if test "$GCC" = yes; then
   4273     CFLAGS="-O2"
   4274   else
   4275     CFLAGS=
   4276   fi
   4277 fi
   4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4279 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4280 if ${ac_cv_prog_cc_c89+:} false; then :
   4281   $as_echo_n "(cached) " >&6
   4282 else
   4283   ac_cv_prog_cc_c89=no
   4284 ac_save_CC=$CC
   4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4286 /* end confdefs.h.  */
   4287 #include <stdarg.h>
   4288 #include <stdio.h>
   4289 struct stat;
   4290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4291 struct buf { int x; };
   4292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4293 static char *e (p, i)
   4294      char **p;
   4295      int i;
   4296 {
   4297   return p[i];
   4298 }
   4299 static char *f (char * (*g) (char **, int), char **p, ...)
   4300 {
   4301   char *s;
   4302   va_list v;
   4303   va_start (v,p);
   4304   s = g (p, va_arg (v,int));
   4305   va_end (v);
   4306   return s;
   4307 }
   4308 
   4309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4310    function prototypes and stuff, but not '\xHH' hex character constants.
   4311    These don't provoke an error unfortunately, instead are silently treated
   4312    as 'x'.  The following induces an error, until -std is added to get
   4313    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4314    array size at least.  It's necessary to write '\x00'==0 to get something
   4315    that's true only with -std.  */
   4316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4317 
   4318 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4319    inside strings and character constants.  */
   4320 #define FOO(x) 'x'
   4321 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4322 
   4323 int test (int i, double x);
   4324 struct s1 {int (*f) (int a);};
   4325 struct s2 {int (*f) (double a);};
   4326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4327 int argc;
   4328 char **argv;
   4329 int
   4330 main ()
   4331 {
   4332 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4333   ;
   4334   return 0;
   4335 }
   4336 _ACEOF
   4337 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4338 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4339 do
   4340   CC="$ac_save_CC $ac_arg"
   4341   if ac_fn_c_try_compile "$LINENO"; then :
   4342   ac_cv_prog_cc_c89=$ac_arg
   4343 fi
   4344 rm -f core conftest.err conftest.$ac_objext
   4345   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4346 done
   4347 rm -f conftest.$ac_ext
   4348 CC=$ac_save_CC
   4349 
   4350 fi
   4351 # AC_CACHE_VAL
   4352 case "x$ac_cv_prog_cc_c89" in
   4353   x)
   4354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4355 $as_echo "none needed" >&6; } ;;
   4356   xno)
   4357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4358 $as_echo "unsupported" >&6; } ;;
   4359   *)
   4360     CC="$CC $ac_cv_prog_cc_c89"
   4361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4362 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4363 esac
   4364 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4365 
   4366 fi
   4367 
   4368 ac_ext=c
   4369 ac_cpp='$CPP $CPPFLAGS'
   4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4373 
   4374 ac_ext=c
   4375 ac_cpp='$CPP $CPPFLAGS'
   4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4380 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4381 # On Suns, sometimes $CPP names a directory.
   4382 if test -n "$CPP" && test -d "$CPP"; then
   4383   CPP=
   4384 fi
   4385 if test -z "$CPP"; then
   4386   if ${ac_cv_prog_CPP+:} false; then :
   4387   $as_echo_n "(cached) " >&6
   4388 else
   4389       # Double quotes because CPP needs to be expanded
   4390     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4391     do
   4392       ac_preproc_ok=false
   4393 for ac_c_preproc_warn_flag in '' yes
   4394 do
   4395   # Use a header file that comes with gcc, so configuring glibc
   4396   # with a fresh cross-compiler works.
   4397   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4398   # <limits.h> exists even on freestanding compilers.
   4399   # On the NeXT, cc -E runs the code through the compiler's parser,
   4400   # not just through cpp. "Syntax error" is here to catch this case.
   4401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4402 /* end confdefs.h.  */
   4403 #ifdef __STDC__
   4404 # include <limits.h>
   4405 #else
   4406 # include <assert.h>
   4407 #endif
   4408 		     Syntax error
   4409 _ACEOF
   4410 if ac_fn_c_try_cpp "$LINENO"; then :
   4411 
   4412 else
   4413   # Broken: fails on valid input.
   4414 continue
   4415 fi
   4416 rm -f conftest.err conftest.i conftest.$ac_ext
   4417 
   4418   # OK, works on sane cases.  Now check whether nonexistent headers
   4419   # can be detected and how.
   4420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4421 /* end confdefs.h.  */
   4422 #include <ac_nonexistent.h>
   4423 _ACEOF
   4424 if ac_fn_c_try_cpp "$LINENO"; then :
   4425   # Broken: success on invalid input.
   4426 continue
   4427 else
   4428   # Passes both tests.
   4429 ac_preproc_ok=:
   4430 break
   4431 fi
   4432 rm -f conftest.err conftest.i conftest.$ac_ext
   4433 
   4434 done
   4435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4436 rm -f conftest.i conftest.err conftest.$ac_ext
   4437 if $ac_preproc_ok; then :
   4438   break
   4439 fi
   4440 
   4441     done
   4442     ac_cv_prog_CPP=$CPP
   4443 
   4444 fi
   4445   CPP=$ac_cv_prog_CPP
   4446 else
   4447   ac_cv_prog_CPP=$CPP
   4448 fi
   4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4450 $as_echo "$CPP" >&6; }
   4451 ac_preproc_ok=false
   4452 for ac_c_preproc_warn_flag in '' yes
   4453 do
   4454   # Use a header file that comes with gcc, so configuring glibc
   4455   # with a fresh cross-compiler works.
   4456   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4457   # <limits.h> exists even on freestanding compilers.
   4458   # On the NeXT, cc -E runs the code through the compiler's parser,
   4459   # not just through cpp. "Syntax error" is here to catch this case.
   4460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4461 /* end confdefs.h.  */
   4462 #ifdef __STDC__
   4463 # include <limits.h>
   4464 #else
   4465 # include <assert.h>
   4466 #endif
   4467 		     Syntax error
   4468 _ACEOF
   4469 if ac_fn_c_try_cpp "$LINENO"; then :
   4470 
   4471 else
   4472   # Broken: fails on valid input.
   4473 continue
   4474 fi
   4475 rm -f conftest.err conftest.i conftest.$ac_ext
   4476 
   4477   # OK, works on sane cases.  Now check whether nonexistent headers
   4478   # can be detected and how.
   4479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4480 /* end confdefs.h.  */
   4481 #include <ac_nonexistent.h>
   4482 _ACEOF
   4483 if ac_fn_c_try_cpp "$LINENO"; then :
   4484   # Broken: success on invalid input.
   4485 continue
   4486 else
   4487   # Passes both tests.
   4488 ac_preproc_ok=:
   4489 break
   4490 fi
   4491 rm -f conftest.err conftest.i conftest.$ac_ext
   4492 
   4493 done
   4494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4495 rm -f conftest.i conftest.err conftest.$ac_ext
   4496 if $ac_preproc_ok; then :
   4497 
   4498 else
   4499   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4501 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4502 See \`config.log' for more details" "$LINENO" 5; }
   4503 fi
   4504 
   4505 ac_ext=c
   4506 ac_cpp='$CPP $CPPFLAGS'
   4507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4510 
   4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4512 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4513 if ${ac_cv_path_GREP+:} false; then :
   4514   $as_echo_n "(cached) " >&6
   4515 else
   4516   if test -z "$GREP"; then
   4517   ac_path_GREP_found=false
   4518   # Loop through the user's path and test for each of PROGNAME-LIST
   4519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4520 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4521 do
   4522   IFS=$as_save_IFS
   4523   test -z "$as_dir" && as_dir=.
   4524     for ac_prog in grep ggrep; do
   4525     for ac_exec_ext in '' $ac_executable_extensions; do
   4526       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4527       as_fn_executable_p "$ac_path_GREP" || continue
   4528 # Check for GNU ac_path_GREP and select it if it is found.
   4529   # Check for GNU $ac_path_GREP
   4530 case `"$ac_path_GREP" --version 2>&1` in
   4531 *GNU*)
   4532   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4533 *)
   4534   ac_count=0
   4535   $as_echo_n 0123456789 >"conftest.in"
   4536   while :
   4537   do
   4538     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4539     mv "conftest.tmp" "conftest.in"
   4540     cp "conftest.in" "conftest.nl"
   4541     $as_echo 'GREP' >> "conftest.nl"
   4542     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4543     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4544     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4545     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4546       # Best one so far, save it but keep looking for a better one
   4547       ac_cv_path_GREP="$ac_path_GREP"
   4548       ac_path_GREP_max=$ac_count
   4549     fi
   4550     # 10*(2^10) chars as input seems more than enough
   4551     test $ac_count -gt 10 && break
   4552   done
   4553   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4554 esac
   4555 
   4556       $ac_path_GREP_found && break 3
   4557     done
   4558   done
   4559   done
   4560 IFS=$as_save_IFS
   4561   if test -z "$ac_cv_path_GREP"; then
   4562     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4563   fi
   4564 else
   4565   ac_cv_path_GREP=$GREP
   4566 fi
   4567 
   4568 fi
   4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4570 $as_echo "$ac_cv_path_GREP" >&6; }
   4571  GREP="$ac_cv_path_GREP"
   4572 
   4573 
   4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4575 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4576 if ${ac_cv_path_SED+:} false; then :
   4577   $as_echo_n "(cached) " >&6
   4578 else
   4579             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4580      for ac_i in 1 2 3 4 5 6 7; do
   4581        ac_script="$ac_script$as_nl$ac_script"
   4582      done
   4583      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4584      { ac_script=; unset ac_script;}
   4585      if test -z "$SED"; then
   4586   ac_path_SED_found=false
   4587   # Loop through the user's path and test for each of PROGNAME-LIST
   4588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4589 for as_dir in $PATH
   4590 do
   4591   IFS=$as_save_IFS
   4592   test -z "$as_dir" && as_dir=.
   4593     for ac_prog in sed gsed; do
   4594     for ac_exec_ext in '' $ac_executable_extensions; do
   4595       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4596       as_fn_executable_p "$ac_path_SED" || continue
   4597 # Check for GNU ac_path_SED and select it if it is found.
   4598   # Check for GNU $ac_path_SED
   4599 case `"$ac_path_SED" --version 2>&1` in
   4600 *GNU*)
   4601   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4602 *)
   4603   ac_count=0
   4604   $as_echo_n 0123456789 >"conftest.in"
   4605   while :
   4606   do
   4607     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4608     mv "conftest.tmp" "conftest.in"
   4609     cp "conftest.in" "conftest.nl"
   4610     $as_echo '' >> "conftest.nl"
   4611     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4612     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4613     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4614     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4615       # Best one so far, save it but keep looking for a better one
   4616       ac_cv_path_SED="$ac_path_SED"
   4617       ac_path_SED_max=$ac_count
   4618     fi
   4619     # 10*(2^10) chars as input seems more than enough
   4620     test $ac_count -gt 10 && break
   4621   done
   4622   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4623 esac
   4624 
   4625       $ac_path_SED_found && break 3
   4626     done
   4627   done
   4628   done
   4629 IFS=$as_save_IFS
   4630   if test -z "$ac_cv_path_SED"; then
   4631     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4632   fi
   4633 else
   4634   ac_cv_path_SED=$SED
   4635 fi
   4636 
   4637 fi
   4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4639 $as_echo "$ac_cv_path_SED" >&6; }
   4640  SED="$ac_cv_path_SED"
   4641   rm -f conftest.sed
   4642 
   4643 
   4644 
   4645 
   4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
   4647 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
   4648 
   4649 # Check whether --with-cxx_main was given.
   4650 if test "${with_cxx_main+set}" = set; then :
   4651   withval=$with_cxx_main;
   4652 
   4653 	case $withval in
   4654 	no)	with_cxx_main=no
   4655 		MAINCC='$(CC)';;
   4656 	yes)	with_cxx_main=yes
   4657 		MAINCC='$(CXX)';;
   4658 	*)	with_cxx_main=yes
   4659 		MAINCC=$withval
   4660 		if test -z "$CXX"
   4661 		then
   4662 			CXX=$withval
   4663 		fi;;
   4664 	esac
   4665 else
   4666 
   4667 	with_cxx_main=no
   4668 	MAINCC='$(CC)'
   4669 
   4670 fi
   4671 
   4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
   4673 $as_echo "$with_cxx_main" >&6; }
   4674 
   4675 preset_cxx="$CXX"
   4676 if test -z "$CXX"
   4677 then
   4678         case "$CC" in
   4679         gcc)    if test -n "$ac_tool_prefix"; then
   4680   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
   4681 set dummy ${ac_tool_prefix}g++; ac_word=$2
   4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4683 $as_echo_n "checking for $ac_word... " >&6; }
   4684 if ${ac_cv_path_CXX+:} false; then :
   4685   $as_echo_n "(cached) " >&6
   4686 else
   4687   case $CXX in
   4688   [\\/]* | ?:[\\/]*)
   4689   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
   4690   ;;
   4691   *)
   4692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4693 for as_dir in notfound
   4694 do
   4695   IFS=$as_save_IFS
   4696   test -z "$as_dir" && as_dir=.
   4697     for ac_exec_ext in '' $ac_executable_extensions; do
   4698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4699     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
   4700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4701     break 2
   4702   fi
   4703 done
   4704   done
   4705 IFS=$as_save_IFS
   4706 
   4707   ;;
   4708 esac
   4709 fi
   4710 CXX=$ac_cv_path_CXX
   4711 if test -n "$CXX"; then
   4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4713 $as_echo "$CXX" >&6; }
   4714 else
   4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4716 $as_echo "no" >&6; }
   4717 fi
   4718 
   4719 
   4720 fi
   4721 if test -z "$ac_cv_path_CXX"; then
   4722   ac_pt_CXX=$CXX
   4723   # Extract the first word of "g++", so it can be a program name with args.
   4724 set dummy g++; ac_word=$2
   4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4726 $as_echo_n "checking for $ac_word... " >&6; }
   4727 if ${ac_cv_path_ac_pt_CXX+:} false; then :
   4728   $as_echo_n "(cached) " >&6
   4729 else
   4730   case $ac_pt_CXX in
   4731   [\\/]* | ?:[\\/]*)
   4732   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
   4733   ;;
   4734   *)
   4735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4736 for as_dir in notfound
   4737 do
   4738   IFS=$as_save_IFS
   4739   test -z "$as_dir" && as_dir=.
   4740     for ac_exec_ext in '' $ac_executable_extensions; do
   4741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4742     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
   4743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4744     break 2
   4745   fi
   4746 done
   4747   done
   4748 IFS=$as_save_IFS
   4749 
   4750   ;;
   4751 esac
   4752 fi
   4753 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
   4754 if test -n "$ac_pt_CXX"; then
   4755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
   4756 $as_echo "$ac_pt_CXX" >&6; }
   4757 else
   4758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4759 $as_echo "no" >&6; }
   4760 fi
   4761 
   4762   if test "x$ac_pt_CXX" = x; then
   4763     CXX="g++"
   4764   else
   4765     case $cross_compiling:$ac_tool_warned in
   4766 yes:)
   4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4769 ac_tool_warned=yes ;;
   4770 esac
   4771     CXX=$ac_pt_CXX
   4772   fi
   4773 else
   4774   CXX="$ac_cv_path_CXX"
   4775 fi
   4776  ;;
   4777         cc)     if test -n "$ac_tool_prefix"; then
   4778   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
   4779 set dummy ${ac_tool_prefix}c++; ac_word=$2
   4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4781 $as_echo_n "checking for $ac_word... " >&6; }
   4782 if ${ac_cv_path_CXX+:} false; then :
   4783   $as_echo_n "(cached) " >&6
   4784 else
   4785   case $CXX in
   4786   [\\/]* | ?:[\\/]*)
   4787   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
   4788   ;;
   4789   *)
   4790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4791 for as_dir in notfound
   4792 do
   4793   IFS=$as_save_IFS
   4794   test -z "$as_dir" && as_dir=.
   4795     for ac_exec_ext in '' $ac_executable_extensions; do
   4796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4797     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
   4798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4799     break 2
   4800   fi
   4801 done
   4802   done
   4803 IFS=$as_save_IFS
   4804 
   4805   ;;
   4806 esac
   4807 fi
   4808 CXX=$ac_cv_path_CXX
   4809 if test -n "$CXX"; then
   4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4811 $as_echo "$CXX" >&6; }
   4812 else
   4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4814 $as_echo "no" >&6; }
   4815 fi
   4816 
   4817 
   4818 fi
   4819 if test -z "$ac_cv_path_CXX"; then
   4820   ac_pt_CXX=$CXX
   4821   # Extract the first word of "c++", so it can be a program name with args.
   4822 set dummy c++; ac_word=$2
   4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4824 $as_echo_n "checking for $ac_word... " >&6; }
   4825 if ${ac_cv_path_ac_pt_CXX+:} false; then :
   4826   $as_echo_n "(cached) " >&6
   4827 else
   4828   case $ac_pt_CXX in
   4829   [\\/]* | ?:[\\/]*)
   4830   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
   4831   ;;
   4832   *)
   4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4834 for as_dir in notfound
   4835 do
   4836   IFS=$as_save_IFS
   4837   test -z "$as_dir" && as_dir=.
   4838     for ac_exec_ext in '' $ac_executable_extensions; do
   4839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4840     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
   4841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4842     break 2
   4843   fi
   4844 done
   4845   done
   4846 IFS=$as_save_IFS
   4847 
   4848   ;;
   4849 esac
   4850 fi
   4851 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
   4852 if test -n "$ac_pt_CXX"; then
   4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
   4854 $as_echo "$ac_pt_CXX" >&6; }
   4855 else
   4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4857 $as_echo "no" >&6; }
   4858 fi
   4859 
   4860   if test "x$ac_pt_CXX" = x; then
   4861     CXX="c++"
   4862   else
   4863     case $cross_compiling:$ac_tool_warned in
   4864 yes:)
   4865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4867 ac_tool_warned=yes ;;
   4868 esac
   4869     CXX=$ac_pt_CXX
   4870   fi
   4871 else
   4872   CXX="$ac_cv_path_CXX"
   4873 fi
   4874  ;;
   4875         clang|*/clang)     if test -n "$ac_tool_prefix"; then
   4876   # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
   4877 set dummy ${ac_tool_prefix}clang++; ac_word=$2
   4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4879 $as_echo_n "checking for $ac_word... " >&6; }
   4880 if ${ac_cv_path_CXX+:} false; then :
   4881   $as_echo_n "(cached) " >&6
   4882 else
   4883   case $CXX in
   4884   [\\/]* | ?:[\\/]*)
   4885   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
   4886   ;;
   4887   *)
   4888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4889 for as_dir in notfound
   4890 do
   4891   IFS=$as_save_IFS
   4892   test -z "$as_dir" && as_dir=.
   4893     for ac_exec_ext in '' $ac_executable_extensions; do
   4894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4895     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
   4896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4897     break 2
   4898   fi
   4899 done
   4900   done
   4901 IFS=$as_save_IFS
   4902 
   4903   ;;
   4904 esac
   4905 fi
   4906 CXX=$ac_cv_path_CXX
   4907 if test -n "$CXX"; then
   4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4909 $as_echo "$CXX" >&6; }
   4910 else
   4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4912 $as_echo "no" >&6; }
   4913 fi
   4914 
   4915 
   4916 fi
   4917 if test -z "$ac_cv_path_CXX"; then
   4918   ac_pt_CXX=$CXX
   4919   # Extract the first word of "clang++", so it can be a program name with args.
   4920 set dummy clang++; ac_word=$2
   4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4922 $as_echo_n "checking for $ac_word... " >&6; }
   4923 if ${ac_cv_path_ac_pt_CXX+:} false; then :
   4924   $as_echo_n "(cached) " >&6
   4925 else
   4926   case $ac_pt_CXX in
   4927   [\\/]* | ?:[\\/]*)
   4928   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
   4929   ;;
   4930   *)
   4931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4932 for as_dir in notfound
   4933 do
   4934   IFS=$as_save_IFS
   4935   test -z "$as_dir" && as_dir=.
   4936     for ac_exec_ext in '' $ac_executable_extensions; do
   4937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4938     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
   4939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4940     break 2
   4941   fi
   4942 done
   4943   done
   4944 IFS=$as_save_IFS
   4945 
   4946   ;;
   4947 esac
   4948 fi
   4949 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
   4950 if test -n "$ac_pt_CXX"; then
   4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
   4952 $as_echo "$ac_pt_CXX" >&6; }
   4953 else
   4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4955 $as_echo "no" >&6; }
   4956 fi
   4957 
   4958   if test "x$ac_pt_CXX" = x; then
   4959     CXX="clang++"
   4960   else
   4961     case $cross_compiling:$ac_tool_warned in
   4962 yes:)
   4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4965 ac_tool_warned=yes ;;
   4966 esac
   4967     CXX=$ac_pt_CXX
   4968   fi
   4969 else
   4970   CXX="$ac_cv_path_CXX"
   4971 fi
   4972  ;;
   4973         icc|*/icc)         if test -n "$ac_tool_prefix"; then
   4974   # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
   4975 set dummy ${ac_tool_prefix}icpc; ac_word=$2
   4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4977 $as_echo_n "checking for $ac_word... " >&6; }
   4978 if ${ac_cv_path_CXX+:} false; then :
   4979   $as_echo_n "(cached) " >&6
   4980 else
   4981   case $CXX in
   4982   [\\/]* | ?:[\\/]*)
   4983   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
   4984   ;;
   4985   *)
   4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4987 for as_dir in notfound
   4988 do
   4989   IFS=$as_save_IFS
   4990   test -z "$as_dir" && as_dir=.
   4991     for ac_exec_ext in '' $ac_executable_extensions; do
   4992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4993     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
   4994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4995     break 2
   4996   fi
   4997 done
   4998   done
   4999 IFS=$as_save_IFS
   5000 
   5001   ;;
   5002 esac
   5003 fi
   5004 CXX=$ac_cv_path_CXX
   5005 if test -n "$CXX"; then
   5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   5007 $as_echo "$CXX" >&6; }
   5008 else
   5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5010 $as_echo "no" >&6; }
   5011 fi
   5012 
   5013 
   5014 fi
   5015 if test -z "$ac_cv_path_CXX"; then
   5016   ac_pt_CXX=$CXX
   5017   # Extract the first word of "icpc", so it can be a program name with args.
   5018 set dummy icpc; ac_word=$2
   5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5020 $as_echo_n "checking for $ac_word... " >&6; }
   5021 if ${ac_cv_path_ac_pt_CXX+:} false; then :
   5022   $as_echo_n "(cached) " >&6
   5023 else
   5024   case $ac_pt_CXX in
   5025   [\\/]* | ?:[\\/]*)
   5026   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
   5027   ;;
   5028   *)
   5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5030 for as_dir in notfound
   5031 do
   5032   IFS=$as_save_IFS
   5033   test -z "$as_dir" && as_dir=.
   5034     for ac_exec_ext in '' $ac_executable_extensions; do
   5035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5036     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
   5037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5038     break 2
   5039   fi
   5040 done
   5041   done
   5042 IFS=$as_save_IFS
   5043 
   5044   ;;
   5045 esac
   5046 fi
   5047 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
   5048 if test -n "$ac_pt_CXX"; then
   5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
   5050 $as_echo "$ac_pt_CXX" >&6; }
   5051 else
   5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5053 $as_echo "no" >&6; }
   5054 fi
   5055 
   5056   if test "x$ac_pt_CXX" = x; then
   5057     CXX="icpc"
   5058   else
   5059     case $cross_compiling:$ac_tool_warned in
   5060 yes:)
   5061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5063 ac_tool_warned=yes ;;
   5064 esac
   5065     CXX=$ac_pt_CXX
   5066   fi
   5067 else
   5068   CXX="$ac_cv_path_CXX"
   5069 fi
   5070  ;;
   5071         esac
   5072 	if test "$CXX" = "notfound"
   5073 	then
   5074 		CXX=""
   5075 	fi
   5076 fi
   5077 if test -z "$CXX"
   5078 then
   5079 	if test -n "$ac_tool_prefix"; then
   5080   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
   5081   do
   5082     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5085 $as_echo_n "checking for $ac_word... " >&6; }
   5086 if ${ac_cv_prog_CXX+:} false; then :
   5087   $as_echo_n "(cached) " >&6
   5088 else
   5089   if test -n "$CXX"; then
   5090   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   5091 else
   5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5093 for as_dir in $PATH
   5094 do
   5095   IFS=$as_save_IFS
   5096   test -z "$as_dir" && as_dir=.
   5097     for ac_exec_ext in '' $ac_executable_extensions; do
   5098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5099     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   5100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5101     break 2
   5102   fi
   5103 done
   5104   done
   5105 IFS=$as_save_IFS
   5106 
   5107 fi
   5108 fi
   5109 CXX=$ac_cv_prog_CXX
   5110 if test -n "$CXX"; then
   5111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   5112 $as_echo "$CXX" >&6; }
   5113 else
   5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5115 $as_echo "no" >&6; }
   5116 fi
   5117 
   5118 
   5119     test -n "$CXX" && break
   5120   done
   5121 fi
   5122 if test -z "$CXX"; then
   5123   ac_ct_CXX=$CXX
   5124   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
   5125 do
   5126   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5127 set dummy $ac_prog; ac_word=$2
   5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5129 $as_echo_n "checking for $ac_word... " >&6; }
   5130 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   5131   $as_echo_n "(cached) " >&6
   5132 else
   5133   if test -n "$ac_ct_CXX"; then
   5134   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   5135 else
   5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5137 for as_dir in $PATH
   5138 do
   5139   IFS=$as_save_IFS
   5140   test -z "$as_dir" && as_dir=.
   5141     for ac_exec_ext in '' $ac_executable_extensions; do
   5142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5143     ac_cv_prog_ac_ct_CXX="$ac_prog"
   5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5145     break 2
   5146   fi
   5147 done
   5148   done
   5149 IFS=$as_save_IFS
   5150 
   5151 fi
   5152 fi
   5153 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   5154 if test -n "$ac_ct_CXX"; then
   5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   5156 $as_echo "$ac_ct_CXX" >&6; }
   5157 else
   5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5159 $as_echo "no" >&6; }
   5160 fi
   5161 
   5162 
   5163   test -n "$ac_ct_CXX" && break
   5164 done
   5165 
   5166   if test "x$ac_ct_CXX" = x; then
   5167     CXX="notfound"
   5168   else
   5169     case $cross_compiling:$ac_tool_warned in
   5170 yes:)
   5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5173 ac_tool_warned=yes ;;
   5174 esac
   5175     CXX=$ac_ct_CXX
   5176   fi
   5177 fi
   5178 
   5179 	if test "$CXX" = "notfound"
   5180 	then
   5181 		CXX=""
   5182 	fi
   5183 fi
   5184 if test "$preset_cxx" != "$CXX"
   5185 then
   5186         { $as_echo "$as_me:${as_lineno-$LINENO}:
   5187 
   5188   By default, distutils will build C++ extension modules with \"$CXX\".
   5189   If this is not intended, then set CXX on the configure command line.
   5190   " >&5
   5191 $as_echo "$as_me:
   5192 
   5193   By default, distutils will build C++ extension modules with \"$CXX\".
   5194   If this is not intended, then set CXX on the configure command line.
   5195   " >&6;}
   5196 fi
   5197 
   5198 
   5199 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
   5200 
   5201 
   5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
   5203 $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
   5204 cat >> conftest.c <<EOF
   5205 #undef bfin
   5206 #undef cris
   5207 #undef fr30
   5208 #undef linux
   5209 #undef hppa
   5210 #undef hpux
   5211 #undef i386
   5212 #undef mips
   5213 #undef powerpc
   5214 #undef sparc
   5215 #undef unix
   5216 #if defined(__ANDROID__)
   5217     # Android is not a multiarch system.
   5218 #elif defined(__linux__)
   5219 # if defined(__x86_64__) && defined(__LP64__)
   5220         x86_64-linux-gnu
   5221 # elif defined(__x86_64__) && defined(__ILP32__)
   5222         x86_64-linux-gnux32
   5223 # elif defined(__i386__)
   5224         i386-linux-gnu
   5225 # elif defined(__aarch64__) && defined(__AARCH64EL__)
   5226 #  if defined(__ILP32__)
   5227         aarch64_ilp32-linux-gnu
   5228 #  else
   5229         aarch64-linux-gnu
   5230 #  endif
   5231 # elif defined(__aarch64__) && defined(__AARCH64EB__)
   5232 #  if defined(__ILP32__)
   5233         aarch64_be_ilp32-linux-gnu
   5234 #  else
   5235         aarch64_be-linux-gnu
   5236 #  endif
   5237 # elif defined(__alpha__)
   5238         alpha-linux-gnu
   5239 # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP)
   5240 #  if defined(__ARMEL__)
   5241         arm-linux-gnueabihf
   5242 #  else
   5243         armeb-linux-gnueabihf
   5244 #  endif
   5245 # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP)
   5246 #  if defined(__ARMEL__)
   5247         arm-linux-gnueabi
   5248 #  else
   5249         armeb-linux-gnueabi
   5250 #  endif
   5251 # elif defined(__hppa__)
   5252         hppa-linux-gnu
   5253 # elif defined(__ia64__)
   5254         ia64-linux-gnu
   5255 # elif defined(__m68k__) && !defined(__mcoldfire__)
   5256         m68k-linux-gnu
   5257 # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
   5258 #  if _MIPS_SIM == _ABIO32
   5259         mipsisa32r6el-linux-gnu
   5260 #  elif _MIPS_SIM == _ABIN32
   5261         mipsisa64r6el-linux-gnuabin32
   5262 #  elif _MIPS_SIM == _ABI64
   5263         mipsisa64r6el-linux-gnuabi64
   5264 #  else
   5265 #   error unknown platform triplet
   5266 #  endif
   5267 # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6)
   5268 #  if _MIPS_SIM == _ABIO32
   5269         mipsisa32r6-linux-gnu
   5270 #  elif _MIPS_SIM == _ABIN32
   5271         mipsisa64r6-linux-gnuabin32
   5272 #  elif _MIPS_SIM == _ABI64
   5273         mipsisa64r6-linux-gnuabi64
   5274 #  else
   5275 #   error unknown platform triplet
   5276 #  endif
   5277 # elif defined(__mips_hard_float) && defined(_MIPSEL)
   5278 #  if _MIPS_SIM == _ABIO32
   5279         mipsel-linux-gnu
   5280 #  elif _MIPS_SIM == _ABIN32
   5281         mips64el-linux-gnuabin32
   5282 #  elif _MIPS_SIM == _ABI64
   5283         mips64el-linux-gnuabi64
   5284 #  else
   5285 #   error unknown platform triplet
   5286 #  endif
   5287 # elif defined(__mips_hard_float)
   5288 #  if _MIPS_SIM == _ABIO32
   5289         mips-linux-gnu
   5290 #  elif _MIPS_SIM == _ABIN32
   5291         mips64-linux-gnuabin32
   5292 #  elif _MIPS_SIM == _ABI64
   5293         mips64-linux-gnuabi64
   5294 #  else
   5295 #   error unknown platform triplet
   5296 #  endif
   5297 # elif defined(__or1k__)
   5298         or1k-linux-gnu
   5299 # elif defined(__powerpc__) && defined(__SPE__)
   5300         powerpc-linux-gnuspe
   5301 # elif defined(__powerpc64__)
   5302 #  if defined(__LITTLE_ENDIAN__)
   5303         powerpc64le-linux-gnu
   5304 #  else
   5305         powerpc64-linux-gnu
   5306 #  endif
   5307 # elif defined(__powerpc__)
   5308         powerpc-linux-gnu
   5309 # elif defined(__s390x__)
   5310         s390x-linux-gnu
   5311 # elif defined(__s390__)
   5312         s390-linux-gnu
   5313 # elif defined(__sh__) && defined(__LITTLE_ENDIAN__)
   5314         sh4-linux-gnu
   5315 # elif defined(__sparc__) && defined(__arch64__)
   5316         sparc64-linux-gnu
   5317 # elif defined(__sparc__)
   5318         sparc-linux-gnu
   5319 # elif defined(__riscv)
   5320 #  if __riscv_xlen == 32
   5321         riscv32-linux-gnu
   5322 #  elif __riscv_xlen == 64
   5323         riscv64-linux-gnu
   5324 #  else
   5325 #   error unknown platform triplet
   5326 #  endif
   5327 # else
   5328 #   error unknown platform triplet
   5329 # endif
   5330 #elif defined(__FreeBSD_kernel__)
   5331 # if defined(__LP64__)
   5332         x86_64-kfreebsd-gnu
   5333 # elif defined(__i386__)
   5334         i386-kfreebsd-gnu
   5335 # else
   5336 #   error unknown platform triplet
   5337 # endif
   5338 #elif defined(__gnu_hurd__)
   5339         i386-gnu
   5340 #elif defined(__APPLE__)
   5341         darwin
   5342 #else
   5343 # error unknown platform triplet
   5344 #endif
   5345 
   5346 EOF
   5347 
   5348 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
   5349   PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'`
   5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
   5351 $as_echo "$PLATFORM_TRIPLET" >&6; }
   5352 else
   5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   5354 $as_echo "none" >&6; }
   5355 fi
   5356 rm -f conftest.c conftest.out
   5357 
   5358 if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
   5359   if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
   5360     as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
   5361   fi
   5362 elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
   5363   MULTIARCH=$PLATFORM_TRIPLET
   5364 fi
   5365 
   5366 if test x$MULTIARCH != x; then
   5367   MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
   5368 fi
   5369 
   5370 
   5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
   5372 $as_echo_n "checking for -Wl,--no-as-needed... " >&6; }
   5373 save_LDFLAGS="$LDFLAGS"
   5374 LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
   5375 
   5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5377 /* end confdefs.h.  */
   5378 
   5379 int
   5380 main ()
   5381 {
   5382 
   5383   ;
   5384   return 0;
   5385 }
   5386 _ACEOF
   5387 if ac_fn_c_try_link "$LINENO"; then :
   5388   NO_AS_NEEDED="-Wl,--no-as-needed"
   5389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5390 $as_echo "yes" >&6; }
   5391 else
   5392   NO_AS_NEEDED=""
   5393    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5394 $as_echo "no" >&6; }
   5395 fi
   5396 rm -f core conftest.err conftest.$ac_objext \
   5397     conftest$ac_exeext conftest.$ac_ext
   5398 LDFLAGS="$save_LDFLAGS"
   5399 
   5400 
   5401 
   5402 # checks for UNIX variants that set C preprocessor variables
   5403 
   5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   5405 $as_echo_n "checking for egrep... " >&6; }
   5406 if ${ac_cv_path_EGREP+:} false; then :
   5407   $as_echo_n "(cached) " >&6
   5408 else
   5409   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5410    then ac_cv_path_EGREP="$GREP -E"
   5411    else
   5412      if test -z "$EGREP"; then
   5413   ac_path_EGREP_found=false
   5414   # Loop through the user's path and test for each of PROGNAME-LIST
   5415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5417 do
   5418   IFS=$as_save_IFS
   5419   test -z "$as_dir" && as_dir=.
   5420     for ac_prog in egrep; do
   5421     for ac_exec_ext in '' $ac_executable_extensions; do
   5422       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   5423       as_fn_executable_p "$ac_path_EGREP" || continue
   5424 # Check for GNU ac_path_EGREP and select it if it is found.
   5425   # Check for GNU $ac_path_EGREP
   5426 case `"$ac_path_EGREP" --version 2>&1` in
   5427 *GNU*)
   5428   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5429 *)
   5430   ac_count=0
   5431   $as_echo_n 0123456789 >"conftest.in"
   5432   while :
   5433   do
   5434     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5435     mv "conftest.tmp" "conftest.in"
   5436     cp "conftest.in" "conftest.nl"
   5437     $as_echo 'EGREP' >> "conftest.nl"
   5438     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5439     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5440     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5441     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5442       # Best one so far, save it but keep looking for a better one
   5443       ac_cv_path_EGREP="$ac_path_EGREP"
   5444       ac_path_EGREP_max=$ac_count
   5445     fi
   5446     # 10*(2^10) chars as input seems more than enough
   5447     test $ac_count -gt 10 && break
   5448   done
   5449   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5450 esac
   5451 
   5452       $ac_path_EGREP_found && break 3
   5453     done
   5454   done
   5455   done
   5456 IFS=$as_save_IFS
   5457   if test -z "$ac_cv_path_EGREP"; then
   5458     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5459   fi
   5460 else
   5461   ac_cv_path_EGREP=$EGREP
   5462 fi
   5463 
   5464    fi
   5465 fi
   5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5467 $as_echo "$ac_cv_path_EGREP" >&6; }
   5468  EGREP="$ac_cv_path_EGREP"
   5469 
   5470 
   5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   5472 $as_echo_n "checking for ANSI C header files... " >&6; }
   5473 if ${ac_cv_header_stdc+:} false; then :
   5474   $as_echo_n "(cached) " >&6
   5475 else
   5476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5477 /* end confdefs.h.  */
   5478 #include <stdlib.h>
   5479 #include <stdarg.h>
   5480 #include <string.h>
   5481 #include <float.h>
   5482 
   5483 int
   5484 main ()
   5485 {
   5486 
   5487   ;
   5488   return 0;
   5489 }
   5490 _ACEOF
   5491 if ac_fn_c_try_compile "$LINENO"; then :
   5492   ac_cv_header_stdc=yes
   5493 else
   5494   ac_cv_header_stdc=no
   5495 fi
   5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5497 
   5498 if test $ac_cv_header_stdc = yes; then
   5499   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   5500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5501 /* end confdefs.h.  */
   5502 #include <string.h>
   5503 
   5504 _ACEOF
   5505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5506   $EGREP "memchr" >/dev/null 2>&1; then :
   5507 
   5508 else
   5509   ac_cv_header_stdc=no
   5510 fi
   5511 rm -f conftest*
   5512 
   5513 fi
   5514 
   5515 if test $ac_cv_header_stdc = yes; then
   5516   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   5517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5518 /* end confdefs.h.  */
   5519 #include <stdlib.h>
   5520 
   5521 _ACEOF
   5522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5523   $EGREP "free" >/dev/null 2>&1; then :
   5524 
   5525 else
   5526   ac_cv_header_stdc=no
   5527 fi
   5528 rm -f conftest*
   5529 
   5530 fi
   5531 
   5532 if test $ac_cv_header_stdc = yes; then
   5533   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   5534   if test "$cross_compiling" = yes; then :
   5535   :
   5536 else
   5537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5538 /* end confdefs.h.  */
   5539 #include <ctype.h>
   5540 #include <stdlib.h>
   5541 #if ((' ' & 0x0FF) == 0x020)
   5542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   5543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   5544 #else
   5545 # define ISLOWER(c) \
   5546 		   (('a' <= (c) && (c) <= 'i') \
   5547 		     || ('j' <= (c) && (c) <= 'r') \
   5548 		     || ('s' <= (c) && (c) <= 'z'))
   5549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   5550 #endif
   5551 
   5552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   5553 int
   5554 main ()
   5555 {
   5556   int i;
   5557   for (i = 0; i < 256; i++)
   5558     if (XOR (islower (i), ISLOWER (i))
   5559 	|| toupper (i) != TOUPPER (i))
   5560       return 2;
   5561   return 0;
   5562 }
   5563 _ACEOF
   5564 if ac_fn_c_try_run "$LINENO"; then :
   5565 
   5566 else
   5567   ac_cv_header_stdc=no
   5568 fi
   5569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5570   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5571 fi
   5572 
   5573 fi
   5574 fi
   5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   5576 $as_echo "$ac_cv_header_stdc" >&6; }
   5577 if test $ac_cv_header_stdc = yes; then
   5578 
   5579 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   5580 
   5581 fi
   5582 
   5583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   5584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   5585 		  inttypes.h stdint.h unistd.h
   5586 do :
   5587   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5588 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   5589 "
   5590 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   5591   cat >>confdefs.h <<_ACEOF
   5592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5593 _ACEOF
   5594 
   5595 fi
   5596 
   5597 done
   5598 
   5599 
   5600 
   5601   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   5602 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   5603   MINIX=yes
   5604 else
   5605   MINIX=
   5606 fi
   5607 
   5608 
   5609   if test "$MINIX" = yes; then
   5610 
   5611 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   5612 
   5613 
   5614 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   5615 
   5616 
   5617 $as_echo "#define _MINIX 1" >>confdefs.h
   5618 
   5619   fi
   5620 
   5621 
   5622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   5623 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   5624 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   5625   $as_echo_n "(cached) " >&6
   5626 else
   5627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5628 /* end confdefs.h.  */
   5629 
   5630 #         define __EXTENSIONS__ 1
   5631           $ac_includes_default
   5632 int
   5633 main ()
   5634 {
   5635 
   5636   ;
   5637   return 0;
   5638 }
   5639 _ACEOF
   5640 if ac_fn_c_try_compile "$LINENO"; then :
   5641   ac_cv_safe_to_define___extensions__=yes
   5642 else
   5643   ac_cv_safe_to_define___extensions__=no
   5644 fi
   5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5646 fi
   5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   5648 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   5649   test $ac_cv_safe_to_define___extensions__ = yes &&
   5650     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   5651 
   5652   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   5653 
   5654   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   5655 
   5656   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   5657 
   5658   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   5659 
   5660 
   5661 
   5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
   5663 $as_echo_n "checking for the Android API level... " >&6; }
   5664 cat >> conftest.c <<EOF
   5665 #ifdef __ANDROID__
   5666 android_api = __ANDROID_API__
   5667 arm_arch = __ARM_ARCH
   5668 #else
   5669 #error not Android
   5670 #endif
   5671 EOF
   5672 
   5673 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
   5674   ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
   5675   _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
   5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
   5677 $as_echo "$ANDROID_API_LEVEL" >&6; }
   5678   if test -z "$ANDROID_API_LEVEL"; then
   5679     echo 'Fatal: you must define __ANDROID_API__'
   5680     exit 1
   5681   fi
   5682 
   5683 cat >>confdefs.h <<_ACEOF
   5684 #define ANDROID_API_LEVEL $ANDROID_API_LEVEL
   5685 _ACEOF
   5686 
   5687 
   5688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
   5689 $as_echo_n "checking for the Android arm ABI... " >&6; }
   5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
   5691 $as_echo "$_arm_arch" >&6; }
   5692   if test "$_arm_arch" = 7; then
   5693     BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
   5694     LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
   5695   fi
   5696 else
   5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
   5698 $as_echo "not Android" >&6; }
   5699 fi
   5700 rm -f conftest.c conftest.out
   5701 
   5702 # Check for unsupported systems
   5703 case $ac_sys_system/$ac_sys_release in
   5704 atheos*|Linux*/1*)
   5705    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
   5706    echo See README for details.
   5707    exit 1;;
   5708 esac
   5709 
   5710 
   5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
   5712 $as_echo_n "checking for --with-suffix... " >&6; }
   5713 
   5714 # Check whether --with-suffix was given.
   5715 if test "${with_suffix+set}" = set; then :
   5716   withval=$with_suffix;
   5717 	case $withval in
   5718 	no)	EXEEXT=;;
   5719 	yes)	EXEEXT=.exe;;
   5720 	*)	EXEEXT=$withval;;
   5721 	esac
   5722 fi
   5723 
   5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
   5725 $as_echo "$EXEEXT" >&6; }
   5726 
   5727 # Test whether we're running on a non-case-sensitive system, in which
   5728 # case we give a warning if no ext is given
   5729 
   5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
   5731 $as_echo_n "checking for case-insensitive build directory... " >&6; }
   5732 if test ! -d CaseSensitiveTestDir; then
   5733 mkdir CaseSensitiveTestDir
   5734 fi
   5735 
   5736 if test -d casesensitivetestdir
   5737 then
   5738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5739 $as_echo "yes" >&6; }
   5740     BUILDEXEEXT=.exe
   5741 else
   5742 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5743 $as_echo "no" >&6; }
   5744 	BUILDEXEEXT=$EXEEXT
   5745 fi
   5746 rmdir CaseSensitiveTestDir
   5747 
   5748 case $ac_sys_system in
   5749 hp*|HP*)
   5750     case $CC in
   5751     cc|*/cc) CC="$CC -Ae";;
   5752     esac;;
   5753 esac
   5754 
   5755 
   5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
   5757 $as_echo_n "checking LIBRARY... " >&6; }
   5758 if test -z "$LIBRARY"
   5759 then
   5760 	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
   5761 fi
   5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
   5763 $as_echo "$LIBRARY" >&6; }
   5764 
   5765 # LDLIBRARY is the name of the library to link against (as opposed to the
   5766 # name of the library into which to insert object files). BLDLIBRARY is also
   5767 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
   5768 # is blank as the main program is not linked directly against LDLIBRARY.
   5769 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
   5770 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
   5771 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
   5772 # DLLLIBRARY is the shared (i.e., DLL) library.
   5773 #
   5774 # RUNSHARED is used to run shared python without installed libraries
   5775 #
   5776 # INSTSONAME is the name of the shared library that will be use to install
   5777 # on the system - some systems like version suffix, others don't
   5778 #
   5779 # LDVERSION is the shared library version number, normally the Python version
   5780 # with the ABI build flags appended.
   5781 
   5782 
   5783 
   5784 
   5785 
   5786 
   5787 
   5788 
   5789 LDLIBRARY="$LIBRARY"
   5790 BLDLIBRARY='$(LDLIBRARY)'
   5791 INSTSONAME='$(LDLIBRARY)'
   5792 DLLLIBRARY=''
   5793 LDLIBRARYDIR=''
   5794 RUNSHARED=''
   5795 LDVERSION="$VERSION"
   5796 
   5797 # LINKCC is the command that links the python executable -- default is $(CC).
   5798 # If CXX is set, and if it is needed to link a main function that was
   5799 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
   5800 # python might then depend on the C++ runtime
   5801 # This is altered for AIX in order to build the export list before
   5802 # linking.
   5803 
   5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
   5805 $as_echo_n "checking LINKCC... " >&6; }
   5806 if test -z "$LINKCC"
   5807 then
   5808 	LINKCC='$(PURIFY) $(MAINCC)'
   5809 	case $ac_sys_system in
   5810 	AIX*)
   5811 	   exp_extra="\"\""
   5812 	   if test $ac_sys_release -ge 5 -o \
   5813 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
   5814 	       exp_extra="."
   5815 	   fi
   5816 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
   5817 	QNX*)
   5818 	   # qcc must be used because the other compilers do not
   5819 	   # support -N.
   5820 	   LINKCC=qcc;;
   5821 	esac
   5822 fi
   5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
   5824 $as_echo "$LINKCC" >&6; }
   5825 
   5826 # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong
   5827 # make sure we default having it set to "no": this is used by
   5828 # distutils.unixccompiler to know if it should add --enable-new-dtags
   5829 # to linker command lines, and failing to detect GNU ld simply results
   5830 # in the same bahaviour as before.
   5831 
   5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   5833 $as_echo_n "checking for GNU ld... " >&6; }
   5834 ac_prog=ld
   5835 if test "$GCC" = yes; then
   5836        ac_prog=`$CC -print-prog-name=ld`
   5837 fi
   5838 case `"$ac_prog" -V 2>&1 < /dev/null` in
   5839       *GNU*)
   5840           GNULD=yes;;
   5841       *)
   5842           GNULD=no;;
   5843 esac
   5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
   5845 $as_echo "$GNULD" >&6; }
   5846 
   5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
   5848 $as_echo_n "checking for --enable-shared... " >&6; }
   5849 # Check whether --enable-shared was given.
   5850 if test "${enable_shared+set}" = set; then :
   5851   enableval=$enable_shared;
   5852 fi
   5853 
   5854 
   5855 if test -z "$enable_shared"
   5856 then
   5857   case $ac_sys_system in
   5858   CYGWIN*)
   5859     enable_shared="yes";;
   5860   *)
   5861     enable_shared="no";;
   5862   esac
   5863 fi
   5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   5865 $as_echo "$enable_shared" >&6; }
   5866 
   5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
   5868 $as_echo_n "checking for --enable-profiling... " >&6; }
   5869 # Check whether --enable-profiling was given.
   5870 if test "${enable_profiling+set}" = set; then :
   5871   enableval=$enable_profiling;
   5872 fi
   5873 
   5874 if test "x$enable_profiling" = xyes; then
   5875   ac_save_cc="$CC"
   5876   CC="$CC -pg"
   5877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5878 /* end confdefs.h.  */
   5879 int main() { return 0; }
   5880 _ACEOF
   5881 if ac_fn_c_try_link "$LINENO"; then :
   5882 
   5883 else
   5884   enable_profiling=no
   5885 fi
   5886 rm -f core conftest.err conftest.$ac_objext \
   5887     conftest$ac_exeext conftest.$ac_ext
   5888   CC="$ac_save_cc"
   5889 else
   5890   enable_profiling=no
   5891 fi
   5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
   5893 $as_echo "$enable_profiling" >&6; }
   5894 
   5895 if test "x$enable_profiling" = xyes; then
   5896   BASECFLAGS="-pg $BASECFLAGS"
   5897   LDFLAGS="-pg $LDFLAGS"
   5898 fi
   5899 
   5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
   5901 $as_echo_n "checking LDLIBRARY... " >&6; }
   5902 
   5903 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
   5904 # library that we build, but we do not want to link against it (we
   5905 # will find it with a -framework option). For this reason there is an
   5906 # extra variable BLDLIBRARY against which Python and the extension
   5907 # modules are linked, BLDLIBRARY. This is normally the same as
   5908 # LDLIBRARY, but empty for MacOSX framework builds.
   5909 if test "$enable_framework"
   5910 then
   5911   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   5912   RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
   5913   BLDLIBRARY=''
   5914 else
   5915   BLDLIBRARY='$(LDLIBRARY)'
   5916 fi
   5917 
   5918 # Other platforms follow
   5919 if test $enable_shared = "yes"; then
   5920   PY_ENABLE_SHARED=1
   5921 
   5922 $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
   5923 
   5924   case $ac_sys_system in
   5925     CYGWIN*)
   5926           LDLIBRARY='libpython$(LDVERSION).dll.a'
   5927           DLLLIBRARY='libpython$(LDVERSION).dll'
   5928           ;;
   5929     SunOS*)
   5930 	  LDLIBRARY='libpython$(LDVERSION).so'
   5931 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
   5932 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
   5933 	  INSTSONAME="$LDLIBRARY".$SOVERSION
   5934 	  if test "$with_pydebug" != yes
   5935 	  then
   5936 	      PY3LIBRARY=libpython3.so
   5937 	  fi
   5938           ;;
   5939     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
   5940 	  LDLIBRARY='libpython$(LDVERSION).so'
   5941 	  BLDLIBRARY='-L. -lpython$(LDVERSION)'
   5942 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
   5943 	  INSTSONAME="$LDLIBRARY".$SOVERSION
   5944 	  if test "$with_pydebug" != yes
   5945           then
   5946 	      PY3LIBRARY=libpython3.so
   5947 	  fi
   5948 	  ;;
   5949     hp*|HP*)
   5950 	  case `uname -m` in
   5951 		ia64)
   5952 			LDLIBRARY='libpython$(LDVERSION).so'
   5953 			;;
   5954 		*)
   5955 			LDLIBRARY='libpython$(LDVERSION).sl'
   5956 			;;
   5957 	  esac
   5958 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
   5959 	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
   5960 	  ;;
   5961     Darwin*)
   5962     	LDLIBRARY='libpython$(LDVERSION).dylib'
   5963 	BLDLIBRARY='-L. -lpython$(LDVERSION)'
   5964 	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
   5965 	;;
   5966     AIX*)
   5967 	LDLIBRARY='libpython$(LDVERSION).so'
   5968 	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
   5969 	;;
   5970 
   5971   esac
   5972 else # shared is disabled
   5973   PY_ENABLE_SHARED=0
   5974   case $ac_sys_system in
   5975     CYGWIN*)
   5976           BLDLIBRARY='$(LIBRARY)'
   5977           LDLIBRARY='libpython$(LDVERSION).dll.a'
   5978           ;;
   5979   esac
   5980 fi
   5981 
   5982 if test "$cross_compiling" = yes; then
   5983 	RUNSHARED=
   5984 fi
   5985 
   5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
   5987 $as_echo "$LDLIBRARY" >&6; }
   5988 
   5989 
   5990 if test -n "$ac_tool_prefix"; then
   5991   for ac_prog in ar aal
   5992   do
   5993     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5996 $as_echo_n "checking for $ac_word... " >&6; }
   5997 if ${ac_cv_prog_AR+:} false; then :
   5998   $as_echo_n "(cached) " >&6
   5999 else
   6000   if test -n "$AR"; then
   6001   ac_cv_prog_AR="$AR" # Let the user override the test.
   6002 else
   6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6004 for as_dir in $PATH
   6005 do
   6006   IFS=$as_save_IFS
   6007   test -z "$as_dir" && as_dir=.
   6008     for ac_exec_ext in '' $ac_executable_extensions; do
   6009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6010     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   6011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6012     break 2
   6013   fi
   6014 done
   6015   done
   6016 IFS=$as_save_IFS
   6017 
   6018 fi
   6019 fi
   6020 AR=$ac_cv_prog_AR
   6021 if test -n "$AR"; then
   6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6023 $as_echo "$AR" >&6; }
   6024 else
   6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6026 $as_echo "no" >&6; }
   6027 fi
   6028 
   6029 
   6030     test -n "$AR" && break
   6031   done
   6032 fi
   6033 if test -z "$AR"; then
   6034   ac_ct_AR=$AR
   6035   for ac_prog in ar aal
   6036 do
   6037   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6038 set dummy $ac_prog; ac_word=$2
   6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6040 $as_echo_n "checking for $ac_word... " >&6; }
   6041 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   6042   $as_echo_n "(cached) " >&6
   6043 else
   6044   if test -n "$ac_ct_AR"; then
   6045   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6046 else
   6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6048 for as_dir in $PATH
   6049 do
   6050   IFS=$as_save_IFS
   6051   test -z "$as_dir" && as_dir=.
   6052     for ac_exec_ext in '' $ac_executable_extensions; do
   6053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6054     ac_cv_prog_ac_ct_AR="$ac_prog"
   6055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6056     break 2
   6057   fi
   6058 done
   6059   done
   6060 IFS=$as_save_IFS
   6061 
   6062 fi
   6063 fi
   6064 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6065 if test -n "$ac_ct_AR"; then
   6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   6067 $as_echo "$ac_ct_AR" >&6; }
   6068 else
   6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6070 $as_echo "no" >&6; }
   6071 fi
   6072 
   6073 
   6074   test -n "$ac_ct_AR" && break
   6075 done
   6076 
   6077   if test "x$ac_ct_AR" = x; then
   6078     AR="ar"
   6079   else
   6080     case $cross_compiling:$ac_tool_warned in
   6081 yes:)
   6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6084 ac_tool_warned=yes ;;
   6085 esac
   6086     AR=$ac_ct_AR
   6087   fi
   6088 fi
   6089 
   6090 
   6091 # tweak ARFLAGS only if the user didn't set it on the command line
   6092 
   6093 if test -z "$ARFLAGS"
   6094 then
   6095         ARFLAGS="rcs"
   6096 fi
   6097 
   6098 if test -n "$ac_tool_prefix"; then
   6099   for ac_prog in readelf
   6100   do
   6101     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   6102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6104 $as_echo_n "checking for $ac_word... " >&6; }
   6105 if ${ac_cv_prog_READELF+:} false; then :
   6106   $as_echo_n "(cached) " >&6
   6107 else
   6108   if test -n "$READELF"; then
   6109   ac_cv_prog_READELF="$READELF" # Let the user override the test.
   6110 else
   6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6112 for as_dir in $PATH
   6113 do
   6114   IFS=$as_save_IFS
   6115   test -z "$as_dir" && as_dir=.
   6116     for ac_exec_ext in '' $ac_executable_extensions; do
   6117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6118     ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
   6119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6120     break 2
   6121   fi
   6122 done
   6123   done
   6124 IFS=$as_save_IFS
   6125 
   6126 fi
   6127 fi
   6128 READELF=$ac_cv_prog_READELF
   6129 if test -n "$READELF"; then
   6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
   6131 $as_echo "$READELF" >&6; }
   6132 else
   6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6134 $as_echo "no" >&6; }
   6135 fi
   6136 
   6137 
   6138     test -n "$READELF" && break
   6139   done
   6140 fi
   6141 if test -z "$READELF"; then
   6142   ac_ct_READELF=$READELF
   6143   for ac_prog in readelf
   6144 do
   6145   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6146 set dummy $ac_prog; ac_word=$2
   6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6148 $as_echo_n "checking for $ac_word... " >&6; }
   6149 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
   6150   $as_echo_n "(cached) " >&6
   6151 else
   6152   if test -n "$ac_ct_READELF"; then
   6153   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
   6154 else
   6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6156 for as_dir in $PATH
   6157 do
   6158   IFS=$as_save_IFS
   6159   test -z "$as_dir" && as_dir=.
   6160     for ac_exec_ext in '' $ac_executable_extensions; do
   6161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6162     ac_cv_prog_ac_ct_READELF="$ac_prog"
   6163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6164     break 2
   6165   fi
   6166 done
   6167   done
   6168 IFS=$as_save_IFS
   6169 
   6170 fi
   6171 fi
   6172 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
   6173 if test -n "$ac_ct_READELF"; then
   6174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
   6175 $as_echo "$ac_ct_READELF" >&6; }
   6176 else
   6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6178 $as_echo "no" >&6; }
   6179 fi
   6180 
   6181 
   6182   test -n "$ac_ct_READELF" && break
   6183 done
   6184 
   6185   if test "x$ac_ct_READELF" = x; then
   6186     READELF=":"
   6187   else
   6188     case $cross_compiling:$ac_tool_warned in
   6189 yes:)
   6190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6192 ac_tool_warned=yes ;;
   6193 esac
   6194     READELF=$ac_ct_READELF
   6195   fi
   6196 fi
   6197 
   6198 if test "$cross_compiling" = yes; then
   6199     case "$READELF" in
   6200 	readelf|:)
   6201 	as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
   6202 	;;
   6203     esac
   6204 fi
   6205 
   6206 
   6207 
   6208 case $MACHDEP in
   6209 hp*|HP*)
   6210 	# install -d does not work on HP-UX
   6211 	if test -z "$INSTALL"
   6212 	then
   6213 		INSTALL="${srcdir}/install-sh -c"
   6214 	fi
   6215 esac
   6216 # Find a good install program.  We prefer a C program (faster),
   6217 # so one script is as good as another.  But avoid the broken or
   6218 # incompatible versions:
   6219 # SysV /etc/install, /usr/sbin/install
   6220 # SunOS /usr/etc/install
   6221 # IRIX /sbin/install
   6222 # AIX /bin/install
   6223 # AmigaOS /C/install, which installs bootblocks on floppy discs
   6224 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   6225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   6226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   6227 # OS/2's system install, which has a completely different semantic
   6228 # ./install, which can be erroneously created by make from ./install.sh.
   6229 # Reject install programs that cannot install multiple files.
   6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   6231 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   6232 if test -z "$INSTALL"; then
   6233 if ${ac_cv_path_install+:} false; then :
   6234   $as_echo_n "(cached) " >&6
   6235 else
   6236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6237 for as_dir in $PATH
   6238 do
   6239   IFS=$as_save_IFS
   6240   test -z "$as_dir" && as_dir=.
   6241     # Account for people who put trailing slashes in PATH elements.
   6242 case $as_dir/ in #((
   6243   ./ | .// | /[cC]/* | \
   6244   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   6245   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   6246   /usr/ucb/* ) ;;
   6247   *)
   6248     # OSF1 and SCO ODT 3.0 have their own names for install.
   6249     # Don't use installbsd from OSF since it installs stuff as root
   6250     # by default.
   6251     for ac_prog in ginstall scoinst install; do
   6252       for ac_exec_ext in '' $ac_executable_extensions; do
   6253 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   6254 	  if test $ac_prog = install &&
   6255 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6256 	    # AIX install.  It has an incompatible calling convention.
   6257 	    :
   6258 	  elif test $ac_prog = install &&
   6259 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6260 	    # program-specific install script used by HP pwplus--don't use.
   6261 	    :
   6262 	  else
   6263 	    rm -rf conftest.one conftest.two conftest.dir
   6264 	    echo one > conftest.one
   6265 	    echo two > conftest.two
   6266 	    mkdir conftest.dir
   6267 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   6268 	      test -s conftest.one && test -s conftest.two &&
   6269 	      test -s conftest.dir/conftest.one &&
   6270 	      test -s conftest.dir/conftest.two
   6271 	    then
   6272 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   6273 	      break 3
   6274 	    fi
   6275 	  fi
   6276 	fi
   6277       done
   6278     done
   6279     ;;
   6280 esac
   6281 
   6282   done
   6283 IFS=$as_save_IFS
   6284 
   6285 rm -rf conftest.one conftest.two conftest.dir
   6286 
   6287 fi
   6288   if test "${ac_cv_path_install+set}" = set; then
   6289     INSTALL=$ac_cv_path_install
   6290   else
   6291     # As a last resort, use the slow shell script.  Don't cache a
   6292     # value for INSTALL within a source directory, because that will
   6293     # break other packages using the cache if that directory is
   6294     # removed, or if the value is a relative name.
   6295     INSTALL=$ac_install_sh
   6296   fi
   6297 fi
   6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   6299 $as_echo "$INSTALL" >&6; }
   6300 
   6301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   6302 # It thinks the first close brace ends the variable substitution.
   6303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   6304 
   6305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   6306 
   6307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   6308 
   6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   6310 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   6311 if test -z "$MKDIR_P"; then
   6312   if ${ac_cv_path_mkdir+:} false; then :
   6313   $as_echo_n "(cached) " >&6
   6314 else
   6315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6316 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   6317 do
   6318   IFS=$as_save_IFS
   6319   test -z "$as_dir" && as_dir=.
   6320     for ac_prog in mkdir gmkdir; do
   6321 	 for ac_exec_ext in '' $ac_executable_extensions; do
   6322 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   6323 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   6324 	     'mkdir (GNU coreutils) '* | \
   6325 	     'mkdir (coreutils) '* | \
   6326 	     'mkdir (fileutils) '4.1*)
   6327 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   6328 	       break 3;;
   6329 	   esac
   6330 	 done
   6331        done
   6332   done
   6333 IFS=$as_save_IFS
   6334 
   6335 fi
   6336 
   6337   test -d ./--version && rmdir ./--version
   6338   if test "${ac_cv_path_mkdir+set}" = set; then
   6339     MKDIR_P="$ac_cv_path_mkdir -p"
   6340   else
   6341     # As a last resort, use the slow shell script.  Don't cache a
   6342     # value for MKDIR_P within a source directory, because that will
   6343     # break other packages using the cache if that directory is
   6344     # removed, or if the value is a relative name.
   6345     MKDIR_P="$ac_install_sh -d"
   6346   fi
   6347 fi
   6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   6349 $as_echo "$MKDIR_P" >&6; }
   6350 
   6351 
   6352 # Not every filesystem supports hard links
   6353 
   6354 if test -z "$LN" ; then
   6355 	case $ac_sys_system in
   6356 		CYGWIN*) LN="ln -s";;
   6357 		*) LN=ln;;
   6358 	esac
   6359 fi
   6360 
   6361 # For calculating the .so ABI tag.
   6362 
   6363 ABIFLAGS=""
   6364 
   6365 # Check for --with-pydebug
   6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
   6367 $as_echo_n "checking for --with-pydebug... " >&6; }
   6368 
   6369 # Check whether --with-pydebug was given.
   6370 if test "${with_pydebug+set}" = set; then :
   6371   withval=$with_pydebug;
   6372 if test "$withval" != no
   6373 then
   6374 
   6375 $as_echo "#define Py_DEBUG 1" >>confdefs.h
   6376 
   6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6378 $as_echo "yes" >&6; };
   6379   Py_DEBUG='true'
   6380   ABIFLAGS="${ABIFLAGS}d"
   6381 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6382 $as_echo "no" >&6; }; Py_DEBUG='false'
   6383 fi
   6384 else
   6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6386 $as_echo "no" >&6; }
   6387 fi
   6388 
   6389 
   6390 # Check for --with-assertions. Py_DEBUG implies assertions, but also changes
   6391 # the ABI. This allows enabling assertions without changing the ABI.
   6392 assertions='false'
   6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
   6394 $as_echo_n "checking for --with-assertions... " >&6; }
   6395 
   6396 # Check whether --with-assertions was given.
   6397 if test "${with_assertions+set}" = set; then :
   6398   withval=$with_assertions;
   6399 if test "$withval" != no
   6400 then
   6401   assertions='true'
   6402 fi
   6403 fi
   6404 
   6405 if test "$assertions" = 'true'; then
   6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6407 $as_echo "yes" >&6; }
   6408 elif test "$Py_DEBUG" = 'true'; then
   6409   assertions='true'
   6410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
   6411 $as_echo "implied by --with-pydebug" >&6; }
   6412 else
   6413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6414 $as_echo "no" >&6; }
   6415 fi
   6416 
   6417 # Enable optimization flags
   6418 
   6419 
   6420 Py_OPT='false'
   6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
   6422 $as_echo_n "checking for --enable-optimizations... " >&6; }
   6423 # Check whether --enable-optimizations was given.
   6424 if test "${enable_optimizations+set}" = set; then :
   6425   enableval=$enable_optimizations;
   6426 if test "$enableval" != no
   6427 then
   6428   Py_OPT='true'
   6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6430 $as_echo "yes" >&6; };
   6431 else
   6432   Py_OPT='false'
   6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6434 $as_echo "no" >&6; };
   6435 fi
   6436 else
   6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6438 $as_echo "no" >&6; }
   6439 fi
   6440 
   6441 if test "$Py_OPT" = 'true' ; then
   6442   # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not
   6443   # compile working code using it and both test_distutils and test_gdb are
   6444   # broken when you do manage to get a toolchain that works with it.  People
   6445   # who want LTO need to use --with-lto themselves.
   6446   DEF_MAKE_ALL_RULE="profile-opt"
   6447   REQUIRE_PGO="yes"
   6448   DEF_MAKE_RULE="build_all"
   6449 else
   6450   DEF_MAKE_ALL_RULE="build_all"
   6451   REQUIRE_PGO="no"
   6452   DEF_MAKE_RULE="all"
   6453 fi
   6454 
   6455 # Make llvm-relatec checks work on systems where llvm tools are not installed with their
   6456 # normal names in the default $PATH (ie: Ubuntu).  They exist under the
   6457 # non-suffixed name in their versioned llvm directory.
   6458 
   6459 llvm_bin_dir=''
   6460 llvm_path="${PATH}"
   6461 if test "${CC}" = "clang"
   6462 then
   6463   clang_bin=`which clang`
   6464   # Some systems install clang elsewhere as a symlink to the real path
   6465   # which is where the related llvm tools are located.
   6466   if test -L "${clang_bin}"
   6467   then
   6468     clang_dir=`dirname "${clang_bin}"`
   6469     clang_bin=`readlink "${clang_bin}"`
   6470     llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
   6471     llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
   6472   fi
   6473 fi
   6474 
   6475 # Enable LTO flags
   6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
   6477 $as_echo_n "checking for --with-lto... " >&6; }
   6478 
   6479 # Check whether --with-lto was given.
   6480 if test "${with_lto+set}" = set; then :
   6481   withval=$with_lto;
   6482 if test "$withval" != no
   6483 then
   6484   Py_LTO='true'
   6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6486 $as_echo "yes" >&6; };
   6487 else
   6488   Py_LTO='false'
   6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6490 $as_echo "no" >&6; };
   6491 fi
   6492 else
   6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6494 $as_echo "no" >&6; }
   6495 fi
   6496 
   6497 if test "$Py_LTO" = 'true' ; then
   6498   case $CC in
   6499     *clang*)
   6500 
   6501       { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   6502 $as_echo_n "checking target system type... " >&6; }
   6503 if ${ac_cv_target+:} false; then :
   6504   $as_echo_n "(cached) " >&6
   6505 else
   6506   if test "x$target_alias" = x; then
   6507   ac_cv_target=$ac_cv_host
   6508 else
   6509   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   6510     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   6511 fi
   6512 
   6513 fi
   6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   6515 $as_echo "$ac_cv_target" >&6; }
   6516 case $ac_cv_target in
   6517 *-*-*) ;;
   6518 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   6519 esac
   6520 target=$ac_cv_target
   6521 ac_save_IFS=$IFS; IFS='-'
   6522 set x $ac_cv_target
   6523 shift
   6524 target_cpu=$1
   6525 target_vendor=$2
   6526 shift; shift
   6527 # Remember, the first character of IFS is used to create $*,
   6528 # except with old shells:
   6529 target_os=$*
   6530 IFS=$ac_save_IFS
   6531 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   6532 
   6533 
   6534 # The aliases save the names the user supplied, while $host etc.
   6535 # will get canonicalized.
   6536 test -n "$target_alias" &&
   6537   test "$program_prefix$program_suffix$program_transform_name" = \
   6538     NONENONEs,x,x, &&
   6539   program_prefix=${target_alias}-
   6540 # Extract the first word of "$target_alias-llvm-ar", so it can be a program name with args.
   6541 set dummy $target_alias-llvm-ar; ac_word=$2
   6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6543 $as_echo_n "checking for $ac_word... " >&6; }
   6544 if ${ac_cv_path_LLVM_AR+:} false; then :
   6545   $as_echo_n "(cached) " >&6
   6546 else
   6547   case $LLVM_AR in
   6548   [\\/]* | ?:[\\/]*)
   6549   ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path.
   6550   ;;
   6551   *)
   6552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6553 for as_dir in ${llvm_path}
   6554 do
   6555   IFS=$as_save_IFS
   6556   test -z "$as_dir" && as_dir=.
   6557     for ac_exec_ext in '' $ac_executable_extensions; do
   6558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6559     ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
   6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6561     break 2
   6562   fi
   6563 done
   6564   done
   6565 IFS=$as_save_IFS
   6566 
   6567   ;;
   6568 esac
   6569 fi
   6570 LLVM_AR=$ac_cv_path_LLVM_AR
   6571 if test -n "$LLVM_AR"; then
   6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
   6573 $as_echo "$LLVM_AR" >&6; }
   6574 else
   6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6576 $as_echo "no" >&6; }
   6577 fi
   6578 
   6579 
   6580 if test -z "$ac_cv_path_LLVM_AR"; then
   6581   if test "$build" = "$target"; then
   6582     ac_pt_LLVM_AR=$LLVM_AR
   6583     # Extract the first word of "llvm-ar", so it can be a program name with args.
   6584 set dummy llvm-ar; ac_word=$2
   6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6586 $as_echo_n "checking for $ac_word... " >&6; }
   6587 if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then :
   6588   $as_echo_n "(cached) " >&6
   6589 else
   6590   case $ac_pt_LLVM_AR in
   6591   [\\/]* | ?:[\\/]*)
   6592   ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path.
   6593   ;;
   6594   *)
   6595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6596 for as_dir in ${llvm_path}
   6597 do
   6598   IFS=$as_save_IFS
   6599   test -z "$as_dir" && as_dir=.
   6600     for ac_exec_ext in '' $ac_executable_extensions; do
   6601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6602     ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
   6603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6604     break 2
   6605   fi
   6606 done
   6607   done
   6608 IFS=$as_save_IFS
   6609 
   6610   test -z "$ac_cv_path_ac_pt_LLVM_AR" && ac_cv_path_ac_pt_LLVM_AR="''"
   6611   ;;
   6612 esac
   6613 fi
   6614 ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR
   6615 if test -n "$ac_pt_LLVM_AR"; then
   6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
   6617 $as_echo "$ac_pt_LLVM_AR" >&6; }
   6618 else
   6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6620 $as_echo "no" >&6; }
   6621 fi
   6622 
   6623     LLVM_AR=$ac_pt_LLVM_AR
   6624   else
   6625     LLVM_AR="''"
   6626   fi
   6627 else
   6628   LLVM_AR="$ac_cv_path_LLVM_AR"
   6629 fi
   6630 
   6631 
   6632       if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
   6633       then
   6634         LLVM_AR_FOUND="found"
   6635       else
   6636         LLVM_AR_FOUND="not-found"
   6637       fi
   6638       if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
   6639       then
   6640         found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null`
   6641         if test -n "${found_llvm_ar}"
   6642         then
   6643           LLVM_AR='/usr/bin/xcrun llvm-ar'
   6644           LLVM_AR_FOUND=found
   6645           { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
   6646 $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
   6647         fi
   6648       fi
   6649       if test $LLVM_AR_FOUND = not-found
   6650       then
   6651         LLVM_PROFR_ERR=yes
   6652         as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
   6653       else
   6654         LLVM_AR_ERR=no
   6655       fi
   6656       AR="${LLVM_AR}"
   6657       case $ac_sys_system in
   6658         Darwin*)
   6659           # Any changes made here should be reflected in the GCC+Darwin case below
   6660           LTOFLAGS="-flto -Wl,-export_dynamic"
   6661           ;;
   6662         *)
   6663           LTOFLAGS="-flto"
   6664           ;;
   6665       esac
   6666       ;;
   6667     *gcc*)
   6668       case $ac_sys_system in
   6669         Darwin*)
   6670           LTOFLAGS="-flto -Wl,-export_dynamic"
   6671           ;;
   6672         *)
   6673           LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
   6674           ;;
   6675       esac
   6676       ;;
   6677   esac
   6678 
   6679   if test "$ac_cv_prog_cc_g" = "yes"
   6680   then
   6681       # bpo-30345: Add -g to LDFLAGS when compiling with LTO
   6682       # to get debug symbols.
   6683       LTOFLAGS="$LTOFLAGS -g"
   6684   fi
   6685 
   6686   CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS"
   6687   LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS"
   6688 fi
   6689 
   6690 # Enable PGO flags.
   6691 
   6692 
   6693 
   6694 
   6695 
   6696 
   6697 # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args.
   6698 set dummy $target_alias-llvm-profdata; ac_word=$2
   6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6700 $as_echo_n "checking for $ac_word... " >&6; }
   6701 if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
   6702   $as_echo_n "(cached) " >&6
   6703 else
   6704   case $LLVM_PROFDATA in
   6705   [\\/]* | ?:[\\/]*)
   6706   ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
   6707   ;;
   6708   *)
   6709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6710 for as_dir in ${llvm_path}
   6711 do
   6712   IFS=$as_save_IFS
   6713   test -z "$as_dir" && as_dir=.
   6714     for ac_exec_ext in '' $ac_executable_extensions; do
   6715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6716     ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
   6717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6718     break 2
   6719   fi
   6720 done
   6721   done
   6722 IFS=$as_save_IFS
   6723 
   6724   ;;
   6725 esac
   6726 fi
   6727 LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
   6728 if test -n "$LLVM_PROFDATA"; then
   6729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
   6730 $as_echo "$LLVM_PROFDATA" >&6; }
   6731 else
   6732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6733 $as_echo "no" >&6; }
   6734 fi
   6735 
   6736 
   6737 if test -z "$ac_cv_path_LLVM_PROFDATA"; then
   6738   if test "$build" = "$target"; then
   6739     ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
   6740     # Extract the first word of "llvm-profdata", so it can be a program name with args.
   6741 set dummy llvm-profdata; ac_word=$2
   6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6743 $as_echo_n "checking for $ac_word... " >&6; }
   6744 if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
   6745   $as_echo_n "(cached) " >&6
   6746 else
   6747   case $ac_pt_LLVM_PROFDATA in
   6748   [\\/]* | ?:[\\/]*)
   6749   ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
   6750   ;;
   6751   *)
   6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6753 for as_dir in ${llvm_path}
   6754 do
   6755   IFS=$as_save_IFS
   6756   test -z "$as_dir" && as_dir=.
   6757     for ac_exec_ext in '' $ac_executable_extensions; do
   6758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6759     ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
   6760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6761     break 2
   6762   fi
   6763 done
   6764   done
   6765 IFS=$as_save_IFS
   6766 
   6767   test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''"
   6768   ;;
   6769 esac
   6770 fi
   6771 ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
   6772 if test -n "$ac_pt_LLVM_PROFDATA"; then
   6773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
   6774 $as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
   6775 else
   6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6777 $as_echo "no" >&6; }
   6778 fi
   6779 
   6780     LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
   6781   else
   6782     LLVM_PROFDATA="''"
   6783   fi
   6784 else
   6785   LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
   6786 fi
   6787 
   6788 
   6789 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
   6790 then
   6791   LLVM_PROF_FOUND="found"
   6792 else
   6793   LLVM_PROF_FOUND="not-found"
   6794 fi
   6795 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
   6796 then
   6797   found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
   6798   if test -n "${found_llvm_profdata}"
   6799   then
   6800     # llvm-profdata isn't directly in $PATH in some cases.
   6801     # https://apple.stackexchange.com/questions/197053/
   6802     LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
   6803     LLVM_PROF_FOUND=found
   6804     { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
   6805 $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
   6806   fi
   6807 fi
   6808 LLVM_PROF_ERR=no
   6809 case $CC in
   6810   *clang*)
   6811     # Any changes made here should be reflected in the GCC+Darwin case below
   6812     PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
   6813     PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
   6814     LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
   6815     LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
   6816     if test $LLVM_PROF_FOUND = not-found
   6817     then
   6818       LLVM_PROF_ERR=yes
   6819       if test "${REQUIRE_PGO}" = "yes"
   6820       then
   6821         as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
   6822       fi
   6823     fi
   6824     ;;
   6825   *gcc*)
   6826     case $ac_sys_system in
   6827       Darwin*)
   6828         PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
   6829         PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
   6830         LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
   6831         LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
   6832         if test "${LLVM_PROF_FOUND}" = "not-found"
   6833         then
   6834           LLVM_PROF_ERR=yes
   6835           if test "${REQUIRE_PGO}" = "yes"
   6836 	  then
   6837 	    as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
   6838 	  fi
   6839         fi
   6840         ;;
   6841       *)
   6842         PGO_PROF_GEN_FLAG="-fprofile-generate"
   6843         PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
   6844         LLVM_PROF_MERGER="true"
   6845         LLVM_PROF_FILE=""
   6846         ;;
   6847     esac
   6848     ;;
   6849   *icc*)
   6850     PGO_PROF_GEN_FLAG="-prof-gen"
   6851     PGO_PROF_USE_FLAG="-prof-use"
   6852     LLVM_PROF_MERGER="true"
   6853     LLVM_PROF_FILE=""
   6854     ;;
   6855 esac
   6856 
   6857 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
   6858 # merged with this chunk of code?
   6859 
   6860 # Optimizer/debugger flags
   6861 # ------------------------
   6862 # (The following bit of code is complicated enough - please keep things
   6863 # indented properly.  Just pretend you're editing Python code. ;-)
   6864 
   6865 # There are two parallel sets of case statements below, one that checks to
   6866 # see if OPT was set and one that does BASECFLAGS setting based upon
   6867 # compiler and platform.  BASECFLAGS tweaks need to be made even if the
   6868 # user set OPT.
   6869 
   6870 # tweak OPT based on compiler and platform, only if the user didn't set
   6871 # it on the command line
   6872 
   6873 
   6874 if test "${OPT-unset}" = "unset"
   6875 then
   6876     case $GCC in
   6877     yes)
   6878         # For gcc 4.x we need to use -fwrapv so lets check if its supported
   6879         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
   6880            WRAP="-fwrapv"
   6881         fi
   6882 
   6883         case $CC in
   6884             *clang*)
   6885                 cc_is_clang=1
   6886                 ;;
   6887             *)
   6888                 if $CC --version 2>&1 | grep -q clang
   6889                 then
   6890                     cc_is_clang=1
   6891                 else
   6892                     cc_is_clang=
   6893                 fi
   6894         esac
   6895 
   6896         if test -n "${cc_is_clang}"
   6897         then
   6898             # Clang also needs -fwrapv
   6899             WRAP="-fwrapv"
   6900             # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
   6901             # see Makefile.pre.in for more information
   6902             CFLAGS_ALIASING="-fno-strict-aliasing"
   6903         fi
   6904 
   6905 	case $ac_cv_prog_cc_g in
   6906 	yes)
   6907 	    if test "$Py_DEBUG" = 'true' ; then
   6908 		# Optimization messes up debuggers, so turn it off for
   6909 		# debug builds.
   6910                 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
   6911                     OPT="-g -Og -Wall"
   6912                 else
   6913                     OPT="-g -O0 -Wall"
   6914                 fi
   6915 	    else
   6916 		OPT="-g $WRAP -O3 -Wall"
   6917 	    fi
   6918 	    ;;
   6919 	*)
   6920 	    OPT="-O3 -Wall"
   6921 	    ;;
   6922 	esac
   6923 
   6924 	case $ac_sys_system in
   6925 	    SCO_SV*) OPT="$OPT -m486 -DSCO5"
   6926 	    ;;
   6927         esac
   6928 	;;
   6929 
   6930     *)
   6931 	OPT="-O"
   6932 	;;
   6933     esac
   6934 fi
   6935 
   6936 
   6937 
   6938 
   6939 
   6940 # The -arch flags for universal builds on OSX
   6941 UNIVERSAL_ARCH_FLAGS=
   6942 
   6943 
   6944 # tweak BASECFLAGS based on compiler and platform
   6945 case $GCC in
   6946 yes)
   6947     CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
   6948 
   6949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
   6950 $as_echo_n "checking for -Wextra... " >&6; }
   6951      ac_save_cc="$CC"
   6952      CC="$CC -Wextra -Werror"
   6953      if ${ac_cv_extra_warnings+:} false; then :
   6954   $as_echo_n "(cached) " >&6
   6955 else
   6956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6957 /* end confdefs.h.  */
   6958 
   6959 
   6960 int
   6961 main ()
   6962 {
   6963 
   6964   ;
   6965   return 0;
   6966 }
   6967 
   6968 _ACEOF
   6969 if ac_fn_c_try_compile "$LINENO"; then :
   6970 
   6971            ac_cv_extra_warnings=yes
   6972 
   6973 else
   6974 
   6975            ac_cv_extra_warnings=no
   6976 
   6977 fi
   6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6979 fi
   6980 
   6981      CC="$ac_save_cc"
   6982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5
   6983 $as_echo "$ac_cv_extra_warnings" >&6; }
   6984 
   6985     if test $ac_cv_extra_warnings = yes
   6986     then
   6987       CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
   6988     fi
   6989 
   6990     # Python doesn't violate C99 aliasing rules, but older versions of
   6991     # GCC produce warnings for legal Python code.  Enable
   6992     # -fno-strict-aliasing on versions of GCC that support but produce
   6993     # warnings.  See Issue3326
   6994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
   6995 $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
   6996      ac_save_cc="$CC"
   6997      CC="$CC -fno-strict-aliasing"
   6998      save_CFLAGS="$CFLAGS"
   6999      if ${ac_cv_no_strict_aliasing+:} false; then :
   7000   $as_echo_n "(cached) " >&6
   7001 else
   7002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7003 /* end confdefs.h.  */
   7004 
   7005 
   7006 int
   7007 main ()
   7008 {
   7009 
   7010   ;
   7011   return 0;
   7012 }
   7013 
   7014 _ACEOF
   7015 if ac_fn_c_try_compile "$LINENO"; then :
   7016 
   7017 	   CC="$ac_save_cc -fstrict-aliasing"
   7018            CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
   7019            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7020 /* end confdefs.h.  */
   7021 
   7022 	       void f(int **x) {}
   7023 int
   7024 main ()
   7025 {
   7026 double *x; f((int **) &x);
   7027   ;
   7028   return 0;
   7029 }
   7030 
   7031 _ACEOF
   7032 if ac_fn_c_try_compile "$LINENO"; then :
   7033 
   7034 	       ac_cv_no_strict_aliasing=no
   7035 
   7036 else
   7037 
   7038                ac_cv_no_strict_aliasing=yes
   7039 
   7040 fi
   7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7042 
   7043 else
   7044 
   7045 	   ac_cv_no_strict_aliasing=no
   7046 
   7047 fi
   7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7049 fi
   7050 
   7051      CFLAGS="$save_CFLAGS"
   7052      CC="$ac_save_cc"
   7053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
   7054 $as_echo "$ac_cv_no_strict_aliasing" >&6; }
   7055     if test $ac_cv_no_strict_aliasing = yes
   7056     then
   7057       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
   7058     fi
   7059 
   7060     # ICC doesn't recognize the option, but only emits a warning
   7061     ## XXX does it emit an unused result warning and can it be disabled?
   7062     case "$CC" in
   7063     *icc*)
   7064     ac_cv_disable_unused_result_warning=no
   7065     ;;
   7066     *)
   7067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5
   7068 $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; }
   7069      ac_save_cc="$CC"
   7070      CC="$CC -Wunused-result -Werror"
   7071      save_CFLAGS="$CFLAGS"
   7072      if ${ac_cv_disable_unused_result_warning+:} false; then :
   7073   $as_echo_n "(cached) " >&6
   7074 else
   7075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7076 /* end confdefs.h.  */
   7077 
   7078 
   7079 int
   7080 main ()
   7081 {
   7082 
   7083   ;
   7084   return 0;
   7085 }
   7086 
   7087 _ACEOF
   7088 if ac_fn_c_try_compile "$LINENO"; then :
   7089 
   7090            ac_cv_disable_unused_result_warning=yes
   7091 
   7092 else
   7093 
   7094            ac_cv_disable_unused_result_warning=no
   7095 
   7096 fi
   7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7098 fi
   7099 
   7100      CFLAGS="$save_CFLAGS"
   7101      CC="$ac_save_cc"
   7102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
   7103 $as_echo "$ac_cv_disable_unused_result_warning" >&6; }
   7104     ;;
   7105     esac
   7106 
   7107     if test $ac_cv_disable_unused_result_warning = yes
   7108     then
   7109       BASECFLAGS="$BASECFLAGS -Wno-unused-result"
   7110       CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
   7111     fi
   7112 
   7113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5
   7114 $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; }
   7115      ac_save_cc="$CC"
   7116      CC="$CC -Wunused-parameter -Werror"
   7117      if ${ac_cv_disable_unused_parameter_warning+:} false; then :
   7118   $as_echo_n "(cached) " >&6
   7119 else
   7120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7121 /* end confdefs.h.  */
   7122 
   7123 
   7124 int
   7125 main ()
   7126 {
   7127 
   7128   ;
   7129   return 0;
   7130 }
   7131 
   7132 _ACEOF
   7133 if ac_fn_c_try_compile "$LINENO"; then :
   7134 
   7135            ac_cv_disable_unused_parameter_warning=yes
   7136 
   7137 else
   7138 
   7139            ac_cv_disable_unused_parameter_warning=no
   7140 
   7141 fi
   7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7143 fi
   7144 
   7145      CC="$ac_save_cc"
   7146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
   7147 $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; }
   7148 
   7149     if test $ac_cv_disable_unused_parameter_warning = yes
   7150     then
   7151       CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
   7152     fi
   7153 
   7154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5
   7155 $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; }
   7156      ac_save_cc="$CC"
   7157      CC="$CC -Wmissing-field-initializers -Werror"
   7158      if ${ac_cv_disable_missing_field_initializers+:} false; then :
   7159   $as_echo_n "(cached) " >&6
   7160 else
   7161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7162 /* end confdefs.h.  */
   7163 
   7164 
   7165 int
   7166 main ()
   7167 {
   7168 
   7169   ;
   7170   return 0;
   7171 }
   7172 
   7173 _ACEOF
   7174 if ac_fn_c_try_compile "$LINENO"; then :
   7175 
   7176            ac_cv_disable_missing_field_initializers=yes
   7177 
   7178 else
   7179 
   7180            ac_cv_disable_missing_field_initializers=no
   7181 
   7182 fi
   7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7184 fi
   7185 
   7186      CC="$ac_save_cc"
   7187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5
   7188 $as_echo "$ac_cv_disable_missing_field_initializers" >&6; }
   7189 
   7190     if test $ac_cv_disable_missing_field_initializers = yes
   7191     then
   7192       CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
   7193     fi
   7194 
   7195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC invalid function cast warning" >&5
   7196 $as_echo_n "checking if we can turn off $CC invalid function cast warning... " >&6; }
   7197      ac_save_cc="$CC"
   7198      CC="$CC -Wcast-function-type -Werror"
   7199      if ${ac_cv_disable_cast_function_type+:} false; then :
   7200   $as_echo_n "(cached) " >&6
   7201 else
   7202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7203 /* end confdefs.h.  */
   7204 
   7205 
   7206 int
   7207 main ()
   7208 {
   7209 
   7210   ;
   7211   return 0;
   7212 }
   7213 
   7214 _ACEOF
   7215 if ac_fn_c_try_compile "$LINENO"; then :
   7216 
   7217            ac_cv_disable_cast_function_type=yes
   7218 
   7219 else
   7220 
   7221            ac_cv_disable_cast_function_type=no
   7222 
   7223 fi
   7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7225 fi
   7226 
   7227      CC="$ac_save_cc"
   7228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_cast_function_type" >&5
   7229 $as_echo "$ac_cv_disable_cast_function_type" >&6; }
   7230 
   7231     if test $ac_cv_disable_cast_function_type = yes
   7232     then
   7233       CFLAGS_NODIST="$CFLAGS_NODIST -Wno-cast-function-type"
   7234     fi
   7235 
   7236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5
   7237 $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; }
   7238      ac_save_cc="$CC"
   7239      CC="$CC -Wsign-compare"
   7240      save_CFLAGS="$CFLAGS"
   7241      if ${ac_cv_enable_sign_compare_warning+:} false; then :
   7242   $as_echo_n "(cached) " >&6
   7243 else
   7244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7245 /* end confdefs.h.  */
   7246 
   7247 
   7248 int
   7249 main ()
   7250 {
   7251 
   7252   ;
   7253   return 0;
   7254 }
   7255 
   7256 _ACEOF
   7257 if ac_fn_c_try_compile "$LINENO"; then :
   7258 
   7259            ac_cv_enable_sign_compare_warning=yes
   7260 
   7261 else
   7262 
   7263            ac_cv_enable_sign_compare_warning=no
   7264 
   7265 fi
   7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7267 fi
   7268 
   7269      CFLAGS="$save_CFLAGS"
   7270      CC="$ac_save_cc"
   7271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
   7272 $as_echo "$ac_cv_enable_sign_compare_warning" >&6; }
   7273 
   7274     if test $ac_cv_enable_sign_compare_warning = yes
   7275     then
   7276       BASECFLAGS="$BASECFLAGS -Wsign-compare"
   7277     fi
   7278 
   7279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5
   7280 $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; }
   7281      ac_save_cc="$CC"
   7282      CC="$CC -Wunreachable-code"
   7283      save_CFLAGS="$CFLAGS"
   7284      if ${ac_cv_enable_unreachable_code_warning+:} false; then :
   7285   $as_echo_n "(cached) " >&6
   7286 else
   7287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7288 /* end confdefs.h.  */
   7289 
   7290 
   7291 int
   7292 main ()
   7293 {
   7294 
   7295   ;
   7296   return 0;
   7297 }
   7298 
   7299 _ACEOF
   7300 if ac_fn_c_try_compile "$LINENO"; then :
   7301 
   7302            ac_cv_enable_unreachable_code_warning=yes
   7303 
   7304 else
   7305 
   7306            ac_cv_enable_unreachable_code_warning=no
   7307 
   7308 fi
   7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7310 fi
   7311 
   7312      CFLAGS="$save_CFLAGS"
   7313      CC="$ac_save_cc"
   7314 
   7315     # Don't enable unreachable code warning in debug mode, since it usually
   7316     # results in non-standard code paths.
   7317     # Issue #24324: Unfortunately, the unreachable code warning does not work
   7318     # correctly on gcc and has been silently removed from the compiler.
   7319     # It is supported on clang but on OS X systems gcc may be an alias
   7320     # for clang.  Try to determine if the compiler is not really gcc and,
   7321     # if so, only then enable the warning.
   7322     if test $ac_cv_enable_unreachable_code_warning = yes && \
   7323         test "$Py_DEBUG" != "true" && \
   7324         test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
   7325     then
   7326       BASECFLAGS="$BASECFLAGS -Wunreachable-code"
   7327     else
   7328       ac_cv_enable_unreachable_code_warning=no
   7329     fi
   7330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
   7331 $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; }
   7332 
   7333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5
   7334 $as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; }
   7335      ac_save_cc="$CC"
   7336      CC="$CC -Werror -Wstrict-prototypes"
   7337      if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then :
   7338   $as_echo_n "(cached) " >&6
   7339 else
   7340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7341 /* end confdefs.h.  */
   7342 
   7343 
   7344 int
   7345 main ()
   7346 {
   7347 
   7348   ;
   7349   return 0;
   7350 }
   7351 
   7352 _ACEOF
   7353 if ac_fn_c_try_compile "$LINENO"; then :
   7354 
   7355        ac_cv_enable_strict_prototypes_warning=yes
   7356 
   7357 else
   7358 
   7359        ac_cv_enable_strict_prototypes_warning=no
   7360 
   7361 fi
   7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7363 fi
   7364 
   7365      CC="$ac_save_cc"
   7366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
   7367 $as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; }
   7368 
   7369     if test $ac_cv_enable_strict_prototypes_warning = yes
   7370     then
   7371       CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
   7372     fi
   7373 
   7374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
   7375 $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; }
   7376      ac_save_cc="$CC"
   7377      CC="$CC -Werror=implicit-function-declaration"
   7378      if ${ac_cv_enable_implicit_function_declaration_error+:} false; then :
   7379   $as_echo_n "(cached) " >&6
   7380 else
   7381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7382 /* end confdefs.h.  */
   7383 
   7384 
   7385 int
   7386 main ()
   7387 {
   7388 
   7389   ;
   7390   return 0;
   7391 }
   7392 
   7393 _ACEOF
   7394 if ac_fn_c_try_compile "$LINENO"; then :
   7395 
   7396            ac_cv_enable_implicit_function_declaration_error=yes
   7397 
   7398 else
   7399 
   7400            ac_cv_enable_implicit_function_declaration_error=no
   7401 
   7402 fi
   7403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7404 fi
   7405 
   7406      CC="$ac_save_cc"
   7407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
   7408 $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; }
   7409 
   7410     if test $ac_cv_enable_implicit_function_declaration_error = yes
   7411     then
   7412       CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
   7413     fi
   7414 
   7415     # if using gcc on alpha, use -mieee to get (near) full IEEE 754
   7416     # support.  Without this, treatment of subnormals doesn't follow
   7417     # the standard.
   7418     case $host in
   7419          alpha*)
   7420                 BASECFLAGS="$BASECFLAGS -mieee"
   7421                 ;;
   7422     esac
   7423 
   7424     case $ac_sys_system in
   7425 	SCO_SV*)
   7426 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
   7427 	    ;;
   7428 
   7429     # is there any other compiler on Darwin besides gcc?
   7430     Darwin*)
   7431         # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
   7432         # used to be here, but non-Apple gcc doesn't accept them.
   7433         if test "${CC}" = gcc
   7434         then
   7435             { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
   7436 $as_echo_n "checking which compiler should be used... " >&6; }
   7437             case "${UNIVERSALSDK}" in
   7438             */MacOSX10.4u.sdk)
   7439                 # Build using 10.4 SDK, force usage of gcc when the
   7440                 # compiler is gcc, otherwise the user will get very
   7441                 # confusing error messages when building on OSX 10.6
   7442                 CC=gcc-4.0
   7443                 CPP=cpp-4.0
   7444                 ;;
   7445             esac
   7446             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   7447 $as_echo "$CC" >&6; }
   7448         fi
   7449 
   7450         if test "${enable_universalsdk}"
   7451         then
   7452             case "$UNIVERSAL_ARCHS" in
   7453             32-bit)
   7454                UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
   7455                LIPO_32BIT_FLAGS=""
   7456                ARCH_RUN_32BIT=""
   7457                ;;
   7458             64-bit)
   7459                UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
   7460                LIPO_32BIT_FLAGS=""
   7461                ARCH_RUN_32BIT="true"
   7462                ;;
   7463             all)
   7464                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
   7465                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
   7466                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
   7467                ;;
   7468             intel)
   7469                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
   7470                LIPO_32BIT_FLAGS="-extract i386"
   7471                ARCH_RUN_32BIT="/usr/bin/arch -i386"
   7472                ;;
   7473             intel-32)
   7474                UNIVERSAL_ARCH_FLAGS="-arch i386"
   7475                LIPO_32BIT_FLAGS=""
   7476                ARCH_RUN_32BIT=""
   7477                ;;
   7478             intel-64)
   7479                UNIVERSAL_ARCH_FLAGS="-arch x86_64"
   7480                LIPO_32BIT_FLAGS=""
   7481                ARCH_RUN_32BIT="true"
   7482                ;;
   7483             3-way)
   7484                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
   7485                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
   7486                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
   7487                ;;
   7488             *)
   7489                as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
   7490                ;;
   7491             esac
   7492 
   7493             if test "${UNIVERSALSDK}" != "/"
   7494             then
   7495                 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
   7496                 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
   7497                 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
   7498             else
   7499                 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
   7500                 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
   7501             fi
   7502         fi
   7503 
   7504         # Calculate an appropriate deployment target for this build:
   7505         # The deployment target value is used explicitly to enable certain
   7506         # features are enabled (such as builtin libedit support for readline)
   7507         # through the use of Apple's Availability Macros and is used as a
   7508         # component of the string returned by distutils.get_platform().
   7509         #
   7510         # Use the value from:
   7511         # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
   7512         # 2. the operating system version of the build machine if >= 10.6
   7513         # 3. If running on OS X 10.3 through 10.5, use the legacy tests
   7514         #       below to pick either 10.3, 10.4, or 10.5 as the target.
   7515         # 4. If we are running on OS X 10.2 or earlier, good luck!
   7516 
   7517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
   7518 $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
   7519         cur_target_major=`sw_vers -productVersion | \
   7520                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
   7521         cur_target_minor=`sw_vers -productVersion | \
   7522                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
   7523         cur_target="${cur_target_major}.${cur_target_minor}"
   7524         if test ${cur_target_major} -eq 10 && \
   7525            test ${cur_target_minor} -ge 3 && \
   7526            test ${cur_target_minor} -le 5
   7527         then
   7528             # OS X 10.3 through 10.5
   7529             cur_target=10.3
   7530             if test ${enable_universalsdk}
   7531             then
   7532                 case "$UNIVERSAL_ARCHS" in
   7533                 all|3-way|intel|64-bit)
   7534                     # These configurations were first supported in 10.5
   7535                     cur_target='10.5'
   7536                     ;;
   7537                 esac
   7538             else
   7539                 if test `/usr/bin/arch` = "i386"
   7540                 then
   7541                     # 10.4 was the first release to support Intel archs
   7542                     cur_target="10.4"
   7543                 fi
   7544             fi
   7545         fi
   7546         CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
   7547 
   7548         # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
   7549         # environment with a value that is the same as what we'll use
   7550         # in the Makefile to ensure that we'll get the same compiler
   7551         # environment during configure and build time.
   7552         MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
   7553         export MACOSX_DEPLOYMENT_TARGET
   7554         EXPORT_MACOSX_DEPLOYMENT_TARGET=''
   7555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
   7556 $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
   7557 
   7558         # end of Darwin* tests
   7559         ;;
   7560     esac
   7561     ;;
   7562 
   7563 *)
   7564     case $ac_sys_system in
   7565     OpenUNIX*|UnixWare*)
   7566 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
   7567 	;;
   7568     SCO_SV*)
   7569 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
   7570 	;;
   7571     esac
   7572     ;;
   7573 esac
   7574 
   7575 # ICC needs -fp-model strict or floats behave badly
   7576 case "$CC" in
   7577 *icc*)
   7578     CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
   7579     ;;
   7580 esac
   7581 
   7582 if test "$assertions" = 'true'; then
   7583   :
   7584 else
   7585   OPT="-DNDEBUG $OPT"
   7586 fi
   7587 
   7588 if test "$ac_arch_flags"
   7589 then
   7590 	BASECFLAGS="$BASECFLAGS $ac_arch_flags"
   7591 fi
   7592 
   7593 # On some compilers, pthreads are available without further options
   7594 # (e.g. MacOS X). On some of these systems, the compiler will not
   7595 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
   7596 # So we have to see first whether pthreads are available without
   7597 # options before we can check whether -Kpthread improves anything.
   7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
   7599 $as_echo_n "checking whether pthreads are available without options... " >&6; }
   7600 if ${ac_cv_pthread_is_default+:} false; then :
   7601   $as_echo_n "(cached) " >&6
   7602 else
   7603   if test "$cross_compiling" = yes; then :
   7604   ac_cv_pthread_is_default=no
   7605 else
   7606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7607 /* end confdefs.h.  */
   7608 
   7609 #include <stdio.h>
   7610 #include <pthread.h>
   7611 
   7612 void* routine(void* p){return NULL;}
   7613 
   7614 int main(){
   7615   pthread_t p;
   7616   if(pthread_create(&p,NULL,routine,NULL)!=0)
   7617     return 1;
   7618   (void)pthread_detach(p);
   7619   return 0;
   7620 }
   7621 
   7622 _ACEOF
   7623 if ac_fn_c_try_run "$LINENO"; then :
   7624 
   7625   ac_cv_pthread_is_default=yes
   7626   ac_cv_kthread=no
   7627   ac_cv_pthread=no
   7628 
   7629 else
   7630   ac_cv_pthread_is_default=no
   7631 fi
   7632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7633   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7634 fi
   7635 
   7636 
   7637 fi
   7638 
   7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
   7640 $as_echo "$ac_cv_pthread_is_default" >&6; }
   7641 
   7642 
   7643 if test $ac_cv_pthread_is_default = yes
   7644 then
   7645   ac_cv_kpthread=no
   7646 else
   7647 # -Kpthread, if available, provides the right #defines
   7648 # and linker options to make pthread_create available
   7649 # Some compilers won't report that they do not support -Kpthread,
   7650 # so we need to run a program to see whether it really made the
   7651 # function available.
   7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
   7653 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
   7654 if ${ac_cv_kpthread+:} false; then :
   7655   $as_echo_n "(cached) " >&6
   7656 else
   7657   ac_save_cc="$CC"
   7658 CC="$CC -Kpthread"
   7659 if test "$cross_compiling" = yes; then :
   7660   ac_cv_kpthread=no
   7661 else
   7662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7663 /* end confdefs.h.  */
   7664 
   7665 #include <stdio.h>
   7666 #include <pthread.h>
   7667 
   7668 void* routine(void* p){return NULL;}
   7669 
   7670 int main(){
   7671   pthread_t p;
   7672   if(pthread_create(&p,NULL,routine,NULL)!=0)
   7673     return 1;
   7674   (void)pthread_detach(p);
   7675   return 0;
   7676 }
   7677 
   7678 _ACEOF
   7679 if ac_fn_c_try_run "$LINENO"; then :
   7680   ac_cv_kpthread=yes
   7681 else
   7682   ac_cv_kpthread=no
   7683 fi
   7684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7685   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7686 fi
   7687 
   7688 CC="$ac_save_cc"
   7689 fi
   7690 
   7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
   7692 $as_echo "$ac_cv_kpthread" >&6; }
   7693 fi
   7694 
   7695 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
   7696 then
   7697 # -Kthread, if available, provides the right #defines
   7698 # and linker options to make pthread_create available
   7699 # Some compilers won't report that they do not support -Kthread,
   7700 # so we need to run a program to see whether it really made the
   7701 # function available.
   7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
   7703 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
   7704 if ${ac_cv_kthread+:} false; then :
   7705   $as_echo_n "(cached) " >&6
   7706 else
   7707   ac_save_cc="$CC"
   7708 CC="$CC -Kthread"
   7709 if test "$cross_compiling" = yes; then :
   7710   ac_cv_kthread=no
   7711 else
   7712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7713 /* end confdefs.h.  */
   7714 
   7715 #include <stdio.h>
   7716 #include <pthread.h>
   7717 
   7718 void* routine(void* p){return NULL;}
   7719 
   7720 int main(){
   7721   pthread_t p;
   7722   if(pthread_create(&p,NULL,routine,NULL)!=0)
   7723     return 1;
   7724   (void)pthread_detach(p);
   7725   return 0;
   7726 }
   7727 
   7728 _ACEOF
   7729 if ac_fn_c_try_run "$LINENO"; then :
   7730   ac_cv_kthread=yes
   7731 else
   7732   ac_cv_kthread=no
   7733 fi
   7734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7735   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7736 fi
   7737 
   7738 CC="$ac_save_cc"
   7739 fi
   7740 
   7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
   7742 $as_echo "$ac_cv_kthread" >&6; }
   7743 fi
   7744 
   7745 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
   7746 then
   7747 # -pthread, if available, provides the right #defines
   7748 # and linker options to make pthread_create available
   7749 # Some compilers won't report that they do not support -pthread,
   7750 # so we need to run a program to see whether it really made the
   7751 # function available.
   7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
   7753 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
   7754 if ${ac_cv_pthread+:} false; then :
   7755   $as_echo_n "(cached) " >&6
   7756 else
   7757   ac_save_cc="$CC"
   7758 CC="$CC -pthread"
   7759 if test "$cross_compiling" = yes; then :
   7760   ac_cv_pthread=no
   7761 else
   7762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7763 /* end confdefs.h.  */
   7764 
   7765 #include <stdio.h>
   7766 #include <pthread.h>
   7767 
   7768 void* routine(void* p){return NULL;}
   7769 
   7770 int main(){
   7771   pthread_t p;
   7772   if(pthread_create(&p,NULL,routine,NULL)!=0)
   7773     return 1;
   7774   (void)pthread_detach(p);
   7775   return 0;
   7776 }
   7777 
   7778 _ACEOF
   7779 if ac_fn_c_try_run "$LINENO"; then :
   7780   ac_cv_pthread=yes
   7781 else
   7782   ac_cv_pthread=no
   7783 fi
   7784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7785   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7786 fi
   7787 
   7788 CC="$ac_save_cc"
   7789 fi
   7790 
   7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
   7792 $as_echo "$ac_cv_pthread" >&6; }
   7793 fi
   7794 
   7795 # If we have set a CC compiler flag for thread support then
   7796 # check if it works for CXX, too.
   7797 ac_cv_cxx_thread=no
   7798 if test ! -z "$CXX"
   7799 then
   7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
   7801 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
   7802 ac_save_cxx="$CXX"
   7803 
   7804 if test "$ac_cv_kpthread" = "yes"
   7805 then
   7806   CXX="$CXX -Kpthread"
   7807   ac_cv_cxx_thread=yes
   7808 elif test "$ac_cv_kthread" = "yes"
   7809 then
   7810   CXX="$CXX -Kthread"
   7811   ac_cv_cxx_thread=yes
   7812 elif test "$ac_cv_pthread" = "yes"
   7813 then
   7814   CXX="$CXX -pthread"
   7815   ac_cv_cxx_thread=yes
   7816 fi
   7817 
   7818 if test $ac_cv_cxx_thread = yes
   7819 then
   7820   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
   7821   $CXX -c conftest.$ac_ext 2>&5
   7822   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
   7823      && test -s conftest$ac_exeext && ./conftest$ac_exeext
   7824   then
   7825     ac_cv_cxx_thread=yes
   7826   else
   7827     ac_cv_cxx_thread=no
   7828   fi
   7829   rm -fr conftest*
   7830 fi
   7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
   7832 $as_echo "$ac_cv_cxx_thread" >&6; }
   7833 fi
   7834 CXX="$ac_save_cxx"
   7835 
   7836 
   7837 # checks for header files
   7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   7839 $as_echo_n "checking for ANSI C header files... " >&6; }
   7840 if ${ac_cv_header_stdc+:} false; then :
   7841   $as_echo_n "(cached) " >&6
   7842 else
   7843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7844 /* end confdefs.h.  */
   7845 #include <stdlib.h>
   7846 #include <stdarg.h>
   7847 #include <string.h>
   7848 #include <float.h>
   7849 
   7850 int
   7851 main ()
   7852 {
   7853 
   7854   ;
   7855   return 0;
   7856 }
   7857 _ACEOF
   7858 if ac_fn_c_try_compile "$LINENO"; then :
   7859   ac_cv_header_stdc=yes
   7860 else
   7861   ac_cv_header_stdc=no
   7862 fi
   7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7864 
   7865 if test $ac_cv_header_stdc = yes; then
   7866   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   7867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7868 /* end confdefs.h.  */
   7869 #include <string.h>
   7870 
   7871 _ACEOF
   7872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7873   $EGREP "memchr" >/dev/null 2>&1; then :
   7874 
   7875 else
   7876   ac_cv_header_stdc=no
   7877 fi
   7878 rm -f conftest*
   7879 
   7880 fi
   7881 
   7882 if test $ac_cv_header_stdc = yes; then
   7883   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   7884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7885 /* end confdefs.h.  */
   7886 #include <stdlib.h>
   7887 
   7888 _ACEOF
   7889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7890   $EGREP "free" >/dev/null 2>&1; then :
   7891 
   7892 else
   7893   ac_cv_header_stdc=no
   7894 fi
   7895 rm -f conftest*
   7896 
   7897 fi
   7898 
   7899 if test $ac_cv_header_stdc = yes; then
   7900   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   7901   if test "$cross_compiling" = yes; then :
   7902   :
   7903 else
   7904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7905 /* end confdefs.h.  */
   7906 #include <ctype.h>
   7907 #include <stdlib.h>
   7908 #if ((' ' & 0x0FF) == 0x020)
   7909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   7910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   7911 #else
   7912 # define ISLOWER(c) \
   7913 		   (('a' <= (c) && (c) <= 'i') \
   7914 		     || ('j' <= (c) && (c) <= 'r') \
   7915 		     || ('s' <= (c) && (c) <= 'z'))
   7916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   7917 #endif
   7918 
   7919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   7920 int
   7921 main ()
   7922 {
   7923   int i;
   7924   for (i = 0; i < 256; i++)
   7925     if (XOR (islower (i), ISLOWER (i))
   7926 	|| toupper (i) != TOUPPER (i))
   7927       return 2;
   7928   return 0;
   7929 }
   7930 _ACEOF
   7931 if ac_fn_c_try_run "$LINENO"; then :
   7932 
   7933 else
   7934   ac_cv_header_stdc=no
   7935 fi
   7936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7937   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7938 fi
   7939 
   7940 fi
   7941 fi
   7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   7943 $as_echo "$ac_cv_header_stdc" >&6; }
   7944 if test $ac_cv_header_stdc = yes; then
   7945 
   7946 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   7947 
   7948 fi
   7949 
   7950 for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
   7951 fcntl.h grp.h \
   7952 ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \
   7953 sched.h shadow.h signal.h stropts.h termios.h \
   7954 unistd.h utime.h \
   7955 poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
   7956 sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
   7957 sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
   7958 sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
   7959 sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
   7960 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
   7961 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
   7962 linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
   7963 sys/endian.h sys/sysmacros.h
   7964 do :
   7965   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7966 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   7967 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   7968   cat >>confdefs.h <<_ACEOF
   7969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7970 _ACEOF
   7971 
   7972 fi
   7973 
   7974 done
   7975 
   7976 ac_header_dirent=no
   7977 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   7978   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
   7980 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
   7981 if eval \${$as_ac_Header+:} false; then :
   7982   $as_echo_n "(cached) " >&6
   7983 else
   7984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7985 /* end confdefs.h.  */
   7986 #include <sys/types.h>
   7987 #include <$ac_hdr>
   7988 
   7989 int
   7990 main ()
   7991 {
   7992 if ((DIR *) 0)
   7993 return 0;
   7994   ;
   7995   return 0;
   7996 }
   7997 _ACEOF
   7998 if ac_fn_c_try_compile "$LINENO"; then :
   7999   eval "$as_ac_Header=yes"
   8000 else
   8001   eval "$as_ac_Header=no"
   8002 fi
   8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8004 fi
   8005 eval ac_res=\$$as_ac_Header
   8006 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   8007 $as_echo "$ac_res" >&6; }
   8008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   8009   cat >>confdefs.h <<_ACEOF
   8010 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   8011 _ACEOF
   8012 
   8013 ac_header_dirent=$ac_hdr; break
   8014 fi
   8015 
   8016 done
   8017 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   8018 if test $ac_header_dirent = dirent.h; then
   8019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   8020 $as_echo_n "checking for library containing opendir... " >&6; }
   8021 if ${ac_cv_search_opendir+:} false; then :
   8022   $as_echo_n "(cached) " >&6
   8023 else
   8024   ac_func_search_save_LIBS=$LIBS
   8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8026 /* end confdefs.h.  */
   8027 
   8028 /* Override any GCC internal prototype to avoid an error.
   8029    Use char because int might match the return type of a GCC
   8030    builtin and then its argument prototype would still apply.  */
   8031 #ifdef __cplusplus
   8032 extern "C"
   8033 #endif
   8034 char opendir ();
   8035 int
   8036 main ()
   8037 {
   8038 return opendir ();
   8039   ;
   8040   return 0;
   8041 }
   8042 _ACEOF
   8043 for ac_lib in '' dir; do
   8044   if test -z "$ac_lib"; then
   8045     ac_res="none required"
   8046   else
   8047     ac_res=-l$ac_lib
   8048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8049   fi
   8050   if ac_fn_c_try_link "$LINENO"; then :
   8051   ac_cv_search_opendir=$ac_res
   8052 fi
   8053 rm -f core conftest.err conftest.$ac_objext \
   8054     conftest$ac_exeext
   8055   if ${ac_cv_search_opendir+:} false; then :
   8056   break
   8057 fi
   8058 done
   8059 if ${ac_cv_search_opendir+:} false; then :
   8060 
   8061 else
   8062   ac_cv_search_opendir=no
   8063 fi
   8064 rm conftest.$ac_ext
   8065 LIBS=$ac_func_search_save_LIBS
   8066 fi
   8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   8068 $as_echo "$ac_cv_search_opendir" >&6; }
   8069 ac_res=$ac_cv_search_opendir
   8070 if test "$ac_res" != no; then :
   8071   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8072 
   8073 fi
   8074 
   8075 else
   8076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   8077 $as_echo_n "checking for library containing opendir... " >&6; }
   8078 if ${ac_cv_search_opendir+:} false; then :
   8079   $as_echo_n "(cached) " >&6
   8080 else
   8081   ac_func_search_save_LIBS=$LIBS
   8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8083 /* end confdefs.h.  */
   8084 
   8085 /* Override any GCC internal prototype to avoid an error.
   8086    Use char because int might match the return type of a GCC
   8087    builtin and then its argument prototype would still apply.  */
   8088 #ifdef __cplusplus
   8089 extern "C"
   8090 #endif
   8091 char opendir ();
   8092 int
   8093 main ()
   8094 {
   8095 return opendir ();
   8096   ;
   8097   return 0;
   8098 }
   8099 _ACEOF
   8100 for ac_lib in '' x; do
   8101   if test -z "$ac_lib"; then
   8102     ac_res="none required"
   8103   else
   8104     ac_res=-l$ac_lib
   8105     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8106   fi
   8107   if ac_fn_c_try_link "$LINENO"; then :
   8108   ac_cv_search_opendir=$ac_res
   8109 fi
   8110 rm -f core conftest.err conftest.$ac_objext \
   8111     conftest$ac_exeext
   8112   if ${ac_cv_search_opendir+:} false; then :
   8113   break
   8114 fi
   8115 done
   8116 if ${ac_cv_search_opendir+:} false; then :
   8117 
   8118 else
   8119   ac_cv_search_opendir=no
   8120 fi
   8121 rm conftest.$ac_ext
   8122 LIBS=$ac_func_search_save_LIBS
   8123 fi
   8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   8125 $as_echo "$ac_cv_search_opendir" >&6; }
   8126 ac_res=$ac_cv_search_opendir
   8127 if test "$ac_res" != no; then :
   8128   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8129 
   8130 fi
   8131 
   8132 fi
   8133 
   8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
   8135 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
   8136 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
   8137   $as_echo_n "(cached) " >&6
   8138 else
   8139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8140 /* end confdefs.h.  */
   8141 #include <sys/types.h>
   8142 int
   8143 main ()
   8144 {
   8145 return makedev(0, 0);
   8146   ;
   8147   return 0;
   8148 }
   8149 _ACEOF
   8150 if ac_fn_c_try_link "$LINENO"; then :
   8151   ac_cv_header_sys_types_h_makedev=yes
   8152 else
   8153   ac_cv_header_sys_types_h_makedev=no
   8154 fi
   8155 rm -f core conftest.err conftest.$ac_objext \
   8156     conftest$ac_exeext conftest.$ac_ext
   8157 
   8158 fi
   8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
   8160 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
   8161 
   8162 if test $ac_cv_header_sys_types_h_makedev = no; then
   8163 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
   8164 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
   8165 
   8166 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
   8167 
   8168 fi
   8169 
   8170 
   8171 
   8172   if test $ac_cv_header_sys_mkdev_h = no; then
   8173     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
   8174 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
   8175 
   8176 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
   8177 
   8178 fi
   8179 
   8180 
   8181   fi
   8182 fi
   8183 
   8184 
   8185 # bluetooth/bluetooth.h has been known to not compile with -std=c99.
   8186 # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
   8187 SAVE_CFLAGS=$CFLAGS
   8188 CFLAGS="-std=c99 $CFLAGS"
   8189 for ac_header in bluetooth/bluetooth.h
   8190 do :
   8191   ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
   8192 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
   8193   cat >>confdefs.h <<_ACEOF
   8194 #define HAVE_BLUETOOTH_BLUETOOTH_H 1
   8195 _ACEOF
   8196 
   8197 fi
   8198 
   8199 done
   8200 
   8201 CFLAGS=$SAVE_CFLAGS
   8202 
   8203 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
   8204 for ac_header in net/if.h
   8205 do :
   8206   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
   8207 #ifdef STDC_HEADERS
   8208 # include <stdlib.h>
   8209 # include <stddef.h>
   8210 #else
   8211 # ifdef HAVE_STDLIB_H
   8212 #  include <stdlib.h>
   8213 # endif
   8214 #endif
   8215 #ifdef HAVE_SYS_SOCKET_H
   8216 # include <sys/socket.h>
   8217 #endif
   8218 
   8219 "
   8220 if test "x$ac_cv_header_net_if_h" = xyes; then :
   8221   cat >>confdefs.h <<_ACEOF
   8222 #define HAVE_NET_IF_H 1
   8223 _ACEOF
   8224 
   8225 fi
   8226 
   8227 done
   8228 
   8229 
   8230 # On Linux, netlink.h requires asm/types.h
   8231 for ac_header in linux/netlink.h
   8232 do :
   8233   ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
   8234 #ifdef HAVE_ASM_TYPES_H
   8235 #include <asm/types.h>
   8236 #endif
   8237 #ifdef HAVE_SYS_SOCKET_H
   8238 #include <sys/socket.h>
   8239 #endif
   8240 
   8241 "
   8242 if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
   8243   cat >>confdefs.h <<_ACEOF
   8244 #define HAVE_LINUX_NETLINK_H 1
   8245 _ACEOF
   8246 
   8247 fi
   8248 
   8249 done
   8250 
   8251 
   8252 for ac_header in linux/vm_sockets.h
   8253 do :
   8254   ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
   8255 #ifdef HAVE_SYS_SOCKET_H
   8256 #include <sys/socket.h>
   8257 #endif
   8258 
   8259 "
   8260 if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then :
   8261   cat >>confdefs.h <<_ACEOF
   8262 #define HAVE_LINUX_VM_SOCKETS_H 1
   8263 _ACEOF
   8264 
   8265 fi
   8266 
   8267 done
   8268 
   8269 
   8270 # On Linux, can.h and can/raw.h require sys/socket.h
   8271 for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h
   8272 do :
   8273   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8274 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
   8275 #ifdef HAVE_SYS_SOCKET_H
   8276 #include <sys/socket.h>
   8277 #endif
   8278 
   8279 "
   8280 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   8281   cat >>confdefs.h <<_ACEOF
   8282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8283 _ACEOF
   8284 
   8285 fi
   8286 
   8287 done
   8288 
   8289 
   8290 # checks for typedefs
   8291 was_it_defined=no
   8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
   8293 $as_echo_n "checking for clock_t in time.h... " >&6; }
   8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8295 /* end confdefs.h.  */
   8296 #include <time.h>
   8297 
   8298 _ACEOF
   8299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8300   $EGREP "clock_t" >/dev/null 2>&1; then :
   8301   was_it_defined=yes
   8302 else
   8303 
   8304 
   8305 $as_echo "#define clock_t long" >>confdefs.h
   8306 
   8307 
   8308 fi
   8309 rm -f conftest*
   8310 
   8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
   8312 $as_echo "$was_it_defined" >&6; }
   8313 
   8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
   8315 $as_echo_n "checking for makedev... " >&6; }
   8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8317 /* end confdefs.h.  */
   8318 
   8319 #if defined(MAJOR_IN_MKDEV)
   8320 #include <sys/mkdev.h>
   8321 #elif defined(MAJOR_IN_SYSMACROS)
   8322 #include <sys/sysmacros.h>
   8323 #else
   8324 #include <sys/types.h>
   8325 #endif
   8326 
   8327 int
   8328 main ()
   8329 {
   8330 
   8331   makedev(0, 0)
   8332   ;
   8333   return 0;
   8334 }
   8335 
   8336 _ACEOF
   8337 if ac_fn_c_try_link "$LINENO"; then :
   8338   ac_cv_has_makedev=yes
   8339 else
   8340   ac_cv_has_makedev=no
   8341 fi
   8342 rm -f core conftest.err conftest.$ac_objext \
   8343     conftest$ac_exeext conftest.$ac_ext
   8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
   8345 $as_echo "$ac_cv_has_makedev" >&6; }
   8346 if test "$ac_cv_has_makedev" = "yes"; then
   8347 
   8348 $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
   8349 
   8350 fi
   8351 
   8352 # byte swapping
   8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
   8354 $as_echo_n "checking for le64toh... " >&6; }
   8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8356 /* end confdefs.h.  */
   8357 
   8358 #ifdef HAVE_ENDIAN_H
   8359 #include <endian.h>
   8360 #elif defined(HAVE_SYS_ENDIAN_H)
   8361 #include <sys/endian.h>
   8362 #endif
   8363 
   8364 int
   8365 main ()
   8366 {
   8367 
   8368    le64toh(1)
   8369   ;
   8370   return 0;
   8371 }
   8372 
   8373 _ACEOF
   8374 if ac_fn_c_try_link "$LINENO"; then :
   8375   ac_cv_has_le64toh=yes
   8376 else
   8377   ac_cv_has_le64toh=no
   8378 fi
   8379 rm -f core conftest.err conftest.$ac_objext \
   8380     conftest$ac_exeext conftest.$ac_ext
   8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5
   8382 $as_echo "$ac_cv_has_le64toh" >&6; }
   8383 if test "$ac_cv_has_le64toh" = "yes"; then
   8384 
   8385 $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
   8386 
   8387 fi
   8388 
   8389 use_lfs=yes
   8390 # Don't use largefile support for GNU/Hurd
   8391 case $ac_sys_system in GNU*)
   8392   use_lfs=no
   8393 esac
   8394 
   8395 if test "$use_lfs" = "yes"; then
   8396 # Two defines needed to enable largefile support on various platforms
   8397 # These may affect some typedefs
   8398 case $ac_sys_system/$ac_sys_release in
   8399 AIX*)
   8400 
   8401 $as_echo "#define _LARGE_FILES 1" >>confdefs.h
   8402 
   8403     ;;
   8404 esac
   8405 
   8406 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
   8407 
   8408 
   8409 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
   8410 
   8411 fi
   8412 
   8413 # Add some code to confdefs.h so that the test for off_t works on SCO
   8414 cat >> confdefs.h <<\EOF
   8415 #if defined(SCO_DS)
   8416 #undef _OFF_T
   8417 #endif
   8418 EOF
   8419 
   8420 # Type availability checks
   8421 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
   8422 if test "x$ac_cv_type_mode_t" = xyes; then :
   8423 
   8424 else
   8425 
   8426 cat >>confdefs.h <<_ACEOF
   8427 #define mode_t int
   8428 _ACEOF
   8429 
   8430 fi
   8431 
   8432 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
   8433 if test "x$ac_cv_type_off_t" = xyes; then :
   8434 
   8435 else
   8436 
   8437 cat >>confdefs.h <<_ACEOF
   8438 #define off_t long int
   8439 _ACEOF
   8440 
   8441 fi
   8442 
   8443 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   8444 if test "x$ac_cv_type_pid_t" = xyes; then :
   8445 
   8446 else
   8447 
   8448 cat >>confdefs.h <<_ACEOF
   8449 #define pid_t int
   8450 _ACEOF
   8451 
   8452 fi
   8453 
   8454 
   8455 cat >>confdefs.h <<_ACEOF
   8456 #define RETSIGTYPE void
   8457 _ACEOF
   8458 
   8459 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   8460 if test "x$ac_cv_type_size_t" = xyes; then :
   8461 
   8462 else
   8463 
   8464 cat >>confdefs.h <<_ACEOF
   8465 #define size_t unsigned int
   8466 _ACEOF
   8467 
   8468 fi
   8469 
   8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   8471 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
   8472 if ${ac_cv_type_uid_t+:} false; then :
   8473   $as_echo_n "(cached) " >&6
   8474 else
   8475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8476 /* end confdefs.h.  */
   8477 #include <sys/types.h>
   8478 
   8479 _ACEOF
   8480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8481   $EGREP "uid_t" >/dev/null 2>&1; then :
   8482   ac_cv_type_uid_t=yes
   8483 else
   8484   ac_cv_type_uid_t=no
   8485 fi
   8486 rm -f conftest*
   8487 
   8488 fi
   8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   8490 $as_echo "$ac_cv_type_uid_t" >&6; }
   8491 if test $ac_cv_type_uid_t = no; then
   8492 
   8493 $as_echo "#define uid_t int" >>confdefs.h
   8494 
   8495 
   8496 $as_echo "#define gid_t int" >>confdefs.h
   8497 
   8498 fi
   8499 
   8500 
   8501 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   8502 if test "x$ac_cv_type_ssize_t" = xyes; then :
   8503 
   8504 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
   8505 
   8506 fi
   8507 
   8508 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
   8509 if test "x$ac_cv_type___uint128_t" = xyes; then :
   8510 
   8511 $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
   8512 
   8513 fi
   8514 
   8515 
   8516 # Sizes of various common basic types
   8517 # ANSI C requires sizeof(char) == 1, so no need to check it
   8518 # The cast to long int works around a bug in the HP C Compiler
   8519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8521 # This bug is HP SR number 8606223364.
   8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   8523 $as_echo_n "checking size of int... " >&6; }
   8524 if ${ac_cv_sizeof_int+:} false; then :
   8525   $as_echo_n "(cached) " >&6
   8526 else
   8527   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   8528 
   8529 else
   8530   if test "$ac_cv_type_int" = yes; then
   8531      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8533 as_fn_error 77 "cannot compute sizeof (int)
   8534 See \`config.log' for more details" "$LINENO" 5; }
   8535    else
   8536      ac_cv_sizeof_int=0
   8537    fi
   8538 fi
   8539 
   8540 fi
   8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   8542 $as_echo "$ac_cv_sizeof_int" >&6; }
   8543 
   8544 
   8545 
   8546 cat >>confdefs.h <<_ACEOF
   8547 #define SIZEOF_INT $ac_cv_sizeof_int
   8548 _ACEOF
   8549 
   8550 
   8551 # The cast to long int works around a bug in the HP C Compiler
   8552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8554 # This bug is HP SR number 8606223364.
   8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   8556 $as_echo_n "checking size of long... " >&6; }
   8557 if ${ac_cv_sizeof_long+:} false; then :
   8558   $as_echo_n "(cached) " >&6
   8559 else
   8560   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   8561 
   8562 else
   8563   if test "$ac_cv_type_long" = yes; then
   8564      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8566 as_fn_error 77 "cannot compute sizeof (long)
   8567 See \`config.log' for more details" "$LINENO" 5; }
   8568    else
   8569      ac_cv_sizeof_long=0
   8570    fi
   8571 fi
   8572 
   8573 fi
   8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   8575 $as_echo "$ac_cv_sizeof_long" >&6; }
   8576 
   8577 
   8578 
   8579 cat >>confdefs.h <<_ACEOF
   8580 #define SIZEOF_LONG $ac_cv_sizeof_long
   8581 _ACEOF
   8582 
   8583 
   8584 # The cast to long int works around a bug in the HP C Compiler
   8585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8587 # This bug is HP SR number 8606223364.
   8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   8589 $as_echo_n "checking size of long long... " >&6; }
   8590 if ${ac_cv_sizeof_long_long+:} false; then :
   8591   $as_echo_n "(cached) " >&6
   8592 else
   8593   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   8594 
   8595 else
   8596   if test "$ac_cv_type_long_long" = yes; then
   8597      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8599 as_fn_error 77 "cannot compute sizeof (long long)
   8600 See \`config.log' for more details" "$LINENO" 5; }
   8601    else
   8602      ac_cv_sizeof_long_long=0
   8603    fi
   8604 fi
   8605 
   8606 fi
   8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   8608 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   8609 
   8610 
   8611 
   8612 cat >>confdefs.h <<_ACEOF
   8613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   8614 _ACEOF
   8615 
   8616 
   8617 # The cast to long int works around a bug in the HP C Compiler
   8618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8620 # This bug is HP SR number 8606223364.
   8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   8622 $as_echo_n "checking size of void *... " >&6; }
   8623 if ${ac_cv_sizeof_void_p+:} false; then :
   8624   $as_echo_n "(cached) " >&6
   8625 else
   8626   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
   8627 
   8628 else
   8629   if test "$ac_cv_type_void_p" = yes; then
   8630      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8632 as_fn_error 77 "cannot compute sizeof (void *)
   8633 See \`config.log' for more details" "$LINENO" 5; }
   8634    else
   8635      ac_cv_sizeof_void_p=0
   8636    fi
   8637 fi
   8638 
   8639 fi
   8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   8641 $as_echo "$ac_cv_sizeof_void_p" >&6; }
   8642 
   8643 
   8644 
   8645 cat >>confdefs.h <<_ACEOF
   8646 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
   8647 _ACEOF
   8648 
   8649 
   8650 # The cast to long int works around a bug in the HP C Compiler
   8651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8653 # This bug is HP SR number 8606223364.
   8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
   8655 $as_echo_n "checking size of short... " >&6; }
   8656 if ${ac_cv_sizeof_short+:} false; then :
   8657   $as_echo_n "(cached) " >&6
   8658 else
   8659   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
   8660 
   8661 else
   8662   if test "$ac_cv_type_short" = yes; then
   8663      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8665 as_fn_error 77 "cannot compute sizeof (short)
   8666 See \`config.log' for more details" "$LINENO" 5; }
   8667    else
   8668      ac_cv_sizeof_short=0
   8669    fi
   8670 fi
   8671 
   8672 fi
   8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
   8674 $as_echo "$ac_cv_sizeof_short" >&6; }
   8675 
   8676 
   8677 
   8678 cat >>confdefs.h <<_ACEOF
   8679 #define SIZEOF_SHORT $ac_cv_sizeof_short
   8680 _ACEOF
   8681 
   8682 
   8683 # The cast to long int works around a bug in the HP C Compiler
   8684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8686 # This bug is HP SR number 8606223364.
   8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
   8688 $as_echo_n "checking size of float... " >&6; }
   8689 if ${ac_cv_sizeof_float+:} false; then :
   8690   $as_echo_n "(cached) " >&6
   8691 else
   8692   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
   8693 
   8694 else
   8695   if test "$ac_cv_type_float" = yes; then
   8696      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8698 as_fn_error 77 "cannot compute sizeof (float)
   8699 See \`config.log' for more details" "$LINENO" 5; }
   8700    else
   8701      ac_cv_sizeof_float=0
   8702    fi
   8703 fi
   8704 
   8705 fi
   8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
   8707 $as_echo "$ac_cv_sizeof_float" >&6; }
   8708 
   8709 
   8710 
   8711 cat >>confdefs.h <<_ACEOF
   8712 #define SIZEOF_FLOAT $ac_cv_sizeof_float
   8713 _ACEOF
   8714 
   8715 
   8716 # The cast to long int works around a bug in the HP C Compiler
   8717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8719 # This bug is HP SR number 8606223364.
   8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
   8721 $as_echo_n "checking size of double... " >&6; }
   8722 if ${ac_cv_sizeof_double+:} false; then :
   8723   $as_echo_n "(cached) " >&6
   8724 else
   8725   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
   8726 
   8727 else
   8728   if test "$ac_cv_type_double" = yes; then
   8729      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8731 as_fn_error 77 "cannot compute sizeof (double)
   8732 See \`config.log' for more details" "$LINENO" 5; }
   8733    else
   8734      ac_cv_sizeof_double=0
   8735    fi
   8736 fi
   8737 
   8738 fi
   8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
   8740 $as_echo "$ac_cv_sizeof_double" >&6; }
   8741 
   8742 
   8743 
   8744 cat >>confdefs.h <<_ACEOF
   8745 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
   8746 _ACEOF
   8747 
   8748 
   8749 # The cast to long int works around a bug in the HP C Compiler
   8750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8752 # This bug is HP SR number 8606223364.
   8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
   8754 $as_echo_n "checking size of fpos_t... " >&6; }
   8755 if ${ac_cv_sizeof_fpos_t+:} false; then :
   8756   $as_echo_n "(cached) " >&6
   8757 else
   8758   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then :
   8759 
   8760 else
   8761   if test "$ac_cv_type_fpos_t" = yes; then
   8762      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8764 as_fn_error 77 "cannot compute sizeof (fpos_t)
   8765 See \`config.log' for more details" "$LINENO" 5; }
   8766    else
   8767      ac_cv_sizeof_fpos_t=0
   8768    fi
   8769 fi
   8770 
   8771 fi
   8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
   8773 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
   8774 
   8775 
   8776 
   8777 cat >>confdefs.h <<_ACEOF
   8778 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
   8779 _ACEOF
   8780 
   8781 
   8782 # The cast to long int works around a bug in the HP C Compiler
   8783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8785 # This bug is HP SR number 8606223364.
   8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
   8787 $as_echo_n "checking size of size_t... " >&6; }
   8788 if ${ac_cv_sizeof_size_t+:} false; then :
   8789   $as_echo_n "(cached) " >&6
   8790 else
   8791   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
   8792 
   8793 else
   8794   if test "$ac_cv_type_size_t" = yes; then
   8795      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8797 as_fn_error 77 "cannot compute sizeof (size_t)
   8798 See \`config.log' for more details" "$LINENO" 5; }
   8799    else
   8800      ac_cv_sizeof_size_t=0
   8801    fi
   8802 fi
   8803 
   8804 fi
   8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
   8806 $as_echo "$ac_cv_sizeof_size_t" >&6; }
   8807 
   8808 
   8809 
   8810 cat >>confdefs.h <<_ACEOF
   8811 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
   8812 _ACEOF
   8813 
   8814 
   8815 # The cast to long int works around a bug in the HP C Compiler
   8816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8818 # This bug is HP SR number 8606223364.
   8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
   8820 $as_echo_n "checking size of pid_t... " >&6; }
   8821 if ${ac_cv_sizeof_pid_t+:} false; then :
   8822   $as_echo_n "(cached) " >&6
   8823 else
   8824   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then :
   8825 
   8826 else
   8827   if test "$ac_cv_type_pid_t" = yes; then
   8828      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8830 as_fn_error 77 "cannot compute sizeof (pid_t)
   8831 See \`config.log' for more details" "$LINENO" 5; }
   8832    else
   8833      ac_cv_sizeof_pid_t=0
   8834    fi
   8835 fi
   8836 
   8837 fi
   8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
   8839 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
   8840 
   8841 
   8842 
   8843 cat >>confdefs.h <<_ACEOF
   8844 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
   8845 _ACEOF
   8846 
   8847 
   8848 # The cast to long int works around a bug in the HP C Compiler
   8849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8851 # This bug is HP SR number 8606223364.
   8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
   8853 $as_echo_n "checking size of uintptr_t... " >&6; }
   8854 if ${ac_cv_sizeof_uintptr_t+:} false; then :
   8855   $as_echo_n "(cached) " >&6
   8856 else
   8857   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then :
   8858 
   8859 else
   8860   if test "$ac_cv_type_uintptr_t" = yes; then
   8861      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8863 as_fn_error 77 "cannot compute sizeof (uintptr_t)
   8864 See \`config.log' for more details" "$LINENO" 5; }
   8865    else
   8866      ac_cv_sizeof_uintptr_t=0
   8867    fi
   8868 fi
   8869 
   8870 fi
   8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
   8872 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
   8873 
   8874 
   8875 
   8876 cat >>confdefs.h <<_ACEOF
   8877 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
   8878 _ACEOF
   8879 
   8880 
   8881 
   8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
   8883 $as_echo_n "checking for long double support... " >&6; }
   8884 have_long_double=no
   8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8886 /* end confdefs.h.  */
   8887 
   8888 int
   8889 main ()
   8890 {
   8891 long double x; x = (long double)0;
   8892   ;
   8893   return 0;
   8894 }
   8895 _ACEOF
   8896 if ac_fn_c_try_compile "$LINENO"; then :
   8897 
   8898 
   8899 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
   8900 
   8901   have_long_double=yes
   8902 
   8903 fi
   8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
   8906 $as_echo "$have_long_double" >&6; }
   8907 if test "$have_long_double" = yes ; then
   8908 # The cast to long int works around a bug in the HP C Compiler
   8909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8911 # This bug is HP SR number 8606223364.
   8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
   8913 $as_echo_n "checking size of long double... " >&6; }
   8914 if ${ac_cv_sizeof_long_double+:} false; then :
   8915   $as_echo_n "(cached) " >&6
   8916 else
   8917   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
   8918 
   8919 else
   8920   if test "$ac_cv_type_long_double" = yes; then
   8921      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8923 as_fn_error 77 "cannot compute sizeof (long double)
   8924 See \`config.log' for more details" "$LINENO" 5; }
   8925    else
   8926      ac_cv_sizeof_long_double=0
   8927    fi
   8928 fi
   8929 
   8930 fi
   8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
   8932 $as_echo "$ac_cv_sizeof_long_double" >&6; }
   8933 
   8934 
   8935 
   8936 cat >>confdefs.h <<_ACEOF
   8937 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
   8938 _ACEOF
   8939 
   8940 
   8941 fi
   8942 
   8943 # The cast to long int works around a bug in the HP C Compiler
   8944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8946 # This bug is HP SR number 8606223364.
   8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
   8948 $as_echo_n "checking size of _Bool... " >&6; }
   8949 if ${ac_cv_sizeof__Bool+:} false; then :
   8950   $as_echo_n "(cached) " >&6
   8951 else
   8952   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then :
   8953 
   8954 else
   8955   if test "$ac_cv_type__Bool" = yes; then
   8956      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8958 as_fn_error 77 "cannot compute sizeof (_Bool)
   8959 See \`config.log' for more details" "$LINENO" 5; }
   8960    else
   8961      ac_cv_sizeof__Bool=0
   8962    fi
   8963 fi
   8964 
   8965 fi
   8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
   8967 $as_echo "$ac_cv_sizeof__Bool" >&6; }
   8968 
   8969 
   8970 
   8971 cat >>confdefs.h <<_ACEOF
   8972 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
   8973 _ACEOF
   8974 
   8975 
   8976 
   8977 # The cast to long int works around a bug in the HP C Compiler
   8978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8980 # This bug is HP SR number 8606223364.
   8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
   8982 $as_echo_n "checking size of off_t... " >&6; }
   8983 if ${ac_cv_sizeof_off_t+:} false; then :
   8984   $as_echo_n "(cached) " >&6
   8985 else
   8986   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "
   8987 #ifdef HAVE_SYS_TYPES_H
   8988 #include <sys/types.h>
   8989 #endif
   8990 
   8991 "; then :
   8992 
   8993 else
   8994   if test "$ac_cv_type_off_t" = yes; then
   8995      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8997 as_fn_error 77 "cannot compute sizeof (off_t)
   8998 See \`config.log' for more details" "$LINENO" 5; }
   8999    else
   9000      ac_cv_sizeof_off_t=0
   9001    fi
   9002 fi
   9003 
   9004 fi
   9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
   9006 $as_echo "$ac_cv_sizeof_off_t" >&6; }
   9007 
   9008 
   9009 
   9010 cat >>confdefs.h <<_ACEOF
   9011 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
   9012 _ACEOF
   9013 
   9014 
   9015 
   9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
   9017 $as_echo_n "checking whether to enable large file support... " >&6; }
   9018 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
   9019 	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
   9020 
   9021 $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
   9022 
   9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9024 $as_echo "yes" >&6; }
   9025 else
   9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9027 $as_echo "no" >&6; }
   9028 fi
   9029 
   9030 # The cast to long int works around a bug in the HP C Compiler
   9031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   9033 # This bug is HP SR number 8606223364.
   9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
   9035 $as_echo_n "checking size of time_t... " >&6; }
   9036 if ${ac_cv_sizeof_time_t+:} false; then :
   9037   $as_echo_n "(cached) " >&6
   9038 else
   9039   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
   9040 #ifdef HAVE_SYS_TYPES_H
   9041 #include <sys/types.h>
   9042 #endif
   9043 #ifdef HAVE_TIME_H
   9044 #include <time.h>
   9045 #endif
   9046 
   9047 "; then :
   9048 
   9049 else
   9050   if test "$ac_cv_type_time_t" = yes; then
   9051      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9053 as_fn_error 77 "cannot compute sizeof (time_t)
   9054 See \`config.log' for more details" "$LINENO" 5; }
   9055    else
   9056      ac_cv_sizeof_time_t=0
   9057    fi
   9058 fi
   9059 
   9060 fi
   9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
   9062 $as_echo "$ac_cv_sizeof_time_t" >&6; }
   9063 
   9064 
   9065 
   9066 cat >>confdefs.h <<_ACEOF
   9067 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
   9068 _ACEOF
   9069 
   9070 
   9071 
   9072 # if have pthread_t then define SIZEOF_PTHREAD_T
   9073 ac_save_cc="$CC"
   9074 if test "$ac_cv_kpthread" = "yes"
   9075 then CC="$CC -Kpthread"
   9076 elif test "$ac_cv_kthread" = "yes"
   9077 then CC="$CC -Kthread"
   9078 elif test "$ac_cv_pthread" = "yes"
   9079 then CC="$CC -pthread"
   9080 fi
   9081 
   9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
   9083 $as_echo_n "checking for pthread_t... " >&6; }
   9084 have_pthread_t=no
   9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9086 /* end confdefs.h.  */
   9087 
   9088   #include <pthread.h>
   9089 int
   9090 main ()
   9091 {
   9092 pthread_t x; x = *(pthread_t*)0;
   9093   ;
   9094   return 0;
   9095 }
   9096 
   9097 _ACEOF
   9098 if ac_fn_c_try_compile "$LINENO"; then :
   9099   have_pthread_t=yes
   9100 fi
   9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
   9103 $as_echo "$have_pthread_t" >&6; }
   9104 if test "$have_pthread_t" = yes ; then
   9105   # The cast to long int works around a bug in the HP C Compiler
   9106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   9108 # This bug is HP SR number 8606223364.
   9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
   9110 $as_echo_n "checking size of pthread_t... " >&6; }
   9111 if ${ac_cv_sizeof_pthread_t+:} false; then :
   9112   $as_echo_n "(cached) " >&6
   9113 else
   9114   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
   9115 #ifdef HAVE_PTHREAD_H
   9116 #include <pthread.h>
   9117 #endif
   9118 
   9119 "; then :
   9120 
   9121 else
   9122   if test "$ac_cv_type_pthread_t" = yes; then
   9123      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9125 as_fn_error 77 "cannot compute sizeof (pthread_t)
   9126 See \`config.log' for more details" "$LINENO" 5; }
   9127    else
   9128      ac_cv_sizeof_pthread_t=0
   9129    fi
   9130 fi
   9131 
   9132 fi
   9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
   9134 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
   9135 
   9136 
   9137 
   9138 cat >>confdefs.h <<_ACEOF
   9139 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
   9140 _ACEOF
   9141 
   9142 
   9143 fi
   9144 
   9145 # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
   9146 # This checking will be unnecessary after removing deprecated TLS API.
   9147 # The cast to long int works around a bug in the HP C Compiler
   9148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   9150 # This bug is HP SR number 8606223364.
   9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
   9152 $as_echo_n "checking size of pthread_key_t... " >&6; }
   9153 if ${ac_cv_sizeof_pthread_key_t+:} false; then :
   9154   $as_echo_n "(cached) " >&6
   9155 else
   9156   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t"        "#include <pthread.h>
   9157 "; then :
   9158 
   9159 else
   9160   if test "$ac_cv_type_pthread_key_t" = yes; then
   9161      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9163 as_fn_error 77 "cannot compute sizeof (pthread_key_t)
   9164 See \`config.log' for more details" "$LINENO" 5; }
   9165    else
   9166      ac_cv_sizeof_pthread_key_t=0
   9167    fi
   9168 fi
   9169 
   9170 fi
   9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
   9172 $as_echo "$ac_cv_sizeof_pthread_key_t" >&6; }
   9173 
   9174 
   9175 
   9176 cat >>confdefs.h <<_ACEOF
   9177 #define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t
   9178 _ACEOF
   9179 
   9180 
   9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
   9182 $as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; }
   9183 if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
   9184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9185 /* end confdefs.h.  */
   9186 #include <pthread.h>
   9187 int
   9188 main ()
   9189 {
   9190 pthread_key_t k; k * 1;
   9191   ;
   9192   return 0;
   9193 }
   9194 _ACEOF
   9195 if ac_fn_c_try_compile "$LINENO"; then :
   9196   ac_pthread_key_t_is_arithmetic_type=yes
   9197 else
   9198   ac_pthread_key_t_is_arithmetic_type=no
   9199 
   9200 fi
   9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5
   9203 $as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; }
   9204   if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then
   9205 
   9206 $as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
   9207 
   9208   fi
   9209 else
   9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9211 $as_echo "no" >&6; }
   9212 fi
   9213 CC="$ac_save_cc"
   9214 
   9215 
   9216 case $ac_sys_system/$ac_sys_release in
   9217   Darwin/[01567]\..*)
   9218     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
   9219     ;;
   9220   Darwin/*)
   9221     OTHER_LIBTOOL_OPT=""
   9222     ;;
   9223 esac
   9224 
   9225 
   9226 
   9227 case $ac_sys_system/$ac_sys_release in
   9228   Darwin/[01567]\..*)
   9229     LIBTOOL_CRUFT="-framework System -lcc_dynamic"
   9230     if test "${enable_universalsdk}"; then
   9231 	    :
   9232     else
   9233         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
   9234     fi
   9235     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9236     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
   9237   Darwin/*)
   9238     gcc_version=`gcc -dumpversion`
   9239     if test ${gcc_version} '<' 4.0
   9240         then
   9241             LIBTOOL_CRUFT="-lcc_dynamic"
   9242         else
   9243             LIBTOOL_CRUFT=""
   9244     fi
   9245     if test "$cross_compiling" = yes; then :
   9246   ac_osx_32bit=yes
   9247 else
   9248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9249 /* end confdefs.h.  */
   9250 
   9251     #include <unistd.h>
   9252     int main(int argc, char*argv[])
   9253     {
   9254       if (sizeof(long) == 4) {
   9255     	  return 0;
   9256       } else {
   9257       	  return 1;
   9258       }
   9259     }
   9260 
   9261 _ACEOF
   9262 if ac_fn_c_try_run "$LINENO"; then :
   9263   ac_osx_32bit=yes
   9264 else
   9265   ac_osx_32bit=no
   9266 fi
   9267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9268   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9269 fi
   9270 
   9271 
   9272     if test "${ac_osx_32bit}" = "yes"; then
   9273     	case `/usr/bin/arch` in
   9274     	i386)
   9275     		MACOSX_DEFAULT_ARCH="i386"
   9276     		;;
   9277     	ppc)
   9278     		MACOSX_DEFAULT_ARCH="ppc"
   9279     		;;
   9280     	*)
   9281     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
   9282     		;;
   9283     	esac
   9284     else
   9285     	case `/usr/bin/arch` in
   9286     	i386)
   9287     		MACOSX_DEFAULT_ARCH="x86_64"
   9288     		;;
   9289     	ppc)
   9290     		MACOSX_DEFAULT_ARCH="ppc64"
   9291     		;;
   9292     	*)
   9293     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
   9294     		;;
   9295     	esac
   9296 
   9297     fi
   9298 
   9299     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
   9300     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9301     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
   9302 esac
   9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
   9304 $as_echo_n "checking for --enable-framework... " >&6; }
   9305 if test "$enable_framework"
   9306 then
   9307 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
   9308 	# -F. is needed to allow linking to the framework while
   9309 	# in the build location.
   9310 
   9311 $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
   9312 
   9313 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9314 $as_echo "yes" >&6; }
   9315 	if test $enable_shared = "yes"
   9316 	then
   9317 		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
   9318 	fi
   9319 else
   9320 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9321 $as_echo "no" >&6; }
   9322 fi
   9323 
   9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
   9325 $as_echo_n "checking for dyld... " >&6; }
   9326 case $ac_sys_system/$ac_sys_release in
   9327   Darwin/*)
   9328 
   9329 $as_echo "#define WITH_DYLD 1" >>confdefs.h
   9330 
   9331   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
   9332 $as_echo "always on for Darwin" >&6; }
   9333   	;;
   9334   *)
   9335 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9336 $as_echo "no" >&6; }
   9337 	;;
   9338 esac
   9339 
   9340 # Set info about shared libraries.
   9341 
   9342 
   9343 
   9344 
   9345 
   9346 
   9347 
   9348 # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
   9349 # -- usually .so, .sl on HP-UX, .dll on Cygwin
   9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
   9351 $as_echo_n "checking the extension of shared libraries... " >&6; }
   9352 if test -z "$SHLIB_SUFFIX"; then
   9353 	case $ac_sys_system in
   9354 	hp*|HP*)
   9355 		case `uname -m` in
   9356 			ia64) SHLIB_SUFFIX=.so;;
   9357 	  		*)    SHLIB_SUFFIX=.sl;;
   9358 		esac
   9359 		;;
   9360 	CYGWIN*)   SHLIB_SUFFIX=.dll;;
   9361 	*)	   SHLIB_SUFFIX=.so;;
   9362 	esac
   9363 fi
   9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
   9365 $as_echo "$SHLIB_SUFFIX" >&6; }
   9366 
   9367 # LDSHARED is the ld *command* used to create shared library
   9368 # -- "cc -G" on SunOS 5.x.
   9369 # (Shared libraries in this instance are shared modules to be loaded into
   9370 # Python, as opposed to building Python itself as a shared library.)
   9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
   9372 $as_echo_n "checking LDSHARED... " >&6; }
   9373 if test -z "$LDSHARED"
   9374 then
   9375 	case $ac_sys_system/$ac_sys_release in
   9376 	AIX*)
   9377 		BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
   9378 		LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
   9379 		;;
   9380 	SunOS/5*)
   9381 		if test "$GCC" = "yes" ; then
   9382 			LDSHARED='$(CC) -shared'
   9383 			LDCXXSHARED='$(CXX) -shared'
   9384 		else
   9385 			LDSHARED='$(CC) -G'
   9386 			LDCXXSHARED='$(CXX) -G'
   9387 		fi ;;
   9388 	hp*|HP*)
   9389 		if test "$GCC" = "yes" ; then
   9390 			LDSHARED='$(CC) -shared'
   9391 			LDCXXSHARED='$(CXX) -shared'
   9392 		else
   9393 			LDSHARED='$(CC) -b'
   9394 			LDCXXSHARED='$(CXX) -b'
   9395 		fi ;;
   9396 	Darwin/1.3*)
   9397 		LDSHARED='$(CC) -bundle'
   9398 		LDCXXSHARED='$(CXX) -bundle'
   9399 		if test "$enable_framework" ; then
   9400 			# Link against the framework. All externals should be defined.
   9401 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9402 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9403 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9404 		else
   9405 			# No framework. Ignore undefined symbols, assuming they come from Python
   9406 			LDSHARED="$LDSHARED -undefined suppress"
   9407 			LDCXXSHARED="$LDCXXSHARED -undefined suppress"
   9408 		fi ;;
   9409 	Darwin/1.4*|Darwin/5.*|Darwin/6.*)
   9410 		LDSHARED='$(CC) -bundle'
   9411 		LDCXXSHARED='$(CXX) -bundle'
   9412 		if test "$enable_framework" ; then
   9413 			# Link against the framework. All externals should be defined.
   9414 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9415 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9416 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9417 		else
   9418 			# No framework, use the Python app as bundle-loader
   9419 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
   9420 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
   9421 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
   9422 		fi ;;
   9423 	Darwin/*)
   9424 		# Use -undefined dynamic_lookup whenever possible (10.3 and later).
   9425 		# This allows an extension to be used in any Python
   9426 
   9427 		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
   9428 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
   9429 		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
   9430 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
   9431 		if test ${dep_target_major} -eq 10 && \
   9432 		   test ${dep_target_minor} -le 2
   9433 		then
   9434 			# building for OS X 10.0 through 10.2
   9435 			LDSHARED='$(CC) -bundle'
   9436 			LDCXXSHARED='$(CXX) -bundle'
   9437 			if test "$enable_framework" ; then
   9438 				# Link against the framework. All externals should be defined.
   9439 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9440 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9441 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9442 			else
   9443 				# No framework, use the Python app as bundle-loader
   9444 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
   9445 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
   9446 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
   9447 			fi
   9448 		else
   9449 			# building for OS X 10.3 and later
   9450 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
   9451 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
   9452 			BLDSHARED="$LDSHARED"
   9453 		fi
   9454 		;;
   9455 	Linux*|GNU*|QNX*)
   9456 		LDSHARED='$(CC) -shared'
   9457 		LDCXXSHARED='$(CXX) -shared';;
   9458 	FreeBSD*)
   9459 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
   9460 		then
   9461 			LDSHARED='$(CC) -shared'
   9462 			LDCXXSHARED='$(CXX) -shared'
   9463 		else
   9464 			LDSHARED="ld -Bshareable"
   9465 		fi;;
   9466 	OpenBSD*)
   9467 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
   9468 		then
   9469 				LDSHARED='$(CC) -shared $(CCSHARED)'
   9470 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
   9471 		else
   9472 				case `uname -r` in
   9473 				[01].* | 2.[0-7] | 2.[0-7].*)
   9474 				   LDSHARED="ld -Bshareable ${LDFLAGS}"
   9475 				   ;;
   9476 				*)
   9477 				   LDSHARED='$(CC) -shared $(CCSHARED)'
   9478 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
   9479 				   ;;
   9480 				esac
   9481 		fi;;
   9482 	NetBSD*|DragonFly*)
   9483 		LDSHARED='$(CC) -shared'
   9484 		LDCXXSHARED='$(CXX) -shared';;
   9485 	OpenUNIX*|UnixWare*)
   9486 		if test "$GCC" = "yes" ; then
   9487 			LDSHARED='$(CC) -shared'
   9488 			LDCXXSHARED='$(CXX) -shared'
   9489 		else
   9490 			LDSHARED='$(CC) -G'
   9491 			LDCXXSHARED='$(CXX) -G'
   9492 		fi;;
   9493 	SCO_SV*)
   9494 		LDSHARED='$(CC) -Wl,-G,-Bexport'
   9495 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
   9496 	CYGWIN*)
   9497 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
   9498 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
   9499 	*)	LDSHARED="ld";;
   9500 	esac
   9501 fi
   9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
   9503 $as_echo "$LDSHARED" >&6; }
   9504 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
   9505 BLDSHARED=${BLDSHARED-$LDSHARED}
   9506 # CCSHARED are the C *flags* used to create objects to go into a shared
   9507 # library (module) -- this is only needed for a few systems
   9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
   9509 $as_echo_n "checking CCSHARED... " >&6; }
   9510 if test -z "$CCSHARED"
   9511 then
   9512 	case $ac_sys_system/$ac_sys_release in
   9513 	SunOS*) if test "$GCC" = yes;
   9514 		then CCSHARED="-fPIC";
   9515 		elif test `uname -p` = sparc;
   9516 		then CCSHARED="-xcode=pic32";
   9517 		else CCSHARED="-Kpic";
   9518 		fi;;
   9519 	hp*|HP*) if test "$GCC" = yes;
   9520 		 then CCSHARED="-fPIC";
   9521 		 else CCSHARED="+z";
   9522 		 fi;;
   9523 	Linux-android*) ;;
   9524 	Linux*|GNU*) CCSHARED="-fPIC";;
   9525 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
   9526 	OpenUNIX*|UnixWare*)
   9527 		if test "$GCC" = "yes"
   9528 		then CCSHARED="-fPIC"
   9529 		else CCSHARED="-KPIC"
   9530 		fi;;
   9531 	SCO_SV*)
   9532 		if test "$GCC" = "yes"
   9533 		then CCSHARED="-fPIC"
   9534 		else CCSHARED="-Kpic -belf"
   9535 		fi;;
   9536 	esac
   9537 fi
   9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
   9539 $as_echo "$CCSHARED" >&6; }
   9540 # LINKFORSHARED are the flags passed to the $(CC) command that links
   9541 # the python executable -- this is only needed for a few systems
   9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
   9543 $as_echo_n "checking LINKFORSHARED... " >&6; }
   9544 if test -z "$LINKFORSHARED"
   9545 then
   9546 	case $ac_sys_system/$ac_sys_release in
   9547 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
   9548 	hp*|HP*)
   9549 	    LINKFORSHARED="-Wl,-E -Wl,+s";;
   9550 #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
   9551 	Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
   9552 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
   9553 	# -u libsys_s pulls in all symbols in libsys
   9554 	Darwin/*)
   9555 		LINKFORSHARED="$extra_undefs -framework CoreFoundation"
   9556 
   9557 		# Issue #18075: the default maximum stack size (8MBytes) is too
   9558 		# small for the default recursion limit. Increase the stack size
   9559 		# to ensure that tests don't crash
   9560 		LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
   9561 
   9562 		if test "$enable_framework"
   9563 		then
   9564 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   9565 		fi
   9566 		LINKFORSHARED="$LINKFORSHARED";;
   9567 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
   9568 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
   9569 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
   9570 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
   9571 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
   9572 		then
   9573 			LINKFORSHARED="-Wl,--export-dynamic"
   9574 		fi;;
   9575 	SunOS/5*) case $CC in
   9576 		  *gcc*)
   9577 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
   9578 		    then
   9579 			LINKFORSHARED="-Xlinker --export-dynamic"
   9580 		    fi;;
   9581 		  esac;;
   9582 	CYGWIN*)
   9583 		if test $enable_shared = "no"
   9584 		then
   9585 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
   9586 		fi;;
   9587 	QNX*)
   9588 		# -Wl,-E causes the symbols to be added to the dynamic
   9589 		# symbol table so that they can be found when a module
   9590 		# is loaded.  -N 2048K causes the stack size to be set
   9591 		# to 2048 kilobytes so that the stack doesn't overflow
   9592 		# when running test_compile.py.
   9593 		LINKFORSHARED='-Wl,-E -N 2048K';;
   9594 	esac
   9595 fi
   9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
   9597 $as_echo "$LINKFORSHARED" >&6; }
   9598 
   9599 
   9600 
   9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
   9602 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
   9603 if test ! "$LIBRARY" = "$LDLIBRARY"
   9604 then
   9605 	case $ac_sys_system in
   9606 	CYGWIN*)
   9607 		# Cygwin needs CCSHARED when building extension DLLs
   9608 		# but not when building the interpreter DLL.
   9609 		CFLAGSFORSHARED='';;
   9610 	*)
   9611 		CFLAGSFORSHARED='$(CCSHARED)'
   9612 	esac
   9613 fi
   9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
   9615 $as_echo "$CFLAGSFORSHARED" >&6; }
   9616 
   9617 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
   9618 # library (with --enable-shared).
   9619 # For platforms on which shared libraries are not allowed to have unresolved
   9620 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
   9621 # if it is not required, since it creates a dependency of the shared library
   9622 # to LIBS. This, in turn, means that applications linking the shared libpython
   9623 # don't need to link LIBS explicitly. The default should be only changed
   9624 # on systems where this approach causes problems.
   9625 
   9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
   9627 $as_echo_n "checking SHLIBS... " >&6; }
   9628 case "$ac_sys_system" in
   9629 	*)
   9630 		SHLIBS='$(LIBS)';;
   9631 esac
   9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
   9633 $as_echo "$SHLIBS" >&6; }
   9634 
   9635 
   9636 # checks for libraries
   9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
   9638 $as_echo_n "checking for sendfile in -lsendfile... " >&6; }
   9639 if ${ac_cv_lib_sendfile_sendfile+:} false; then :
   9640   $as_echo_n "(cached) " >&6
   9641 else
   9642   ac_check_lib_save_LIBS=$LIBS
   9643 LIBS="-lsendfile  $LIBS"
   9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9645 /* end confdefs.h.  */
   9646 
   9647 /* Override any GCC internal prototype to avoid an error.
   9648    Use char because int might match the return type of a GCC
   9649    builtin and then its argument prototype would still apply.  */
   9650 #ifdef __cplusplus
   9651 extern "C"
   9652 #endif
   9653 char sendfile ();
   9654 int
   9655 main ()
   9656 {
   9657 return sendfile ();
   9658   ;
   9659   return 0;
   9660 }
   9661 _ACEOF
   9662 if ac_fn_c_try_link "$LINENO"; then :
   9663   ac_cv_lib_sendfile_sendfile=yes
   9664 else
   9665   ac_cv_lib_sendfile_sendfile=no
   9666 fi
   9667 rm -f core conftest.err conftest.$ac_objext \
   9668     conftest$ac_exeext conftest.$ac_ext
   9669 LIBS=$ac_check_lib_save_LIBS
   9670 fi
   9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
   9672 $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
   9673 if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
   9674   cat >>confdefs.h <<_ACEOF
   9675 #define HAVE_LIBSENDFILE 1
   9676 _ACEOF
   9677 
   9678   LIBS="-lsendfile $LIBS"
   9679 
   9680 fi
   9681 
   9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   9683 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   9684 if ${ac_cv_lib_dl_dlopen+:} false; then :
   9685   $as_echo_n "(cached) " >&6
   9686 else
   9687   ac_check_lib_save_LIBS=$LIBS
   9688 LIBS="-ldl  $LIBS"
   9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9690 /* end confdefs.h.  */
   9691 
   9692 /* Override any GCC internal prototype to avoid an error.
   9693    Use char because int might match the return type of a GCC
   9694    builtin and then its argument prototype would still apply.  */
   9695 #ifdef __cplusplus
   9696 extern "C"
   9697 #endif
   9698 char dlopen ();
   9699 int
   9700 main ()
   9701 {
   9702 return dlopen ();
   9703   ;
   9704   return 0;
   9705 }
   9706 _ACEOF
   9707 if ac_fn_c_try_link "$LINENO"; then :
   9708   ac_cv_lib_dl_dlopen=yes
   9709 else
   9710   ac_cv_lib_dl_dlopen=no
   9711 fi
   9712 rm -f core conftest.err conftest.$ac_objext \
   9713     conftest$ac_exeext conftest.$ac_ext
   9714 LIBS=$ac_check_lib_save_LIBS
   9715 fi
   9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   9717 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   9718 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   9719   cat >>confdefs.h <<_ACEOF
   9720 #define HAVE_LIBDL 1
   9721 _ACEOF
   9722 
   9723   LIBS="-ldl $LIBS"
   9724 
   9725 fi
   9726 	# Dynamic linking for SunOS/Solaris and SYSV
   9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   9728 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   9729 if ${ac_cv_lib_dld_shl_load+:} false; then :
   9730   $as_echo_n "(cached) " >&6
   9731 else
   9732   ac_check_lib_save_LIBS=$LIBS
   9733 LIBS="-ldld  $LIBS"
   9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9735 /* end confdefs.h.  */
   9736 
   9737 /* Override any GCC internal prototype to avoid an error.
   9738    Use char because int might match the return type of a GCC
   9739    builtin and then its argument prototype would still apply.  */
   9740 #ifdef __cplusplus
   9741 extern "C"
   9742 #endif
   9743 char shl_load ();
   9744 int
   9745 main ()
   9746 {
   9747 return shl_load ();
   9748   ;
   9749   return 0;
   9750 }
   9751 _ACEOF
   9752 if ac_fn_c_try_link "$LINENO"; then :
   9753   ac_cv_lib_dld_shl_load=yes
   9754 else
   9755   ac_cv_lib_dld_shl_load=no
   9756 fi
   9757 rm -f core conftest.err conftest.$ac_objext \
   9758     conftest$ac_exeext conftest.$ac_ext
   9759 LIBS=$ac_check_lib_save_LIBS
   9760 fi
   9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   9762 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   9763 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   9764   cat >>confdefs.h <<_ACEOF
   9765 #define HAVE_LIBDLD 1
   9766 _ACEOF
   9767 
   9768   LIBS="-ldld $LIBS"
   9769 
   9770 fi
   9771 	# Dynamic linking for HP-UX
   9772 
   9773 # checks for uuid.h location
   9774 for ac_header in uuid/uuid.h uuid.h
   9775 do :
   9776   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9777 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   9778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   9779   cat >>confdefs.h <<_ACEOF
   9780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9781 _ACEOF
   9782 
   9783 fi
   9784 
   9785 done
   9786 
   9787 
   9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5
   9789 $as_echo_n "checking for uuid_generate_time_safe... " >&6; }
   9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9791 /* end confdefs.h.  */
   9792 #include <uuid/uuid.h>
   9793 int
   9794 main ()
   9795 {
   9796 
   9797 #ifndef uuid_generate_time_safe
   9798 void *x = uuid_generate_time_safe
   9799 #endif
   9800 
   9801   ;
   9802   return 0;
   9803 }
   9804 _ACEOF
   9805 if ac_fn_c_try_compile "$LINENO"; then :
   9806 
   9807 $as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
   9808 
   9809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9810 $as_echo "yes" >&6; }
   9811 else
   9812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9813 $as_echo "no" >&6; }
   9814 
   9815 fi
   9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9817 
   9818 # AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007)
   9819 # FreeBSD and OpenBSD provides support as well
   9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5
   9821 $as_echo_n "checking for uuid_create... " >&6; }
   9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9823 /* end confdefs.h.  */
   9824 #include <uuid.h>
   9825 int
   9826 main ()
   9827 {
   9828 
   9829 #ifndef uuid_create
   9830 void *x = uuid_create
   9831 #endif
   9832 
   9833   ;
   9834   return 0;
   9835 }
   9836 _ACEOF
   9837 if ac_fn_c_try_compile "$LINENO"; then :
   9838 
   9839 $as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h
   9840 
   9841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9842 $as_echo "yes" >&6; }
   9843 else
   9844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9845 $as_echo "no" >&6; }
   9846 
   9847 fi
   9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9849 
   9850 # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet
   9851 # stream in big-endian byte-order
   9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5
   9853 $as_echo_n "checking for uuid_enc_be... " >&6; }
   9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9855 /* end confdefs.h.  */
   9856 #include <uuid.h>
   9857 int
   9858 main ()
   9859 {
   9860 
   9861 #ifndef uuid_enc_be
   9862 void *x = uuid_enc_be
   9863 #endif
   9864 
   9865   ;
   9866   return 0;
   9867 }
   9868 _ACEOF
   9869 if ac_fn_c_try_compile "$LINENO"; then :
   9870 
   9871 $as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h
   9872 
   9873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9874 $as_echo "yes" >&6; }
   9875 else
   9876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9877 $as_echo "no" >&6; }
   9878 
   9879 fi
   9880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9881 
   9882 # 'Real Time' functions on Solaris
   9883 # posix4 on Solaris 2.6
   9884 # pthread (first!) on Linux
   9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
   9886 $as_echo_n "checking for library containing sem_init... " >&6; }
   9887 if ${ac_cv_search_sem_init+:} false; then :
   9888   $as_echo_n "(cached) " >&6
   9889 else
   9890   ac_func_search_save_LIBS=$LIBS
   9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9892 /* end confdefs.h.  */
   9893 
   9894 /* Override any GCC internal prototype to avoid an error.
   9895    Use char because int might match the return type of a GCC
   9896    builtin and then its argument prototype would still apply.  */
   9897 #ifdef __cplusplus
   9898 extern "C"
   9899 #endif
   9900 char sem_init ();
   9901 int
   9902 main ()
   9903 {
   9904 return sem_init ();
   9905   ;
   9906   return 0;
   9907 }
   9908 _ACEOF
   9909 for ac_lib in '' pthread rt posix4; do
   9910   if test -z "$ac_lib"; then
   9911     ac_res="none required"
   9912   else
   9913     ac_res=-l$ac_lib
   9914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9915   fi
   9916   if ac_fn_c_try_link "$LINENO"; then :
   9917   ac_cv_search_sem_init=$ac_res
   9918 fi
   9919 rm -f core conftest.err conftest.$ac_objext \
   9920     conftest$ac_exeext
   9921   if ${ac_cv_search_sem_init+:} false; then :
   9922   break
   9923 fi
   9924 done
   9925 if ${ac_cv_search_sem_init+:} false; then :
   9926 
   9927 else
   9928   ac_cv_search_sem_init=no
   9929 fi
   9930 rm conftest.$ac_ext
   9931 LIBS=$ac_func_search_save_LIBS
   9932 fi
   9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
   9934 $as_echo "$ac_cv_search_sem_init" >&6; }
   9935 ac_res=$ac_cv_search_sem_init
   9936 if test "$ac_res" != no; then :
   9937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9938 
   9939 fi
   9940 
   9941 
   9942 # check if we need libintl for locale functions
   9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
   9944 $as_echo_n "checking for textdomain in -lintl... " >&6; }
   9945 if ${ac_cv_lib_intl_textdomain+:} false; then :
   9946   $as_echo_n "(cached) " >&6
   9947 else
   9948   ac_check_lib_save_LIBS=$LIBS
   9949 LIBS="-lintl  $LIBS"
   9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9951 /* end confdefs.h.  */
   9952 
   9953 /* Override any GCC internal prototype to avoid an error.
   9954    Use char because int might match the return type of a GCC
   9955    builtin and then its argument prototype would still apply.  */
   9956 #ifdef __cplusplus
   9957 extern "C"
   9958 #endif
   9959 char textdomain ();
   9960 int
   9961 main ()
   9962 {
   9963 return textdomain ();
   9964   ;
   9965   return 0;
   9966 }
   9967 _ACEOF
   9968 if ac_fn_c_try_link "$LINENO"; then :
   9969   ac_cv_lib_intl_textdomain=yes
   9970 else
   9971   ac_cv_lib_intl_textdomain=no
   9972 fi
   9973 rm -f core conftest.err conftest.$ac_objext \
   9974     conftest$ac_exeext conftest.$ac_ext
   9975 LIBS=$ac_check_lib_save_LIBS
   9976 fi
   9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
   9978 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
   9979 if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
   9980 
   9981 $as_echo "#define WITH_LIBINTL 1" >>confdefs.h
   9982 
   9983         LIBS="-lintl $LIBS"
   9984 fi
   9985 
   9986 
   9987 # checks for system dependent C++ extensions support
   9988 case "$ac_sys_system" in
   9989 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
   9990 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
   9991 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9992 /* end confdefs.h.  */
   9993 
   9994 		  #include <load.h>
   9995 int
   9996 main ()
   9997 {
   9998 loadAndInit("", 0, "")
   9999   ;
   10000   return 0;
   10001 }
   10002 
   10003 _ACEOF
   10004 if ac_fn_c_try_link "$LINENO"; then :
   10005 
   10006 
   10007 $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
   10008 
   10009 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10010 $as_echo "yes" >&6; }
   10011 
   10012 else
   10013 
   10014 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10015 $as_echo "no" >&6; }
   10016 
   10017 fi
   10018 rm -f core conftest.err conftest.$ac_objext \
   10019     conftest$ac_exeext conftest.$ac_ext;;
   10020 	*) ;;
   10021 esac
   10022 
   10023 # check for systems that require aligned memory access
   10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
   10025 $as_echo_n "checking aligned memory access is required... " >&6; }
   10026 if ${ac_cv_aligned_required+:} false; then :
   10027   $as_echo_n "(cached) " >&6
   10028 else
   10029   if test "$cross_compiling" = yes; then :
   10030   ac_cv_aligned_required=yes
   10031 else
   10032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10033 /* end confdefs.h.  */
   10034 
   10035 int main()
   10036 {
   10037     char s[16];
   10038     int i, *p1, *p2;
   10039     for (i=0; i < 16; i++)
   10040         s[i] = i;
   10041     p1 = (int*)(s+1);
   10042     p2 = (int*)(s+2);
   10043     if (*p1 == *p2)
   10044         return 1;
   10045     return 0;
   10046 }
   10047 _ACEOF
   10048 if ac_fn_c_try_run "$LINENO"; then :
   10049   ac_cv_aligned_required=no
   10050 else
   10051   ac_cv_aligned_required=yes
   10052 fi
   10053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10054   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10055 fi
   10056 
   10057 
   10058 fi
   10059 
   10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
   10061 $as_echo "$ac_cv_aligned_required" >&6; }
   10062 if test "$ac_cv_aligned_required" = yes ; then
   10063 
   10064 $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
   10065 
   10066 fi
   10067 
   10068 # str, bytes and memoryview hash algorithm
   10069 
   10070 
   10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
   10072 $as_echo_n "checking for --with-hash-algorithm... " >&6; }
   10073 
   10074 # Check whether --with-hash_algorithm was given.
   10075 if test "${with_hash_algorithm+set}" = set; then :
   10076   withval=$with_hash_algorithm;
   10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
   10078 $as_echo "$withval" >&6; }
   10079 case "$withval" in
   10080     siphash24)
   10081         $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h
   10082 
   10083         ;;
   10084     fnv)
   10085         $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h
   10086 
   10087         ;;
   10088     *)
   10089         as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
   10090         ;;
   10091 esac
   10092 
   10093 else
   10094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
   10095 $as_echo "default" >&6; }
   10096 fi
   10097 
   10098 
   10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
   10100 $as_echo_n "checking for --with-address-sanitizer... " >&6; }
   10101 
   10102 # Check whether --with-address_sanitizer was given.
   10103 if test "${with_address_sanitizer+set}" = set; then :
   10104   withval=$with_address_sanitizer;
   10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
   10106 $as_echo "$withval" >&6; }
   10107 BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
   10108 LDFLAGS="-fsanitize=address $LDFLAGS"
   10109 # ASan works by controlling memory allocation, our own malloc interferes.
   10110 with_pymalloc="no"
   10111 
   10112 else
   10113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10114 $as_echo "no" >&6; }
   10115 fi
   10116 
   10117 
   10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
   10119 $as_echo_n "checking for --with-memory-sanitizer... " >&6; }
   10120 
   10121 # Check whether --with-memory_sanitizer was given.
   10122 if test "${with_memory_sanitizer+set}" = set; then :
   10123   withval=$with_memory_sanitizer;
   10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
   10125 $as_echo "$withval" >&6; }
   10126 BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
   10127 LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
   10128 # MSan works by controlling memory allocation, our own malloc interferes.
   10129 with_pymalloc="no"
   10130 
   10131 else
   10132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10133 $as_echo "no" >&6; }
   10134 fi
   10135 
   10136 
   10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
   10138 $as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; }
   10139 
   10140 # Check whether --with-undefined_behavior_sanitizer was given.
   10141 if test "${with_undefined_behavior_sanitizer+set}" = set; then :
   10142   withval=$with_undefined_behavior_sanitizer;
   10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
   10144 $as_echo "$withval" >&6; }
   10145 BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
   10146 LDFLAGS="-fsanitize=undefined $LDFLAGS"
   10147 
   10148 else
   10149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10150 $as_echo "no" >&6; }
   10151 fi
   10152 
   10153 
   10154 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
   10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
   10156 $as_echo_n "checking for t_open in -lnsl... " >&6; }
   10157 if ${ac_cv_lib_nsl_t_open+:} false; then :
   10158   $as_echo_n "(cached) " >&6
   10159 else
   10160   ac_check_lib_save_LIBS=$LIBS
   10161 LIBS="-lnsl  $LIBS"
   10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10163 /* end confdefs.h.  */
   10164 
   10165 /* Override any GCC internal prototype to avoid an error.
   10166    Use char because int might match the return type of a GCC
   10167    builtin and then its argument prototype would still apply.  */
   10168 #ifdef __cplusplus
   10169 extern "C"
   10170 #endif
   10171 char t_open ();
   10172 int
   10173 main ()
   10174 {
   10175 return t_open ();
   10176   ;
   10177   return 0;
   10178 }
   10179 _ACEOF
   10180 if ac_fn_c_try_link "$LINENO"; then :
   10181   ac_cv_lib_nsl_t_open=yes
   10182 else
   10183   ac_cv_lib_nsl_t_open=no
   10184 fi
   10185 rm -f core conftest.err conftest.$ac_objext \
   10186     conftest$ac_exeext conftest.$ac_ext
   10187 LIBS=$ac_check_lib_save_LIBS
   10188 fi
   10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
   10190 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
   10191 if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
   10192   LIBS="-lnsl $LIBS"
   10193 fi
   10194  # SVR4
   10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   10196 $as_echo_n "checking for socket in -lsocket... " >&6; }
   10197 if ${ac_cv_lib_socket_socket+:} false; then :
   10198   $as_echo_n "(cached) " >&6
   10199 else
   10200   ac_check_lib_save_LIBS=$LIBS
   10201 LIBS="-lsocket $LIBS $LIBS"
   10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10203 /* end confdefs.h.  */
   10204 
   10205 /* Override any GCC internal prototype to avoid an error.
   10206    Use char because int might match the return type of a GCC
   10207    builtin and then its argument prototype would still apply.  */
   10208 #ifdef __cplusplus
   10209 extern "C"
   10210 #endif
   10211 char socket ();
   10212 int
   10213 main ()
   10214 {
   10215 return socket ();
   10216   ;
   10217   return 0;
   10218 }
   10219 _ACEOF
   10220 if ac_fn_c_try_link "$LINENO"; then :
   10221   ac_cv_lib_socket_socket=yes
   10222 else
   10223   ac_cv_lib_socket_socket=no
   10224 fi
   10225 rm -f core conftest.err conftest.$ac_objext \
   10226     conftest$ac_exeext conftest.$ac_ext
   10227 LIBS=$ac_check_lib_save_LIBS
   10228 fi
   10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   10230 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   10231 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   10232   LIBS="-lsocket $LIBS"
   10233 fi
   10234  # SVR4 sockets
   10235 
   10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
   10237 $as_echo_n "checking for --with-libs... " >&6; }
   10238 
   10239 # Check whether --with-libs was given.
   10240 if test "${with_libs+set}" = set; then :
   10241   withval=$with_libs;
   10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
   10243 $as_echo "$withval" >&6; }
   10244 LIBS="$withval $LIBS"
   10245 
   10246 else
   10247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10248 $as_echo "no" >&6; }
   10249 fi
   10250 
   10251 
   10252 
   10253 
   10254 
   10255 
   10256 
   10257 
   10258 
   10259 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   10260 	if test -n "$ac_tool_prefix"; then
   10261   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   10262 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10264 $as_echo_n "checking for $ac_word... " >&6; }
   10265 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   10266   $as_echo_n "(cached) " >&6
   10267 else
   10268   case $PKG_CONFIG in
   10269   [\\/]* | ?:[\\/]*)
   10270   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   10271   ;;
   10272   *)
   10273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10274 for as_dir in $PATH
   10275 do
   10276   IFS=$as_save_IFS
   10277   test -z "$as_dir" && as_dir=.
   10278     for ac_exec_ext in '' $ac_executable_extensions; do
   10279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10280     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   10281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10282     break 2
   10283   fi
   10284 done
   10285   done
   10286 IFS=$as_save_IFS
   10287 
   10288   ;;
   10289 esac
   10290 fi
   10291 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   10292 if test -n "$PKG_CONFIG"; then
   10293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   10294 $as_echo "$PKG_CONFIG" >&6; }
   10295 else
   10296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10297 $as_echo "no" >&6; }
   10298 fi
   10299 
   10300 
   10301 fi
   10302 if test -z "$ac_cv_path_PKG_CONFIG"; then
   10303   ac_pt_PKG_CONFIG=$PKG_CONFIG
   10304   # Extract the first word of "pkg-config", so it can be a program name with args.
   10305 set dummy pkg-config; ac_word=$2
   10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10307 $as_echo_n "checking for $ac_word... " >&6; }
   10308 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   10309   $as_echo_n "(cached) " >&6
   10310 else
   10311   case $ac_pt_PKG_CONFIG in
   10312   [\\/]* | ?:[\\/]*)
   10313   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   10314   ;;
   10315   *)
   10316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10317 for as_dir in $PATH
   10318 do
   10319   IFS=$as_save_IFS
   10320   test -z "$as_dir" && as_dir=.
   10321     for ac_exec_ext in '' $ac_executable_extensions; do
   10322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10323     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   10324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10325     break 2
   10326   fi
   10327 done
   10328   done
   10329 IFS=$as_save_IFS
   10330 
   10331   ;;
   10332 esac
   10333 fi
   10334 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   10335 if test -n "$ac_pt_PKG_CONFIG"; then
   10336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   10337 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   10338 else
   10339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10340 $as_echo "no" >&6; }
   10341 fi
   10342 
   10343   if test "x$ac_pt_PKG_CONFIG" = x; then
   10344     PKG_CONFIG=""
   10345   else
   10346     case $cross_compiling:$ac_tool_warned in
   10347 yes:)
   10348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   10349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   10350 ac_tool_warned=yes ;;
   10351 esac
   10352     PKG_CONFIG=$ac_pt_PKG_CONFIG
   10353   fi
   10354 else
   10355   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   10356 fi
   10357 
   10358 fi
   10359 if test -n "$PKG_CONFIG"; then
   10360 	_pkg_min_version=0.9.0
   10361 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   10362 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   10363 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   10364 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10365 $as_echo "yes" >&6; }
   10366 	else
   10367 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10368 $as_echo "no" >&6; }
   10369 		PKG_CONFIG=""
   10370 	fi
   10371 fi
   10372 
   10373 # Check for use of the system expat library
   10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
   10375 $as_echo_n "checking for --with-system-expat... " >&6; }
   10376 
   10377 # Check whether --with-system_expat was given.
   10378 if test "${with_system_expat+set}" = set; then :
   10379   withval=$with_system_expat;
   10380 else
   10381   with_system_expat="no"
   10382 fi
   10383 
   10384 
   10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
   10386 $as_echo "$with_system_expat" >&6; }
   10387 
   10388 # Check for use of the system libffi library
   10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
   10390 $as_echo_n "checking for --with-system-ffi... " >&6; }
   10391 
   10392 # Check whether --with-system_ffi was given.
   10393 if test "${with_system_ffi+set}" = set; then :
   10394   withval=$with_system_ffi;
   10395 fi
   10396 
   10397 
   10398 if test "$ac_sys_system" = "Darwin"
   10399 then
   10400     case "$with_system_ffi" in
   10401         "")
   10402             with_system_ffi="no"
   10403             ;;
   10404         yes|no)
   10405             ;;
   10406         *)
   10407             as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5
   10408             ;;
   10409     esac
   10410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
   10411 $as_echo "$with_system_ffi" >&6; }
   10412 else
   10413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10414 $as_echo "yes" >&6; }
   10415     if test "$with_system_ffi" != ""
   10416     then
   10417         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5
   10418 $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;}
   10419     fi
   10420     with_system_ffi="yes"
   10421 fi
   10422 
   10423 if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
   10424     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
   10425 else
   10426     LIBFFI_INCLUDEDIR=""
   10427 fi
   10428 
   10429 
   10430 # Check for use of the system libmpdec library
   10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
   10432 $as_echo_n "checking for --with-system-libmpdec... " >&6; }
   10433 
   10434 # Check whether --with-system_libmpdec was given.
   10435 if test "${with_system_libmpdec+set}" = set; then :
   10436   withval=$with_system_libmpdec;
   10437 else
   10438   with_system_libmpdec="no"
   10439 fi
   10440 
   10441 
   10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
   10443 $as_echo "$with_system_libmpdec" >&6; }
   10444 
   10445 # Check for support for loadable sqlite extensions
   10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
   10447 $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; }
   10448 # Check whether --enable-loadable-sqlite-extensions was given.
   10449 if test "${enable_loadable_sqlite_extensions+set}" = set; then :
   10450   enableval=$enable_loadable_sqlite_extensions;
   10451 else
   10452   enable_loadable_sqlite_extensions="no"
   10453 fi
   10454 
   10455 
   10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5
   10457 $as_echo "$enable_loadable_sqlite_extensions" >&6; }
   10458 
   10459 # Check for --with-tcltk-includes=path and --with-tcltk-libs=path
   10460 
   10461 
   10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
   10463 $as_echo_n "checking for --with-tcltk-includes... " >&6; }
   10464 
   10465 # Check whether --with-tcltk-includes was given.
   10466 if test "${with_tcltk_includes+set}" = set; then :
   10467   withval=$with_tcltk_includes;
   10468 else
   10469   with_tcltk_includes="default"
   10470 fi
   10471 
   10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
   10473 $as_echo "$with_tcltk_includes" >&6; }
   10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
   10475 $as_echo_n "checking for --with-tcltk-libs... " >&6; }
   10476 
   10477 # Check whether --with-tcltk-libs was given.
   10478 if test "${with_tcltk_libs+set}" = set; then :
   10479   withval=$with_tcltk_libs;
   10480 else
   10481   with_tcltk_libs="default"
   10482 fi
   10483 
   10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
   10485 $as_echo "$with_tcltk_libs" >&6; }
   10486 if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
   10487 then
   10488   if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
   10489   then
   10490     as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
   10491   fi
   10492   TCLTK_INCLUDES=""
   10493   TCLTK_LIBS=""
   10494 else
   10495   TCLTK_INCLUDES="$with_tcltk_includes"
   10496   TCLTK_LIBS="$with_tcltk_libs"
   10497 fi
   10498 
   10499 # Check for --with-dbmliborder
   10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
   10501 $as_echo_n "checking for --with-dbmliborder... " >&6; }
   10502 
   10503 # Check whether --with-dbmliborder was given.
   10504 if test "${with_dbmliborder+set}" = set; then :
   10505   withval=$with_dbmliborder;
   10506 if test x$with_dbmliborder = xyes
   10507 then
   10508 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
   10509 else
   10510   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
   10511     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
   10512     then
   10513       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
   10514     fi
   10515   done
   10516 fi
   10517 fi
   10518 
   10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
   10520 $as_echo "$with_dbmliborder" >&6; }
   10521 
   10522 
   10523 
   10524 # Templates for things AC_DEFINEd more than once.
   10525 # For a single AC_DEFINE, no template is needed.
   10526 
   10527 
   10528 if test "$ac_cv_pthread_is_default" = yes
   10529 then
   10530     # Defining _REENTRANT on system with POSIX threads should not hurt.
   10531     $as_echo "#define _REENTRANT 1" >>confdefs.h
   10532 
   10533     posix_threads=yes
   10534 elif test "$ac_cv_kpthread" = "yes"
   10535 then
   10536     CC="$CC -Kpthread"
   10537     if test "$ac_cv_cxx_thread" = "yes"; then
   10538         CXX="$CXX -Kpthread"
   10539     fi
   10540     posix_threads=yes
   10541 elif test "$ac_cv_kthread" = "yes"
   10542 then
   10543     CC="$CC -Kthread"
   10544     if test "$ac_cv_cxx_thread" = "yes"; then
   10545         CXX="$CXX -Kthread"
   10546     fi
   10547     posix_threads=yes
   10548 elif test "$ac_cv_pthread" = "yes"
   10549 then
   10550     CC="$CC -pthread"
   10551     if test "$ac_cv_cxx_thread" = "yes"; then
   10552         CXX="$CXX -pthread"
   10553     fi
   10554     posix_threads=yes
   10555 else
   10556     if test ! -z "$withval" -a -d "$withval"
   10557     then LDFLAGS="$LDFLAGS -L$withval"
   10558     fi
   10559 
   10560     # According to the POSIX spec, a pthreads implementation must
   10561     # define _POSIX_THREADS in unistd.h. Some apparently don't
   10562     # (e.g. gnu pth with pthread emulation)
   10563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
   10564 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
   10565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10566 /* end confdefs.h.  */
   10567 
   10568 #include <unistd.h>
   10569 #ifdef _POSIX_THREADS
   10570 yes
   10571 #endif
   10572 
   10573 _ACEOF
   10574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10575   $EGREP "yes" >/dev/null 2>&1; then :
   10576   unistd_defines_pthreads=yes
   10577 else
   10578   unistd_defines_pthreads=no
   10579 fi
   10580 rm -f conftest*
   10581 
   10582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
   10583 $as_echo "$unistd_defines_pthreads" >&6; }
   10584 
   10585     $as_echo "#define _REENTRANT 1" >>confdefs.h
   10586 
   10587     # Just looking for pthread_create in libpthread is not enough:
   10588     # on HP/UX, pthread.h renames pthread_create to a different symbol name.
   10589     # So we really have to include pthread.h, and then link.
   10590     _libs=$LIBS
   10591     LIBS="$LIBS -lpthread"
   10592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
   10593 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
   10594     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10595 /* end confdefs.h.  */
   10596 
   10597 #include <stdio.h>
   10598 #include <pthread.h>
   10599 
   10600 void * start_routine (void *arg) { exit (0); }
   10601 int
   10602 main ()
   10603 {
   10604 
   10605 pthread_create (NULL, NULL, start_routine, NULL)
   10606   ;
   10607   return 0;
   10608 }
   10609 _ACEOF
   10610 if ac_fn_c_try_link "$LINENO"; then :
   10611 
   10612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10613 $as_echo "yes" >&6; }
   10614     posix_threads=yes
   10615 
   10616 else
   10617 
   10618     LIBS=$_libs
   10619     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
   10620 if test "x$ac_cv_func_pthread_detach" = xyes; then :
   10621 
   10622     posix_threads=yes
   10623 
   10624 else
   10625 
   10626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
   10627 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
   10628 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
   10629   $as_echo_n "(cached) " >&6
   10630 else
   10631   ac_check_lib_save_LIBS=$LIBS
   10632 LIBS="-lpthreads  $LIBS"
   10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10634 /* end confdefs.h.  */
   10635 
   10636 /* Override any GCC internal prototype to avoid an error.
   10637    Use char because int might match the return type of a GCC
   10638    builtin and then its argument prototype would still apply.  */
   10639 #ifdef __cplusplus
   10640 extern "C"
   10641 #endif
   10642 char pthread_create ();
   10643 int
   10644 main ()
   10645 {
   10646 return pthread_create ();
   10647   ;
   10648   return 0;
   10649 }
   10650 _ACEOF
   10651 if ac_fn_c_try_link "$LINENO"; then :
   10652   ac_cv_lib_pthreads_pthread_create=yes
   10653 else
   10654   ac_cv_lib_pthreads_pthread_create=no
   10655 fi
   10656 rm -f core conftest.err conftest.$ac_objext \
   10657     conftest$ac_exeext conftest.$ac_ext
   10658 LIBS=$ac_check_lib_save_LIBS
   10659 fi
   10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
   10661 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
   10662 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
   10663 
   10664     posix_threads=yes
   10665     LIBS="$LIBS -lpthreads"
   10666 
   10667 else
   10668 
   10669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
   10670 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
   10671 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
   10672   $as_echo_n "(cached) " >&6
   10673 else
   10674   ac_check_lib_save_LIBS=$LIBS
   10675 LIBS="-lc_r  $LIBS"
   10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10677 /* end confdefs.h.  */
   10678 
   10679 /* Override any GCC internal prototype to avoid an error.
   10680    Use char because int might match the return type of a GCC
   10681    builtin and then its argument prototype would still apply.  */
   10682 #ifdef __cplusplus
   10683 extern "C"
   10684 #endif
   10685 char pthread_create ();
   10686 int
   10687 main ()
   10688 {
   10689 return pthread_create ();
   10690   ;
   10691   return 0;
   10692 }
   10693 _ACEOF
   10694 if ac_fn_c_try_link "$LINENO"; then :
   10695   ac_cv_lib_c_r_pthread_create=yes
   10696 else
   10697   ac_cv_lib_c_r_pthread_create=no
   10698 fi
   10699 rm -f core conftest.err conftest.$ac_objext \
   10700     conftest$ac_exeext conftest.$ac_ext
   10701 LIBS=$ac_check_lib_save_LIBS
   10702 fi
   10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
   10704 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
   10705 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
   10706 
   10707     posix_threads=yes
   10708     LIBS="$LIBS -lc_r"
   10709 
   10710 else
   10711 
   10712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
   10713 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
   10714 if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
   10715   $as_echo_n "(cached) " >&6
   10716 else
   10717   ac_check_lib_save_LIBS=$LIBS
   10718 LIBS="-lpthread  $LIBS"
   10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10720 /* end confdefs.h.  */
   10721 
   10722 /* Override any GCC internal prototype to avoid an error.
   10723    Use char because int might match the return type of a GCC
   10724    builtin and then its argument prototype would still apply.  */
   10725 #ifdef __cplusplus
   10726 extern "C"
   10727 #endif
   10728 char __pthread_create_system ();
   10729 int
   10730 main ()
   10731 {
   10732 return __pthread_create_system ();
   10733   ;
   10734   return 0;
   10735 }
   10736 _ACEOF
   10737 if ac_fn_c_try_link "$LINENO"; then :
   10738   ac_cv_lib_pthread___pthread_create_system=yes
   10739 else
   10740   ac_cv_lib_pthread___pthread_create_system=no
   10741 fi
   10742 rm -f core conftest.err conftest.$ac_objext \
   10743     conftest$ac_exeext conftest.$ac_ext
   10744 LIBS=$ac_check_lib_save_LIBS
   10745 fi
   10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
   10747 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
   10748 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
   10749 
   10750     posix_threads=yes
   10751     LIBS="$LIBS -lpthread"
   10752 
   10753 else
   10754 
   10755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
   10756 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
   10757 if ${ac_cv_lib_cma_pthread_create+:} false; then :
   10758   $as_echo_n "(cached) " >&6
   10759 else
   10760   ac_check_lib_save_LIBS=$LIBS
   10761 LIBS="-lcma  $LIBS"
   10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10763 /* end confdefs.h.  */
   10764 
   10765 /* Override any GCC internal prototype to avoid an error.
   10766    Use char because int might match the return type of a GCC
   10767    builtin and then its argument prototype would still apply.  */
   10768 #ifdef __cplusplus
   10769 extern "C"
   10770 #endif
   10771 char pthread_create ();
   10772 int
   10773 main ()
   10774 {
   10775 return pthread_create ();
   10776   ;
   10777   return 0;
   10778 }
   10779 _ACEOF
   10780 if ac_fn_c_try_link "$LINENO"; then :
   10781   ac_cv_lib_cma_pthread_create=yes
   10782 else
   10783   ac_cv_lib_cma_pthread_create=no
   10784 fi
   10785 rm -f core conftest.err conftest.$ac_objext \
   10786     conftest$ac_exeext conftest.$ac_ext
   10787 LIBS=$ac_check_lib_save_LIBS
   10788 fi
   10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
   10790 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
   10791 if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
   10792 
   10793     posix_threads=yes
   10794     LIBS="$LIBS -lcma"
   10795 
   10796 else
   10797 
   10798     as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
   10799 
   10800 fi
   10801 
   10802 
   10803 fi
   10804 
   10805 fi
   10806 
   10807 fi
   10808 
   10809 fi
   10810 
   10811 fi
   10812 rm -f core conftest.err conftest.$ac_objext \
   10813     conftest$ac_exeext conftest.$ac_ext
   10814 
   10815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
   10816 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
   10817 if ${ac_cv_lib_mpc_usconfig+:} false; then :
   10818   $as_echo_n "(cached) " >&6
   10819 else
   10820   ac_check_lib_save_LIBS=$LIBS
   10821 LIBS="-lmpc  $LIBS"
   10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10823 /* end confdefs.h.  */
   10824 
   10825 /* Override any GCC internal prototype to avoid an error.
   10826    Use char because int might match the return type of a GCC
   10827    builtin and then its argument prototype would still apply.  */
   10828 #ifdef __cplusplus
   10829 extern "C"
   10830 #endif
   10831 char usconfig ();
   10832 int
   10833 main ()
   10834 {
   10835 return usconfig ();
   10836   ;
   10837   return 0;
   10838 }
   10839 _ACEOF
   10840 if ac_fn_c_try_link "$LINENO"; then :
   10841   ac_cv_lib_mpc_usconfig=yes
   10842 else
   10843   ac_cv_lib_mpc_usconfig=no
   10844 fi
   10845 rm -f core conftest.err conftest.$ac_objext \
   10846     conftest$ac_exeext conftest.$ac_ext
   10847 LIBS=$ac_check_lib_save_LIBS
   10848 fi
   10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
   10850 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
   10851 if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
   10852 
   10853     LIBS="$LIBS -lmpc"
   10854 
   10855 fi
   10856 
   10857 
   10858 fi
   10859 
   10860 if test "$posix_threads" = "yes"; then
   10861       if test "$unistd_defines_pthreads" = "no"; then
   10862 
   10863 $as_echo "#define _POSIX_THREADS 1" >>confdefs.h
   10864 
   10865       fi
   10866 
   10867       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
   10868       case  $ac_sys_system/$ac_sys_release in
   10869       SunOS/5.6)
   10870 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
   10871 
   10872 		       ;;
   10873       SunOS/5.8)
   10874 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
   10875 
   10876 		       ;;
   10877       AIX/*)
   10878 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
   10879 
   10880 		       ;;
   10881       esac
   10882 
   10883       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
   10884 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
   10885       if ${ac_cv_pthread_system_supported+:} false; then :
   10886   $as_echo_n "(cached) " >&6
   10887 else
   10888   if test "$cross_compiling" = yes; then :
   10889   ac_cv_pthread_system_supported=no
   10890 else
   10891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10892 /* end confdefs.h.  */
   10893 
   10894       #include <stdio.h>
   10895       #include <pthread.h>
   10896       void *foo(void *parm) {
   10897         return NULL;
   10898       }
   10899       main() {
   10900         pthread_attr_t attr;
   10901         pthread_t id;
   10902         if (pthread_attr_init(&attr)) exit(-1);
   10903         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
   10904         if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
   10905         exit(0);
   10906       }
   10907 _ACEOF
   10908 if ac_fn_c_try_run "$LINENO"; then :
   10909   ac_cv_pthread_system_supported=yes
   10910 else
   10911   ac_cv_pthread_system_supported=no
   10912 fi
   10913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10914   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10915 fi
   10916 
   10917 
   10918 fi
   10919 
   10920       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
   10921 $as_echo "$ac_cv_pthread_system_supported" >&6; }
   10922       if test "$ac_cv_pthread_system_supported" = "yes"; then
   10923 
   10924 $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
   10925 
   10926       fi
   10927       for ac_func in pthread_sigmask
   10928 do :
   10929   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
   10930 if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
   10931   cat >>confdefs.h <<_ACEOF
   10932 #define HAVE_PTHREAD_SIGMASK 1
   10933 _ACEOF
   10934  case $ac_sys_system in
   10935         CYGWIN*)
   10936 
   10937 $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
   10938 
   10939             ;;
   10940         esac
   10941 fi
   10942 done
   10943 
   10944       for ac_func in pthread_getcpuclockid
   10945 do :
   10946   ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
   10947 if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then :
   10948   cat >>confdefs.h <<_ACEOF
   10949 #define HAVE_PTHREAD_GETCPUCLOCKID 1
   10950 _ACEOF
   10951 
   10952 fi
   10953 done
   10954 
   10955 fi
   10956 
   10957 
   10958 # Check for enable-ipv6
   10959 
   10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
   10961 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
   10962 # Check whether --enable-ipv6 was given.
   10963 if test "${enable_ipv6+set}" = set; then :
   10964   enableval=$enable_ipv6;  case "$enableval" in
   10965   no)
   10966        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10967 $as_echo "no" >&6; }
   10968        ipv6=no
   10969        ;;
   10970   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10971 $as_echo "yes" >&6; }
   10972        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
   10973 
   10974        ipv6=yes
   10975        ;;
   10976   esac
   10977 else
   10978 
   10979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10980 /* end confdefs.h.  */
   10981  /* AF_INET6 available check */
   10982 #include <sys/types.h>
   10983 #include <sys/socket.h>
   10984 int
   10985 main ()
   10986 {
   10987 int domain = AF_INET6;
   10988   ;
   10989   return 0;
   10990 }
   10991 _ACEOF
   10992 if ac_fn_c_try_compile "$LINENO"; then :
   10993 
   10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10995 $as_echo "yes" >&6; }
   10996   ipv6=yes
   10997 
   10998 else
   10999 
   11000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11001 $as_echo "no" >&6; }
   11002   ipv6=no
   11003 
   11004 fi
   11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11006 
   11007 if test "$ipv6" = "yes"; then
   11008 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
   11009 $as_echo_n "checking if RFC2553 API is available... " >&6; }
   11010 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11011 /* end confdefs.h.  */
   11012 
   11013 	  #include <sys/types.h>
   11014 #include <netinet/in.h>
   11015 int
   11016 main ()
   11017 {
   11018 struct sockaddr_in6 x;
   11019 			    x.sin6_scope_id;
   11020   ;
   11021   return 0;
   11022 }
   11023 
   11024 _ACEOF
   11025 if ac_fn_c_try_compile "$LINENO"; then :
   11026 
   11027 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11028 $as_echo "yes" >&6; }
   11029 	  ipv6=yes
   11030 
   11031 else
   11032 
   11033 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11034 $as_echo "no" >&6; }
   11035 	  ipv6=no
   11036 
   11037 fi
   11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11039 fi
   11040 
   11041 if test "$ipv6" = "yes"; then
   11042 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
   11043 
   11044 fi
   11045 
   11046 fi
   11047 
   11048 
   11049 ipv6type=unknown
   11050 ipv6lib=none
   11051 ipv6trylibc=no
   11052 
   11053 if test "$ipv6" = "yes"; then
   11054 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
   11055 $as_echo_n "checking ipv6 stack type... " >&6; }
   11056 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
   11057 	do
   11058 		case $i in
   11059 		inria)
   11060 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11061 /* end confdefs.h.  */
   11062 
   11063 #include <netinet/in.h>
   11064 #ifdef IPV6_INRIA_VERSION
   11065 yes
   11066 #endif
   11067 _ACEOF
   11068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11069   $EGREP "yes" >/dev/null 2>&1; then :
   11070   ipv6type=$i
   11071 fi
   11072 rm -f conftest*
   11073 
   11074 			;;
   11075 		kame)
   11076 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11077 /* end confdefs.h.  */
   11078 
   11079 #include <netinet/in.h>
   11080 #ifdef __KAME__
   11081 yes
   11082 #endif
   11083 _ACEOF
   11084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11085   $EGREP "yes" >/dev/null 2>&1; then :
   11086   ipv6type=$i;
   11087 				ipv6lib=inet6
   11088 				ipv6libdir=/usr/local/v6/lib
   11089 				ipv6trylibc=yes
   11090 fi
   11091 rm -f conftest*
   11092 
   11093 			;;
   11094 		linux-glibc)
   11095 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11096 /* end confdefs.h.  */
   11097 
   11098 #include <features.h>
   11099 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
   11100 yes
   11101 #endif
   11102 _ACEOF
   11103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11104   $EGREP "yes" >/dev/null 2>&1; then :
   11105   ipv6type=$i;
   11106 				ipv6trylibc=yes
   11107 fi
   11108 rm -f conftest*
   11109 
   11110 			;;
   11111 		linux-inet6)
   11112 						if test -d /usr/inet6; then
   11113 				ipv6type=$i
   11114 				ipv6lib=inet6
   11115 				ipv6libdir=/usr/inet6/lib
   11116 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
   11117 			fi
   11118 			;;
   11119 		solaris)
   11120 			if test -f /etc/netconfig; then
   11121                           if $GREP -q tcp6 /etc/netconfig; then
   11122 				ipv6type=$i
   11123 				ipv6trylibc=yes
   11124                           fi
   11125                         fi
   11126 			;;
   11127 		toshiba)
   11128 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11129 /* end confdefs.h.  */
   11130 
   11131 #include <sys/param.h>
   11132 #ifdef _TOSHIBA_INET6
   11133 yes
   11134 #endif
   11135 _ACEOF
   11136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11137   $EGREP "yes" >/dev/null 2>&1; then :
   11138   ipv6type=$i;
   11139 				ipv6lib=inet6;
   11140 				ipv6libdir=/usr/local/v6/lib
   11141 fi
   11142 rm -f conftest*
   11143 
   11144 			;;
   11145 		v6d)
   11146 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11147 /* end confdefs.h.  */
   11148 
   11149 #include </usr/local/v6/include/sys/v6config.h>
   11150 #ifdef __V6D__
   11151 yes
   11152 #endif
   11153 _ACEOF
   11154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11155   $EGREP "yes" >/dev/null 2>&1; then :
   11156   ipv6type=$i;
   11157 				ipv6lib=v6;
   11158 				ipv6libdir=/usr/local/v6/lib;
   11159 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
   11160 fi
   11161 rm -f conftest*
   11162 
   11163 			;;
   11164 		zeta)
   11165 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11166 /* end confdefs.h.  */
   11167 
   11168 #include <sys/param.h>
   11169 #ifdef _ZETA_MINAMI_INET6
   11170 yes
   11171 #endif
   11172 _ACEOF
   11173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11174   $EGREP "yes" >/dev/null 2>&1; then :
   11175   ipv6type=$i;
   11176 				ipv6lib=inet6;
   11177 				ipv6libdir=/usr/local/v6/lib
   11178 fi
   11179 rm -f conftest*
   11180 
   11181 			;;
   11182 		esac
   11183 		if test "$ipv6type" != "unknown"; then
   11184 			break
   11185 		fi
   11186 	done
   11187 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
   11188 $as_echo "$ipv6type" >&6; }
   11189 fi
   11190 
   11191 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
   11192 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
   11193 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
   11194 		echo "using lib$ipv6lib"
   11195 	else
   11196 		if test $ipv6trylibc = "yes"; then
   11197 			echo "using libc"
   11198 		else
   11199 			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
   11200 			echo "You need to fetch lib$ipv6lib.a from appropriate"
   11201 			echo 'ipv6 kit and compile beforehand.'
   11202 			exit 1
   11203 		fi
   11204 	fi
   11205 fi
   11206 
   11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5
   11208 $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; }
   11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11210 /* end confdefs.h.  */
   11211  /* CAN_RAW_FD_FRAMES available check */
   11212 #include <linux/can/raw.h>
   11213 int
   11214 main ()
   11215 {
   11216 int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
   11217   ;
   11218   return 0;
   11219 }
   11220 _ACEOF
   11221 if ac_fn_c_try_compile "$LINENO"; then :
   11222 
   11223 
   11224 $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
   11225 
   11226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11227 $as_echo "yes" >&6; }
   11228 
   11229 else
   11230 
   11231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11232 $as_echo "no" >&6; }
   11233 
   11234 fi
   11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11236 
   11237 # Check for --with-doc-strings
   11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
   11239 $as_echo_n "checking for --with-doc-strings... " >&6; }
   11240 
   11241 # Check whether --with-doc-strings was given.
   11242 if test "${with_doc_strings+set}" = set; then :
   11243   withval=$with_doc_strings;
   11244 fi
   11245 
   11246 
   11247 if test -z "$with_doc_strings"
   11248 then with_doc_strings="yes"
   11249 fi
   11250 if test "$with_doc_strings" != "no"
   11251 then
   11252 
   11253 $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
   11254 
   11255 fi
   11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
   11257 $as_echo "$with_doc_strings" >&6; }
   11258 
   11259 # Check for Python-specific malloc support
   11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
   11261 $as_echo_n "checking for --with-pymalloc... " >&6; }
   11262 
   11263 # Check whether --with-pymalloc was given.
   11264 if test "${with_pymalloc+set}" = set; then :
   11265   withval=$with_pymalloc;
   11266 fi
   11267 
   11268 
   11269 if test -z "$with_pymalloc"
   11270 then
   11271     with_pymalloc="yes"
   11272 fi
   11273 if test "$with_pymalloc" != "no"
   11274 then
   11275 
   11276 $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
   11277 
   11278     ABIFLAGS="${ABIFLAGS}m"
   11279 fi
   11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
   11281 $as_echo "$with_pymalloc" >&6; }
   11282 
   11283 # Check for --with-c-locale-coercion
   11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
   11285 $as_echo_n "checking for --with-c-locale-coercion... " >&6; }
   11286 
   11287 # Check whether --with-c-locale-coercion was given.
   11288 if test "${with_c_locale_coercion+set}" = set; then :
   11289   withval=$with_c_locale_coercion;
   11290 fi
   11291 
   11292 
   11293 if test -z "$with_c_locale_coercion"
   11294 then
   11295     with_c_locale_coercion="yes"
   11296 fi
   11297 if test "$with_c_locale_coercion" != "no"
   11298 then
   11299 
   11300 $as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
   11301 
   11302 fi
   11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
   11304 $as_echo "$with_c_locale_coercion" >&6; }
   11305 
   11306 # Check for Valgrind support
   11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
   11308 $as_echo_n "checking for --with-valgrind... " >&6; }
   11309 
   11310 # Check whether --with-valgrind was given.
   11311 if test "${with_valgrind+set}" = set; then :
   11312   withval=$with_valgrind;
   11313 else
   11314   with_valgrind=no
   11315 fi
   11316 
   11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
   11318 $as_echo "$with_valgrind" >&6; }
   11319 if test "$with_valgrind" != no; then
   11320     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
   11321 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
   11322 
   11323 $as_echo "#define WITH_VALGRIND 1" >>confdefs.h
   11324 
   11325 else
   11326   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
   11327 
   11328 fi
   11329 
   11330 
   11331     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
   11332 fi
   11333 
   11334 # Check for DTrace support
   11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
   11336 $as_echo_n "checking for --with-dtrace... " >&6; }
   11337 
   11338 # Check whether --with-dtrace was given.
   11339 if test "${with_dtrace+set}" = set; then :
   11340   withval=$with_dtrace;
   11341 else
   11342   with_dtrace=no
   11343 fi
   11344 
   11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
   11346 $as_echo "$with_dtrace" >&6; }
   11347 
   11348 
   11349 
   11350 
   11351 
   11352 DTRACE=
   11353 DFLAGS=
   11354 DTRACE_HEADERS=
   11355 DTRACE_OBJS=
   11356 
   11357 if test "$with_dtrace" = "yes"
   11358 then
   11359     # Extract the first word of "dtrace", so it can be a program name with args.
   11360 set dummy dtrace; ac_word=$2
   11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11362 $as_echo_n "checking for $ac_word... " >&6; }
   11363 if ${ac_cv_path_DTRACE+:} false; then :
   11364   $as_echo_n "(cached) " >&6
   11365 else
   11366   case $DTRACE in
   11367   [\\/]* | ?:[\\/]*)
   11368   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
   11369   ;;
   11370   *)
   11371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11372 for as_dir in $PATH
   11373 do
   11374   IFS=$as_save_IFS
   11375   test -z "$as_dir" && as_dir=.
   11376     for ac_exec_ext in '' $ac_executable_extensions; do
   11377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11378     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
   11379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11380     break 2
   11381   fi
   11382 done
   11383   done
   11384 IFS=$as_save_IFS
   11385 
   11386   test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
   11387   ;;
   11388 esac
   11389 fi
   11390 DTRACE=$ac_cv_path_DTRACE
   11391 if test -n "$DTRACE"; then
   11392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
   11393 $as_echo "$DTRACE" >&6; }
   11394 else
   11395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11396 $as_echo "no" >&6; }
   11397 fi
   11398 
   11399 
   11400     if test "$DTRACE" = "not found"; then
   11401         as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
   11402     fi
   11403 
   11404 $as_echo "#define WITH_DTRACE 1" >>confdefs.h
   11405 
   11406     DTRACE_HEADERS="Include/pydtrace_probes.h"
   11407 
   11408     # On OS X, DTrace providers do not need to be explicitly compiled and
   11409     # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
   11410     # generation flag '-G'. We check for presence of this flag, rather than
   11411     # hardcoding support by OS, in the interest of robustness.
   11412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
   11413 $as_echo_n "checking whether DTrace probes require linking... " >&6; }
   11414 if ${ac_cv_dtrace_link+:} false; then :
   11415   $as_echo_n "(cached) " >&6
   11416 else
   11417               ac_cv_dtrace_link=no
   11418             echo 'BEGIN' > conftest.d
   11419             "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
   11420                 ac_cv_dtrace_link=yes
   11421 
   11422 fi
   11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
   11424 $as_echo "$ac_cv_dtrace_link" >&6; }
   11425     if test "$ac_cv_dtrace_link" = "yes"; then
   11426         DTRACE_OBJS="Python/pydtrace.o"
   11427     fi
   11428 fi
   11429 
   11430 # -I${DLINCLDIR} is added to the compile rule for importdl.o
   11431 
   11432 DLINCLDIR=.
   11433 
   11434 # the dlopen() function means we might want to use dynload_shlib.o. some
   11435 # platforms, such as AIX, have dlopen(), but don't want to use it.
   11436 for ac_func in dlopen
   11437 do :
   11438   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11439 if test "x$ac_cv_func_dlopen" = xyes; then :
   11440   cat >>confdefs.h <<_ACEOF
   11441 #define HAVE_DLOPEN 1
   11442 _ACEOF
   11443 
   11444 fi
   11445 done
   11446 
   11447 
   11448 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
   11449 # loading of modules.
   11450 
   11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
   11452 $as_echo_n "checking DYNLOADFILE... " >&6; }
   11453 if test -z "$DYNLOADFILE"
   11454 then
   11455 	case $ac_sys_system/$ac_sys_release in
   11456 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
   11457 	if test "$ac_cv_func_dlopen" = yes
   11458 	then DYNLOADFILE="dynload_shlib.o"
   11459 	else DYNLOADFILE="dynload_aix.o"
   11460 	fi
   11461 	;;
   11462 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
   11463 	*)
   11464 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub
   11465 	# out any dynamic loading
   11466 	if test "$ac_cv_func_dlopen" = yes
   11467 	then DYNLOADFILE="dynload_shlib.o"
   11468 	else DYNLOADFILE="dynload_stub.o"
   11469 	fi
   11470 	;;
   11471 	esac
   11472 fi
   11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
   11474 $as_echo "$DYNLOADFILE" >&6; }
   11475 if test "$DYNLOADFILE" != "dynload_stub.o"
   11476 then
   11477 
   11478 $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
   11479 
   11480 fi
   11481 
   11482 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
   11483 
   11484 
   11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
   11486 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
   11487 if test -z "$MACHDEP_OBJS"
   11488 then
   11489 	MACHDEP_OBJS=$extra_machdep_objs
   11490 else
   11491 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
   11492 fi
   11493 if test -z "$MACHDEP_OBJS"; then
   11494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   11495 $as_echo "none" >&6; }
   11496 else
   11497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
   11498 $as_echo "$MACHDEP_OBJS" >&6; }
   11499 fi
   11500 
   11501 # checks for library functions
   11502 for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
   11503  clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \
   11504  fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
   11505  futimens futimes gai_strerror getentropy \
   11506  getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
   11507  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
   11508  if_nameindex \
   11509  initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
   11510  memrchr mbrtowc mkdirat mkfifo \
   11511  mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
   11512  posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \
   11513  pthread_init pthread_kill putenv pwrite pwritev pwritev2 readlink readlinkat readv realpath renameat \
   11514  sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \
   11515  setgid sethostname \
   11516  setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \
   11517  sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \
   11518  sched_rr_get_interval \
   11519  sigaction sigaltstack siginterrupt sigpending sigrelse \
   11520  sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \
   11521  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
   11522  truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \
   11523  wcscoll wcsftime wcsxfrm wmemcmp writev _getpty
   11524 do :
   11525   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   11528   cat >>confdefs.h <<_ACEOF
   11529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11530 _ACEOF
   11531 
   11532 fi
   11533 done
   11534 
   11535 
   11536 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
   11537 # links. Some libc implementations have a stub lchmod implementation that always
   11538 # returns an error.
   11539 if test "$MACHDEP" != linux; then
   11540   for ac_func in lchmod
   11541 do :
   11542   ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
   11543 if test "x$ac_cv_func_lchmod" = xyes; then :
   11544   cat >>confdefs.h <<_ACEOF
   11545 #define HAVE_LCHMOD 1
   11546 _ACEOF
   11547 
   11548 fi
   11549 done
   11550 
   11551 fi
   11552 
   11553 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
   11554        #include <dirent.h>
   11555 "
   11556 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
   11557 
   11558 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
   11559 
   11560 fi
   11561 
   11562 
   11563 # For some functions, having a definition is not sufficient, since
   11564 # we want to take their address.
   11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
   11566 $as_echo_n "checking for chroot... " >&6; }
   11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11568 /* end confdefs.h.  */
   11569 #include <unistd.h>
   11570 int
   11571 main ()
   11572 {
   11573 void *x=chroot
   11574   ;
   11575   return 0;
   11576 }
   11577 _ACEOF
   11578 if ac_fn_c_try_compile "$LINENO"; then :
   11579 
   11580 $as_echo "#define HAVE_CHROOT 1" >>confdefs.h
   11581 
   11582    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11583 $as_echo "yes" >&6; }
   11584 else
   11585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11586 $as_echo "no" >&6; }
   11587 
   11588 fi
   11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
   11591 $as_echo_n "checking for link... " >&6; }
   11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11593 /* end confdefs.h.  */
   11594 #include <unistd.h>
   11595 int
   11596 main ()
   11597 {
   11598 void *x=link
   11599   ;
   11600   return 0;
   11601 }
   11602 _ACEOF
   11603 if ac_fn_c_try_compile "$LINENO"; then :
   11604 
   11605 $as_echo "#define HAVE_LINK 1" >>confdefs.h
   11606 
   11607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11608 $as_echo "yes" >&6; }
   11609 else
   11610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11611 $as_echo "no" >&6; }
   11612 
   11613 fi
   11614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
   11616 $as_echo_n "checking for symlink... " >&6; }
   11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11618 /* end confdefs.h.  */
   11619 #include <unistd.h>
   11620 int
   11621 main ()
   11622 {
   11623 void *x=symlink
   11624   ;
   11625   return 0;
   11626 }
   11627 _ACEOF
   11628 if ac_fn_c_try_compile "$LINENO"; then :
   11629 
   11630 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
   11631 
   11632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11633 $as_echo "yes" >&6; }
   11634 else
   11635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11636 $as_echo "no" >&6; }
   11637 
   11638 fi
   11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
   11641 $as_echo_n "checking for fchdir... " >&6; }
   11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11643 /* end confdefs.h.  */
   11644 #include <unistd.h>
   11645 int
   11646 main ()
   11647 {
   11648 void *x=fchdir
   11649   ;
   11650   return 0;
   11651 }
   11652 _ACEOF
   11653 if ac_fn_c_try_compile "$LINENO"; then :
   11654 
   11655 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
   11656 
   11657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11658 $as_echo "yes" >&6; }
   11659 else
   11660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11661 $as_echo "no" >&6; }
   11662 
   11663 fi
   11664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
   11666 $as_echo_n "checking for fsync... " >&6; }
   11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11668 /* end confdefs.h.  */
   11669 #include <unistd.h>
   11670 int
   11671 main ()
   11672 {
   11673 void *x=fsync
   11674   ;
   11675   return 0;
   11676 }
   11677 _ACEOF
   11678 if ac_fn_c_try_compile "$LINENO"; then :
   11679 
   11680 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h
   11681 
   11682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11683 $as_echo "yes" >&6; }
   11684 else
   11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11686 $as_echo "no" >&6; }
   11687 
   11688 fi
   11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
   11691 $as_echo_n "checking for fdatasync... " >&6; }
   11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11693 /* end confdefs.h.  */
   11694 #include <unistd.h>
   11695 int
   11696 main ()
   11697 {
   11698 void *x=fdatasync
   11699   ;
   11700   return 0;
   11701 }
   11702 _ACEOF
   11703 if ac_fn_c_try_compile "$LINENO"; then :
   11704 
   11705 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
   11706 
   11707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11708 $as_echo "yes" >&6; }
   11709 else
   11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11711 $as_echo "no" >&6; }
   11712 
   11713 fi
   11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
   11716 $as_echo_n "checking for epoll... " >&6; }
   11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11718 /* end confdefs.h.  */
   11719 #include <sys/epoll.h>
   11720 int
   11721 main ()
   11722 {
   11723 void *x=epoll_create
   11724   ;
   11725   return 0;
   11726 }
   11727 _ACEOF
   11728 if ac_fn_c_try_compile "$LINENO"; then :
   11729 
   11730 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
   11731 
   11732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11733 $as_echo "yes" >&6; }
   11734 else
   11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11736 $as_echo "no" >&6; }
   11737 
   11738 fi
   11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
   11741 $as_echo_n "checking for epoll_create1... " >&6; }
   11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11743 /* end confdefs.h.  */
   11744 #include <sys/epoll.h>
   11745 int
   11746 main ()
   11747 {
   11748 void *x=epoll_create1
   11749   ;
   11750   return 0;
   11751 }
   11752 _ACEOF
   11753 if ac_fn_c_try_compile "$LINENO"; then :
   11754 
   11755 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
   11756 
   11757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11758 $as_echo "yes" >&6; }
   11759 else
   11760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11761 $as_echo "no" >&6; }
   11762 
   11763 fi
   11764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
   11766 $as_echo_n "checking for kqueue... " >&6; }
   11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11768 /* end confdefs.h.  */
   11769 
   11770 #include <sys/types.h>
   11771 #include <sys/event.h>
   11772 
   11773 int
   11774 main ()
   11775 {
   11776 int x=kqueue()
   11777   ;
   11778   return 0;
   11779 }
   11780 _ACEOF
   11781 if ac_fn_c_try_compile "$LINENO"; then :
   11782 
   11783 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
   11784 
   11785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11786 $as_echo "yes" >&6; }
   11787 else
   11788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11789 $as_echo "no" >&6; }
   11790 
   11791 fi
   11792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
   11794 $as_echo_n "checking for prlimit... " >&6; }
   11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11796 /* end confdefs.h.  */
   11797 
   11798 #include <sys/time.h>
   11799 #include <sys/resource.h>
   11800 
   11801 int
   11802 main ()
   11803 {
   11804 void *x=prlimit
   11805   ;
   11806   return 0;
   11807 }
   11808 _ACEOF
   11809 if ac_fn_c_try_compile "$LINENO"; then :
   11810 
   11811 $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h
   11812 
   11813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11814 $as_echo "yes" >&6; }
   11815 else
   11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11817 $as_echo "no" >&6; }
   11818 
   11819 fi
   11820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11821 
   11822 # On some systems (eg. FreeBSD 5), we would find a definition of the
   11823 # functions ctermid_r, setgroups in the library, but no prototype
   11824 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
   11825 # address to avoid compiler warnings and potential miscompilations
   11826 # because of the missing prototypes.
   11827 
   11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
   11829 $as_echo_n "checking for ctermid_r... " >&6; }
   11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11831 /* end confdefs.h.  */
   11832 
   11833 #include <stdio.h>
   11834 
   11835 int
   11836 main ()
   11837 {
   11838 void* p = ctermid_r
   11839   ;
   11840   return 0;
   11841 }
   11842 _ACEOF
   11843 if ac_fn_c_try_compile "$LINENO"; then :
   11844 
   11845 $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
   11846 
   11847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11848 $as_echo "yes" >&6; }
   11849 else
   11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11851 $as_echo "no" >&6; }
   11852 
   11853 fi
   11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11855 
   11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
   11857 $as_echo_n "checking for flock declaration... " >&6; }
   11858 if ${ac_cv_flock_decl+:} false; then :
   11859   $as_echo_n "(cached) " >&6
   11860 else
   11861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11862 /* end confdefs.h.  */
   11863 #include <sys/file.h>
   11864 int
   11865 main ()
   11866 {
   11867 void* p = flock
   11868 
   11869   ;
   11870   return 0;
   11871 }
   11872 _ACEOF
   11873 if ac_fn_c_try_compile "$LINENO"; then :
   11874   ac_cv_flock_decl=yes
   11875 else
   11876   ac_cv_flock_decl=no
   11877 
   11878 fi
   11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11880 
   11881 fi
   11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
   11883 $as_echo "$ac_cv_flock_decl" >&6; }
   11884 if test "x${ac_cv_flock_decl}" = xyes; then
   11885   for ac_func in flock
   11886 do :
   11887   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
   11888 if test "x$ac_cv_func_flock" = xyes; then :
   11889   cat >>confdefs.h <<_ACEOF
   11890 #define HAVE_FLOCK 1
   11891 _ACEOF
   11892 
   11893 else
   11894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
   11895 $as_echo_n "checking for flock in -lbsd... " >&6; }
   11896 if ${ac_cv_lib_bsd_flock+:} false; then :
   11897   $as_echo_n "(cached) " >&6
   11898 else
   11899   ac_check_lib_save_LIBS=$LIBS
   11900 LIBS="-lbsd  $LIBS"
   11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11902 /* end confdefs.h.  */
   11903 
   11904 /* Override any GCC internal prototype to avoid an error.
   11905    Use char because int might match the return type of a GCC
   11906    builtin and then its argument prototype would still apply.  */
   11907 #ifdef __cplusplus
   11908 extern "C"
   11909 #endif
   11910 char flock ();
   11911 int
   11912 main ()
   11913 {
   11914 return flock ();
   11915   ;
   11916   return 0;
   11917 }
   11918 _ACEOF
   11919 if ac_fn_c_try_link "$LINENO"; then :
   11920   ac_cv_lib_bsd_flock=yes
   11921 else
   11922   ac_cv_lib_bsd_flock=no
   11923 fi
   11924 rm -f core conftest.err conftest.$ac_objext \
   11925     conftest$ac_exeext conftest.$ac_ext
   11926 LIBS=$ac_check_lib_save_LIBS
   11927 fi
   11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
   11929 $as_echo "$ac_cv_lib_bsd_flock" >&6; }
   11930 if test "x$ac_cv_lib_bsd_flock" = xyes; then :
   11931   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
   11932 
   11933 
   11934 $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
   11935 
   11936 
   11937 fi
   11938 
   11939 
   11940 fi
   11941 done
   11942 
   11943 fi
   11944 
   11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
   11946 $as_echo_n "checking for getpagesize... " >&6; }
   11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11948 /* end confdefs.h.  */
   11949 
   11950 #include <unistd.h>
   11951 
   11952 int
   11953 main ()
   11954 {
   11955 void* p = getpagesize
   11956   ;
   11957   return 0;
   11958 }
   11959 _ACEOF
   11960 if ac_fn_c_try_compile "$LINENO"; then :
   11961 
   11962 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
   11963 
   11964    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11965 $as_echo "yes" >&6; }
   11966 else
   11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11968 $as_echo "no" >&6; }
   11969 
   11970 fi
   11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11972 
   11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
   11974 $as_echo_n "checking for broken unsetenv... " >&6; }
   11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11976 /* end confdefs.h.  */
   11977 
   11978 #include <stdlib.h>
   11979 
   11980 int
   11981 main ()
   11982 {
   11983 int res = unsetenv("DUMMY")
   11984   ;
   11985   return 0;
   11986 }
   11987 _ACEOF
   11988 if ac_fn_c_try_compile "$LINENO"; then :
   11989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11990 $as_echo "no" >&6; }
   11991 else
   11992 
   11993 $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
   11994 
   11995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11996 $as_echo "yes" >&6; }
   11997 
   11998 fi
   11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12000 
   12001 for ac_prog in true
   12002 do
   12003   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12004 set dummy $ac_prog; ac_word=$2
   12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12006 $as_echo_n "checking for $ac_word... " >&6; }
   12007 if ${ac_cv_prog_TRUE+:} false; then :
   12008   $as_echo_n "(cached) " >&6
   12009 else
   12010   if test -n "$TRUE"; then
   12011   ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
   12012 else
   12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12014 for as_dir in $PATH
   12015 do
   12016   IFS=$as_save_IFS
   12017   test -z "$as_dir" && as_dir=.
   12018     for ac_exec_ext in '' $ac_executable_extensions; do
   12019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12020     ac_cv_prog_TRUE="$ac_prog"
   12021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12022     break 2
   12023   fi
   12024 done
   12025   done
   12026 IFS=$as_save_IFS
   12027 
   12028 fi
   12029 fi
   12030 TRUE=$ac_cv_prog_TRUE
   12031 if test -n "$TRUE"; then
   12032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
   12033 $as_echo "$TRUE" >&6; }
   12034 else
   12035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12036 $as_echo "no" >&6; }
   12037 fi
   12038 
   12039 
   12040   test -n "$TRUE" && break
   12041 done
   12042 test -n "$TRUE" || TRUE="/bin/true"
   12043 
   12044 
   12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
   12046 $as_echo_n "checking for inet_aton in -lc... " >&6; }
   12047 if ${ac_cv_lib_c_inet_aton+:} false; then :
   12048   $as_echo_n "(cached) " >&6
   12049 else
   12050   ac_check_lib_save_LIBS=$LIBS
   12051 LIBS="-lc  $LIBS"
   12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12053 /* end confdefs.h.  */
   12054 
   12055 /* Override any GCC internal prototype to avoid an error.
   12056    Use char because int might match the return type of a GCC
   12057    builtin and then its argument prototype would still apply.  */
   12058 #ifdef __cplusplus
   12059 extern "C"
   12060 #endif
   12061 char inet_aton ();
   12062 int
   12063 main ()
   12064 {
   12065 return inet_aton ();
   12066   ;
   12067   return 0;
   12068 }
   12069 _ACEOF
   12070 if ac_fn_c_try_link "$LINENO"; then :
   12071   ac_cv_lib_c_inet_aton=yes
   12072 else
   12073   ac_cv_lib_c_inet_aton=no
   12074 fi
   12075 rm -f core conftest.err conftest.$ac_objext \
   12076     conftest$ac_exeext conftest.$ac_ext
   12077 LIBS=$ac_check_lib_save_LIBS
   12078 fi
   12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
   12080 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
   12081 if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
   12082   $ac_cv_prog_TRUE
   12083 else
   12084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
   12085 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
   12086 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
   12087   $as_echo_n "(cached) " >&6
   12088 else
   12089   ac_check_lib_save_LIBS=$LIBS
   12090 LIBS="-lresolv  $LIBS"
   12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12092 /* end confdefs.h.  */
   12093 
   12094 /* Override any GCC internal prototype to avoid an error.
   12095    Use char because int might match the return type of a GCC
   12096    builtin and then its argument prototype would still apply.  */
   12097 #ifdef __cplusplus
   12098 extern "C"
   12099 #endif
   12100 char inet_aton ();
   12101 int
   12102 main ()
   12103 {
   12104 return inet_aton ();
   12105   ;
   12106   return 0;
   12107 }
   12108 _ACEOF
   12109 if ac_fn_c_try_link "$LINENO"; then :
   12110   ac_cv_lib_resolv_inet_aton=yes
   12111 else
   12112   ac_cv_lib_resolv_inet_aton=no
   12113 fi
   12114 rm -f core conftest.err conftest.$ac_objext \
   12115     conftest$ac_exeext conftest.$ac_ext
   12116 LIBS=$ac_check_lib_save_LIBS
   12117 fi
   12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
   12119 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
   12120 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
   12121   cat >>confdefs.h <<_ACEOF
   12122 #define HAVE_LIBRESOLV 1
   12123 _ACEOF
   12124 
   12125   LIBS="-lresolv $LIBS"
   12126 
   12127 fi
   12128 
   12129 
   12130 fi
   12131 
   12132 
   12133 # On Tru64, chflags seems to be present, but calling it will
   12134 # exit Python
   12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
   12136 $as_echo_n "checking for chflags... " >&6; }
   12137 if ${ac_cv_have_chflags+:} false; then :
   12138   $as_echo_n "(cached) " >&6
   12139 else
   12140   if test "$cross_compiling" = yes; then :
   12141   ac_cv_have_chflags=cross
   12142 else
   12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12144 /* end confdefs.h.  */
   12145 
   12146 #include <sys/stat.h>
   12147 #include <unistd.h>
   12148 int main(int argc, char*argv[])
   12149 {
   12150   if(chflags(argv[0], 0) != 0)
   12151     return 1;
   12152   return 0;
   12153 }
   12154 
   12155 _ACEOF
   12156 if ac_fn_c_try_run "$LINENO"; then :
   12157   ac_cv_have_chflags=yes
   12158 else
   12159   ac_cv_have_chflags=no
   12160 fi
   12161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12162   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12163 fi
   12164 
   12165 
   12166 fi
   12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
   12168 $as_echo "$ac_cv_have_chflags" >&6; }
   12169 if test "$ac_cv_have_chflags" = cross ; then
   12170   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
   12171 if test "x$ac_cv_func_chflags" = xyes; then :
   12172   ac_cv_have_chflags="yes"
   12173 else
   12174   ac_cv_have_chflags="no"
   12175 fi
   12176 
   12177 fi
   12178 if test "$ac_cv_have_chflags" = yes ; then
   12179 
   12180 $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
   12181 
   12182 fi
   12183 
   12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
   12185 $as_echo_n "checking for lchflags... " >&6; }
   12186 if ${ac_cv_have_lchflags+:} false; then :
   12187   $as_echo_n "(cached) " >&6
   12188 else
   12189   if test "$cross_compiling" = yes; then :
   12190   ac_cv_have_lchflags=cross
   12191 else
   12192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12193 /* end confdefs.h.  */
   12194 
   12195 #include <sys/stat.h>
   12196 #include <unistd.h>
   12197 int main(int argc, char*argv[])
   12198 {
   12199   if(lchflags(argv[0], 0) != 0)
   12200     return 1;
   12201   return 0;
   12202 }
   12203 
   12204 _ACEOF
   12205 if ac_fn_c_try_run "$LINENO"; then :
   12206   ac_cv_have_lchflags=yes
   12207 else
   12208   ac_cv_have_lchflags=no
   12209 fi
   12210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12211   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12212 fi
   12213 
   12214 
   12215 fi
   12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
   12217 $as_echo "$ac_cv_have_lchflags" >&6; }
   12218 if test "$ac_cv_have_lchflags" = cross ; then
   12219   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
   12220 if test "x$ac_cv_func_lchflags" = xyes; then :
   12221   ac_cv_have_lchflags="yes"
   12222 else
   12223   ac_cv_have_lchflags="no"
   12224 fi
   12225 
   12226 fi
   12227 if test "$ac_cv_have_lchflags" = yes ; then
   12228 
   12229 $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
   12230 
   12231 fi
   12232 
   12233 case $ac_sys_system/$ac_sys_release in
   12234 Darwin/*)
   12235 	_CUR_CFLAGS="${CFLAGS}"
   12236 	_CUR_LDFLAGS="${LDFLAGS}"
   12237 	CFLAGS="${CFLAGS} -Wl,-search_paths_first"
   12238 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
   12239 	;;
   12240 esac
   12241 
   12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
   12243 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
   12244 if ${ac_cv_lib_z_inflateCopy+:} false; then :
   12245   $as_echo_n "(cached) " >&6
   12246 else
   12247   ac_check_lib_save_LIBS=$LIBS
   12248 LIBS="-lz  $LIBS"
   12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12250 /* end confdefs.h.  */
   12251 
   12252 /* Override any GCC internal prototype to avoid an error.
   12253    Use char because int might match the return type of a GCC
   12254    builtin and then its argument prototype would still apply.  */
   12255 #ifdef __cplusplus
   12256 extern "C"
   12257 #endif
   12258 char inflateCopy ();
   12259 int
   12260 main ()
   12261 {
   12262 return inflateCopy ();
   12263   ;
   12264   return 0;
   12265 }
   12266 _ACEOF
   12267 if ac_fn_c_try_link "$LINENO"; then :
   12268   ac_cv_lib_z_inflateCopy=yes
   12269 else
   12270   ac_cv_lib_z_inflateCopy=no
   12271 fi
   12272 rm -f core conftest.err conftest.$ac_objext \
   12273     conftest$ac_exeext conftest.$ac_ext
   12274 LIBS=$ac_check_lib_save_LIBS
   12275 fi
   12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
   12277 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
   12278 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
   12279 
   12280 $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
   12281 
   12282 fi
   12283 
   12284 
   12285 case $ac_sys_system/$ac_sys_release in
   12286 Darwin/*)
   12287 	CFLAGS="${_CUR_CFLAGS}"
   12288 	LDFLAGS="${_CUR_LDFLAGS}"
   12289 	;;
   12290 esac
   12291 
   12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
   12293 $as_echo_n "checking for hstrerror... " >&6; }
   12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12295 /* end confdefs.h.  */
   12296 
   12297 #include <netdb.h>
   12298 
   12299 int
   12300 main ()
   12301 {
   12302 void* p = hstrerror; hstrerror(0)
   12303   ;
   12304   return 0;
   12305 }
   12306 _ACEOF
   12307 if ac_fn_c_try_link "$LINENO"; then :
   12308 
   12309 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
   12310 
   12311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12312 $as_echo "yes" >&6; }
   12313 else
   12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12315 $as_echo "no" >&6; }
   12316 
   12317 fi
   12318 rm -f core conftest.err conftest.$ac_objext \
   12319     conftest$ac_exeext conftest.$ac_ext
   12320 
   12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
   12322 $as_echo_n "checking for inet_aton... " >&6; }
   12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12324 /* end confdefs.h.  */
   12325 
   12326 #include <sys/types.h>
   12327 #include <sys/socket.h>
   12328 #include <netinet/in.h>
   12329 #include <arpa/inet.h>
   12330 
   12331 int
   12332 main ()
   12333 {
   12334 void* p = inet_aton;inet_aton(0,0)
   12335   ;
   12336   return 0;
   12337 }
   12338 _ACEOF
   12339 if ac_fn_c_try_link "$LINENO"; then :
   12340 
   12341 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
   12342 
   12343    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12344 $as_echo "yes" >&6; }
   12345 else
   12346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12347 $as_echo "no" >&6; }
   12348 
   12349 fi
   12350 rm -f core conftest.err conftest.$ac_objext \
   12351     conftest$ac_exeext conftest.$ac_ext
   12352 
   12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
   12354 $as_echo_n "checking for inet_pton... " >&6; }
   12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12356 /* end confdefs.h.  */
   12357 
   12358 #include <sys/types.h>
   12359 #include <sys/socket.h>
   12360 #include <netinet/in.h>
   12361 #include <arpa/inet.h>
   12362 
   12363 int
   12364 main ()
   12365 {
   12366 void* p = inet_pton
   12367   ;
   12368   return 0;
   12369 }
   12370 _ACEOF
   12371 if ac_fn_c_try_compile "$LINENO"; then :
   12372 
   12373 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
   12374 
   12375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12376 $as_echo "yes" >&6; }
   12377 else
   12378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12379 $as_echo "no" >&6; }
   12380 
   12381 fi
   12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12383 
   12384 # On some systems, setgroups is in unistd.h, on others, in grp.h
   12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
   12386 $as_echo_n "checking for setgroups... " >&6; }
   12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12388 /* end confdefs.h.  */
   12389 
   12390 #include <unistd.h>
   12391 #ifdef HAVE_GRP_H
   12392 #include <grp.h>
   12393 #endif
   12394 
   12395 int
   12396 main ()
   12397 {
   12398 void* p = setgroups
   12399   ;
   12400   return 0;
   12401 }
   12402 _ACEOF
   12403 if ac_fn_c_try_compile "$LINENO"; then :
   12404 
   12405 $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
   12406 
   12407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12408 $as_echo "yes" >&6; }
   12409 else
   12410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12411 $as_echo "no" >&6; }
   12412 
   12413 fi
   12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12415 
   12416 # check for openpty and forkpty
   12417 
   12418 for ac_func in openpty
   12419 do :
   12420   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
   12421 if test "x$ac_cv_func_openpty" = xyes; then :
   12422   cat >>confdefs.h <<_ACEOF
   12423 #define HAVE_OPENPTY 1
   12424 _ACEOF
   12425 
   12426 else
   12427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
   12428 $as_echo_n "checking for openpty in -lutil... " >&6; }
   12429 if ${ac_cv_lib_util_openpty+:} false; then :
   12430   $as_echo_n "(cached) " >&6
   12431 else
   12432   ac_check_lib_save_LIBS=$LIBS
   12433 LIBS="-lutil  $LIBS"
   12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12435 /* end confdefs.h.  */
   12436 
   12437 /* Override any GCC internal prototype to avoid an error.
   12438    Use char because int might match the return type of a GCC
   12439    builtin and then its argument prototype would still apply.  */
   12440 #ifdef __cplusplus
   12441 extern "C"
   12442 #endif
   12443 char openpty ();
   12444 int
   12445 main ()
   12446 {
   12447 return openpty ();
   12448   ;
   12449   return 0;
   12450 }
   12451 _ACEOF
   12452 if ac_fn_c_try_link "$LINENO"; then :
   12453   ac_cv_lib_util_openpty=yes
   12454 else
   12455   ac_cv_lib_util_openpty=no
   12456 fi
   12457 rm -f core conftest.err conftest.$ac_objext \
   12458     conftest$ac_exeext conftest.$ac_ext
   12459 LIBS=$ac_check_lib_save_LIBS
   12460 fi
   12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
   12462 $as_echo "$ac_cv_lib_util_openpty" >&6; }
   12463 if test "x$ac_cv_lib_util_openpty" = xyes; then :
   12464   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
   12465  LIBS="$LIBS -lutil"
   12466 else
   12467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
   12468 $as_echo_n "checking for openpty in -lbsd... " >&6; }
   12469 if ${ac_cv_lib_bsd_openpty+:} false; then :
   12470   $as_echo_n "(cached) " >&6
   12471 else
   12472   ac_check_lib_save_LIBS=$LIBS
   12473 LIBS="-lbsd  $LIBS"
   12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12475 /* end confdefs.h.  */
   12476 
   12477 /* Override any GCC internal prototype to avoid an error.
   12478    Use char because int might match the return type of a GCC
   12479    builtin and then its argument prototype would still apply.  */
   12480 #ifdef __cplusplus
   12481 extern "C"
   12482 #endif
   12483 char openpty ();
   12484 int
   12485 main ()
   12486 {
   12487 return openpty ();
   12488   ;
   12489   return 0;
   12490 }
   12491 _ACEOF
   12492 if ac_fn_c_try_link "$LINENO"; then :
   12493   ac_cv_lib_bsd_openpty=yes
   12494 else
   12495   ac_cv_lib_bsd_openpty=no
   12496 fi
   12497 rm -f core conftest.err conftest.$ac_objext \
   12498     conftest$ac_exeext conftest.$ac_ext
   12499 LIBS=$ac_check_lib_save_LIBS
   12500 fi
   12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
   12502 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
   12503 if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
   12504   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
   12505  LIBS="$LIBS -lbsd"
   12506 fi
   12507 
   12508 
   12509 fi
   12510 
   12511 
   12512 fi
   12513 done
   12514 
   12515 for ac_func in forkpty
   12516 do :
   12517   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
   12518 if test "x$ac_cv_func_forkpty" = xyes; then :
   12519   cat >>confdefs.h <<_ACEOF
   12520 #define HAVE_FORKPTY 1
   12521 _ACEOF
   12522 
   12523 else
   12524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
   12525 $as_echo_n "checking for forkpty in -lutil... " >&6; }
   12526 if ${ac_cv_lib_util_forkpty+:} false; then :
   12527   $as_echo_n "(cached) " >&6
   12528 else
   12529   ac_check_lib_save_LIBS=$LIBS
   12530 LIBS="-lutil  $LIBS"
   12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12532 /* end confdefs.h.  */
   12533 
   12534 /* Override any GCC internal prototype to avoid an error.
   12535    Use char because int might match the return type of a GCC
   12536    builtin and then its argument prototype would still apply.  */
   12537 #ifdef __cplusplus
   12538 extern "C"
   12539 #endif
   12540 char forkpty ();
   12541 int
   12542 main ()
   12543 {
   12544 return forkpty ();
   12545   ;
   12546   return 0;
   12547 }
   12548 _ACEOF
   12549 if ac_fn_c_try_link "$LINENO"; then :
   12550   ac_cv_lib_util_forkpty=yes
   12551 else
   12552   ac_cv_lib_util_forkpty=no
   12553 fi
   12554 rm -f core conftest.err conftest.$ac_objext \
   12555     conftest$ac_exeext conftest.$ac_ext
   12556 LIBS=$ac_check_lib_save_LIBS
   12557 fi
   12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
   12559 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
   12560 if test "x$ac_cv_lib_util_forkpty" = xyes; then :
   12561   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
   12562  LIBS="$LIBS -lutil"
   12563 else
   12564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
   12565 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
   12566 if ${ac_cv_lib_bsd_forkpty+:} false; then :
   12567   $as_echo_n "(cached) " >&6
   12568 else
   12569   ac_check_lib_save_LIBS=$LIBS
   12570 LIBS="-lbsd  $LIBS"
   12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12572 /* end confdefs.h.  */
   12573 
   12574 /* Override any GCC internal prototype to avoid an error.
   12575    Use char because int might match the return type of a GCC
   12576    builtin and then its argument prototype would still apply.  */
   12577 #ifdef __cplusplus
   12578 extern "C"
   12579 #endif
   12580 char forkpty ();
   12581 int
   12582 main ()
   12583 {
   12584 return forkpty ();
   12585   ;
   12586   return 0;
   12587 }
   12588 _ACEOF
   12589 if ac_fn_c_try_link "$LINENO"; then :
   12590   ac_cv_lib_bsd_forkpty=yes
   12591 else
   12592   ac_cv_lib_bsd_forkpty=no
   12593 fi
   12594 rm -f core conftest.err conftest.$ac_objext \
   12595     conftest$ac_exeext conftest.$ac_ext
   12596 LIBS=$ac_check_lib_save_LIBS
   12597 fi
   12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
   12599 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
   12600 if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
   12601   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
   12602  LIBS="$LIBS -lbsd"
   12603 fi
   12604 
   12605 
   12606 fi
   12607 
   12608 
   12609 fi
   12610 done
   12611 
   12612 
   12613 # check for long file support functions
   12614 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
   12615 do :
   12616   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12617 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   12618 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   12619   cat >>confdefs.h <<_ACEOF
   12620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12621 _ACEOF
   12622 
   12623 fi
   12624 done
   12625 
   12626 
   12627 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
   12628 if test "x$ac_cv_func_dup2" = xyes; then :
   12629   $as_echo "#define HAVE_DUP2 1" >>confdefs.h
   12630 
   12631 else
   12632   case " $LIBOBJS " in
   12633   *" dup2.$ac_objext "* ) ;;
   12634   *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
   12635  ;;
   12636 esac
   12637 
   12638 fi
   12639 
   12640 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
   12641 if test "x$ac_cv_func_strdup" = xyes; then :
   12642   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
   12643 
   12644 else
   12645   case " $LIBOBJS " in
   12646   *" strdup.$ac_objext "* ) ;;
   12647   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
   12648  ;;
   12649 esac
   12650 
   12651 fi
   12652 
   12653 
   12654 for ac_func in getpgrp
   12655 do :
   12656   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
   12657 if test "x$ac_cv_func_getpgrp" = xyes; then :
   12658   cat >>confdefs.h <<_ACEOF
   12659 #define HAVE_GETPGRP 1
   12660 _ACEOF
   12661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12662 /* end confdefs.h.  */
   12663 #include <unistd.h>
   12664 int
   12665 main ()
   12666 {
   12667 getpgrp(0);
   12668   ;
   12669   return 0;
   12670 }
   12671 _ACEOF
   12672 if ac_fn_c_try_compile "$LINENO"; then :
   12673 
   12674 $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
   12675 
   12676 fi
   12677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12678 
   12679 fi
   12680 done
   12681 
   12682 for ac_func in setpgrp
   12683 do :
   12684   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
   12685 if test "x$ac_cv_func_setpgrp" = xyes; then :
   12686   cat >>confdefs.h <<_ACEOF
   12687 #define HAVE_SETPGRP 1
   12688 _ACEOF
   12689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12690 /* end confdefs.h.  */
   12691 #include <unistd.h>
   12692 int
   12693 main ()
   12694 {
   12695 setpgrp(0,0);
   12696   ;
   12697   return 0;
   12698 }
   12699 _ACEOF
   12700 if ac_fn_c_try_compile "$LINENO"; then :
   12701 
   12702 $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
   12703 
   12704 fi
   12705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12706 
   12707 fi
   12708 done
   12709 
   12710 for ac_func in gettimeofday
   12711 do :
   12712   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
   12713 if test "x$ac_cv_func_gettimeofday" = xyes; then :
   12714   cat >>confdefs.h <<_ACEOF
   12715 #define HAVE_GETTIMEOFDAY 1
   12716 _ACEOF
   12717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12718 /* end confdefs.h.  */
   12719 #include <sys/time.h>
   12720 int
   12721 main ()
   12722 {
   12723 gettimeofday((struct timeval*)0,(struct timezone*)0);
   12724   ;
   12725   return 0;
   12726 }
   12727 _ACEOF
   12728 if ac_fn_c_try_compile "$LINENO"; then :
   12729 
   12730 else
   12731 
   12732 $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
   12733 
   12734 
   12735 fi
   12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12737 
   12738 fi
   12739 done
   12740 
   12741 
   12742 # We search for both crypt and crypt_r as one or the other may be defined
   12743 # This gets us our -lcrypt in LIBS when required on the target platform.
   12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
   12745 $as_echo_n "checking for library containing crypt... " >&6; }
   12746 if ${ac_cv_search_crypt+:} false; then :
   12747   $as_echo_n "(cached) " >&6
   12748 else
   12749   ac_func_search_save_LIBS=$LIBS
   12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12751 /* end confdefs.h.  */
   12752 
   12753 /* Override any GCC internal prototype to avoid an error.
   12754    Use char because int might match the return type of a GCC
   12755    builtin and then its argument prototype would still apply.  */
   12756 #ifdef __cplusplus
   12757 extern "C"
   12758 #endif
   12759 char crypt ();
   12760 int
   12761 main ()
   12762 {
   12763 return crypt ();
   12764   ;
   12765   return 0;
   12766 }
   12767 _ACEOF
   12768 for ac_lib in '' crypt; do
   12769   if test -z "$ac_lib"; then
   12770     ac_res="none required"
   12771   else
   12772     ac_res=-l$ac_lib
   12773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12774   fi
   12775   if ac_fn_c_try_link "$LINENO"; then :
   12776   ac_cv_search_crypt=$ac_res
   12777 fi
   12778 rm -f core conftest.err conftest.$ac_objext \
   12779     conftest$ac_exeext
   12780   if ${ac_cv_search_crypt+:} false; then :
   12781   break
   12782 fi
   12783 done
   12784 if ${ac_cv_search_crypt+:} false; then :
   12785 
   12786 else
   12787   ac_cv_search_crypt=no
   12788 fi
   12789 rm conftest.$ac_ext
   12790 LIBS=$ac_func_search_save_LIBS
   12791 fi
   12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
   12793 $as_echo "$ac_cv_search_crypt" >&6; }
   12794 ac_res=$ac_cv_search_crypt
   12795 if test "$ac_res" != no; then :
   12796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12797 
   12798 fi
   12799 
   12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
   12801 $as_echo_n "checking for library containing crypt_r... " >&6; }
   12802 if ${ac_cv_search_crypt_r+:} false; then :
   12803   $as_echo_n "(cached) " >&6
   12804 else
   12805   ac_func_search_save_LIBS=$LIBS
   12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12807 /* end confdefs.h.  */
   12808 
   12809 /* Override any GCC internal prototype to avoid an error.
   12810    Use char because int might match the return type of a GCC
   12811    builtin and then its argument prototype would still apply.  */
   12812 #ifdef __cplusplus
   12813 extern "C"
   12814 #endif
   12815 char crypt_r ();
   12816 int
   12817 main ()
   12818 {
   12819 return crypt_r ();
   12820   ;
   12821   return 0;
   12822 }
   12823 _ACEOF
   12824 for ac_lib in '' crypt; do
   12825   if test -z "$ac_lib"; then
   12826     ac_res="none required"
   12827   else
   12828     ac_res=-l$ac_lib
   12829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12830   fi
   12831   if ac_fn_c_try_link "$LINENO"; then :
   12832   ac_cv_search_crypt_r=$ac_res
   12833 fi
   12834 rm -f core conftest.err conftest.$ac_objext \
   12835     conftest$ac_exeext
   12836   if ${ac_cv_search_crypt_r+:} false; then :
   12837   break
   12838 fi
   12839 done
   12840 if ${ac_cv_search_crypt_r+:} false; then :
   12841 
   12842 else
   12843   ac_cv_search_crypt_r=no
   12844 fi
   12845 rm conftest.$ac_ext
   12846 LIBS=$ac_func_search_save_LIBS
   12847 fi
   12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
   12849 $as_echo "$ac_cv_search_crypt_r" >&6; }
   12850 ac_res=$ac_cv_search_crypt_r
   12851 if test "$ac_res" != no; then :
   12852   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12853 
   12854 fi
   12855 
   12856 
   12857 ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
   12858 if test "x$ac_cv_func_crypt_r" = xyes; then :
   12859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12860 /* end confdefs.h.  */
   12861 
   12862 #define _GNU_SOURCE  /* Required for crypt_r()'s prototype in glibc. */
   12863 #include <crypt.h>
   12864 
   12865 int
   12866 main ()
   12867 {
   12868 
   12869 struct crypt_data d;
   12870 char *r = crypt_r("", "", &d);
   12871 
   12872   ;
   12873   return 0;
   12874 }
   12875 _ACEOF
   12876 if ac_fn_c_try_compile "$LINENO"; then :
   12877 
   12878 $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
   12879 
   12880 fi
   12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12882 
   12883 fi
   12884 
   12885 
   12886 for ac_func in clock_gettime
   12887 do :
   12888   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   12889 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   12890   cat >>confdefs.h <<_ACEOF
   12891 #define HAVE_CLOCK_GETTIME 1
   12892 _ACEOF
   12893 
   12894 else
   12895 
   12896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   12897 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   12898 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   12899   $as_echo_n "(cached) " >&6
   12900 else
   12901   ac_check_lib_save_LIBS=$LIBS
   12902 LIBS="-lrt  $LIBS"
   12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12904 /* end confdefs.h.  */
   12905 
   12906 /* Override any GCC internal prototype to avoid an error.
   12907    Use char because int might match the return type of a GCC
   12908    builtin and then its argument prototype would still apply.  */
   12909 #ifdef __cplusplus
   12910 extern "C"
   12911 #endif
   12912 char clock_gettime ();
   12913 int
   12914 main ()
   12915 {
   12916 return clock_gettime ();
   12917   ;
   12918   return 0;
   12919 }
   12920 _ACEOF
   12921 if ac_fn_c_try_link "$LINENO"; then :
   12922   ac_cv_lib_rt_clock_gettime=yes
   12923 else
   12924   ac_cv_lib_rt_clock_gettime=no
   12925 fi
   12926 rm -f core conftest.err conftest.$ac_objext \
   12927     conftest$ac_exeext conftest.$ac_ext
   12928 LIBS=$ac_check_lib_save_LIBS
   12929 fi
   12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   12931 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   12932 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   12933 
   12934         LIBS="$LIBS -lrt"
   12935         $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   12936 
   12937 
   12938 $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h
   12939 
   12940 
   12941 fi
   12942 
   12943 
   12944 fi
   12945 done
   12946 
   12947 
   12948 for ac_func in clock_getres
   12949 do :
   12950   ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
   12951 if test "x$ac_cv_func_clock_getres" = xyes; then :
   12952   cat >>confdefs.h <<_ACEOF
   12953 #define HAVE_CLOCK_GETRES 1
   12954 _ACEOF
   12955 
   12956 else
   12957 
   12958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
   12959 $as_echo_n "checking for clock_getres in -lrt... " >&6; }
   12960 if ${ac_cv_lib_rt_clock_getres+:} false; then :
   12961   $as_echo_n "(cached) " >&6
   12962 else
   12963   ac_check_lib_save_LIBS=$LIBS
   12964 LIBS="-lrt  $LIBS"
   12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12966 /* end confdefs.h.  */
   12967 
   12968 /* Override any GCC internal prototype to avoid an error.
   12969    Use char because int might match the return type of a GCC
   12970    builtin and then its argument prototype would still apply.  */
   12971 #ifdef __cplusplus
   12972 extern "C"
   12973 #endif
   12974 char clock_getres ();
   12975 int
   12976 main ()
   12977 {
   12978 return clock_getres ();
   12979   ;
   12980   return 0;
   12981 }
   12982 _ACEOF
   12983 if ac_fn_c_try_link "$LINENO"; then :
   12984   ac_cv_lib_rt_clock_getres=yes
   12985 else
   12986   ac_cv_lib_rt_clock_getres=no
   12987 fi
   12988 rm -f core conftest.err conftest.$ac_objext \
   12989     conftest$ac_exeext conftest.$ac_ext
   12990 LIBS=$ac_check_lib_save_LIBS
   12991 fi
   12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
   12993 $as_echo "$ac_cv_lib_rt_clock_getres" >&6; }
   12994 if test "x$ac_cv_lib_rt_clock_getres" = xyes; then :
   12995 
   12996         $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
   12997 
   12998 
   12999 fi
   13000 
   13001 
   13002 fi
   13003 done
   13004 
   13005 
   13006 for ac_func in clock_settime
   13007 do :
   13008   ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
   13009 if test "x$ac_cv_func_clock_settime" = xyes; then :
   13010   cat >>confdefs.h <<_ACEOF
   13011 #define HAVE_CLOCK_SETTIME 1
   13012 _ACEOF
   13013 
   13014 else
   13015 
   13016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
   13017 $as_echo_n "checking for clock_settime in -lrt... " >&6; }
   13018 if ${ac_cv_lib_rt_clock_settime+:} false; then :
   13019   $as_echo_n "(cached) " >&6
   13020 else
   13021   ac_check_lib_save_LIBS=$LIBS
   13022 LIBS="-lrt  $LIBS"
   13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13024 /* end confdefs.h.  */
   13025 
   13026 /* Override any GCC internal prototype to avoid an error.
   13027    Use char because int might match the return type of a GCC
   13028    builtin and then its argument prototype would still apply.  */
   13029 #ifdef __cplusplus
   13030 extern "C"
   13031 #endif
   13032 char clock_settime ();
   13033 int
   13034 main ()
   13035 {
   13036 return clock_settime ();
   13037   ;
   13038   return 0;
   13039 }
   13040 _ACEOF
   13041 if ac_fn_c_try_link "$LINENO"; then :
   13042   ac_cv_lib_rt_clock_settime=yes
   13043 else
   13044   ac_cv_lib_rt_clock_settime=no
   13045 fi
   13046 rm -f core conftest.err conftest.$ac_objext \
   13047     conftest$ac_exeext conftest.$ac_ext
   13048 LIBS=$ac_check_lib_save_LIBS
   13049 fi
   13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
   13051 $as_echo "$ac_cv_lib_rt_clock_settime" >&6; }
   13052 if test "x$ac_cv_lib_rt_clock_settime" = xyes; then :
   13053 
   13054         $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
   13055 
   13056 
   13057 fi
   13058 
   13059 
   13060 fi
   13061 done
   13062 
   13063 
   13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
   13065 $as_echo_n "checking for major... " >&6; }
   13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13067 /* end confdefs.h.  */
   13068 
   13069 #if defined(MAJOR_IN_MKDEV)
   13070 #include <sys/mkdev.h>
   13071 #elif defined(MAJOR_IN_SYSMACROS)
   13072 #include <sys/sysmacros.h>
   13073 #else
   13074 #include <sys/types.h>
   13075 #endif
   13076 
   13077 int
   13078 main ()
   13079 {
   13080 
   13081   makedev(major(0),minor(0));
   13082 
   13083   ;
   13084   return 0;
   13085 }
   13086 _ACEOF
   13087 if ac_fn_c_try_link "$LINENO"; then :
   13088 
   13089 
   13090 $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
   13091 
   13092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13093 $as_echo "yes" >&6; }
   13094 
   13095 else
   13096 
   13097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13098 $as_echo "no" >&6; }
   13099 
   13100 fi
   13101 rm -f core conftest.err conftest.$ac_objext \
   13102     conftest$ac_exeext conftest.$ac_ext
   13103 
   13104 # On OSF/1 V5.1, getaddrinfo is available, but a define
   13105 # for [no]getaddrinfo in netdb.h.
   13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
   13107 $as_echo_n "checking for getaddrinfo... " >&6; }
   13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13109 /* end confdefs.h.  */
   13110 
   13111 #include <sys/types.h>
   13112 #include <sys/socket.h>
   13113 #include <netdb.h>
   13114 #include <stdio.h>
   13115 
   13116 int
   13117 main ()
   13118 {
   13119 getaddrinfo(NULL, NULL, NULL, NULL);
   13120   ;
   13121   return 0;
   13122 }
   13123 _ACEOF
   13124 if ac_fn_c_try_link "$LINENO"; then :
   13125   have_getaddrinfo=yes
   13126 else
   13127   have_getaddrinfo=no
   13128 fi
   13129 rm -f core conftest.err conftest.$ac_objext \
   13130     conftest$ac_exeext conftest.$ac_ext
   13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
   13132 $as_echo "$have_getaddrinfo" >&6; }
   13133 if test $have_getaddrinfo = yes
   13134 then
   13135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
   13136 $as_echo_n "checking getaddrinfo bug... " >&6; }
   13137   if ${ac_cv_buggy_getaddrinfo+:} false; then :
   13138   $as_echo_n "(cached) " >&6
   13139 else
   13140   if test "$cross_compiling" = yes; then :
   13141 
   13142 if test "${enable_ipv6+set}" = set; then
   13143   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
   13144 else
   13145   ac_cv_buggy_getaddrinfo=yes
   13146 fi
   13147 else
   13148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13149 /* end confdefs.h.  */
   13150 
   13151 #include <stdio.h>
   13152 #include <sys/types.h>
   13153 #include <netdb.h>
   13154 #include <string.h>
   13155 #include <sys/socket.h>
   13156 #include <netinet/in.h>
   13157 
   13158 int main()
   13159 {
   13160   int passive, gaierr, inet4 = 0, inet6 = 0;
   13161   struct addrinfo hints, *ai, *aitop;
   13162   char straddr[INET6_ADDRSTRLEN], strport[16];
   13163 
   13164   for (passive = 0; passive <= 1; passive++) {
   13165     memset(&hints, 0, sizeof(hints));
   13166     hints.ai_family = AF_UNSPEC;
   13167     hints.ai_flags = passive ? AI_PASSIVE : 0;
   13168     hints.ai_socktype = SOCK_STREAM;
   13169     hints.ai_protocol = IPPROTO_TCP;
   13170     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
   13171       (void)gai_strerror(gaierr);
   13172       goto bad;
   13173     }
   13174     for (ai = aitop; ai; ai = ai->ai_next) {
   13175       if (ai->ai_addr == NULL ||
   13176           ai->ai_addrlen == 0 ||
   13177           getnameinfo(ai->ai_addr, ai->ai_addrlen,
   13178                       straddr, sizeof(straddr), strport, sizeof(strport),
   13179                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
   13180         goto bad;
   13181       }
   13182       switch (ai->ai_family) {
   13183       case AF_INET:
   13184         if (strcmp(strport, "54321") != 0) {
   13185           goto bad;
   13186         }
   13187         if (passive) {
   13188           if (strcmp(straddr, "0.0.0.0") != 0) {
   13189             goto bad;
   13190           }
   13191         } else {
   13192           if (strcmp(straddr, "127.0.0.1") != 0) {
   13193             goto bad;
   13194           }
   13195         }
   13196         inet4++;
   13197         break;
   13198       case AF_INET6:
   13199         if (strcmp(strport, "54321") != 0) {
   13200           goto bad;
   13201         }
   13202         if (passive) {
   13203           if (strcmp(straddr, "::") != 0) {
   13204             goto bad;
   13205           }
   13206         } else {
   13207           if (strcmp(straddr, "::1") != 0) {
   13208             goto bad;
   13209           }
   13210         }
   13211         inet6++;
   13212         break;
   13213       case AF_UNSPEC:
   13214         goto bad;
   13215         break;
   13216       default:
   13217         /* another family support? */
   13218         break;
   13219       }
   13220     }
   13221     freeaddrinfo(aitop);
   13222     aitop = NULL;
   13223   }
   13224 
   13225   if (!(inet4 == 0 || inet4 == 2))
   13226     goto bad;
   13227   if (!(inet6 == 0 || inet6 == 2))
   13228     goto bad;
   13229 
   13230   if (aitop)
   13231     freeaddrinfo(aitop);
   13232   return 0;
   13233 
   13234  bad:
   13235   if (aitop)
   13236     freeaddrinfo(aitop);
   13237   return 1;
   13238 }
   13239 
   13240 _ACEOF
   13241 if ac_fn_c_try_run "$LINENO"; then :
   13242   ac_cv_buggy_getaddrinfo=no
   13243 else
   13244   ac_cv_buggy_getaddrinfo=yes
   13245 fi
   13246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13247   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13248 fi
   13249 
   13250 fi
   13251 
   13252 fi
   13253 
   13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
   13255 $as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
   13256 
   13257 if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
   13258 then
   13259 	if test $ipv6 = yes
   13260 	then
   13261 		echo 'Fatal: You must get working getaddrinfo() function.'
   13262 		echo '       or you can specify "--disable-ipv6"'.
   13263 		exit 1
   13264 	fi
   13265 else
   13266 
   13267 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
   13268 
   13269 fi
   13270 
   13271 for ac_func in getnameinfo
   13272 do :
   13273   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
   13274 if test "x$ac_cv_func_getnameinfo" = xyes; then :
   13275   cat >>confdefs.h <<_ACEOF
   13276 #define HAVE_GETNAMEINFO 1
   13277 _ACEOF
   13278 
   13279 fi
   13280 done
   13281 
   13282 
   13283 # checks for structures
   13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   13285 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   13286 if ${ac_cv_header_time+:} false; then :
   13287   $as_echo_n "(cached) " >&6
   13288 else
   13289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13290 /* end confdefs.h.  */
   13291 #include <sys/types.h>
   13292 #include <sys/time.h>
   13293 #include <time.h>
   13294 
   13295 int
   13296 main ()
   13297 {
   13298 if ((struct tm *) 0)
   13299 return 0;
   13300   ;
   13301   return 0;
   13302 }
   13303 _ACEOF
   13304 if ac_fn_c_try_compile "$LINENO"; then :
   13305   ac_cv_header_time=yes
   13306 else
   13307   ac_cv_header_time=no
   13308 fi
   13309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13310 fi
   13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   13312 $as_echo "$ac_cv_header_time" >&6; }
   13313 if test $ac_cv_header_time = yes; then
   13314 
   13315 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   13316 
   13317 fi
   13318 
   13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
   13320 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
   13321 if ${ac_cv_struct_tm+:} false; then :
   13322   $as_echo_n "(cached) " >&6
   13323 else
   13324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13325 /* end confdefs.h.  */
   13326 #include <sys/types.h>
   13327 #include <time.h>
   13328 
   13329 int
   13330 main ()
   13331 {
   13332 struct tm tm;
   13333 				     int *p = &tm.tm_sec;
   13334 				     return !p;
   13335   ;
   13336   return 0;
   13337 }
   13338 _ACEOF
   13339 if ac_fn_c_try_compile "$LINENO"; then :
   13340   ac_cv_struct_tm=time.h
   13341 else
   13342   ac_cv_struct_tm=sys/time.h
   13343 fi
   13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13345 fi
   13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
   13347 $as_echo "$ac_cv_struct_tm" >&6; }
   13348 if test $ac_cv_struct_tm = sys/time.h; then
   13349 
   13350 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
   13351 
   13352 fi
   13353 
   13354 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
   13355 #include <$ac_cv_struct_tm>
   13356 
   13357 "
   13358 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
   13359 
   13360 cat >>confdefs.h <<_ACEOF
   13361 #define HAVE_STRUCT_TM_TM_ZONE 1
   13362 _ACEOF
   13363 
   13364 
   13365 fi
   13366 
   13367 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
   13368 
   13369 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
   13370 
   13371 else
   13372   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
   13373 "
   13374 if test "x$ac_cv_have_decl_tzname" = xyes; then :
   13375   ac_have_decl=1
   13376 else
   13377   ac_have_decl=0
   13378 fi
   13379 
   13380 cat >>confdefs.h <<_ACEOF
   13381 #define HAVE_DECL_TZNAME $ac_have_decl
   13382 _ACEOF
   13383 
   13384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
   13385 $as_echo_n "checking for tzname... " >&6; }
   13386 if ${ac_cv_var_tzname+:} false; then :
   13387   $as_echo_n "(cached) " >&6
   13388 else
   13389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13390 /* end confdefs.h.  */
   13391 #include <time.h>
   13392 #if !HAVE_DECL_TZNAME
   13393 extern char *tzname[];
   13394 #endif
   13395 
   13396 int
   13397 main ()
   13398 {
   13399 return tzname[0][0];
   13400   ;
   13401   return 0;
   13402 }
   13403 _ACEOF
   13404 if ac_fn_c_try_link "$LINENO"; then :
   13405   ac_cv_var_tzname=yes
   13406 else
   13407   ac_cv_var_tzname=no
   13408 fi
   13409 rm -f core conftest.err conftest.$ac_objext \
   13410     conftest$ac_exeext conftest.$ac_ext
   13411 fi
   13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
   13413 $as_echo "$ac_cv_var_tzname" >&6; }
   13414   if test $ac_cv_var_tzname = yes; then
   13415 
   13416 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
   13417 
   13418   fi
   13419 fi
   13420 
   13421 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
   13422 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
   13423 
   13424 cat >>confdefs.h <<_ACEOF
   13425 #define HAVE_STRUCT_STAT_ST_RDEV 1
   13426 _ACEOF
   13427 
   13428 
   13429 fi
   13430 
   13431 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   13432 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
   13433 
   13434 cat >>confdefs.h <<_ACEOF
   13435 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   13436 _ACEOF
   13437 
   13438 
   13439 fi
   13440 
   13441 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
   13442 if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
   13443 
   13444 cat >>confdefs.h <<_ACEOF
   13445 #define HAVE_STRUCT_STAT_ST_FLAGS 1
   13446 _ACEOF
   13447 
   13448 
   13449 fi
   13450 
   13451 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
   13452 if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
   13453 
   13454 cat >>confdefs.h <<_ACEOF
   13455 #define HAVE_STRUCT_STAT_ST_GEN 1
   13456 _ACEOF
   13457 
   13458 
   13459 fi
   13460 
   13461 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
   13462 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
   13463 
   13464 cat >>confdefs.h <<_ACEOF
   13465 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
   13466 _ACEOF
   13467 
   13468 
   13469 fi
   13470 
   13471 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
   13472 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
   13473 
   13474 cat >>confdefs.h <<_ACEOF
   13475 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
   13476 _ACEOF
   13477 
   13478 
   13479 fi
   13480 
   13481 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
   13482   #include <sys/types.h>
   13483   #include <pwd.h>
   13484 
   13485 "
   13486 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
   13487 
   13488 cat >>confdefs.h <<_ACEOF
   13489 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
   13490 _ACEOF
   13491 
   13492 
   13493 fi
   13494 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
   13495   #include <sys/types.h>
   13496   #include <pwd.h>
   13497 
   13498 "
   13499 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
   13500 
   13501 cat >>confdefs.h <<_ACEOF
   13502 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
   13503 _ACEOF
   13504 
   13505 
   13506 fi
   13507 
   13508 # Issue #21085: In Cygwin, siginfo_t does not have si_band field.
   13509 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
   13510 "
   13511 if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then :
   13512 
   13513 cat >>confdefs.h <<_ACEOF
   13514 #define HAVE_SIGINFO_T_SI_BAND 1
   13515 _ACEOF
   13516 
   13517 
   13518 fi
   13519 
   13520 
   13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
   13522 $as_echo_n "checking for time.h that defines altzone... " >&6; }
   13523 if ${ac_cv_header_time_altzone+:} false; then :
   13524   $as_echo_n "(cached) " >&6
   13525 else
   13526 
   13527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13528 /* end confdefs.h.  */
   13529 #include <time.h>
   13530 int
   13531 main ()
   13532 {
   13533 return altzone;
   13534   ;
   13535   return 0;
   13536 }
   13537 _ACEOF
   13538 if ac_fn_c_try_compile "$LINENO"; then :
   13539   ac_cv_header_time_altzone=yes
   13540 else
   13541   ac_cv_header_time_altzone=no
   13542 fi
   13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13544 
   13545 fi
   13546 
   13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
   13548 $as_echo "$ac_cv_header_time_altzone" >&6; }
   13549 if test $ac_cv_header_time_altzone = yes; then
   13550 
   13551 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
   13552 
   13553 fi
   13554 
   13555 was_it_defined=no
   13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
   13557 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
   13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13559 /* end confdefs.h.  */
   13560 
   13561 #include <sys/types.h>
   13562 #include <sys/select.h>
   13563 #include <sys/time.h>
   13564 
   13565 int
   13566 main ()
   13567 {
   13568 ;
   13569   ;
   13570   return 0;
   13571 }
   13572 _ACEOF
   13573 if ac_fn_c_try_compile "$LINENO"; then :
   13574 
   13575 
   13576 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
   13577 
   13578   was_it_defined=yes
   13579 
   13580 fi
   13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
   13583 $as_echo "$was_it_defined" >&6; }
   13584 
   13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
   13586 $as_echo_n "checking for addrinfo... " >&6; }
   13587 if ${ac_cv_struct_addrinfo+:} false; then :
   13588   $as_echo_n "(cached) " >&6
   13589 else
   13590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13591 /* end confdefs.h.  */
   13592 #include <netdb.h>
   13593 int
   13594 main ()
   13595 {
   13596 struct addrinfo a
   13597   ;
   13598   return 0;
   13599 }
   13600 _ACEOF
   13601 if ac_fn_c_try_compile "$LINENO"; then :
   13602   ac_cv_struct_addrinfo=yes
   13603 else
   13604   ac_cv_struct_addrinfo=no
   13605 fi
   13606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13607 fi
   13608 
   13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
   13610 $as_echo "$ac_cv_struct_addrinfo" >&6; }
   13611 if test $ac_cv_struct_addrinfo = yes; then
   13612 
   13613 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
   13614 
   13615 fi
   13616 
   13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
   13618 $as_echo_n "checking for sockaddr_storage... " >&6; }
   13619 if ${ac_cv_struct_sockaddr_storage+:} false; then :
   13620   $as_echo_n "(cached) " >&6
   13621 else
   13622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13623 /* end confdefs.h.  */
   13624 
   13625 #		include <sys/types.h>
   13626 #		include <sys/socket.h>
   13627 int
   13628 main ()
   13629 {
   13630 struct sockaddr_storage s
   13631   ;
   13632   return 0;
   13633 }
   13634 _ACEOF
   13635 if ac_fn_c_try_compile "$LINENO"; then :
   13636   ac_cv_struct_sockaddr_storage=yes
   13637 else
   13638   ac_cv_struct_sockaddr_storage=no
   13639 fi
   13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13641 fi
   13642 
   13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
   13644 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
   13645 if test $ac_cv_struct_sockaddr_storage = yes; then
   13646 
   13647 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
   13648 
   13649 fi
   13650 
   13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
   13652 $as_echo_n "checking for sockaddr_alg... " >&6; }
   13653 if ${ac_cv_struct_sockaddr_alg+:} false; then :
   13654   $as_echo_n "(cached) " >&6
   13655 else
   13656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13657 /* end confdefs.h.  */
   13658 
   13659 #		include <sys/types.h>
   13660 #		include <sys/socket.h>
   13661 #		include <linux/if_alg.h>
   13662 int
   13663 main ()
   13664 {
   13665 struct sockaddr_alg s
   13666   ;
   13667   return 0;
   13668 }
   13669 _ACEOF
   13670 if ac_fn_c_try_compile "$LINENO"; then :
   13671   ac_cv_struct_sockaddr_alg=yes
   13672 else
   13673   ac_cv_struct_sockaddr_alg=no
   13674 fi
   13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13676 fi
   13677 
   13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
   13679 $as_echo "$ac_cv_struct_sockaddr_alg" >&6; }
   13680 if test $ac_cv_struct_sockaddr_alg = yes; then
   13681 
   13682 $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
   13683 
   13684 fi
   13685 
   13686 # checks for compiler characteristics
   13687 
   13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
   13689 $as_echo_n "checking whether char is unsigned... " >&6; }
   13690 if ${ac_cv_c_char_unsigned+:} false; then :
   13691   $as_echo_n "(cached) " >&6
   13692 else
   13693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13694 /* end confdefs.h.  */
   13695 $ac_includes_default
   13696 int
   13697 main ()
   13698 {
   13699 static int test_array [1 - 2 * !(((char) -1) < 0)];
   13700 test_array [0] = 0;
   13701 return test_array [0];
   13702 
   13703   ;
   13704   return 0;
   13705 }
   13706 _ACEOF
   13707 if ac_fn_c_try_compile "$LINENO"; then :
   13708   ac_cv_c_char_unsigned=no
   13709 else
   13710   ac_cv_c_char_unsigned=yes
   13711 fi
   13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13713 fi
   13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
   13715 $as_echo "$ac_cv_c_char_unsigned" >&6; }
   13716 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
   13717   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
   13718 
   13719 fi
   13720 
   13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13722 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13723 if ${ac_cv_c_const+:} false; then :
   13724   $as_echo_n "(cached) " >&6
   13725 else
   13726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13727 /* end confdefs.h.  */
   13728 
   13729 int
   13730 main ()
   13731 {
   13732 
   13733 #ifndef __cplusplus
   13734   /* Ultrix mips cc rejects this sort of thing.  */
   13735   typedef int charset[2];
   13736   const charset cs = { 0, 0 };
   13737   /* SunOS 4.1.1 cc rejects this.  */
   13738   char const *const *pcpcc;
   13739   char **ppc;
   13740   /* NEC SVR4.0.2 mips cc rejects this.  */
   13741   struct point {int x, y;};
   13742   static struct point const zero = {0,0};
   13743   /* AIX XL C 1.02.0.0 rejects this.
   13744      It does not let you subtract one const X* pointer from another in
   13745      an arm of an if-expression whose if-part is not a constant
   13746      expression */
   13747   const char *g = "string";
   13748   pcpcc = &g + (g ? g-g : 0);
   13749   /* HPUX 7.0 cc rejects these. */
   13750   ++pcpcc;
   13751   ppc = (char**) pcpcc;
   13752   pcpcc = (char const *const *) ppc;
   13753   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13754     char tx;
   13755     char *t = &tx;
   13756     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13757 
   13758     *t++ = 0;
   13759     if (s) return 0;
   13760   }
   13761   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13762     int x[] = {25, 17};
   13763     const int *foo = &x[0];
   13764     ++foo;
   13765   }
   13766   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13767     typedef const int *iptr;
   13768     iptr p = 0;
   13769     ++p;
   13770   }
   13771   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13772        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13773     struct s { int j; const int *ap[3]; } bx;
   13774     struct s *b = &bx; b->j = 5;
   13775   }
   13776   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13777     const int foo = 10;
   13778     if (!foo) return 0;
   13779   }
   13780   return !cs[0] && !zero.x;
   13781 #endif
   13782 
   13783   ;
   13784   return 0;
   13785 }
   13786 _ACEOF
   13787 if ac_fn_c_try_compile "$LINENO"; then :
   13788   ac_cv_c_const=yes
   13789 else
   13790   ac_cv_c_const=no
   13791 fi
   13792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13793 fi
   13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13795 $as_echo "$ac_cv_c_const" >&6; }
   13796 if test $ac_cv_c_const = no; then
   13797 
   13798 $as_echo "#define const /**/" >>confdefs.h
   13799 
   13800 fi
   13801 
   13802 
   13803 works=no
   13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
   13805 $as_echo_n "checking for working signed char... " >&6; }
   13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13807 /* end confdefs.h.  */
   13808 
   13809 int
   13810 main ()
   13811 {
   13812 signed char c;
   13813   ;
   13814   return 0;
   13815 }
   13816 _ACEOF
   13817 if ac_fn_c_try_compile "$LINENO"; then :
   13818   works=yes
   13819 else
   13820 
   13821 $as_echo "#define signed /**/" >>confdefs.h
   13822 
   13823 
   13824 fi
   13825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
   13827 $as_echo "$works" >&6; }
   13828 
   13829 have_prototypes=no
   13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
   13831 $as_echo_n "checking for prototypes... " >&6; }
   13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13833 /* end confdefs.h.  */
   13834 int foo(int x) { return 0; }
   13835 int
   13836 main ()
   13837 {
   13838 return foo(10);
   13839   ;
   13840   return 0;
   13841 }
   13842 _ACEOF
   13843 if ac_fn_c_try_compile "$LINENO"; then :
   13844 
   13845 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
   13846 
   13847    have_prototypes=yes
   13848 fi
   13849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
   13851 $as_echo "$have_prototypes" >&6; }
   13852 
   13853 works=no
   13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
   13855 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
   13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13857 /* end confdefs.h.  */
   13858 
   13859 #include <stdarg.h>
   13860 int foo(int x, ...) {
   13861 	va_list va;
   13862 	va_start(va, x);
   13863 	va_arg(va, int);
   13864 	va_arg(va, char *);
   13865 	va_arg(va, double);
   13866 	return 0;
   13867 }
   13868 
   13869 int
   13870 main ()
   13871 {
   13872 return foo(10, "", 3.14);
   13873   ;
   13874   return 0;
   13875 }
   13876 _ACEOF
   13877 if ac_fn_c_try_compile "$LINENO"; then :
   13878 
   13879 
   13880 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
   13881 
   13882   works=yes
   13883 
   13884 fi
   13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
   13887 $as_echo "$works" >&6; }
   13888 
   13889 # check for socketpair
   13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
   13891 $as_echo_n "checking for socketpair... " >&6; }
   13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13893 /* end confdefs.h.  */
   13894 
   13895 #include <sys/types.h>
   13896 #include <sys/socket.h>
   13897 
   13898 int
   13899 main ()
   13900 {
   13901 void *x=socketpair
   13902   ;
   13903   return 0;
   13904 }
   13905 _ACEOF
   13906 if ac_fn_c_try_compile "$LINENO"; then :
   13907 
   13908 $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
   13909 
   13910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13911 $as_echo "yes" >&6; }
   13912 else
   13913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13914 $as_echo "no" >&6; }
   13915 
   13916 fi
   13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13918 
   13919 # check if sockaddr has sa_len member
   13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
   13921 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
   13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13923 /* end confdefs.h.  */
   13924 #include <sys/types.h>
   13925 #include <sys/socket.h>
   13926 int
   13927 main ()
   13928 {
   13929 struct sockaddr x;
   13930 x.sa_len = 0;
   13931   ;
   13932   return 0;
   13933 }
   13934 _ACEOF
   13935 if ac_fn_c_try_compile "$LINENO"; then :
   13936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13937 $as_echo "yes" >&6; }
   13938 
   13939 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
   13940 
   13941 else
   13942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13943 $as_echo "no" >&6; }
   13944 
   13945 fi
   13946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13947 
   13948 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
   13949 
   13950 
   13951 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
   13952 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
   13953 
   13954   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   13955 
   13956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
   13957 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
   13958   OLD_CFLAGS=$CFLAGS
   13959   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
   13960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13961 /* end confdefs.h.  */
   13962 
   13963 #   include <netdb.h>
   13964 
   13965 int
   13966 main ()
   13967 {
   13968 
   13969     char *name;
   13970     struct hostent *he, *res;
   13971     char buffer[2048];
   13972     int buflen = 2048;
   13973     int h_errnop;
   13974 
   13975     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
   13976 
   13977   ;
   13978   return 0;
   13979 }
   13980 _ACEOF
   13981 if ac_fn_c_try_compile "$LINENO"; then :
   13982 
   13983     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   13984 
   13985 
   13986 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
   13987 
   13988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13989 $as_echo "yes" >&6; }
   13990 
   13991 else
   13992 
   13993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13994 $as_echo "no" >&6; }
   13995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
   13996 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
   13997     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13998 /* end confdefs.h.  */
   13999 
   14000 #       include <netdb.h>
   14001 
   14002 int
   14003 main ()
   14004 {
   14005 
   14006         char *name;
   14007         struct hostent *he;
   14008         char buffer[2048];
   14009         int buflen = 2048;
   14010         int h_errnop;
   14011 
   14012         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
   14013 
   14014   ;
   14015   return 0;
   14016 }
   14017 _ACEOF
   14018 if ac_fn_c_try_compile "$LINENO"; then :
   14019 
   14020         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   14021 
   14022 
   14023 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
   14024 
   14025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14026 $as_echo "yes" >&6; }
   14027 
   14028 else
   14029 
   14030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14031 $as_echo "no" >&6; }
   14032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
   14033 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
   14034         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14035 /* end confdefs.h.  */
   14036 
   14037 #           include <netdb.h>
   14038 
   14039 int
   14040 main ()
   14041 {
   14042 
   14043             char *name;
   14044             struct hostent *he;
   14045             struct hostent_data data;
   14046 
   14047             (void) gethostbyname_r(name, he, &data);
   14048 
   14049   ;
   14050   return 0;
   14051 }
   14052 _ACEOF
   14053 if ac_fn_c_try_compile "$LINENO"; then :
   14054 
   14055             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   14056 
   14057 
   14058 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
   14059 
   14060             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14061 $as_echo "yes" >&6; }
   14062 
   14063 else
   14064 
   14065            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14066 $as_echo "no" >&6; }
   14067 
   14068 fi
   14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14070 
   14071 fi
   14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14073 
   14074 fi
   14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14076   CFLAGS=$OLD_CFLAGS
   14077 
   14078 else
   14079 
   14080   for ac_func in gethostbyname
   14081 do :
   14082   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
   14083 if test "x$ac_cv_func_gethostbyname" = xyes; then :
   14084   cat >>confdefs.h <<_ACEOF
   14085 #define HAVE_GETHOSTBYNAME 1
   14086 _ACEOF
   14087 
   14088 fi
   14089 done
   14090 
   14091 
   14092 fi
   14093 
   14094 
   14095 
   14096 
   14097 
   14098 
   14099 
   14100 # checks for system services
   14101 # (none yet)
   14102 
   14103 # Linux requires this for correct f.p. operations
   14104 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
   14105 if test "x$ac_cv_func___fpu_control" = xyes; then :
   14106 
   14107 else
   14108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
   14109 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
   14110 if ${ac_cv_lib_ieee___fpu_control+:} false; then :
   14111   $as_echo_n "(cached) " >&6
   14112 else
   14113   ac_check_lib_save_LIBS=$LIBS
   14114 LIBS="-lieee  $LIBS"
   14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14116 /* end confdefs.h.  */
   14117 
   14118 /* Override any GCC internal prototype to avoid an error.
   14119    Use char because int might match the return type of a GCC
   14120    builtin and then its argument prototype would still apply.  */
   14121 #ifdef __cplusplus
   14122 extern "C"
   14123 #endif
   14124 char __fpu_control ();
   14125 int
   14126 main ()
   14127 {
   14128 return __fpu_control ();
   14129   ;
   14130   return 0;
   14131 }
   14132 _ACEOF
   14133 if ac_fn_c_try_link "$LINENO"; then :
   14134   ac_cv_lib_ieee___fpu_control=yes
   14135 else
   14136   ac_cv_lib_ieee___fpu_control=no
   14137 fi
   14138 rm -f core conftest.err conftest.$ac_objext \
   14139     conftest$ac_exeext conftest.$ac_ext
   14140 LIBS=$ac_check_lib_save_LIBS
   14141 fi
   14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
   14143 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
   14144 if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
   14145   cat >>confdefs.h <<_ACEOF
   14146 #define HAVE_LIBIEEE 1
   14147 _ACEOF
   14148 
   14149   LIBS="-lieee $LIBS"
   14150 
   14151 fi
   14152 
   14153 
   14154 fi
   14155 
   14156 
   14157 # check for --with-libm=...
   14158 
   14159 case $ac_sys_system in
   14160 Darwin) ;;
   14161 *) LIBM=-lm
   14162 esac
   14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
   14164 $as_echo_n "checking for --with-libm=STRING... " >&6; }
   14165 
   14166 # Check whether --with-libm was given.
   14167 if test "${with_libm+set}" = set; then :
   14168   withval=$with_libm;
   14169 if test "$withval" = no
   14170 then LIBM=
   14171      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
   14172 $as_echo "force LIBM empty" >&6; }
   14173 elif test "$withval" != yes
   14174 then LIBM=$withval
   14175      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
   14176 $as_echo "set LIBM=\"$withval\"" >&6; }
   14177 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
   14178 fi
   14179 else
   14180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
   14181 $as_echo "default LIBM=\"$LIBM\"" >&6; }
   14182 fi
   14183 
   14184 
   14185 # check for --with-libc=...
   14186 
   14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
   14188 $as_echo_n "checking for --with-libc=STRING... " >&6; }
   14189 
   14190 # Check whether --with-libc was given.
   14191 if test "${with_libc+set}" = set; then :
   14192   withval=$with_libc;
   14193 if test "$withval" = no
   14194 then LIBC=
   14195      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
   14196 $as_echo "force LIBC empty" >&6; }
   14197 elif test "$withval" != yes
   14198 then LIBC=$withval
   14199      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
   14200 $as_echo "set LIBC=\"$withval\"" >&6; }
   14201 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
   14202 fi
   14203 else
   14204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
   14205 $as_echo "default LIBC=\"$LIBC\"" >&6; }
   14206 fi
   14207 
   14208 
   14209 # **************************************
   14210 # * Check for gcc x64 inline assembler *
   14211 # **************************************
   14212 
   14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
   14214 $as_echo_n "checking for x64 gcc inline assembler... " >&6; }
   14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14216 /* end confdefs.h.  */
   14217 
   14218 int
   14219 main ()
   14220 {
   14221 
   14222   __asm__ __volatile__ ("movq %rcx, %rax");
   14223 
   14224   ;
   14225   return 0;
   14226 }
   14227 _ACEOF
   14228 if ac_fn_c_try_link "$LINENO"; then :
   14229   have_gcc_asm_for_x64=yes
   14230 else
   14231   have_gcc_asm_for_x64=no
   14232 fi
   14233 rm -f core conftest.err conftest.$ac_objext \
   14234     conftest$ac_exeext conftest.$ac_ext
   14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
   14236 $as_echo "$have_gcc_asm_for_x64" >&6; }
   14237 if test "$have_gcc_asm_for_x64" = yes
   14238 then
   14239 
   14240 $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
   14241 
   14242 fi
   14243 
   14244 # **************************************************
   14245 # * Check for various properties of floating point *
   14246 # **************************************************
   14247 
   14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
   14249 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
   14250 if ${ac_cv_little_endian_double+:} false; then :
   14251   $as_echo_n "(cached) " >&6
   14252 else
   14253 
   14254 if test "$cross_compiling" = yes; then :
   14255   ac_cv_little_endian_double=no
   14256 else
   14257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14258 /* end confdefs.h.  */
   14259 
   14260 #include <string.h>
   14261 int main() {
   14262     double x = 9006104071832581.0;
   14263     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
   14264         return 0;
   14265     else
   14266         return 1;
   14267 }
   14268 
   14269 _ACEOF
   14270 if ac_fn_c_try_run "$LINENO"; then :
   14271   ac_cv_little_endian_double=yes
   14272 else
   14273   ac_cv_little_endian_double=no
   14274 fi
   14275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14276   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14277 fi
   14278 
   14279 fi
   14280 
   14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
   14282 $as_echo "$ac_cv_little_endian_double" >&6; }
   14283 if test "$ac_cv_little_endian_double" = yes
   14284 then
   14285 
   14286 $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
   14287 
   14288 fi
   14289 
   14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
   14291 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
   14292 if ${ac_cv_big_endian_double+:} false; then :
   14293   $as_echo_n "(cached) " >&6
   14294 else
   14295 
   14296 if test "$cross_compiling" = yes; then :
   14297   ac_cv_big_endian_double=no
   14298 else
   14299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14300 /* end confdefs.h.  */
   14301 
   14302 #include <string.h>
   14303 int main() {
   14304     double x = 9006104071832581.0;
   14305     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
   14306         return 0;
   14307     else
   14308         return 1;
   14309 }
   14310 
   14311 _ACEOF
   14312 if ac_fn_c_try_run "$LINENO"; then :
   14313   ac_cv_big_endian_double=yes
   14314 else
   14315   ac_cv_big_endian_double=no
   14316 fi
   14317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14318   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14319 fi
   14320 
   14321 fi
   14322 
   14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
   14324 $as_echo "$ac_cv_big_endian_double" >&6; }
   14325 if test "$ac_cv_big_endian_double" = yes
   14326 then
   14327 
   14328 $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
   14329 
   14330 fi
   14331 
   14332 # Some ARM platforms use a mixed-endian representation for doubles.
   14333 # While Python doesn't currently have full support for these platforms
   14334 # (see e.g., issue 1762561), we can at least make sure that float <-> string
   14335 # conversions work.
   14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
   14337 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
   14338 if ${ac_cv_mixed_endian_double+:} false; then :
   14339   $as_echo_n "(cached) " >&6
   14340 else
   14341 
   14342 if test "$cross_compiling" = yes; then :
   14343   ac_cv_mixed_endian_double=no
   14344 else
   14345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14346 /* end confdefs.h.  */
   14347 
   14348 #include <string.h>
   14349 int main() {
   14350     double x = 9006104071832581.0;
   14351     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
   14352         return 0;
   14353     else
   14354         return 1;
   14355 }
   14356 
   14357 _ACEOF
   14358 if ac_fn_c_try_run "$LINENO"; then :
   14359   ac_cv_mixed_endian_double=yes
   14360 else
   14361   ac_cv_mixed_endian_double=no
   14362 fi
   14363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14364   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14365 fi
   14366 
   14367 fi
   14368 
   14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
   14370 $as_echo "$ac_cv_mixed_endian_double" >&6; }
   14371 if test "$ac_cv_mixed_endian_double" = yes
   14372 then
   14373 
   14374 $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
   14375 
   14376 fi
   14377 
   14378 # The short float repr introduced in Python 3.1 requires the
   14379 # correctly-rounded string <-> double conversion functions from
   14380 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
   14381 # rounding; this is a problem on x86, where the x87 FPU has a default
   14382 # rounding precision of 64 bits.  For gcc/x86, we can fix this by
   14383 # using inline assembler to get and set the x87 FPU control word.
   14384 
   14385 # This inline assembler syntax may also work for suncc and icc,
   14386 # so we try it on all platforms.
   14387 
   14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
   14389 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
   14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14391 /* end confdefs.h.  */
   14392 
   14393 int
   14394 main ()
   14395 {
   14396 
   14397   unsigned short cw;
   14398   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
   14399   __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
   14400 
   14401   ;
   14402   return 0;
   14403 }
   14404 _ACEOF
   14405 if ac_fn_c_try_link "$LINENO"; then :
   14406   have_gcc_asm_for_x87=yes
   14407 else
   14408   have_gcc_asm_for_x87=no
   14409 fi
   14410 rm -f core conftest.err conftest.$ac_objext \
   14411     conftest$ac_exeext conftest.$ac_ext
   14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
   14413 $as_echo "$have_gcc_asm_for_x87" >&6; }
   14414 if test "$have_gcc_asm_for_x87" = yes
   14415 then
   14416 
   14417 $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
   14418 
   14419 fi
   14420 
   14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
   14422 $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
   14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14424 /* end confdefs.h.  */
   14425 
   14426 int
   14427 main ()
   14428 {
   14429 
   14430   unsigned int fpcr;
   14431   __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr));
   14432   __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr));
   14433 
   14434   ;
   14435   return 0;
   14436 }
   14437 _ACEOF
   14438 if ac_fn_c_try_link "$LINENO"; then :
   14439   have_gcc_asm_for_mc68881=yes
   14440 else
   14441   have_gcc_asm_for_mc68881=no
   14442 fi
   14443 rm -f core conftest.err conftest.$ac_objext \
   14444     conftest$ac_exeext conftest.$ac_ext
   14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5
   14446 $as_echo "$have_gcc_asm_for_mc68881" >&6; }
   14447 if test "$have_gcc_asm_for_mc68881" = yes
   14448 then
   14449 
   14450 $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
   14451 
   14452 fi
   14453 
   14454 # Detect whether system arithmetic is subject to x87-style double
   14455 # rounding issues.  The result of this test has little meaning on non
   14456 # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding
   14457 # mode is round-to-nearest and double rounding issues are present, and
   14458 # 0 otherwise.  See http://bugs.python.org/issue2937 for more info.
   14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
   14460 $as_echo_n "checking for x87-style double rounding... " >&6; }
   14461 # $BASECFLAGS may affect the result
   14462 ac_save_cc="$CC"
   14463 CC="$CC $BASECFLAGS"
   14464 if test "$cross_compiling" = yes; then :
   14465   ac_cv_x87_double_rounding=no
   14466 else
   14467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14468 /* end confdefs.h.  */
   14469 
   14470 #include <stdlib.h>
   14471 #include <math.h>
   14472 int main() {
   14473     volatile double x, y, z;
   14474     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
   14475     x = 0.99999999999999989; /* 1-2**-53 */
   14476     y = 1./x;
   14477     if (y != 1.)
   14478         exit(0);
   14479     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
   14480     x = 1e16;
   14481     y = 2.99999;
   14482     z = x + y;
   14483     if (z != 1e16+4.)
   14484         exit(0);
   14485     /* both tests show evidence of double rounding */
   14486     exit(1);
   14487 }
   14488 
   14489 _ACEOF
   14490 if ac_fn_c_try_run "$LINENO"; then :
   14491   ac_cv_x87_double_rounding=no
   14492 else
   14493   ac_cv_x87_double_rounding=yes
   14494 fi
   14495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14496   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14497 fi
   14498 
   14499 CC="$ac_save_cc"
   14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
   14501 $as_echo "$ac_cv_x87_double_rounding" >&6; }
   14502 if test "$ac_cv_x87_double_rounding" = yes
   14503 then
   14504 
   14505 $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
   14506 
   14507 fi
   14508 
   14509 # ************************************
   14510 # * Check for mathematical functions *
   14511 # ************************************
   14512 
   14513 LIBS_SAVE=$LIBS
   14514 LIBS="$LIBS $LIBM"
   14515 
   14516 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
   14517 do :
   14518   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14520 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14521   cat >>confdefs.h <<_ACEOF
   14522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14523 _ACEOF
   14524 
   14525 fi
   14526 done
   14527 
   14528 for ac_func in hypot lgamma log1p log2 round tgamma
   14529 do :
   14530   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14532 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14533   cat >>confdefs.h <<_ACEOF
   14534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14535 _ACEOF
   14536 
   14537 fi
   14538 done
   14539 
   14540 ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
   14541 "
   14542 if test "x$ac_cv_have_decl_isinf" = xyes; then :
   14543   ac_have_decl=1
   14544 else
   14545   ac_have_decl=0
   14546 fi
   14547 
   14548 cat >>confdefs.h <<_ACEOF
   14549 #define HAVE_DECL_ISINF $ac_have_decl
   14550 _ACEOF
   14551 ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
   14552 "
   14553 if test "x$ac_cv_have_decl_isnan" = xyes; then :
   14554   ac_have_decl=1
   14555 else
   14556   ac_have_decl=0
   14557 fi
   14558 
   14559 cat >>confdefs.h <<_ACEOF
   14560 #define HAVE_DECL_ISNAN $ac_have_decl
   14561 _ACEOF
   14562 ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
   14563 "
   14564 if test "x$ac_cv_have_decl_isfinite" = xyes; then :
   14565   ac_have_decl=1
   14566 else
   14567   ac_have_decl=0
   14568 fi
   14569 
   14570 cat >>confdefs.h <<_ACEOF
   14571 #define HAVE_DECL_ISFINITE $ac_have_decl
   14572 _ACEOF
   14573 
   14574 
   14575 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
   14576 # -0. on some architectures.
   14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
   14578 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
   14579 if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
   14580   $as_echo_n "(cached) " >&6
   14581 else
   14582 
   14583 if test "$cross_compiling" = yes; then :
   14584   ac_cv_tanh_preserves_zero_sign=no
   14585 else
   14586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14587 /* end confdefs.h.  */
   14588 
   14589 #include <math.h>
   14590 #include <stdlib.h>
   14591 int main() {
   14592     /* return 0 if either negative zeros don't exist
   14593        on this platform or if negative zeros exist
   14594        and tanh(-0.) == -0. */
   14595   if (atan2(0., -1.) == atan2(-0., -1.) ||
   14596       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
   14597   else exit(1);
   14598 }
   14599 
   14600 _ACEOF
   14601 if ac_fn_c_try_run "$LINENO"; then :
   14602   ac_cv_tanh_preserves_zero_sign=yes
   14603 else
   14604   ac_cv_tanh_preserves_zero_sign=no
   14605 fi
   14606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14607   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14608 fi
   14609 
   14610 fi
   14611 
   14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
   14613 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
   14614 if test "$ac_cv_tanh_preserves_zero_sign" = yes
   14615 then
   14616 
   14617 $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
   14618 
   14619 fi
   14620 
   14621 if test "$ac_cv_func_log1p" = yes
   14622 then
   14623     # On some versions of AIX, log1p(-0.) returns 0. instead of
   14624     # -0.  See issue #9920.
   14625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5
   14626 $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; }
   14627     if ${ac_cv_log1p_drops_zero_sign+:} false; then :
   14628   $as_echo_n "(cached) " >&6
   14629 else
   14630 
   14631     if test "$cross_compiling" = yes; then :
   14632   ac_cv_log1p_drops_zero_sign=no
   14633 else
   14634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14635 /* end confdefs.h.  */
   14636 
   14637     #include <math.h>
   14638     #include <stdlib.h>
   14639     int main() {
   14640         /* Fail if the signs of log1p(-0.) and -0. can be
   14641 	   distinguished. */
   14642         if (atan2(log1p(-0.), -1.) == atan2(-0., -1.))
   14643             return 0;
   14644         else
   14645             return 1;
   14646     }
   14647 
   14648 _ACEOF
   14649 if ac_fn_c_try_run "$LINENO"; then :
   14650   ac_cv_log1p_drops_zero_sign=no
   14651 else
   14652   ac_cv_log1p_drops_zero_sign=yes
   14653 fi
   14654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14655   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14656 fi
   14657 
   14658 fi
   14659 
   14660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5
   14661 $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; }
   14662 fi
   14663 if test "$ac_cv_log1p_drops_zero_sign" = yes
   14664 then
   14665 
   14666 $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h
   14667 
   14668 fi
   14669 
   14670 LIBS=$LIBS_SAVE
   14671 
   14672 # For multiprocessing module, check that sem_open
   14673 # actually works.  For FreeBSD versions <= 7.2,
   14674 # the kernel module that provides POSIX semaphores
   14675 # isn't loaded by default, so an attempt to call
   14676 # sem_open results in a 'Signal 12' error.
   14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
   14678 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
   14679 if ${ac_cv_posix_semaphores_enabled+:} false; then :
   14680   $as_echo_n "(cached) " >&6
   14681 else
   14682   if test "$cross_compiling" = yes; then :
   14683   ac_cv_posix_semaphores_enabled=yes
   14684 else
   14685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14686 /* end confdefs.h.  */
   14687 
   14688 #include <unistd.h>
   14689 #include <fcntl.h>
   14690 #include <stdio.h>
   14691 #include <semaphore.h>
   14692 #include <sys/stat.h>
   14693 
   14694 int main(void) {
   14695   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
   14696   if (a == SEM_FAILED) {
   14697     perror("sem_open");
   14698     return 1;
   14699   }
   14700   sem_close(a);
   14701   sem_unlink("/autoconf");
   14702   return 0;
   14703 }
   14704 
   14705 _ACEOF
   14706 if ac_fn_c_try_run "$LINENO"; then :
   14707   ac_cv_posix_semaphores_enabled=yes
   14708 else
   14709   ac_cv_posix_semaphores_enabled=no
   14710 fi
   14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14712   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14713 fi
   14714 
   14715 
   14716 fi
   14717 
   14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
   14719 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
   14720 if test $ac_cv_posix_semaphores_enabled = no
   14721 then
   14722 
   14723 $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
   14724 
   14725 fi
   14726 
   14727 # Multiprocessing check for broken sem_getvalue
   14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
   14729 $as_echo_n "checking for broken sem_getvalue... " >&6; }
   14730 if ${ac_cv_broken_sem_getvalue+:} false; then :
   14731   $as_echo_n "(cached) " >&6
   14732 else
   14733   if test "$cross_compiling" = yes; then :
   14734   ac_cv_broken_sem_getvalue=yes
   14735 else
   14736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14737 /* end confdefs.h.  */
   14738 
   14739 #include <unistd.h>
   14740 #include <fcntl.h>
   14741 #include <stdio.h>
   14742 #include <semaphore.h>
   14743 #include <sys/stat.h>
   14744 
   14745 int main(void){
   14746   sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
   14747   int count;
   14748   int res;
   14749   if(a==SEM_FAILED){
   14750     perror("sem_open");
   14751     return 1;
   14752 
   14753   }
   14754   res = sem_getvalue(a, &count);
   14755   sem_close(a);
   14756   sem_unlink("/autocftw");
   14757   return res==-1 ? 1 : 0;
   14758 }
   14759 
   14760 _ACEOF
   14761 if ac_fn_c_try_run "$LINENO"; then :
   14762   ac_cv_broken_sem_getvalue=no
   14763 else
   14764   ac_cv_broken_sem_getvalue=yes
   14765 fi
   14766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14767   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14768 fi
   14769 
   14770 
   14771 fi
   14772 
   14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
   14774 $as_echo "$ac_cv_broken_sem_getvalue" >&6; }
   14775 if test $ac_cv_broken_sem_getvalue = yes
   14776 then
   14777 
   14778 $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
   14779 
   14780 fi
   14781 
   14782 ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
   14783 "
   14784 if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then :
   14785   ac_have_decl=1
   14786 else
   14787   ac_have_decl=0
   14788 fi
   14789 
   14790 cat >>confdefs.h <<_ACEOF
   14791 #define HAVE_DECL_RTLD_LAZY $ac_have_decl
   14792 _ACEOF
   14793 ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
   14794 "
   14795 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
   14796   ac_have_decl=1
   14797 else
   14798   ac_have_decl=0
   14799 fi
   14800 
   14801 cat >>confdefs.h <<_ACEOF
   14802 #define HAVE_DECL_RTLD_NOW $ac_have_decl
   14803 _ACEOF
   14804 ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
   14805 "
   14806 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then :
   14807   ac_have_decl=1
   14808 else
   14809   ac_have_decl=0
   14810 fi
   14811 
   14812 cat >>confdefs.h <<_ACEOF
   14813 #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
   14814 _ACEOF
   14815 ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
   14816 "
   14817 if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then :
   14818   ac_have_decl=1
   14819 else
   14820   ac_have_decl=0
   14821 fi
   14822 
   14823 cat >>confdefs.h <<_ACEOF
   14824 #define HAVE_DECL_RTLD_LOCAL $ac_have_decl
   14825 _ACEOF
   14826 ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
   14827 "
   14828 if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then :
   14829   ac_have_decl=1
   14830 else
   14831   ac_have_decl=0
   14832 fi
   14833 
   14834 cat >>confdefs.h <<_ACEOF
   14835 #define HAVE_DECL_RTLD_NODELETE $ac_have_decl
   14836 _ACEOF
   14837 ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
   14838 "
   14839 if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then :
   14840   ac_have_decl=1
   14841 else
   14842   ac_have_decl=0
   14843 fi
   14844 
   14845 cat >>confdefs.h <<_ACEOF
   14846 #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl
   14847 _ACEOF
   14848 ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
   14849 "
   14850 if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then :
   14851   ac_have_decl=1
   14852 else
   14853   ac_have_decl=0
   14854 fi
   14855 
   14856 cat >>confdefs.h <<_ACEOF
   14857 #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl
   14858 _ACEOF
   14859 ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
   14860 "
   14861 if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then :
   14862   ac_have_decl=1
   14863 else
   14864   ac_have_decl=0
   14865 fi
   14866 
   14867 cat >>confdefs.h <<_ACEOF
   14868 #define HAVE_DECL_RTLD_MEMBER $ac_have_decl
   14869 _ACEOF
   14870 
   14871 
   14872 # determine what size digit to use for Python's longs
   14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
   14874 $as_echo_n "checking digit size for Python's longs... " >&6; }
   14875 # Check whether --enable-big-digits was given.
   14876 if test "${enable_big_digits+set}" = set; then :
   14877   enableval=$enable_big_digits; case $enable_big_digits in
   14878 yes)
   14879   enable_big_digits=30 ;;
   14880 no)
   14881   enable_big_digits=15 ;;
   14882 15|30)
   14883   ;;
   14884 *)
   14885   as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
   14886 esac
   14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
   14888 $as_echo "$enable_big_digits" >&6; }
   14889 
   14890 cat >>confdefs.h <<_ACEOF
   14891 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
   14892 _ACEOF
   14893 
   14894 
   14895 else
   14896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
   14897 $as_echo "no value specified" >&6; }
   14898 fi
   14899 
   14900 
   14901 # check for wchar.h
   14902 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
   14903 if test "x$ac_cv_header_wchar_h" = xyes; then :
   14904 
   14905 
   14906 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
   14907 
   14908   wchar_h="yes"
   14909 
   14910 else
   14911   wchar_h="no"
   14912 
   14913 fi
   14914 
   14915 
   14916 
   14917 # determine wchar_t size
   14918 if test "$wchar_h" = yes
   14919 then
   14920   # The cast to long int works around a bug in the HP C Compiler
   14921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   14922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   14923 # This bug is HP SR number 8606223364.
   14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
   14925 $as_echo_n "checking size of wchar_t... " >&6; }
   14926 if ${ac_cv_sizeof_wchar_t+:} false; then :
   14927   $as_echo_n "(cached) " >&6
   14928 else
   14929   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h>
   14930 "; then :
   14931 
   14932 else
   14933   if test "$ac_cv_type_wchar_t" = yes; then
   14934      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14936 as_fn_error 77 "cannot compute sizeof (wchar_t)
   14937 See \`config.log' for more details" "$LINENO" 5; }
   14938    else
   14939      ac_cv_sizeof_wchar_t=0
   14940    fi
   14941 fi
   14942 
   14943 fi
   14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
   14945 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
   14946 
   14947 
   14948 
   14949 cat >>confdefs.h <<_ACEOF
   14950 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
   14951 _ACEOF
   14952 
   14953 
   14954 fi
   14955 
   14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
   14957 $as_echo_n "checking for UCS-4 tcl... " >&6; }
   14958 have_ucs4_tcl=no
   14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14960 /* end confdefs.h.  */
   14961 
   14962 #include <tcl.h>
   14963 #if TCL_UTF_MAX != 6
   14964 # error "NOT UCS4_TCL"
   14965 #endif
   14966 int
   14967 main ()
   14968 {
   14969 
   14970   ;
   14971   return 0;
   14972 }
   14973 _ACEOF
   14974 if ac_fn_c_try_compile "$LINENO"; then :
   14975 
   14976 
   14977 $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
   14978 
   14979   have_ucs4_tcl=yes
   14980 
   14981 fi
   14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
   14984 $as_echo "$have_ucs4_tcl" >&6; }
   14985 
   14986 # check whether wchar_t is signed or not
   14987 if test "$wchar_h" = yes
   14988 then
   14989   # check whether wchar_t is signed or not
   14990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
   14991 $as_echo_n "checking whether wchar_t is signed... " >&6; }
   14992   if ${ac_cv_wchar_t_signed+:} false; then :
   14993   $as_echo_n "(cached) " >&6
   14994 else
   14995 
   14996   if test "$cross_compiling" = yes; then :
   14997   ac_cv_wchar_t_signed=yes
   14998 else
   14999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15000 /* end confdefs.h.  */
   15001 
   15002   #include <wchar.h>
   15003   int main()
   15004   {
   15005 	/* Success: exit code 0 */
   15006         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
   15007   }
   15008 
   15009 _ACEOF
   15010 if ac_fn_c_try_run "$LINENO"; then :
   15011   ac_cv_wchar_t_signed=yes
   15012 else
   15013   ac_cv_wchar_t_signed=no
   15014 fi
   15015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15016   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15017 fi
   15018 
   15019 fi
   15020 
   15021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
   15022 $as_echo "$ac_cv_wchar_t_signed" >&6; }
   15023 fi
   15024 
   15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
   15026 $as_echo_n "checking whether wchar_t is usable... " >&6; }
   15027 # wchar_t is only usable if it maps to an unsigned type
   15028 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
   15029           -a "$ac_cv_wchar_t_signed" = "no"
   15030 then
   15031 
   15032 $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
   15033 
   15034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15035 $as_echo "yes" >&6; }
   15036 else
   15037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15038 $as_echo "no" >&6; }
   15039 fi
   15040 
   15041 # check for endianness
   15042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   15043 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   15044 if ${ac_cv_c_bigendian+:} false; then :
   15045   $as_echo_n "(cached) " >&6
   15046 else
   15047   ac_cv_c_bigendian=unknown
   15048     # See if we're dealing with a universal compiler.
   15049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15050 /* end confdefs.h.  */
   15051 #ifndef __APPLE_CC__
   15052 	       not a universal capable compiler
   15053 	     #endif
   15054 	     typedef int dummy;
   15055 
   15056 _ACEOF
   15057 if ac_fn_c_try_compile "$LINENO"; then :
   15058 
   15059 	# Check for potential -arch flags.  It is not universal unless
   15060 	# there are at least two -arch flags with different values.
   15061 	ac_arch=
   15062 	ac_prev=
   15063 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   15064 	 if test -n "$ac_prev"; then
   15065 	   case $ac_word in
   15066 	     i?86 | x86_64 | ppc | ppc64)
   15067 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   15068 		 ac_arch=$ac_word
   15069 	       else
   15070 		 ac_cv_c_bigendian=universal
   15071 		 break
   15072 	       fi
   15073 	       ;;
   15074 	   esac
   15075 	   ac_prev=
   15076 	 elif test "x$ac_word" = "x-arch"; then
   15077 	   ac_prev=arch
   15078 	 fi
   15079        done
   15080 fi
   15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15082     if test $ac_cv_c_bigendian = unknown; then
   15083       # See if sys/param.h defines the BYTE_ORDER macro.
   15084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15085 /* end confdefs.h.  */
   15086 #include <sys/types.h>
   15087 	     #include <sys/param.h>
   15088 
   15089 int
   15090 main ()
   15091 {
   15092 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   15093 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   15094 		     && LITTLE_ENDIAN)
   15095 	      bogus endian macros
   15096 	     #endif
   15097 
   15098   ;
   15099   return 0;
   15100 }
   15101 _ACEOF
   15102 if ac_fn_c_try_compile "$LINENO"; then :
   15103   # It does; now see whether it defined to BIG_ENDIAN or not.
   15104 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15105 /* end confdefs.h.  */
   15106 #include <sys/types.h>
   15107 		#include <sys/param.h>
   15108 
   15109 int
   15110 main ()
   15111 {
   15112 #if BYTE_ORDER != BIG_ENDIAN
   15113 		 not big endian
   15114 		#endif
   15115 
   15116   ;
   15117   return 0;
   15118 }
   15119 _ACEOF
   15120 if ac_fn_c_try_compile "$LINENO"; then :
   15121   ac_cv_c_bigendian=yes
   15122 else
   15123   ac_cv_c_bigendian=no
   15124 fi
   15125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15126 fi
   15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15128     fi
   15129     if test $ac_cv_c_bigendian = unknown; then
   15130       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   15131       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15132 /* end confdefs.h.  */
   15133 #include <limits.h>
   15134 
   15135 int
   15136 main ()
   15137 {
   15138 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   15139 	      bogus endian macros
   15140 	     #endif
   15141 
   15142   ;
   15143   return 0;
   15144 }
   15145 _ACEOF
   15146 if ac_fn_c_try_compile "$LINENO"; then :
   15147   # It does; now see whether it defined to _BIG_ENDIAN or not.
   15148 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15149 /* end confdefs.h.  */
   15150 #include <limits.h>
   15151 
   15152 int
   15153 main ()
   15154 {
   15155 #ifndef _BIG_ENDIAN
   15156 		 not big endian
   15157 		#endif
   15158 
   15159   ;
   15160   return 0;
   15161 }
   15162 _ACEOF
   15163 if ac_fn_c_try_compile "$LINENO"; then :
   15164   ac_cv_c_bigendian=yes
   15165 else
   15166   ac_cv_c_bigendian=no
   15167 fi
   15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15169 fi
   15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15171     fi
   15172     if test $ac_cv_c_bigendian = unknown; then
   15173       # Compile a test program.
   15174       if test "$cross_compiling" = yes; then :
   15175   # Try to guess by grepping values from an object file.
   15176 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15177 /* end confdefs.h.  */
   15178 short int ascii_mm[] =
   15179 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   15180 		short int ascii_ii[] =
   15181 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   15182 		int use_ascii (int i) {
   15183 		  return ascii_mm[i] + ascii_ii[i];
   15184 		}
   15185 		short int ebcdic_ii[] =
   15186 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   15187 		short int ebcdic_mm[] =
   15188 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   15189 		int use_ebcdic (int i) {
   15190 		  return ebcdic_mm[i] + ebcdic_ii[i];
   15191 		}
   15192 		extern int foo;
   15193 
   15194 int
   15195 main ()
   15196 {
   15197 return use_ascii (foo) == use_ebcdic (foo);
   15198   ;
   15199   return 0;
   15200 }
   15201 _ACEOF
   15202 if ac_fn_c_try_compile "$LINENO"; then :
   15203   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   15204 	      ac_cv_c_bigendian=yes
   15205 	    fi
   15206 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   15207 	      if test "$ac_cv_c_bigendian" = unknown; then
   15208 		ac_cv_c_bigendian=no
   15209 	      else
   15210 		# finding both strings is unlikely to happen, but who knows?
   15211 		ac_cv_c_bigendian=unknown
   15212 	      fi
   15213 	    fi
   15214 fi
   15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15216 else
   15217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15218 /* end confdefs.h.  */
   15219 $ac_includes_default
   15220 int
   15221 main ()
   15222 {
   15223 
   15224 	     /* Are we little or big endian?  From Harbison&Steele.  */
   15225 	     union
   15226 	     {
   15227 	       long int l;
   15228 	       char c[sizeof (long int)];
   15229 	     } u;
   15230 	     u.l = 1;
   15231 	     return u.c[sizeof (long int) - 1] == 1;
   15232 
   15233   ;
   15234   return 0;
   15235 }
   15236 _ACEOF
   15237 if ac_fn_c_try_run "$LINENO"; then :
   15238   ac_cv_c_bigendian=no
   15239 else
   15240   ac_cv_c_bigendian=yes
   15241 fi
   15242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15243   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15244 fi
   15245 
   15246     fi
   15247 fi
   15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   15249 $as_echo "$ac_cv_c_bigendian" >&6; }
   15250  case $ac_cv_c_bigendian in #(
   15251    yes)
   15252      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   15253 ;; #(
   15254    no)
   15255       ;; #(
   15256    universal)
   15257 
   15258 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   15259 
   15260      ;; #(
   15261    *)
   15262      as_fn_error $? "unknown endianness
   15263  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   15264  esac
   15265 
   15266 
   15267 # ABI version string for Python extension modules.  This appears between the
   15268 # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated
   15269 # from the following attributes which affect the ABI of this Python build (in
   15270 # this order):
   15271 #
   15272 # * The Python implementation (always 'cpython-' for us)
   15273 # * The major and minor version numbers
   15274 # * --with-pydebug (adds a 'd')
   15275 # * --with-pymalloc (adds a 'm')
   15276 # * --with-wide-unicode (adds a 'u')
   15277 #
   15278 # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
   15279 # would get a shared library ABI version tag of 'cpython-32dmu' and shared
   15280 # libraries would be named 'foo.cpython-32dmu.so'.
   15281 
   15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
   15283 $as_echo_n "checking ABIFLAGS... " >&6; }
   15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
   15285 $as_echo "$ABIFLAGS" >&6; }
   15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
   15287 $as_echo_n "checking SOABI... " >&6; }
   15288 SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
   15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
   15290 $as_echo "$SOABI" >&6; }
   15291 
   15292 
   15293 case $ac_sys_system in
   15294     Linux*|GNU*|Darwin)
   15295 	EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
   15296     *)
   15297 	EXT_SUFFIX=${SHLIB_SUFFIX};;
   15298 esac
   15299 
   15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
   15301 $as_echo_n "checking LDVERSION... " >&6; }
   15302 LDVERSION='$(VERSION)$(ABIFLAGS)'
   15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
   15304 $as_echo "$LDVERSION" >&6; }
   15305 
   15306 
   15307 if test x$PLATFORM_TRIPLET = x; then
   15308   LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
   15309 else
   15310   LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
   15311 fi
   15312 
   15313 
   15314 # Check whether right shifting a negative integer extends the sign bit
   15315 # or fills with zeros (like the Cray J90, according to Tim Peters).
   15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
   15317 $as_echo_n "checking whether right shift extends the sign bit... " >&6; }
   15318 if ${ac_cv_rshift_extends_sign+:} false; then :
   15319   $as_echo_n "(cached) " >&6
   15320 else
   15321 
   15322 if test "$cross_compiling" = yes; then :
   15323   ac_cv_rshift_extends_sign=yes
   15324 else
   15325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15326 /* end confdefs.h.  */
   15327 
   15328 int main()
   15329 {
   15330 	exit(((-1)>>3 == -1) ? 0 : 1);
   15331 }
   15332 
   15333 _ACEOF
   15334 if ac_fn_c_try_run "$LINENO"; then :
   15335   ac_cv_rshift_extends_sign=yes
   15336 else
   15337   ac_cv_rshift_extends_sign=no
   15338 fi
   15339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15340   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15341 fi
   15342 
   15343 fi
   15344 
   15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
   15346 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
   15347 if test "$ac_cv_rshift_extends_sign" = no
   15348 then
   15349 
   15350 $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
   15351 
   15352 fi
   15353 
   15354 # check for getc_unlocked and related locking functions
   15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
   15356 $as_echo_n "checking for getc_unlocked() and friends... " >&6; }
   15357 if ${ac_cv_have_getc_unlocked+:} false; then :
   15358   $as_echo_n "(cached) " >&6
   15359 else
   15360 
   15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15362 /* end confdefs.h.  */
   15363 #include <stdio.h>
   15364 int
   15365 main ()
   15366 {
   15367 
   15368 	FILE *f = fopen("/dev/null", "r");
   15369 	flockfile(f);
   15370 	getc_unlocked(f);
   15371 	funlockfile(f);
   15372 
   15373   ;
   15374   return 0;
   15375 }
   15376 _ACEOF
   15377 if ac_fn_c_try_link "$LINENO"; then :
   15378   ac_cv_have_getc_unlocked=yes
   15379 else
   15380   ac_cv_have_getc_unlocked=no
   15381 fi
   15382 rm -f core conftest.err conftest.$ac_objext \
   15383     conftest$ac_exeext conftest.$ac_ext
   15384 fi
   15385 
   15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
   15387 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
   15388 if test "$ac_cv_have_getc_unlocked" = yes
   15389 then
   15390 
   15391 $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
   15392 
   15393 fi
   15394 
   15395 # check where readline lives
   15396 # save the value of LIBS so we don't actually link Python with readline
   15397 LIBS_no_readline=$LIBS
   15398 
   15399 # On some systems we need to link readline to a termcap compatible
   15400 # library.  NOTE: Keep the precedence of listed libraries synchronised
   15401 # with setup.py.
   15402 py_cv_lib_readline=no
   15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
   15404 $as_echo_n "checking how to link readline libs... " >&6; }
   15405 for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
   15406   if test -z "$py_libtermcap"; then
   15407     READLINE_LIBS="-lreadline"
   15408   else
   15409     READLINE_LIBS="-lreadline -l$py_libtermcap"
   15410   fi
   15411   LIBS="$READLINE_LIBS $LIBS_no_readline"
   15412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15413 /* end confdefs.h.  */
   15414 
   15415 /* Override any GCC internal prototype to avoid an error.
   15416    Use char because int might match the return type of a GCC
   15417    builtin and then its argument prototype would still apply.  */
   15418 #ifdef __cplusplus
   15419 extern "C"
   15420 #endif
   15421 char readline ();
   15422 int
   15423 main ()
   15424 {
   15425 return readline ();
   15426   ;
   15427   return 0;
   15428 }
   15429 _ACEOF
   15430 if ac_fn_c_try_link "$LINENO"; then :
   15431   py_cv_lib_readline=yes
   15432 fi
   15433 rm -f core conftest.err conftest.$ac_objext \
   15434     conftest$ac_exeext conftest.$ac_ext
   15435   if test $py_cv_lib_readline = yes; then
   15436     break
   15437   fi
   15438 done
   15439 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
   15440 #AC_SUBST([READLINE_LIBS])
   15441 if test $py_cv_lib_readline = no; then
   15442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   15443 $as_echo "none" >&6; }
   15444 else
   15445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
   15446 $as_echo "$READLINE_LIBS" >&6; }
   15447 
   15448 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
   15449 
   15450 fi
   15451 
   15452 # check for readline 2.2
   15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15454 /* end confdefs.h.  */
   15455 #include <readline/readline.h>
   15456 _ACEOF
   15457 if ac_fn_c_try_cpp "$LINENO"; then :
   15458   have_readline=yes
   15459 else
   15460   have_readline=no
   15461 
   15462 fi
   15463 rm -f conftest.err conftest.i conftest.$ac_ext
   15464 if test $have_readline = yes
   15465 then
   15466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15467 /* end confdefs.h.  */
   15468 #include <readline/readline.h>
   15469 
   15470 _ACEOF
   15471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15472   $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
   15473 
   15474 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
   15475 
   15476 fi
   15477 rm -f conftest*
   15478 
   15479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15480 /* end confdefs.h.  */
   15481 #include <readline/readline.h>
   15482 
   15483 _ACEOF
   15484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15485   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
   15486 
   15487 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
   15488 
   15489 fi
   15490 rm -f conftest*
   15491 
   15492 fi
   15493 
   15494 # check for readline 4.0
   15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
   15496 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
   15497 if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
   15498   $as_echo_n "(cached) " >&6
   15499 else
   15500   ac_check_lib_save_LIBS=$LIBS
   15501 LIBS="-lreadline $READLINE_LIBS $LIBS"
   15502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15503 /* end confdefs.h.  */
   15504 
   15505 /* Override any GCC internal prototype to avoid an error.
   15506    Use char because int might match the return type of a GCC
   15507    builtin and then its argument prototype would still apply.  */
   15508 #ifdef __cplusplus
   15509 extern "C"
   15510 #endif
   15511 char rl_pre_input_hook ();
   15512 int
   15513 main ()
   15514 {
   15515 return rl_pre_input_hook ();
   15516   ;
   15517   return 0;
   15518 }
   15519 _ACEOF
   15520 if ac_fn_c_try_link "$LINENO"; then :
   15521   ac_cv_lib_readline_rl_pre_input_hook=yes
   15522 else
   15523   ac_cv_lib_readline_rl_pre_input_hook=no
   15524 fi
   15525 rm -f core conftest.err conftest.$ac_objext \
   15526     conftest$ac_exeext conftest.$ac_ext
   15527 LIBS=$ac_check_lib_save_LIBS
   15528 fi
   15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
   15530 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
   15531 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
   15532 
   15533 $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
   15534 
   15535 fi
   15536 
   15537 
   15538 # also in 4.0
   15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
   15540 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
   15541 if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
   15542   $as_echo_n "(cached) " >&6
   15543 else
   15544   ac_check_lib_save_LIBS=$LIBS
   15545 LIBS="-lreadline $READLINE_LIBS $LIBS"
   15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15547 /* end confdefs.h.  */
   15548 
   15549 /* Override any GCC internal prototype to avoid an error.
   15550    Use char because int might match the return type of a GCC
   15551    builtin and then its argument prototype would still apply.  */
   15552 #ifdef __cplusplus
   15553 extern "C"
   15554 #endif
   15555 char rl_completion_display_matches_hook ();
   15556 int
   15557 main ()
   15558 {
   15559 return rl_completion_display_matches_hook ();
   15560   ;
   15561   return 0;
   15562 }
   15563 _ACEOF
   15564 if ac_fn_c_try_link "$LINENO"; then :
   15565   ac_cv_lib_readline_rl_completion_display_matches_hook=yes
   15566 else
   15567   ac_cv_lib_readline_rl_completion_display_matches_hook=no
   15568 fi
   15569 rm -f core conftest.err conftest.$ac_objext \
   15570     conftest$ac_exeext conftest.$ac_ext
   15571 LIBS=$ac_check_lib_save_LIBS
   15572 fi
   15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
   15574 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
   15575 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
   15576 
   15577 $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
   15578 
   15579 fi
   15580 
   15581 
   15582 # also in 4.0, but not in editline
   15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
   15584 $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
   15585 if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
   15586   $as_echo_n "(cached) " >&6
   15587 else
   15588   ac_check_lib_save_LIBS=$LIBS
   15589 LIBS="-lreadline $READLINE_LIBS $LIBS"
   15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15591 /* end confdefs.h.  */
   15592 
   15593 /* Override any GCC internal prototype to avoid an error.
   15594    Use char because int might match the return type of a GCC
   15595    builtin and then its argument prototype would still apply.  */
   15596 #ifdef __cplusplus
   15597 extern "C"
   15598 #endif
   15599 char rl_resize_terminal ();
   15600 int
   15601 main ()
   15602 {
   15603 return rl_resize_terminal ();
   15604   ;
   15605   return 0;
   15606 }
   15607 _ACEOF
   15608 if ac_fn_c_try_link "$LINENO"; then :
   15609   ac_cv_lib_readline_rl_resize_terminal=yes
   15610 else
   15611   ac_cv_lib_readline_rl_resize_terminal=no
   15612 fi
   15613 rm -f core conftest.err conftest.$ac_objext \
   15614     conftest$ac_exeext conftest.$ac_ext
   15615 LIBS=$ac_check_lib_save_LIBS
   15616 fi
   15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
   15618 $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
   15619 if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
   15620 
   15621 $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
   15622 
   15623 fi
   15624 
   15625 
   15626 # check for readline 4.2
   15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
   15628 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
   15629 if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
   15630   $as_echo_n "(cached) " >&6
   15631 else
   15632   ac_check_lib_save_LIBS=$LIBS
   15633 LIBS="-lreadline $READLINE_LIBS $LIBS"
   15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15635 /* end confdefs.h.  */
   15636 
   15637 /* Override any GCC internal prototype to avoid an error.
   15638    Use char because int might match the return type of a GCC
   15639    builtin and then its argument prototype would still apply.  */
   15640 #ifdef __cplusplus
   15641 extern "C"
   15642 #endif
   15643 char rl_completion_matches ();
   15644 int
   15645 main ()
   15646 {
   15647 return rl_completion_matches ();
   15648   ;
   15649   return 0;
   15650 }
   15651 _ACEOF
   15652 if ac_fn_c_try_link "$LINENO"; then :
   15653   ac_cv_lib_readline_rl_completion_matches=yes
   15654 else
   15655   ac_cv_lib_readline_rl_completion_matches=no
   15656 fi
   15657 rm -f core conftest.err conftest.$ac_objext \
   15658     conftest$ac_exeext conftest.$ac_ext
   15659 LIBS=$ac_check_lib_save_LIBS
   15660 fi
   15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
   15662 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
   15663 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
   15664 
   15665 $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
   15666 
   15667 fi
   15668 
   15669 
   15670 # also in readline 4.2
   15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15672 /* end confdefs.h.  */
   15673 #include <readline/readline.h>
   15674 _ACEOF
   15675 if ac_fn_c_try_cpp "$LINENO"; then :
   15676   have_readline=yes
   15677 else
   15678   have_readline=no
   15679 
   15680 fi
   15681 rm -f conftest.err conftest.i conftest.$ac_ext
   15682 if test $have_readline = yes
   15683 then
   15684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15685 /* end confdefs.h.  */
   15686 #include <readline/readline.h>
   15687 
   15688 _ACEOF
   15689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15690   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
   15691 
   15692 $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
   15693 
   15694 fi
   15695 rm -f conftest*
   15696 
   15697 fi
   15698 
   15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5
   15700 $as_echo_n "checking for append_history in -lreadline... " >&6; }
   15701 if ${ac_cv_lib_readline_append_history+:} false; then :
   15702   $as_echo_n "(cached) " >&6
   15703 else
   15704   ac_check_lib_save_LIBS=$LIBS
   15705 LIBS="-lreadline $READLINE_LIBS $LIBS"
   15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15707 /* end confdefs.h.  */
   15708 
   15709 /* Override any GCC internal prototype to avoid an error.
   15710    Use char because int might match the return type of a GCC
   15711    builtin and then its argument prototype would still apply.  */
   15712 #ifdef __cplusplus
   15713 extern "C"
   15714 #endif
   15715 char append_history ();
   15716 int
   15717 main ()
   15718 {
   15719 return append_history ();
   15720   ;
   15721   return 0;
   15722 }
   15723 _ACEOF
   15724 if ac_fn_c_try_link "$LINENO"; then :
   15725   ac_cv_lib_readline_append_history=yes
   15726 else
   15727   ac_cv_lib_readline_append_history=no
   15728 fi
   15729 rm -f core conftest.err conftest.$ac_objext \
   15730     conftest$ac_exeext conftest.$ac_ext
   15731 LIBS=$ac_check_lib_save_LIBS
   15732 fi
   15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5
   15734 $as_echo "$ac_cv_lib_readline_append_history" >&6; }
   15735 if test "x$ac_cv_lib_readline_append_history" = xyes; then :
   15736 
   15737 $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
   15738 
   15739 fi
   15740 
   15741 
   15742 # End of readline checks: restore LIBS
   15743 LIBS=$LIBS_no_readline
   15744 
   15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
   15746 $as_echo_n "checking for broken nice()... " >&6; }
   15747 if ${ac_cv_broken_nice+:} false; then :
   15748   $as_echo_n "(cached) " >&6
   15749 else
   15750 
   15751 if test "$cross_compiling" = yes; then :
   15752   ac_cv_broken_nice=no
   15753 else
   15754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15755 /* end confdefs.h.  */
   15756 
   15757 #include <stdlib.h>
   15758 #include <unistd.h>
   15759 int main()
   15760 {
   15761 	int val1 = nice(1);
   15762 	if (val1 != -1 && val1 == nice(2))
   15763 		exit(0);
   15764 	exit(1);
   15765 }
   15766 
   15767 _ACEOF
   15768 if ac_fn_c_try_run "$LINENO"; then :
   15769   ac_cv_broken_nice=yes
   15770 else
   15771   ac_cv_broken_nice=no
   15772 fi
   15773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15774   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15775 fi
   15776 
   15777 fi
   15778 
   15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
   15780 $as_echo "$ac_cv_broken_nice" >&6; }
   15781 if test "$ac_cv_broken_nice" = yes
   15782 then
   15783 
   15784 $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
   15785 
   15786 fi
   15787 
   15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
   15789 $as_echo_n "checking for broken poll()... " >&6; }
   15790 if ${ac_cv_broken_poll+:} false; then :
   15791   $as_echo_n "(cached) " >&6
   15792 else
   15793   if test "$cross_compiling" = yes; then :
   15794   ac_cv_broken_poll=no
   15795 else
   15796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15797 /* end confdefs.h.  */
   15798 
   15799 #include <poll.h>
   15800 
   15801 int main()
   15802 {
   15803     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
   15804     int poll_test;
   15805 
   15806     close (42);
   15807 
   15808     poll_test = poll(&poll_struct, 1, 0);
   15809     if (poll_test < 0)
   15810         return 0;
   15811     else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
   15812         return 0;
   15813     else
   15814         return 1;
   15815 }
   15816 
   15817 _ACEOF
   15818 if ac_fn_c_try_run "$LINENO"; then :
   15819   ac_cv_broken_poll=yes
   15820 else
   15821   ac_cv_broken_poll=no
   15822 fi
   15823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15824   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15825 fi
   15826 
   15827 fi
   15828 
   15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
   15830 $as_echo "$ac_cv_broken_poll" >&6; }
   15831 if test "$ac_cv_broken_poll" = yes
   15832 then
   15833 
   15834 $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
   15835 
   15836 fi
   15837 
   15838 # check tzset(3) exists and works like we expect it to
   15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
   15840 $as_echo_n "checking for working tzset()... " >&6; }
   15841 if ${ac_cv_working_tzset+:} false; then :
   15842   $as_echo_n "(cached) " >&6
   15843 else
   15844 
   15845 if test "$cross_compiling" = yes; then :
   15846   ac_cv_working_tzset=no
   15847 else
   15848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15849 /* end confdefs.h.  */
   15850 
   15851 #include <stdlib.h>
   15852 #include <time.h>
   15853 #include <string.h>
   15854 
   15855 #if HAVE_TZNAME
   15856 extern char *tzname[];
   15857 #endif
   15858 
   15859 int main()
   15860 {
   15861 	/* Note that we need to ensure that not only does tzset(3)
   15862 	   do 'something' with localtime, but it works as documented
   15863 	   in the library reference and as expected by the test suite.
   15864 	   This includes making sure that tzname is set properly if
   15865 	   tm->tm_zone does not exist since it is the alternative way
   15866 	   of getting timezone info.
   15867 
   15868 	   Red Hat 6.2 doesn't understand the southern hemisphere
   15869 	   after New Year's Day.
   15870 	*/
   15871 
   15872 	time_t groundhogday = 1044144000; /* GMT-based */
   15873 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
   15874 
   15875 	putenv("TZ=UTC+0");
   15876 	tzset();
   15877 	if (localtime(&groundhogday)->tm_hour != 0)
   15878 	    exit(1);
   15879 #if HAVE_TZNAME
   15880 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */
   15881 	if (strcmp(tzname[0], "UTC") ||
   15882 		(tzname[1][0] != 0 && tzname[1][0] != ' '))
   15883 	    exit(1);
   15884 #endif
   15885 
   15886 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
   15887 	tzset();
   15888 	if (localtime(&groundhogday)->tm_hour != 19)
   15889 	    exit(1);
   15890 #if HAVE_TZNAME
   15891 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
   15892 	    exit(1);
   15893 #endif
   15894 
   15895 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
   15896 	tzset();
   15897 	if (localtime(&groundhogday)->tm_hour != 11)
   15898 	    exit(1);
   15899 #if HAVE_TZNAME
   15900 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
   15901 	    exit(1);
   15902 #endif
   15903 
   15904 #if HAVE_STRUCT_TM_TM_ZONE
   15905 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
   15906 	    exit(1);
   15907 	if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
   15908 	    exit(1);
   15909 #endif
   15910 
   15911 	exit(0);
   15912 }
   15913 
   15914 _ACEOF
   15915 if ac_fn_c_try_run "$LINENO"; then :
   15916   ac_cv_working_tzset=yes
   15917 else
   15918   ac_cv_working_tzset=no
   15919 fi
   15920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15921   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15922 fi
   15923 
   15924 fi
   15925 
   15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
   15927 $as_echo "$ac_cv_working_tzset" >&6; }
   15928 if test "$ac_cv_working_tzset" = yes
   15929 then
   15930 
   15931 $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
   15932 
   15933 fi
   15934 
   15935 # Look for subsecond timestamps in struct stat
   15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
   15937 $as_echo_n "checking for tv_nsec in struct stat... " >&6; }
   15938 if ${ac_cv_stat_tv_nsec+:} false; then :
   15939   $as_echo_n "(cached) " >&6
   15940 else
   15941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15942 /* end confdefs.h.  */
   15943 #include <sys/stat.h>
   15944 int
   15945 main ()
   15946 {
   15947 
   15948 struct stat st;
   15949 st.st_mtim.tv_nsec = 1;
   15950 
   15951   ;
   15952   return 0;
   15953 }
   15954 _ACEOF
   15955 if ac_fn_c_try_compile "$LINENO"; then :
   15956   ac_cv_stat_tv_nsec=yes
   15957 else
   15958   ac_cv_stat_tv_nsec=no
   15959 fi
   15960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15961 fi
   15962 
   15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
   15964 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
   15965 if test "$ac_cv_stat_tv_nsec" = yes
   15966 then
   15967 
   15968 $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
   15969 
   15970 fi
   15971 
   15972 # Look for BSD style subsecond timestamps in struct stat
   15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
   15974 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
   15975 if ${ac_cv_stat_tv_nsec2+:} false; then :
   15976   $as_echo_n "(cached) " >&6
   15977 else
   15978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15979 /* end confdefs.h.  */
   15980 #include <sys/stat.h>
   15981 int
   15982 main ()
   15983 {
   15984 
   15985 struct stat st;
   15986 st.st_mtimespec.tv_nsec = 1;
   15987 
   15988   ;
   15989   return 0;
   15990 }
   15991 _ACEOF
   15992 if ac_fn_c_try_compile "$LINENO"; then :
   15993   ac_cv_stat_tv_nsec2=yes
   15994 else
   15995   ac_cv_stat_tv_nsec2=no
   15996 fi
   15997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15998 fi
   15999 
   16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
   16001 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
   16002 if test "$ac_cv_stat_tv_nsec2" = yes
   16003 then
   16004 
   16005 $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
   16006 
   16007 fi
   16008 
   16009 # first curses header check
   16010 ac_save_cppflags="$CPPFLAGS"
   16011 if test "$cross_compiling" = no; then
   16012   CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
   16013 fi
   16014 
   16015 for ac_header in curses.h ncurses.h
   16016 do :
   16017   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   16018 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   16019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   16020   cat >>confdefs.h <<_ACEOF
   16021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16022 _ACEOF
   16023 
   16024 fi
   16025 
   16026 done
   16027 
   16028 
   16029 # On Solaris, term.h requires curses.h
   16030 for ac_header in term.h
   16031 do :
   16032   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
   16033 #ifdef HAVE_CURSES_H
   16034 #include <curses.h>
   16035 #endif
   16036 
   16037 "
   16038 if test "x$ac_cv_header_term_h" = xyes; then :
   16039   cat >>confdefs.h <<_ACEOF
   16040 #define HAVE_TERM_H 1
   16041 _ACEOF
   16042 
   16043 fi
   16044 
   16045 done
   16046 
   16047 
   16048 # On HP/UX 11.0, mvwdelch is a block with a return statement
   16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
   16050 $as_echo_n "checking whether mvwdelch is an expression... " >&6; }
   16051 if ${ac_cv_mvwdelch_is_expression+:} false; then :
   16052   $as_echo_n "(cached) " >&6
   16053 else
   16054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16055 /* end confdefs.h.  */
   16056 #include <curses.h>
   16057 int
   16058 main ()
   16059 {
   16060 
   16061   int rtn;
   16062   rtn = mvwdelch(0,0,0);
   16063 
   16064   ;
   16065   return 0;
   16066 }
   16067 _ACEOF
   16068 if ac_fn_c_try_compile "$LINENO"; then :
   16069   ac_cv_mvwdelch_is_expression=yes
   16070 else
   16071   ac_cv_mvwdelch_is_expression=no
   16072 fi
   16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16074 fi
   16075 
   16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
   16077 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
   16078 
   16079 if test "$ac_cv_mvwdelch_is_expression" = yes
   16080 then
   16081 
   16082 $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
   16083 
   16084 fi
   16085 
   16086 # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
   16087 # structs since version 5.7.  If the macro is defined as zero before including
   16088 # [n]curses.h, ncurses will expose fields of the structs regardless of the
   16089 # configuration.
   16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
   16091 $as_echo_n "checking whether WINDOW has _flags... " >&6; }
   16092 if ${ac_cv_window_has_flags+:} false; then :
   16093   $as_echo_n "(cached) " >&6
   16094 else
   16095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16096 /* end confdefs.h.  */
   16097 
   16098   #define NCURSES_OPAQUE 0
   16099   #include <curses.h>
   16100 
   16101 int
   16102 main ()
   16103 {
   16104 
   16105   WINDOW *w;
   16106   w->_flags = 0;
   16107 
   16108   ;
   16109   return 0;
   16110 }
   16111 _ACEOF
   16112 if ac_fn_c_try_compile "$LINENO"; then :
   16113   ac_cv_window_has_flags=yes
   16114 else
   16115   ac_cv_window_has_flags=no
   16116 fi
   16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16118 fi
   16119 
   16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
   16121 $as_echo "$ac_cv_window_has_flags" >&6; }
   16122 
   16123 
   16124 if test "$ac_cv_window_has_flags" = yes
   16125 then
   16126 
   16127 $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
   16128 
   16129 fi
   16130 
   16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
   16132 $as_echo_n "checking for is_pad... " >&6; }
   16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16134 /* end confdefs.h.  */
   16135 #include <curses.h>
   16136 int
   16137 main ()
   16138 {
   16139 
   16140 #ifndef is_pad
   16141 void *x=is_pad
   16142 #endif
   16143 
   16144   ;
   16145   return 0;
   16146 }
   16147 _ACEOF
   16148 if ac_fn_c_try_compile "$LINENO"; then :
   16149 
   16150 $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
   16151 
   16152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16153 $as_echo "yes" >&6; }
   16154 else
   16155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16156 $as_echo "no" >&6; }
   16157 
   16158 fi
   16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16160 
   16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
   16162 $as_echo_n "checking for is_term_resized... " >&6; }
   16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16164 /* end confdefs.h.  */
   16165 #include <curses.h>
   16166 int
   16167 main ()
   16168 {
   16169 void *x=is_term_resized
   16170   ;
   16171   return 0;
   16172 }
   16173 _ACEOF
   16174 if ac_fn_c_try_compile "$LINENO"; then :
   16175 
   16176 $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
   16177 
   16178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16179 $as_echo "yes" >&6; }
   16180 else
   16181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16182 $as_echo "no" >&6; }
   16183 
   16184 fi
   16185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16186 
   16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
   16188 $as_echo_n "checking for resize_term... " >&6; }
   16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16190 /* end confdefs.h.  */
   16191 #include <curses.h>
   16192 int
   16193 main ()
   16194 {
   16195 void *x=resize_term
   16196   ;
   16197   return 0;
   16198 }
   16199 _ACEOF
   16200 if ac_fn_c_try_compile "$LINENO"; then :
   16201 
   16202 $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
   16203 
   16204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16205 $as_echo "yes" >&6; }
   16206 else
   16207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16208 $as_echo "no" >&6; }
   16209 
   16210 fi
   16211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16212 
   16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
   16214 $as_echo_n "checking for resizeterm... " >&6; }
   16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16216 /* end confdefs.h.  */
   16217 #include <curses.h>
   16218 int
   16219 main ()
   16220 {
   16221 void *x=resizeterm
   16222   ;
   16223   return 0;
   16224 }
   16225 _ACEOF
   16226 if ac_fn_c_try_compile "$LINENO"; then :
   16227 
   16228 $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
   16229 
   16230    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16231 $as_echo "yes" >&6; }
   16232 else
   16233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16234 $as_echo "no" >&6; }
   16235 
   16236 fi
   16237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16238 
   16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
   16240 $as_echo_n "checking for immedok... " >&6; }
   16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16242 /* end confdefs.h.  */
   16243 #include <curses.h>
   16244 int
   16245 main ()
   16246 {
   16247 
   16248 #ifndef immedok
   16249 void *x=immedok
   16250 #endif
   16251 
   16252   ;
   16253   return 0;
   16254 }
   16255 _ACEOF
   16256 if ac_fn_c_try_compile "$LINENO"; then :
   16257 
   16258 $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
   16259 
   16260    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16261 $as_echo "yes" >&6; }
   16262 else
   16263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16264 $as_echo "no" >&6; }
   16265 
   16266 fi
   16267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16268 
   16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
   16270 $as_echo_n "checking for syncok... " >&6; }
   16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16272 /* end confdefs.h.  */
   16273 #include <curses.h>
   16274 int
   16275 main ()
   16276 {
   16277 
   16278 #ifndef syncok
   16279 void *x=syncok
   16280 #endif
   16281 
   16282   ;
   16283   return 0;
   16284 }
   16285 _ACEOF
   16286 if ac_fn_c_try_compile "$LINENO"; then :
   16287 
   16288 $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
   16289 
   16290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16291 $as_echo "yes" >&6; }
   16292 else
   16293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16294 $as_echo "no" >&6; }
   16295 
   16296 fi
   16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16298 
   16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
   16300 $as_echo_n "checking for wchgat... " >&6; }
   16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16302 /* end confdefs.h.  */
   16303 #include <curses.h>
   16304 int
   16305 main ()
   16306 {
   16307 
   16308 #ifndef wchgat
   16309 void *x=wchgat
   16310 #endif
   16311 
   16312   ;
   16313   return 0;
   16314 }
   16315 _ACEOF
   16316 if ac_fn_c_try_compile "$LINENO"; then :
   16317 
   16318 $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
   16319 
   16320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16321 $as_echo "yes" >&6; }
   16322 else
   16323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16324 $as_echo "no" >&6; }
   16325 
   16326 fi
   16327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16328 
   16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
   16330 $as_echo_n "checking for filter... " >&6; }
   16331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16332 /* end confdefs.h.  */
   16333 #include <curses.h>
   16334 int
   16335 main ()
   16336 {
   16337 
   16338 #ifndef filter
   16339 void *x=filter
   16340 #endif
   16341 
   16342   ;
   16343   return 0;
   16344 }
   16345 _ACEOF
   16346 if ac_fn_c_try_compile "$LINENO"; then :
   16347 
   16348 $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
   16349 
   16350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16351 $as_echo "yes" >&6; }
   16352 else
   16353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16354 $as_echo "no" >&6; }
   16355 
   16356 fi
   16357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16358 
   16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
   16360 $as_echo_n "checking for has_key... " >&6; }
   16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16362 /* end confdefs.h.  */
   16363 #include <curses.h>
   16364 int
   16365 main ()
   16366 {
   16367 
   16368 #ifndef has_key
   16369 void *x=has_key
   16370 #endif
   16371 
   16372   ;
   16373   return 0;
   16374 }
   16375 _ACEOF
   16376 if ac_fn_c_try_compile "$LINENO"; then :
   16377 
   16378 $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
   16379 
   16380    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16381 $as_echo "yes" >&6; }
   16382 else
   16383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16384 $as_echo "no" >&6; }
   16385 
   16386 fi
   16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16388 
   16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
   16390 $as_echo_n "checking for typeahead... " >&6; }
   16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16392 /* end confdefs.h.  */
   16393 #include <curses.h>
   16394 int
   16395 main ()
   16396 {
   16397 
   16398 #ifndef typeahead
   16399 void *x=typeahead
   16400 #endif
   16401 
   16402   ;
   16403   return 0;
   16404 }
   16405 _ACEOF
   16406 if ac_fn_c_try_compile "$LINENO"; then :
   16407 
   16408 $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
   16409 
   16410    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16411 $as_echo "yes" >&6; }
   16412 else
   16413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16414 $as_echo "no" >&6; }
   16415 
   16416 fi
   16417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16418 
   16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
   16420 $as_echo_n "checking for use_env... " >&6; }
   16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16422 /* end confdefs.h.  */
   16423 #include <curses.h>
   16424 int
   16425 main ()
   16426 {
   16427 
   16428 #ifndef use_env
   16429 void *x=use_env
   16430 #endif
   16431 
   16432   ;
   16433   return 0;
   16434 }
   16435 _ACEOF
   16436 if ac_fn_c_try_compile "$LINENO"; then :
   16437 
   16438 $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
   16439 
   16440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16441 $as_echo "yes" >&6; }
   16442 else
   16443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16444 $as_echo "no" >&6; }
   16445 
   16446 fi
   16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16448 # last curses configure check
   16449 CPPFLAGS=$ac_save_cppflags
   16450 
   16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
   16452 $as_echo "$as_me: checking for device files" >&6;}
   16453 
   16454 if test "x$cross_compiling" = xyes; then
   16455   if test "${ac_cv_file__dev_ptmx+set}" != set; then
   16456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
   16457 $as_echo_n "checking for /dev/ptmx... " >&6; }
   16458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
   16459 $as_echo "not set" >&6; }
   16460     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
   16461   fi
   16462   if test "${ac_cv_file__dev_ptc+set}" != set; then
   16463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
   16464 $as_echo_n "checking for /dev/ptc... " >&6; }
   16465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
   16466 $as_echo "not set" >&6; }
   16467     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
   16468   fi
   16469 fi
   16470 
   16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
   16472 $as_echo_n "checking for /dev/ptmx... " >&6; }
   16473 if ${ac_cv_file__dev_ptmx+:} false; then :
   16474   $as_echo_n "(cached) " >&6
   16475 else
   16476   test "$cross_compiling" = yes &&
   16477   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
   16478 if test -r "/dev/ptmx"; then
   16479   ac_cv_file__dev_ptmx=yes
   16480 else
   16481   ac_cv_file__dev_ptmx=no
   16482 fi
   16483 fi
   16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
   16485 $as_echo "$ac_cv_file__dev_ptmx" >&6; }
   16486 if test "x$ac_cv_file__dev_ptmx" = xyes; then :
   16487 
   16488 fi
   16489 
   16490 if test "x$ac_cv_file__dev_ptmx" = xyes; then
   16491 
   16492 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
   16493 
   16494 fi
   16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
   16496 $as_echo_n "checking for /dev/ptc... " >&6; }
   16497 if ${ac_cv_file__dev_ptc+:} false; then :
   16498   $as_echo_n "(cached) " >&6
   16499 else
   16500   test "$cross_compiling" = yes &&
   16501   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
   16502 if test -r "/dev/ptc"; then
   16503   ac_cv_file__dev_ptc=yes
   16504 else
   16505   ac_cv_file__dev_ptc=no
   16506 fi
   16507 fi
   16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
   16509 $as_echo "$ac_cv_file__dev_ptc" >&6; }
   16510 if test "x$ac_cv_file__dev_ptc" = xyes; then :
   16511 
   16512 fi
   16513 
   16514 if test "x$ac_cv_file__dev_ptc" = xyes; then
   16515 
   16516 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
   16517 
   16518 fi
   16519 
   16520 if test $ac_sys_system = Darwin
   16521 then
   16522 	LIBS="$LIBS -framework CoreFoundation"
   16523 fi
   16524 
   16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
   16526 $as_echo_n "checking for %zd printf() format support... " >&6; }
   16527 if ${ac_cv_have_size_t_format+:} false; then :
   16528   $as_echo_n "(cached) " >&6
   16529 else
   16530   if test "$cross_compiling" = yes; then :
   16531   ac_cv_have_size_t_format="cross -- assuming yes"
   16532 
   16533 else
   16534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16535 /* end confdefs.h.  */
   16536 
   16537 #include <stdio.h>
   16538 #include <stddef.h>
   16539 #include <string.h>
   16540 
   16541 #ifdef HAVE_SYS_TYPES_H
   16542 #include <sys/types.h>
   16543 #endif
   16544 
   16545 #ifdef HAVE_SSIZE_T
   16546 typedef ssize_t Py_ssize_t;
   16547 #elif SIZEOF_VOID_P == SIZEOF_LONG
   16548 typedef long Py_ssize_t;
   16549 #else
   16550 typedef int Py_ssize_t;
   16551 #endif
   16552 
   16553 int main()
   16554 {
   16555     char buffer[256];
   16556 
   16557     if(sprintf(buffer, "%zd", (size_t)123) < 0)
   16558        	return 1;
   16559 
   16560     if (strcmp(buffer, "123"))
   16561 	return 1;
   16562 
   16563     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
   16564        	return 1;
   16565 
   16566     if (strcmp(buffer, "-123"))
   16567 	return 1;
   16568 
   16569     return 0;
   16570 }
   16571 
   16572 _ACEOF
   16573 if ac_fn_c_try_run "$LINENO"; then :
   16574   ac_cv_have_size_t_format=yes
   16575 else
   16576   ac_cv_have_size_t_format=no
   16577 fi
   16578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16579   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16580 fi
   16581 
   16582 fi
   16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
   16584 $as_echo "$ac_cv_have_size_t_format" >&6; }
   16585 if test "$ac_cv_have_size_t_format" != no ; then
   16586 
   16587 $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
   16588 
   16589 fi
   16590 
   16591 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
   16592 #ifdef HAVE_SYS_TYPES_H
   16593 #include <sys/types.h>
   16594 #endif
   16595 #ifdef HAVE_SYS_SOCKET_H
   16596 #include <sys/socket.h>
   16597 #endif
   16598 
   16599 "
   16600 if test "x$ac_cv_type_socklen_t" = xyes; then :
   16601 
   16602 else
   16603 
   16604 $as_echo "#define socklen_t int" >>confdefs.h
   16605 
   16606 fi
   16607 
   16608 
   16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
   16610 $as_echo_n "checking for broken mbstowcs... " >&6; }
   16611 if ${ac_cv_broken_mbstowcs+:} false; then :
   16612   $as_echo_n "(cached) " >&6
   16613 else
   16614   if test "$cross_compiling" = yes; then :
   16615   ac_cv_broken_mbstowcs=no
   16616 else
   16617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16618 /* end confdefs.h.  */
   16619 
   16620 #include <stdio.h>
   16621 #include<stdlib.h>
   16622 int main() {
   16623     size_t len = -1;
   16624     const char *str = "text";
   16625     len = mbstowcs(NULL, str, 0);
   16626     return (len != 4);
   16627 }
   16628 
   16629 _ACEOF
   16630 if ac_fn_c_try_run "$LINENO"; then :
   16631   ac_cv_broken_mbstowcs=no
   16632 else
   16633   ac_cv_broken_mbstowcs=yes
   16634 fi
   16635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16636   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16637 fi
   16638 
   16639 fi
   16640 
   16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
   16642 $as_echo "$ac_cv_broken_mbstowcs" >&6; }
   16643 if test "$ac_cv_broken_mbstowcs" = yes
   16644 then
   16645 
   16646 $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
   16647 
   16648 fi
   16649 
   16650 # Check for --with-computed-gotos
   16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
   16652 $as_echo_n "checking for --with-computed-gotos... " >&6; }
   16653 
   16654 # Check whether --with-computed-gotos was given.
   16655 if test "${with_computed_gotos+set}" = set; then :
   16656   withval=$with_computed_gotos;
   16657 if test "$withval" = yes
   16658 then
   16659 
   16660 $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
   16661 
   16662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16663 $as_echo "yes" >&6; }
   16664 fi
   16665 if test "$withval" = no
   16666 then
   16667 
   16668 $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
   16669 
   16670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16671 $as_echo "no" >&6; }
   16672 fi
   16673 
   16674 else
   16675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
   16676 $as_echo "no value specified" >&6; }
   16677 fi
   16678 
   16679 
   16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
   16681 $as_echo_n "checking whether $CC supports computed gotos... " >&6; }
   16682 if ${ac_cv_computed_gotos+:} false; then :
   16683   $as_echo_n "(cached) " >&6
   16684 else
   16685   if test "$cross_compiling" = yes; then :
   16686   if test "${with_computed_gotos+set}" = set; then
   16687    ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
   16688  else
   16689    ac_cv_computed_gotos=no
   16690  fi
   16691 else
   16692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16693 /* end confdefs.h.  */
   16694 
   16695 int main(int argc, char **argv)
   16696 {
   16697     static void *targets[1] = { &&LABEL1 };
   16698     goto LABEL2;
   16699 LABEL1:
   16700     return 0;
   16701 LABEL2:
   16702     goto *targets[0];
   16703     return 1;
   16704 }
   16705 
   16706 _ACEOF
   16707 if ac_fn_c_try_run "$LINENO"; then :
   16708   ac_cv_computed_gotos=yes
   16709 else
   16710   ac_cv_computed_gotos=no
   16711 fi
   16712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16713   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16714 fi
   16715 
   16716 fi
   16717 
   16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
   16719 $as_echo "$ac_cv_computed_gotos" >&6; }
   16720 case "$ac_cv_computed_gotos" in yes*)
   16721 
   16722 $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
   16723 
   16724 esac
   16725 
   16726 case $ac_sys_system in
   16727 AIX*)
   16728 
   16729 $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
   16730  ;;
   16731 esac
   16732 
   16733 
   16734 
   16735 
   16736 for h in `(cd $srcdir;echo Python/thread_*.h)`
   16737 do
   16738   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
   16739 done
   16740 
   16741 
   16742 SRCDIRS="Parser Objects Python Modules Programs"
   16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
   16744 $as_echo_n "checking for build directories... " >&6; }
   16745 for dir in $SRCDIRS; do
   16746     if test ! -d $dir; then
   16747         mkdir $dir
   16748     fi
   16749 done
   16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
   16751 $as_echo "done" >&6; }
   16752 
   16753 # Availability of -O2:
   16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
   16755 $as_echo_n "checking for -O2... " >&6; }
   16756 saved_cflags="$CFLAGS"
   16757 CFLAGS="-O2"
   16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16759 /* end confdefs.h.  */
   16760 
   16761 int
   16762 main ()
   16763 {
   16764 
   16765 
   16766   ;
   16767   return 0;
   16768 }
   16769 _ACEOF
   16770 if ac_fn_c_try_compile "$LINENO"; then :
   16771   have_O2=yes
   16772 else
   16773   have_O2=no
   16774 fi
   16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
   16777 $as_echo "$have_O2" >&6; }
   16778 CFLAGS="$saved_cflags"
   16779 
   16780 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
   16781 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
   16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
   16783 $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
   16784 saved_cflags="$CFLAGS"
   16785 CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
   16786 if test "$have_O2" = no; then
   16787     CFLAGS=""
   16788 fi
   16789 if test "$cross_compiling" = yes; then :
   16790   have_glibc_memmove_bug=undefined
   16791 else
   16792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16793 /* end confdefs.h.  */
   16794 
   16795 #include <stdio.h>
   16796 #include <stdlib.h>
   16797 #include <string.h>
   16798 void foo(void *p, void *q) { memmove(p, q, 19); }
   16799 int main() {
   16800   char a[32] = "123456789000000000";
   16801   foo(&a[9], a);
   16802   if (strcmp(a, "123456789123456789000000000") != 0)
   16803     return 1;
   16804   foo(a, &a[9]);
   16805   if (strcmp(a, "123456789000000000") != 0)
   16806     return 1;
   16807   return 0;
   16808 }
   16809 
   16810 _ACEOF
   16811 if ac_fn_c_try_run "$LINENO"; then :
   16812   have_glibc_memmove_bug=no
   16813 else
   16814   have_glibc_memmove_bug=yes
   16815 fi
   16816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16817   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16818 fi
   16819 
   16820 CFLAGS="$saved_cflags"
   16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
   16822 $as_echo "$have_glibc_memmove_bug" >&6; }
   16823 if test "$have_glibc_memmove_bug" = yes; then
   16824 
   16825 $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
   16826 
   16827 fi
   16828 
   16829 if test "$have_gcc_asm_for_x87" = yes; then
   16830     # Some versions of gcc miscompile inline asm:
   16831     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
   16832     # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
   16833     case $CC in
   16834         *gcc*)
   16835             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
   16836 $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
   16837             saved_cflags="$CFLAGS"
   16838             CFLAGS="-O2"
   16839             if test "$cross_compiling" = yes; then :
   16840   have_ipa_pure_const_bug=undefined
   16841 else
   16842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16843 /* end confdefs.h.  */
   16844 
   16845             __attribute__((noinline)) int
   16846             foo(int *p) {
   16847               int r;
   16848               asm ( "movl \$6, (%1)\n\t"
   16849                     "xorl %0, %0\n\t"
   16850                     : "=r" (r) : "r" (p) : "memory"
   16851               );
   16852               return r;
   16853             }
   16854             int main() {
   16855               int p = 8;
   16856               if ((foo(&p) ? : p) != 6)
   16857                 return 1;
   16858               return 0;
   16859             }
   16860 
   16861 _ACEOF
   16862 if ac_fn_c_try_run "$LINENO"; then :
   16863   have_ipa_pure_const_bug=no
   16864 else
   16865   have_ipa_pure_const_bug=yes
   16866 fi
   16867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16868   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16869 fi
   16870 
   16871             CFLAGS="$saved_cflags"
   16872             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
   16873 $as_echo "$have_ipa_pure_const_bug" >&6; }
   16874             if test "$have_ipa_pure_const_bug" = yes; then
   16875 
   16876 $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
   16877 
   16878             fi
   16879         ;;
   16880     esac
   16881 fi
   16882 
   16883 # Check for stdatomic.h
   16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
   16885 $as_echo_n "checking for stdatomic.h... " >&6; }
   16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16887 /* end confdefs.h.  */
   16888 
   16889 
   16890     #include <stdatomic.h>
   16891     atomic_int value = ATOMIC_VAR_INIT(1);
   16892     int main() {
   16893       int loaded_value = atomic_load(&value);
   16894       return 0;
   16895     }
   16896 
   16897 
   16898 _ACEOF
   16899 if ac_fn_c_try_link "$LINENO"; then :
   16900   have_stdatomic_h=yes
   16901 else
   16902   have_stdatomic_h=no
   16903 fi
   16904 rm -f core conftest.err conftest.$ac_objext \
   16905     conftest$ac_exeext conftest.$ac_ext
   16906 
   16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5
   16908 $as_echo "$have_stdatomic_h" >&6; }
   16909 
   16910 if test "$have_stdatomic_h" = yes; then
   16911 
   16912 $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h
   16913 
   16914 fi
   16915 
   16916 # Check for GCC >= 4.7 __atomic builtins
   16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5
   16918 $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; }
   16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16920 /* end confdefs.h.  */
   16921 
   16922 
   16923     volatile int val = 1;
   16924     int main() {
   16925       __atomic_load_n(&val, __ATOMIC_SEQ_CST);
   16926       return 0;
   16927     }
   16928 
   16929 
   16930 _ACEOF
   16931 if ac_fn_c_try_link "$LINENO"; then :
   16932   have_builtin_atomic=yes
   16933 else
   16934   have_builtin_atomic=no
   16935 fi
   16936 rm -f core conftest.err conftest.$ac_objext \
   16937     conftest$ac_exeext conftest.$ac_ext
   16938 
   16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5
   16940 $as_echo "$have_builtin_atomic" >&6; }
   16941 
   16942 if test "$have_builtin_atomic" = yes; then
   16943 
   16944 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
   16945 
   16946 fi
   16947 
   16948 # ensurepip option
   16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
   16950 $as_echo_n "checking for ensurepip... " >&6; }
   16951 
   16952 # Check whether --with-ensurepip was given.
   16953 if test "${with_ensurepip+set}" = set; then :
   16954   withval=$with_ensurepip;
   16955 else
   16956   with_ensurepip=upgrade
   16957 fi
   16958 
   16959 case $with_ensurepip in #(
   16960   yes|upgrade) :
   16961     ENSUREPIP=upgrade ;; #(
   16962   install) :
   16963     ENSUREPIP=install ;; #(
   16964   no) :
   16965     ENSUREPIP=no ;; #(
   16966   *) :
   16967     as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
   16968 esac
   16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
   16970 $as_echo "$ENSUREPIP" >&6; }
   16971 
   16972 
   16973 # check if the dirent structure of a d_type field and DT_UNKNOWN is defined
   16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
   16975 $as_echo_n "checking if the dirent structure of a d_type field... " >&6; }
   16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16977 /* end confdefs.h.  */
   16978 
   16979 
   16980     #include <dirent.h>
   16981 
   16982     int main() {
   16983       struct dirent entry;
   16984       return entry.d_type == DT_UNKNOWN;
   16985     }
   16986 
   16987 
   16988 _ACEOF
   16989 if ac_fn_c_try_link "$LINENO"; then :
   16990   have_dirent_d_type=yes
   16991 else
   16992   have_dirent_d_type=no
   16993 fi
   16994 rm -f core conftest.err conftest.$ac_objext \
   16995     conftest$ac_exeext conftest.$ac_ext
   16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5
   16997 $as_echo "$have_dirent_d_type" >&6; }
   16998 
   16999 if test "$have_dirent_d_type" = yes; then
   17000 
   17001 $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
   17002 
   17003 fi
   17004 
   17005 # check if the Linux getrandom() syscall is available
   17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
   17007 $as_echo_n "checking for the Linux getrandom() syscall... " >&6; }
   17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17009 /* end confdefs.h.  */
   17010 
   17011 
   17012     #include <unistd.h>
   17013     #include <sys/syscall.h>
   17014     #include <linux/random.h>
   17015 
   17016     int main() {
   17017         char buffer[1];
   17018         const size_t buflen = sizeof(buffer);
   17019         const int flags = GRND_NONBLOCK;
   17020         /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
   17021         (void)syscall(SYS_getrandom, buffer, buflen, flags);
   17022         return 0;
   17023     }
   17024 
   17025 
   17026 _ACEOF
   17027 if ac_fn_c_try_link "$LINENO"; then :
   17028   have_getrandom_syscall=yes
   17029 else
   17030   have_getrandom_syscall=no
   17031 fi
   17032 rm -f core conftest.err conftest.$ac_objext \
   17033     conftest$ac_exeext conftest.$ac_ext
   17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5
   17035 $as_echo "$have_getrandom_syscall" >&6; }
   17036 
   17037 if test "$have_getrandom_syscall" = yes; then
   17038 
   17039 $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
   17040 
   17041 fi
   17042 
   17043 # check if the getrandom() function is available
   17044 # the test was written for the Solaris function of <sys/random.h>
   17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
   17046 $as_echo_n "checking for the getrandom() function... " >&6; }
   17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17048 /* end confdefs.h.  */
   17049 
   17050 
   17051     #include <sys/random.h>
   17052 
   17053     int main() {
   17054         char buffer[1];
   17055         const size_t buflen = sizeof(buffer);
   17056         const int flags = 0;
   17057         /* ignore the result, Python checks for ENOSYS at runtime */
   17058         (void)getrandom(buffer, buflen, flags);
   17059         return 0;
   17060     }
   17061 
   17062 
   17063 _ACEOF
   17064 if ac_fn_c_try_link "$LINENO"; then :
   17065   have_getrandom=yes
   17066 else
   17067   have_getrandom=no
   17068 fi
   17069 rm -f core conftest.err conftest.$ac_objext \
   17070     conftest$ac_exeext conftest.$ac_ext
   17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5
   17072 $as_echo "$have_getrandom" >&6; }
   17073 
   17074 if test "$have_getrandom" = yes; then
   17075 
   17076 $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
   17077 
   17078 fi
   17079 
   17080 # Check for usable OpenSSL
   17081 
   17082     found=false
   17083 
   17084 # Check whether --with-openssl was given.
   17085 if test "${with_openssl+set}" = set; then :
   17086   withval=$with_openssl;
   17087             case "$withval" in
   17088             "" | y | ye | yes | n | no)
   17089             as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
   17090               ;;
   17091             *) ssldirs="$withval"
   17092               ;;
   17093             esac
   17094 
   17095 else
   17096 
   17097             # if pkg-config is installed and openssl has installed a .pc file,
   17098             # then use that information and don't search ssldirs
   17099             if test -n "$ac_tool_prefix"; then
   17100   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   17101 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17103 $as_echo_n "checking for $ac_word... " >&6; }
   17104 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
   17105   $as_echo_n "(cached) " >&6
   17106 else
   17107   if test -n "$PKG_CONFIG"; then
   17108   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
   17109 else
   17110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17111 for as_dir in $PATH
   17112 do
   17113   IFS=$as_save_IFS
   17114   test -z "$as_dir" && as_dir=.
   17115     for ac_exec_ext in '' $ac_executable_extensions; do
   17116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17117     ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
   17118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17119     break 2
   17120   fi
   17121 done
   17122   done
   17123 IFS=$as_save_IFS
   17124 
   17125 fi
   17126 fi
   17127 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
   17128 if test -n "$PKG_CONFIG"; then
   17129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   17130 $as_echo "$PKG_CONFIG" >&6; }
   17131 else
   17132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17133 $as_echo "no" >&6; }
   17134 fi
   17135 
   17136 
   17137 fi
   17138 if test -z "$ac_cv_prog_PKG_CONFIG"; then
   17139   ac_ct_PKG_CONFIG=$PKG_CONFIG
   17140   # Extract the first word of "pkg-config", so it can be a program name with args.
   17141 set dummy pkg-config; ac_word=$2
   17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17143 $as_echo_n "checking for $ac_word... " >&6; }
   17144 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
   17145   $as_echo_n "(cached) " >&6
   17146 else
   17147   if test -n "$ac_ct_PKG_CONFIG"; then
   17148   ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
   17149 else
   17150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17151 for as_dir in $PATH
   17152 do
   17153   IFS=$as_save_IFS
   17154   test -z "$as_dir" && as_dir=.
   17155     for ac_exec_ext in '' $ac_executable_extensions; do
   17156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17157     ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
   17158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17159     break 2
   17160   fi
   17161 done
   17162   done
   17163 IFS=$as_save_IFS
   17164 
   17165 fi
   17166 fi
   17167 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
   17168 if test -n "$ac_ct_PKG_CONFIG"; then
   17169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
   17170 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
   17171 else
   17172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17173 $as_echo "no" >&6; }
   17174 fi
   17175 
   17176   if test "x$ac_ct_PKG_CONFIG" = x; then
   17177     PKG_CONFIG=""
   17178   else
   17179     case $cross_compiling:$ac_tool_warned in
   17180 yes:)
   17181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   17182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   17183 ac_tool_warned=yes ;;
   17184 esac
   17185     PKG_CONFIG=$ac_ct_PKG_CONFIG
   17186   fi
   17187 else
   17188   PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
   17189 fi
   17190 
   17191             if test x"$PKG_CONFIG" != x""; then
   17192                 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
   17193                 if test $? = 0; then
   17194                     OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
   17195                     OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
   17196                     found=true
   17197                 fi
   17198             fi
   17199 
   17200             # no such luck; use some default ssldirs
   17201             if ! $found; then
   17202                 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
   17203             fi
   17204 
   17205 
   17206 fi
   17207 
   17208 
   17209 
   17210     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   17211     # an 'openssl' subdirectory
   17212 
   17213     if ! $found; then
   17214         OPENSSL_INCLUDES=
   17215         for ssldir in $ssldirs; do
   17216             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   17217 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   17218             if test -f "$ssldir/include/openssl/ssl.h"; then
   17219                 OPENSSL_INCLUDES="-I$ssldir/include"
   17220                 OPENSSL_LDFLAGS="-L$ssldir/lib"
   17221                 OPENSSL_LIBS="-lssl -lcrypto"
   17222                 found=true
   17223                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17224 $as_echo "yes" >&6; }
   17225                 break
   17226             else
   17227                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17228 $as_echo "no" >&6; }
   17229             fi
   17230         done
   17231 
   17232         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   17233         # it will just work!
   17234     fi
   17235 
   17236     # try the preprocessor and linker with our new flags,
   17237     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   17238 
   17239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   17240 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   17241     echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
   17242         "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
   17243 
   17244     save_LIBS="$LIBS"
   17245     save_LDFLAGS="$LDFLAGS"
   17246     save_CPPFLAGS="$CPPFLAGS"
   17247     LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
   17248     LIBS="$OPENSSL_LIBS $LIBS"
   17249     CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
   17250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17251 /* end confdefs.h.  */
   17252 #include <openssl/ssl.h>
   17253 int
   17254 main ()
   17255 {
   17256 SSL_new(NULL)
   17257   ;
   17258   return 0;
   17259 }
   17260 _ACEOF
   17261 if ac_fn_c_try_link "$LINENO"; then :
   17262 
   17263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17264 $as_echo "yes" >&6; }
   17265             have_openssl=yes
   17266 
   17267 else
   17268 
   17269             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17270 $as_echo "no" >&6; }
   17271             have_openssl=no
   17272 
   17273 fi
   17274 rm -f core conftest.err conftest.$ac_objext \
   17275     conftest$ac_exeext conftest.$ac_ext
   17276     CPPFLAGS="$save_CPPFLAGS"
   17277     LDFLAGS="$save_LDFLAGS"
   17278     LIBS="$save_LIBS"
   17279 
   17280 
   17281 
   17282 
   17283 
   17284 
   17285 if test "$have_openssl" = yes; then
   17286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5
   17287 $as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; }
   17288 
   17289     save_LIBS="$LIBS"
   17290     save_LDFLAGS="$LDFLAGS"
   17291     save_CPPFLAGS="$CPPFLAGS"
   17292     LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
   17293     LIBS="$OPENSSL_LIBS $LIBS"
   17294     CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
   17295 
   17296     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17297 /* end confdefs.h.  */
   17298 
   17299         #include <openssl/x509_vfy.h>
   17300 
   17301 int
   17302 main ()
   17303 {
   17304 
   17305         X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new();
   17306         X509_VERIFY_PARAM_set1_host(p, "localhost", 0);
   17307         X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1");
   17308         X509_VERIFY_PARAM_set_hostflags(p, 0);
   17309 
   17310   ;
   17311   return 0;
   17312 }
   17313 
   17314 _ACEOF
   17315 if ac_fn_c_try_link "$LINENO"; then :
   17316 
   17317         ac_cv_has_x509_verify_param_set1_host=yes
   17318 
   17319 else
   17320 
   17321         ac_cv_has_x509_verify_param_set1_host=no
   17322 
   17323 fi
   17324 rm -f core conftest.err conftest.$ac_objext \
   17325     conftest$ac_exeext conftest.$ac_ext
   17326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5
   17327 $as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; }
   17328     if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then
   17329 
   17330 $as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h
   17331 
   17332     fi
   17333 
   17334     CPPFLAGS="$save_CPPFLAGS"
   17335     LDFLAGS="$save_LDFLAGS"
   17336     LIBS="$save_LIBS"
   17337 fi
   17338 
   17339 # ssl module default cipher suite string
   17340 
   17341 
   17342 
   17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
   17344 $as_echo_n "checking for --with-ssl-default-suites... " >&6; }
   17345 
   17346 # Check whether --with-ssl-default-suites was given.
   17347 if test "${with_ssl_default_suites+set}" = set; then :
   17348   withval=$with_ssl_default_suites;
   17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
   17350 $as_echo "$withval" >&6; }
   17351 case "$withval" in
   17352     python)
   17353         $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
   17354 
   17355         ;;
   17356     openssl)
   17357         $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
   17358 
   17359         ;;
   17360     *)
   17361         $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
   17362 
   17363         cat >>confdefs.h <<_ACEOF
   17364 #define PY_SSL_DEFAULT_CIPHER_STRING "$withval"
   17365 _ACEOF
   17366 
   17367         ;;
   17368 esac
   17369 
   17370 else
   17371 
   17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5
   17373 $as_echo "python" >&6; }
   17374 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
   17375 
   17376 
   17377 fi
   17378 
   17379 
   17380 
   17381 # generate output files
   17382 ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-config.sh"
   17383 
   17384 ac_config_files="$ac_config_files Modules/ld_so_aix"
   17385 
   17386 cat >confcache <<\_ACEOF
   17387 # This file is a shell script that caches the results of configure
   17388 # tests run on this system so they can be shared between configure
   17389 # scripts and configure runs, see configure's option --config-cache.
   17390 # It is not useful on other systems.  If it contains results you don't
   17391 # want to keep, you may remove or edit it.
   17392 #
   17393 # config.status only pays attention to the cache file if you give it
   17394 # the --recheck option to rerun configure.
   17395 #
   17396 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   17397 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   17398 # following values.
   17399 
   17400 _ACEOF
   17401 
   17402 # The following way of writing the cache mishandles newlines in values,
   17403 # but we know of no workaround that is simple, portable, and efficient.
   17404 # So, we kill variables containing newlines.
   17405 # Ultrix sh set writes to stderr and can't be redirected directly,
   17406 # and sets the high bit in the cache file unless we assign to the vars.
   17407 (
   17408   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   17409     eval ac_val=\$$ac_var
   17410     case $ac_val in #(
   17411     *${as_nl}*)
   17412       case $ac_var in #(
   17413       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   17414 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   17415       esac
   17416       case $ac_var in #(
   17417       _ | IFS | as_nl) ;; #(
   17418       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   17419       *) { eval $ac_var=; unset $ac_var;} ;;
   17420       esac ;;
   17421     esac
   17422   done
   17423 
   17424   (set) 2>&1 |
   17425     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   17426     *${as_nl}ac_space=\ *)
   17427       # `set' does not quote correctly, so add quotes: double-quote
   17428       # substitution turns \\\\ into \\, and sed turns \\ into \.
   17429       sed -n \
   17430 	"s/'/'\\\\''/g;
   17431 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   17432       ;; #(
   17433     *)
   17434       # `set' quotes correctly as required by POSIX, so do not add quotes.
   17435       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   17436       ;;
   17437     esac |
   17438     sort
   17439 ) |
   17440   sed '
   17441      /^ac_cv_env_/b end
   17442      t clear
   17443      :clear
   17444      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   17445      t end
   17446      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   17447      :end' >>confcache
   17448 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   17449   if test -w "$cache_file"; then
   17450     if test "x$cache_file" != "x/dev/null"; then
   17451       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   17452 $as_echo "$as_me: updating cache $cache_file" >&6;}
   17453       if test ! -f "$cache_file" || test -h "$cache_file"; then
   17454 	cat confcache >"$cache_file"
   17455       else
   17456         case $cache_file in #(
   17457         */* | ?:*)
   17458 	  mv -f confcache "$cache_file"$$ &&
   17459 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   17460         *)
   17461 	  mv -f confcache "$cache_file" ;;
   17462 	esac
   17463       fi
   17464     fi
   17465   else
   17466     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   17467 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   17468   fi
   17469 fi
   17470 rm -f confcache
   17471 
   17472 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   17473 # Let make expand exec_prefix.
   17474 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   17475 
   17476 DEFS=-DHAVE_CONFIG_H
   17477 
   17478 ac_libobjs=
   17479 ac_ltlibobjs=
   17480 U=
   17481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   17482   # 1. Remove the extension, and $U if already installed.
   17483   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   17484   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   17485   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   17486   #    will be set to the directory where LIBOBJS objects are built.
   17487   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   17488   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   17489 done
   17490 LIBOBJS=$ac_libobjs
   17491 
   17492 LTLIBOBJS=$ac_ltlibobjs
   17493 
   17494 
   17495 
   17496 
   17497 : "${CONFIG_STATUS=./config.status}"
   17498 ac_write_fail=0
   17499 ac_clean_files_save=$ac_clean_files
   17500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   17501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   17502 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   17503 as_write_fail=0
   17504 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   17505 #! $SHELL
   17506 # Generated by $as_me.
   17507 # Run this file to recreate the current configuration.
   17508 # Compiler output produced by configure, useful for debugging
   17509 # configure, is in config.log if it exists.
   17510 
   17511 debug=false
   17512 ac_cs_recheck=false
   17513 ac_cs_silent=false
   17514 
   17515 SHELL=\${CONFIG_SHELL-$SHELL}
   17516 export SHELL
   17517 _ASEOF
   17518 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   17519 ## -------------------- ##
   17520 ## M4sh Initialization. ##
   17521 ## -------------------- ##
   17522 
   17523 # Be more Bourne compatible
   17524 DUALCASE=1; export DUALCASE # for MKS sh
   17525 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   17526   emulate sh
   17527   NULLCMD=:
   17528   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   17529   # is contrary to our usage.  Disable this feature.
   17530   alias -g '${1+"$@"}'='"$@"'
   17531   setopt NO_GLOB_SUBST
   17532 else
   17533   case `(set -o) 2>/dev/null` in #(
   17534   *posix*) :
   17535     set -o posix ;; #(
   17536   *) :
   17537      ;;
   17538 esac
   17539 fi
   17540 
   17541 
   17542 as_nl='
   17543 '
   17544 export as_nl
   17545 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   17546 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   17547 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   17548 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   17549 # Prefer a ksh shell builtin over an external printf program on Solaris,
   17550 # but without wasting forks for bash or zsh.
   17551 if test -z "$BASH_VERSION$ZSH_VERSION" \
   17552     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   17553   as_echo='print -r --'
   17554   as_echo_n='print -rn --'
   17555 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   17556   as_echo='printf %s\n'
   17557   as_echo_n='printf %s'
   17558 else
   17559   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   17560     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   17561     as_echo_n='/usr/ucb/echo -n'
   17562   else
   17563     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   17564     as_echo_n_body='eval
   17565       arg=$1;
   17566       case $arg in #(
   17567       *"$as_nl"*)
   17568 	expr "X$arg" : "X\\(.*\\)$as_nl";
   17569 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   17570       esac;
   17571       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   17572     '
   17573     export as_echo_n_body
   17574     as_echo_n='sh -c $as_echo_n_body as_echo'
   17575   fi
   17576   export as_echo_body
   17577   as_echo='sh -c $as_echo_body as_echo'
   17578 fi
   17579 
   17580 # The user is always right.
   17581 if test "${PATH_SEPARATOR+set}" != set; then
   17582   PATH_SEPARATOR=:
   17583   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   17584     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   17585       PATH_SEPARATOR=';'
   17586   }
   17587 fi
   17588 
   17589 
   17590 # IFS
   17591 # We need space, tab and new line, in precisely that order.  Quoting is
   17592 # there to prevent editors from complaining about space-tab.
   17593 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   17594 # splitting by setting IFS to empty value.)
   17595 IFS=" ""	$as_nl"
   17596 
   17597 # Find who we are.  Look in the path if we contain no directory separator.
   17598 as_myself=
   17599 case $0 in #((
   17600   *[\\/]* ) as_myself=$0 ;;
   17601   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17602 for as_dir in $PATH
   17603 do
   17604   IFS=$as_save_IFS
   17605   test -z "$as_dir" && as_dir=.
   17606     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   17607   done
   17608 IFS=$as_save_IFS
   17609 
   17610      ;;
   17611 esac
   17612 # We did not find ourselves, most probably we were run as `sh COMMAND'
   17613 # in which case we are not to be found in the path.
   17614 if test "x$as_myself" = x; then
   17615   as_myself=$0
   17616 fi
   17617 if test ! -f "$as_myself"; then
   17618   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   17619   exit 1
   17620 fi
   17621 
   17622 # Unset variables that we do not need and which cause bugs (e.g. in
   17623 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   17624 # suppresses any "Segmentation fault" message there.  '((' could
   17625 # trigger a bug in pdksh 5.2.14.
   17626 for as_var in BASH_ENV ENV MAIL MAILPATH
   17627 do eval test x\${$as_var+set} = xset \
   17628   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   17629 done
   17630 PS1='$ '
   17631 PS2='> '
   17632 PS4='+ '
   17633 
   17634 # NLS nuisances.
   17635 LC_ALL=C
   17636 export LC_ALL
   17637 LANGUAGE=C
   17638 export LANGUAGE
   17639 
   17640 # CDPATH.
   17641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   17642 
   17643 
   17644 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   17645 # ----------------------------------------
   17646 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   17647 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   17648 # script with STATUS, using 1 if that was 0.
   17649 as_fn_error ()
   17650 {
   17651   as_status=$1; test $as_status -eq 0 && as_status=1
   17652   if test "$4"; then
   17653     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   17654     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   17655   fi
   17656   $as_echo "$as_me: error: $2" >&2
   17657   as_fn_exit $as_status
   17658 } # as_fn_error
   17659 
   17660 
   17661 # as_fn_set_status STATUS
   17662 # -----------------------
   17663 # Set $? to STATUS, without forking.
   17664 as_fn_set_status ()
   17665 {
   17666   return $1
   17667 } # as_fn_set_status
   17668 
   17669 # as_fn_exit STATUS
   17670 # -----------------
   17671 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   17672 as_fn_exit ()
   17673 {
   17674   set +e
   17675   as_fn_set_status $1
   17676   exit $1
   17677 } # as_fn_exit
   17678 
   17679 # as_fn_unset VAR
   17680 # ---------------
   17681 # Portably unset VAR.
   17682 as_fn_unset ()
   17683 {
   17684   { eval $1=; unset $1;}
   17685 }
   17686 as_unset=as_fn_unset
   17687 # as_fn_append VAR VALUE
   17688 # ----------------------
   17689 # Append the text in VALUE to the end of the definition contained in VAR. Take
   17690 # advantage of any shell optimizations that allow amortized linear growth over
   17691 # repeated appends, instead of the typical quadratic growth present in naive
   17692 # implementations.
   17693 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   17694   eval 'as_fn_append ()
   17695   {
   17696     eval $1+=\$2
   17697   }'
   17698 else
   17699   as_fn_append ()
   17700   {
   17701     eval $1=\$$1\$2
   17702   }
   17703 fi # as_fn_append
   17704 
   17705 # as_fn_arith ARG...
   17706 # ------------------
   17707 # Perform arithmetic evaluation on the ARGs, and store the result in the
   17708 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   17709 # must be portable across $(()) and expr.
   17710 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   17711   eval 'as_fn_arith ()
   17712   {
   17713     as_val=$(( $* ))
   17714   }'
   17715 else
   17716   as_fn_arith ()
   17717   {
   17718     as_val=`expr "$@" || test $? -eq 1`
   17719   }
   17720 fi # as_fn_arith
   17721 
   17722 
   17723 if expr a : '\(a\)' >/dev/null 2>&1 &&
   17724    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   17725   as_expr=expr
   17726 else
   17727   as_expr=false
   17728 fi
   17729 
   17730 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   17731   as_basename=basename
   17732 else
   17733   as_basename=false
   17734 fi
   17735 
   17736 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   17737   as_dirname=dirname
   17738 else
   17739   as_dirname=false
   17740 fi
   17741 
   17742 as_me=`$as_basename -- "$0" ||
   17743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   17744 	 X"$0" : 'X\(//\)$' \| \
   17745 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   17746 $as_echo X/"$0" |
   17747     sed '/^.*\/\([^/][^/]*\)\/*$/{
   17748 	    s//\1/
   17749 	    q
   17750 	  }
   17751 	  /^X\/\(\/\/\)$/{
   17752 	    s//\1/
   17753 	    q
   17754 	  }
   17755 	  /^X\/\(\/\).*/{
   17756 	    s//\1/
   17757 	    q
   17758 	  }
   17759 	  s/.*/./; q'`
   17760 
   17761 # Avoid depending upon Character Ranges.
   17762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   17763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   17764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   17765 as_cr_digits='0123456789'
   17766 as_cr_alnum=$as_cr_Letters$as_cr_digits
   17767 
   17768 ECHO_C= ECHO_N= ECHO_T=
   17769 case `echo -n x` in #(((((
   17770 -n*)
   17771   case `echo 'xy\c'` in
   17772   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   17773   xy)  ECHO_C='\c';;
   17774   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   17775        ECHO_T='	';;
   17776   esac;;
   17777 *)
   17778   ECHO_N='-n';;
   17779 esac
   17780 
   17781 rm -f conf$$ conf$$.exe conf$$.file
   17782 if test -d conf$$.dir; then
   17783   rm -f conf$$.dir/conf$$.file
   17784 else
   17785   rm -f conf$$.dir
   17786   mkdir conf$$.dir 2>/dev/null
   17787 fi
   17788 if (echo >conf$$.file) 2>/dev/null; then
   17789   if ln -s conf$$.file conf$$ 2>/dev/null; then
   17790     as_ln_s='ln -s'
   17791     # ... but there are two gotchas:
   17792     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   17793     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   17794     # In both cases, we have to default to `cp -pR'.
   17795     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   17796       as_ln_s='cp -pR'
   17797   elif ln conf$$.file conf$$ 2>/dev/null; then
   17798     as_ln_s=ln
   17799   else
   17800     as_ln_s='cp -pR'
   17801   fi
   17802 else
   17803   as_ln_s='cp -pR'
   17804 fi
   17805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   17806 rmdir conf$$.dir 2>/dev/null
   17807 
   17808 
   17809 # as_fn_mkdir_p
   17810 # -------------
   17811 # Create "$as_dir" as a directory, including parents if necessary.
   17812 as_fn_mkdir_p ()
   17813 {
   17814 
   17815   case $as_dir in #(
   17816   -*) as_dir=./$as_dir;;
   17817   esac
   17818   test -d "$as_dir" || eval $as_mkdir_p || {
   17819     as_dirs=
   17820     while :; do
   17821       case $as_dir in #(
   17822       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   17823       *) as_qdir=$as_dir;;
   17824       esac
   17825       as_dirs="'$as_qdir' $as_dirs"
   17826       as_dir=`$as_dirname -- "$as_dir" ||
   17827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   17828 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   17829 	 X"$as_dir" : 'X\(//\)$' \| \
   17830 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   17831 $as_echo X"$as_dir" |
   17832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   17833 	    s//\1/
   17834 	    q
   17835 	  }
   17836 	  /^X\(\/\/\)[^/].*/{
   17837 	    s//\1/
   17838 	    q
   17839 	  }
   17840 	  /^X\(\/\/\)$/{
   17841 	    s//\1/
   17842 	    q
   17843 	  }
   17844 	  /^X\(\/\).*/{
   17845 	    s//\1/
   17846 	    q
   17847 	  }
   17848 	  s/.*/./; q'`
   17849       test -d "$as_dir" && break
   17850     done
   17851     test -z "$as_dirs" || eval "mkdir $as_dirs"
   17852   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   17853 
   17854 
   17855 } # as_fn_mkdir_p
   17856 if mkdir -p . 2>/dev/null; then
   17857   as_mkdir_p='mkdir -p "$as_dir"'
   17858 else
   17859   test -d ./-p && rmdir ./-p
   17860   as_mkdir_p=false
   17861 fi
   17862 
   17863 
   17864 # as_fn_executable_p FILE
   17865 # -----------------------
   17866 # Test if FILE is an executable regular file.
   17867 as_fn_executable_p ()
   17868 {
   17869   test -f "$1" && test -x "$1"
   17870 } # as_fn_executable_p
   17871 as_test_x='test -x'
   17872 as_executable_p=as_fn_executable_p
   17873 
   17874 # Sed expression to map a string onto a valid CPP name.
   17875 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   17876 
   17877 # Sed expression to map a string onto a valid variable name.
   17878 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   17879 
   17880 
   17881 exec 6>&1
   17882 ## ----------------------------------- ##
   17883 ## Main body of $CONFIG_STATUS script. ##
   17884 ## ----------------------------------- ##
   17885 _ASEOF
   17886 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   17887 
   17888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17889 # Save the log message, to keep $0 and so on meaningful, and to
   17890 # report actual input values of CONFIG_FILES etc. instead of their
   17891 # values after options handling.
   17892 ac_log="
   17893 This file was extended by python $as_me 3.7, which was
   17894 generated by GNU Autoconf 2.69.  Invocation command line was
   17895 
   17896   CONFIG_FILES    = $CONFIG_FILES
   17897   CONFIG_HEADERS  = $CONFIG_HEADERS
   17898   CONFIG_LINKS    = $CONFIG_LINKS
   17899   CONFIG_COMMANDS = $CONFIG_COMMANDS
   17900   $ $0 $@
   17901 
   17902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   17903 "
   17904 
   17905 _ACEOF
   17906 
   17907 case $ac_config_files in *"
   17908 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   17909 esac
   17910 
   17911 case $ac_config_headers in *"
   17912 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   17913 esac
   17914 
   17915 
   17916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17917 # Files that config.status was made for.
   17918 config_files="$ac_config_files"
   17919 config_headers="$ac_config_headers"
   17920 
   17921 _ACEOF
   17922 
   17923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17924 ac_cs_usage="\
   17925 \`$as_me' instantiates files and other configuration actions
   17926 from templates according to the current configuration.  Unless the files
   17927 and actions are specified as TAGs, all are instantiated by default.
   17928 
   17929 Usage: $0 [OPTION]... [TAG]...
   17930 
   17931   -h, --help       print this help, then exit
   17932   -V, --version    print version number and configuration settings, then exit
   17933       --config     print configuration, then exit
   17934   -q, --quiet, --silent
   17935                    do not print progress messages
   17936   -d, --debug      don't remove temporary files
   17937       --recheck    update $as_me by reconfiguring in the same conditions
   17938       --file=FILE[:TEMPLATE]
   17939                    instantiate the configuration file FILE
   17940       --header=FILE[:TEMPLATE]
   17941                    instantiate the configuration header FILE
   17942 
   17943 Configuration files:
   17944 $config_files
   17945 
   17946 Configuration headers:
   17947 $config_headers
   17948 
   17949 Report bugs to <https://bugs.python.org/>."
   17950 
   17951 _ACEOF
   17952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17953 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   17954 ac_cs_version="\\
   17955 python config.status 3.7
   17956 configured by $0, generated by GNU Autoconf 2.69,
   17957   with options \\"\$ac_cs_config\\"
   17958 
   17959 Copyright (C) 2012 Free Software Foundation, Inc.
   17960 This config.status script is free software; the Free Software Foundation
   17961 gives unlimited permission to copy, distribute and modify it."
   17962 
   17963 ac_pwd='$ac_pwd'
   17964 srcdir='$srcdir'
   17965 INSTALL='$INSTALL'
   17966 MKDIR_P='$MKDIR_P'
   17967 test -n "\$AWK" || AWK=awk
   17968 _ACEOF
   17969 
   17970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17971 # The default lists apply if the user does not specify any file.
   17972 ac_need_defaults=:
   17973 while test $# != 0
   17974 do
   17975   case $1 in
   17976   --*=?*)
   17977     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   17978     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   17979     ac_shift=:
   17980     ;;
   17981   --*=)
   17982     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   17983     ac_optarg=
   17984     ac_shift=:
   17985     ;;
   17986   *)
   17987     ac_option=$1
   17988     ac_optarg=$2
   17989     ac_shift=shift
   17990     ;;
   17991   esac
   17992 
   17993   case $ac_option in
   17994   # Handling of the options.
   17995   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   17996     ac_cs_recheck=: ;;
   17997   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   17998     $as_echo "$ac_cs_version"; exit ;;
   17999   --config | --confi | --conf | --con | --co | --c )
   18000     $as_echo "$ac_cs_config"; exit ;;
   18001   --debug | --debu | --deb | --de | --d | -d )
   18002     debug=: ;;
   18003   --file | --fil | --fi | --f )
   18004     $ac_shift
   18005     case $ac_optarg in
   18006     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   18007     '') as_fn_error $? "missing file argument" ;;
   18008     esac
   18009     as_fn_append CONFIG_FILES " '$ac_optarg'"
   18010     ac_need_defaults=false;;
   18011   --header | --heade | --head | --hea )
   18012     $ac_shift
   18013     case $ac_optarg in
   18014     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   18015     esac
   18016     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   18017     ac_need_defaults=false;;
   18018   --he | --h)
   18019     # Conflict between --help and --header
   18020     as_fn_error $? "ambiguous option: \`$1'
   18021 Try \`$0 --help' for more information.";;
   18022   --help | --hel | -h )
   18023     $as_echo "$ac_cs_usage"; exit ;;
   18024   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   18025   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   18026     ac_cs_silent=: ;;
   18027 
   18028   # This is an error.
   18029   -*) as_fn_error $? "unrecognized option: \`$1'
   18030 Try \`$0 --help' for more information." ;;
   18031 
   18032   *) as_fn_append ac_config_targets " $1"
   18033      ac_need_defaults=false ;;
   18034 
   18035   esac
   18036   shift
   18037 done
   18038 
   18039 ac_configure_extra_args=
   18040 
   18041 if $ac_cs_silent; then
   18042   exec 6>/dev/null
   18043   ac_configure_extra_args="$ac_configure_extra_args --silent"
   18044 fi
   18045 
   18046 _ACEOF
   18047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18048 if \$ac_cs_recheck; then
   18049   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   18050   shift
   18051   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   18052   CONFIG_SHELL='$SHELL'
   18053   export CONFIG_SHELL
   18054   exec "\$@"
   18055 fi
   18056 
   18057 _ACEOF
   18058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18059 exec 5>>config.log
   18060 {
   18061   echo
   18062   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   18063 ## Running $as_me. ##
   18064 _ASBOX
   18065   $as_echo "$ac_log"
   18066 } >&5
   18067 
   18068 _ACEOF
   18069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18070 _ACEOF
   18071 
   18072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18073 
   18074 # Handling of arguments.
   18075 for ac_config_target in $ac_config_targets
   18076 do
   18077   case $ac_config_target in
   18078     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
   18079     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
   18080     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
   18081     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
   18082     "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
   18083     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
   18084     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
   18085     "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
   18086     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
   18087 
   18088   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   18089   esac
   18090 done
   18091 
   18092 
   18093 # If the user did not use the arguments to specify the items to instantiate,
   18094 # then the envvar interface is used.  Set only those that are not.
   18095 # We use the long form for the default assignment because of an extremely
   18096 # bizarre bug on SunOS 4.1.3.
   18097 if $ac_need_defaults; then
   18098   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   18099   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   18100 fi
   18101 
   18102 # Have a temporary directory for convenience.  Make it in the build tree
   18103 # simply because there is no reason against having it here, and in addition,
   18104 # creating and moving files from /tmp can sometimes cause problems.
   18105 # Hook for its removal unless debugging.
   18106 # Note that there is a small window in which the directory will not be cleaned:
   18107 # after its creation but before its name has been assigned to `$tmp'.
   18108 $debug ||
   18109 {
   18110   tmp= ac_tmp=
   18111   trap 'exit_status=$?
   18112   : "${ac_tmp:=$tmp}"
   18113   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   18114 ' 0
   18115   trap 'as_fn_exit 1' 1 2 13 15
   18116 }
   18117 # Create a (secure) tmp directory for tmp files.
   18118 
   18119 {
   18120   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   18121   test -d "$tmp"
   18122 }  ||
   18123 {
   18124   tmp=./conf$$-$RANDOM
   18125   (umask 077 && mkdir "$tmp")
   18126 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   18127 ac_tmp=$tmp
   18128 
   18129 # Set up the scripts for CONFIG_FILES section.
   18130 # No need to generate them if there are no CONFIG_FILES.
   18131 # This happens for instance with `./config.status config.h'.
   18132 if test -n "$CONFIG_FILES"; then
   18133 
   18134 
   18135 ac_cr=`echo X | tr X '\015'`
   18136 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   18137 # But we know of no other shell where ac_cr would be empty at this
   18138 # point, so we can use a bashism as a fallback.
   18139 if test "x$ac_cr" = x; then
   18140   eval ac_cr=\$\'\\r\'
   18141 fi
   18142 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   18143 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   18144   ac_cs_awk_cr='\\r'
   18145 else
   18146   ac_cs_awk_cr=$ac_cr
   18147 fi
   18148 
   18149 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   18150 _ACEOF
   18151 
   18152 
   18153 {
   18154   echo "cat >conf$$subs.awk <<_ACEOF" &&
   18155   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   18156   echo "_ACEOF"
   18157 } >conf$$subs.sh ||
   18158   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   18159 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   18160 ac_delim='%!_!# '
   18161 for ac_last_try in false false false false false :; do
   18162   . ./conf$$subs.sh ||
   18163     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   18164 
   18165   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   18166   if test $ac_delim_n = $ac_delim_num; then
   18167     break
   18168   elif $ac_last_try; then
   18169     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   18170   else
   18171     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   18172   fi
   18173 done
   18174 rm -f conf$$subs.sh
   18175 
   18176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18177 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   18178 _ACEOF
   18179 sed -n '
   18180 h
   18181 s/^/S["/; s/!.*/"]=/
   18182 p
   18183 g
   18184 s/^[^!]*!//
   18185 :repl
   18186 t repl
   18187 s/'"$ac_delim"'$//
   18188 t delim
   18189 :nl
   18190 h
   18191 s/\(.\{148\}\)..*/\1/
   18192 t more1
   18193 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   18194 p
   18195 n
   18196 b repl
   18197 :more1
   18198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   18199 p
   18200 g
   18201 s/.\{148\}//
   18202 t nl
   18203 :delim
   18204 h
   18205 s/\(.\{148\}\)..*/\1/
   18206 t more2
   18207 s/["\\]/\\&/g; s/^/"/; s/$/"/
   18208 p
   18209 b
   18210 :more2
   18211 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   18212 p
   18213 g
   18214 s/.\{148\}//
   18215 t delim
   18216 ' <conf$$subs.awk | sed '
   18217 /^[^""]/{
   18218   N
   18219   s/\n//
   18220 }
   18221 ' >>$CONFIG_STATUS || ac_write_fail=1
   18222 rm -f conf$$subs.awk
   18223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18224 _ACAWK
   18225 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   18226   for (key in S) S_is_set[key] = 1
   18227   FS = ""
   18228 
   18229 }
   18230 {
   18231   line = $ 0
   18232   nfields = split(line, field, "@")
   18233   substed = 0
   18234   len = length(field[1])
   18235   for (i = 2; i < nfields; i++) {
   18236     key = field[i]
   18237     keylen = length(key)
   18238     if (S_is_set[key]) {
   18239       value = S[key]
   18240       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   18241       len += length(value) + length(field[++i])
   18242       substed = 1
   18243     } else
   18244       len += 1 + keylen
   18245   }
   18246 
   18247   print line
   18248 }
   18249 
   18250 _ACAWK
   18251 _ACEOF
   18252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18253 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   18254   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   18255 else
   18256   cat
   18257 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   18258   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   18259 _ACEOF
   18260 
   18261 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   18262 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   18263 # trailing colons and then remove the whole line if VPATH becomes empty
   18264 # (actually we leave an empty line to preserve line numbers).
   18265 if test "x$srcdir" = x.; then
   18266   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   18267 h
   18268 s///
   18269 s/^/:/
   18270 s/[	 ]*$/:/
   18271 s/:\$(srcdir):/:/g
   18272 s/:\${srcdir}:/:/g
   18273 s/:@srcdir@:/:/g
   18274 s/^:*//
   18275 s/:*$//
   18276 x
   18277 s/\(=[	 ]*\).*/\1/
   18278 G
   18279 s/\n//
   18280 s/^[^=]*=[	 ]*$//
   18281 }'
   18282 fi
   18283 
   18284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18285 fi # test -n "$CONFIG_FILES"
   18286 
   18287 # Set up the scripts for CONFIG_HEADERS section.
   18288 # No need to generate them if there are no CONFIG_HEADERS.
   18289 # This happens for instance with `./config.status Makefile'.
   18290 if test -n "$CONFIG_HEADERS"; then
   18291 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   18292 BEGIN {
   18293 _ACEOF
   18294 
   18295 # Transform confdefs.h into an awk script `defines.awk', embedded as
   18296 # here-document in config.status, that substitutes the proper values into
   18297 # config.h.in to produce config.h.
   18298 
   18299 # Create a delimiter string that does not exist in confdefs.h, to ease
   18300 # handling of long lines.
   18301 ac_delim='%!_!# '
   18302 for ac_last_try in false false :; do
   18303   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   18304   if test -z "$ac_tt"; then
   18305     break
   18306   elif $ac_last_try; then
   18307     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   18308   else
   18309     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   18310   fi
   18311 done
   18312 
   18313 # For the awk script, D is an array of macro values keyed by name,
   18314 # likewise P contains macro parameters if any.  Preserve backslash
   18315 # newline sequences.
   18316 
   18317 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   18318 sed -n '
   18319 s/.\{148\}/&'"$ac_delim"'/g
   18320 t rset
   18321 :rset
   18322 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   18323 t def
   18324 d
   18325 :def
   18326 s/\\$//
   18327 t bsnl
   18328 s/["\\]/\\&/g
   18329 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   18330 D["\1"]=" \3"/p
   18331 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   18332 d
   18333 :bsnl
   18334 s/["\\]/\\&/g
   18335 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   18336 D["\1"]=" \3\\\\\\n"\\/p
   18337 t cont
   18338 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   18339 t cont
   18340 d
   18341 :cont
   18342 n
   18343 s/.\{148\}/&'"$ac_delim"'/g
   18344 t clear
   18345 :clear
   18346 s/\\$//
   18347 t bsnlc
   18348 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   18349 d
   18350 :bsnlc
   18351 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   18352 b cont
   18353 ' <confdefs.h | sed '
   18354 s/'"$ac_delim"'/"\\\
   18355 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   18356 
   18357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18358   for (key in D) D_is_set[key] = 1
   18359   FS = ""
   18360 }
   18361 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   18362   line = \$ 0
   18363   split(line, arg, " ")
   18364   if (arg[1] == "#") {
   18365     defundef = arg[2]
   18366     mac1 = arg[3]
   18367   } else {
   18368     defundef = substr(arg[1], 2)
   18369     mac1 = arg[2]
   18370   }
   18371   split(mac1, mac2, "(") #)
   18372   macro = mac2[1]
   18373   prefix = substr(line, 1, index(line, defundef) - 1)
   18374   if (D_is_set[macro]) {
   18375     # Preserve the white space surrounding the "#".
   18376     print prefix "define", macro P[macro] D[macro]
   18377     next
   18378   } else {
   18379     # Replace #undef with comments.  This is necessary, for example,
   18380     # in the case of _POSIX_SOURCE, which is predefined and required
   18381     # on some systems where configure will not decide to define it.
   18382     if (defundef == "undef") {
   18383       print "/*", prefix defundef, macro, "*/"
   18384       next
   18385     }
   18386   }
   18387 }
   18388 { print }
   18389 _ACAWK
   18390 _ACEOF
   18391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18392   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   18393 fi # test -n "$CONFIG_HEADERS"
   18394 
   18395 
   18396 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
   18397 shift
   18398 for ac_tag
   18399 do
   18400   case $ac_tag in
   18401   :[FHLC]) ac_mode=$ac_tag; continue;;
   18402   esac
   18403   case $ac_mode$ac_tag in
   18404   :[FHL]*:*);;
   18405   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   18406   :[FH]-) ac_tag=-:-;;
   18407   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   18408   esac
   18409   ac_save_IFS=$IFS
   18410   IFS=:
   18411   set x $ac_tag
   18412   IFS=$ac_save_IFS
   18413   shift
   18414   ac_file=$1
   18415   shift
   18416 
   18417   case $ac_mode in
   18418   :L) ac_source=$1;;
   18419   :[FH])
   18420     ac_file_inputs=
   18421     for ac_f
   18422     do
   18423       case $ac_f in
   18424       -) ac_f="$ac_tmp/stdin";;
   18425       *) # Look for the file first in the build tree, then in the source tree
   18426 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   18427 	 # because $ac_f cannot contain `:'.
   18428 	 test -f "$ac_f" ||
   18429 	   case $ac_f in
   18430 	   [\\/$]*) false;;
   18431 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   18432 	   esac ||
   18433 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   18434       esac
   18435       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   18436       as_fn_append ac_file_inputs " '$ac_f'"
   18437     done
   18438 
   18439     # Let's still pretend it is `configure' which instantiates (i.e., don't
   18440     # use $as_me), people would be surprised to read:
   18441     #    /* config.h.  Generated by config.status.  */
   18442     configure_input='Generated from '`
   18443 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   18444 	`' by configure.'
   18445     if test x"$ac_file" != x-; then
   18446       configure_input="$ac_file.  $configure_input"
   18447       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   18448 $as_echo "$as_me: creating $ac_file" >&6;}
   18449     fi
   18450     # Neutralize special characters interpreted by sed in replacement strings.
   18451     case $configure_input in #(
   18452     *\&* | *\|* | *\\* )
   18453        ac_sed_conf_input=`$as_echo "$configure_input" |
   18454        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   18455     *) ac_sed_conf_input=$configure_input;;
   18456     esac
   18457 
   18458     case $ac_tag in
   18459     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   18460       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   18461     esac
   18462     ;;
   18463   esac
   18464 
   18465   ac_dir=`$as_dirname -- "$ac_file" ||
   18466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   18467 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   18468 	 X"$ac_file" : 'X\(//\)$' \| \
   18469 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   18470 $as_echo X"$ac_file" |
   18471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   18472 	    s//\1/
   18473 	    q
   18474 	  }
   18475 	  /^X\(\/\/\)[^/].*/{
   18476 	    s//\1/
   18477 	    q
   18478 	  }
   18479 	  /^X\(\/\/\)$/{
   18480 	    s//\1/
   18481 	    q
   18482 	  }
   18483 	  /^X\(\/\).*/{
   18484 	    s//\1/
   18485 	    q
   18486 	  }
   18487 	  s/.*/./; q'`
   18488   as_dir="$ac_dir"; as_fn_mkdir_p
   18489   ac_builddir=.
   18490 
   18491 case "$ac_dir" in
   18492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   18493 *)
   18494   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   18495   # A ".." for each directory in $ac_dir_suffix.
   18496   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   18497   case $ac_top_builddir_sub in
   18498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   18499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   18500   esac ;;
   18501 esac
   18502 ac_abs_top_builddir=$ac_pwd
   18503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   18504 # for backward compatibility:
   18505 ac_top_builddir=$ac_top_build_prefix
   18506 
   18507 case $srcdir in
   18508   .)  # We are building in place.
   18509     ac_srcdir=.
   18510     ac_top_srcdir=$ac_top_builddir_sub
   18511     ac_abs_top_srcdir=$ac_pwd ;;
   18512   [\\/]* | ?:[\\/]* )  # Absolute name.
   18513     ac_srcdir=$srcdir$ac_dir_suffix;
   18514     ac_top_srcdir=$srcdir
   18515     ac_abs_top_srcdir=$srcdir ;;
   18516   *) # Relative name.
   18517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   18518     ac_top_srcdir=$ac_top_build_prefix$srcdir
   18519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   18520 esac
   18521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   18522 
   18523 
   18524   case $ac_mode in
   18525   :F)
   18526   #
   18527   # CONFIG_FILE
   18528   #
   18529 
   18530   case $INSTALL in
   18531   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   18532   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   18533   esac
   18534   ac_MKDIR_P=$MKDIR_P
   18535   case $MKDIR_P in
   18536   [\\/$]* | ?:[\\/]* ) ;;
   18537   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   18538   esac
   18539 _ACEOF
   18540 
   18541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18542 # If the template does not know about datarootdir, expand it.
   18543 # FIXME: This hack should be removed a few years after 2.60.
   18544 ac_datarootdir_hack=; ac_datarootdir_seen=
   18545 ac_sed_dataroot='
   18546 /datarootdir/ {
   18547   p
   18548   q
   18549 }
   18550 /@datadir@/p
   18551 /@docdir@/p
   18552 /@infodir@/p
   18553 /@localedir@/p
   18554 /@mandir@/p'
   18555 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   18556 *datarootdir*) ac_datarootdir_seen=yes;;
   18557 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   18558   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   18559 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   18560 _ACEOF
   18561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18562   ac_datarootdir_hack='
   18563   s&@datadir@&$datadir&g
   18564   s&@docdir@&$docdir&g
   18565   s&@infodir@&$infodir&g
   18566   s&@localedir@&$localedir&g
   18567   s&@mandir@&$mandir&g
   18568   s&\\\${datarootdir}&$datarootdir&g' ;;
   18569 esac
   18570 _ACEOF
   18571 
   18572 # Neutralize VPATH when `$srcdir' = `.'.
   18573 # Shell code in configure.ac might set extrasub.
   18574 # FIXME: do we really want to maintain this feature?
   18575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   18576 ac_sed_extra="$ac_vpsub
   18577 $extrasub
   18578 _ACEOF
   18579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   18580 :t
   18581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   18582 s|@configure_input@|$ac_sed_conf_input|;t t
   18583 s&@top_builddir@&$ac_top_builddir_sub&;t t
   18584 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   18585 s&@srcdir@&$ac_srcdir&;t t
   18586 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   18587 s&@top_srcdir@&$ac_top_srcdir&;t t
   18588 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   18589 s&@builddir@&$ac_builddir&;t t
   18590 s&@abs_builddir@&$ac_abs_builddir&;t t
   18591 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   18592 s&@INSTALL@&$ac_INSTALL&;t t
   18593 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   18594 $ac_datarootdir_hack
   18595 "
   18596 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   18597   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   18598 
   18599 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   18600   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   18601   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   18602       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   18603   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   18604 which seems to be undefined.  Please make sure it is defined" >&5
   18605 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   18606 which seems to be undefined.  Please make sure it is defined" >&2;}
   18607 
   18608   rm -f "$ac_tmp/stdin"
   18609   case $ac_file in
   18610   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   18611   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   18612   esac \
   18613   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   18614  ;;
   18615   :H)
   18616   #
   18617   # CONFIG_HEADER
   18618   #
   18619   if test x"$ac_file" != x-; then
   18620     {
   18621       $as_echo "/* $configure_input  */" \
   18622       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   18623     } >"$ac_tmp/config.h" \
   18624       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   18625     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   18626       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   18627 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   18628     else
   18629       rm -f "$ac_file"
   18630       mv "$ac_tmp/config.h" "$ac_file" \
   18631 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   18632     fi
   18633   else
   18634     $as_echo "/* $configure_input  */" \
   18635       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   18636       || as_fn_error $? "could not create -" "$LINENO" 5
   18637   fi
   18638  ;;
   18639 
   18640 
   18641   esac
   18642 
   18643 
   18644   case $ac_file$ac_mode in
   18645     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
   18646 
   18647   esac
   18648 done # for ac_tag
   18649 
   18650 
   18651 as_fn_exit 0
   18652 _ACEOF
   18653 ac_clean_files=$ac_clean_files_save
   18654 
   18655 test $ac_write_fail = 0 ||
   18656   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   18657 
   18658 
   18659 # configure is writing to config.log, and then calls config.status.
   18660 # config.status does its own redirection, appending to config.log.
   18661 # Unfortunately, on DOS this fails, as config.log is still kept open
   18662 # by configure, so config.status won't be able to write to it; its
   18663 # output is simply discarded.  So we exec the FD to /dev/null,
   18664 # effectively closing config.log, so it can be properly (re)opened and
   18665 # appended to by config.status.  When coming back to configure, we
   18666 # need to make the FD available again.
   18667 if test "$no_create" != yes; then
   18668   ac_cs_success=:
   18669   ac_config_status_args=
   18670   test "$silent" = yes &&
   18671     ac_config_status_args="$ac_config_status_args --quiet"
   18672   exec 5>/dev/null
   18673   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   18674   exec 5>>config.log
   18675   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   18676   # would make configure fail if this is the last instruction.
   18677   $ac_cs_success || as_fn_exit 1
   18678 fi
   18679 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   18680   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   18681 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   18682 fi
   18683 
   18684 
   18685 echo "creating Modules/Setup" >&6
   18686 if test ! -f Modules/Setup
   18687 then
   18688 	cp $srcdir/Modules/Setup.dist Modules/Setup
   18689 fi
   18690 
   18691 echo "creating Modules/Setup.local" >&6
   18692 if test ! -f Modules/Setup.local
   18693 then
   18694 	echo "# Edit this file for local setup changes" >Modules/Setup.local
   18695 fi
   18696 
   18697 echo "creating Makefile" >&6
   18698 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
   18699 			-s Modules \
   18700 			Modules/Setup.local Modules/Setup
   18701 mv config.c Modules
   18702 
   18703 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
   18704     echo "" >&6
   18705     echo "" >&6
   18706     echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6
   18707     echo "please run ./configure --enable-optimizations" >&6
   18708     echo "" >&6
   18709     echo "" >&6
   18710 fi
   18711 
   18712