Home | History | Annotate | Download | only in cpython2
      1 #! /bin/sh
      2 # From configure.ac Revision.
      3 # Guess values for system-dependent variables and create Makefiles.
      4 # Generated by GNU Autoconf 2.69 for python 2.7.
      5 #
      6 # Report bugs to <https://bugs.python.org/>.
      7 #
      8 #
      9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
     10 #
     11 #
     12 # This configure script is free software; the Free Software Foundation
     13 # gives unlimited permission to copy, distribute and modify it.
     14 ## -------------------- ##
     15 ## M4sh Initialization. ##
     16 ## -------------------- ##
     17 
     18 # Be more Bourne compatible
     19 DUALCASE=1; export DUALCASE # for MKS sh
     20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     21   emulate sh
     22   NULLCMD=:
     23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     24   # is contrary to our usage.  Disable this feature.
     25   alias -g '${1+"$@"}'='"$@"'
     26   setopt NO_GLOB_SUBST
     27 else
     28   case `(set -o) 2>/dev/null` in #(
     29   *posix*) :
     30     set -o posix ;; #(
     31   *) :
     32      ;;
     33 esac
     34 fi
     35 
     36 
     37 as_nl='
     38 '
     39 export as_nl
     40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     44 # Prefer a ksh shell builtin over an external printf program on Solaris,
     45 # but without wasting forks for bash or zsh.
     46 if test -z "$BASH_VERSION$ZSH_VERSION" \
     47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='print -r --'
     49   as_echo_n='print -rn --'
     50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     51   as_echo='printf %s\n'
     52   as_echo_n='printf %s'
     53 else
     54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     56     as_echo_n='/usr/ucb/echo -n'
     57   else
     58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     59     as_echo_n_body='eval
     60       arg=$1;
     61       case $arg in #(
     62       *"$as_nl"*)
     63 	expr "X$arg" : "X\\(.*\\)$as_nl";
     64 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     65       esac;
     66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     67     '
     68     export as_echo_n_body
     69     as_echo_n='sh -c $as_echo_n_body as_echo'
     70   fi
     71   export as_echo_body
     72   as_echo='sh -c $as_echo_body as_echo'
     73 fi
     74 
     75 # The user is always right.
     76 if test "${PATH_SEPARATOR+set}" != set; then
     77   PATH_SEPARATOR=:
     78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     80       PATH_SEPARATOR=';'
     81   }
     82 fi
     83 
     84 
     85 # IFS
     86 # We need space, tab and new line, in precisely that order.  Quoting is
     87 # there to prevent editors from complaining about space-tab.
     88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     89 # splitting by setting IFS to empty value.)
     90 IFS=" ""	$as_nl"
     91 
     92 # Find who we are.  Look in the path if we contain no directory separator.
     93 as_myself=
     94 case $0 in #((
     95   *[\\/]* ) as_myself=$0 ;;
     96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     97 for as_dir in $PATH
     98 do
     99   IFS=$as_save_IFS
    100   test -z "$as_dir" && as_dir=.
    101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    102   done
    103 IFS=$as_save_IFS
    104 
    105      ;;
    106 esac
    107 # We did not find ourselves, most probably we were run as `sh COMMAND'
    108 # in which case we are not to be found in the path.
    109 if test "x$as_myself" = x; then
    110   as_myself=$0
    111 fi
    112 if test ! -f "$as_myself"; then
    113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    114   exit 1
    115 fi
    116 
    117 # Unset variables that we do not need and which cause bugs (e.g. in
    118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    119 # suppresses any "Segmentation fault" message there.  '((' could
    120 # trigger a bug in pdksh 5.2.14.
    121 for as_var in BASH_ENV ENV MAIL MAILPATH
    122 do eval test x\${$as_var+set} = xset \
    123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    124 done
    125 PS1='$ '
    126 PS2='> '
    127 PS4='+ '
    128 
    129 # NLS nuisances.
    130 LC_ALL=C
    131 export LC_ALL
    132 LANGUAGE=C
    133 export LANGUAGE
    134 
    135 # CDPATH.
    136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    137 
    138 # Use a proper internal environment variable to ensure we don't fall
    139   # into an infinite loop, continuously re-executing ourselves.
    140   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    141     _as_can_reexec=no; export _as_can_reexec;
    142     # We cannot yet assume a decent shell, so we have to provide a
    143 # neutralization value for shells without unset; and this also
    144 # works around shells that cannot unset nonexistent variables.
    145 # Preserve -v and -x to the replacement shell.
    146 BASH_ENV=/dev/null
    147 ENV=/dev/null
    148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    149 case $- in # ((((
    150   *v*x* | *x*v* ) as_opts=-vx ;;
    151   *v* ) as_opts=-v ;;
    152   *x* ) as_opts=-x ;;
    153   * ) as_opts= ;;
    154 esac
    155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    156 # Admittedly, this is quite paranoid, since all the known shells bail
    157 # out after a failed `exec'.
    158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    159 as_fn_exit 255
    160   fi
    161   # We don't want this to propagate to other subprocesses.
    162           { _as_can_reexec=; unset _as_can_reexec;}
    163 if test "x$CONFIG_SHELL" = x; then
    164   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    165   emulate sh
    166   NULLCMD=:
    167   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    168   # is contrary to our usage.  Disable this feature.
    169   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    170   setopt NO_GLOB_SUBST
    171 else
    172   case \`(set -o) 2>/dev/null\` in #(
    173   *posix*) :
    174     set -o posix ;; #(
    175   *) :
    176      ;;
    177 esac
    178 fi
    179 "
    180   as_required="as_fn_return () { (exit \$1); }
    181 as_fn_success () { as_fn_return 0; }
    182 as_fn_failure () { as_fn_return 1; }
    183 as_fn_ret_success () { return 0; }
    184 as_fn_ret_failure () { return 1; }
    185 
    186 exitcode=0
    187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    192 
    193 else
    194   exitcode=1; echo positional parameters were not saved.
    195 fi
    196 test x\$exitcode = x0 || exit 1
    197 test -x / || exit 1"
    198   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    199   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    200   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    201   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    202 test \$(( 1 + 1 )) = 2 || exit 1"
    203   if (eval "$as_required") 2>/dev/null; then :
    204   as_have_required=yes
    205 else
    206   as_have_required=no
    207 fi
    208   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    209 
    210 else
    211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    212 as_found=false
    213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    214 do
    215   IFS=$as_save_IFS
    216   test -z "$as_dir" && as_dir=.
    217   as_found=:
    218   case $as_dir in #(
    219 	 /*)
    220 	   for as_base in sh bash ksh sh5; do
    221 	     # Try only shells that exist, to save several forks.
    222 	     as_shell=$as_dir/$as_base
    223 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    224 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    225   CONFIG_SHELL=$as_shell as_have_required=yes
    226 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    227   break 2
    228 fi
    229 fi
    230 	   done;;
    231        esac
    232   as_found=false
    233 done
    234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    235 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    236   CONFIG_SHELL=$SHELL as_have_required=yes
    237 fi; }
    238 IFS=$as_save_IFS
    239 
    240 
    241       if test "x$CONFIG_SHELL" != x; then :
    242   export CONFIG_SHELL
    243              # We cannot yet assume a decent shell, so we have to provide a
    244 # neutralization value for shells without unset; and this also
    245 # works around shells that cannot unset nonexistent variables.
    246 # Preserve -v and -x to the replacement shell.
    247 BASH_ENV=/dev/null
    248 ENV=/dev/null
    249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    250 case $- in # ((((
    251   *v*x* | *x*v* ) as_opts=-vx ;;
    252   *v* ) as_opts=-v ;;
    253   *x* ) as_opts=-x ;;
    254   * ) as_opts= ;;
    255 esac
    256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    257 # Admittedly, this is quite paranoid, since all the known shells bail
    258 # out after a failed `exec'.
    259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    260 exit 255
    261 fi
    262 
    263     if test x$as_have_required = xno; then :
    264   $as_echo "$0: This script requires a shell more modern than all"
    265   $as_echo "$0: the shells that I found on your system."
    266   if test x${ZSH_VERSION+set} = xset ; then
    267     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    268     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    269   else
    270     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
    271 $0: https://bugs.python.org/ about your system, including
    272 $0: any error possibly output before this message. Then
    273 $0: install a modern shell, or manually run the script
    274 $0: under such a shell if you do have one."
    275   fi
    276   exit 1
    277 fi
    278 fi
    279 fi
    280 SHELL=${CONFIG_SHELL-/bin/sh}
    281 export SHELL
    282 # Unset more variables known to interfere with behavior of common tools.
    283 CLICOLOR_FORCE= GREP_OPTIONS=
    284 unset CLICOLOR_FORCE GREP_OPTIONS
    285 
    286 ## --------------------- ##
    287 ## M4sh Shell Functions. ##
    288 ## --------------------- ##
    289 # as_fn_unset VAR
    290 # ---------------
    291 # Portably unset VAR.
    292 as_fn_unset ()
    293 {
    294   { eval $1=; unset $1;}
    295 }
    296 as_unset=as_fn_unset
    297 
    298 # as_fn_set_status STATUS
    299 # -----------------------
    300 # Set $? to STATUS, without forking.
    301 as_fn_set_status ()
    302 {
    303   return $1
    304 } # as_fn_set_status
    305 
    306 # as_fn_exit STATUS
    307 # -----------------
    308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    309 as_fn_exit ()
    310 {
    311   set +e
    312   as_fn_set_status $1
    313   exit $1
    314 } # as_fn_exit
    315 
    316 # as_fn_mkdir_p
    317 # -------------
    318 # Create "$as_dir" as a directory, including parents if necessary.
    319 as_fn_mkdir_p ()
    320 {
    321 
    322   case $as_dir in #(
    323   -*) as_dir=./$as_dir;;
    324   esac
    325   test -d "$as_dir" || eval $as_mkdir_p || {
    326     as_dirs=
    327     while :; do
    328       case $as_dir in #(
    329       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    330       *) as_qdir=$as_dir;;
    331       esac
    332       as_dirs="'$as_qdir' $as_dirs"
    333       as_dir=`$as_dirname -- "$as_dir" ||
    334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    335 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    336 	 X"$as_dir" : 'X\(//\)$' \| \
    337 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    338 $as_echo X"$as_dir" |
    339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)[^/].*/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\/\)$/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  /^X\(\/\).*/{
    352 	    s//\1/
    353 	    q
    354 	  }
    355 	  s/.*/./; q'`
    356       test -d "$as_dir" && break
    357     done
    358     test -z "$as_dirs" || eval "mkdir $as_dirs"
    359   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    360 
    361 
    362 } # as_fn_mkdir_p
    363 
    364 # as_fn_executable_p FILE
    365 # -----------------------
    366 # Test if FILE is an executable regular file.
    367 as_fn_executable_p ()
    368 {
    369   test -f "$1" && test -x "$1"
    370 } # as_fn_executable_p
    371 # as_fn_append VAR VALUE
    372 # ----------------------
    373 # Append the text in VALUE to the end of the definition contained in VAR. Take
    374 # advantage of any shell optimizations that allow amortized linear growth over
    375 # repeated appends, instead of the typical quadratic growth present in naive
    376 # implementations.
    377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    378   eval 'as_fn_append ()
    379   {
    380     eval $1+=\$2
    381   }'
    382 else
    383   as_fn_append ()
    384   {
    385     eval $1=\$$1\$2
    386   }
    387 fi # as_fn_append
    388 
    389 # as_fn_arith ARG...
    390 # ------------------
    391 # Perform arithmetic evaluation on the ARGs, and store the result in the
    392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    393 # must be portable across $(()) and expr.
    394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    395   eval 'as_fn_arith ()
    396   {
    397     as_val=$(( $* ))
    398   }'
    399 else
    400   as_fn_arith ()
    401   {
    402     as_val=`expr "$@" || test $? -eq 1`
    403   }
    404 fi # as_fn_arith
    405 
    406 
    407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    408 # ----------------------------------------
    409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    411 # script with STATUS, using 1 if that was 0.
    412 as_fn_error ()
    413 {
    414   as_status=$1; test $as_status -eq 0 && as_status=1
    415   if test "$4"; then
    416     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    417     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    418   fi
    419   $as_echo "$as_me: error: $2" >&2
    420   as_fn_exit $as_status
    421 } # as_fn_error
    422 
    423 if expr a : '\(a\)' >/dev/null 2>&1 &&
    424    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    425   as_expr=expr
    426 else
    427   as_expr=false
    428 fi
    429 
    430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    431   as_basename=basename
    432 else
    433   as_basename=false
    434 fi
    435 
    436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    437   as_dirname=dirname
    438 else
    439   as_dirname=false
    440 fi
    441 
    442 as_me=`$as_basename -- "$0" ||
    443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    444 	 X"$0" : 'X\(//\)$' \| \
    445 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    446 $as_echo X/"$0" |
    447     sed '/^.*\/\([^/][^/]*\)\/*$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\/\)$/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  /^X\/\(\/\).*/{
    456 	    s//\1/
    457 	    q
    458 	  }
    459 	  s/.*/./; q'`
    460 
    461 # Avoid depending upon Character Ranges.
    462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    465 as_cr_digits='0123456789'
    466 as_cr_alnum=$as_cr_Letters$as_cr_digits
    467 
    468 
    469   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    470   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    471   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    472   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    473   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    474   sed -n '
    475     p
    476     /[$]LINENO/=
    477   ' <$as_myself |
    478     sed '
    479       s/[$]LINENO.*/&-/
    480       t lineno
    481       b
    482       :lineno
    483       N
    484       :loop
    485       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    486       t loop
    487       s/-\n.*//
    488     ' >$as_me.lineno &&
    489   chmod +x "$as_me.lineno" ||
    490     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    491 
    492   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    493   # already done that, so ensure we don't try to do so again and fall
    494   # in an infinite loop.  This has already happened in practice.
    495   _as_can_reexec=no; export _as_can_reexec
    496   # Don't try to exec as it changes $[0], causing all sort of problems
    497   # (the dirname of $[0] is not the place where we might find the
    498   # original and so on.  Autoconf is especially sensitive to this).
    499   . "./$as_me.lineno"
    500   # Exit status is that of the last command.
    501   exit
    502 }
    503 
    504 ECHO_C= ECHO_N= ECHO_T=
    505 case `echo -n x` in #(((((
    506 -n*)
    507   case `echo 'xy\c'` in
    508   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    509   xy)  ECHO_C='\c';;
    510   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    511        ECHO_T='	';;
    512   esac;;
    513 *)
    514   ECHO_N='-n';;
    515 esac
    516 
    517 rm -f conf$$ conf$$.exe conf$$.file
    518 if test -d conf$$.dir; then
    519   rm -f conf$$.dir/conf$$.file
    520 else
    521   rm -f conf$$.dir
    522   mkdir conf$$.dir 2>/dev/null
    523 fi
    524 if (echo >conf$$.file) 2>/dev/null; then
    525   if ln -s conf$$.file conf$$ 2>/dev/null; then
    526     as_ln_s='ln -s'
    527     # ... but there are two gotchas:
    528     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    529     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    530     # In both cases, we have to default to `cp -pR'.
    531     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    532       as_ln_s='cp -pR'
    533   elif ln conf$$.file conf$$ 2>/dev/null; then
    534     as_ln_s=ln
    535   else
    536     as_ln_s='cp -pR'
    537   fi
    538 else
    539   as_ln_s='cp -pR'
    540 fi
    541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    542 rmdir conf$$.dir 2>/dev/null
    543 
    544 if mkdir -p . 2>/dev/null; then
    545   as_mkdir_p='mkdir -p "$as_dir"'
    546 else
    547   test -d ./-p && rmdir ./-p
    548   as_mkdir_p=false
    549 fi
    550 
    551 as_test_x='test -x'
    552 as_executable_p=as_fn_executable_p
    553 
    554 # Sed expression to map a string onto a valid CPP name.
    555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    556 
    557 # Sed expression to map a string onto a valid variable name.
    558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    559 
    560 
    561 test -n "$DJDIR" || exec 7<&0 </dev/null
    562 exec 6>&1
    563 
    564 # Name of the host.
    565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    566 # so uname gets run too.
    567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    568 
    569 #
    570 # Initializations.
    571 #
    572 ac_default_prefix=/usr/local
    573 ac_clean_files=
    574 ac_config_libobj_dir=.
    575 LIBOBJS=
    576 cross_compiling=no
    577 subdirs=
    578 MFLAGS=
    579 MAKEFLAGS=
    580 
    581 # Identity of this package.
    582 PACKAGE_NAME='python'
    583 PACKAGE_TARNAME='python'
    584 PACKAGE_VERSION='2.7'
    585 PACKAGE_STRING='python 2.7'
    586 PACKAGE_BUGREPORT='https://bugs.python.org/'
    587 PACKAGE_URL=''
    588 
    589 ac_unique_file="Include/object.h"
    590 # Factoring default headers for most tests.
    591 ac_includes_default="\
    592 #include <stdio.h>
    593 #ifdef HAVE_SYS_TYPES_H
    594 # include <sys/types.h>
    595 #endif
    596 #ifdef HAVE_SYS_STAT_H
    597 # include <sys/stat.h>
    598 #endif
    599 #ifdef STDC_HEADERS
    600 # include <stdlib.h>
    601 # include <stddef.h>
    602 #else
    603 # ifdef HAVE_STDLIB_H
    604 #  include <stdlib.h>
    605 # endif
    606 #endif
    607 #ifdef HAVE_STRING_H
    608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    609 #  include <memory.h>
    610 # endif
    611 # include <string.h>
    612 #endif
    613 #ifdef HAVE_STRINGS_H
    614 # include <strings.h>
    615 #endif
    616 #ifdef HAVE_INTTYPES_H
    617 # include <inttypes.h>
    618 #endif
    619 #ifdef HAVE_STDINT_H
    620 # include <stdint.h>
    621 #endif
    622 #ifdef HAVE_UNISTD_H
    623 # include <unistd.h>
    624 #endif"
    625 
    626 ac_subst_vars='LTLIBOBJS
    627 ENSUREPIP
    628 SRCDIRS
    629 THREADHEADERS
    630 UNICODE_OBJS
    631 LIBC
    632 LIBM
    633 HAVE_GETHOSTBYNAME
    634 HAVE_GETHOSTBYNAME_R
    635 HAVE_GETHOSTBYNAME_R_3_ARG
    636 HAVE_GETHOSTBYNAME_R_5_ARG
    637 HAVE_GETHOSTBYNAME_R_6_ARG
    638 LIBOBJS
    639 TRUE
    640 MACHDEP_OBJS
    641 DYNLOADFILE
    642 DLINCLDIR
    643 THREADOBJ
    644 LDLAST
    645 USE_THREAD_MODULE
    646 SIGNAL_OBJS
    647 USE_SIGNAL_MODULE
    648 TCLTK_LIBS
    649 TCLTK_INCLUDES
    650 LIBFFI_INCLUDEDIR
    651 PKG_CONFIG_LIBDIR
    652 PKG_CONFIG_PATH
    653 PKG_CONFIG
    654 SHLIBS
    655 CFLAGSFORSHARED
    656 LINKFORSHARED
    657 CCSHARED
    658 BLDSHARED
    659 LDCXXSHARED
    660 LDSHARED
    661 SO
    662 LIBTOOL_CRUFT
    663 OTHER_LIBTOOL_OPT
    664 LLVM_PROF_FOUND
    665 target_os
    666 target_vendor
    667 target_cpu
    668 target
    669 LLVM_PROFDATA
    670 LLVM_PROF_ERR
    671 LLVM_PROF_FILE
    672 LLVM_PROF_MERGER
    673 PGO_PROF_USE_FLAG
    674 PGO_PROF_GEN_FLAG
    675 LTOFLAGS
    676 DEF_MAKE_RULE
    677 DEF_MAKE_ALL_RULE
    678 UNIVERSAL_ARCH_FLAGS
    679 BASECFLAGS
    680 OPT
    681 LN
    682 MKDIR_P
    683 INSTALL_DATA
    684 INSTALL_SCRIPT
    685 INSTALL_PROGRAM
    686 HAS_GIT
    687 GITBRANCH
    688 GITTAG
    689 GITVERSION
    690 ARFLAGS
    691 ac_ct_AR
    692 AR
    693 RANLIB
    694 GNULD
    695 LINKCC
    696 RUNSHARED
    697 INSTSONAME
    698 LDLIBRARYDIR
    699 BLDLIBRARY
    700 DLLLIBRARY
    701 LDLIBRARY
    702 LIBRARY
    703 BUILDEXEEXT
    704 EGREP
    705 GREP
    706 CPP
    707 MULTIARCH
    708 ac_ct_CXX
    709 MAINCC
    710 CXX
    711 OBJEXT
    712 EXEEXT
    713 ac_ct_CC
    714 CPPFLAGS
    715 LDFLAGS
    716 CFLAGS
    717 CC
    718 EXPORT_MACOSX_DEPLOYMENT_TARGET
    719 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
    720 EXTRAMACHDEPPATH
    721 EXTRAPLATDIR
    722 PLATDIR
    723 SGI_ABI
    724 _PYTHON_HOST_PLATFORM
    725 MACHDEP
    726 FRAMEWORKINSTALLAPPSPREFIX
    727 FRAMEWORKUNIXTOOLSPREFIX
    728 FRAMEWORKALTINSTALLLAST
    729 FRAMEWORKALTINSTALLFIRST
    730 FRAMEWORKINSTALLLAST
    731 FRAMEWORKINSTALLFIRST
    732 PYTHONFRAMEWORKINSTALLDIR
    733 PYTHONFRAMEWORKPREFIX
    734 PYTHONFRAMEWORKDIR
    735 PYTHONFRAMEWORKIDENTIFIER
    736 PYTHONFRAMEWORK
    737 LIPO_32BIT_FLAGS
    738 ARCH_RUN_32BIT
    739 UNIVERSALSDK
    740 CONFIG_ARGS
    741 SOVERSION
    742 VERSION
    743 PYTHON_FOR_BUILD
    744 PYTHON_FOR_REGEN
    745 host_os
    746 host_vendor
    747 host_cpu
    748 host
    749 build_os
    750 build_vendor
    751 build_cpu
    752 build
    753 target_alias
    754 host_alias
    755 build_alias
    756 LIBS
    757 ECHO_T
    758 ECHO_N
    759 ECHO_C
    760 DEFS
    761 mandir
    762 localedir
    763 libdir
    764 psdir
    765 pdfdir
    766 dvidir
    767 htmldir
    768 infodir
    769 docdir
    770 oldincludedir
    771 includedir
    772 runstatedir
    773 localstatedir
    774 sharedstatedir
    775 sysconfdir
    776 datadir
    777 datarootdir
    778 libexecdir
    779 sbindir
    780 bindir
    781 program_transform_name
    782 prefix
    783 exec_prefix
    784 PACKAGE_URL
    785 PACKAGE_BUGREPORT
    786 PACKAGE_STRING
    787 PACKAGE_VERSION
    788 PACKAGE_TARNAME
    789 PACKAGE_NAME
    790 PATH_SEPARATOR
    791 SHELL'
    792 ac_subst_files=''
    793 ac_user_opts='
    794 enable_option_checking
    795 enable_universalsdk
    796 with_universal_archs
    797 with_framework_name
    798 enable_framework
    799 with_gcc
    800 with_icc
    801 with_cxx_main
    802 with_suffix
    803 enable_shared
    804 enable_profiling
    805 with_pydebug
    806 enable_optimizations
    807 with_lto
    808 enable_toolbox_glue
    809 with_libs
    810 with_system_expat
    811 with_system_ffi
    812 with_tcltk_includes
    813 with_tcltk_libs
    814 with_dbmliborder
    815 with_signal_module
    816 with_dec_threads
    817 with_threads
    818 with_thread
    819 with_pth
    820 enable_ipv6
    821 with_doc_strings
    822 with_tsc
    823 with_pymalloc
    824 with_valgrind
    825 with_wctype_functions
    826 with_fpectl
    827 with_libm
    828 with_libc
    829 enable_big_digits
    830 enable_unicode
    831 with_computed_gotos
    832 with_ensurepip
    833 '
    834       ac_precious_vars='build_alias
    835 host_alias
    836 target_alias
    837 CC
    838 CFLAGS
    839 LDFLAGS
    840 LIBS
    841 CPPFLAGS
    842 CPP
    843 PKG_CONFIG
    844 PKG_CONFIG_PATH
    845 PKG_CONFIG_LIBDIR'
    846 
    847 
    848 # Initialize some variables set by options.
    849 ac_init_help=
    850 ac_init_version=false
    851 ac_unrecognized_opts=
    852 ac_unrecognized_sep=
    853 # The variables have the same names as the options, with
    854 # dashes changed to underlines.
    855 cache_file=/dev/null
    856 exec_prefix=NONE
    857 no_create=
    858 no_recursion=
    859 prefix=NONE
    860 program_prefix=NONE
    861 program_suffix=NONE
    862 program_transform_name=s,x,x,
    863 silent=
    864 site=
    865 srcdir=
    866 verbose=
    867 x_includes=NONE
    868 x_libraries=NONE
    869 
    870 # Installation directory options.
    871 # These are left unexpanded so users can "make install exec_prefix=/foo"
    872 # and all the variables that are supposed to be based on exec_prefix
    873 # by default will actually change.
    874 # Use braces instead of parens because sh, perl, etc. also accept them.
    875 # (The list follows the same order as the GNU Coding Standards.)
    876 bindir='${exec_prefix}/bin'
    877 sbindir='${exec_prefix}/sbin'
    878 libexecdir='${exec_prefix}/libexec'
    879 datarootdir='${prefix}/share'
    880 datadir='${datarootdir}'
    881 sysconfdir='${prefix}/etc'
    882 sharedstatedir='${prefix}/com'
    883 localstatedir='${prefix}/var'
    884 runstatedir='${localstatedir}/run'
    885 includedir='${prefix}/include'
    886 oldincludedir='/usr/include'
    887 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    888 infodir='${datarootdir}/info'
    889 htmldir='${docdir}'
    890 dvidir='${docdir}'
    891 pdfdir='${docdir}'
    892 psdir='${docdir}'
    893 libdir='${exec_prefix}/lib'
    894 localedir='${datarootdir}/locale'
    895 mandir='${datarootdir}/man'
    896 
    897 ac_prev=
    898 ac_dashdash=
    899 for ac_option
    900 do
    901   # If the previous option needs an argument, assign it.
    902   if test -n "$ac_prev"; then
    903     eval $ac_prev=\$ac_option
    904     ac_prev=
    905     continue
    906   fi
    907 
    908   case $ac_option in
    909   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    910   *=)   ac_optarg= ;;
    911   *)    ac_optarg=yes ;;
    912   esac
    913 
    914   # Accept the important Cygnus configure options, so we can diagnose typos.
    915 
    916   case $ac_dashdash$ac_option in
    917   --)
    918     ac_dashdash=yes ;;
    919 
    920   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    921     ac_prev=bindir ;;
    922   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    923     bindir=$ac_optarg ;;
    924 
    925   -build | --build | --buil | --bui | --bu)
    926     ac_prev=build_alias ;;
    927   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    928     build_alias=$ac_optarg ;;
    929 
    930   -cache-file | --cache-file | --cache-fil | --cache-fi \
    931   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    932     ac_prev=cache_file ;;
    933   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    934   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    935     cache_file=$ac_optarg ;;
    936 
    937   --config-cache | -C)
    938     cache_file=config.cache ;;
    939 
    940   -datadir | --datadir | --datadi | --datad)
    941     ac_prev=datadir ;;
    942   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    943     datadir=$ac_optarg ;;
    944 
    945   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    946   | --dataroo | --dataro | --datar)
    947     ac_prev=datarootdir ;;
    948   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    949   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    950     datarootdir=$ac_optarg ;;
    951 
    952   -disable-* | --disable-*)
    953     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    954     # Reject names that are not valid shell variable names.
    955     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    956       as_fn_error $? "invalid feature name: $ac_useropt"
    957     ac_useropt_orig=$ac_useropt
    958     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    959     case $ac_user_opts in
    960       *"
    961 "enable_$ac_useropt"
    962 "*) ;;
    963       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    964 	 ac_unrecognized_sep=', ';;
    965     esac
    966     eval enable_$ac_useropt=no ;;
    967 
    968   -docdir | --docdir | --docdi | --doc | --do)
    969     ac_prev=docdir ;;
    970   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    971     docdir=$ac_optarg ;;
    972 
    973   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    974     ac_prev=dvidir ;;
    975   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    976     dvidir=$ac_optarg ;;
    977 
    978   -enable-* | --enable-*)
    979     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    980     # Reject names that are not valid shell variable names.
    981     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    982       as_fn_error $? "invalid feature name: $ac_useropt"
    983     ac_useropt_orig=$ac_useropt
    984     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    985     case $ac_user_opts in
    986       *"
    987 "enable_$ac_useropt"
    988 "*) ;;
    989       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    990 	 ac_unrecognized_sep=', ';;
    991     esac
    992     eval enable_$ac_useropt=\$ac_optarg ;;
    993 
    994   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    995   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    996   | --exec | --exe | --ex)
    997     ac_prev=exec_prefix ;;
    998   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    999   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1000   | --exec=* | --exe=* | --ex=*)
   1001     exec_prefix=$ac_optarg ;;
   1002 
   1003   -gas | --gas | --ga | --g)
   1004     # Obsolete; use --with-gas.
   1005     with_gas=yes ;;
   1006 
   1007   -help | --help | --hel | --he | -h)
   1008     ac_init_help=long ;;
   1009   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1010     ac_init_help=recursive ;;
   1011   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1012     ac_init_help=short ;;
   1013 
   1014   -host | --host | --hos | --ho)
   1015     ac_prev=host_alias ;;
   1016   -host=* | --host=* | --hos=* | --ho=*)
   1017     host_alias=$ac_optarg ;;
   1018 
   1019   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1020     ac_prev=htmldir ;;
   1021   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1022   | --ht=*)
   1023     htmldir=$ac_optarg ;;
   1024 
   1025   -includedir | --includedir | --includedi | --included | --include \
   1026   | --includ | --inclu | --incl | --inc)
   1027     ac_prev=includedir ;;
   1028   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1029   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1030     includedir=$ac_optarg ;;
   1031 
   1032   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1033     ac_prev=infodir ;;
   1034   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1035     infodir=$ac_optarg ;;
   1036 
   1037   -libdir | --libdir | --libdi | --libd)
   1038     ac_prev=libdir ;;
   1039   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1040     libdir=$ac_optarg ;;
   1041 
   1042   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1043   | --libexe | --libex | --libe)
   1044     ac_prev=libexecdir ;;
   1045   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1046   | --libexe=* | --libex=* | --libe=*)
   1047     libexecdir=$ac_optarg ;;
   1048 
   1049   -localedir | --localedir | --localedi | --localed | --locale)
   1050     ac_prev=localedir ;;
   1051   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1052     localedir=$ac_optarg ;;
   1053 
   1054   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1055   | --localstate | --localstat | --localsta | --localst | --locals)
   1056     ac_prev=localstatedir ;;
   1057   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1058   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1059     localstatedir=$ac_optarg ;;
   1060 
   1061   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1062     ac_prev=mandir ;;
   1063   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1064     mandir=$ac_optarg ;;
   1065 
   1066   -nfp | --nfp | --nf)
   1067     # Obsolete; use --without-fp.
   1068     with_fp=no ;;
   1069 
   1070   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1071   | --no-cr | --no-c | -n)
   1072     no_create=yes ;;
   1073 
   1074   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1075   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1076     no_recursion=yes ;;
   1077 
   1078   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1079   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1080   | --oldin | --oldi | --old | --ol | --o)
   1081     ac_prev=oldincludedir ;;
   1082   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1083   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1084   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1085     oldincludedir=$ac_optarg ;;
   1086 
   1087   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1088     ac_prev=prefix ;;
   1089   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1090     prefix=$ac_optarg ;;
   1091 
   1092   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1093   | --program-pre | --program-pr | --program-p)
   1094     ac_prev=program_prefix ;;
   1095   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1096   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1097     program_prefix=$ac_optarg ;;
   1098 
   1099   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1100   | --program-suf | --program-su | --program-s)
   1101     ac_prev=program_suffix ;;
   1102   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1103   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1104     program_suffix=$ac_optarg ;;
   1105 
   1106   -program-transform-name | --program-transform-name \
   1107   | --program-transform-nam | --program-transform-na \
   1108   | --program-transform-n | --program-transform- \
   1109   | --program-transform | --program-transfor \
   1110   | --program-transfo | --program-transf \
   1111   | --program-trans | --program-tran \
   1112   | --progr-tra | --program-tr | --program-t)
   1113     ac_prev=program_transform_name ;;
   1114   -program-transform-name=* | --program-transform-name=* \
   1115   | --program-transform-nam=* | --program-transform-na=* \
   1116   | --program-transform-n=* | --program-transform-=* \
   1117   | --program-transform=* | --program-transfor=* \
   1118   | --program-transfo=* | --program-transf=* \
   1119   | --program-trans=* | --program-tran=* \
   1120   | --progr-tra=* | --program-tr=* | --program-t=*)
   1121     program_transform_name=$ac_optarg ;;
   1122 
   1123   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1124     ac_prev=pdfdir ;;
   1125   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1126     pdfdir=$ac_optarg ;;
   1127 
   1128   -psdir | --psdir | --psdi | --psd | --ps)
   1129     ac_prev=psdir ;;
   1130   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1131     psdir=$ac_optarg ;;
   1132 
   1133   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1134   | -silent | --silent | --silen | --sile | --sil)
   1135     silent=yes ;;
   1136 
   1137   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1138   | --runstate | --runstat | --runsta | --runst | --runs \
   1139   | --run | --ru | --r)
   1140     ac_prev=runstatedir ;;
   1141   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1142   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1143   | --run=* | --ru=* | --r=*)
   1144     runstatedir=$ac_optarg ;;
   1145 
   1146   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1147     ac_prev=sbindir ;;
   1148   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1149   | --sbi=* | --sb=*)
   1150     sbindir=$ac_optarg ;;
   1151 
   1152   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1153   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1154   | --sharedst | --shareds | --shared | --share | --shar \
   1155   | --sha | --sh)
   1156     ac_prev=sharedstatedir ;;
   1157   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1158   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1159   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1160   | --sha=* | --sh=*)
   1161     sharedstatedir=$ac_optarg ;;
   1162 
   1163   -site | --site | --sit)
   1164     ac_prev=site ;;
   1165   -site=* | --site=* | --sit=*)
   1166     site=$ac_optarg ;;
   1167 
   1168   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1169     ac_prev=srcdir ;;
   1170   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1171     srcdir=$ac_optarg ;;
   1172 
   1173   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1174   | --syscon | --sysco | --sysc | --sys | --sy)
   1175     ac_prev=sysconfdir ;;
   1176   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1177   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1178     sysconfdir=$ac_optarg ;;
   1179 
   1180   -target | --target | --targe | --targ | --tar | --ta | --t)
   1181     ac_prev=target_alias ;;
   1182   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1183     target_alias=$ac_optarg ;;
   1184 
   1185   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1186     verbose=yes ;;
   1187 
   1188   -version | --version | --versio | --versi | --vers | -V)
   1189     ac_init_version=: ;;
   1190 
   1191   -with-* | --with-*)
   1192     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1193     # Reject names that are not valid shell variable names.
   1194     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1195       as_fn_error $? "invalid package name: $ac_useropt"
   1196     ac_useropt_orig=$ac_useropt
   1197     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1198     case $ac_user_opts in
   1199       *"
   1200 "with_$ac_useropt"
   1201 "*) ;;
   1202       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1203 	 ac_unrecognized_sep=', ';;
   1204     esac
   1205     eval with_$ac_useropt=\$ac_optarg ;;
   1206 
   1207   -without-* | --without-*)
   1208     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1209     # Reject names that are not valid shell variable names.
   1210     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1211       as_fn_error $? "invalid package name: $ac_useropt"
   1212     ac_useropt_orig=$ac_useropt
   1213     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1214     case $ac_user_opts in
   1215       *"
   1216 "with_$ac_useropt"
   1217 "*) ;;
   1218       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1219 	 ac_unrecognized_sep=', ';;
   1220     esac
   1221     eval with_$ac_useropt=no ;;
   1222 
   1223   --x)
   1224     # Obsolete; use --with-x.
   1225     with_x=yes ;;
   1226 
   1227   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1228   | --x-incl | --x-inc | --x-in | --x-i)
   1229     ac_prev=x_includes ;;
   1230   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1231   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1232     x_includes=$ac_optarg ;;
   1233 
   1234   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1235   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1236     ac_prev=x_libraries ;;
   1237   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1238   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1239     x_libraries=$ac_optarg ;;
   1240 
   1241   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1242 Try \`$0 --help' for more information"
   1243     ;;
   1244 
   1245   *=*)
   1246     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1247     # Reject names that are not valid shell variable names.
   1248     case $ac_envvar in #(
   1249       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1250       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1251     esac
   1252     eval $ac_envvar=\$ac_optarg
   1253     export $ac_envvar ;;
   1254 
   1255   *)
   1256     # FIXME: should be removed in autoconf 3.0.
   1257     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1258     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1259       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1260     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1261     ;;
   1262 
   1263   esac
   1264 done
   1265 
   1266 if test -n "$ac_prev"; then
   1267   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1268   as_fn_error $? "missing argument to $ac_option"
   1269 fi
   1270 
   1271 if test -n "$ac_unrecognized_opts"; then
   1272   case $enable_option_checking in
   1273     no) ;;
   1274     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1275     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1276   esac
   1277 fi
   1278 
   1279 # Check all directory arguments for consistency.
   1280 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1281 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1282 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1283 		libdir localedir mandir runstatedir
   1284 do
   1285   eval ac_val=\$$ac_var
   1286   # Remove trailing slashes.
   1287   case $ac_val in
   1288     */ )
   1289       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1290       eval $ac_var=\$ac_val;;
   1291   esac
   1292   # Be sure to have absolute directory names.
   1293   case $ac_val in
   1294     [\\/$]* | ?:[\\/]* )  continue;;
   1295     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1296   esac
   1297   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1298 done
   1299 
   1300 # There might be people who depend on the old broken behavior: `$host'
   1301 # used to hold the argument of --host etc.
   1302 # FIXME: To remove some day.
   1303 build=$build_alias
   1304 host=$host_alias
   1305 target=$target_alias
   1306 
   1307 # FIXME: To remove some day.
   1308 if test "x$host_alias" != x; then
   1309   if test "x$build_alias" = x; then
   1310     cross_compiling=maybe
   1311   elif test "x$build_alias" != "x$host_alias"; then
   1312     cross_compiling=yes
   1313   fi
   1314 fi
   1315 
   1316 ac_tool_prefix=
   1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1318 
   1319 test "$silent" = yes && exec 6>/dev/null
   1320 
   1321 
   1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1323 ac_ls_di=`ls -di .` &&
   1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1325   as_fn_error $? "working directory cannot be determined"
   1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1327   as_fn_error $? "pwd does not report name of working directory"
   1328 
   1329 
   1330 # Find the source files, if location was not specified.
   1331 if test -z "$srcdir"; then
   1332   ac_srcdir_defaulted=yes
   1333   # Try the directory containing this script, then the parent directory.
   1334   ac_confdir=`$as_dirname -- "$as_myself" ||
   1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1336 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1337 	 X"$as_myself" : 'X\(//\)$' \| \
   1338 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1339 $as_echo X"$as_myself" |
   1340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1341 	    s//\1/
   1342 	    q
   1343 	  }
   1344 	  /^X\(\/\/\)[^/].*/{
   1345 	    s//\1/
   1346 	    q
   1347 	  }
   1348 	  /^X\(\/\/\)$/{
   1349 	    s//\1/
   1350 	    q
   1351 	  }
   1352 	  /^X\(\/\).*/{
   1353 	    s//\1/
   1354 	    q
   1355 	  }
   1356 	  s/.*/./; q'`
   1357   srcdir=$ac_confdir
   1358   if test ! -r "$srcdir/$ac_unique_file"; then
   1359     srcdir=..
   1360   fi
   1361 else
   1362   ac_srcdir_defaulted=no
   1363 fi
   1364 if test ! -r "$srcdir/$ac_unique_file"; then
   1365   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1366   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1367 fi
   1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1369 ac_abs_confdir=`(
   1370 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1371 	pwd)`
   1372 # When building in place, set srcdir=.
   1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1374   srcdir=.
   1375 fi
   1376 # Remove unnecessary trailing slashes from srcdir.
   1377 # Double slashes in file names in object file debugging info
   1378 # mess up M-x gdb in Emacs.
   1379 case $srcdir in
   1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1381 esac
   1382 for ac_var in $ac_precious_vars; do
   1383   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1384   eval ac_env_${ac_var}_value=\$${ac_var}
   1385   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1386   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1387 done
   1388 
   1389 #
   1390 # Report the --help message.
   1391 #
   1392 if test "$ac_init_help" = "long"; then
   1393   # Omit some internal or obsolete options to make the list less imposing.
   1394   # This message is too long to be a string in the A/UX 3.1 sh.
   1395   cat <<_ACEOF
   1396 \`configure' configures python 2.7 to adapt to many kinds of systems.
   1397 
   1398 Usage: $0 [OPTION]... [VAR=VALUE]...
   1399 
   1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1401 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1402 
   1403 Defaults for the options are specified in brackets.
   1404 
   1405 Configuration:
   1406   -h, --help              display this help and exit
   1407       --help=short        display options specific to this package
   1408       --help=recursive    display the short help of all the included packages
   1409   -V, --version           display version information and exit
   1410   -q, --quiet, --silent   do not print \`checking ...' messages
   1411       --cache-file=FILE   cache test results in FILE [disabled]
   1412   -C, --config-cache      alias for \`--cache-file=config.cache'
   1413   -n, --no-create         do not create output files
   1414       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1415 
   1416 Installation directories:
   1417   --prefix=PREFIX         install architecture-independent files in PREFIX
   1418                           [$ac_default_prefix]
   1419   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1420                           [PREFIX]
   1421 
   1422 By default, \`make install' will install all the files in
   1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1425 for instance \`--prefix=\$HOME'.
   1426 
   1427 For better control, use the options below.
   1428 
   1429 Fine tuning of the installation directories:
   1430   --bindir=DIR            user executables [EPREFIX/bin]
   1431   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1432   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1433   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1434   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1435   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1436   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1437   --libdir=DIR            object code libraries [EPREFIX/lib]
   1438   --includedir=DIR        C header files [PREFIX/include]
   1439   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1440   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1441   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1442   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1443   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1444   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1445   --docdir=DIR            documentation root [DATAROOTDIR/doc/python]
   1446   --htmldir=DIR           html documentation [DOCDIR]
   1447   --dvidir=DIR            dvi documentation [DOCDIR]
   1448   --pdfdir=DIR            pdf documentation [DOCDIR]
   1449   --psdir=DIR             ps documentation [DOCDIR]
   1450 _ACEOF
   1451 
   1452   cat <<\_ACEOF
   1453 
   1454 System types:
   1455   --build=BUILD     configure for building on BUILD [guessed]
   1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1457   --target=TARGET   configure for building compilers for TARGET [HOST]
   1458 _ACEOF
   1459 fi
   1460 
   1461 if test -n "$ac_init_help"; then
   1462   case $ac_init_help in
   1463      short | recursive ) echo "Configuration of python 2.7:";;
   1464    esac
   1465   cat <<\_ACEOF
   1466 
   1467 Optional Features:
   1468   --disable-option-checking  ignore unrecognized --enable/--with options
   1469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1471   --enable-universalsdk[=SDKDIR]
   1472                           Build fat binary against Mac OS X SDK
   1473   --enable-framework[=INSTALLDIR]
   1474                           Build (MacOSX|Darwin) framework
   1475   --enable-shared         disable/enable building shared python library
   1476   --enable-profiling      enable C-level code profiling
   1477   --enable-optimizations  Enable expensive optimizations (PGO, maybe LTO,
   1478                           etc). Disabled by default.
   1479   --enable-toolbox-glue   disable/enable MacOSX glue code for extensions
   1480   --enable-ipv6           Enable ipv6 (with ipv4) support
   1481   --disable-ipv6          Disable ipv6 support
   1482   --enable-big-digits[=BITS]
   1483                           use big digits for Python longs [[BITS=30]]
   1484   --enable-unicode[=ucs[24]]
   1485                           Enable Unicode strings (default is ucs2)
   1486 
   1487 Optional Packages:
   1488   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1489   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1490   --with-universal-archs=ARCH
   1491                           select architectures for universal build ("32-bit",
   1492                           "64-bit", "3-way", "intel", "intel-32", "intel-64",
   1493                           or "all")
   1494   --with-framework-name=FRAMEWORK
   1495                           specify an alternate name of the framework built
   1496                           with --enable-framework
   1497   --without-gcc           never use gcc
   1498   --with-icc              build with icc
   1499   --with-cxx-main=<compiler>
   1500                           compile main() and link python executable with C++
   1501                           compiler
   1502   --with-suffix=.exe      set executable suffix
   1503   --with-pydebug          build with Py_DEBUG defined
   1504   --with-lto              Enable Link Time Optimization in PGO builds.
   1505                           Disabled by default.
   1506   --with-libs='lib1 ...'  link against additional libs
   1507   --with-system-expat     build pyexpat module using an installed expat
   1508                           library
   1509   --with-system-ffi       build _ctypes module using an installed ffi library
   1510   --with-tcltk-includes='-I...'
   1511                           override search for Tcl and Tk include files
   1512   --with-tcltk-libs='-L...'
   1513                           override search for Tcl and Tk libs
   1514   --with-dbmliborder=db1:db2:...
   1515                           order to check db backends for dbm. Valid value is a
   1516                           colon separated string with the backend names
   1517                           `ndbm', `gdbm' and `bdb'.
   1518   --with-signal-module    disable/enable signal module
   1519   --with-dec-threads      use DEC Alpha/OSF1 thread-safe libraries
   1520   --with(out)-threads[=DIRECTORY]
   1521                           disable/enable thread support
   1522   --with(out)-thread[=DIRECTORY]
   1523                           deprecated; use --with(out)-threads
   1524   --with-pth              use GNU pth threading libraries
   1525   --with(out)-doc-strings disable/enable documentation strings
   1526   --with(out)-tsc         enable/disable timestamp counter profile
   1527   --with(out)-pymalloc    disable/enable specialized mallocs
   1528   --with-valgrind         Enable Valgrind support
   1529   --with-wctype-functions use wctype.h functions
   1530   --with-fpectl           enable SIGFPE catching
   1531   --with-libm=STRING      math library
   1532   --with-libc=STRING      C library
   1533   --with(out)-computed-gotos
   1534                           Use computed gotos in evaluation loop (enabled by
   1535                           default on supported compilers)
   1536   --with(out)-ensurepip=[=OPTION]
   1537                           "install" or "upgrade" using bundled pip, default is
   1538                           "no"
   1539 
   1540 Some influential environment variables:
   1541   CC          C compiler command
   1542   CFLAGS      C compiler flags
   1543   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1544               nonstandard directory <lib dir>
   1545   LIBS        libraries to pass to the linker, e.g. -l<library>
   1546   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1547               you have headers in a nonstandard directory <include dir>
   1548   CPP         C preprocessor
   1549   PKG_CONFIG  path to pkg-config utility
   1550   PKG_CONFIG_PATH
   1551               directories to add to pkg-config's search path
   1552   PKG_CONFIG_LIBDIR
   1553               path overriding pkg-config's built-in search path
   1554 
   1555 Use these variables to override the choices made by `configure' or to help
   1556 it to find libraries and programs with nonstandard names/locations.
   1557 
   1558 Report bugs to <https://bugs.python.org/>.
   1559 _ACEOF
   1560 ac_status=$?
   1561 fi
   1562 
   1563 if test "$ac_init_help" = "recursive"; then
   1564   # If there are subdirs, report their specific --help.
   1565   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1566     test -d "$ac_dir" ||
   1567       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1568       continue
   1569     ac_builddir=.
   1570 
   1571 case "$ac_dir" in
   1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1573 *)
   1574   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1575   # A ".." for each directory in $ac_dir_suffix.
   1576   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1577   case $ac_top_builddir_sub in
   1578   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1579   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1580   esac ;;
   1581 esac
   1582 ac_abs_top_builddir=$ac_pwd
   1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1584 # for backward compatibility:
   1585 ac_top_builddir=$ac_top_build_prefix
   1586 
   1587 case $srcdir in
   1588   .)  # We are building in place.
   1589     ac_srcdir=.
   1590     ac_top_srcdir=$ac_top_builddir_sub
   1591     ac_abs_top_srcdir=$ac_pwd ;;
   1592   [\\/]* | ?:[\\/]* )  # Absolute name.
   1593     ac_srcdir=$srcdir$ac_dir_suffix;
   1594     ac_top_srcdir=$srcdir
   1595     ac_abs_top_srcdir=$srcdir ;;
   1596   *) # Relative name.
   1597     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1598     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1599     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1600 esac
   1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1602 
   1603     cd "$ac_dir" || { ac_status=$?; continue; }
   1604     # Check for guested configure.
   1605     if test -f "$ac_srcdir/configure.gnu"; then
   1606       echo &&
   1607       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1608     elif test -f "$ac_srcdir/configure"; then
   1609       echo &&
   1610       $SHELL "$ac_srcdir/configure" --help=recursive
   1611     else
   1612       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1613     fi || ac_status=$?
   1614     cd "$ac_pwd" || { ac_status=$?; break; }
   1615   done
   1616 fi
   1617 
   1618 test -n "$ac_init_help" && exit $ac_status
   1619 if $ac_init_version; then
   1620   cat <<\_ACEOF
   1621 python configure 2.7
   1622 generated by GNU Autoconf 2.69
   1623 
   1624 Copyright (C) 2012 Free Software Foundation, Inc.
   1625 This configure script is free software; the Free Software Foundation
   1626 gives unlimited permission to copy, distribute and modify it.
   1627 _ACEOF
   1628   exit
   1629 fi
   1630 
   1631 ## ------------------------ ##
   1632 ## Autoconf initialization. ##
   1633 ## ------------------------ ##
   1634 
   1635 # ac_fn_c_try_compile LINENO
   1636 # --------------------------
   1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1638 ac_fn_c_try_compile ()
   1639 {
   1640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1641   rm -f conftest.$ac_objext
   1642   if { { ac_try="$ac_compile"
   1643 case "(($ac_try" in
   1644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1645   *) ac_try_echo=$ac_try;;
   1646 esac
   1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1648 $as_echo "$ac_try_echo"; } >&5
   1649   (eval "$ac_compile") 2>conftest.err
   1650   ac_status=$?
   1651   if test -s conftest.err; then
   1652     grep -v '^ *+' conftest.err >conftest.er1
   1653     cat conftest.er1 >&5
   1654     mv -f conftest.er1 conftest.err
   1655   fi
   1656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1657   test $ac_status = 0; } && {
   1658 	 test -z "$ac_c_werror_flag" ||
   1659 	 test ! -s conftest.err
   1660        } && test -s conftest.$ac_objext; then :
   1661   ac_retval=0
   1662 else
   1663   $as_echo "$as_me: failed program was:" >&5
   1664 sed 's/^/| /' conftest.$ac_ext >&5
   1665 
   1666 	ac_retval=1
   1667 fi
   1668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1669   as_fn_set_status $ac_retval
   1670 
   1671 } # ac_fn_c_try_compile
   1672 
   1673 # ac_fn_c_try_cpp LINENO
   1674 # ----------------------
   1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1676 ac_fn_c_try_cpp ()
   1677 {
   1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1679   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1680 case "(($ac_try" in
   1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1682   *) ac_try_echo=$ac_try;;
   1683 esac
   1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1685 $as_echo "$ac_try_echo"; } >&5
   1686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1687   ac_status=$?
   1688   if test -s conftest.err; then
   1689     grep -v '^ *+' conftest.err >conftest.er1
   1690     cat conftest.er1 >&5
   1691     mv -f conftest.er1 conftest.err
   1692   fi
   1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1694   test $ac_status = 0; } > conftest.i && {
   1695 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1696 	 test ! -s conftest.err
   1697        }; then :
   1698   ac_retval=0
   1699 else
   1700   $as_echo "$as_me: failed program was:" >&5
   1701 sed 's/^/| /' conftest.$ac_ext >&5
   1702 
   1703     ac_retval=1
   1704 fi
   1705   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1706   as_fn_set_status $ac_retval
   1707 
   1708 } # ac_fn_c_try_cpp
   1709 
   1710 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1711 # -------------------------------------------------------
   1712 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1713 # the include files in INCLUDES and setting the cache variable VAR
   1714 # accordingly.
   1715 ac_fn_c_check_header_mongrel ()
   1716 {
   1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1718   if eval \${$3+:} false; then :
   1719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1720 $as_echo_n "checking for $2... " >&6; }
   1721 if eval \${$3+:} false; then :
   1722   $as_echo_n "(cached) " >&6
   1723 fi
   1724 eval ac_res=\$$3
   1725 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1726 $as_echo "$ac_res" >&6; }
   1727 else
   1728   # Is the header compilable?
   1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1730 $as_echo_n "checking $2 usability... " >&6; }
   1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1732 /* end confdefs.h.  */
   1733 $4
   1734 #include <$2>
   1735 _ACEOF
   1736 if ac_fn_c_try_compile "$LINENO"; then :
   1737   ac_header_compiler=yes
   1738 else
   1739   ac_header_compiler=no
   1740 fi
   1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1743 $as_echo "$ac_header_compiler" >&6; }
   1744 
   1745 # Is the header present?
   1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1747 $as_echo_n "checking $2 presence... " >&6; }
   1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1749 /* end confdefs.h.  */
   1750 #include <$2>
   1751 _ACEOF
   1752 if ac_fn_c_try_cpp "$LINENO"; then :
   1753   ac_header_preproc=yes
   1754 else
   1755   ac_header_preproc=no
   1756 fi
   1757 rm -f conftest.err conftest.i conftest.$ac_ext
   1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1759 $as_echo "$ac_header_preproc" >&6; }
   1760 
   1761 # So?  What about this header?
   1762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1763   yes:no: )
   1764     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1765 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1766     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1767 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1768     ;;
   1769   no:yes:* )
   1770     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1771 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1772     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1773 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1774     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1775 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1776     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1777 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1778     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1780 ( $as_echo "## --------------------------------------- ##
   1781 ## Report this to https://bugs.python.org/ ##
   1782 ## --------------------------------------- ##"
   1783      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1784     ;;
   1785 esac
   1786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1787 $as_echo_n "checking for $2... " >&6; }
   1788 if eval \${$3+:} false; then :
   1789   $as_echo_n "(cached) " >&6
   1790 else
   1791   eval "$3=\$ac_header_compiler"
   1792 fi
   1793 eval ac_res=\$$3
   1794 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1795 $as_echo "$ac_res" >&6; }
   1796 fi
   1797   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1798 
   1799 } # ac_fn_c_check_header_mongrel
   1800 
   1801 # ac_fn_c_try_run LINENO
   1802 # ----------------------
   1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1804 # that executables *can* be run.
   1805 ac_fn_c_try_run ()
   1806 {
   1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1808   if { { ac_try="$ac_link"
   1809 case "(($ac_try" in
   1810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1811   *) ac_try_echo=$ac_try;;
   1812 esac
   1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1814 $as_echo "$ac_try_echo"; } >&5
   1815   (eval "$ac_link") 2>&5
   1816   ac_status=$?
   1817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1818   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1819   { { case "(($ac_try" in
   1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1821   *) ac_try_echo=$ac_try;;
   1822 esac
   1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1824 $as_echo "$ac_try_echo"; } >&5
   1825   (eval "$ac_try") 2>&5
   1826   ac_status=$?
   1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1828   test $ac_status = 0; }; }; then :
   1829   ac_retval=0
   1830 else
   1831   $as_echo "$as_me: program exited with status $ac_status" >&5
   1832        $as_echo "$as_me: failed program was:" >&5
   1833 sed 's/^/| /' conftest.$ac_ext >&5
   1834 
   1835        ac_retval=$ac_status
   1836 fi
   1837   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1839   as_fn_set_status $ac_retval
   1840 
   1841 } # ac_fn_c_try_run
   1842 
   1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1844 # -------------------------------------------------------
   1845 # Tests whether HEADER exists and can be compiled using the include files in
   1846 # INCLUDES, setting the cache variable VAR accordingly.
   1847 ac_fn_c_check_header_compile ()
   1848 {
   1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1851 $as_echo_n "checking for $2... " >&6; }
   1852 if eval \${$3+:} false; then :
   1853   $as_echo_n "(cached) " >&6
   1854 else
   1855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1856 /* end confdefs.h.  */
   1857 $4
   1858 #include <$2>
   1859 _ACEOF
   1860 if ac_fn_c_try_compile "$LINENO"; then :
   1861   eval "$3=yes"
   1862 else
   1863   eval "$3=no"
   1864 fi
   1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1866 fi
   1867 eval ac_res=\$$3
   1868 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1869 $as_echo "$ac_res" >&6; }
   1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1871 
   1872 } # ac_fn_c_check_header_compile
   1873 
   1874 # ac_fn_c_try_link LINENO
   1875 # -----------------------
   1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1877 ac_fn_c_try_link ()
   1878 {
   1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1880   rm -f conftest.$ac_objext conftest$ac_exeext
   1881   if { { ac_try="$ac_link"
   1882 case "(($ac_try" in
   1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1884   *) ac_try_echo=$ac_try;;
   1885 esac
   1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1887 $as_echo "$ac_try_echo"; } >&5
   1888   (eval "$ac_link") 2>conftest.err
   1889   ac_status=$?
   1890   if test -s conftest.err; then
   1891     grep -v '^ *+' conftest.err >conftest.er1
   1892     cat conftest.er1 >&5
   1893     mv -f conftest.er1 conftest.err
   1894   fi
   1895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1896   test $ac_status = 0; } && {
   1897 	 test -z "$ac_c_werror_flag" ||
   1898 	 test ! -s conftest.err
   1899        } && test -s conftest$ac_exeext && {
   1900 	 test "$cross_compiling" = yes ||
   1901 	 test -x conftest$ac_exeext
   1902        }; then :
   1903   ac_retval=0
   1904 else
   1905   $as_echo "$as_me: failed program was:" >&5
   1906 sed 's/^/| /' conftest.$ac_ext >&5
   1907 
   1908 	ac_retval=1
   1909 fi
   1910   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1911   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1912   # interfere with the next link command; also delete a directory that is
   1913   # left behind by Apple's compiler.  We do this before executing the actions.
   1914   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1916   as_fn_set_status $ac_retval
   1917 
   1918 } # ac_fn_c_try_link
   1919 
   1920 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1921 # -------------------------------------------
   1922 # Tests whether TYPE exists after having included INCLUDES, setting cache
   1923 # variable VAR accordingly.
   1924 ac_fn_c_check_type ()
   1925 {
   1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1928 $as_echo_n "checking for $2... " >&6; }
   1929 if eval \${$3+:} false; then :
   1930   $as_echo_n "(cached) " >&6
   1931 else
   1932   eval "$3=no"
   1933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1934 /* end confdefs.h.  */
   1935 $4
   1936 int
   1937 main ()
   1938 {
   1939 if (sizeof ($2))
   1940 	 return 0;
   1941   ;
   1942   return 0;
   1943 }
   1944 _ACEOF
   1945 if ac_fn_c_try_compile "$LINENO"; then :
   1946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1947 /* end confdefs.h.  */
   1948 $4
   1949 int
   1950 main ()
   1951 {
   1952 if (sizeof (($2)))
   1953 	    return 0;
   1954   ;
   1955   return 0;
   1956 }
   1957 _ACEOF
   1958 if ac_fn_c_try_compile "$LINENO"; then :
   1959 
   1960 else
   1961   eval "$3=yes"
   1962 fi
   1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1964 fi
   1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1966 fi
   1967 eval ac_res=\$$3
   1968 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1969 $as_echo "$ac_res" >&6; }
   1970   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1971 
   1972 } # ac_fn_c_check_type
   1973 
   1974 # ac_fn_c_find_uintX_t LINENO BITS VAR
   1975 # ------------------------------------
   1976 # Finds an unsigned integer type with width BITS, setting cache variable VAR
   1977 # accordingly.
   1978 ac_fn_c_find_uintX_t ()
   1979 {
   1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
   1982 $as_echo_n "checking for uint$2_t... " >&6; }
   1983 if eval \${$3+:} false; then :
   1984   $as_echo_n "(cached) " >&6
   1985 else
   1986   eval "$3=no"
   1987      # Order is important - never check a type that is potentially smaller
   1988      # than half of the expected target width.
   1989      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
   1990 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
   1991        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1992 /* end confdefs.h.  */
   1993 $ac_includes_default
   1994 int
   1995 main ()
   1996 {
   1997 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
   1998 test_array [0] = 0;
   1999 return test_array [0];
   2000 
   2001   ;
   2002   return 0;
   2003 }
   2004 _ACEOF
   2005 if ac_fn_c_try_compile "$LINENO"; then :
   2006   case $ac_type in #(
   2007   uint$2_t) :
   2008     eval "$3=yes" ;; #(
   2009   *) :
   2010     eval "$3=\$ac_type" ;;
   2011 esac
   2012 fi
   2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2014        if eval test \"x\$"$3"\" = x"no"; then :
   2015 
   2016 else
   2017   break
   2018 fi
   2019      done
   2020 fi
   2021 eval ac_res=\$$3
   2022 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2023 $as_echo "$ac_res" >&6; }
   2024   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2025 
   2026 } # ac_fn_c_find_uintX_t
   2027 
   2028 # ac_fn_c_find_intX_t LINENO BITS VAR
   2029 # -----------------------------------
   2030 # Finds a signed integer type with width BITS, setting cache variable VAR
   2031 # accordingly.
   2032 ac_fn_c_find_intX_t ()
   2033 {
   2034   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
   2036 $as_echo_n "checking for int$2_t... " >&6; }
   2037 if eval \${$3+:} false; then :
   2038   $as_echo_n "(cached) " >&6
   2039 else
   2040   eval "$3=no"
   2041      # Order is important - never check a type that is potentially smaller
   2042      # than half of the expected target width.
   2043      for ac_type in int$2_t 'int' 'long int' \
   2044 	 'long long int' 'short int' 'signed char'; do
   2045        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2046 /* end confdefs.h.  */
   2047 $ac_includes_default
   2048 	     enum { N = $2 / 2 - 1 };
   2049 int
   2050 main ()
   2051 {
   2052 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
   2053 test_array [0] = 0;
   2054 return test_array [0];
   2055 
   2056   ;
   2057   return 0;
   2058 }
   2059 _ACEOF
   2060 if ac_fn_c_try_compile "$LINENO"; then :
   2061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2062 /* end confdefs.h.  */
   2063 $ac_includes_default
   2064 	        enum { N = $2 / 2 - 1 };
   2065 int
   2066 main ()
   2067 {
   2068 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
   2069 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
   2070 test_array [0] = 0;
   2071 return test_array [0];
   2072 
   2073   ;
   2074   return 0;
   2075 }
   2076 _ACEOF
   2077 if ac_fn_c_try_compile "$LINENO"; then :
   2078 
   2079 else
   2080   case $ac_type in #(
   2081   int$2_t) :
   2082     eval "$3=yes" ;; #(
   2083   *) :
   2084     eval "$3=\$ac_type" ;;
   2085 esac
   2086 fi
   2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2088 fi
   2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2090        if eval test \"x\$"$3"\" = x"no"; then :
   2091 
   2092 else
   2093   break
   2094 fi
   2095      done
   2096 fi
   2097 eval ac_res=\$$3
   2098 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2099 $as_echo "$ac_res" >&6; }
   2100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2101 
   2102 } # ac_fn_c_find_intX_t
   2103 
   2104 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2105 # --------------------------------------------
   2106 # Tries to find the compile-time value of EXPR in a program that includes
   2107 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2108 # computed
   2109 ac_fn_c_compute_int ()
   2110 {
   2111   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2112   if test "$cross_compiling" = yes; then
   2113     # Depending upon the size, compute the lo and hi bounds.
   2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2115 /* end confdefs.h.  */
   2116 $4
   2117 int
   2118 main ()
   2119 {
   2120 static int test_array [1 - 2 * !(($2) >= 0)];
   2121 test_array [0] = 0;
   2122 return test_array [0];
   2123 
   2124   ;
   2125   return 0;
   2126 }
   2127 _ACEOF
   2128 if ac_fn_c_try_compile "$LINENO"; then :
   2129   ac_lo=0 ac_mid=0
   2130   while :; do
   2131     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2132 /* end confdefs.h.  */
   2133 $4
   2134 int
   2135 main ()
   2136 {
   2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2138 test_array [0] = 0;
   2139 return test_array [0];
   2140 
   2141   ;
   2142   return 0;
   2143 }
   2144 _ACEOF
   2145 if ac_fn_c_try_compile "$LINENO"; then :
   2146   ac_hi=$ac_mid; break
   2147 else
   2148   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2149 			if test $ac_lo -le $ac_mid; then
   2150 			  ac_lo= ac_hi=
   2151 			  break
   2152 			fi
   2153 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2154 fi
   2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2156   done
   2157 else
   2158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2159 /* end confdefs.h.  */
   2160 $4
   2161 int
   2162 main ()
   2163 {
   2164 static int test_array [1 - 2 * !(($2) < 0)];
   2165 test_array [0] = 0;
   2166 return test_array [0];
   2167 
   2168   ;
   2169   return 0;
   2170 }
   2171 _ACEOF
   2172 if ac_fn_c_try_compile "$LINENO"; then :
   2173   ac_hi=-1 ac_mid=-1
   2174   while :; do
   2175     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2176 /* end confdefs.h.  */
   2177 $4
   2178 int
   2179 main ()
   2180 {
   2181 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2182 test_array [0] = 0;
   2183 return test_array [0];
   2184 
   2185   ;
   2186   return 0;
   2187 }
   2188 _ACEOF
   2189 if ac_fn_c_try_compile "$LINENO"; then :
   2190   ac_lo=$ac_mid; break
   2191 else
   2192   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2193 			if test $ac_mid -le $ac_hi; then
   2194 			  ac_lo= ac_hi=
   2195 			  break
   2196 			fi
   2197 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2198 fi
   2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2200   done
   2201 else
   2202   ac_lo= ac_hi=
   2203 fi
   2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2205 fi
   2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2207 # Binary search between lo and hi bounds.
   2208 while test "x$ac_lo" != "x$ac_hi"; do
   2209   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2211 /* end confdefs.h.  */
   2212 $4
   2213 int
   2214 main ()
   2215 {
   2216 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2217 test_array [0] = 0;
   2218 return test_array [0];
   2219 
   2220   ;
   2221   return 0;
   2222 }
   2223 _ACEOF
   2224 if ac_fn_c_try_compile "$LINENO"; then :
   2225   ac_hi=$ac_mid
   2226 else
   2227   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2228 fi
   2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2230 done
   2231 case $ac_lo in #((
   2232 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2233 '') ac_retval=1 ;;
   2234 esac
   2235   else
   2236     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2237 /* end confdefs.h.  */
   2238 $4
   2239 static long int longval () { return $2; }
   2240 static unsigned long int ulongval () { return $2; }
   2241 #include <stdio.h>
   2242 #include <stdlib.h>
   2243 int
   2244 main ()
   2245 {
   2246 
   2247   FILE *f = fopen ("conftest.val", "w");
   2248   if (! f)
   2249     return 1;
   2250   if (($2) < 0)
   2251     {
   2252       long int i = longval ();
   2253       if (i != ($2))
   2254 	return 1;
   2255       fprintf (f, "%ld", i);
   2256     }
   2257   else
   2258     {
   2259       unsigned long int i = ulongval ();
   2260       if (i != ($2))
   2261 	return 1;
   2262       fprintf (f, "%lu", i);
   2263     }
   2264   /* Do not output a trailing newline, as this causes \r\n confusion
   2265      on some platforms.  */
   2266   return ferror (f) || fclose (f) != 0;
   2267 
   2268   ;
   2269   return 0;
   2270 }
   2271 _ACEOF
   2272 if ac_fn_c_try_run "$LINENO"; then :
   2273   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2274 else
   2275   ac_retval=1
   2276 fi
   2277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2278   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2279 rm -f conftest.val
   2280 
   2281   fi
   2282   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2283   as_fn_set_status $ac_retval
   2284 
   2285 } # ac_fn_c_compute_int
   2286 
   2287 # ac_fn_c_check_func LINENO FUNC VAR
   2288 # ----------------------------------
   2289 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2290 ac_fn_c_check_func ()
   2291 {
   2292   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2294 $as_echo_n "checking for $2... " >&6; }
   2295 if eval \${$3+:} false; then :
   2296   $as_echo_n "(cached) " >&6
   2297 else
   2298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2299 /* end confdefs.h.  */
   2300 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2302 #define $2 innocuous_$2
   2303 
   2304 /* System header to define __stub macros and hopefully few prototypes,
   2305     which can conflict with char $2 (); below.
   2306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2307     <limits.h> exists even on freestanding compilers.  */
   2308 
   2309 #ifdef __STDC__
   2310 # include <limits.h>
   2311 #else
   2312 # include <assert.h>
   2313 #endif
   2314 
   2315 #undef $2
   2316 
   2317 /* Override any GCC internal prototype to avoid an error.
   2318    Use char because int might match the return type of a GCC
   2319    builtin and then its argument prototype would still apply.  */
   2320 #ifdef __cplusplus
   2321 extern "C"
   2322 #endif
   2323 char $2 ();
   2324 /* The GNU C library defines this for functions which it implements
   2325     to always fail with ENOSYS.  Some functions are actually named
   2326     something starting with __ and the normal name is an alias.  */
   2327 #if defined __stub_$2 || defined __stub___$2
   2328 choke me
   2329 #endif
   2330 
   2331 int
   2332 main ()
   2333 {
   2334 return $2 ();
   2335   ;
   2336   return 0;
   2337 }
   2338 _ACEOF
   2339 if ac_fn_c_try_link "$LINENO"; then :
   2340   eval "$3=yes"
   2341 else
   2342   eval "$3=no"
   2343 fi
   2344 rm -f core conftest.err conftest.$ac_objext \
   2345     conftest$ac_exeext conftest.$ac_ext
   2346 fi
   2347 eval ac_res=\$$3
   2348 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2349 $as_echo "$ac_res" >&6; }
   2350   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2351 
   2352 } # ac_fn_c_check_func
   2353 
   2354 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2355 # ----------------------------------------------------
   2356 # Tries to find if the field MEMBER exists in type AGGR, after including
   2357 # INCLUDES, setting cache variable VAR accordingly.
   2358 ac_fn_c_check_member ()
   2359 {
   2360   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2362 $as_echo_n "checking for $2.$3... " >&6; }
   2363 if eval \${$4+:} false; then :
   2364   $as_echo_n "(cached) " >&6
   2365 else
   2366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2367 /* end confdefs.h.  */
   2368 $5
   2369 int
   2370 main ()
   2371 {
   2372 static $2 ac_aggr;
   2373 if (ac_aggr.$3)
   2374 return 0;
   2375   ;
   2376   return 0;
   2377 }
   2378 _ACEOF
   2379 if ac_fn_c_try_compile "$LINENO"; then :
   2380   eval "$4=yes"
   2381 else
   2382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2383 /* end confdefs.h.  */
   2384 $5
   2385 int
   2386 main ()
   2387 {
   2388 static $2 ac_aggr;
   2389 if (sizeof ac_aggr.$3)
   2390 return 0;
   2391   ;
   2392   return 0;
   2393 }
   2394 _ACEOF
   2395 if ac_fn_c_try_compile "$LINENO"; then :
   2396   eval "$4=yes"
   2397 else
   2398   eval "$4=no"
   2399 fi
   2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2401 fi
   2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2403 fi
   2404 eval ac_res=\$$4
   2405 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2406 $as_echo "$ac_res" >&6; }
   2407   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2408 
   2409 } # ac_fn_c_check_member
   2410 
   2411 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   2412 # ---------------------------------------------
   2413 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2414 # accordingly.
   2415 ac_fn_c_check_decl ()
   2416 {
   2417   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2418   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2419   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2421 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2422 if eval \${$3+:} false; then :
   2423   $as_echo_n "(cached) " >&6
   2424 else
   2425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2426 /* end confdefs.h.  */
   2427 $4
   2428 int
   2429 main ()
   2430 {
   2431 #ifndef $as_decl_name
   2432 #ifdef __cplusplus
   2433   (void) $as_decl_use;
   2434 #else
   2435   (void) $as_decl_name;
   2436 #endif
   2437 #endif
   2438 
   2439   ;
   2440   return 0;
   2441 }
   2442 _ACEOF
   2443 if ac_fn_c_try_compile "$LINENO"; then :
   2444   eval "$3=yes"
   2445 else
   2446   eval "$3=no"
   2447 fi
   2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2449 fi
   2450 eval ac_res=\$$3
   2451 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2452 $as_echo "$ac_res" >&6; }
   2453   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2454 
   2455 } # ac_fn_c_check_decl
   2456 cat >config.log <<_ACEOF
   2457 This file contains any messages produced by compilers while
   2458 running configure, to aid debugging if configure makes a mistake.
   2459 
   2460 It was created by python $as_me 2.7, which was
   2461 generated by GNU Autoconf 2.69.  Invocation command line was
   2462 
   2463   $ $0 $@
   2464 
   2465 _ACEOF
   2466 exec 5>>config.log
   2467 {
   2468 cat <<_ASUNAME
   2469 ## --------- ##
   2470 ## Platform. ##
   2471 ## --------- ##
   2472 
   2473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2478 
   2479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2480 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2481 
   2482 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2483 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2485 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2486 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2487 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2488 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2489 
   2490 _ASUNAME
   2491 
   2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2493 for as_dir in $PATH
   2494 do
   2495   IFS=$as_save_IFS
   2496   test -z "$as_dir" && as_dir=.
   2497     $as_echo "PATH: $as_dir"
   2498   done
   2499 IFS=$as_save_IFS
   2500 
   2501 } >&5
   2502 
   2503 cat >&5 <<_ACEOF
   2504 
   2505 
   2506 ## ----------- ##
   2507 ## Core tests. ##
   2508 ## ----------- ##
   2509 
   2510 _ACEOF
   2511 
   2512 
   2513 # Keep a trace of the command line.
   2514 # Strip out --no-create and --no-recursion so they do not pile up.
   2515 # Strip out --silent because we don't want to record it for future runs.
   2516 # Also quote any args containing shell meta-characters.
   2517 # Make two passes to allow for proper duplicate-argument suppression.
   2518 ac_configure_args=
   2519 ac_configure_args0=
   2520 ac_configure_args1=
   2521 ac_must_keep_next=false
   2522 for ac_pass in 1 2
   2523 do
   2524   for ac_arg
   2525   do
   2526     case $ac_arg in
   2527     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2528     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2529     | -silent | --silent | --silen | --sile | --sil)
   2530       continue ;;
   2531     *\'*)
   2532       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2533     esac
   2534     case $ac_pass in
   2535     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2536     2)
   2537       as_fn_append ac_configure_args1 " '$ac_arg'"
   2538       if test $ac_must_keep_next = true; then
   2539 	ac_must_keep_next=false # Got value, back to normal.
   2540       else
   2541 	case $ac_arg in
   2542 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2543 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2544 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2545 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2546 	    case "$ac_configure_args0 " in
   2547 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2548 	    esac
   2549 	    ;;
   2550 	  -* ) ac_must_keep_next=true ;;
   2551 	esac
   2552       fi
   2553       as_fn_append ac_configure_args " '$ac_arg'"
   2554       ;;
   2555     esac
   2556   done
   2557 done
   2558 { ac_configure_args0=; unset ac_configure_args0;}
   2559 { ac_configure_args1=; unset ac_configure_args1;}
   2560 
   2561 # When interrupted or exit'd, cleanup temporary files, and complete
   2562 # config.log.  We remove comments because anyway the quotes in there
   2563 # would cause problems or look ugly.
   2564 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2566 trap 'exit_status=$?
   2567   # Save into config.log some information that might help in debugging.
   2568   {
   2569     echo
   2570 
   2571     $as_echo "## ---------------- ##
   2572 ## Cache variables. ##
   2573 ## ---------------- ##"
   2574     echo
   2575     # The following way of writing the cache mishandles newlines in values,
   2576 (
   2577   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2578     eval ac_val=\$$ac_var
   2579     case $ac_val in #(
   2580     *${as_nl}*)
   2581       case $ac_var in #(
   2582       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2584       esac
   2585       case $ac_var in #(
   2586       _ | IFS | as_nl) ;; #(
   2587       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2588       *) { eval $ac_var=; unset $ac_var;} ;;
   2589       esac ;;
   2590     esac
   2591   done
   2592   (set) 2>&1 |
   2593     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2594     *${as_nl}ac_space=\ *)
   2595       sed -n \
   2596 	"s/'\''/'\''\\\\'\'''\''/g;
   2597 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2598       ;; #(
   2599     *)
   2600       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2601       ;;
   2602     esac |
   2603     sort
   2604 )
   2605     echo
   2606 
   2607     $as_echo "## ----------------- ##
   2608 ## Output variables. ##
   2609 ## ----------------- ##"
   2610     echo
   2611     for ac_var in $ac_subst_vars
   2612     do
   2613       eval ac_val=\$$ac_var
   2614       case $ac_val in
   2615       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2616       esac
   2617       $as_echo "$ac_var='\''$ac_val'\''"
   2618     done | sort
   2619     echo
   2620 
   2621     if test -n "$ac_subst_files"; then
   2622       $as_echo "## ------------------- ##
   2623 ## File substitutions. ##
   2624 ## ------------------- ##"
   2625       echo
   2626       for ac_var in $ac_subst_files
   2627       do
   2628 	eval ac_val=\$$ac_var
   2629 	case $ac_val in
   2630 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2631 	esac
   2632 	$as_echo "$ac_var='\''$ac_val'\''"
   2633       done | sort
   2634       echo
   2635     fi
   2636 
   2637     if test -s confdefs.h; then
   2638       $as_echo "## ----------- ##
   2639 ## confdefs.h. ##
   2640 ## ----------- ##"
   2641       echo
   2642       cat confdefs.h
   2643       echo
   2644     fi
   2645     test "$ac_signal" != 0 &&
   2646       $as_echo "$as_me: caught signal $ac_signal"
   2647     $as_echo "$as_me: exit $exit_status"
   2648   } >&5
   2649   rm -f core *.core core.conftest.* &&
   2650     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2651     exit $exit_status
   2652 ' 0
   2653 for ac_signal in 1 2 13 15; do
   2654   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2655 done
   2656 ac_signal=0
   2657 
   2658 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2659 rm -f -r conftest* confdefs.h
   2660 
   2661 $as_echo "/* confdefs.h */" > confdefs.h
   2662 
   2663 # Predefined preprocessor variables.
   2664 
   2665 cat >>confdefs.h <<_ACEOF
   2666 #define PACKAGE_NAME "$PACKAGE_NAME"
   2667 _ACEOF
   2668 
   2669 cat >>confdefs.h <<_ACEOF
   2670 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2671 _ACEOF
   2672 
   2673 cat >>confdefs.h <<_ACEOF
   2674 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2675 _ACEOF
   2676 
   2677 cat >>confdefs.h <<_ACEOF
   2678 #define PACKAGE_STRING "$PACKAGE_STRING"
   2679 _ACEOF
   2680 
   2681 cat >>confdefs.h <<_ACEOF
   2682 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2683 _ACEOF
   2684 
   2685 cat >>confdefs.h <<_ACEOF
   2686 #define PACKAGE_URL "$PACKAGE_URL"
   2687 _ACEOF
   2688 
   2689 
   2690 # Let the site file select an alternate cache file if it wants to.
   2691 # Prefer an explicitly selected file to automatically selected ones.
   2692 ac_site_file1=NONE
   2693 ac_site_file2=NONE
   2694 if test -n "$CONFIG_SITE"; then
   2695   # We do not want a PATH search for config.site.
   2696   case $CONFIG_SITE in #((
   2697     -*)  ac_site_file1=./$CONFIG_SITE;;
   2698     */*) ac_site_file1=$CONFIG_SITE;;
   2699     *)   ac_site_file1=./$CONFIG_SITE;;
   2700   esac
   2701 elif test "x$prefix" != xNONE; then
   2702   ac_site_file1=$prefix/share/config.site
   2703   ac_site_file2=$prefix/etc/config.site
   2704 else
   2705   ac_site_file1=$ac_default_prefix/share/config.site
   2706   ac_site_file2=$ac_default_prefix/etc/config.site
   2707 fi
   2708 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2709 do
   2710   test "x$ac_site_file" = xNONE && continue
   2711   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2712     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2713 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2714     sed 's/^/| /' "$ac_site_file" >&5
   2715     . "$ac_site_file" \
   2716       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2718 as_fn_error $? "failed to load site script $ac_site_file
   2719 See \`config.log' for more details" "$LINENO" 5; }
   2720   fi
   2721 done
   2722 
   2723 if test -r "$cache_file"; then
   2724   # Some versions of bash will fail to source /dev/null (special files
   2725   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2726   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2727     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2728 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2729     case $cache_file in
   2730       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2731       *)                      . "./$cache_file";;
   2732     esac
   2733   fi
   2734 else
   2735   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2736 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2737   >$cache_file
   2738 fi
   2739 
   2740 # Check that the precious variables saved in the cache have kept the same
   2741 # value.
   2742 ac_cache_corrupted=false
   2743 for ac_var in $ac_precious_vars; do
   2744   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2745   eval ac_new_set=\$ac_env_${ac_var}_set
   2746   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2747   eval ac_new_val=\$ac_env_${ac_var}_value
   2748   case $ac_old_set,$ac_new_set in
   2749     set,)
   2750       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2751 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2752       ac_cache_corrupted=: ;;
   2753     ,set)
   2754       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2755 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2756       ac_cache_corrupted=: ;;
   2757     ,);;
   2758     *)
   2759       if test "x$ac_old_val" != "x$ac_new_val"; then
   2760 	# differences in whitespace do not lead to failure.
   2761 	ac_old_val_w=`echo x $ac_old_val`
   2762 	ac_new_val_w=`echo x $ac_new_val`
   2763 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2764 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2765 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2766 	  ac_cache_corrupted=:
   2767 	else
   2768 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2769 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2770 	  eval $ac_var=\$ac_old_val
   2771 	fi
   2772 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2773 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2774 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2775 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2776       fi;;
   2777   esac
   2778   # Pass precious variables to config.status.
   2779   if test "$ac_new_set" = set; then
   2780     case $ac_new_val in
   2781     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2782     *) ac_arg=$ac_var=$ac_new_val ;;
   2783     esac
   2784     case " $ac_configure_args " in
   2785       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2786       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2787     esac
   2788   fi
   2789 done
   2790 if $ac_cache_corrupted; then
   2791   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2793   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2794 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2795   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2796 fi
   2797 ## -------------------- ##
   2798 ## Main body of script. ##
   2799 ## -------------------- ##
   2800 
   2801 ac_ext=c
   2802 ac_cpp='$CPP $CPPFLAGS'
   2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2806 
   2807 
   2808 
   2809 ac_config_headers="$ac_config_headers pyconfig.h"
   2810 
   2811 
   2812 ac_aux_dir=
   2813 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2814   if test -f "$ac_dir/install-sh"; then
   2815     ac_aux_dir=$ac_dir
   2816     ac_install_sh="$ac_aux_dir/install-sh -c"
   2817     break
   2818   elif test -f "$ac_dir/install.sh"; then
   2819     ac_aux_dir=$ac_dir
   2820     ac_install_sh="$ac_aux_dir/install.sh -c"
   2821     break
   2822   elif test -f "$ac_dir/shtool"; then
   2823     ac_aux_dir=$ac_dir
   2824     ac_install_sh="$ac_aux_dir/shtool install -c"
   2825     break
   2826   fi
   2827 done
   2828 if test -z "$ac_aux_dir"; then
   2829   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2830 fi
   2831 
   2832 # These three variables are undocumented and unsupported,
   2833 # and are intended to be withdrawn in a future Autoconf release.
   2834 # They can cause serious problems if a builder's source tree is in a directory
   2835 # whose full name contains unusual characters.
   2836 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2837 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2838 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2839 
   2840 
   2841 # Make sure we can run config.sub.
   2842 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2843   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2844 
   2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2846 $as_echo_n "checking build system type... " >&6; }
   2847 if ${ac_cv_build+:} false; then :
   2848   $as_echo_n "(cached) " >&6
   2849 else
   2850   ac_build_alias=$build_alias
   2851 test "x$ac_build_alias" = x &&
   2852   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2853 test "x$ac_build_alias" = x &&
   2854   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2855 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2856   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2857 
   2858 fi
   2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2860 $as_echo "$ac_cv_build" >&6; }
   2861 case $ac_cv_build in
   2862 *-*-*) ;;
   2863 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2864 esac
   2865 build=$ac_cv_build
   2866 ac_save_IFS=$IFS; IFS='-'
   2867 set x $ac_cv_build
   2868 shift
   2869 build_cpu=$1
   2870 build_vendor=$2
   2871 shift; shift
   2872 # Remember, the first character of IFS is used to create $*,
   2873 # except with old shells:
   2874 build_os=$*
   2875 IFS=$ac_save_IFS
   2876 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2877 
   2878 
   2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2880 $as_echo_n "checking host system type... " >&6; }
   2881 if ${ac_cv_host+:} false; then :
   2882   $as_echo_n "(cached) " >&6
   2883 else
   2884   if test "x$host_alias" = x; then
   2885   ac_cv_host=$ac_cv_build
   2886 else
   2887   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2888     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2889 fi
   2890 
   2891 fi
   2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2893 $as_echo "$ac_cv_host" >&6; }
   2894 case $ac_cv_host in
   2895 *-*-*) ;;
   2896 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2897 esac
   2898 host=$ac_cv_host
   2899 ac_save_IFS=$IFS; IFS='-'
   2900 set x $ac_cv_host
   2901 shift
   2902 host_cpu=$1
   2903 host_vendor=$2
   2904 shift; shift
   2905 # Remember, the first character of IFS is used to create $*,
   2906 # except with old shells:
   2907 host_os=$*
   2908 IFS=$ac_save_IFS
   2909 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2910 
   2911 
   2912 
   2913 
   2914 
   2915 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile
   2916 rm -f pybuilddir.txt
   2917 
   2918 for ac_prog in python$PACKAGE_VERSION python3 python
   2919 do
   2920   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2921 set dummy $ac_prog; ac_word=$2
   2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2923 $as_echo_n "checking for $ac_word... " >&6; }
   2924 if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
   2925   $as_echo_n "(cached) " >&6
   2926 else
   2927   if test -n "$PYTHON_FOR_REGEN"; then
   2928   ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
   2929 else
   2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2931 for as_dir in $PATH
   2932 do
   2933   IFS=$as_save_IFS
   2934   test -z "$as_dir" && as_dir=.
   2935     for ac_exec_ext in '' $ac_executable_extensions; do
   2936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2937     ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
   2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2939     break 2
   2940   fi
   2941 done
   2942   done
   2943 IFS=$as_save_IFS
   2944 
   2945 fi
   2946 fi
   2947 PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
   2948 if test -n "$PYTHON_FOR_REGEN"; then
   2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
   2950 $as_echo "$PYTHON_FOR_REGEN" >&6; }
   2951 else
   2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2953 $as_echo "no" >&6; }
   2954 fi
   2955 
   2956 
   2957   test -n "$PYTHON_FOR_REGEN" && break
   2958 done
   2959 test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
   2960 
   2961 
   2962 
   2963 if test "$cross_compiling" = yes; then
   2964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
   2965 $as_echo_n "checking for python interpreter for cross build... " >&6; }
   2966     if test -z "$PYTHON_FOR_BUILD"; then
   2967         for interp in python$PACKAGE_VERSION python2 python; do
   2968 	    which $interp >/dev/null 2>&1 || continue
   2969 	    if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then
   2970 	        break
   2971 	    fi
   2972             interp=
   2973 	done
   2974         if test x$interp = x; then
   2975 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
   2976 	fi
   2977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
   2978 $as_echo "$interp" >&6; }
   2979 	PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp
   2980     fi
   2981 elif test "$cross_compiling" = maybe; then
   2982     as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
   2983 else
   2984     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
   2985 fi
   2986 
   2987 
   2988 
   2989 if test "$prefix" != "/"; then
   2990     prefix=`echo "$prefix" | sed -e 's/\/$//g'`
   2991 fi
   2992 
   2993 
   2994 
   2995 
   2996 # We don't use PACKAGE_ variables, and they cause conflicts
   2997 # with other autoconf-based packages that include Python.h
   2998 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
   2999 rm confdefs.h
   3000 mv confdefs.h.new confdefs.h
   3001 
   3002 
   3003 VERSION=2.7
   3004 
   3005 
   3006 SOVERSION=1.0
   3007 
   3008 # The later defininition of _XOPEN_SOURCE disables certain features
   3009 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
   3010 
   3011 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   3012 
   3013 
   3014 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
   3015 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
   3016 # them.
   3017 
   3018 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
   3019 
   3020 
   3021 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
   3022 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
   3023 # them.
   3024 
   3025 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
   3026 
   3027 
   3028 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
   3029 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
   3030 
   3031 $as_echo "#define _BSD_TYPES 1" >>confdefs.h
   3032 
   3033 
   3034 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
   3035 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
   3036 # them.
   3037 
   3038 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
   3039 
   3040 
   3041 
   3042 define_xopen_source=yes
   3043 
   3044 # Arguments passed to configure.
   3045 
   3046 CONFIG_ARGS="$ac_configure_args"
   3047 
   3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
   3049 $as_echo_n "checking for --enable-universalsdk... " >&6; }
   3050 # Check whether --enable-universalsdk was given.
   3051 if test "${enable_universalsdk+set}" = set; then :
   3052   enableval=$enable_universalsdk;
   3053 	case $enableval in
   3054 	yes)
   3055 		# Locate the best usable SDK, see Mac/README.txt for more
   3056 		# information
   3057 		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
   3058 		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
   3059 		then
   3060 			enableval=/Developer/SDKs/MacOSX10.4u.sdk
   3061 			if test ! -d "${enableval}"
   3062 			then
   3063 				enableval=/
   3064 			fi
   3065 		fi
   3066 		;;
   3067 	esac
   3068 	case $enableval in
   3069 	no)
   3070 		UNIVERSALSDK=
   3071 		enable_universalsdk=
   3072 		;;
   3073 	*)
   3074 		UNIVERSALSDK=$enableval
   3075 		if test ! -d "${UNIVERSALSDK}"
   3076 		then
   3077 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
   3078 		fi
   3079 		;;
   3080 	esac
   3081 
   3082 
   3083 else
   3084 
   3085    	UNIVERSALSDK=
   3086 	enable_universalsdk=
   3087 
   3088 fi
   3089 
   3090 if test -n "${UNIVERSALSDK}"
   3091 then
   3092 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
   3093 $as_echo "${UNIVERSALSDK}" >&6; }
   3094 else
   3095 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3096 $as_echo "no" >&6; }
   3097 fi
   3098 
   3099 
   3100 
   3101 ARCH_RUN_32BIT=""
   3102 
   3103 # For backward compatibility reasons we prefer to select '32-bit' if available,
   3104 # otherwise use 'intel'
   3105 UNIVERSAL_ARCHS="32-bit"
   3106 if test "`uname -s`" = "Darwin"
   3107 then
   3108 	if test -n "${UNIVERSALSDK}"
   3109 	then
   3110 		if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
   3111 		then
   3112 			UNIVERSAL_ARCHS="intel"
   3113 		fi
   3114 	fi
   3115 fi
   3116 
   3117 
   3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
   3119 $as_echo_n "checking for --with-universal-archs... " >&6; }
   3120 
   3121 # Check whether --with-universal-archs was given.
   3122 if test "${with_universal_archs+set}" = set; then :
   3123   withval=$with_universal_archs;
   3124 	UNIVERSAL_ARCHS="$withval"
   3125 
   3126 fi
   3127 
   3128 if test -n "${UNIVERSALSDK}"
   3129 then
   3130 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
   3131 $as_echo "${UNIVERSAL_ARCHS}" >&6; }
   3132 else
   3133 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3134 $as_echo "no" >&6; }
   3135 fi
   3136 
   3137 
   3138 # Check whether --with-framework-name was given.
   3139 if test "${with_framework_name+set}" = set; then :
   3140   withval=$with_framework_name;
   3141     if test "${enable_framework}"; then
   3142 	    :
   3143     else
   3144 	as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5
   3145     fi
   3146     PYTHONFRAMEWORK=${withval}
   3147     PYTHONFRAMEWORKDIR=${withval}.framework
   3148     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
   3149 
   3150 else
   3151 
   3152     PYTHONFRAMEWORK=Python
   3153     PYTHONFRAMEWORKDIR=Python.framework
   3154     PYTHONFRAMEWORKIDENTIFIER=org.python.python
   3155 
   3156 fi
   3157 
   3158 # Check whether --enable-framework was given.
   3159 if test "${enable_framework+set}" = set; then :
   3160   enableval=$enable_framework;
   3161 	case $enableval in
   3162 	yes)
   3163 		enableval=/Library/Frameworks
   3164 	esac
   3165 	case $enableval in
   3166 	no)
   3167 		PYTHONFRAMEWORK=
   3168 		PYTHONFRAMEWORKDIR=no-framework
   3169 		PYTHONFRAMEWORKPREFIX=
   3170 		PYTHONFRAMEWORKINSTALLDIR=
   3171 		FRAMEWORKINSTALLFIRST=
   3172 		FRAMEWORKINSTALLLAST=
   3173 		FRAMEWORKALTINSTALLFIRST=
   3174 		FRAMEWORKALTINSTALLLAST=
   3175 		if test "x${prefix}" = "xNONE"; then
   3176 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
   3177 		else
   3178 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
   3179 		fi
   3180 		enable_framework=
   3181 		;;
   3182 	*)
   3183 		PYTHONFRAMEWORKPREFIX="${enableval}"
   3184 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
   3185 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
   3186 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
   3187 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
   3188 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
   3189 		FRAMEWORKINSTALLAPPSPREFIX="/Applications"
   3190 
   3191 		if test "x${prefix}" = "xNONE" ; then
   3192 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
   3193 
   3194 		else
   3195 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
   3196 		fi
   3197 
   3198 		case "${enableval}" in
   3199 		/System*)
   3200 			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
   3201 			if test "${prefix}" = "NONE" ; then
   3202 				# See below
   3203 				FRAMEWORKUNIXTOOLSPREFIX="/usr"
   3204 			fi
   3205 			;;
   3206 
   3207 		/Library*)
   3208 			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
   3209 			;;
   3210 
   3211 		*/Library/Frameworks)
   3212 			MDIR="`dirname "${enableval}"`"
   3213 			MDIR="`dirname "${MDIR}"`"
   3214 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
   3215 
   3216 			if test "${prefix}" = "NONE"; then
   3217 				# User hasn't specified the
   3218 				# --prefix option, but wants to install
   3219 				# the framework in a non-default location,
   3220 				# ensure that the compatibility links get
   3221 				# installed relative to that prefix as well
   3222 				# instead of in /usr/local.
   3223 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
   3224 			fi
   3225 			;;
   3226 
   3227 		*)
   3228 			FRAMEWORKINSTALLAPPSPREFIX="/Applications"
   3229 			;;
   3230 		esac
   3231 
   3232 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
   3233 
   3234 		# Add files for Mac specific code to the list of output
   3235 		# files:
   3236 		ac_config_files="$ac_config_files Mac/Makefile"
   3237 
   3238 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
   3239 
   3240 		ac_config_files="$ac_config_files Mac/IDLE/Makefile"
   3241 
   3242 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
   3243 
   3244 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
   3245 
   3246 	esac
   3247 
   3248 else
   3249 
   3250 	PYTHONFRAMEWORK=
   3251 	PYTHONFRAMEWORKDIR=no-framework
   3252 	PYTHONFRAMEWORKPREFIX=
   3253 	PYTHONFRAMEWORKINSTALLDIR=
   3254 	FRAMEWORKINSTALLFIRST=
   3255 	FRAMEWORKINSTALLLAST=
   3256 	FRAMEWORKALTINSTALLFIRST=
   3257 	FRAMEWORKALTINSTALLLAST=
   3258 	if test "x${prefix}" = "xNONE" ; then
   3259 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
   3260 	else
   3261 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
   3262 	fi
   3263 	enable_framework=
   3264 
   3265 
   3266 fi
   3267 
   3268 
   3269 
   3270 
   3271 
   3272 
   3273 
   3274 
   3275 
   3276 
   3277 
   3278 
   3279 
   3280 ##AC_ARG_WITH(dyld,
   3281 ##            AS_HELP_STRING([--with-dyld],
   3282 ##                           [Use (OpenStep|Rhapsody) dynamic linker]))
   3283 ##
   3284 # Set name for machine-dependent library files
   3285 
   3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
   3287 $as_echo_n "checking MACHDEP... " >&6; }
   3288 if test -z "$MACHDEP"
   3289 then
   3290     # avoid using uname for cross builds
   3291     if test "$cross_compiling" = yes; then
   3292        # ac_sys_system and ac_sys_release are only used for setting
   3293        # `define_xopen_source' in the case statement below. For the
   3294        # current supported cross builds, this macro is not adjusted.
   3295 	case "$host" in
   3296 	*-*-linux*)
   3297 		ac_sys_system=Linux
   3298 		;;
   3299 	*-*-cygwin*)
   3300 		ac_sys_system=Cygwin
   3301 		;;
   3302 	*)
   3303 		# for now, limit cross builds to known configurations
   3304 		MACHDEP="unknown"
   3305 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
   3306 	esac
   3307 	ac_sys_release=
   3308     else
   3309 	ac_sys_system=`uname -s`
   3310 	if test "$ac_sys_system" = "AIX" \
   3311 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
   3312 		ac_sys_release=`uname -v`
   3313 	else
   3314 		ac_sys_release=`uname -r`
   3315 	fi
   3316     fi
   3317     ac_md_system=`echo $ac_sys_system |
   3318 			tr -d '/ ' | tr '[A-Z]' '[a-z]'`
   3319     ac_md_release=`echo $ac_sys_release |
   3320 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
   3321     MACHDEP="$ac_md_system$ac_md_release"
   3322 
   3323     case $MACHDEP in
   3324 	linux*) MACHDEP="linux2";;
   3325 	cygwin*) MACHDEP="cygwin";;
   3326 	darwin*) MACHDEP="darwin";;
   3327 	atheos*) MACHDEP="atheos";;
   3328         irix646) MACHDEP="irix6";;
   3329 	'')	MACHDEP="unknown";;
   3330     esac
   3331 fi
   3332 
   3333 
   3334 if test "$cross_compiling" = yes; then
   3335 	case "$host" in
   3336 	*-*-linux*)
   3337 		case "$host_cpu" in
   3338 		arm*)
   3339 			_host_cpu=arm
   3340 			;;
   3341 		*)
   3342 			_host_cpu=$host_cpu
   3343 		esac
   3344 		;;
   3345 	*-*-cygwin*)
   3346 		_host_cpu=
   3347 		;;
   3348 	*)
   3349 		# for now, limit cross builds to known configurations
   3350 		MACHDEP="unknown"
   3351 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5
   3352 	esac
   3353 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
   3354 fi
   3355 
   3356 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
   3357 # disable features if it is defined, without any means to access these
   3358 # features as extensions. For these systems, we skip the definition of
   3359 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
   3360 # some feature, make sure there is no alternative way to access this
   3361 # feature. Also, when using wildcards, make sure you have verified the
   3362 # need for not defining _XOPEN_SOURCE on all systems matching the
   3363 # wildcard, and that the wildcard does not include future systems
   3364 # (which may remove their limitations).
   3365 case $ac_sys_system/$ac_sys_release in
   3366   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
   3367   # even though select is a POSIX function. Reported by J. Ribbens.
   3368   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
   3369   # In addition, Stefan Krah confirms that issue #1244610 exists through
   3370   # OpenBSD 4.6, but is fixed in 4.7.
   3371   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
   3372     define_xopen_source=no
   3373     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
   3374     # also defined. This can be overridden by defining _BSD_SOURCE
   3375     # As this has a different meaning on Linux, only define it on OpenBSD
   3376 
   3377 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
   3378 
   3379     ;;
   3380   OpenBSD/*)
   3381     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
   3382     # also defined. This can be overridden by defining _BSD_SOURCE
   3383     # As this has a different meaning on Linux, only define it on OpenBSD
   3384 
   3385 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
   3386 
   3387     ;;
   3388   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
   3389   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
   3390   # Marc Recht
   3391   NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
   3392     define_xopen_source=no;;
   3393   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
   3394   # request to enable features supported by the standard as a request
   3395   # to disable features not supported by the standard.  The best way
   3396   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
   3397   # entirely and define __EXTENSIONS__ instead.
   3398   SunOS/*)
   3399     define_xopen_source=no;;
   3400   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
   3401   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
   3402   # Reconfirmed for 7.1.4 by Martin v. Loewis.
   3403   OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
   3404     define_xopen_source=no;;
   3405   # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
   3406   # but used in struct sockaddr.sa_family. Reported by Tim Rice.
   3407   SCO_SV/3.2)
   3408     define_xopen_source=no;;
   3409   # On FreeBSD 4, the math functions C89 does not cover are never defined
   3410   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
   3411   FreeBSD/4.*)
   3412     define_xopen_source=no;;
   3413   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
   3414   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
   3415   # identifies itself as Darwin/7.*
   3416   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
   3417   # disables platform specific features beyond repair.
   3418   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
   3419   # has no effect, don't bother defining them
   3420   Darwin/[6789].*)
   3421     define_xopen_source=no;;
   3422   Darwin/1[0-9].*)
   3423     define_xopen_source=no;;
   3424   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
   3425   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
   3426   # or has another value. By not (re)defining it, the defaults come in place.
   3427   AIX/4)
   3428     define_xopen_source=no;;
   3429   AIX/5)
   3430     if test `uname -r` -eq 1; then
   3431       define_xopen_source=no
   3432     fi
   3433     ;;
   3434   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
   3435   # defining NI_NUMERICHOST.
   3436   QNX/6.3.2)
   3437     define_xopen_source=no
   3438     ;;
   3439 
   3440 esac
   3441 
   3442 if test $define_xopen_source = yes
   3443 then
   3444 
   3445 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
   3446 
   3447 
   3448   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
   3449   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
   3450   # several APIs are not declared. Since this is also needed in some
   3451   # cases for HP-UX, we define it globally.
   3452 
   3453 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
   3454 
   3455 
   3456 
   3457 $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
   3458 
   3459 
   3460 fi
   3461 
   3462 #
   3463 # SGI compilers allow the specification of the both the ABI and the
   3464 # ISA on the command line.  Depending on the values of these switches,
   3465 # different and often incompatible code will be generated.
   3466 #
   3467 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
   3468 # thus supply support for various ABI/ISA combinations.  The MACHDEP
   3469 # variable is also adjusted.
   3470 #
   3471 
   3472 if test ! -z "$SGI_ABI"
   3473 then
   3474         CC="cc $SGI_ABI"
   3475         LDFLAGS="$SGI_ABI $LDFLAGS"
   3476         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
   3477 fi
   3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
   3479 $as_echo "$MACHDEP" >&6; }
   3480 
   3481 
   3482 PLATDIR=plat-$MACHDEP
   3483 
   3484 # And add extra plat-mac for darwin
   3485 
   3486 
   3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
   3488 $as_echo_n "checking EXTRAPLATDIR... " >&6; }
   3489 if test -z "$EXTRAPLATDIR"
   3490 then
   3491 	case $MACHDEP in
   3492 	darwin)
   3493 		EXTRAPLATDIR="\$(PLATMACDIRS)"
   3494 		EXTRAMACHDEPPATH="\$(PLATMACPATH)"
   3495 		;;
   3496 	*)
   3497 		EXTRAPLATDIR=""
   3498 		EXTRAMACHDEPPATH=""
   3499 		;;
   3500 	esac
   3501 fi
   3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
   3503 $as_echo "$EXTRAPLATDIR" >&6; }
   3504 
   3505 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
   3506 # it may influence the way we can build extensions, so distutils
   3507 # needs to check it
   3508 
   3509 
   3510 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
   3511 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
   3512 
   3513 # checks for alternative programs
   3514 
   3515 # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just
   3516 # for debug/optimization stuff.  BASECFLAGS is for flags that are required
   3517 # just to get things to compile and link.  Users are free to override OPT
   3518 # when running configure or make.  The build should not break if they do.
   3519 # BASECFLAGS should generally not be messed with, however.
   3520 
   3521 # XXX shouldn't some/most/all of this code be merged with the stuff later
   3522 # on that fiddles with OPT and BASECFLAGS?
   3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
   3524 $as_echo_n "checking for --without-gcc... " >&6; }
   3525 
   3526 # Check whether --with-gcc was given.
   3527 if test "${with_gcc+set}" = set; then :
   3528   withval=$with_gcc;
   3529 	case $withval in
   3530 	no)	CC=${CC:-cc}
   3531 		without_gcc=yes;;
   3532 	yes)	CC=gcc
   3533 		without_gcc=no;;
   3534 	*)	CC=$withval
   3535 		without_gcc=$withval;;
   3536 	esac
   3537 else
   3538 
   3539 	case $ac_sys_system in
   3540 	AIX*)   CC=${CC:-xlc_r}
   3541 		without_gcc=;;
   3542 	BeOS*)
   3543 		case $BE_HOST_CPU in
   3544 		ppc)
   3545 			CC=mwcc
   3546 			without_gcc=yes
   3547 			BASECFLAGS="$BASECFLAGS -export pragma"
   3548 			OPT="$OPT -O"
   3549 			LDFLAGS="$LDFLAGS -nodup"
   3550 			;;
   3551 		x86)
   3552 			CC=gcc
   3553 			without_gcc=no
   3554 			OPT="$OPT -O"
   3555 			;;
   3556 		*)
   3557 			as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
   3558 			;;
   3559 		esac
   3560 		AR="\$(srcdir)/Modules/ar_beos"
   3561 		RANLIB=:
   3562 		;;
   3563 	*)	without_gcc=no;;
   3564 	esac
   3565 fi
   3566 
   3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
   3568 $as_echo "$without_gcc" >&6; }
   3569 
   3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5
   3571 $as_echo_n "checking for --with-icc... " >&6; }
   3572 
   3573 # Check whether --with-icc was given.
   3574 if test "${with_icc+set}" = set; then :
   3575   withval=$with_icc;
   3576 	case $withval in
   3577 	no)	CC=${CC:-cc}
   3578 		with_icc=no;;
   3579 	yes)	CC=icc
   3580 		CXX=icpc
   3581 		with_icc=yes;;
   3582 	*)	CC=$withval
   3583 		with_icc=$withval;;
   3584 	esac
   3585 else
   3586 
   3587 	with_icc=no
   3588 fi
   3589 
   3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5
   3591 $as_echo "$with_icc" >&6; }
   3592 
   3593 # If the user switches compilers, we can't believe the cache
   3594 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
   3595 then
   3596   as_fn_error $? "cached CC is different -- throw away $cache_file
   3597 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
   3598 fi
   3599 
   3600 if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then
   3601     # Normally, MIPSpro CC treats #error directives as warnings, which means
   3602     # a successful exit code is returned (0).  This is a problem because IRIX
   3603     # has a bunch of system headers with this guard at the top:
   3604     #
   3605     #  #ifndef __c99
   3606     #  #error This header file is to be used only for c99 mode compilations
   3607     #  #else
   3608     #
   3609     # When autoconf tests for such a header, like stdint.h, this happens:
   3610     #
   3611     #  configure:4619: cc -c   conftest.c >&5
   3612     #  cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5
   3613     #    #error directive:  This header file is to be used only for c99 mode
   3614     #            compilations
   3615     #
   3616     #    #error This header file is to be used only for c99 mode compilations
   3617     #     ^
   3618     #
   3619     #  configure:4619: $? = 0
   3620     #  configure:4619: result: yes
   3621     #
   3622     # Therefore, we use `-diag_error 1035` to have the compiler treat the
   3623     # warning as an error, which causes cc to return a non-zero result,
   3624     # which autoconf can interpret correctly.
   3625     CFLAGS="$CFLAGS -diag_error 1035"
   3626     # Whilst we're here, we might as well make sure CXX defaults to something
   3627     # sensible if we're not using gcc.
   3628     if test -z "$CXX"; then
   3629         CXX="CC"
   3630     fi
   3631 fi
   3632 
   3633 # If the user set CFLAGS, use this instead of the automatically
   3634 # determined setting
   3635 preset_cflags="$CFLAGS"
   3636 ac_ext=c
   3637 ac_cpp='$CPP $CPPFLAGS'
   3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3641 if test -n "$ac_tool_prefix"; then
   3642   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3643 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3645 $as_echo_n "checking for $ac_word... " >&6; }
   3646 if ${ac_cv_prog_CC+:} false; then :
   3647   $as_echo_n "(cached) " >&6
   3648 else
   3649   if test -n "$CC"; then
   3650   ac_cv_prog_CC="$CC" # Let the user override the test.
   3651 else
   3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3653 for as_dir in $PATH
   3654 do
   3655   IFS=$as_save_IFS
   3656   test -z "$as_dir" && as_dir=.
   3657     for ac_exec_ext in '' $ac_executable_extensions; do
   3658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3659     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3661     break 2
   3662   fi
   3663 done
   3664   done
   3665 IFS=$as_save_IFS
   3666 
   3667 fi
   3668 fi
   3669 CC=$ac_cv_prog_CC
   3670 if test -n "$CC"; then
   3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3672 $as_echo "$CC" >&6; }
   3673 else
   3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3675 $as_echo "no" >&6; }
   3676 fi
   3677 
   3678 
   3679 fi
   3680 if test -z "$ac_cv_prog_CC"; then
   3681   ac_ct_CC=$CC
   3682   # Extract the first word of "gcc", so it can be a program name with args.
   3683 set dummy gcc; ac_word=$2
   3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3685 $as_echo_n "checking for $ac_word... " >&6; }
   3686 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3687   $as_echo_n "(cached) " >&6
   3688 else
   3689   if test -n "$ac_ct_CC"; then
   3690   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3691 else
   3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3693 for as_dir in $PATH
   3694 do
   3695   IFS=$as_save_IFS
   3696   test -z "$as_dir" && as_dir=.
   3697     for ac_exec_ext in '' $ac_executable_extensions; do
   3698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3699     ac_cv_prog_ac_ct_CC="gcc"
   3700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3701     break 2
   3702   fi
   3703 done
   3704   done
   3705 IFS=$as_save_IFS
   3706 
   3707 fi
   3708 fi
   3709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3710 if test -n "$ac_ct_CC"; then
   3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3712 $as_echo "$ac_ct_CC" >&6; }
   3713 else
   3714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3715 $as_echo "no" >&6; }
   3716 fi
   3717 
   3718   if test "x$ac_ct_CC" = x; then
   3719     CC=""
   3720   else
   3721     case $cross_compiling:$ac_tool_warned in
   3722 yes:)
   3723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3725 ac_tool_warned=yes ;;
   3726 esac
   3727     CC=$ac_ct_CC
   3728   fi
   3729 else
   3730   CC="$ac_cv_prog_CC"
   3731 fi
   3732 
   3733 if test -z "$CC"; then
   3734           if test -n "$ac_tool_prefix"; then
   3735     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3736 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3738 $as_echo_n "checking for $ac_word... " >&6; }
   3739 if ${ac_cv_prog_CC+:} false; then :
   3740   $as_echo_n "(cached) " >&6
   3741 else
   3742   if test -n "$CC"; then
   3743   ac_cv_prog_CC="$CC" # Let the user override the test.
   3744 else
   3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3746 for as_dir in $PATH
   3747 do
   3748   IFS=$as_save_IFS
   3749   test -z "$as_dir" && as_dir=.
   3750     for ac_exec_ext in '' $ac_executable_extensions; do
   3751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3752     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3754     break 2
   3755   fi
   3756 done
   3757   done
   3758 IFS=$as_save_IFS
   3759 
   3760 fi
   3761 fi
   3762 CC=$ac_cv_prog_CC
   3763 if test -n "$CC"; then
   3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3765 $as_echo "$CC" >&6; }
   3766 else
   3767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3768 $as_echo "no" >&6; }
   3769 fi
   3770 
   3771 
   3772   fi
   3773 fi
   3774 if test -z "$CC"; then
   3775   # Extract the first word of "cc", so it can be a program name with args.
   3776 set dummy cc; ac_word=$2
   3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3778 $as_echo_n "checking for $ac_word... " >&6; }
   3779 if ${ac_cv_prog_CC+:} false; then :
   3780   $as_echo_n "(cached) " >&6
   3781 else
   3782   if test -n "$CC"; then
   3783   ac_cv_prog_CC="$CC" # Let the user override the test.
   3784 else
   3785   ac_prog_rejected=no
   3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3787 for as_dir in $PATH
   3788 do
   3789   IFS=$as_save_IFS
   3790   test -z "$as_dir" && as_dir=.
   3791     for ac_exec_ext in '' $ac_executable_extensions; do
   3792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3793     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3794        ac_prog_rejected=yes
   3795        continue
   3796      fi
   3797     ac_cv_prog_CC="cc"
   3798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3799     break 2
   3800   fi
   3801 done
   3802   done
   3803 IFS=$as_save_IFS
   3804 
   3805 if test $ac_prog_rejected = yes; then
   3806   # We found a bogon in the path, so make sure we never use it.
   3807   set dummy $ac_cv_prog_CC
   3808   shift
   3809   if test $# != 0; then
   3810     # We chose a different compiler from the bogus one.
   3811     # However, it has the same basename, so the bogon will be chosen
   3812     # first if we set CC to just the basename; use the full file name.
   3813     shift
   3814     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3815   fi
   3816 fi
   3817 fi
   3818 fi
   3819 CC=$ac_cv_prog_CC
   3820 if test -n "$CC"; then
   3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3822 $as_echo "$CC" >&6; }
   3823 else
   3824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3825 $as_echo "no" >&6; }
   3826 fi
   3827 
   3828 
   3829 fi
   3830 if test -z "$CC"; then
   3831   if test -n "$ac_tool_prefix"; then
   3832   for ac_prog in cl.exe
   3833   do
   3834     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3837 $as_echo_n "checking for $ac_word... " >&6; }
   3838 if ${ac_cv_prog_CC+:} false; then :
   3839   $as_echo_n "(cached) " >&6
   3840 else
   3841   if test -n "$CC"; then
   3842   ac_cv_prog_CC="$CC" # Let the user override the test.
   3843 else
   3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3845 for as_dir in $PATH
   3846 do
   3847   IFS=$as_save_IFS
   3848   test -z "$as_dir" && as_dir=.
   3849     for ac_exec_ext in '' $ac_executable_extensions; do
   3850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3851     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3853     break 2
   3854   fi
   3855 done
   3856   done
   3857 IFS=$as_save_IFS
   3858 
   3859 fi
   3860 fi
   3861 CC=$ac_cv_prog_CC
   3862 if test -n "$CC"; then
   3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3864 $as_echo "$CC" >&6; }
   3865 else
   3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3867 $as_echo "no" >&6; }
   3868 fi
   3869 
   3870 
   3871     test -n "$CC" && break
   3872   done
   3873 fi
   3874 if test -z "$CC"; then
   3875   ac_ct_CC=$CC
   3876   for ac_prog in cl.exe
   3877 do
   3878   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3879 set dummy $ac_prog; ac_word=$2
   3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3881 $as_echo_n "checking for $ac_word... " >&6; }
   3882 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3883   $as_echo_n "(cached) " >&6
   3884 else
   3885   if test -n "$ac_ct_CC"; then
   3886   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3887 else
   3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3889 for as_dir in $PATH
   3890 do
   3891   IFS=$as_save_IFS
   3892   test -z "$as_dir" && as_dir=.
   3893     for ac_exec_ext in '' $ac_executable_extensions; do
   3894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3895     ac_cv_prog_ac_ct_CC="$ac_prog"
   3896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3897     break 2
   3898   fi
   3899 done
   3900   done
   3901 IFS=$as_save_IFS
   3902 
   3903 fi
   3904 fi
   3905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3906 if test -n "$ac_ct_CC"; then
   3907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3908 $as_echo "$ac_ct_CC" >&6; }
   3909 else
   3910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3911 $as_echo "no" >&6; }
   3912 fi
   3913 
   3914 
   3915   test -n "$ac_ct_CC" && break
   3916 done
   3917 
   3918   if test "x$ac_ct_CC" = x; then
   3919     CC=""
   3920   else
   3921     case $cross_compiling:$ac_tool_warned in
   3922 yes:)
   3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3925 ac_tool_warned=yes ;;
   3926 esac
   3927     CC=$ac_ct_CC
   3928   fi
   3929 fi
   3930 
   3931 fi
   3932 
   3933 
   3934 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3936 as_fn_error $? "no acceptable C compiler found in \$PATH
   3937 See \`config.log' for more details" "$LINENO" 5; }
   3938 
   3939 # Provide some information about the compiler.
   3940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3941 set X $ac_compile
   3942 ac_compiler=$2
   3943 for ac_option in --version -v -V -qversion; do
   3944   { { ac_try="$ac_compiler $ac_option >&5"
   3945 case "(($ac_try" in
   3946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3947   *) ac_try_echo=$ac_try;;
   3948 esac
   3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3950 $as_echo "$ac_try_echo"; } >&5
   3951   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3952   ac_status=$?
   3953   if test -s conftest.err; then
   3954     sed '10a\
   3955 ... rest of stderr output deleted ...
   3956          10q' conftest.err >conftest.er1
   3957     cat conftest.er1 >&5
   3958   fi
   3959   rm -f conftest.er1 conftest.err
   3960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3961   test $ac_status = 0; }
   3962 done
   3963 
   3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3965 /* end confdefs.h.  */
   3966 
   3967 int
   3968 main ()
   3969 {
   3970 
   3971   ;
   3972   return 0;
   3973 }
   3974 _ACEOF
   3975 ac_clean_files_save=$ac_clean_files
   3976 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3977 # Try to create an executable without -o first, disregard a.out.
   3978 # It will help us diagnose broken compilers, and finding out an intuition
   3979 # of exeext.
   3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3981 $as_echo_n "checking whether the C compiler works... " >&6; }
   3982 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3983 
   3984 # The possible output files:
   3985 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3986 
   3987 ac_rmfiles=
   3988 for ac_file in $ac_files
   3989 do
   3990   case $ac_file in
   3991     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3992     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3993   esac
   3994 done
   3995 rm -f $ac_rmfiles
   3996 
   3997 if { { ac_try="$ac_link_default"
   3998 case "(($ac_try" in
   3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4000   *) ac_try_echo=$ac_try;;
   4001 esac
   4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4003 $as_echo "$ac_try_echo"; } >&5
   4004   (eval "$ac_link_default") 2>&5
   4005   ac_status=$?
   4006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4007   test $ac_status = 0; }; then :
   4008   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   4009 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   4010 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   4011 # so that the user can short-circuit this test for compilers unknown to
   4012 # Autoconf.
   4013 for ac_file in $ac_files ''
   4014 do
   4015   test -f "$ac_file" || continue
   4016   case $ac_file in
   4017     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   4018 	;;
   4019     [ab].out )
   4020 	# We found the default executable, but exeext='' is most
   4021 	# certainly right.
   4022 	break;;
   4023     *.* )
   4024 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   4025 	then :; else
   4026 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4027 	fi
   4028 	# We set ac_cv_exeext here because the later test for it is not
   4029 	# safe: cross compilers may not add the suffix if given an `-o'
   4030 	# argument, so we may need to know it at that point already.
   4031 	# Even if this section looks crufty: it has the advantage of
   4032 	# actually working.
   4033 	break;;
   4034     * )
   4035 	break;;
   4036   esac
   4037 done
   4038 test "$ac_cv_exeext" = no && ac_cv_exeext=
   4039 
   4040 else
   4041   ac_file=''
   4042 fi
   4043 if test -z "$ac_file"; then :
   4044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4045 $as_echo "no" >&6; }
   4046 $as_echo "$as_me: failed program was:" >&5
   4047 sed 's/^/| /' conftest.$ac_ext >&5
   4048 
   4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4051 as_fn_error 77 "C compiler cannot create executables
   4052 See \`config.log' for more details" "$LINENO" 5; }
   4053 else
   4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4055 $as_echo "yes" >&6; }
   4056 fi
   4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   4058 $as_echo_n "checking for C compiler default output file name... " >&6; }
   4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   4060 $as_echo "$ac_file" >&6; }
   4061 ac_exeext=$ac_cv_exeext
   4062 
   4063 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   4064 ac_clean_files=$ac_clean_files_save
   4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   4066 $as_echo_n "checking for suffix of executables... " >&6; }
   4067 if { { ac_try="$ac_link"
   4068 case "(($ac_try" in
   4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4070   *) ac_try_echo=$ac_try;;
   4071 esac
   4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4073 $as_echo "$ac_try_echo"; } >&5
   4074   (eval "$ac_link") 2>&5
   4075   ac_status=$?
   4076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4077   test $ac_status = 0; }; then :
   4078   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   4079 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   4080 # work properly (i.e., refer to `conftest.exe'), while it won't with
   4081 # `rm'.
   4082 for ac_file in conftest.exe conftest conftest.*; do
   4083   test -f "$ac_file" || continue
   4084   case $ac_file in
   4085     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4086     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4087 	  break;;
   4088     * ) break;;
   4089   esac
   4090 done
   4091 else
   4092   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4094 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4095 See \`config.log' for more details" "$LINENO" 5; }
   4096 fi
   4097 rm -f conftest conftest$ac_cv_exeext
   4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4099 $as_echo "$ac_cv_exeext" >&6; }
   4100 
   4101 rm -f conftest.$ac_ext
   4102 EXEEXT=$ac_cv_exeext
   4103 ac_exeext=$EXEEXT
   4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4105 /* end confdefs.h.  */
   4106 #include <stdio.h>
   4107 int
   4108 main ()
   4109 {
   4110 FILE *f = fopen ("conftest.out", "w");
   4111  return ferror (f) || fclose (f) != 0;
   4112 
   4113   ;
   4114   return 0;
   4115 }
   4116 _ACEOF
   4117 ac_clean_files="$ac_clean_files conftest.out"
   4118 # Check that the compiler produces executables we can run.  If not, either
   4119 # the compiler is broken, or we cross compile.
   4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4121 $as_echo_n "checking whether we are cross compiling... " >&6; }
   4122 if test "$cross_compiling" != yes; then
   4123   { { ac_try="$ac_link"
   4124 case "(($ac_try" in
   4125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4126   *) ac_try_echo=$ac_try;;
   4127 esac
   4128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4129 $as_echo "$ac_try_echo"; } >&5
   4130   (eval "$ac_link") 2>&5
   4131   ac_status=$?
   4132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4133   test $ac_status = 0; }
   4134   if { ac_try='./conftest$ac_cv_exeext'
   4135   { { case "(($ac_try" in
   4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4137   *) ac_try_echo=$ac_try;;
   4138 esac
   4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4140 $as_echo "$ac_try_echo"; } >&5
   4141   (eval "$ac_try") 2>&5
   4142   ac_status=$?
   4143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4144   test $ac_status = 0; }; }; then
   4145     cross_compiling=no
   4146   else
   4147     if test "$cross_compiling" = maybe; then
   4148 	cross_compiling=yes
   4149     else
   4150 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4152 as_fn_error $? "cannot run C compiled programs.
   4153 If you meant to cross compile, use \`--host'.
   4154 See \`config.log' for more details" "$LINENO" 5; }
   4155     fi
   4156   fi
   4157 fi
   4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4159 $as_echo "$cross_compiling" >&6; }
   4160 
   4161 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4162 ac_clean_files=$ac_clean_files_save
   4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4164 $as_echo_n "checking for suffix of object files... " >&6; }
   4165 if ${ac_cv_objext+:} 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 
   4175   ;
   4176   return 0;
   4177 }
   4178 _ACEOF
   4179 rm -f conftest.o conftest.obj
   4180 if { { ac_try="$ac_compile"
   4181 case "(($ac_try" in
   4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4183   *) ac_try_echo=$ac_try;;
   4184 esac
   4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4186 $as_echo "$ac_try_echo"; } >&5
   4187   (eval "$ac_compile") 2>&5
   4188   ac_status=$?
   4189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4190   test $ac_status = 0; }; then :
   4191   for ac_file in conftest.o conftest.obj conftest.*; do
   4192   test -f "$ac_file" || continue;
   4193   case $ac_file in
   4194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4195     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4196        break;;
   4197   esac
   4198 done
   4199 else
   4200   $as_echo "$as_me: failed program was:" >&5
   4201 sed 's/^/| /' conftest.$ac_ext >&5
   4202 
   4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4205 as_fn_error $? "cannot compute suffix of object files: cannot compile
   4206 See \`config.log' for more details" "$LINENO" 5; }
   4207 fi
   4208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4209 fi
   4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4211 $as_echo "$ac_cv_objext" >&6; }
   4212 OBJEXT=$ac_cv_objext
   4213 ac_objext=$OBJEXT
   4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4215 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4216 if ${ac_cv_c_compiler_gnu+:} false; then :
   4217   $as_echo_n "(cached) " >&6
   4218 else
   4219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4220 /* end confdefs.h.  */
   4221 
   4222 int
   4223 main ()
   4224 {
   4225 #ifndef __GNUC__
   4226        choke me
   4227 #endif
   4228 
   4229   ;
   4230   return 0;
   4231 }
   4232 _ACEOF
   4233 if ac_fn_c_try_compile "$LINENO"; then :
   4234   ac_compiler_gnu=yes
   4235 else
   4236   ac_compiler_gnu=no
   4237 fi
   4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4240 
   4241 fi
   4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4243 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4244 if test $ac_compiler_gnu = yes; then
   4245   GCC=yes
   4246 else
   4247   GCC=
   4248 fi
   4249 ac_test_CFLAGS=${CFLAGS+set}
   4250 ac_save_CFLAGS=$CFLAGS
   4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4252 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4253 if ${ac_cv_prog_cc_g+:} false; then :
   4254   $as_echo_n "(cached) " >&6
   4255 else
   4256   ac_save_c_werror_flag=$ac_c_werror_flag
   4257    ac_c_werror_flag=yes
   4258    ac_cv_prog_cc_g=no
   4259    CFLAGS="-g"
   4260    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4261 /* end confdefs.h.  */
   4262 
   4263 int
   4264 main ()
   4265 {
   4266 
   4267   ;
   4268   return 0;
   4269 }
   4270 _ACEOF
   4271 if ac_fn_c_try_compile "$LINENO"; then :
   4272   ac_cv_prog_cc_g=yes
   4273 else
   4274   CFLAGS=""
   4275       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4276 /* end confdefs.h.  */
   4277 
   4278 int
   4279 main ()
   4280 {
   4281 
   4282   ;
   4283   return 0;
   4284 }
   4285 _ACEOF
   4286 if ac_fn_c_try_compile "$LINENO"; then :
   4287 
   4288 else
   4289   ac_c_werror_flag=$ac_save_c_werror_flag
   4290 	 CFLAGS="-g"
   4291 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4292 /* end confdefs.h.  */
   4293 
   4294 int
   4295 main ()
   4296 {
   4297 
   4298   ;
   4299   return 0;
   4300 }
   4301 _ACEOF
   4302 if ac_fn_c_try_compile "$LINENO"; then :
   4303   ac_cv_prog_cc_g=yes
   4304 fi
   4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4306 fi
   4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4308 fi
   4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4310    ac_c_werror_flag=$ac_save_c_werror_flag
   4311 fi
   4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4313 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4314 if test "$ac_test_CFLAGS" = set; then
   4315   CFLAGS=$ac_save_CFLAGS
   4316 elif test $ac_cv_prog_cc_g = yes; then
   4317   if test "$GCC" = yes; then
   4318     CFLAGS="-g -O2"
   4319   else
   4320     CFLAGS="-g"
   4321   fi
   4322 else
   4323   if test "$GCC" = yes; then
   4324     CFLAGS="-O2"
   4325   else
   4326     CFLAGS=
   4327   fi
   4328 fi
   4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4330 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4331 if ${ac_cv_prog_cc_c89+:} false; then :
   4332   $as_echo_n "(cached) " >&6
   4333 else
   4334   ac_cv_prog_cc_c89=no
   4335 ac_save_CC=$CC
   4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4337 /* end confdefs.h.  */
   4338 #include <stdarg.h>
   4339 #include <stdio.h>
   4340 struct stat;
   4341 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4342 struct buf { int x; };
   4343 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4344 static char *e (p, i)
   4345      char **p;
   4346      int i;
   4347 {
   4348   return p[i];
   4349 }
   4350 static char *f (char * (*g) (char **, int), char **p, ...)
   4351 {
   4352   char *s;
   4353   va_list v;
   4354   va_start (v,p);
   4355   s = g (p, va_arg (v,int));
   4356   va_end (v);
   4357   return s;
   4358 }
   4359 
   4360 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4361    function prototypes and stuff, but not '\xHH' hex character constants.
   4362    These don't provoke an error unfortunately, instead are silently treated
   4363    as 'x'.  The following induces an error, until -std is added to get
   4364    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4365    array size at least.  It's necessary to write '\x00'==0 to get something
   4366    that's true only with -std.  */
   4367 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4368 
   4369 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4370    inside strings and character constants.  */
   4371 #define FOO(x) 'x'
   4372 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4373 
   4374 int test (int i, double x);
   4375 struct s1 {int (*f) (int a);};
   4376 struct s2 {int (*f) (double a);};
   4377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4378 int argc;
   4379 char **argv;
   4380 int
   4381 main ()
   4382 {
   4383 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4384   ;
   4385   return 0;
   4386 }
   4387 _ACEOF
   4388 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4389 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4390 do
   4391   CC="$ac_save_CC $ac_arg"
   4392   if ac_fn_c_try_compile "$LINENO"; then :
   4393   ac_cv_prog_cc_c89=$ac_arg
   4394 fi
   4395 rm -f core conftest.err conftest.$ac_objext
   4396   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4397 done
   4398 rm -f conftest.$ac_ext
   4399 CC=$ac_save_CC
   4400 
   4401 fi
   4402 # AC_CACHE_VAL
   4403 case "x$ac_cv_prog_cc_c89" in
   4404   x)
   4405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4406 $as_echo "none needed" >&6; } ;;
   4407   xno)
   4408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4409 $as_echo "unsupported" >&6; } ;;
   4410   *)
   4411     CC="$CC $ac_cv_prog_cc_c89"
   4412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4413 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4414 esac
   4415 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4416 
   4417 fi
   4418 
   4419 ac_ext=c
   4420 ac_cpp='$CPP $CPPFLAGS'
   4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4424 
   4425 if test ! -z "$preset_cflags"
   4426 then
   4427 	CFLAGS=$preset_cflags
   4428 fi
   4429 
   4430 
   4431 
   4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
   4433 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
   4434 
   4435 # Check whether --with-cxx_main was given.
   4436 if test "${with_cxx_main+set}" = set; then :
   4437   withval=$with_cxx_main;
   4438 
   4439 	case $withval in
   4440 	no)	with_cxx_main=no
   4441 		MAINCC='$(CC)';;
   4442 	yes)	with_cxx_main=yes
   4443 		MAINCC='$(CXX)';;
   4444 	*)	with_cxx_main=yes
   4445 		MAINCC=$withval
   4446 		if test -z "$CXX"
   4447 		then
   4448 			CXX=$withval
   4449 		fi;;
   4450 	esac
   4451 else
   4452 
   4453 	with_cxx_main=no
   4454 	MAINCC='$(CC)'
   4455 
   4456 fi
   4457 
   4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
   4459 $as_echo "$with_cxx_main" >&6; }
   4460 
   4461 preset_cxx="$CXX"
   4462 if test -z "$CXX"
   4463 then
   4464         case "$CC" in
   4465         gcc)    if test -n "$ac_tool_prefix"; then
   4466   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
   4467 set dummy ${ac_tool_prefix}g++; ac_word=$2
   4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4469 $as_echo_n "checking for $ac_word... " >&6; }
   4470 if ${ac_cv_path_CXX+:} false; then :
   4471   $as_echo_n "(cached) " >&6
   4472 else
   4473   case $CXX in
   4474   [\\/]* | ?:[\\/]*)
   4475   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
   4476   ;;
   4477   *)
   4478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4479 for as_dir in notfound
   4480 do
   4481   IFS=$as_save_IFS
   4482   test -z "$as_dir" && as_dir=.
   4483     for ac_exec_ext in '' $ac_executable_extensions; do
   4484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4485     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
   4486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4487     break 2
   4488   fi
   4489 done
   4490   done
   4491 IFS=$as_save_IFS
   4492 
   4493   ;;
   4494 esac
   4495 fi
   4496 CXX=$ac_cv_path_CXX
   4497 if test -n "$CXX"; then
   4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4499 $as_echo "$CXX" >&6; }
   4500 else
   4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4502 $as_echo "no" >&6; }
   4503 fi
   4504 
   4505 
   4506 fi
   4507 if test -z "$ac_cv_path_CXX"; then
   4508   ac_pt_CXX=$CXX
   4509   # Extract the first word of "g++", so it can be a program name with args.
   4510 set dummy g++; ac_word=$2
   4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4512 $as_echo_n "checking for $ac_word... " >&6; }
   4513 if ${ac_cv_path_ac_pt_CXX+:} false; then :
   4514   $as_echo_n "(cached) " >&6
   4515 else
   4516   case $ac_pt_CXX in
   4517   [\\/]* | ?:[\\/]*)
   4518   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
   4519   ;;
   4520   *)
   4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4522 for as_dir in notfound
   4523 do
   4524   IFS=$as_save_IFS
   4525   test -z "$as_dir" && as_dir=.
   4526     for ac_exec_ext in '' $ac_executable_extensions; do
   4527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4528     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
   4529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4530     break 2
   4531   fi
   4532 done
   4533   done
   4534 IFS=$as_save_IFS
   4535 
   4536   ;;
   4537 esac
   4538 fi
   4539 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
   4540 if test -n "$ac_pt_CXX"; then
   4541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
   4542 $as_echo "$ac_pt_CXX" >&6; }
   4543 else
   4544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4545 $as_echo "no" >&6; }
   4546 fi
   4547 
   4548   if test "x$ac_pt_CXX" = x; then
   4549     CXX="g++"
   4550   else
   4551     case $cross_compiling:$ac_tool_warned in
   4552 yes:)
   4553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4555 ac_tool_warned=yes ;;
   4556 esac
   4557     CXX=$ac_pt_CXX
   4558   fi
   4559 else
   4560   CXX="$ac_cv_path_CXX"
   4561 fi
   4562  ;;
   4563         cc)     if test -n "$ac_tool_prefix"; then
   4564   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
   4565 set dummy ${ac_tool_prefix}c++; ac_word=$2
   4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4567 $as_echo_n "checking for $ac_word... " >&6; }
   4568 if ${ac_cv_path_CXX+:} false; then :
   4569   $as_echo_n "(cached) " >&6
   4570 else
   4571   case $CXX in
   4572   [\\/]* | ?:[\\/]*)
   4573   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
   4574   ;;
   4575   *)
   4576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4577 for as_dir in notfound
   4578 do
   4579   IFS=$as_save_IFS
   4580   test -z "$as_dir" && as_dir=.
   4581     for ac_exec_ext in '' $ac_executable_extensions; do
   4582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4583     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
   4584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4585     break 2
   4586   fi
   4587 done
   4588   done
   4589 IFS=$as_save_IFS
   4590 
   4591   ;;
   4592 esac
   4593 fi
   4594 CXX=$ac_cv_path_CXX
   4595 if test -n "$CXX"; then
   4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4597 $as_echo "$CXX" >&6; }
   4598 else
   4599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4600 $as_echo "no" >&6; }
   4601 fi
   4602 
   4603 
   4604 fi
   4605 if test -z "$ac_cv_path_CXX"; then
   4606   ac_pt_CXX=$CXX
   4607   # Extract the first word of "c++", so it can be a program name with args.
   4608 set dummy c++; ac_word=$2
   4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4610 $as_echo_n "checking for $ac_word... " >&6; }
   4611 if ${ac_cv_path_ac_pt_CXX+:} false; then :
   4612   $as_echo_n "(cached) " >&6
   4613 else
   4614   case $ac_pt_CXX in
   4615   [\\/]* | ?:[\\/]*)
   4616   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
   4617   ;;
   4618   *)
   4619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4620 for as_dir in notfound
   4621 do
   4622   IFS=$as_save_IFS
   4623   test -z "$as_dir" && as_dir=.
   4624     for ac_exec_ext in '' $ac_executable_extensions; do
   4625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4626     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
   4627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4628     break 2
   4629   fi
   4630 done
   4631   done
   4632 IFS=$as_save_IFS
   4633 
   4634   ;;
   4635 esac
   4636 fi
   4637 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
   4638 if test -n "$ac_pt_CXX"; then
   4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
   4640 $as_echo "$ac_pt_CXX" >&6; }
   4641 else
   4642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4643 $as_echo "no" >&6; }
   4644 fi
   4645 
   4646   if test "x$ac_pt_CXX" = x; then
   4647     CXX="c++"
   4648   else
   4649     case $cross_compiling:$ac_tool_warned in
   4650 yes:)
   4651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4653 ac_tool_warned=yes ;;
   4654 esac
   4655     CXX=$ac_pt_CXX
   4656   fi
   4657 else
   4658   CXX="$ac_cv_path_CXX"
   4659 fi
   4660  ;;
   4661         esac
   4662 	if test "$CXX" = "notfound"
   4663 	then
   4664 		CXX=""
   4665 	fi
   4666 fi
   4667 if test -z "$CXX"
   4668 then
   4669 	if test -n "$ac_tool_prefix"; then
   4670   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
   4671   do
   4672     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4675 $as_echo_n "checking for $ac_word... " >&6; }
   4676 if ${ac_cv_prog_CXX+:} false; then :
   4677   $as_echo_n "(cached) " >&6
   4678 else
   4679   if test -n "$CXX"; then
   4680   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   4681 else
   4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4683 for as_dir in $PATH
   4684 do
   4685   IFS=$as_save_IFS
   4686   test -z "$as_dir" && as_dir=.
   4687     for ac_exec_ext in '' $ac_executable_extensions; do
   4688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4689     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   4690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4691     break 2
   4692   fi
   4693 done
   4694   done
   4695 IFS=$as_save_IFS
   4696 
   4697 fi
   4698 fi
   4699 CXX=$ac_cv_prog_CXX
   4700 if test -n "$CXX"; then
   4701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4702 $as_echo "$CXX" >&6; }
   4703 else
   4704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4705 $as_echo "no" >&6; }
   4706 fi
   4707 
   4708 
   4709     test -n "$CXX" && break
   4710   done
   4711 fi
   4712 if test -z "$CXX"; then
   4713   ac_ct_CXX=$CXX
   4714   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
   4715 do
   4716   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4717 set dummy $ac_prog; ac_word=$2
   4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4719 $as_echo_n "checking for $ac_word... " >&6; }
   4720 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   4721   $as_echo_n "(cached) " >&6
   4722 else
   4723   if test -n "$ac_ct_CXX"; then
   4724   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   4725 else
   4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4727 for as_dir in $PATH
   4728 do
   4729   IFS=$as_save_IFS
   4730   test -z "$as_dir" && as_dir=.
   4731     for ac_exec_ext in '' $ac_executable_extensions; do
   4732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4733     ac_cv_prog_ac_ct_CXX="$ac_prog"
   4734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4735     break 2
   4736   fi
   4737 done
   4738   done
   4739 IFS=$as_save_IFS
   4740 
   4741 fi
   4742 fi
   4743 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   4744 if test -n "$ac_ct_CXX"; then
   4745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   4746 $as_echo "$ac_ct_CXX" >&6; }
   4747 else
   4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4749 $as_echo "no" >&6; }
   4750 fi
   4751 
   4752 
   4753   test -n "$ac_ct_CXX" && break
   4754 done
   4755 
   4756   if test "x$ac_ct_CXX" = x; then
   4757     CXX="notfound"
   4758   else
   4759     case $cross_compiling:$ac_tool_warned in
   4760 yes:)
   4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4763 ac_tool_warned=yes ;;
   4764 esac
   4765     CXX=$ac_ct_CXX
   4766   fi
   4767 fi
   4768 
   4769 	if test "$CXX" = "notfound"
   4770 	then
   4771 		CXX=""
   4772 	fi
   4773 fi
   4774 if test "$preset_cxx" != "$CXX"
   4775 then
   4776         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
   4777 
   4778   By default, distutils will build C++ extension modules with \"$CXX\".
   4779   If this is not intended, then set CXX on the configure command line.
   4780   " >&5
   4781 $as_echo "$as_me: WARNING:
   4782 
   4783   By default, distutils will build C++ extension modules with \"$CXX\".
   4784   If this is not intended, then set CXX on the configure command line.
   4785   " >&2;}
   4786 fi
   4787 
   4788 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
   4789 
   4790 
   4791 
   4792 # checks for UNIX variants that set C preprocessor variables
   4793 
   4794 ac_ext=c
   4795 ac_cpp='$CPP $CPPFLAGS'
   4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4800 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4801 # On Suns, sometimes $CPP names a directory.
   4802 if test -n "$CPP" && test -d "$CPP"; then
   4803   CPP=
   4804 fi
   4805 if test -z "$CPP"; then
   4806   if ${ac_cv_prog_CPP+:} false; then :
   4807   $as_echo_n "(cached) " >&6
   4808 else
   4809       # Double quotes because CPP needs to be expanded
   4810     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4811     do
   4812       ac_preproc_ok=false
   4813 for ac_c_preproc_warn_flag in '' yes
   4814 do
   4815   # Use a header file that comes with gcc, so configuring glibc
   4816   # with a fresh cross-compiler works.
   4817   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4818   # <limits.h> exists even on freestanding compilers.
   4819   # On the NeXT, cc -E runs the code through the compiler's parser,
   4820   # not just through cpp. "Syntax error" is here to catch this case.
   4821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4822 /* end confdefs.h.  */
   4823 #ifdef __STDC__
   4824 # include <limits.h>
   4825 #else
   4826 # include <assert.h>
   4827 #endif
   4828 		     Syntax error
   4829 _ACEOF
   4830 if ac_fn_c_try_cpp "$LINENO"; then :
   4831 
   4832 else
   4833   # Broken: fails on valid input.
   4834 continue
   4835 fi
   4836 rm -f conftest.err conftest.i conftest.$ac_ext
   4837 
   4838   # OK, works on sane cases.  Now check whether nonexistent headers
   4839   # can be detected and how.
   4840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4841 /* end confdefs.h.  */
   4842 #include <ac_nonexistent.h>
   4843 _ACEOF
   4844 if ac_fn_c_try_cpp "$LINENO"; then :
   4845   # Broken: success on invalid input.
   4846 continue
   4847 else
   4848   # Passes both tests.
   4849 ac_preproc_ok=:
   4850 break
   4851 fi
   4852 rm -f conftest.err conftest.i conftest.$ac_ext
   4853 
   4854 done
   4855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4856 rm -f conftest.i conftest.err conftest.$ac_ext
   4857 if $ac_preproc_ok; then :
   4858   break
   4859 fi
   4860 
   4861     done
   4862     ac_cv_prog_CPP=$CPP
   4863 
   4864 fi
   4865   CPP=$ac_cv_prog_CPP
   4866 else
   4867   ac_cv_prog_CPP=$CPP
   4868 fi
   4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4870 $as_echo "$CPP" >&6; }
   4871 ac_preproc_ok=false
   4872 for ac_c_preproc_warn_flag in '' yes
   4873 do
   4874   # Use a header file that comes with gcc, so configuring glibc
   4875   # with a fresh cross-compiler works.
   4876   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4877   # <limits.h> exists even on freestanding compilers.
   4878   # On the NeXT, cc -E runs the code through the compiler's parser,
   4879   # not just through cpp. "Syntax error" is here to catch this case.
   4880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4881 /* end confdefs.h.  */
   4882 #ifdef __STDC__
   4883 # include <limits.h>
   4884 #else
   4885 # include <assert.h>
   4886 #endif
   4887 		     Syntax error
   4888 _ACEOF
   4889 if ac_fn_c_try_cpp "$LINENO"; then :
   4890 
   4891 else
   4892   # Broken: fails on valid input.
   4893 continue
   4894 fi
   4895 rm -f conftest.err conftest.i conftest.$ac_ext
   4896 
   4897   # OK, works on sane cases.  Now check whether nonexistent headers
   4898   # can be detected and how.
   4899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4900 /* end confdefs.h.  */
   4901 #include <ac_nonexistent.h>
   4902 _ACEOF
   4903 if ac_fn_c_try_cpp "$LINENO"; then :
   4904   # Broken: success on invalid input.
   4905 continue
   4906 else
   4907   # Passes both tests.
   4908 ac_preproc_ok=:
   4909 break
   4910 fi
   4911 rm -f conftest.err conftest.i conftest.$ac_ext
   4912 
   4913 done
   4914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4915 rm -f conftest.i conftest.err conftest.$ac_ext
   4916 if $ac_preproc_ok; then :
   4917 
   4918 else
   4919   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4921 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4922 See \`config.log' for more details" "$LINENO" 5; }
   4923 fi
   4924 
   4925 ac_ext=c
   4926 ac_cpp='$CPP $CPPFLAGS'
   4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4930 
   4931 
   4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4933 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4934 if ${ac_cv_path_GREP+:} false; then :
   4935   $as_echo_n "(cached) " >&6
   4936 else
   4937   if test -z "$GREP"; then
   4938   ac_path_GREP_found=false
   4939   # Loop through the user's path and test for each of PROGNAME-LIST
   4940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4942 do
   4943   IFS=$as_save_IFS
   4944   test -z "$as_dir" && as_dir=.
   4945     for ac_prog in grep ggrep; do
   4946     for ac_exec_ext in '' $ac_executable_extensions; do
   4947       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4948       as_fn_executable_p "$ac_path_GREP" || continue
   4949 # Check for GNU ac_path_GREP and select it if it is found.
   4950   # Check for GNU $ac_path_GREP
   4951 case `"$ac_path_GREP" --version 2>&1` in
   4952 *GNU*)
   4953   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4954 *)
   4955   ac_count=0
   4956   $as_echo_n 0123456789 >"conftest.in"
   4957   while :
   4958   do
   4959     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4960     mv "conftest.tmp" "conftest.in"
   4961     cp "conftest.in" "conftest.nl"
   4962     $as_echo 'GREP' >> "conftest.nl"
   4963     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4964     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4965     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4966     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4967       # Best one so far, save it but keep looking for a better one
   4968       ac_cv_path_GREP="$ac_path_GREP"
   4969       ac_path_GREP_max=$ac_count
   4970     fi
   4971     # 10*(2^10) chars as input seems more than enough
   4972     test $ac_count -gt 10 && break
   4973   done
   4974   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4975 esac
   4976 
   4977       $ac_path_GREP_found && break 3
   4978     done
   4979   done
   4980   done
   4981 IFS=$as_save_IFS
   4982   if test -z "$ac_cv_path_GREP"; then
   4983     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4984   fi
   4985 else
   4986   ac_cv_path_GREP=$GREP
   4987 fi
   4988 
   4989 fi
   4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4991 $as_echo "$ac_cv_path_GREP" >&6; }
   4992  GREP="$ac_cv_path_GREP"
   4993 
   4994 
   4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4996 $as_echo_n "checking for egrep... " >&6; }
   4997 if ${ac_cv_path_EGREP+:} false; then :
   4998   $as_echo_n "(cached) " >&6
   4999 else
   5000   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5001    then ac_cv_path_EGREP="$GREP -E"
   5002    else
   5003      if test -z "$EGREP"; then
   5004   ac_path_EGREP_found=false
   5005   # Loop through the user's path and test for each of PROGNAME-LIST
   5006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5008 do
   5009   IFS=$as_save_IFS
   5010   test -z "$as_dir" && as_dir=.
   5011     for ac_prog in egrep; do
   5012     for ac_exec_ext in '' $ac_executable_extensions; do
   5013       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   5014       as_fn_executable_p "$ac_path_EGREP" || continue
   5015 # Check for GNU ac_path_EGREP and select it if it is found.
   5016   # Check for GNU $ac_path_EGREP
   5017 case `"$ac_path_EGREP" --version 2>&1` in
   5018 *GNU*)
   5019   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5020 *)
   5021   ac_count=0
   5022   $as_echo_n 0123456789 >"conftest.in"
   5023   while :
   5024   do
   5025     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5026     mv "conftest.tmp" "conftest.in"
   5027     cp "conftest.in" "conftest.nl"
   5028     $as_echo 'EGREP' >> "conftest.nl"
   5029     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5030     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5031     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5032     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5033       # Best one so far, save it but keep looking for a better one
   5034       ac_cv_path_EGREP="$ac_path_EGREP"
   5035       ac_path_EGREP_max=$ac_count
   5036     fi
   5037     # 10*(2^10) chars as input seems more than enough
   5038     test $ac_count -gt 10 && break
   5039   done
   5040   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5041 esac
   5042 
   5043       $ac_path_EGREP_found && break 3
   5044     done
   5045   done
   5046   done
   5047 IFS=$as_save_IFS
   5048   if test -z "$ac_cv_path_EGREP"; then
   5049     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5050   fi
   5051 else
   5052   ac_cv_path_EGREP=$EGREP
   5053 fi
   5054 
   5055    fi
   5056 fi
   5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5058 $as_echo "$ac_cv_path_EGREP" >&6; }
   5059  EGREP="$ac_cv_path_EGREP"
   5060 
   5061 
   5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   5063 $as_echo_n "checking for ANSI C header files... " >&6; }
   5064 if ${ac_cv_header_stdc+:} false; then :
   5065   $as_echo_n "(cached) " >&6
   5066 else
   5067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5068 /* end confdefs.h.  */
   5069 #include <stdlib.h>
   5070 #include <stdarg.h>
   5071 #include <string.h>
   5072 #include <float.h>
   5073 
   5074 int
   5075 main ()
   5076 {
   5077 
   5078   ;
   5079   return 0;
   5080 }
   5081 _ACEOF
   5082 if ac_fn_c_try_compile "$LINENO"; then :
   5083   ac_cv_header_stdc=yes
   5084 else
   5085   ac_cv_header_stdc=no
   5086 fi
   5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5088 
   5089 if test $ac_cv_header_stdc = yes; then
   5090   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   5091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5092 /* end confdefs.h.  */
   5093 #include <string.h>
   5094 
   5095 _ACEOF
   5096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5097   $EGREP "memchr" >/dev/null 2>&1; then :
   5098 
   5099 else
   5100   ac_cv_header_stdc=no
   5101 fi
   5102 rm -f conftest*
   5103 
   5104 fi
   5105 
   5106 if test $ac_cv_header_stdc = yes; then
   5107   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   5108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5109 /* end confdefs.h.  */
   5110 #include <stdlib.h>
   5111 
   5112 _ACEOF
   5113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5114   $EGREP "free" >/dev/null 2>&1; then :
   5115 
   5116 else
   5117   ac_cv_header_stdc=no
   5118 fi
   5119 rm -f conftest*
   5120 
   5121 fi
   5122 
   5123 if test $ac_cv_header_stdc = yes; then
   5124   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   5125   if test "$cross_compiling" = yes; then :
   5126   :
   5127 else
   5128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5129 /* end confdefs.h.  */
   5130 #include <ctype.h>
   5131 #include <stdlib.h>
   5132 #if ((' ' & 0x0FF) == 0x020)
   5133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   5134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   5135 #else
   5136 # define ISLOWER(c) \
   5137 		   (('a' <= (c) && (c) <= 'i') \
   5138 		     || ('j' <= (c) && (c) <= 'r') \
   5139 		     || ('s' <= (c) && (c) <= 'z'))
   5140 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   5141 #endif
   5142 
   5143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   5144 int
   5145 main ()
   5146 {
   5147   int i;
   5148   for (i = 0; i < 256; i++)
   5149     if (XOR (islower (i), ISLOWER (i))
   5150 	|| toupper (i) != TOUPPER (i))
   5151       return 2;
   5152   return 0;
   5153 }
   5154 _ACEOF
   5155 if ac_fn_c_try_run "$LINENO"; then :
   5156 
   5157 else
   5158   ac_cv_header_stdc=no
   5159 fi
   5160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5161   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5162 fi
   5163 
   5164 fi
   5165 fi
   5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   5167 $as_echo "$ac_cv_header_stdc" >&6; }
   5168 if test $ac_cv_header_stdc = yes; then
   5169 
   5170 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   5171 
   5172 fi
   5173 
   5174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   5175 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   5176 		  inttypes.h stdint.h unistd.h
   5177 do :
   5178   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5179 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   5180 "
   5181 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   5182   cat >>confdefs.h <<_ACEOF
   5183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5184 _ACEOF
   5185 
   5186 fi
   5187 
   5188 done
   5189 
   5190 
   5191 
   5192   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   5193 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   5194   MINIX=yes
   5195 else
   5196   MINIX=
   5197 fi
   5198 
   5199 
   5200   if test "$MINIX" = yes; then
   5201 
   5202 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   5203 
   5204 
   5205 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   5206 
   5207 
   5208 $as_echo "#define _MINIX 1" >>confdefs.h
   5209 
   5210   fi
   5211 
   5212 
   5213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   5214 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   5215 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   5216   $as_echo_n "(cached) " >&6
   5217 else
   5218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5219 /* end confdefs.h.  */
   5220 
   5221 #         define __EXTENSIONS__ 1
   5222           $ac_includes_default
   5223 int
   5224 main ()
   5225 {
   5226 
   5227   ;
   5228   return 0;
   5229 }
   5230 _ACEOF
   5231 if ac_fn_c_try_compile "$LINENO"; then :
   5232   ac_cv_safe_to_define___extensions__=yes
   5233 else
   5234   ac_cv_safe_to_define___extensions__=no
   5235 fi
   5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5237 fi
   5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   5239 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   5240   test $ac_cv_safe_to_define___extensions__ = yes &&
   5241     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   5242 
   5243   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   5244 
   5245   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   5246 
   5247   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   5248 
   5249   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   5250 
   5251 
   5252 
   5253 # Check for unsupported systems
   5254 case $ac_sys_system/$ac_sys_release in
   5255 atheos*|Linux*/1*)
   5256    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
   5257    echo See README for details.
   5258    exit 1;;
   5259 esac
   5260 
   5261 
   5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
   5263 $as_echo_n "checking for --with-suffix... " >&6; }
   5264 
   5265 # Check whether --with-suffix was given.
   5266 if test "${with_suffix+set}" = set; then :
   5267   withval=$with_suffix;
   5268 	case $withval in
   5269 	no)	EXEEXT=;;
   5270 	yes)	EXEEXT=.exe;;
   5271 	*)	EXEEXT=$withval;;
   5272 	esac
   5273 fi
   5274 
   5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
   5276 $as_echo "$EXEEXT" >&6; }
   5277 
   5278 # Test whether we're running on a non-case-sensitive system, in which
   5279 # case we give a warning if no ext is given
   5280 
   5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
   5282 $as_echo_n "checking for case-insensitive build directory... " >&6; }
   5283 if test ! -d CaseSensitiveTestDir; then
   5284 mkdir CaseSensitiveTestDir
   5285 fi
   5286 
   5287 if test -d casesensitivetestdir
   5288 then
   5289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5290 $as_echo "yes" >&6; }
   5291     BUILDEXEEXT=.exe
   5292 else
   5293 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5294 $as_echo "no" >&6; }
   5295 	BUILDEXEEXT=$EXEEXT
   5296 fi
   5297 rmdir CaseSensitiveTestDir
   5298 
   5299 case $MACHDEP in
   5300 bsdos*)
   5301     case $CC in
   5302     gcc) CC="$CC -D_HAVE_BSDI";;
   5303     esac;;
   5304 esac
   5305 
   5306 case $ac_sys_system in
   5307 hp*|HP*)
   5308     case $CC in
   5309     cc|*/cc) CC="$CC -Ae";;
   5310     esac;;
   5311 SunOS*)
   5312     # Some functions have a prototype only with that define, e.g. confstr
   5313 
   5314 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   5315 
   5316     ;;
   5317 esac
   5318 
   5319 
   5320 
   5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
   5322 $as_echo_n "checking LIBRARY... " >&6; }
   5323 if test -z "$LIBRARY"
   5324 then
   5325 	LIBRARY='libpython$(VERSION).a'
   5326 fi
   5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
   5328 $as_echo "$LIBRARY" >&6; }
   5329 
   5330 # LDLIBRARY is the name of the library to link against (as opposed to the
   5331 # name of the library into which to insert object files). BLDLIBRARY is also
   5332 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
   5333 # is blank as the main program is not linked directly against LDLIBRARY.
   5334 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
   5335 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
   5336 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
   5337 # DLLLIBRARY is the shared (i.e., DLL) library.
   5338 #
   5339 # RUNSHARED is used to run shared python without installed libraries
   5340 #
   5341 # INSTSONAME is the name of the shared library that will be use to install
   5342 # on the system - some systems like version suffix, others don't
   5343 
   5344 
   5345 
   5346 
   5347 
   5348 
   5349 LDLIBRARY="$LIBRARY"
   5350 BLDLIBRARY='$(LDLIBRARY)'
   5351 INSTSONAME='$(LDLIBRARY)'
   5352 DLLLIBRARY=''
   5353 LDLIBRARYDIR=''
   5354 RUNSHARED=''
   5355 
   5356 # LINKCC is the command that links the python executable -- default is $(CC).
   5357 # If CXX is set, and if it is needed to link a main function that was
   5358 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
   5359 # python might then depend on the C++ runtime
   5360 # This is altered for AIX in order to build the export list before
   5361 # linking.
   5362 
   5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
   5364 $as_echo_n "checking LINKCC... " >&6; }
   5365 if test -z "$LINKCC"
   5366 then
   5367 	LINKCC='$(PURIFY) $(MAINCC)'
   5368 	case $ac_sys_system in
   5369 	AIX*)
   5370 	   exp_extra="\"\""
   5371 	   if test $ac_sys_release -ge 5 -o \
   5372 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
   5373 	       exp_extra="."
   5374 	   fi
   5375 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
   5376 	QNX*)
   5377 	   # qcc must be used because the other compilers do not
   5378 	   # support -N.
   5379 	   LINKCC=qcc;;
   5380 	esac
   5381 fi
   5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
   5383 $as_echo "$LINKCC" >&6; }
   5384 
   5385 # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong
   5386 # make sure we default having it set to "no": this is used by
   5387 # distutils.unixccompiler to know if it should add --enable-new-dtags
   5388 # to linker command lines, and failing to detect GNU ld simply results
   5389 # in the same bahaviour as before.
   5390 
   5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   5392 $as_echo_n "checking for GNU ld... " >&6; }
   5393 ac_prog=ld
   5394 if test "$GCC" = yes; then
   5395        ac_prog=`$CC -print-prog-name=ld`
   5396 fi
   5397 case `"$ac_prog" -V 2>&1 < /dev/null` in
   5398       *GNU*)
   5399           GNULD=yes;;
   5400       *)
   5401           GNULD=no;;
   5402 esac
   5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
   5404 $as_echo "$GNULD" >&6; }
   5405 
   5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
   5407 $as_echo_n "checking for --enable-shared... " >&6; }
   5408 # Check whether --enable-shared was given.
   5409 if test "${enable_shared+set}" = set; then :
   5410   enableval=$enable_shared;
   5411 fi
   5412 
   5413 
   5414 if test -z "$enable_shared"
   5415 then
   5416   case $ac_sys_system in
   5417   CYGWIN* | atheos*)
   5418     enable_shared="yes";;
   5419   *)
   5420     enable_shared="no";;
   5421   esac
   5422 fi
   5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   5424 $as_echo "$enable_shared" >&6; }
   5425 
   5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
   5427 $as_echo_n "checking for --enable-profiling... " >&6; }
   5428 # Check whether --enable-profiling was given.
   5429 if test "${enable_profiling+set}" = set; then :
   5430   enableval=$enable_profiling;
   5431 fi
   5432 
   5433 if test "x$enable_profiling" = xyes; then
   5434   ac_save_cc="$CC"
   5435   CC="$CC -pg"
   5436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5437 /* end confdefs.h.  */
   5438 int main() { return 0; }
   5439 _ACEOF
   5440 if ac_fn_c_try_link "$LINENO"; then :
   5441 
   5442 else
   5443   enable_profiling=no
   5444 fi
   5445 rm -f core conftest.err conftest.$ac_objext \
   5446     conftest$ac_exeext conftest.$ac_ext
   5447   CC="$ac_save_cc"
   5448 else
   5449   enable_profiling=no
   5450 fi
   5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
   5452 $as_echo "$enable_profiling" >&6; }
   5453 
   5454 if test "x$enable_profiling" = xyes; then
   5455   BASECFLAGS="-pg $BASECFLAGS"
   5456   LDFLAGS="-pg $LDFLAGS"
   5457 fi
   5458 
   5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
   5460 $as_echo_n "checking LDLIBRARY... " >&6; }
   5461 
   5462 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
   5463 # library that we build, but we do not want to link against it (we
   5464 # will find it with a -framework option). For this reason there is an
   5465 # extra variable BLDLIBRARY against which Python and the extension
   5466 # modules are linked, BLDLIBRARY. This is normally the same as
   5467 # LDLIBRARY, but empty for MacOSX framework builds.
   5468 if test "$enable_framework"
   5469 then
   5470   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   5471   RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
   5472   BLDLIBRARY=''
   5473 else
   5474   BLDLIBRARY='$(LDLIBRARY)'
   5475 fi
   5476 
   5477 # Other platforms follow
   5478 if test $enable_shared = "yes"; then
   5479 
   5480 $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
   5481 
   5482   case $ac_sys_system in
   5483     BeOS*)
   5484           LDLIBRARY='libpython$(VERSION).so'
   5485           ;;
   5486     CYGWIN*)
   5487           LDLIBRARY='libpython$(VERSION).dll.a'
   5488           DLLLIBRARY='libpython$(VERSION).dll'
   5489           ;;
   5490     SunOS*)
   5491 	  LDLIBRARY='libpython$(VERSION).so'
   5492 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
   5493 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
   5494 	  INSTSONAME="$LDLIBRARY".$SOVERSION
   5495           ;;
   5496     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
   5497 	  LDLIBRARY='libpython$(VERSION).so'
   5498 	  BLDLIBRARY='-L. -lpython$(VERSION)'
   5499 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
   5500 	  case $ac_sys_system in
   5501 	      FreeBSD*)
   5502 		SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
   5503 		;;
   5504 	  esac
   5505 	  INSTSONAME="$LDLIBRARY".$SOVERSION
   5506 	  ;;
   5507     hp*|HP*)
   5508 	  case `uname -m` in
   5509 		ia64)
   5510 			LDLIBRARY='libpython$(VERSION).so'
   5511 			;;
   5512 		*)
   5513 			LDLIBRARY='libpython$(VERSION).sl'
   5514 			;;
   5515 	  esac
   5516 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
   5517 	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
   5518 	  ;;
   5519     OSF*)
   5520 	  LDLIBRARY='libpython$(VERSION).so'
   5521 	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
   5522 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
   5523 	  ;;
   5524     atheos*)
   5525 	  LDLIBRARY='libpython$(VERSION).so'
   5526 	  BLDLIBRARY='-L. -lpython$(VERSION)'
   5527 	  RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
   5528 	  ;;
   5529     Darwin*)
   5530     	LDLIBRARY='libpython$(VERSION).dylib'
   5531 	BLDLIBRARY='-L. -lpython$(VERSION)'
   5532 	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
   5533 	;;
   5534     AIX*)
   5535 	LDLIBRARY='libpython$(VERSION).so'
   5536 	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
   5537 	;;
   5538 
   5539   esac
   5540 else # shared is disabled
   5541   case $ac_sys_system in
   5542     CYGWIN*)
   5543           BLDLIBRARY='$(LIBRARY)'
   5544           LDLIBRARY='libpython$(VERSION).dll.a'
   5545           ;;
   5546   esac
   5547 fi
   5548 
   5549 if test "$cross_compiling" = yes; then
   5550 	RUNSHARED=
   5551 fi
   5552 
   5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
   5554 $as_echo "$LDLIBRARY" >&6; }
   5555 
   5556 if test -n "$ac_tool_prefix"; then
   5557   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5558 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5560 $as_echo_n "checking for $ac_word... " >&6; }
   5561 if ${ac_cv_prog_RANLIB+:} false; then :
   5562   $as_echo_n "(cached) " >&6
   5563 else
   5564   if test -n "$RANLIB"; then
   5565   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5566 else
   5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5568 for as_dir in $PATH
   5569 do
   5570   IFS=$as_save_IFS
   5571   test -z "$as_dir" && as_dir=.
   5572     for ac_exec_ext in '' $ac_executable_extensions; do
   5573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5574     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5576     break 2
   5577   fi
   5578 done
   5579   done
   5580 IFS=$as_save_IFS
   5581 
   5582 fi
   5583 fi
   5584 RANLIB=$ac_cv_prog_RANLIB
   5585 if test -n "$RANLIB"; then
   5586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5587 $as_echo "$RANLIB" >&6; }
   5588 else
   5589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5590 $as_echo "no" >&6; }
   5591 fi
   5592 
   5593 
   5594 fi
   5595 if test -z "$ac_cv_prog_RANLIB"; then
   5596   ac_ct_RANLIB=$RANLIB
   5597   # Extract the first word of "ranlib", so it can be a program name with args.
   5598 set dummy ranlib; ac_word=$2
   5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5600 $as_echo_n "checking for $ac_word... " >&6; }
   5601 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5602   $as_echo_n "(cached) " >&6
   5603 else
   5604   if test -n "$ac_ct_RANLIB"; then
   5605   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5606 else
   5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5608 for as_dir in $PATH
   5609 do
   5610   IFS=$as_save_IFS
   5611   test -z "$as_dir" && as_dir=.
   5612     for ac_exec_ext in '' $ac_executable_extensions; do
   5613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5614     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5616     break 2
   5617   fi
   5618 done
   5619   done
   5620 IFS=$as_save_IFS
   5621 
   5622 fi
   5623 fi
   5624 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5625 if test -n "$ac_ct_RANLIB"; then
   5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5627 $as_echo "$ac_ct_RANLIB" >&6; }
   5628 else
   5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5630 $as_echo "no" >&6; }
   5631 fi
   5632 
   5633   if test "x$ac_ct_RANLIB" = x; then
   5634     RANLIB=":"
   5635   else
   5636     case $cross_compiling:$ac_tool_warned in
   5637 yes:)
   5638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5640 ac_tool_warned=yes ;;
   5641 esac
   5642     RANLIB=$ac_ct_RANLIB
   5643   fi
   5644 else
   5645   RANLIB="$ac_cv_prog_RANLIB"
   5646 fi
   5647 
   5648 
   5649 if test -n "$ac_tool_prefix"; then
   5650   for ac_prog in ar aal
   5651   do
   5652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5655 $as_echo_n "checking for $ac_word... " >&6; }
   5656 if ${ac_cv_prog_AR+:} false; then :
   5657   $as_echo_n "(cached) " >&6
   5658 else
   5659   if test -n "$AR"; then
   5660   ac_cv_prog_AR="$AR" # Let the user override the test.
   5661 else
   5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5663 for as_dir in $PATH
   5664 do
   5665   IFS=$as_save_IFS
   5666   test -z "$as_dir" && as_dir=.
   5667     for ac_exec_ext in '' $ac_executable_extensions; do
   5668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5669     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5671     break 2
   5672   fi
   5673 done
   5674   done
   5675 IFS=$as_save_IFS
   5676 
   5677 fi
   5678 fi
   5679 AR=$ac_cv_prog_AR
   5680 if test -n "$AR"; then
   5681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5682 $as_echo "$AR" >&6; }
   5683 else
   5684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5685 $as_echo "no" >&6; }
   5686 fi
   5687 
   5688 
   5689     test -n "$AR" && break
   5690   done
   5691 fi
   5692 if test -z "$AR"; then
   5693   ac_ct_AR=$AR
   5694   for ac_prog in ar aal
   5695 do
   5696   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5697 set dummy $ac_prog; ac_word=$2
   5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5699 $as_echo_n "checking for $ac_word... " >&6; }
   5700 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5701   $as_echo_n "(cached) " >&6
   5702 else
   5703   if test -n "$ac_ct_AR"; then
   5704   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5705 else
   5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5707 for as_dir in $PATH
   5708 do
   5709   IFS=$as_save_IFS
   5710   test -z "$as_dir" && as_dir=.
   5711     for ac_exec_ext in '' $ac_executable_extensions; do
   5712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5713     ac_cv_prog_ac_ct_AR="$ac_prog"
   5714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5715     break 2
   5716   fi
   5717 done
   5718   done
   5719 IFS=$as_save_IFS
   5720 
   5721 fi
   5722 fi
   5723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5724 if test -n "$ac_ct_AR"; then
   5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5726 $as_echo "$ac_ct_AR" >&6; }
   5727 else
   5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5729 $as_echo "no" >&6; }
   5730 fi
   5731 
   5732 
   5733   test -n "$ac_ct_AR" && break
   5734 done
   5735 
   5736   if test "x$ac_ct_AR" = x; then
   5737     AR="ar"
   5738   else
   5739     case $cross_compiling:$ac_tool_warned in
   5740 yes:)
   5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5743 ac_tool_warned=yes ;;
   5744 esac
   5745     AR=$ac_ct_AR
   5746   fi
   5747 fi
   5748 
   5749 
   5750 # tweak ARFLAGS only if the user didn't set it on the command line
   5751 
   5752 if test -z "$ARFLAGS"
   5753 then
   5754         ARFLAGS="rc"
   5755 fi
   5756 
   5757 
   5758 
   5759 
   5760 
   5761 if test -e $srcdir/.git
   5762 then
   5763 # Extract the first word of "git", so it can be a program name with args.
   5764 set dummy git; ac_word=$2
   5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5766 $as_echo_n "checking for $ac_word... " >&6; }
   5767 if ${ac_cv_prog_HAS_GIT+:} false; then :
   5768   $as_echo_n "(cached) " >&6
   5769 else
   5770   if test -n "$HAS_GIT"; then
   5771   ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
   5772 else
   5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5774 for as_dir in $PATH
   5775 do
   5776   IFS=$as_save_IFS
   5777   test -z "$as_dir" && as_dir=.
   5778     for ac_exec_ext in '' $ac_executable_extensions; do
   5779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5780     ac_cv_prog_HAS_GIT="found"
   5781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5782     break 2
   5783   fi
   5784 done
   5785   done
   5786 IFS=$as_save_IFS
   5787 
   5788   test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
   5789 fi
   5790 fi
   5791 HAS_GIT=$ac_cv_prog_HAS_GIT
   5792 if test -n "$HAS_GIT"; then
   5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
   5794 $as_echo "$HAS_GIT" >&6; }
   5795 else
   5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5797 $as_echo "no" >&6; }
   5798 fi
   5799 
   5800 
   5801 else
   5802 HAS_GIT=no-repository
   5803 fi
   5804 if test $HAS_GIT = found
   5805 then
   5806     GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
   5807     GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
   5808     GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
   5809 else
   5810     GITVERSION=""
   5811     GITTAG=""
   5812     GITBRANCH=""
   5813 fi
   5814 
   5815 case $MACHDEP in
   5816 bsdos*|hp*|HP*)
   5817 	# install -d does not work on BSDI or HP-UX
   5818 	if test -z "$INSTALL"
   5819 	then
   5820 		INSTALL="${srcdir}/install-sh -c"
   5821 	fi
   5822 esac
   5823 # Find a good install program.  We prefer a C program (faster),
   5824 # so one script is as good as another.  But avoid the broken or
   5825 # incompatible versions:
   5826 # SysV /etc/install, /usr/sbin/install
   5827 # SunOS /usr/etc/install
   5828 # IRIX /sbin/install
   5829 # AIX /bin/install
   5830 # AmigaOS /C/install, which installs bootblocks on floppy discs
   5831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   5832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   5833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   5834 # OS/2's system install, which has a completely different semantic
   5835 # ./install, which can be erroneously created by make from ./install.sh.
   5836 # Reject install programs that cannot install multiple files.
   5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   5838 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   5839 if test -z "$INSTALL"; then
   5840 if ${ac_cv_path_install+:} false; then :
   5841   $as_echo_n "(cached) " >&6
   5842 else
   5843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5844 for as_dir in $PATH
   5845 do
   5846   IFS=$as_save_IFS
   5847   test -z "$as_dir" && as_dir=.
   5848     # Account for people who put trailing slashes in PATH elements.
   5849 case $as_dir/ in #((
   5850   ./ | .// | /[cC]/* | \
   5851   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   5852   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   5853   /usr/ucb/* ) ;;
   5854   *)
   5855     # OSF1 and SCO ODT 3.0 have their own names for install.
   5856     # Don't use installbsd from OSF since it installs stuff as root
   5857     # by default.
   5858     for ac_prog in ginstall scoinst install; do
   5859       for ac_exec_ext in '' $ac_executable_extensions; do
   5860 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   5861 	  if test $ac_prog = install &&
   5862 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5863 	    # AIX install.  It has an incompatible calling convention.
   5864 	    :
   5865 	  elif test $ac_prog = install &&
   5866 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5867 	    # program-specific install script used by HP pwplus--don't use.
   5868 	    :
   5869 	  else
   5870 	    rm -rf conftest.one conftest.two conftest.dir
   5871 	    echo one > conftest.one
   5872 	    echo two > conftest.two
   5873 	    mkdir conftest.dir
   5874 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   5875 	      test -s conftest.one && test -s conftest.two &&
   5876 	      test -s conftest.dir/conftest.one &&
   5877 	      test -s conftest.dir/conftest.two
   5878 	    then
   5879 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   5880 	      break 3
   5881 	    fi
   5882 	  fi
   5883 	fi
   5884       done
   5885     done
   5886     ;;
   5887 esac
   5888 
   5889   done
   5890 IFS=$as_save_IFS
   5891 
   5892 rm -rf conftest.one conftest.two conftest.dir
   5893 
   5894 fi
   5895   if test "${ac_cv_path_install+set}" = set; then
   5896     INSTALL=$ac_cv_path_install
   5897   else
   5898     # As a last resort, use the slow shell script.  Don't cache a
   5899     # value for INSTALL within a source directory, because that will
   5900     # break other packages using the cache if that directory is
   5901     # removed, or if the value is a relative name.
   5902     INSTALL=$ac_install_sh
   5903   fi
   5904 fi
   5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   5906 $as_echo "$INSTALL" >&6; }
   5907 
   5908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   5909 # It thinks the first close brace ends the variable substitution.
   5910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   5911 
   5912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   5913 
   5914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   5915 
   5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   5917 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   5918 if test -z "$MKDIR_P"; then
   5919   if ${ac_cv_path_mkdir+:} false; then :
   5920   $as_echo_n "(cached) " >&6
   5921 else
   5922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5923 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   5924 do
   5925   IFS=$as_save_IFS
   5926   test -z "$as_dir" && as_dir=.
   5927     for ac_prog in mkdir gmkdir; do
   5928 	 for ac_exec_ext in '' $ac_executable_extensions; do
   5929 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   5930 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   5931 	     'mkdir (GNU coreutils) '* | \
   5932 	     'mkdir (coreutils) '* | \
   5933 	     'mkdir (fileutils) '4.1*)
   5934 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   5935 	       break 3;;
   5936 	   esac
   5937 	 done
   5938        done
   5939   done
   5940 IFS=$as_save_IFS
   5941 
   5942 fi
   5943 
   5944   test -d ./--version && rmdir ./--version
   5945   if test "${ac_cv_path_mkdir+set}" = set; then
   5946     MKDIR_P="$ac_cv_path_mkdir -p"
   5947   else
   5948     # As a last resort, use the slow shell script.  Don't cache a
   5949     # value for MKDIR_P within a source directory, because that will
   5950     # break other packages using the cache if that directory is
   5951     # removed, or if the value is a relative name.
   5952     MKDIR_P="$ac_install_sh -d"
   5953   fi
   5954 fi
   5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   5956 $as_echo "$MKDIR_P" >&6; }
   5957 
   5958 
   5959 # Not every filesystem supports hard links
   5960 
   5961 if test -z "$LN" ; then
   5962 	case $ac_sys_system in
   5963 		BeOS*) LN="ln -s";;
   5964 		CYGWIN*) LN="ln -s";;
   5965 		atheos*) LN="ln -s";;
   5966 		*) LN=ln;;
   5967 	esac
   5968 fi
   5969 
   5970 # Check for --with-pydebug
   5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
   5972 $as_echo_n "checking for --with-pydebug... " >&6; }
   5973 
   5974 # Check whether --with-pydebug was given.
   5975 if test "${with_pydebug+set}" = set; then :
   5976   withval=$with_pydebug;
   5977 if test "$withval" != no
   5978 then
   5979 
   5980 $as_echo "#define Py_DEBUG 1" >>confdefs.h
   5981 
   5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5983 $as_echo "yes" >&6; };
   5984   Py_DEBUG='true'
   5985 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5986 $as_echo "no" >&6; }; Py_DEBUG='false'
   5987 fi
   5988 else
   5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5990 $as_echo "no" >&6; }
   5991 fi
   5992 
   5993 
   5994 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
   5995 # merged with this chunk of code?
   5996 
   5997 # Optimizer/debugger flags
   5998 # ------------------------
   5999 # (The following bit of code is complicated enough - please keep things
   6000 # indented properly.  Just pretend you're editing Python code. ;-)
   6001 
   6002 # There are two parallel sets of case statements below, one that checks to
   6003 # see if OPT was set and one that does BASECFLAGS setting based upon
   6004 # compiler and platform.  BASECFLAGS tweaks need to be made even if the
   6005 # user set OPT.
   6006 
   6007 # tweak OPT based on compiler and platform, only if the user didn't set
   6008 # it on the command line
   6009 
   6010 if test "${OPT-unset}" = "unset"
   6011 then
   6012     case $GCC in
   6013     yes)
   6014         if test "$CC" != 'g++' ; then
   6015 	    STRICT_PROTO="-Wstrict-prototypes"
   6016 	fi
   6017         # For gcc 4.x we need to use -fwrapv so lets check if its supported
   6018         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
   6019            WRAP="-fwrapv"
   6020         fi
   6021 
   6022         # Clang also needs -fwrapv
   6023         case $CC in
   6024             *clang*) WRAP="-fwrapv"
   6025             ;;
   6026         esac
   6027 
   6028 	case $ac_cv_prog_cc_g in
   6029 	yes)
   6030 	    if test "$Py_DEBUG" = 'true' ; then
   6031 		# Optimization messes up debuggers, so turn it off for
   6032 		# debug builds.
   6033 		OPT="-g -O0 -Wall $STRICT_PROTO"
   6034 	    else
   6035 		OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
   6036 	    fi
   6037 	    ;;
   6038 	*)
   6039 	    OPT="-O3 -Wall $STRICT_PROTO"
   6040 	    ;;
   6041 	esac
   6042 	case $ac_sys_system in
   6043 	    SCO_SV*) OPT="$OPT -m486 -DSCO5"
   6044 	    ;;
   6045         esac
   6046 	;;
   6047 
   6048     *)
   6049 	OPT="-O"
   6050 	;;
   6051     esac
   6052 fi
   6053 
   6054 
   6055 
   6056 # The -arch flags for universal builds on OSX
   6057 UNIVERSAL_ARCH_FLAGS=
   6058 
   6059 
   6060 # tweak BASECFLAGS based on compiler and platform
   6061 case $GCC in
   6062 yes)
   6063     # Python violates C99 rules, by casting between incompatible
   6064     # pointer types. GCC may generate bad code as a result of that,
   6065     # so use -fno-strict-aliasing if supported.
   6066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
   6067 $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
   6068      ac_save_cc="$CC"
   6069      CC="$CC -fno-strict-aliasing"
   6070      if ${ac_cv_no_strict_aliasing_ok+:} false; then :
   6071   $as_echo_n "(cached) " >&6
   6072 else
   6073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6074 /* end confdefs.h.  */
   6075 
   6076 int
   6077 main ()
   6078 {
   6079 
   6080   ;
   6081   return 0;
   6082 }
   6083 _ACEOF
   6084 if ac_fn_c_try_compile "$LINENO"; then :
   6085   ac_cv_no_strict_aliasing_ok=yes
   6086 else
   6087   ac_cv_no_strict_aliasing_ok=no
   6088 fi
   6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6090 fi
   6091 
   6092      CC="$ac_save_cc"
   6093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
   6094 $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
   6095     if test $ac_cv_no_strict_aliasing_ok = yes
   6096     then
   6097       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
   6098     fi
   6099 
   6100     # if using gcc on alpha, use -mieee to get (near) full IEEE 754
   6101     # support.  Without this, treatment of subnormals doesn't follow
   6102     # the standard.
   6103     case $host in
   6104          alpha*)
   6105                 BASECFLAGS="$BASECFLAGS -mieee"
   6106                 ;;
   6107     esac
   6108 
   6109     case $ac_sys_system in
   6110 	SCO_SV*)
   6111 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
   6112 	    ;;
   6113     # is there any other compiler on Darwin besides gcc?
   6114     Darwin*)
   6115         # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
   6116         # used to be here, but non-Apple gcc doesn't accept them.
   6117         if test "${CC}" = gcc
   6118         then
   6119             { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
   6120 $as_echo_n "checking which compiler should be used... " >&6; }
   6121             case "${UNIVERSALSDK}" in
   6122             */MacOSX10.4u.sdk)
   6123                 # Build using 10.4 SDK, force usage of gcc when the
   6124                 # compiler is gcc, otherwise the user will get very
   6125                 # confusing error messages when building on OSX 10.6
   6126                 CC=gcc-4.0
   6127                 CPP=cpp-4.0
   6128                 ;;
   6129             esac
   6130             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   6131 $as_echo "$CC" >&6; }
   6132         fi
   6133 
   6134         if test "${enable_universalsdk}"
   6135         then
   6136             case "$UNIVERSAL_ARCHS" in
   6137             32-bit)
   6138                UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
   6139                LIPO_32BIT_FLAGS=""
   6140                ARCH_RUN_32BIT=""
   6141                ;;
   6142             64-bit)
   6143                UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
   6144                LIPO_32BIT_FLAGS=""
   6145                ARCH_RUN_32BIT=""
   6146                ;;
   6147             all)
   6148                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
   6149                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
   6150                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
   6151                ;;
   6152             intel)
   6153                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
   6154                LIPO_32BIT_FLAGS="-extract i386"
   6155                ARCH_RUN_32BIT="/usr/bin/arch -i386"
   6156                ;;
   6157             intel-32)
   6158                UNIVERSAL_ARCH_FLAGS="-arch i386"
   6159                LIPO_32BIT_FLAGS=""
   6160                ARCH_RUN_32BIT=""
   6161                ;;
   6162             intel-64)
   6163                UNIVERSAL_ARCH_FLAGS="-arch x86_64"
   6164                LIPO_32BIT_FLAGS=""
   6165                ARCH_RUN_32BIT=""
   6166                ;;
   6167             3-way)
   6168                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
   6169                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
   6170                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
   6171                ;;
   6172             *)
   6173                as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
   6174                ;;
   6175             esac
   6176 
   6177             if test "${UNIVERSALSDK}" != "/"
   6178             then
   6179                 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
   6180                 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
   6181                 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
   6182             else
   6183                 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
   6184                 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
   6185             fi
   6186         fi
   6187 
   6188         # Calculate an appropriate deployment target for this build:
   6189         # The deployment target value is used explicitly to enable certain
   6190         # features are enabled (such as builtin libedit support for readline)
   6191         # through the use of Apple's Availability Macros and is used as a
   6192         # component of the string returned by distutils.get_platform().
   6193         #
   6194         # Use the value from:
   6195         # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
   6196         # 2. the operating system version of the build machine if >= 10.6
   6197         # 3. If running on OS X 10.3 through 10.5, use the legacy tests
   6198         #       below to pick either 10.3, 10.4, or 10.5 as the target.
   6199         # 4. If we are running on OS X 10.2 or earlier, good luck!
   6200 
   6201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
   6202 $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
   6203         cur_target_major=`sw_vers -productVersion | \
   6204                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
   6205         cur_target_minor=`sw_vers -productVersion | \
   6206                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
   6207         cur_target="${cur_target_major}.${cur_target_minor}"
   6208         if test ${cur_target_major} -eq 10 && \
   6209            test ${cur_target_minor} -ge 3 && \
   6210            test ${cur_target_minor} -le 5
   6211         then
   6212             # OS X 10.3 through 10.5
   6213             cur_target=10.3
   6214             if test ${enable_universalsdk}
   6215             then
   6216                 case "$UNIVERSAL_ARCHS" in
   6217                 all|3-way|intel|64-bit)
   6218                     # These configurations were first supported in 10.5
   6219                     cur_target='10.5'
   6220                     ;;
   6221                 esac
   6222             else
   6223                 if test `/usr/bin/arch` = "i386"
   6224                 then
   6225                     # 10.4 was the first release to support Intel archs
   6226                     cur_target="10.4"
   6227                 fi
   6228             fi
   6229         fi
   6230         CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
   6231 
   6232         # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
   6233         # environment with a value that is the same as what we'll use
   6234         # in the Makefile to ensure that we'll get the same compiler
   6235         # environment during configure and build time.
   6236         MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
   6237         export MACOSX_DEPLOYMENT_TARGET
   6238         EXPORT_MACOSX_DEPLOYMENT_TARGET=''
   6239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
   6240 $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
   6241 
   6242         # end of Darwin* tests
   6243         ;;
   6244 	OSF*)
   6245 	    BASECFLAGS="$BASECFLAGS -mieee"
   6246 	    ;;
   6247     esac
   6248     ;;
   6249 
   6250 *)
   6251     case $ac_sys_system in
   6252     OpenUNIX*|UnixWare*)
   6253 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
   6254 	;;
   6255     OSF*)
   6256 	BASECFLAGS="$BASECFLAGS -ieee -std"
   6257     	;;
   6258     SCO_SV*)
   6259 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
   6260 	;;
   6261     esac
   6262     ;;
   6263 esac
   6264 
   6265 # ICC needs -fp-model strict or floats behave badly
   6266 case "$CC" in
   6267 *icc*)
   6268     BASECFLAGS="$BASECFLAGS -fp-model strict"
   6269     ;;
   6270 esac
   6271 
   6272 if test "$Py_DEBUG" = 'true'; then
   6273   :
   6274 else
   6275   OPT="-DNDEBUG $OPT"
   6276 fi
   6277 
   6278 if test "$ac_arch_flags"
   6279 then
   6280 	BASECFLAGS="$BASECFLAGS $ac_arch_flags"
   6281 fi
   6282 
   6283 # disable check for icc since it seems to pass, but generates a warning
   6284 if test "$CC" = icc
   6285 then
   6286   ac_cv_opt_olimit_ok=no
   6287 fi
   6288 
   6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
   6290 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
   6291 if ${ac_cv_opt_olimit_ok+:} false; then :
   6292   $as_echo_n "(cached) " >&6
   6293 else
   6294   ac_save_cc="$CC"
   6295 CC="$CC -OPT:Olimit=0"
   6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6297 /* end confdefs.h.  */
   6298 
   6299 int
   6300 main ()
   6301 {
   6302 
   6303   ;
   6304   return 0;
   6305 }
   6306 _ACEOF
   6307 if ac_fn_c_try_compile "$LINENO"; then :
   6308   ac_cv_opt_olimit_ok=yes
   6309 else
   6310   ac_cv_opt_olimit_ok=no
   6311 
   6312 fi
   6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6314 CC="$ac_save_cc"
   6315 fi
   6316 
   6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
   6318 $as_echo "$ac_cv_opt_olimit_ok" >&6; }
   6319 if test $ac_cv_opt_olimit_ok = yes; then
   6320     case $ac_sys_system in
   6321 	# XXX is this branch needed? On MacOSX 10.2.2 the result of the
   6322 	# olimit_ok test is "no".  Is it "yes" in some other Darwin-esque
   6323 	# environment?
   6324         Darwin*)
   6325 	    ;;
   6326         # XXX thankfully this useless troublemaker of a flag has been
   6327         # eradicated in the 3.x line.  For now, make sure it isn't picked
   6328         # up by any of our other platforms that use CC.
   6329         AIX*|SunOS*|HP-UX*|IRIX*)
   6330             ;;
   6331         *)
   6332 	    BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
   6333 	    ;;
   6334     esac
   6335 else
   6336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
   6337 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
   6338   if ${ac_cv_olimit_ok+:} false; then :
   6339   $as_echo_n "(cached) " >&6
   6340 else
   6341   ac_save_cc="$CC"
   6342   CC="$CC -Olimit 1500"
   6343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6344 /* end confdefs.h.  */
   6345 
   6346 int
   6347 main ()
   6348 {
   6349 
   6350   ;
   6351   return 0;
   6352 }
   6353 _ACEOF
   6354 if ac_fn_c_try_compile "$LINENO"; then :
   6355   ac_cv_olimit_ok=yes
   6356 else
   6357   ac_cv_olimit_ok=no
   6358 
   6359 fi
   6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6361   CC="$ac_save_cc"
   6362 fi
   6363 
   6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
   6365 $as_echo "$ac_cv_olimit_ok" >&6; }
   6366   if test $ac_cv_olimit_ok = yes; then
   6367     case $ac_sys_system in
   6368         # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive.
   6369         HP-UX*)
   6370             ;;
   6371         *)
   6372             BASECFLAGS="$BASECFLAGS -Olimit 1500"
   6373             ;;
   6374     esac
   6375   fi
   6376 fi
   6377 
   6378 # Check whether GCC supports PyArg_ParseTuple format
   6379 if test "$GCC" = "yes"
   6380 then
   6381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
   6382 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
   6383   save_CFLAGS=$CFLAGS
   6384   CFLAGS="$CFLAGS -Werror -Wformat"
   6385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6386 /* end confdefs.h.  */
   6387 
   6388     void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
   6389 int
   6390 main ()
   6391 {
   6392 
   6393   ;
   6394   return 0;
   6395 }
   6396 
   6397 _ACEOF
   6398 if ac_fn_c_try_compile "$LINENO"; then :
   6399 
   6400 
   6401 $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h
   6402 
   6403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6404 $as_echo "yes" >&6; }
   6405 
   6406 else
   6407 
   6408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6409 $as_echo "no" >&6; }
   6410 
   6411 fi
   6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6413   CFLAGS=$save_CFLAGS
   6414 fi
   6415 
   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 managed 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 
   6456 # Enable LTO flags
   6457 
   6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
   6459 $as_echo_n "checking for --with-lto... " >&6; }
   6460 
   6461 # Check whether --with-lto was given.
   6462 if test "${with_lto+set}" = set; then :
   6463   withval=$with_lto;
   6464 if test "$withval" != no
   6465 then
   6466   Py_LTO='true'
   6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6468 $as_echo "yes" >&6; };
   6469 else
   6470   Py_LTO='false'
   6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6472 $as_echo "no" >&6; };
   6473 fi
   6474 else
   6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6476 $as_echo "no" >&6; }
   6477 fi
   6478 
   6479 if test "$Py_LTO" = 'true' ; then
   6480   case $CC in
   6481     *clang*)
   6482       # Any changes made here should be reflected in the GCC+Darwin case below
   6483       LTOFLAGS="-flto"
   6484       ;;
   6485     *gcc*)
   6486       case $ac_sys_system in
   6487         Darwin*)
   6488           LTOFLAGS="-flto"
   6489           ;;
   6490         *)
   6491           LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
   6492           ;;
   6493       esac
   6494       ;;
   6495   esac
   6496 
   6497   if test "$ac_cv_prog_cc_g" = "yes"
   6498   then
   6499       # bpo-30345: Add -g to LDFLAGS when compiling with LTO
   6500       # to get debug symbols.
   6501       LTOFLAGS="$LTOFLAGS -g"
   6502   fi
   6503 fi
   6504 
   6505 
   6506 # Enable PGO flags.
   6507 
   6508 
   6509 
   6510 
   6511 
   6512 # Make this work on systems where llvm tools are not installed with their
   6513 # normal names in the default $PATH (ie: Ubuntu).  They exist under the
   6514 # non-suffixed name in their versioned llvm directory.
   6515 llvm_bin_dir=''
   6516 llvm_path="${PATH}"
   6517 if test "${CC}" = "clang"
   6518 then
   6519   clang_bin=`which clang`
   6520   # Some systems install clang elsewhere as a symlink to the real path
   6521   # which is where the related llvm tools are located.
   6522   if test -L "${clang_bin}"
   6523   then
   6524     clang_dir=`dirname "${clang_bin}"`
   6525     clang_bin=`readlink "${clang_bin}"`
   6526     llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
   6527     llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
   6528   fi
   6529 fi
   6530 
   6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   6532 $as_echo_n "checking target system type... " >&6; }
   6533 if ${ac_cv_target+:} false; then :
   6534   $as_echo_n "(cached) " >&6
   6535 else
   6536   if test "x$target_alias" = x; then
   6537   ac_cv_target=$ac_cv_host
   6538 else
   6539   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   6540     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   6541 fi
   6542 
   6543 fi
   6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   6545 $as_echo "$ac_cv_target" >&6; }
   6546 case $ac_cv_target in
   6547 *-*-*) ;;
   6548 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   6549 esac
   6550 target=$ac_cv_target
   6551 ac_save_IFS=$IFS; IFS='-'
   6552 set x $ac_cv_target
   6553 shift
   6554 target_cpu=$1
   6555 target_vendor=$2
   6556 shift; shift
   6557 # Remember, the first character of IFS is used to create $*,
   6558 # except with old shells:
   6559 target_os=$*
   6560 IFS=$ac_save_IFS
   6561 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   6562 
   6563 
   6564 # The aliases save the names the user supplied, while $host etc.
   6565 # will get canonicalized.
   6566 test -n "$target_alias" &&
   6567   test "$program_prefix$program_suffix$program_transform_name" = \
   6568     NONENONEs,x,x, &&
   6569   program_prefix=${target_alias}-
   6570 # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args.
   6571 set dummy $target_alias-llvm-profdata; ac_word=$2
   6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6573 $as_echo_n "checking for $ac_word... " >&6; }
   6574 if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
   6575   $as_echo_n "(cached) " >&6
   6576 else
   6577   case $LLVM_PROFDATA in
   6578   [\\/]* | ?:[\\/]*)
   6579   ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
   6580   ;;
   6581   *)
   6582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6583 for as_dir in ${llvm_path}
   6584 do
   6585   IFS=$as_save_IFS
   6586   test -z "$as_dir" && as_dir=.
   6587     for ac_exec_ext in '' $ac_executable_extensions; do
   6588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6589     ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
   6590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6591     break 2
   6592   fi
   6593 done
   6594   done
   6595 IFS=$as_save_IFS
   6596 
   6597   ;;
   6598 esac
   6599 fi
   6600 LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
   6601 if test -n "$LLVM_PROFDATA"; then
   6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
   6603 $as_echo "$LLVM_PROFDATA" >&6; }
   6604 else
   6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6606 $as_echo "no" >&6; }
   6607 fi
   6608 
   6609 
   6610 if test -z "$ac_cv_path_LLVM_PROFDATA"; then
   6611   if test "$build" = "$target"; then
   6612     ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
   6613     # Extract the first word of "llvm-profdata", so it can be a program name with args.
   6614 set dummy llvm-profdata; ac_word=$2
   6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6616 $as_echo_n "checking for $ac_word... " >&6; }
   6617 if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
   6618   $as_echo_n "(cached) " >&6
   6619 else
   6620   case $ac_pt_LLVM_PROFDATA in
   6621   [\\/]* | ?:[\\/]*)
   6622   ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
   6623   ;;
   6624   *)
   6625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6626 for as_dir in ${llvm_path}
   6627 do
   6628   IFS=$as_save_IFS
   6629   test -z "$as_dir" && as_dir=.
   6630     for ac_exec_ext in '' $ac_executable_extensions; do
   6631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6632     ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
   6633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6634     break 2
   6635   fi
   6636 done
   6637   done
   6638 IFS=$as_save_IFS
   6639 
   6640   test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''"
   6641   ;;
   6642 esac
   6643 fi
   6644 ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
   6645 if test -n "$ac_pt_LLVM_PROFDATA"; then
   6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
   6647 $as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
   6648 else
   6649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6650 $as_echo "no" >&6; }
   6651 fi
   6652 
   6653     LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
   6654   else
   6655     LLVM_PROFDATA="''"
   6656   fi
   6657 else
   6658   LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
   6659 fi
   6660 
   6661 
   6662 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
   6663 then
   6664   LLVM_PROF_FOUND="found"
   6665 else
   6666   LLVM_PROF_FOUND="not-found"
   6667 fi
   6668 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
   6669 then
   6670   found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
   6671   if test -n "${found_llvm_profdata}"
   6672   then
   6673     # llvm-profdata isn't directly in $PATH in some cases.
   6674     # https://apple.stackexchange.com/questions/197053/
   6675     LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
   6676     LLVM_PROF_FOUND=found
   6677     { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
   6678 $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
   6679   fi
   6680 fi
   6681 LLVM_PROF_ERR=no
   6682 case $CC in
   6683   *clang*)
   6684     # Any changes made here should be reflected in the GCC+Darwin case below
   6685     PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
   6686     PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
   6687     LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
   6688     LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
   6689     if test $LLVM_PROF_FOUND = not-found
   6690     then
   6691       LLVM_PROF_ERR=yes
   6692       if test "${REQUIRE_PGO}" = "yes"
   6693       then
   6694         as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
   6695       fi
   6696     fi
   6697     ;;
   6698   *gcc*)
   6699     case $ac_sys_system in
   6700       Darwin*)
   6701         PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
   6702         PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
   6703         LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
   6704         LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
   6705         if test "${LLVM_PROF_FOUND}" = "not-found"
   6706         then
   6707           LLVM_PROF_ERR=yes
   6708           if test "${REQUIRE_PGO}" = "yes"
   6709 	  then
   6710 	    as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
   6711 	  fi
   6712         fi
   6713         ;;
   6714       *)
   6715         PGO_PROF_GEN_FLAG="-fprofile-generate"
   6716         PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
   6717         LLVM_PROF_MERGER="true"
   6718         LLVM_PROF_FILE=""
   6719         ;;
   6720     esac
   6721     ;;
   6722   *icc*)
   6723     PGO_PROF_GEN_FLAG="-prof-gen"
   6724     PGO_PROF_USE_FLAG="-prof-use"
   6725     LLVM_PROF_MERGER="true"
   6726     LLVM_PROF_FILE=""
   6727     ;;
   6728 esac
   6729 
   6730 
   6731 # On some compilers, pthreads are available without further options
   6732 # (e.g. MacOS X). On some of these systems, the compiler will not
   6733 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
   6734 # So we have to see first whether pthreads are available without
   6735 # options before we can check whether -Kpthread improves anything.
   6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
   6737 $as_echo_n "checking whether pthreads are available without options... " >&6; }
   6738 if ${ac_cv_pthread_is_default+:} false; then :
   6739   $as_echo_n "(cached) " >&6
   6740 else
   6741   if test "$cross_compiling" = yes; then :
   6742   ac_cv_pthread_is_default=no
   6743 else
   6744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6745 /* end confdefs.h.  */
   6746 
   6747 #include <stdio.h>
   6748 #include <pthread.h>
   6749 
   6750 void* routine(void* p){return NULL;}
   6751 
   6752 int main(){
   6753   pthread_t p;
   6754   if(pthread_create(&p,NULL,routine,NULL)!=0)
   6755     return 1;
   6756   (void)pthread_detach(p);
   6757   return 0;
   6758 }
   6759 
   6760 _ACEOF
   6761 if ac_fn_c_try_run "$LINENO"; then :
   6762 
   6763   ac_cv_pthread_is_default=yes
   6764   ac_cv_kthread=no
   6765   ac_cv_pthread=no
   6766 
   6767 else
   6768   ac_cv_pthread_is_default=no
   6769 fi
   6770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6771   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6772 fi
   6773 
   6774 
   6775 fi
   6776 
   6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
   6778 $as_echo "$ac_cv_pthread_is_default" >&6; }
   6779 
   6780 
   6781 if test $ac_cv_pthread_is_default = yes
   6782 then
   6783   ac_cv_kpthread=no
   6784 else
   6785 # -Kpthread, if available, provides the right #defines
   6786 # and linker options to make pthread_create available
   6787 # Some compilers won't report that they do not support -Kpthread,
   6788 # so we need to run a program to see whether it really made the
   6789 # function available.
   6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
   6791 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
   6792 if ${ac_cv_kpthread+:} false; then :
   6793   $as_echo_n "(cached) " >&6
   6794 else
   6795   ac_save_cc="$CC"
   6796 CC="$CC -Kpthread"
   6797 if test "$cross_compiling" = yes; then :
   6798   ac_cv_kpthread=no
   6799 else
   6800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6801 /* end confdefs.h.  */
   6802 
   6803 #include <stdio.h>
   6804 #include <pthread.h>
   6805 
   6806 void* routine(void* p){return NULL;}
   6807 
   6808 int main(){
   6809   pthread_t p;
   6810   if(pthread_create(&p,NULL,routine,NULL)!=0)
   6811     return 1;
   6812   (void)pthread_detach(p);
   6813   return 0;
   6814 }
   6815 
   6816 _ACEOF
   6817 if ac_fn_c_try_run "$LINENO"; then :
   6818   ac_cv_kpthread=yes
   6819 else
   6820   ac_cv_kpthread=no
   6821 fi
   6822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6823   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6824 fi
   6825 
   6826 CC="$ac_save_cc"
   6827 fi
   6828 
   6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
   6830 $as_echo "$ac_cv_kpthread" >&6; }
   6831 fi
   6832 
   6833 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
   6834 then
   6835 # -Kthread, if available, provides the right #defines
   6836 # and linker options to make pthread_create available
   6837 # Some compilers won't report that they do not support -Kthread,
   6838 # so we need to run a program to see whether it really made the
   6839 # function available.
   6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
   6841 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
   6842 if ${ac_cv_kthread+:} false; then :
   6843   $as_echo_n "(cached) " >&6
   6844 else
   6845   ac_save_cc="$CC"
   6846 CC="$CC -Kthread"
   6847 if test "$cross_compiling" = yes; then :
   6848   ac_cv_kthread=no
   6849 else
   6850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6851 /* end confdefs.h.  */
   6852 
   6853 #include <stdio.h>
   6854 #include <pthread.h>
   6855 
   6856 void* routine(void* p){return NULL;}
   6857 
   6858 int main(){
   6859   pthread_t p;
   6860   if(pthread_create(&p,NULL,routine,NULL)!=0)
   6861     return 1;
   6862   (void)pthread_detach(p);
   6863   return 0;
   6864 }
   6865 
   6866 _ACEOF
   6867 if ac_fn_c_try_run "$LINENO"; then :
   6868   ac_cv_kthread=yes
   6869 else
   6870   ac_cv_kthread=no
   6871 fi
   6872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6873   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6874 fi
   6875 
   6876 CC="$ac_save_cc"
   6877 fi
   6878 
   6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
   6880 $as_echo "$ac_cv_kthread" >&6; }
   6881 fi
   6882 
   6883 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
   6884 then
   6885 # -pthread, if available, provides the right #defines
   6886 # and linker options to make pthread_create available
   6887 # Some compilers won't report that they do not support -pthread,
   6888 # so we need to run a program to see whether it really made the
   6889 # function available.
   6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
   6891 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
   6892 if ${ac_cv_pthread+:} false; then :
   6893   $as_echo_n "(cached) " >&6
   6894 else
   6895   ac_save_cc="$CC"
   6896 CC="$CC -pthread"
   6897 if test "$cross_compiling" = yes; then :
   6898   ac_cv_pthread=no
   6899 else
   6900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6901 /* end confdefs.h.  */
   6902 
   6903 #include <stdio.h>
   6904 #include <pthread.h>
   6905 
   6906 void* routine(void* p){return NULL;}
   6907 
   6908 int main(){
   6909   pthread_t p;
   6910   if(pthread_create(&p,NULL,routine,NULL)!=0)
   6911     return 1;
   6912   (void)pthread_detach(p);
   6913   return 0;
   6914 }
   6915 
   6916 _ACEOF
   6917 if ac_fn_c_try_run "$LINENO"; then :
   6918   ac_cv_pthread=yes
   6919 else
   6920   ac_cv_pthread=no
   6921 fi
   6922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6923   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6924 fi
   6925 
   6926 CC="$ac_save_cc"
   6927 fi
   6928 
   6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
   6930 $as_echo "$ac_cv_pthread" >&6; }
   6931 fi
   6932 
   6933 # If we have set a CC compiler flag for thread support then
   6934 # check if it works for CXX, too.
   6935 ac_cv_cxx_thread=no
   6936 if test ! -z "$CXX"
   6937 then
   6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
   6939 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
   6940 ac_save_cxx="$CXX"
   6941 
   6942 if test "$ac_cv_kpthread" = "yes"
   6943 then
   6944   CXX="$CXX -Kpthread"
   6945   ac_cv_cxx_thread=yes
   6946 elif test "$ac_cv_kthread" = "yes"
   6947 then
   6948   CXX="$CXX -Kthread"
   6949   ac_cv_cxx_thread=yes
   6950 elif test "$ac_cv_pthread" = "yes"
   6951 then
   6952   CXX="$CXX -pthread"
   6953   ac_cv_cxx_thread=yes
   6954 fi
   6955 
   6956 if test $ac_cv_cxx_thread = yes
   6957 then
   6958   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
   6959   $CXX -c conftest.$ac_ext 2>&5
   6960   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
   6961      && test -s conftest$ac_exeext && ./conftest$ac_exeext
   6962   then
   6963     ac_cv_cxx_thread=yes
   6964   else
   6965     ac_cv_cxx_thread=no
   6966   fi
   6967   rm -fr conftest*
   6968 fi
   6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
   6970 $as_echo "$ac_cv_cxx_thread" >&6; }
   6971 fi
   6972 CXX="$ac_save_cxx"
   6973 
   6974 
   6975 # checks for header files
   6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   6977 $as_echo_n "checking for ANSI C header files... " >&6; }
   6978 if ${ac_cv_header_stdc+:} false; then :
   6979   $as_echo_n "(cached) " >&6
   6980 else
   6981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6982 /* end confdefs.h.  */
   6983 #include <stdlib.h>
   6984 #include <stdarg.h>
   6985 #include <string.h>
   6986 #include <float.h>
   6987 
   6988 int
   6989 main ()
   6990 {
   6991 
   6992   ;
   6993   return 0;
   6994 }
   6995 _ACEOF
   6996 if ac_fn_c_try_compile "$LINENO"; then :
   6997   ac_cv_header_stdc=yes
   6998 else
   6999   ac_cv_header_stdc=no
   7000 fi
   7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7002 
   7003 if test $ac_cv_header_stdc = yes; then
   7004   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   7005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7006 /* end confdefs.h.  */
   7007 #include <string.h>
   7008 
   7009 _ACEOF
   7010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7011   $EGREP "memchr" >/dev/null 2>&1; then :
   7012 
   7013 else
   7014   ac_cv_header_stdc=no
   7015 fi
   7016 rm -f conftest*
   7017 
   7018 fi
   7019 
   7020 if test $ac_cv_header_stdc = yes; then
   7021   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   7022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7023 /* end confdefs.h.  */
   7024 #include <stdlib.h>
   7025 
   7026 _ACEOF
   7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7028   $EGREP "free" >/dev/null 2>&1; then :
   7029 
   7030 else
   7031   ac_cv_header_stdc=no
   7032 fi
   7033 rm -f conftest*
   7034 
   7035 fi
   7036 
   7037 if test $ac_cv_header_stdc = yes; then
   7038   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   7039   if test "$cross_compiling" = yes; then :
   7040   :
   7041 else
   7042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7043 /* end confdefs.h.  */
   7044 #include <ctype.h>
   7045 #include <stdlib.h>
   7046 #if ((' ' & 0x0FF) == 0x020)
   7047 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   7048 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   7049 #else
   7050 # define ISLOWER(c) \
   7051 		   (('a' <= (c) && (c) <= 'i') \
   7052 		     || ('j' <= (c) && (c) <= 'r') \
   7053 		     || ('s' <= (c) && (c) <= 'z'))
   7054 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   7055 #endif
   7056 
   7057 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   7058 int
   7059 main ()
   7060 {
   7061   int i;
   7062   for (i = 0; i < 256; i++)
   7063     if (XOR (islower (i), ISLOWER (i))
   7064 	|| toupper (i) != TOUPPER (i))
   7065       return 2;
   7066   return 0;
   7067 }
   7068 _ACEOF
   7069 if ac_fn_c_try_run "$LINENO"; then :
   7070 
   7071 else
   7072   ac_cv_header_stdc=no
   7073 fi
   7074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7075   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7076 fi
   7077 
   7078 fi
   7079 fi
   7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   7081 $as_echo "$ac_cv_header_stdc" >&6; }
   7082 if test $ac_cv_header_stdc = yes; then
   7083 
   7084 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   7085 
   7086 fi
   7087 
   7088 for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
   7089 fcntl.h grp.h \
   7090 ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \
   7091 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
   7092 unistd.h utime.h \
   7093 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
   7094 sys/lock.h sys/mkdev.h sys/modem.h \
   7095 sys/param.h sys/poll.h sys/random.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
   7096 sys/termio.h sys/time.h \
   7097 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
   7098 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
   7099 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h sys/sysmacros.h
   7100 do :
   7101   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7102 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   7103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   7104   cat >>confdefs.h <<_ACEOF
   7105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7106 _ACEOF
   7107 
   7108 fi
   7109 
   7110 done
   7111 
   7112 ac_header_dirent=no
   7113 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   7114   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
   7116 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
   7117 if eval \${$as_ac_Header+:} false; then :
   7118   $as_echo_n "(cached) " >&6
   7119 else
   7120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7121 /* end confdefs.h.  */
   7122 #include <sys/types.h>
   7123 #include <$ac_hdr>
   7124 
   7125 int
   7126 main ()
   7127 {
   7128 if ((DIR *) 0)
   7129 return 0;
   7130   ;
   7131   return 0;
   7132 }
   7133 _ACEOF
   7134 if ac_fn_c_try_compile "$LINENO"; then :
   7135   eval "$as_ac_Header=yes"
   7136 else
   7137   eval "$as_ac_Header=no"
   7138 fi
   7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7140 fi
   7141 eval ac_res=\$$as_ac_Header
   7142 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7143 $as_echo "$ac_res" >&6; }
   7144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   7145   cat >>confdefs.h <<_ACEOF
   7146 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   7147 _ACEOF
   7148 
   7149 ac_header_dirent=$ac_hdr; break
   7150 fi
   7151 
   7152 done
   7153 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   7154 if test $ac_header_dirent = dirent.h; then
   7155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   7156 $as_echo_n "checking for library containing opendir... " >&6; }
   7157 if ${ac_cv_search_opendir+:} false; then :
   7158   $as_echo_n "(cached) " >&6
   7159 else
   7160   ac_func_search_save_LIBS=$LIBS
   7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7162 /* end confdefs.h.  */
   7163 
   7164 /* Override any GCC internal prototype to avoid an error.
   7165    Use char because int might match the return type of a GCC
   7166    builtin and then its argument prototype would still apply.  */
   7167 #ifdef __cplusplus
   7168 extern "C"
   7169 #endif
   7170 char opendir ();
   7171 int
   7172 main ()
   7173 {
   7174 return opendir ();
   7175   ;
   7176   return 0;
   7177 }
   7178 _ACEOF
   7179 for ac_lib in '' dir; do
   7180   if test -z "$ac_lib"; then
   7181     ac_res="none required"
   7182   else
   7183     ac_res=-l$ac_lib
   7184     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7185   fi
   7186   if ac_fn_c_try_link "$LINENO"; then :
   7187   ac_cv_search_opendir=$ac_res
   7188 fi
   7189 rm -f core conftest.err conftest.$ac_objext \
   7190     conftest$ac_exeext
   7191   if ${ac_cv_search_opendir+:} false; then :
   7192   break
   7193 fi
   7194 done
   7195 if ${ac_cv_search_opendir+:} false; then :
   7196 
   7197 else
   7198   ac_cv_search_opendir=no
   7199 fi
   7200 rm conftest.$ac_ext
   7201 LIBS=$ac_func_search_save_LIBS
   7202 fi
   7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   7204 $as_echo "$ac_cv_search_opendir" >&6; }
   7205 ac_res=$ac_cv_search_opendir
   7206 if test "$ac_res" != no; then :
   7207   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7208 
   7209 fi
   7210 
   7211 else
   7212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
   7213 $as_echo_n "checking for library containing opendir... " >&6; }
   7214 if ${ac_cv_search_opendir+:} false; then :
   7215   $as_echo_n "(cached) " >&6
   7216 else
   7217   ac_func_search_save_LIBS=$LIBS
   7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7219 /* end confdefs.h.  */
   7220 
   7221 /* Override any GCC internal prototype to avoid an error.
   7222    Use char because int might match the return type of a GCC
   7223    builtin and then its argument prototype would still apply.  */
   7224 #ifdef __cplusplus
   7225 extern "C"
   7226 #endif
   7227 char opendir ();
   7228 int
   7229 main ()
   7230 {
   7231 return opendir ();
   7232   ;
   7233   return 0;
   7234 }
   7235 _ACEOF
   7236 for ac_lib in '' x; do
   7237   if test -z "$ac_lib"; then
   7238     ac_res="none required"
   7239   else
   7240     ac_res=-l$ac_lib
   7241     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7242   fi
   7243   if ac_fn_c_try_link "$LINENO"; then :
   7244   ac_cv_search_opendir=$ac_res
   7245 fi
   7246 rm -f core conftest.err conftest.$ac_objext \
   7247     conftest$ac_exeext
   7248   if ${ac_cv_search_opendir+:} false; then :
   7249   break
   7250 fi
   7251 done
   7252 if ${ac_cv_search_opendir+:} false; then :
   7253 
   7254 else
   7255   ac_cv_search_opendir=no
   7256 fi
   7257 rm conftest.$ac_ext
   7258 LIBS=$ac_func_search_save_LIBS
   7259 fi
   7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
   7261 $as_echo "$ac_cv_search_opendir" >&6; }
   7262 ac_res=$ac_cv_search_opendir
   7263 if test "$ac_res" != no; then :
   7264   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7265 
   7266 fi
   7267 
   7268 fi
   7269 
   7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
   7271 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
   7272 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
   7273   $as_echo_n "(cached) " >&6
   7274 else
   7275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7276 /* end confdefs.h.  */
   7277 #include <sys/types.h>
   7278 int
   7279 main ()
   7280 {
   7281 return makedev(0, 0);
   7282   ;
   7283   return 0;
   7284 }
   7285 _ACEOF
   7286 if ac_fn_c_try_link "$LINENO"; then :
   7287   ac_cv_header_sys_types_h_makedev=yes
   7288 else
   7289   ac_cv_header_sys_types_h_makedev=no
   7290 fi
   7291 rm -f core conftest.err conftest.$ac_objext \
   7292     conftest$ac_exeext conftest.$ac_ext
   7293 
   7294 fi
   7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
   7296 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
   7297 
   7298 if test $ac_cv_header_sys_types_h_makedev = no; then
   7299 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
   7300 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
   7301 
   7302 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
   7303 
   7304 fi
   7305 
   7306 
   7307 
   7308   if test $ac_cv_header_sys_mkdev_h = no; then
   7309     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
   7310 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
   7311 
   7312 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
   7313 
   7314 fi
   7315 
   7316 
   7317   fi
   7318 fi
   7319 
   7320 
   7321 # On Linux, netlink.h requires asm/types.h
   7322 for ac_header in linux/netlink.h
   7323 do :
   7324   ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
   7325 #ifdef HAVE_ASM_TYPES_H
   7326 #include <asm/types.h>
   7327 #endif
   7328 #ifdef HAVE_SYS_SOCKET_H
   7329 #include <sys/socket.h>
   7330 #endif
   7331 
   7332 "
   7333 if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
   7334   cat >>confdefs.h <<_ACEOF
   7335 #define HAVE_LINUX_NETLINK_H 1
   7336 _ACEOF
   7337 
   7338 fi
   7339 
   7340 done
   7341 
   7342 
   7343 # checks for typedefs
   7344 was_it_defined=no
   7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
   7346 $as_echo_n "checking for clock_t in time.h... " >&6; }
   7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7348 /* end confdefs.h.  */
   7349 #include <time.h>
   7350 
   7351 _ACEOF
   7352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7353   $EGREP "clock_t" >/dev/null 2>&1; then :
   7354   was_it_defined=yes
   7355 else
   7356 
   7357 
   7358 $as_echo "#define clock_t long" >>confdefs.h
   7359 
   7360 
   7361 fi
   7362 rm -f conftest*
   7363 
   7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
   7365 $as_echo "$was_it_defined" >&6; }
   7366 
   7367 # Check whether using makedev requires defining _OSF_SOURCE
   7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
   7369 $as_echo_n "checking for makedev... " >&6; }
   7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7371 /* end confdefs.h.  */
   7372 
   7373 #if defined(MAJOR_IN_MKDEV)
   7374 #include <sys/mkdev.h>
   7375 #elif defined(MAJOR_IN_SYSMACROS)
   7376 #include <sys/sysmacros.h>
   7377 #else
   7378 #include <sys/types.h>
   7379 #endif
   7380 int
   7381 main ()
   7382 {
   7383  makedev(0, 0)
   7384   ;
   7385   return 0;
   7386 }
   7387 _ACEOF
   7388 if ac_fn_c_try_link "$LINENO"; then :
   7389   ac_cv_has_makedev=yes
   7390 else
   7391   ac_cv_has_makedev=no
   7392 fi
   7393 rm -f core conftest.err conftest.$ac_objext \
   7394     conftest$ac_exeext conftest.$ac_ext
   7395 if test "$ac_cv_has_makedev" = "no"; then
   7396     # we didn't link, try if _OSF_SOURCE will allow us to link
   7397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7398 /* end confdefs.h.  */
   7399 
   7400 #define _OSF_SOURCE 1
   7401 #include <sys/types.h>
   7402 
   7403 int
   7404 main ()
   7405 {
   7406  makedev(0, 0)
   7407   ;
   7408   return 0;
   7409 }
   7410 _ACEOF
   7411 if ac_fn_c_try_link "$LINENO"; then :
   7412   ac_cv_has_makedev=yes
   7413 else
   7414   ac_cv_has_makedev=no
   7415 fi
   7416 rm -f core conftest.err conftest.$ac_objext \
   7417     conftest$ac_exeext conftest.$ac_ext
   7418     if test "$ac_cv_has_makedev" = "yes"; then
   7419 
   7420 $as_echo "#define _OSF_SOURCE 1" >>confdefs.h
   7421 
   7422     fi
   7423 fi
   7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
   7425 $as_echo "$ac_cv_has_makedev" >&6; }
   7426 if test "$ac_cv_has_makedev" = "yes"; then
   7427 
   7428 $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
   7429 
   7430 fi
   7431 
   7432 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
   7433 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
   7434 # defined, but the compiler does not support pragma redefine_extname,
   7435 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
   7436 # structures (such as rlimit64) without declaring them. As a
   7437 # work-around, disable LFS on such configurations
   7438 
   7439 use_lfs=yes
   7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
   7441 $as_echo_n "checking Solaris LFS bug... " >&6; }
   7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7443 /* end confdefs.h.  */
   7444 
   7445 #define _LARGEFILE_SOURCE 1
   7446 #define _FILE_OFFSET_BITS 64
   7447 #include <sys/resource.h>
   7448 
   7449 int
   7450 main ()
   7451 {
   7452 struct rlimit foo;
   7453   ;
   7454   return 0;
   7455 }
   7456 _ACEOF
   7457 if ac_fn_c_try_compile "$LINENO"; then :
   7458   sol_lfs_bug=no
   7459 else
   7460   sol_lfs_bug=yes
   7461 fi
   7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
   7464 $as_echo "$sol_lfs_bug" >&6; }
   7465 if test "$sol_lfs_bug" = "yes"; then
   7466   use_lfs=no
   7467 fi
   7468 
   7469 if test "$use_lfs" = "yes"; then
   7470 # Two defines needed to enable largefile support on various platforms
   7471 # These may affect some typedefs
   7472 case $ac_sys_system/$ac_sys_release in
   7473 AIX*)
   7474 
   7475 $as_echo "#define _LARGE_FILES 1" >>confdefs.h
   7476 
   7477     ;;
   7478 esac
   7479 
   7480 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
   7481 
   7482 
   7483 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
   7484 
   7485 fi
   7486 
   7487 # Add some code to confdefs.h so that the test for off_t works on SCO
   7488 cat >> confdefs.h <<\EOF
   7489 #if defined(SCO_DS)
   7490 #undef _OFF_T
   7491 #endif
   7492 EOF
   7493 
   7494 # Type availability checks
   7495 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
   7496 if test "x$ac_cv_type_mode_t" = xyes; then :
   7497 
   7498 else
   7499 
   7500 cat >>confdefs.h <<_ACEOF
   7501 #define mode_t int
   7502 _ACEOF
   7503 
   7504 fi
   7505 
   7506 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
   7507 if test "x$ac_cv_type_off_t" = xyes; then :
   7508 
   7509 else
   7510 
   7511 cat >>confdefs.h <<_ACEOF
   7512 #define off_t long int
   7513 _ACEOF
   7514 
   7515 fi
   7516 
   7517 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   7518 if test "x$ac_cv_type_pid_t" = xyes; then :
   7519 
   7520 else
   7521 
   7522 cat >>confdefs.h <<_ACEOF
   7523 #define pid_t int
   7524 _ACEOF
   7525 
   7526 fi
   7527 
   7528 
   7529 cat >>confdefs.h <<_ACEOF
   7530 #define RETSIGTYPE void
   7531 _ACEOF
   7532 
   7533 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   7534 if test "x$ac_cv_type_size_t" = xyes; then :
   7535 
   7536 else
   7537 
   7538 cat >>confdefs.h <<_ACEOF
   7539 #define size_t unsigned int
   7540 _ACEOF
   7541 
   7542 fi
   7543 
   7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   7545 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
   7546 if ${ac_cv_type_uid_t+:} false; then :
   7547   $as_echo_n "(cached) " >&6
   7548 else
   7549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7550 /* end confdefs.h.  */
   7551 #include <sys/types.h>
   7552 
   7553 _ACEOF
   7554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7555   $EGREP "uid_t" >/dev/null 2>&1; then :
   7556   ac_cv_type_uid_t=yes
   7557 else
   7558   ac_cv_type_uid_t=no
   7559 fi
   7560 rm -f conftest*
   7561 
   7562 fi
   7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   7564 $as_echo "$ac_cv_type_uid_t" >&6; }
   7565 if test $ac_cv_type_uid_t = no; then
   7566 
   7567 $as_echo "#define uid_t int" >>confdefs.h
   7568 
   7569 
   7570 $as_echo "#define gid_t int" >>confdefs.h
   7571 
   7572 fi
   7573 
   7574 
   7575 # There are two separate checks for each of the exact-width integer types we
   7576 # need.  First we check whether the type is available using the usual
   7577 # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h>
   7578 # and <stdint.h> where available).  We then also use the special type checks of
   7579 # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available
   7580 # directly, #define's uint32_t to be a suitable type.
   7581 
   7582 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
   7583 if test "x$ac_cv_type_uint32_t" = xyes; then :
   7584 
   7585 $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
   7586 
   7587 fi
   7588 
   7589 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
   7590 case $ac_cv_c_uint32_t in #(
   7591   no|yes) ;; #(
   7592   *)
   7593 
   7594 $as_echo "#define _UINT32_T 1" >>confdefs.h
   7595 
   7596 
   7597 cat >>confdefs.h <<_ACEOF
   7598 #define uint32_t $ac_cv_c_uint32_t
   7599 _ACEOF
   7600 ;;
   7601   esac
   7602 
   7603 
   7604 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
   7605 if test "x$ac_cv_type_uint64_t" = xyes; then :
   7606 
   7607 $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h
   7608 
   7609 fi
   7610 
   7611 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
   7612 case $ac_cv_c_uint64_t in #(
   7613   no|yes) ;; #(
   7614   *)
   7615 
   7616 $as_echo "#define _UINT64_T 1" >>confdefs.h
   7617 
   7618 
   7619 cat >>confdefs.h <<_ACEOF
   7620 #define uint64_t $ac_cv_c_uint64_t
   7621 _ACEOF
   7622 ;;
   7623   esac
   7624 
   7625 
   7626 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
   7627 if test "x$ac_cv_type_int32_t" = xyes; then :
   7628 
   7629 $as_echo "#define HAVE_INT32_T 1" >>confdefs.h
   7630 
   7631 fi
   7632 
   7633 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
   7634 case $ac_cv_c_int32_t in #(
   7635   no|yes) ;; #(
   7636   *)
   7637 
   7638 cat >>confdefs.h <<_ACEOF
   7639 #define int32_t $ac_cv_c_int32_t
   7640 _ACEOF
   7641 ;;
   7642 esac
   7643 
   7644 
   7645 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
   7646 if test "x$ac_cv_type_int64_t" = xyes; then :
   7647 
   7648 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
   7649 
   7650 fi
   7651 
   7652 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
   7653 case $ac_cv_c_int64_t in #(
   7654   no|yes) ;; #(
   7655   *)
   7656 
   7657 cat >>confdefs.h <<_ACEOF
   7658 #define int64_t $ac_cv_c_int64_t
   7659 _ACEOF
   7660 ;;
   7661 esac
   7662 
   7663 
   7664 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   7665 if test "x$ac_cv_type_ssize_t" = xyes; then :
   7666 
   7667 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
   7668 
   7669 fi
   7670 
   7671 
   7672 # Sizes of various common basic types
   7673 # ANSI C requires sizeof(char) == 1, so no need to check it
   7674 # The cast to long int works around a bug in the HP C Compiler
   7675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7677 # This bug is HP SR number 8606223364.
   7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   7679 $as_echo_n "checking size of int... " >&6; }
   7680 if ${ac_cv_sizeof_int+:} false; then :
   7681   $as_echo_n "(cached) " >&6
   7682 else
   7683   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   7684 
   7685 else
   7686   if test "$ac_cv_type_int" = yes; then
   7687      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7689 as_fn_error 77 "cannot compute sizeof (int)
   7690 See \`config.log' for more details" "$LINENO" 5; }
   7691    else
   7692      ac_cv_sizeof_int=0
   7693    fi
   7694 fi
   7695 
   7696 fi
   7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   7698 $as_echo "$ac_cv_sizeof_int" >&6; }
   7699 
   7700 
   7701 
   7702 cat >>confdefs.h <<_ACEOF
   7703 #define SIZEOF_INT $ac_cv_sizeof_int
   7704 _ACEOF
   7705 
   7706 
   7707 # The cast to long int works around a bug in the HP C Compiler
   7708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7710 # This bug is HP SR number 8606223364.
   7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   7712 $as_echo_n "checking size of long... " >&6; }
   7713 if ${ac_cv_sizeof_long+:} false; then :
   7714   $as_echo_n "(cached) " >&6
   7715 else
   7716   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   7717 
   7718 else
   7719   if test "$ac_cv_type_long" = yes; then
   7720      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7722 as_fn_error 77 "cannot compute sizeof (long)
   7723 See \`config.log' for more details" "$LINENO" 5; }
   7724    else
   7725      ac_cv_sizeof_long=0
   7726    fi
   7727 fi
   7728 
   7729 fi
   7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   7731 $as_echo "$ac_cv_sizeof_long" >&6; }
   7732 
   7733 
   7734 
   7735 cat >>confdefs.h <<_ACEOF
   7736 #define SIZEOF_LONG $ac_cv_sizeof_long
   7737 _ACEOF
   7738 
   7739 
   7740 # The cast to long int works around a bug in the HP C Compiler
   7741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7743 # This bug is HP SR number 8606223364.
   7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   7745 $as_echo_n "checking size of void *... " >&6; }
   7746 if ${ac_cv_sizeof_void_p+:} false; then :
   7747   $as_echo_n "(cached) " >&6
   7748 else
   7749   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
   7750 
   7751 else
   7752   if test "$ac_cv_type_void_p" = yes; then
   7753      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7755 as_fn_error 77 "cannot compute sizeof (void *)
   7756 See \`config.log' for more details" "$LINENO" 5; }
   7757    else
   7758      ac_cv_sizeof_void_p=0
   7759    fi
   7760 fi
   7761 
   7762 fi
   7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   7764 $as_echo "$ac_cv_sizeof_void_p" >&6; }
   7765 
   7766 
   7767 
   7768 cat >>confdefs.h <<_ACEOF
   7769 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
   7770 _ACEOF
   7771 
   7772 
   7773 # The cast to long int works around a bug in the HP C Compiler
   7774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7776 # This bug is HP SR number 8606223364.
   7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
   7778 $as_echo_n "checking size of short... " >&6; }
   7779 if ${ac_cv_sizeof_short+:} false; then :
   7780   $as_echo_n "(cached) " >&6
   7781 else
   7782   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
   7783 
   7784 else
   7785   if test "$ac_cv_type_short" = yes; then
   7786      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7788 as_fn_error 77 "cannot compute sizeof (short)
   7789 See \`config.log' for more details" "$LINENO" 5; }
   7790    else
   7791      ac_cv_sizeof_short=0
   7792    fi
   7793 fi
   7794 
   7795 fi
   7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
   7797 $as_echo "$ac_cv_sizeof_short" >&6; }
   7798 
   7799 
   7800 
   7801 cat >>confdefs.h <<_ACEOF
   7802 #define SIZEOF_SHORT $ac_cv_sizeof_short
   7803 _ACEOF
   7804 
   7805 
   7806 # The cast to long int works around a bug in the HP C Compiler
   7807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7809 # This bug is HP SR number 8606223364.
   7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
   7811 $as_echo_n "checking size of float... " >&6; }
   7812 if ${ac_cv_sizeof_float+:} false; then :
   7813   $as_echo_n "(cached) " >&6
   7814 else
   7815   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
   7816 
   7817 else
   7818   if test "$ac_cv_type_float" = yes; then
   7819      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7821 as_fn_error 77 "cannot compute sizeof (float)
   7822 See \`config.log' for more details" "$LINENO" 5; }
   7823    else
   7824      ac_cv_sizeof_float=0
   7825    fi
   7826 fi
   7827 
   7828 fi
   7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
   7830 $as_echo "$ac_cv_sizeof_float" >&6; }
   7831 
   7832 
   7833 
   7834 cat >>confdefs.h <<_ACEOF
   7835 #define SIZEOF_FLOAT $ac_cv_sizeof_float
   7836 _ACEOF
   7837 
   7838 
   7839 # The cast to long int works around a bug in the HP C Compiler
   7840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7842 # This bug is HP SR number 8606223364.
   7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
   7844 $as_echo_n "checking size of double... " >&6; }
   7845 if ${ac_cv_sizeof_double+:} false; then :
   7846   $as_echo_n "(cached) " >&6
   7847 else
   7848   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
   7849 
   7850 else
   7851   if test "$ac_cv_type_double" = yes; then
   7852      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7854 as_fn_error 77 "cannot compute sizeof (double)
   7855 See \`config.log' for more details" "$LINENO" 5; }
   7856    else
   7857      ac_cv_sizeof_double=0
   7858    fi
   7859 fi
   7860 
   7861 fi
   7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
   7863 $as_echo "$ac_cv_sizeof_double" >&6; }
   7864 
   7865 
   7866 
   7867 cat >>confdefs.h <<_ACEOF
   7868 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
   7869 _ACEOF
   7870 
   7871 
   7872 # The cast to long int works around a bug in the HP C Compiler
   7873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7875 # This bug is HP SR number 8606223364.
   7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
   7877 $as_echo_n "checking size of fpos_t... " >&6; }
   7878 if ${ac_cv_sizeof_fpos_t+:} false; then :
   7879   $as_echo_n "(cached) " >&6
   7880 else
   7881   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then :
   7882 
   7883 else
   7884   if test "$ac_cv_type_fpos_t" = yes; then
   7885      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7887 as_fn_error 77 "cannot compute sizeof (fpos_t)
   7888 See \`config.log' for more details" "$LINENO" 5; }
   7889    else
   7890      ac_cv_sizeof_fpos_t=0
   7891    fi
   7892 fi
   7893 
   7894 fi
   7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
   7896 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
   7897 
   7898 
   7899 
   7900 cat >>confdefs.h <<_ACEOF
   7901 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
   7902 _ACEOF
   7903 
   7904 
   7905 # The cast to long int works around a bug in the HP C Compiler
   7906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7908 # This bug is HP SR number 8606223364.
   7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
   7910 $as_echo_n "checking size of size_t... " >&6; }
   7911 if ${ac_cv_sizeof_size_t+:} false; then :
   7912   $as_echo_n "(cached) " >&6
   7913 else
   7914   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
   7915 
   7916 else
   7917   if test "$ac_cv_type_size_t" = yes; then
   7918      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7920 as_fn_error 77 "cannot compute sizeof (size_t)
   7921 See \`config.log' for more details" "$LINENO" 5; }
   7922    else
   7923      ac_cv_sizeof_size_t=0
   7924    fi
   7925 fi
   7926 
   7927 fi
   7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
   7929 $as_echo "$ac_cv_sizeof_size_t" >&6; }
   7930 
   7931 
   7932 
   7933 cat >>confdefs.h <<_ACEOF
   7934 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
   7935 _ACEOF
   7936 
   7937 
   7938 # The cast to long int works around a bug in the HP C Compiler
   7939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7941 # This bug is HP SR number 8606223364.
   7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
   7943 $as_echo_n "checking size of pid_t... " >&6; }
   7944 if ${ac_cv_sizeof_pid_t+:} false; then :
   7945   $as_echo_n "(cached) " >&6
   7946 else
   7947   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then :
   7948 
   7949 else
   7950   if test "$ac_cv_type_pid_t" = yes; then
   7951      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7953 as_fn_error 77 "cannot compute sizeof (pid_t)
   7954 See \`config.log' for more details" "$LINENO" 5; }
   7955    else
   7956      ac_cv_sizeof_pid_t=0
   7957    fi
   7958 fi
   7959 
   7960 fi
   7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
   7962 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
   7963 
   7964 
   7965 
   7966 cat >>confdefs.h <<_ACEOF
   7967 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
   7968 _ACEOF
   7969 
   7970 
   7971 
   7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
   7973 $as_echo_n "checking for long long support... " >&6; }
   7974 have_long_long=no
   7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7976 /* end confdefs.h.  */
   7977 
   7978 int
   7979 main ()
   7980 {
   7981 long long x; x = (long long)0;
   7982   ;
   7983   return 0;
   7984 }
   7985 _ACEOF
   7986 if ac_fn_c_try_compile "$LINENO"; then :
   7987 
   7988 
   7989 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
   7990 
   7991   have_long_long=yes
   7992 
   7993 fi
   7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
   7996 $as_echo "$have_long_long" >&6; }
   7997 if test "$have_long_long" = yes ; then
   7998 # The cast to long int works around a bug in the HP C Compiler
   7999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8001 # This bug is HP SR number 8606223364.
   8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   8003 $as_echo_n "checking size of long long... " >&6; }
   8004 if ${ac_cv_sizeof_long_long+:} false; then :
   8005   $as_echo_n "(cached) " >&6
   8006 else
   8007   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   8008 
   8009 else
   8010   if test "$ac_cv_type_long_long" = yes; then
   8011      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8013 as_fn_error 77 "cannot compute sizeof (long long)
   8014 See \`config.log' for more details" "$LINENO" 5; }
   8015    else
   8016      ac_cv_sizeof_long_long=0
   8017    fi
   8018 fi
   8019 
   8020 fi
   8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   8022 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   8023 
   8024 
   8025 
   8026 cat >>confdefs.h <<_ACEOF
   8027 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   8028 _ACEOF
   8029 
   8030 
   8031 fi
   8032 
   8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
   8034 $as_echo_n "checking for long double support... " >&6; }
   8035 have_long_double=no
   8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8037 /* end confdefs.h.  */
   8038 
   8039 int
   8040 main ()
   8041 {
   8042 long double x; x = (long double)0;
   8043   ;
   8044   return 0;
   8045 }
   8046 _ACEOF
   8047 if ac_fn_c_try_compile "$LINENO"; then :
   8048 
   8049 
   8050 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
   8051 
   8052   have_long_double=yes
   8053 
   8054 fi
   8055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
   8057 $as_echo "$have_long_double" >&6; }
   8058 if test "$have_long_double" = yes ; then
   8059 # The cast to long int works around a bug in the HP C Compiler
   8060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8062 # This bug is HP SR number 8606223364.
   8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
   8064 $as_echo_n "checking size of long double... " >&6; }
   8065 if ${ac_cv_sizeof_long_double+:} false; then :
   8066   $as_echo_n "(cached) " >&6
   8067 else
   8068   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
   8069 
   8070 else
   8071   if test "$ac_cv_type_long_double" = yes; then
   8072      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8074 as_fn_error 77 "cannot compute sizeof (long double)
   8075 See \`config.log' for more details" "$LINENO" 5; }
   8076    else
   8077      ac_cv_sizeof_long_double=0
   8078    fi
   8079 fi
   8080 
   8081 fi
   8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
   8083 $as_echo "$ac_cv_sizeof_long_double" >&6; }
   8084 
   8085 
   8086 
   8087 cat >>confdefs.h <<_ACEOF
   8088 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
   8089 _ACEOF
   8090 
   8091 
   8092 fi
   8093 
   8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
   8095 $as_echo_n "checking for _Bool support... " >&6; }
   8096 have_c99_bool=no
   8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8098 /* end confdefs.h.  */
   8099 
   8100 int
   8101 main ()
   8102 {
   8103 _Bool x; x = (_Bool)0;
   8104   ;
   8105   return 0;
   8106 }
   8107 _ACEOF
   8108 if ac_fn_c_try_compile "$LINENO"; then :
   8109 
   8110 
   8111 $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
   8112 
   8113   have_c99_bool=yes
   8114 
   8115 fi
   8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
   8118 $as_echo "$have_c99_bool" >&6; }
   8119 if test "$have_c99_bool" = yes ; then
   8120 # The cast to long int works around a bug in the HP C Compiler
   8121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8123 # This bug is HP SR number 8606223364.
   8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
   8125 $as_echo_n "checking size of _Bool... " >&6; }
   8126 if ${ac_cv_sizeof__Bool+:} false; then :
   8127   $as_echo_n "(cached) " >&6
   8128 else
   8129   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then :
   8130 
   8131 else
   8132   if test "$ac_cv_type__Bool" = yes; then
   8133      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8135 as_fn_error 77 "cannot compute sizeof (_Bool)
   8136 See \`config.log' for more details" "$LINENO" 5; }
   8137    else
   8138      ac_cv_sizeof__Bool=0
   8139    fi
   8140 fi
   8141 
   8142 fi
   8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
   8144 $as_echo "$ac_cv_sizeof__Bool" >&6; }
   8145 
   8146 
   8147 
   8148 cat >>confdefs.h <<_ACEOF
   8149 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
   8150 _ACEOF
   8151 
   8152 
   8153 fi
   8154 
   8155 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
   8156         #include <stdint.h>
   8157         #endif
   8158         #ifdef HAVE_INTTYPES_H
   8159         #include <inttypes.h>
   8160         #endif
   8161 "
   8162 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   8163 
   8164 cat >>confdefs.h <<_ACEOF
   8165 #define HAVE_UINTPTR_T 1
   8166 _ACEOF
   8167 
   8168 # The cast to long int works around a bug in the HP C Compiler
   8169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8171 # This bug is HP SR number 8606223364.
   8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
   8173 $as_echo_n "checking size of uintptr_t... " >&6; }
   8174 if ${ac_cv_sizeof_uintptr_t+:} false; then :
   8175   $as_echo_n "(cached) " >&6
   8176 else
   8177   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then :
   8178 
   8179 else
   8180   if test "$ac_cv_type_uintptr_t" = yes; then
   8181      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8183 as_fn_error 77 "cannot compute sizeof (uintptr_t)
   8184 See \`config.log' for more details" "$LINENO" 5; }
   8185    else
   8186      ac_cv_sizeof_uintptr_t=0
   8187    fi
   8188 fi
   8189 
   8190 fi
   8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
   8192 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
   8193 
   8194 
   8195 
   8196 cat >>confdefs.h <<_ACEOF
   8197 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
   8198 _ACEOF
   8199 
   8200 
   8201 fi
   8202 
   8203 
   8204 # The cast to long int works around a bug in the HP C Compiler
   8205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8207 # This bug is HP SR number 8606223364.
   8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
   8209 $as_echo_n "checking size of off_t... " >&6; }
   8210 if ${ac_cv_sizeof_off_t+:} false; then :
   8211   $as_echo_n "(cached) " >&6
   8212 else
   8213   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "
   8214 #ifdef HAVE_SYS_TYPES_H
   8215 #include <sys/types.h>
   8216 #endif
   8217 
   8218 "; then :
   8219 
   8220 else
   8221   if test "$ac_cv_type_off_t" = yes; then
   8222      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8224 as_fn_error 77 "cannot compute sizeof (off_t)
   8225 See \`config.log' for more details" "$LINENO" 5; }
   8226    else
   8227      ac_cv_sizeof_off_t=0
   8228    fi
   8229 fi
   8230 
   8231 fi
   8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
   8233 $as_echo "$ac_cv_sizeof_off_t" >&6; }
   8234 
   8235 
   8236 
   8237 cat >>confdefs.h <<_ACEOF
   8238 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
   8239 _ACEOF
   8240 
   8241 
   8242 
   8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
   8244 $as_echo_n "checking whether to enable large file support... " >&6; }
   8245 if test "$have_long_long" = yes
   8246 then
   8247 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
   8248 	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
   8249 
   8250 $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
   8251 
   8252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8253 $as_echo "yes" >&6; }
   8254 else
   8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8256 $as_echo "no" >&6; }
   8257 fi
   8258 else
   8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8260 $as_echo "no" >&6; }
   8261 fi
   8262 
   8263 # The cast to long int works around a bug in the HP C Compiler
   8264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8266 # This bug is HP SR number 8606223364.
   8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
   8268 $as_echo_n "checking size of time_t... " >&6; }
   8269 if ${ac_cv_sizeof_time_t+:} false; then :
   8270   $as_echo_n "(cached) " >&6
   8271 else
   8272   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
   8273 #ifdef HAVE_SYS_TYPES_H
   8274 #include <sys/types.h>
   8275 #endif
   8276 #ifdef HAVE_TIME_H
   8277 #include <time.h>
   8278 #endif
   8279 
   8280 "; then :
   8281 
   8282 else
   8283   if test "$ac_cv_type_time_t" = yes; then
   8284      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8286 as_fn_error 77 "cannot compute sizeof (time_t)
   8287 See \`config.log' for more details" "$LINENO" 5; }
   8288    else
   8289      ac_cv_sizeof_time_t=0
   8290    fi
   8291 fi
   8292 
   8293 fi
   8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
   8295 $as_echo "$ac_cv_sizeof_time_t" >&6; }
   8296 
   8297 
   8298 
   8299 cat >>confdefs.h <<_ACEOF
   8300 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
   8301 _ACEOF
   8302 
   8303 
   8304 
   8305 # if have pthread_t then define SIZEOF_PTHREAD_T
   8306 ac_save_cc="$CC"
   8307 if test "$ac_cv_kpthread" = "yes"
   8308 then CC="$CC -Kpthread"
   8309 elif test "$ac_cv_kthread" = "yes"
   8310 then CC="$CC -Kthread"
   8311 elif test "$ac_cv_pthread" = "yes"
   8312 then CC="$CC -pthread"
   8313 fi
   8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
   8315 $as_echo_n "checking for pthread_t... " >&6; }
   8316 have_pthread_t=no
   8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8318 /* end confdefs.h.  */
   8319 
   8320   #include <pthread.h>
   8321 int
   8322 main ()
   8323 {
   8324 pthread_t x; x = *(pthread_t*)0;
   8325   ;
   8326   return 0;
   8327 }
   8328 
   8329 _ACEOF
   8330 if ac_fn_c_try_compile "$LINENO"; then :
   8331   have_pthread_t=yes
   8332 fi
   8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
   8335 $as_echo "$have_pthread_t" >&6; }
   8336 if test "$have_pthread_t" = yes ; then
   8337   # The cast to long int works around a bug in the HP C Compiler
   8338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8340 # This bug is HP SR number 8606223364.
   8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
   8342 $as_echo_n "checking size of pthread_t... " >&6; }
   8343 if ${ac_cv_sizeof_pthread_t+:} false; then :
   8344   $as_echo_n "(cached) " >&6
   8345 else
   8346   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
   8347 #ifdef HAVE_PTHREAD_H
   8348 #include <pthread.h>
   8349 #endif
   8350 
   8351 "; then :
   8352 
   8353 else
   8354   if test "$ac_cv_type_pthread_t" = yes; then
   8355      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8357 as_fn_error 77 "cannot compute sizeof (pthread_t)
   8358 See \`config.log' for more details" "$LINENO" 5; }
   8359    else
   8360      ac_cv_sizeof_pthread_t=0
   8361    fi
   8362 fi
   8363 
   8364 fi
   8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
   8366 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
   8367 
   8368 
   8369 
   8370 cat >>confdefs.h <<_ACEOF
   8371 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
   8372 _ACEOF
   8373 
   8374 
   8375 fi
   8376 CC="$ac_save_cc"
   8377 
   8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
   8379 $as_echo_n "checking for --enable-toolbox-glue... " >&6; }
   8380 # Check whether --enable-toolbox-glue was given.
   8381 if test "${enable_toolbox_glue+set}" = set; then :
   8382   enableval=$enable_toolbox_glue;
   8383 fi
   8384 
   8385 
   8386 if test -z "$enable_toolbox_glue"
   8387 then
   8388 	case $ac_sys_system/$ac_sys_release in
   8389 	Darwin/*)
   8390 		enable_toolbox_glue="yes";;
   8391 	*)
   8392 		enable_toolbox_glue="no";;
   8393 	esac
   8394 fi
   8395 case "$enable_toolbox_glue" in
   8396 yes)
   8397 	extra_machdep_objs="Python/mactoolboxglue.o"
   8398 	extra_undefs="-u _PyMac_Error"
   8399 
   8400 $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
   8401 
   8402 	;;
   8403 *)
   8404 	extra_machdep_objs=""
   8405 	extra_undefs=""
   8406 	;;
   8407 esac
   8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
   8409 $as_echo "$enable_toolbox_glue" >&6; }
   8410 
   8411 
   8412 
   8413 case $ac_sys_system/$ac_sys_release in
   8414   Darwin/[01567]\..*)
   8415     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
   8416     ;;
   8417   Darwin/*)
   8418     OTHER_LIBTOOL_OPT=""
   8419     ;;
   8420 esac
   8421 
   8422 
   8423 
   8424 case $ac_sys_system/$ac_sys_release in
   8425   Darwin/[01567]\..*)
   8426     LIBTOOL_CRUFT="-framework System -lcc_dynamic"
   8427     if test "${enable_universalsdk}"; then
   8428 	    :
   8429     else
   8430         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
   8431     fi
   8432     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8433     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
   8434   Darwin/*)
   8435     gcc_version=`gcc -dumpversion`
   8436     if test ${gcc_version} '<' 4.0
   8437         then
   8438             LIBTOOL_CRUFT="-lcc_dynamic"
   8439         else
   8440             LIBTOOL_CRUFT=""
   8441     fi
   8442     if test "$cross_compiling" = yes; then :
   8443   ac_osx_32bit=yes
   8444 else
   8445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8446 /* end confdefs.h.  */
   8447 
   8448     #include <unistd.h>
   8449     int main(int argc, char*argv[])
   8450     {
   8451       if (sizeof(long) == 4) {
   8452     	  return 0;
   8453       } else {
   8454       	  return 1;
   8455       }
   8456     }
   8457 
   8458 _ACEOF
   8459 if ac_fn_c_try_run "$LINENO"; then :
   8460   ac_osx_32bit=yes
   8461 else
   8462   ac_osx_32bit=no
   8463 fi
   8464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8465   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8466 fi
   8467 
   8468 
   8469     if test "${ac_osx_32bit}" = "yes"; then
   8470     	case `/usr/bin/arch` in
   8471     	i386)
   8472     		MACOSX_DEFAULT_ARCH="i386"
   8473     		;;
   8474     	ppc)
   8475     		MACOSX_DEFAULT_ARCH="ppc"
   8476     		;;
   8477     	*)
   8478     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
   8479     		;;
   8480     	esac
   8481     else
   8482     	case `/usr/bin/arch` in
   8483     	i386)
   8484     		MACOSX_DEFAULT_ARCH="x86_64"
   8485     		;;
   8486     	ppc)
   8487     		MACOSX_DEFAULT_ARCH="ppc64"
   8488     		;;
   8489     	*)
   8490     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
   8491     		;;
   8492     	esac
   8493 
   8494     fi
   8495 
   8496     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
   8497     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8498     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
   8499 esac
   8500 
   8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
   8502 $as_echo_n "checking for --enable-framework... " >&6; }
   8503 if test "$enable_framework"
   8504 then
   8505 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
   8506 	# -F. is needed to allow linking to the framework while
   8507 	# in the build location.
   8508 
   8509 $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
   8510 
   8511 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8512 $as_echo "yes" >&6; }
   8513 	if test $enable_shared = "yes"
   8514 	then
   8515 		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5
   8516 	fi
   8517 else
   8518 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8519 $as_echo "no" >&6; }
   8520 fi
   8521 
   8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
   8523 $as_echo_n "checking for dyld... " >&6; }
   8524 case $ac_sys_system/$ac_sys_release in
   8525   Darwin/*)
   8526 
   8527 $as_echo "#define WITH_DYLD 1" >>confdefs.h
   8528 
   8529   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
   8530 $as_echo "always on for Darwin" >&6; }
   8531   	;;
   8532   *)
   8533 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8534 $as_echo "no" >&6; }
   8535 	;;
   8536 esac
   8537 
   8538 # Set info about shared libraries.
   8539 
   8540 
   8541 
   8542 
   8543 
   8544 
   8545 # SO is the extension of shared libraries `(including the dot!)
   8546 # -- usually .so, .sl on HP-UX, .dll on Cygwin
   8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
   8548 $as_echo_n "checking SO... " >&6; }
   8549 if test -z "$SO"
   8550 then
   8551 	case $ac_sys_system in
   8552 	hp*|HP*)
   8553 		case `uname -m` in
   8554 			ia64) SO=.so;;
   8555 	  		*)    SO=.sl;;
   8556 		esac
   8557 		;;
   8558 	CYGWIN*)   SO=.dll;;
   8559 	*)	   SO=.so;;
   8560 	esac
   8561 else
   8562 	# this might also be a termcap variable, see #610332
   8563         echo
   8564         echo '====================================================================='
   8565         echo '+                                                                   +'
   8566 	echo '+ WARNING: You have set SO in your environment.                     +'
   8567         echo '+ Do you really mean to change the extension for shared libraries?  +'
   8568         echo '+ Continuing in 10 seconds to let you to ponder.                    +'
   8569         echo '+                                                                   +'
   8570         echo '====================================================================='
   8571 	sleep 10
   8572 fi
   8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
   8574 $as_echo "$SO" >&6; }
   8575 
   8576 
   8577 cat >>confdefs.h <<_ACEOF
   8578 #define SHLIB_EXT "$SO"
   8579 _ACEOF
   8580 
   8581 # LDSHARED is the ld *command* used to create shared library
   8582 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
   8583 # (Shared libraries in this instance are shared modules to be loaded into
   8584 # Python, as opposed to building Python itself as a shared library.)
   8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
   8586 $as_echo_n "checking LDSHARED... " >&6; }
   8587 if test -z "$LDSHARED"
   8588 then
   8589 	case $ac_sys_system/$ac_sys_release in
   8590 	AIX*)
   8591 		BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
   8592 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
   8593 		;;
   8594 	BeOS*)
   8595 		BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
   8596 		LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
   8597 		;;
   8598 	IRIX/5*) LDSHARED="ld -shared";;
   8599 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
   8600 	SunOS/5*)
   8601 		if test "$GCC" = "yes" ; then
   8602 			LDSHARED='$(CC) -shared'
   8603 			LDCXXSHARED='$(CXX) -shared'
   8604 		else
   8605 			LDSHARED='$(CC) -G'
   8606 			LDCXXSHARED='$(CXX) -G'
   8607 		fi ;;
   8608 	hp*|HP*)
   8609 		if test "$GCC" = "yes" ; then
   8610 			LDSHARED='$(CC) -shared'
   8611 			LDCXXSHARED='$(CXX) -shared'
   8612 		else
   8613 			LDSHARED='ld -b'
   8614 		fi ;;
   8615 	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
   8616 	Darwin/1.3*)
   8617 		LDSHARED='$(CC) -bundle'
   8618 		LDCXXSHARED='$(CXX) -bundle'
   8619 		if test "$enable_framework" ; then
   8620 			# Link against the framework. All externals should be defined.
   8621 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8622 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8623 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8624 		else
   8625 			# No framework. Ignore undefined symbols, assuming they come from Python
   8626 			LDSHARED="$LDSHARED -undefined suppress"
   8627 			LDCXXSHARED="$LDCXXSHARED -undefined suppress"
   8628 		fi ;;
   8629 	Darwin/1.4*|Darwin/5.*|Darwin/6.*)
   8630 		LDSHARED='$(CC) -bundle'
   8631 		LDCXXSHARED='$(CXX) -bundle'
   8632 		if test "$enable_framework" ; then
   8633 			# Link against the framework. All externals should be defined.
   8634 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8635 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8636 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8637 		else
   8638 			# No framework, use the Python app as bundle-loader
   8639 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
   8640 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
   8641 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
   8642 		fi ;;
   8643 	Darwin/*)
   8644 		# Use -undefined dynamic_lookup whenever possible (10.3 and later).
   8645 		# This allows an extension to be used in any Python
   8646 
   8647 		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
   8648 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
   8649 		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
   8650 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
   8651 		if test ${dep_target_major} -eq 10 && \
   8652 		   test ${dep_target_minor} -le 2
   8653 		then
   8654 			# building for OS X 10.0 through 10.2
   8655 			LDSHARED='$(CC) -bundle'
   8656 			LDCXXSHARED='$(CXX) -bundle'
   8657 			if test "$enable_framework" ; then
   8658 				# Link against the framework. All externals should be defined.
   8659 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8660 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8661 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8662 			else
   8663 				# No framework, use the Python app as bundle-loader
   8664 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
   8665 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
   8666 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
   8667 			fi
   8668 		else
   8669 			# building for OS X 10.3 and later
   8670 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
   8671 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
   8672 			BLDSHARED="$LDSHARED"
   8673 		fi
   8674 		;;
   8675 	Linux*|GNU*|QNX*)
   8676 		LDSHARED='$(CC) -shared'
   8677 		LDCXXSHARED='$(CXX) -shared';;
   8678 	BSD/OS*/4*)
   8679 		LDSHARED="gcc -shared"
   8680 		LDCXXSHARED="g++ -shared";;
   8681 	FreeBSD*)
   8682 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
   8683 		then
   8684 			LDSHARED='$(CC) -shared'
   8685 			LDCXXSHARED='$(CXX) -shared'
   8686 		else
   8687 			LDSHARED="ld -Bshareable"
   8688 		fi;;
   8689 	OpenBSD*)
   8690 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
   8691 		then
   8692 				LDSHARED='$(CC) -shared $(CCSHARED)'
   8693 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
   8694 		else
   8695 				case `uname -r` in
   8696 				[01].* | 2.[0-7] | 2.[0-7].*)
   8697 				   LDSHARED="ld -Bshareable ${LDFLAGS}"
   8698 				   ;;
   8699 				*)
   8700 				   LDSHARED='$(CC) -shared $(CCSHARED)'
   8701 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
   8702 				   ;;
   8703 				esac
   8704 		fi;;
   8705 	NetBSD*|DragonFly*)
   8706 		LDSHARED='$(CC) -shared'
   8707 		LDCXXSHARED='$(CXX) -shared';;
   8708 	OpenUNIX*|UnixWare*)
   8709 		if test "$GCC" = "yes" ; then
   8710 			LDSHARED='$(CC) -shared'
   8711 			LDCXXSHARED='$(CXX) -shared'
   8712 		else
   8713 			LDSHARED='$(CC) -G'
   8714 			LDCXXSHARED='$(CXX) -G'
   8715 		fi;;
   8716 	SCO_SV*)
   8717 		LDSHARED='$(CC) -Wl,-G,-Bexport'
   8718 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
   8719 	CYGWIN*)
   8720 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
   8721 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
   8722 	atheos*)
   8723 		LDSHARED="gcc -shared"
   8724 		LDCXXSHARED="g++ -shared";;
   8725 	*)	LDSHARED="ld";;
   8726 	esac
   8727 fi
   8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
   8729 $as_echo "$LDSHARED" >&6; }
   8730 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
   8731 BLDSHARED=${BLDSHARED-$LDSHARED}
   8732 # CCSHARED are the C *flags* used to create objects to go into a shared
   8733 # library (module) -- this is only needed for a few systems
   8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
   8735 $as_echo_n "checking CCSHARED... " >&6; }
   8736 if test -z "$CCSHARED"
   8737 then
   8738 	case $ac_sys_system/$ac_sys_release in
   8739 	SunOS*) if test "$GCC" = yes;
   8740 		then CCSHARED="-fPIC";
   8741 		elif test `uname -p` = sparc;
   8742 		then CCSHARED="-xcode=pic32";
   8743 		else CCSHARED="-Kpic";
   8744 		fi;;
   8745 	hp*|HP*) if test "$GCC" = yes;
   8746 		 then CCSHARED="-fPIC";
   8747 		 else CCSHARED="+z";
   8748 		 fi;;
   8749 	Linux*|GNU*) CCSHARED="-fPIC";;
   8750 	BSD/OS*/4*) CCSHARED="-fpic";;
   8751 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
   8752 	OpenUNIX*|UnixWare*)
   8753 		if test "$GCC" = "yes"
   8754 		then CCSHARED="-fPIC"
   8755 		else CCSHARED="-KPIC"
   8756 		fi;;
   8757 	SCO_SV*)
   8758 		if test "$GCC" = "yes"
   8759 		then CCSHARED="-fPIC"
   8760 		else CCSHARED="-Kpic -belf"
   8761 		fi;;
   8762 	IRIX*/6*)  case $CC in
   8763 		   *gcc*) CCSHARED="-shared";;
   8764 		   *) CCSHARED="";;
   8765 		   esac;;
   8766 	atheos*) CCSHARED="-fPIC";;
   8767 	esac
   8768 fi
   8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
   8770 $as_echo "$CCSHARED" >&6; }
   8771 # LINKFORSHARED are the flags passed to the $(CC) command that links
   8772 # the python executable -- this is only needed for a few systems
   8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
   8774 $as_echo_n "checking LINKFORSHARED... " >&6; }
   8775 if test -z "$LINKFORSHARED"
   8776 then
   8777 	case $ac_sys_system/$ac_sys_release in
   8778 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
   8779 	hp*|HP*)
   8780 	    LINKFORSHARED="-Wl,-E -Wl,+s";;
   8781 #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
   8782 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
   8783 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
   8784 	# -u libsys_s pulls in all symbols in libsys
   8785 	Darwin/*)
   8786 		# -u _PyMac_Error is needed to pull in the mac toolbox glue,
   8787 		# which is
   8788 		# not used by the core itself but which needs to be in the core so
   8789 		# that dynamically loaded extension modules have access to it.
   8790 		# -prebind is no longer used, because it actually seems to give a
   8791 		# slowdown in stead of a speedup, maybe due to the large number of
   8792 		# dynamic loads Python does.
   8793 
   8794 		LINKFORSHARED="$extra_undefs"
   8795 		if test "$enable_framework"
   8796 		then
   8797 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
   8798 		fi
   8799 		LINKFORSHARED="$LINKFORSHARED";;
   8800 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
   8801 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
   8802 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
   8803 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
   8804 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
   8805 		then
   8806 			LINKFORSHARED="-Wl,--export-dynamic"
   8807 		fi;;
   8808 	SunOS/5*) case $CC in
   8809 		  *gcc*)
   8810 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
   8811 		    then
   8812 			LINKFORSHARED="-Xlinker --export-dynamic"
   8813 		    fi;;
   8814 		  esac;;
   8815 	CYGWIN*)
   8816 		if test $enable_shared = "no"
   8817 		then
   8818 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
   8819 		fi;;
   8820 	QNX*)
   8821 		# -Wl,-E causes the symbols to be added to the dynamic
   8822 		# symbol table so that they can be found when a module
   8823 		# is loaded.  -N 2048K causes the stack size to be set
   8824 		# to 2048 kilobytes so that the stack doesn't overflow
   8825 		# when running test_compile.py.
   8826 		LINKFORSHARED='-Wl,-E -N 2048K';;
   8827 	esac
   8828 fi
   8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
   8830 $as_echo "$LINKFORSHARED" >&6; }
   8831 
   8832 
   8833 
   8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
   8835 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
   8836 if test ! "$LIBRARY" = "$LDLIBRARY"
   8837 then
   8838 	case $ac_sys_system in
   8839 	CYGWIN*)
   8840 		# Cygwin needs CCSHARED when building extension DLLs
   8841 		# but not when building the interpreter DLL.
   8842 		CFLAGSFORSHARED='';;
   8843 	*)
   8844 		CFLAGSFORSHARED='$(CCSHARED)'
   8845 	esac
   8846 fi
   8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
   8848 $as_echo "$CFLAGSFORSHARED" >&6; }
   8849 
   8850 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
   8851 # library (with --enable-shared).
   8852 # For platforms on which shared libraries are not allowed to have unresolved
   8853 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
   8854 # if it is not required, since it creates a dependency of the shared library
   8855 # to LIBS. This, in turn, means that applications linking the shared libpython
   8856 # don't need to link LIBS explicitly. The default should be only changed
   8857 # on systems where this approach causes problems.
   8858 
   8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
   8860 $as_echo_n "checking SHLIBS... " >&6; }
   8861 case "$ac_sys_system" in
   8862 	*)
   8863 		SHLIBS='$(LIBS)';;
   8864 esac
   8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
   8866 $as_echo "$SHLIBS" >&6; }
   8867 
   8868 
   8869 # checks for libraries
   8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   8871 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   8872 if ${ac_cv_lib_dl_dlopen+:} false; then :
   8873   $as_echo_n "(cached) " >&6
   8874 else
   8875   ac_check_lib_save_LIBS=$LIBS
   8876 LIBS="-ldl  $LIBS"
   8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8878 /* end confdefs.h.  */
   8879 
   8880 /* Override any GCC internal prototype to avoid an error.
   8881    Use char because int might match the return type of a GCC
   8882    builtin and then its argument prototype would still apply.  */
   8883 #ifdef __cplusplus
   8884 extern "C"
   8885 #endif
   8886 char dlopen ();
   8887 int
   8888 main ()
   8889 {
   8890 return dlopen ();
   8891   ;
   8892   return 0;
   8893 }
   8894 _ACEOF
   8895 if ac_fn_c_try_link "$LINENO"; then :
   8896   ac_cv_lib_dl_dlopen=yes
   8897 else
   8898   ac_cv_lib_dl_dlopen=no
   8899 fi
   8900 rm -f core conftest.err conftest.$ac_objext \
   8901     conftest$ac_exeext conftest.$ac_ext
   8902 LIBS=$ac_check_lib_save_LIBS
   8903 fi
   8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   8905 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   8906 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   8907   cat >>confdefs.h <<_ACEOF
   8908 #define HAVE_LIBDL 1
   8909 _ACEOF
   8910 
   8911   LIBS="-ldl $LIBS"
   8912 
   8913 fi
   8914 	# Dynamic linking for SunOS/Solaris and SYSV
   8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   8916 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   8917 if ${ac_cv_lib_dld_shl_load+:} false; then :
   8918   $as_echo_n "(cached) " >&6
   8919 else
   8920   ac_check_lib_save_LIBS=$LIBS
   8921 LIBS="-ldld  $LIBS"
   8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8923 /* end confdefs.h.  */
   8924 
   8925 /* Override any GCC internal prototype to avoid an error.
   8926    Use char because int might match the return type of a GCC
   8927    builtin and then its argument prototype would still apply.  */
   8928 #ifdef __cplusplus
   8929 extern "C"
   8930 #endif
   8931 char shl_load ();
   8932 int
   8933 main ()
   8934 {
   8935 return shl_load ();
   8936   ;
   8937   return 0;
   8938 }
   8939 _ACEOF
   8940 if ac_fn_c_try_link "$LINENO"; then :
   8941   ac_cv_lib_dld_shl_load=yes
   8942 else
   8943   ac_cv_lib_dld_shl_load=no
   8944 fi
   8945 rm -f core conftest.err conftest.$ac_objext \
   8946     conftest$ac_exeext conftest.$ac_ext
   8947 LIBS=$ac_check_lib_save_LIBS
   8948 fi
   8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   8950 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   8951 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   8952   cat >>confdefs.h <<_ACEOF
   8953 #define HAVE_LIBDLD 1
   8954 _ACEOF
   8955 
   8956   LIBS="-ldld $LIBS"
   8957 
   8958 fi
   8959 	# Dynamic linking for HP-UX
   8960 
   8961 # only check for sem_init if thread support is requested
   8962 if test "$with_threads" = "yes" -o -z "$with_threads"; then
   8963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
   8964 $as_echo_n "checking for library containing sem_init... " >&6; }
   8965 if ${ac_cv_search_sem_init+:} false; then :
   8966   $as_echo_n "(cached) " >&6
   8967 else
   8968   ac_func_search_save_LIBS=$LIBS
   8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8970 /* end confdefs.h.  */
   8971 
   8972 /* Override any GCC internal prototype to avoid an error.
   8973    Use char because int might match the return type of a GCC
   8974    builtin and then its argument prototype would still apply.  */
   8975 #ifdef __cplusplus
   8976 extern "C"
   8977 #endif
   8978 char sem_init ();
   8979 int
   8980 main ()
   8981 {
   8982 return sem_init ();
   8983   ;
   8984   return 0;
   8985 }
   8986 _ACEOF
   8987 for ac_lib in '' pthread rt posix4; do
   8988   if test -z "$ac_lib"; then
   8989     ac_res="none required"
   8990   else
   8991     ac_res=-l$ac_lib
   8992     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8993   fi
   8994   if ac_fn_c_try_link "$LINENO"; then :
   8995   ac_cv_search_sem_init=$ac_res
   8996 fi
   8997 rm -f core conftest.err conftest.$ac_objext \
   8998     conftest$ac_exeext
   8999   if ${ac_cv_search_sem_init+:} false; then :
   9000   break
   9001 fi
   9002 done
   9003 if ${ac_cv_search_sem_init+:} false; then :
   9004 
   9005 else
   9006   ac_cv_search_sem_init=no
   9007 fi
   9008 rm conftest.$ac_ext
   9009 LIBS=$ac_func_search_save_LIBS
   9010 fi
   9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
   9012 $as_echo "$ac_cv_search_sem_init" >&6; }
   9013 ac_res=$ac_cv_search_sem_init
   9014 if test "$ac_res" != no; then :
   9015   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9016 
   9017 fi
   9018  # 'Real Time' functions on Solaris
   9019 						# posix4 on Solaris 2.6
   9020 						# pthread (first!) on Linux
   9021 fi
   9022 
   9023 # check if we need libintl for locale functions
   9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
   9025 $as_echo_n "checking for textdomain in -lintl... " >&6; }
   9026 if ${ac_cv_lib_intl_textdomain+:} false; then :
   9027   $as_echo_n "(cached) " >&6
   9028 else
   9029   ac_check_lib_save_LIBS=$LIBS
   9030 LIBS="-lintl  $LIBS"
   9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9032 /* end confdefs.h.  */
   9033 
   9034 /* Override any GCC internal prototype to avoid an error.
   9035    Use char because int might match the return type of a GCC
   9036    builtin and then its argument prototype would still apply.  */
   9037 #ifdef __cplusplus
   9038 extern "C"
   9039 #endif
   9040 char textdomain ();
   9041 int
   9042 main ()
   9043 {
   9044 return textdomain ();
   9045   ;
   9046   return 0;
   9047 }
   9048 _ACEOF
   9049 if ac_fn_c_try_link "$LINENO"; then :
   9050   ac_cv_lib_intl_textdomain=yes
   9051 else
   9052   ac_cv_lib_intl_textdomain=no
   9053 fi
   9054 rm -f core conftest.err conftest.$ac_objext \
   9055     conftest$ac_exeext conftest.$ac_ext
   9056 LIBS=$ac_check_lib_save_LIBS
   9057 fi
   9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
   9059 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
   9060 if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
   9061 
   9062 $as_echo "#define WITH_LIBINTL 1" >>confdefs.h
   9063 
   9064 fi
   9065 
   9066 
   9067 # checks for system dependent C++ extensions support
   9068 case "$ac_sys_system" in
   9069 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
   9070 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
   9071 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9072 /* end confdefs.h.  */
   9073 
   9074 		  #include <load.h>
   9075 int
   9076 main ()
   9077 {
   9078 loadAndInit("", 0, "")
   9079   ;
   9080   return 0;
   9081 }
   9082 
   9083 _ACEOF
   9084 if ac_fn_c_try_link "$LINENO"; then :
   9085 
   9086 
   9087 $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
   9088 
   9089 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9090 $as_echo "yes" >&6; }
   9091 
   9092 else
   9093 
   9094 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9095 $as_echo "no" >&6; }
   9096 
   9097 fi
   9098 rm -f core conftest.err conftest.$ac_objext \
   9099     conftest$ac_exeext conftest.$ac_ext;;
   9100 	*) ;;
   9101 esac
   9102 
   9103 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
   9104 # BeOS' sockets are stashed in libnet.
   9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
   9106 $as_echo_n "checking for t_open in -lnsl... " >&6; }
   9107 if ${ac_cv_lib_nsl_t_open+:} false; then :
   9108   $as_echo_n "(cached) " >&6
   9109 else
   9110   ac_check_lib_save_LIBS=$LIBS
   9111 LIBS="-lnsl  $LIBS"
   9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9113 /* end confdefs.h.  */
   9114 
   9115 /* Override any GCC internal prototype to avoid an error.
   9116    Use char because int might match the return type of a GCC
   9117    builtin and then its argument prototype would still apply.  */
   9118 #ifdef __cplusplus
   9119 extern "C"
   9120 #endif
   9121 char t_open ();
   9122 int
   9123 main ()
   9124 {
   9125 return t_open ();
   9126   ;
   9127   return 0;
   9128 }
   9129 _ACEOF
   9130 if ac_fn_c_try_link "$LINENO"; then :
   9131   ac_cv_lib_nsl_t_open=yes
   9132 else
   9133   ac_cv_lib_nsl_t_open=no
   9134 fi
   9135 rm -f core conftest.err conftest.$ac_objext \
   9136     conftest$ac_exeext conftest.$ac_ext
   9137 LIBS=$ac_check_lib_save_LIBS
   9138 fi
   9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
   9140 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
   9141 if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
   9142   LIBS="-lnsl $LIBS"
   9143 fi
   9144  # SVR4
   9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   9146 $as_echo_n "checking for socket in -lsocket... " >&6; }
   9147 if ${ac_cv_lib_socket_socket+:} false; then :
   9148   $as_echo_n "(cached) " >&6
   9149 else
   9150   ac_check_lib_save_LIBS=$LIBS
   9151 LIBS="-lsocket $LIBS $LIBS"
   9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9153 /* end confdefs.h.  */
   9154 
   9155 /* Override any GCC internal prototype to avoid an error.
   9156    Use char because int might match the return type of a GCC
   9157    builtin and then its argument prototype would still apply.  */
   9158 #ifdef __cplusplus
   9159 extern "C"
   9160 #endif
   9161 char socket ();
   9162 int
   9163 main ()
   9164 {
   9165 return socket ();
   9166   ;
   9167   return 0;
   9168 }
   9169 _ACEOF
   9170 if ac_fn_c_try_link "$LINENO"; then :
   9171   ac_cv_lib_socket_socket=yes
   9172 else
   9173   ac_cv_lib_socket_socket=no
   9174 fi
   9175 rm -f core conftest.err conftest.$ac_objext \
   9176     conftest$ac_exeext conftest.$ac_ext
   9177 LIBS=$ac_check_lib_save_LIBS
   9178 fi
   9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   9180 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   9181 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   9182   LIBS="-lsocket $LIBS"
   9183 fi
   9184  # SVR4 sockets
   9185 
   9186 case "$ac_sys_system" in
   9187 BeOS*)
   9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
   9189 $as_echo_n "checking for socket in -lnet... " >&6; }
   9190 if ${ac_cv_lib_net_socket+:} false; then :
   9191   $as_echo_n "(cached) " >&6
   9192 else
   9193   ac_check_lib_save_LIBS=$LIBS
   9194 LIBS="-lnet $LIBS $LIBS"
   9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9196 /* end confdefs.h.  */
   9197 
   9198 /* Override any GCC internal prototype to avoid an error.
   9199    Use char because int might match the return type of a GCC
   9200    builtin and then its argument prototype would still apply.  */
   9201 #ifdef __cplusplus
   9202 extern "C"
   9203 #endif
   9204 char socket ();
   9205 int
   9206 main ()
   9207 {
   9208 return socket ();
   9209   ;
   9210   return 0;
   9211 }
   9212 _ACEOF
   9213 if ac_fn_c_try_link "$LINENO"; then :
   9214   ac_cv_lib_net_socket=yes
   9215 else
   9216   ac_cv_lib_net_socket=no
   9217 fi
   9218 rm -f core conftest.err conftest.$ac_objext \
   9219     conftest$ac_exeext conftest.$ac_ext
   9220 LIBS=$ac_check_lib_save_LIBS
   9221 fi
   9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
   9223 $as_echo "$ac_cv_lib_net_socket" >&6; }
   9224 if test "x$ac_cv_lib_net_socket" = xyes; then :
   9225   LIBS="-lnet $LIBS"
   9226 fi
   9227  # BeOS
   9228 ;;
   9229 esac
   9230 
   9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
   9232 $as_echo_n "checking for --with-libs... " >&6; }
   9233 
   9234 # Check whether --with-libs was given.
   9235 if test "${with_libs+set}" = set; then :
   9236   withval=$with_libs;
   9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
   9238 $as_echo "$withval" >&6; }
   9239 LIBS="$withval $LIBS"
   9240 
   9241 else
   9242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9243 $as_echo "no" >&6; }
   9244 fi
   9245 
   9246 
   9247 
   9248 
   9249 
   9250 
   9251 
   9252 
   9253 
   9254 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   9255 	if test -n "$ac_tool_prefix"; then
   9256   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   9257 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9259 $as_echo_n "checking for $ac_word... " >&6; }
   9260 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   9261   $as_echo_n "(cached) " >&6
   9262 else
   9263   case $PKG_CONFIG in
   9264   [\\/]* | ?:[\\/]*)
   9265   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   9266   ;;
   9267   *)
   9268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9269 for as_dir in $PATH
   9270 do
   9271   IFS=$as_save_IFS
   9272   test -z "$as_dir" && as_dir=.
   9273     for ac_exec_ext in '' $ac_executable_extensions; do
   9274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9275     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   9276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9277     break 2
   9278   fi
   9279 done
   9280   done
   9281 IFS=$as_save_IFS
   9282 
   9283   ;;
   9284 esac
   9285 fi
   9286 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   9287 if test -n "$PKG_CONFIG"; then
   9288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   9289 $as_echo "$PKG_CONFIG" >&6; }
   9290 else
   9291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9292 $as_echo "no" >&6; }
   9293 fi
   9294 
   9295 
   9296 fi
   9297 if test -z "$ac_cv_path_PKG_CONFIG"; then
   9298   ac_pt_PKG_CONFIG=$PKG_CONFIG
   9299   # Extract the first word of "pkg-config", so it can be a program name with args.
   9300 set dummy pkg-config; ac_word=$2
   9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9302 $as_echo_n "checking for $ac_word... " >&6; }
   9303 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   9304   $as_echo_n "(cached) " >&6
   9305 else
   9306   case $ac_pt_PKG_CONFIG in
   9307   [\\/]* | ?:[\\/]*)
   9308   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   9309   ;;
   9310   *)
   9311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9312 for as_dir in $PATH
   9313 do
   9314   IFS=$as_save_IFS
   9315   test -z "$as_dir" && as_dir=.
   9316     for ac_exec_ext in '' $ac_executable_extensions; do
   9317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9318     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   9319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9320     break 2
   9321   fi
   9322 done
   9323   done
   9324 IFS=$as_save_IFS
   9325 
   9326   ;;
   9327 esac
   9328 fi
   9329 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   9330 if test -n "$ac_pt_PKG_CONFIG"; then
   9331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   9332 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   9333 else
   9334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9335 $as_echo "no" >&6; }
   9336 fi
   9337 
   9338   if test "x$ac_pt_PKG_CONFIG" = x; then
   9339     PKG_CONFIG=""
   9340   else
   9341     case $cross_compiling:$ac_tool_warned in
   9342 yes:)
   9343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   9344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   9345 ac_tool_warned=yes ;;
   9346 esac
   9347     PKG_CONFIG=$ac_pt_PKG_CONFIG
   9348   fi
   9349 else
   9350   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   9351 fi
   9352 
   9353 fi
   9354 if test -n "$PKG_CONFIG"; then
   9355 	_pkg_min_version=0.9.0
   9356 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   9357 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   9358 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   9359 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9360 $as_echo "yes" >&6; }
   9361 	else
   9362 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9363 $as_echo "no" >&6; }
   9364 		PKG_CONFIG=""
   9365 	fi
   9366 fi
   9367 
   9368 # Check for use of the system expat library
   9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
   9370 $as_echo_n "checking for --with-system-expat... " >&6; }
   9371 
   9372 # Check whether --with-system_expat was given.
   9373 if test "${with_system_expat+set}" = set; then :
   9374   withval=$with_system_expat;
   9375 else
   9376   with_system_expat="no"
   9377 fi
   9378 
   9379 
   9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
   9381 $as_echo "$with_system_expat" >&6; }
   9382 
   9383 # Check for use of the system libffi library
   9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
   9385 $as_echo_n "checking for --with-system-ffi... " >&6; }
   9386 
   9387 # Check whether --with-system_ffi was given.
   9388 if test "${with_system_ffi+set}" = set; then :
   9389   withval=$with_system_ffi;
   9390 else
   9391   with_system_ffi="no"
   9392 fi
   9393 
   9394 
   9395 if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
   9396     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
   9397 else
   9398     LIBFFI_INCLUDEDIR=""
   9399 fi
   9400 
   9401 
   9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
   9403 $as_echo "$with_system_ffi" >&6; }
   9404 
   9405 # Check for --with-tcltk-includes=path and --with-tcltk-libs=path
   9406 
   9407 
   9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
   9409 $as_echo_n "checking for --with-tcltk-includes... " >&6; }
   9410 
   9411 # Check whether --with-tcltk-includes was given.
   9412 if test "${with_tcltk_includes+set}" = set; then :
   9413   withval=$with_tcltk_includes;
   9414 else
   9415   with_tcltk_includes="default"
   9416 fi
   9417 
   9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
   9419 $as_echo "$with_tcltk_includes" >&6; }
   9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
   9421 $as_echo_n "checking for --with-tcltk-libs... " >&6; }
   9422 
   9423 # Check whether --with-tcltk-libs was given.
   9424 if test "${with_tcltk_libs+set}" = set; then :
   9425   withval=$with_tcltk_libs;
   9426 else
   9427   with_tcltk_libs="default"
   9428 fi
   9429 
   9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
   9431 $as_echo "$with_tcltk_libs" >&6; }
   9432 if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
   9433 then
   9434   if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
   9435   then
   9436     as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
   9437   fi
   9438   TCLTK_INCLUDES=""
   9439   TCLTK_LIBS=""
   9440 else
   9441   TCLTK_INCLUDES="$with_tcltk_includes"
   9442   TCLTK_LIBS="$with_tcltk_libs"
   9443 fi
   9444 
   9445 # Check for --with-dbmliborder
   9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
   9447 $as_echo_n "checking for --with-dbmliborder... " >&6; }
   9448 
   9449 # Check whether --with-dbmliborder was given.
   9450 if test "${with_dbmliborder+set}" = set; then :
   9451   withval=$with_dbmliborder;
   9452 if test x$with_dbmliborder = xyes
   9453 then
   9454 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
   9455 else
   9456   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
   9457     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
   9458     then
   9459       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
   9460     fi
   9461   done
   9462 fi
   9463 fi
   9464 
   9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
   9466 $as_echo "$with_dbmliborder" >&6; }
   9467 
   9468 # Determine if signalmodule should be used.
   9469 
   9470 
   9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
   9472 $as_echo_n "checking for --with-signal-module... " >&6; }
   9473 
   9474 # Check whether --with-signal-module was given.
   9475 if test "${with_signal_module+set}" = set; then :
   9476   withval=$with_signal_module;
   9477 fi
   9478 
   9479 
   9480 if test -z "$with_signal_module"
   9481 then with_signal_module="yes"
   9482 fi
   9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
   9484 $as_echo "$with_signal_module" >&6; }
   9485 
   9486 if test "${with_signal_module}" = "yes"; then
   9487 	USE_SIGNAL_MODULE=""
   9488 	SIGNAL_OBJS=""
   9489 else
   9490 	USE_SIGNAL_MODULE="#"
   9491 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
   9492 fi
   9493 
   9494 # This is used to generate Setup.config
   9495 
   9496 USE_THREAD_MODULE=""
   9497 
   9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
   9499 $as_echo_n "checking for --with-dec-threads... " >&6; }
   9500 
   9501 
   9502 # Check whether --with-dec-threads was given.
   9503 if test "${with_dec_threads+set}" = set; then :
   9504   withval=$with_dec_threads;
   9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
   9506 $as_echo "$withval" >&6; }
   9507 LDLAST=-threads
   9508 if test "${with_thread+set}" != set; then
   9509    with_thread="$withval";
   9510 fi
   9511 else
   9512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9513 $as_echo "no" >&6; }
   9514 fi
   9515 
   9516 
   9517 # Templates for things AC_DEFINEd more than once.
   9518 # For a single AC_DEFINE, no template is needed.
   9519 
   9520 
   9521 
   9522 
   9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
   9524 $as_echo_n "checking for --with-threads... " >&6; }
   9525 
   9526 # Check whether --with-threads was given.
   9527 if test "${with_threads+set}" = set; then :
   9528   withval=$with_threads;
   9529 fi
   9530 
   9531 
   9532 # --with-thread is deprecated, but check for it anyway
   9533 
   9534 # Check whether --with-thread was given.
   9535 if test "${with_thread+set}" = set; then :
   9536   withval=$with_thread; with_threads=$with_thread
   9537 fi
   9538 
   9539 
   9540 if test -z "$with_threads"
   9541 then with_threads="yes"
   9542 fi
   9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
   9544 $as_echo "$with_threads" >&6; }
   9545 
   9546 
   9547 if test "$with_threads" = "no"
   9548 then
   9549     USE_THREAD_MODULE="#"
   9550 elif test "$ac_cv_pthread_is_default" = yes
   9551 then
   9552     $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9553 
   9554     # Defining _REENTRANT on system with POSIX threads should not hurt.
   9555     $as_echo "#define _REENTRANT 1" >>confdefs.h
   9556 
   9557     posix_threads=yes
   9558     THREADOBJ="Python/thread.o"
   9559 elif test "$ac_cv_kpthread" = "yes"
   9560 then
   9561     CC="$CC -Kpthread"
   9562     if test "$ac_cv_cxx_thread" = "yes"; then
   9563         CXX="$CXX -Kpthread"
   9564     fi
   9565     $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9566 
   9567     posix_threads=yes
   9568     THREADOBJ="Python/thread.o"
   9569 elif test "$ac_cv_kthread" = "yes"
   9570 then
   9571     CC="$CC -Kthread"
   9572     if test "$ac_cv_cxx_thread" = "yes"; then
   9573         CXX="$CXX -Kthread"
   9574     fi
   9575     $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9576 
   9577     posix_threads=yes
   9578     THREADOBJ="Python/thread.o"
   9579 elif test "$ac_cv_pthread" = "yes"
   9580 then
   9581     CC="$CC -pthread"
   9582     if test "$ac_cv_cxx_thread" = "yes"; then
   9583         CXX="$CXX -pthread"
   9584     fi
   9585     $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9586 
   9587     posix_threads=yes
   9588     THREADOBJ="Python/thread.o"
   9589 else
   9590     if test ! -z "$with_threads" -a -d "$with_threads"
   9591     then LDFLAGS="$LDFLAGS -L$with_threads"
   9592     fi
   9593     if test ! -z "$withval" -a -d "$withval"
   9594     then LDFLAGS="$LDFLAGS -L$withval"
   9595     fi
   9596 
   9597     # According to the POSIX spec, a pthreads implementation must
   9598     # define _POSIX_THREADS in unistd.h. Some apparently don't
   9599     # (e.g. gnu pth with pthread emulation)
   9600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
   9601 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
   9602     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9603 /* end confdefs.h.  */
   9604 
   9605 #include <unistd.h>
   9606 #ifdef _POSIX_THREADS
   9607 yes
   9608 #endif
   9609 
   9610 _ACEOF
   9611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9612   $EGREP "yes" >/dev/null 2>&1; then :
   9613   unistd_defines_pthreads=yes
   9614 else
   9615   unistd_defines_pthreads=no
   9616 fi
   9617 rm -f conftest*
   9618 
   9619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
   9620 $as_echo "$unistd_defines_pthreads" >&6; }
   9621 
   9622     $as_echo "#define _REENTRANT 1" >>confdefs.h
   9623 
   9624     ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
   9625 if test "x$ac_cv_header_cthreads_h" = xyes; then :
   9626   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9627 
   9628     $as_echo "#define C_THREADS 1" >>confdefs.h
   9629 
   9630 
   9631 $as_echo "#define HURD_C_THREADS 1" >>confdefs.h
   9632 
   9633     LIBS="$LIBS -lthreads"
   9634     THREADOBJ="Python/thread.o"
   9635 else
   9636 
   9637     ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
   9638 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
   9639   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9640 
   9641     $as_echo "#define C_THREADS 1" >>confdefs.h
   9642 
   9643 
   9644 $as_echo "#define MACH_C_THREADS 1" >>confdefs.h
   9645 
   9646     THREADOBJ="Python/thread.o"
   9647 else
   9648 
   9649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
   9650 $as_echo_n "checking for --with-pth... " >&6; }
   9651 
   9652 # Check whether --with-pth was given.
   9653 if test "${with_pth+set}" = set; then :
   9654   withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
   9655 $as_echo "$withval" >&6; }
   9656                   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9657 
   9658 
   9659 $as_echo "#define HAVE_PTH 1" >>confdefs.h
   9660 
   9661                   LIBS="-lpth $LIBS"
   9662                   THREADOBJ="Python/thread.o"
   9663 else
   9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9665 $as_echo "no" >&6; }
   9666 
   9667     # Just looking for pthread_create in libpthread is not enough:
   9668     # on HP/UX, pthread.h renames pthread_create to a different symbol name.
   9669     # So we really have to include pthread.h, and then link.
   9670     _libs=$LIBS
   9671     LIBS="$LIBS -lpthread"
   9672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
   9673 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
   9674     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9675 /* end confdefs.h.  */
   9676 
   9677 #include <stdio.h>
   9678 #include <pthread.h>
   9679 
   9680 void * start_routine (void *arg) { exit (0); }
   9681 int
   9682 main ()
   9683 {
   9684 
   9685 pthread_create (NULL, NULL, start_routine, NULL)
   9686   ;
   9687   return 0;
   9688 }
   9689 _ACEOF
   9690 if ac_fn_c_try_link "$LINENO"; then :
   9691 
   9692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9693 $as_echo "yes" >&6; }
   9694     $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9695 
   9696     posix_threads=yes
   9697     THREADOBJ="Python/thread.o"
   9698 else
   9699 
   9700     LIBS=$_libs
   9701     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
   9702 if test "x$ac_cv_func_pthread_detach" = xyes; then :
   9703   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9704 
   9705     posix_threads=yes
   9706     THREADOBJ="Python/thread.o"
   9707 else
   9708 
   9709     ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
   9710 if test "x$ac_cv_header_atheos_threads_h" = xyes; then :
   9711   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9712 
   9713 
   9714 $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
   9715 
   9716     THREADOBJ="Python/thread.o"
   9717 else
   9718 
   9719     ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
   9720 if test "x$ac_cv_header_kernel_OS_h" = xyes; then :
   9721   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9722 
   9723 
   9724 $as_echo "#define BEOS_THREADS 1" >>confdefs.h
   9725 
   9726     THREADOBJ="Python/thread.o"
   9727 else
   9728 
   9729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
   9730 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
   9731 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
   9732   $as_echo_n "(cached) " >&6
   9733 else
   9734   ac_check_lib_save_LIBS=$LIBS
   9735 LIBS="-lpthreads  $LIBS"
   9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9737 /* end confdefs.h.  */
   9738 
   9739 /* Override any GCC internal prototype to avoid an error.
   9740    Use char because int might match the return type of a GCC
   9741    builtin and then its argument prototype would still apply.  */
   9742 #ifdef __cplusplus
   9743 extern "C"
   9744 #endif
   9745 char pthread_create ();
   9746 int
   9747 main ()
   9748 {
   9749 return pthread_create ();
   9750   ;
   9751   return 0;
   9752 }
   9753 _ACEOF
   9754 if ac_fn_c_try_link "$LINENO"; then :
   9755   ac_cv_lib_pthreads_pthread_create=yes
   9756 else
   9757   ac_cv_lib_pthreads_pthread_create=no
   9758 fi
   9759 rm -f core conftest.err conftest.$ac_objext \
   9760     conftest$ac_exeext conftest.$ac_ext
   9761 LIBS=$ac_check_lib_save_LIBS
   9762 fi
   9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
   9764 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
   9765 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
   9766   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9767 
   9768     posix_threads=yes
   9769     LIBS="$LIBS -lpthreads"
   9770     THREADOBJ="Python/thread.o"
   9771 else
   9772 
   9773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
   9774 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
   9775 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
   9776   $as_echo_n "(cached) " >&6
   9777 else
   9778   ac_check_lib_save_LIBS=$LIBS
   9779 LIBS="-lc_r  $LIBS"
   9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9781 /* end confdefs.h.  */
   9782 
   9783 /* Override any GCC internal prototype to avoid an error.
   9784    Use char because int might match the return type of a GCC
   9785    builtin and then its argument prototype would still apply.  */
   9786 #ifdef __cplusplus
   9787 extern "C"
   9788 #endif
   9789 char pthread_create ();
   9790 int
   9791 main ()
   9792 {
   9793 return pthread_create ();
   9794   ;
   9795   return 0;
   9796 }
   9797 _ACEOF
   9798 if ac_fn_c_try_link "$LINENO"; then :
   9799   ac_cv_lib_c_r_pthread_create=yes
   9800 else
   9801   ac_cv_lib_c_r_pthread_create=no
   9802 fi
   9803 rm -f core conftest.err conftest.$ac_objext \
   9804     conftest$ac_exeext conftest.$ac_ext
   9805 LIBS=$ac_check_lib_save_LIBS
   9806 fi
   9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
   9808 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
   9809 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
   9810   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9811 
   9812     posix_threads=yes
   9813     LIBS="$LIBS -lc_r"
   9814     THREADOBJ="Python/thread.o"
   9815 else
   9816 
   9817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
   9818 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
   9819 if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
   9820   $as_echo_n "(cached) " >&6
   9821 else
   9822   ac_check_lib_save_LIBS=$LIBS
   9823 LIBS="-lpthread  $LIBS"
   9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9825 /* end confdefs.h.  */
   9826 
   9827 /* Override any GCC internal prototype to avoid an error.
   9828    Use char because int might match the return type of a GCC
   9829    builtin and then its argument prototype would still apply.  */
   9830 #ifdef __cplusplus
   9831 extern "C"
   9832 #endif
   9833 char __pthread_create_system ();
   9834 int
   9835 main ()
   9836 {
   9837 return __pthread_create_system ();
   9838   ;
   9839   return 0;
   9840 }
   9841 _ACEOF
   9842 if ac_fn_c_try_link "$LINENO"; then :
   9843   ac_cv_lib_pthread___pthread_create_system=yes
   9844 else
   9845   ac_cv_lib_pthread___pthread_create_system=no
   9846 fi
   9847 rm -f core conftest.err conftest.$ac_objext \
   9848     conftest$ac_exeext conftest.$ac_ext
   9849 LIBS=$ac_check_lib_save_LIBS
   9850 fi
   9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
   9852 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
   9853 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
   9854   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9855 
   9856     posix_threads=yes
   9857     LIBS="$LIBS -lpthread"
   9858     THREADOBJ="Python/thread.o"
   9859 else
   9860 
   9861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
   9862 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
   9863 if ${ac_cv_lib_cma_pthread_create+:} false; then :
   9864   $as_echo_n "(cached) " >&6
   9865 else
   9866   ac_check_lib_save_LIBS=$LIBS
   9867 LIBS="-lcma  $LIBS"
   9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9869 /* end confdefs.h.  */
   9870 
   9871 /* Override any GCC internal prototype to avoid an error.
   9872    Use char because int might match the return type of a GCC
   9873    builtin and then its argument prototype would still apply.  */
   9874 #ifdef __cplusplus
   9875 extern "C"
   9876 #endif
   9877 char pthread_create ();
   9878 int
   9879 main ()
   9880 {
   9881 return pthread_create ();
   9882   ;
   9883   return 0;
   9884 }
   9885 _ACEOF
   9886 if ac_fn_c_try_link "$LINENO"; then :
   9887   ac_cv_lib_cma_pthread_create=yes
   9888 else
   9889   ac_cv_lib_cma_pthread_create=no
   9890 fi
   9891 rm -f core conftest.err conftest.$ac_objext \
   9892     conftest$ac_exeext conftest.$ac_ext
   9893 LIBS=$ac_check_lib_save_LIBS
   9894 fi
   9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
   9896 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
   9897 if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
   9898   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9899 
   9900     posix_threads=yes
   9901     LIBS="$LIBS -lcma"
   9902     THREADOBJ="Python/thread.o"
   9903 else
   9904 
   9905     USE_THREAD_MODULE="#"
   9906 fi
   9907 
   9908 
   9909 fi
   9910 
   9911 fi
   9912 
   9913 fi
   9914 
   9915 fi
   9916 
   9917 
   9918 fi
   9919 
   9920 
   9921 fi
   9922 
   9923 fi
   9924 rm -f core conftest.err conftest.$ac_objext \
   9925     conftest$ac_exeext conftest.$ac_ext
   9926 fi
   9927 
   9928 fi
   9929 
   9930 
   9931 fi
   9932 
   9933 
   9934 
   9935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
   9936 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
   9937 if ${ac_cv_lib_mpc_usconfig+:} false; then :
   9938   $as_echo_n "(cached) " >&6
   9939 else
   9940   ac_check_lib_save_LIBS=$LIBS
   9941 LIBS="-lmpc  $LIBS"
   9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9943 /* end confdefs.h.  */
   9944 
   9945 /* Override any GCC internal prototype to avoid an error.
   9946    Use char because int might match the return type of a GCC
   9947    builtin and then its argument prototype would still apply.  */
   9948 #ifdef __cplusplus
   9949 extern "C"
   9950 #endif
   9951 char usconfig ();
   9952 int
   9953 main ()
   9954 {
   9955 return usconfig ();
   9956   ;
   9957   return 0;
   9958 }
   9959 _ACEOF
   9960 if ac_fn_c_try_link "$LINENO"; then :
   9961   ac_cv_lib_mpc_usconfig=yes
   9962 else
   9963   ac_cv_lib_mpc_usconfig=no
   9964 fi
   9965 rm -f core conftest.err conftest.$ac_objext \
   9966     conftest$ac_exeext conftest.$ac_ext
   9967 LIBS=$ac_check_lib_save_LIBS
   9968 fi
   9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
   9970 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
   9971 if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
   9972   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   9973 
   9974     LIBS="$LIBS -lmpc"
   9975     THREADOBJ="Python/thread.o"
   9976     USE_THREAD_MODULE=""
   9977 fi
   9978 
   9979 
   9980     if test "$posix_threads" != "yes"; then
   9981       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
   9982 $as_echo_n "checking for thr_create in -lthread... " >&6; }
   9983 if ${ac_cv_lib_thread_thr_create+:} false; then :
   9984   $as_echo_n "(cached) " >&6
   9985 else
   9986   ac_check_lib_save_LIBS=$LIBS
   9987 LIBS="-lthread  $LIBS"
   9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9989 /* end confdefs.h.  */
   9990 
   9991 /* Override any GCC internal prototype to avoid an error.
   9992    Use char because int might match the return type of a GCC
   9993    builtin and then its argument prototype would still apply.  */
   9994 #ifdef __cplusplus
   9995 extern "C"
   9996 #endif
   9997 char thr_create ();
   9998 int
   9999 main ()
   10000 {
   10001 return thr_create ();
   10002   ;
   10003   return 0;
   10004 }
   10005 _ACEOF
   10006 if ac_fn_c_try_link "$LINENO"; then :
   10007   ac_cv_lib_thread_thr_create=yes
   10008 else
   10009   ac_cv_lib_thread_thr_create=no
   10010 fi
   10011 rm -f core conftest.err conftest.$ac_objext \
   10012     conftest$ac_exeext conftest.$ac_ext
   10013 LIBS=$ac_check_lib_save_LIBS
   10014 fi
   10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
   10016 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
   10017 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
   10018   $as_echo "#define WITH_THREAD 1" >>confdefs.h
   10019 
   10020       LIBS="$LIBS -lthread"
   10021       THREADOBJ="Python/thread.o"
   10022       USE_THREAD_MODULE=""
   10023 fi
   10024 
   10025     fi
   10026 
   10027     if test "$USE_THREAD_MODULE" != "#"
   10028     then
   10029         # If the above checks didn't disable threads, (at least) OSF1
   10030         # needs this '-threads' argument during linking.
   10031         case $ac_sys_system in
   10032         OSF1) LDLAST=-threads;;
   10033         esac
   10034     fi
   10035 fi
   10036 
   10037 if test "$posix_threads" = "yes"; then
   10038       if test "$unistd_defines_pthreads" = "no"; then
   10039 
   10040 $as_echo "#define _POSIX_THREADS 1" >>confdefs.h
   10041 
   10042       fi
   10043 
   10044       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
   10045       case  $ac_sys_system/$ac_sys_release in
   10046       SunOS/5.6)
   10047 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
   10048 
   10049 		       ;;
   10050       SunOS/5.8)
   10051 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
   10052 
   10053 		       ;;
   10054       AIX/*)
   10055 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
   10056 
   10057 		       ;;
   10058       esac
   10059 
   10060       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
   10061 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
   10062       if ${ac_cv_pthread_system_supported+:} false; then :
   10063   $as_echo_n "(cached) " >&6
   10064 else
   10065   if test "$cross_compiling" = yes; then :
   10066   ac_cv_pthread_system_supported=no
   10067 else
   10068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10069 /* end confdefs.h.  */
   10070 
   10071       #include <stdio.h>
   10072       #include <pthread.h>
   10073       void *foo(void *parm) {
   10074         return NULL;
   10075       }
   10076       main() {
   10077         pthread_attr_t attr;
   10078         pthread_t id;
   10079         if (pthread_attr_init(&attr)) exit(-1);
   10080         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
   10081         if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
   10082         exit(0);
   10083       }
   10084 _ACEOF
   10085 if ac_fn_c_try_run "$LINENO"; then :
   10086   ac_cv_pthread_system_supported=yes
   10087 else
   10088   ac_cv_pthread_system_supported=no
   10089 fi
   10090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10091   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10092 fi
   10093 
   10094 
   10095 fi
   10096 
   10097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
   10098 $as_echo "$ac_cv_pthread_system_supported" >&6; }
   10099       if test "$ac_cv_pthread_system_supported" = "yes"; then
   10100 
   10101 $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
   10102 
   10103       fi
   10104       for ac_func in pthread_sigmask
   10105 do :
   10106   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
   10107 if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
   10108   cat >>confdefs.h <<_ACEOF
   10109 #define HAVE_PTHREAD_SIGMASK 1
   10110 _ACEOF
   10111  case $ac_sys_system in
   10112         CYGWIN*)
   10113 
   10114 $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
   10115 
   10116             ;;
   10117         esac
   10118 fi
   10119 done
   10120 
   10121       for ac_func in pthread_atfork
   10122 do :
   10123   ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
   10124 if test "x$ac_cv_func_pthread_atfork" = xyes; then :
   10125   cat >>confdefs.h <<_ACEOF
   10126 #define HAVE_PTHREAD_ATFORK 1
   10127 _ACEOF
   10128 
   10129 fi
   10130 done
   10131 
   10132 fi
   10133 
   10134 
   10135 # Check for enable-ipv6
   10136 
   10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
   10138 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
   10139 # Check whether --enable-ipv6 was given.
   10140 if test "${enable_ipv6+set}" = set; then :
   10141   enableval=$enable_ipv6;  case "$enableval" in
   10142   no)
   10143        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10144 $as_echo "no" >&6; }
   10145        ipv6=no
   10146        ;;
   10147   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10148 $as_echo "yes" >&6; }
   10149        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
   10150 
   10151        ipv6=yes
   10152        ;;
   10153   esac
   10154 else
   10155 
   10156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10157 /* end confdefs.h.  */
   10158  /* AF_INET6 available check */
   10159 #include <sys/types.h>
   10160 #include <sys/socket.h>
   10161 int
   10162 main ()
   10163 {
   10164 int domain = AF_INET6;
   10165   ;
   10166   return 0;
   10167 }
   10168 _ACEOF
   10169 if ac_fn_c_try_compile "$LINENO"; then :
   10170 
   10171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10172 $as_echo "yes" >&6; }
   10173   ipv6=yes
   10174 
   10175 else
   10176 
   10177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10178 $as_echo "no" >&6; }
   10179   ipv6=no
   10180 
   10181 fi
   10182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10183 
   10184 if test "$ipv6" = "yes"; then
   10185 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
   10186 $as_echo_n "checking if RFC2553 API is available... " >&6; }
   10187 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10188 /* end confdefs.h.  */
   10189 
   10190 	  #include <sys/types.h>
   10191 #include <netinet/in.h>
   10192 int
   10193 main ()
   10194 {
   10195 struct sockaddr_in6 x;
   10196 			    x.sin6_scope_id;
   10197   ;
   10198   return 0;
   10199 }
   10200 
   10201 _ACEOF
   10202 if ac_fn_c_try_compile "$LINENO"; then :
   10203 
   10204 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10205 $as_echo "yes" >&6; }
   10206 	  ipv6=yes
   10207 
   10208 else
   10209 
   10210 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10211 $as_echo "no" >&6; }
   10212 	  ipv6=no
   10213 
   10214 fi
   10215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10216 fi
   10217 
   10218 if test "$ipv6" = "yes"; then
   10219 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
   10220 
   10221 fi
   10222 
   10223 fi
   10224 
   10225 
   10226 ipv6type=unknown
   10227 ipv6lib=none
   10228 ipv6trylibc=no
   10229 
   10230 if test "$ipv6" = "yes"; then
   10231 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
   10232 $as_echo_n "checking ipv6 stack type... " >&6; }
   10233 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
   10234 	do
   10235 		case $i in
   10236 		inria)
   10237 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10238 /* end confdefs.h.  */
   10239 
   10240 #include <netinet/in.h>
   10241 #ifdef IPV6_INRIA_VERSION
   10242 yes
   10243 #endif
   10244 _ACEOF
   10245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10246   $EGREP "yes" >/dev/null 2>&1; then :
   10247   ipv6type=$i
   10248 fi
   10249 rm -f conftest*
   10250 
   10251 			;;
   10252 		kame)
   10253 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10254 /* end confdefs.h.  */
   10255 
   10256 #include <netinet/in.h>
   10257 #ifdef __KAME__
   10258 yes
   10259 #endif
   10260 _ACEOF
   10261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10262   $EGREP "yes" >/dev/null 2>&1; then :
   10263   ipv6type=$i;
   10264 				ipv6lib=inet6
   10265 				ipv6libdir=/usr/local/v6/lib
   10266 				ipv6trylibc=yes
   10267 fi
   10268 rm -f conftest*
   10269 
   10270 			;;
   10271 		linux-glibc)
   10272 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10273 /* end confdefs.h.  */
   10274 
   10275 #include <features.h>
   10276 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
   10277 yes
   10278 #endif
   10279 _ACEOF
   10280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10281   $EGREP "yes" >/dev/null 2>&1; then :
   10282   ipv6type=$i;
   10283 				ipv6trylibc=yes
   10284 fi
   10285 rm -f conftest*
   10286 
   10287 			;;
   10288 		linux-inet6)
   10289 						if test -d /usr/inet6; then
   10290 				ipv6type=$i
   10291 				ipv6lib=inet6
   10292 				ipv6libdir=/usr/inet6/lib
   10293 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
   10294 			fi
   10295 			;;
   10296 		solaris)
   10297 			if test -f /etc/netconfig; then
   10298                           if $GREP -q tcp6 /etc/netconfig; then
   10299 				ipv6type=$i
   10300 				ipv6trylibc=yes
   10301                           fi
   10302                         fi
   10303 			;;
   10304 		toshiba)
   10305 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10306 /* end confdefs.h.  */
   10307 
   10308 #include <sys/param.h>
   10309 #ifdef _TOSHIBA_INET6
   10310 yes
   10311 #endif
   10312 _ACEOF
   10313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10314   $EGREP "yes" >/dev/null 2>&1; then :
   10315   ipv6type=$i;
   10316 				ipv6lib=inet6;
   10317 				ipv6libdir=/usr/local/v6/lib
   10318 fi
   10319 rm -f conftest*
   10320 
   10321 			;;
   10322 		v6d)
   10323 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10324 /* end confdefs.h.  */
   10325 
   10326 #include </usr/local/v6/include/sys/v6config.h>
   10327 #ifdef __V6D__
   10328 yes
   10329 #endif
   10330 _ACEOF
   10331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10332   $EGREP "yes" >/dev/null 2>&1; then :
   10333   ipv6type=$i;
   10334 				ipv6lib=v6;
   10335 				ipv6libdir=/usr/local/v6/lib;
   10336 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
   10337 fi
   10338 rm -f conftest*
   10339 
   10340 			;;
   10341 		zeta)
   10342 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10343 /* end confdefs.h.  */
   10344 
   10345 #include <sys/param.h>
   10346 #ifdef _ZETA_MINAMI_INET6
   10347 yes
   10348 #endif
   10349 _ACEOF
   10350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10351   $EGREP "yes" >/dev/null 2>&1; then :
   10352   ipv6type=$i;
   10353 				ipv6lib=inet6;
   10354 				ipv6libdir=/usr/local/v6/lib
   10355 fi
   10356 rm -f conftest*
   10357 
   10358 			;;
   10359 		esac
   10360 		if test "$ipv6type" != "unknown"; then
   10361 			break
   10362 		fi
   10363 	done
   10364 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
   10365 $as_echo "$ipv6type" >&6; }
   10366 fi
   10367 
   10368 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
   10369 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
   10370 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
   10371 		echo "using lib$ipv6lib"
   10372 	else
   10373 		if test $ipv6trylibc = "yes"; then
   10374 			echo "using libc"
   10375 		else
   10376 			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
   10377 			echo "You need to fetch lib$ipv6lib.a from appropriate"
   10378 			echo 'ipv6 kit and compile beforehand.'
   10379 			exit 1
   10380 		fi
   10381 	fi
   10382 fi
   10383 
   10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
   10385 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
   10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10387 /* end confdefs.h.  */
   10388 
   10389   #include <Carbon/Carbon.h>
   10390 int
   10391 main ()
   10392 {
   10393 FSIORefNum fRef = 0
   10394   ;
   10395   return 0;
   10396 }
   10397 
   10398 _ACEOF
   10399 if ac_fn_c_try_compile "$LINENO"; then :
   10400 
   10401 
   10402 $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
   10403 
   10404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10405 $as_echo "yes" >&6; }
   10406 
   10407 else
   10408 
   10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10410 $as_echo "no" >&6; }
   10411 
   10412 fi
   10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10414 
   10415 # Check for --with-doc-strings
   10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
   10417 $as_echo_n "checking for --with-doc-strings... " >&6; }
   10418 
   10419 # Check whether --with-doc-strings was given.
   10420 if test "${with_doc_strings+set}" = set; then :
   10421   withval=$with_doc_strings;
   10422 fi
   10423 
   10424 
   10425 if test -z "$with_doc_strings"
   10426 then with_doc_strings="yes"
   10427 fi
   10428 if test "$with_doc_strings" != "no"
   10429 then
   10430 
   10431 $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
   10432 
   10433 fi
   10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
   10435 $as_echo "$with_doc_strings" >&6; }
   10436 
   10437 # Check for Python-specific malloc support
   10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
   10439 $as_echo_n "checking for --with-tsc... " >&6; }
   10440 
   10441 # Check whether --with-tsc was given.
   10442 if test "${with_tsc+set}" = set; then :
   10443   withval=$with_tsc;
   10444 if test "$withval" != no
   10445 then
   10446 
   10447 $as_echo "#define WITH_TSC 1" >>confdefs.h
   10448 
   10449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10450 $as_echo "yes" >&6; }
   10451 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10452 $as_echo "no" >&6; }
   10453 fi
   10454 else
   10455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10456 $as_echo "no" >&6; }
   10457 fi
   10458 
   10459 
   10460 # Check for Python-specific malloc support
   10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
   10462 $as_echo_n "checking for --with-pymalloc... " >&6; }
   10463 
   10464 # Check whether --with-pymalloc was given.
   10465 if test "${with_pymalloc+set}" = set; then :
   10466   withval=$with_pymalloc;
   10467 fi
   10468 
   10469 
   10470 if test -z "$with_pymalloc"
   10471 then with_pymalloc="yes"
   10472 fi
   10473 if test "$with_pymalloc" != "no"
   10474 then
   10475 
   10476 $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
   10477 
   10478 fi
   10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
   10480 $as_echo "$with_pymalloc" >&6; }
   10481 
   10482 # Check for Valgrind support
   10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
   10484 $as_echo_n "checking for --with-valgrind... " >&6; }
   10485 
   10486 # Check whether --with-valgrind was given.
   10487 if test "${with_valgrind+set}" = set; then :
   10488   withval=$with_valgrind;
   10489 else
   10490   with_valgrind=no
   10491 fi
   10492 
   10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
   10494 $as_echo "$with_valgrind" >&6; }
   10495 if test "$with_valgrind" != no; then
   10496     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
   10497 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
   10498 
   10499 $as_echo "#define WITH_VALGRIND 1" >>confdefs.h
   10500 
   10501 else
   10502   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
   10503 
   10504 fi
   10505 
   10506 
   10507 fi
   10508 
   10509 # Check for --with-wctype-functions
   10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
   10511 $as_echo_n "checking for --with-wctype-functions... " >&6; }
   10512 
   10513 # Check whether --with-wctype-functions was given.
   10514 if test "${with_wctype_functions+set}" = set; then :
   10515   withval=$with_wctype_functions;
   10516 if test "$withval" != no
   10517 then
   10518 
   10519 $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
   10520 
   10521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10522 $as_echo "yes" >&6; }
   10523 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10524 $as_echo "no" >&6; }
   10525 fi
   10526 else
   10527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10528 $as_echo "no" >&6; }
   10529 fi
   10530 
   10531 
   10532 # -I${DLINCLDIR} is added to the compile rule for importdl.o
   10533 
   10534 DLINCLDIR=.
   10535 
   10536 # the dlopen() function means we might want to use dynload_shlib.o. some
   10537 # platforms, such as AIX, have dlopen(), but don't want to use it.
   10538 for ac_func in dlopen
   10539 do :
   10540   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   10541 if test "x$ac_cv_func_dlopen" = xyes; then :
   10542   cat >>confdefs.h <<_ACEOF
   10543 #define HAVE_DLOPEN 1
   10544 _ACEOF
   10545 
   10546 fi
   10547 done
   10548 
   10549 
   10550 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
   10551 # loading of modules.
   10552 
   10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
   10554 $as_echo_n "checking DYNLOADFILE... " >&6; }
   10555 if test -z "$DYNLOADFILE"
   10556 then
   10557 	case $ac_sys_system/$ac_sys_release in
   10558 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
   10559 	if test "$ac_cv_func_dlopen" = yes
   10560 	then DYNLOADFILE="dynload_shlib.o"
   10561 	else DYNLOADFILE="dynload_aix.o"
   10562 	fi
   10563 	;;
   10564 	BeOS*) DYNLOADFILE="dynload_beos.o";;
   10565 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
   10566 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
   10567 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
   10568 	atheos*) DYNLOADFILE="dynload_atheos.o";;
   10569 	*)
   10570 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub
   10571 	# out any dynamic loading
   10572 	if test "$ac_cv_func_dlopen" = yes
   10573 	then DYNLOADFILE="dynload_shlib.o"
   10574 	else DYNLOADFILE="dynload_stub.o"
   10575 	fi
   10576 	;;
   10577 	esac
   10578 fi
   10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
   10580 $as_echo "$DYNLOADFILE" >&6; }
   10581 if test "$DYNLOADFILE" != "dynload_stub.o"
   10582 then
   10583 
   10584 $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
   10585 
   10586 fi
   10587 
   10588 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
   10589 
   10590 
   10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
   10592 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
   10593 if test -z "$MACHDEP_OBJS"
   10594 then
   10595 	MACHDEP_OBJS=$extra_machdep_objs
   10596 else
   10597 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
   10598 fi
   10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
   10600 $as_echo "MACHDEP_OBJS" >&6; }
   10601 
   10602 # checks for library functions
   10603 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
   10604  clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
   10605  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
   10606  getentropy \
   10607  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
   10608  initgroups kill killpg lchown lstat mkfifo mknod mktime mmap \
   10609  mremap nice pathconf pause plock poll pthread_init \
   10610  putenv readlink realpath \
   10611  select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
   10612  setgid \
   10613  setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
   10614  setlocale setregid setreuid setresuid setresgid \
   10615  setsid setpgid setpgrp setuid setvbuf snprintf \
   10616  sigaction siginterrupt sigrelse strftime \
   10617  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
   10618  truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
   10619 do :
   10620   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10621 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   10622 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   10623   cat >>confdefs.h <<_ACEOF
   10624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10625 _ACEOF
   10626 
   10627 fi
   10628 done
   10629 
   10630 
   10631 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
   10632 # links. Some libc implementations have a stub lchmod implementation that always
   10633 # returns an error.
   10634 if test "$MACHDEP" != linux; then
   10635   ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
   10636 if test "x$ac_cv_func_lchmod" = xyes; then :
   10637 
   10638 fi
   10639 
   10640 fi
   10641 
   10642 # For some functions, having a definition is not sufficient, since
   10643 # we want to take their address.
   10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
   10645 $as_echo_n "checking for chroot... " >&6; }
   10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10647 /* end confdefs.h.  */
   10648 #include <unistd.h>
   10649 int
   10650 main ()
   10651 {
   10652 void *x=chroot
   10653   ;
   10654   return 0;
   10655 }
   10656 _ACEOF
   10657 if ac_fn_c_try_compile "$LINENO"; then :
   10658 
   10659 $as_echo "#define HAVE_CHROOT 1" >>confdefs.h
   10660 
   10661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10662 $as_echo "yes" >&6; }
   10663 else
   10664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10665 $as_echo "no" >&6; }
   10666 
   10667 fi
   10668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
   10670 $as_echo_n "checking for link... " >&6; }
   10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10672 /* end confdefs.h.  */
   10673 #include <unistd.h>
   10674 int
   10675 main ()
   10676 {
   10677 void *x=link
   10678   ;
   10679   return 0;
   10680 }
   10681 _ACEOF
   10682 if ac_fn_c_try_compile "$LINENO"; then :
   10683 
   10684 $as_echo "#define HAVE_LINK 1" >>confdefs.h
   10685 
   10686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10687 $as_echo "yes" >&6; }
   10688 else
   10689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10690 $as_echo "no" >&6; }
   10691 
   10692 fi
   10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
   10695 $as_echo_n "checking for symlink... " >&6; }
   10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10697 /* end confdefs.h.  */
   10698 #include <unistd.h>
   10699 int
   10700 main ()
   10701 {
   10702 void *x=symlink
   10703   ;
   10704   return 0;
   10705 }
   10706 _ACEOF
   10707 if ac_fn_c_try_compile "$LINENO"; then :
   10708 
   10709 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
   10710 
   10711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10712 $as_echo "yes" >&6; }
   10713 else
   10714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10715 $as_echo "no" >&6; }
   10716 
   10717 fi
   10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
   10720 $as_echo_n "checking for fchdir... " >&6; }
   10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10722 /* end confdefs.h.  */
   10723 #include <unistd.h>
   10724 int
   10725 main ()
   10726 {
   10727 void *x=fchdir
   10728   ;
   10729   return 0;
   10730 }
   10731 _ACEOF
   10732 if ac_fn_c_try_compile "$LINENO"; then :
   10733 
   10734 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
   10735 
   10736    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10737 $as_echo "yes" >&6; }
   10738 else
   10739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10740 $as_echo "no" >&6; }
   10741 
   10742 fi
   10743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
   10745 $as_echo_n "checking for fsync... " >&6; }
   10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10747 /* end confdefs.h.  */
   10748 #include <unistd.h>
   10749 int
   10750 main ()
   10751 {
   10752 void *x=fsync
   10753   ;
   10754   return 0;
   10755 }
   10756 _ACEOF
   10757 if ac_fn_c_try_compile "$LINENO"; then :
   10758 
   10759 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h
   10760 
   10761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10762 $as_echo "yes" >&6; }
   10763 else
   10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10765 $as_echo "no" >&6; }
   10766 
   10767 fi
   10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
   10770 $as_echo_n "checking for fdatasync... " >&6; }
   10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10772 /* end confdefs.h.  */
   10773 #include <unistd.h>
   10774 int
   10775 main ()
   10776 {
   10777 void *x=fdatasync
   10778   ;
   10779   return 0;
   10780 }
   10781 _ACEOF
   10782 if ac_fn_c_try_compile "$LINENO"; then :
   10783 
   10784 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
   10785 
   10786    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10787 $as_echo "yes" >&6; }
   10788 else
   10789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10790 $as_echo "no" >&6; }
   10791 
   10792 fi
   10793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
   10795 $as_echo_n "checking for epoll... " >&6; }
   10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10797 /* end confdefs.h.  */
   10798 #include <sys/epoll.h>
   10799 int
   10800 main ()
   10801 {
   10802 void *x=epoll_create
   10803   ;
   10804   return 0;
   10805 }
   10806 _ACEOF
   10807 if ac_fn_c_try_compile "$LINENO"; then :
   10808 
   10809 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
   10810 
   10811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10812 $as_echo "yes" >&6; }
   10813 else
   10814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10815 $as_echo "no" >&6; }
   10816 
   10817 fi
   10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
   10820 $as_echo_n "checking for kqueue... " >&6; }
   10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10822 /* end confdefs.h.  */
   10823 
   10824 #include <sys/types.h>
   10825 #include <sys/event.h>
   10826 
   10827 int
   10828 main ()
   10829 {
   10830 int x=kqueue()
   10831   ;
   10832   return 0;
   10833 }
   10834 _ACEOF
   10835 if ac_fn_c_try_compile "$LINENO"; then :
   10836 
   10837 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
   10838 
   10839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10840 $as_echo "yes" >&6; }
   10841 else
   10842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10843 $as_echo "no" >&6; }
   10844 
   10845 fi
   10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10847 # On some systems (eg. FreeBSD 5), we would find a definition of the
   10848 # functions ctermid_r, setgroups in the library, but no prototype
   10849 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
   10850 # address to avoid compiler warnings and potential miscompilations
   10851 # because of the missing prototypes.
   10852 
   10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
   10854 $as_echo_n "checking for ctermid_r... " >&6; }
   10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10856 /* end confdefs.h.  */
   10857 
   10858 #include <stdio.h>
   10859 
   10860 int
   10861 main ()
   10862 {
   10863 void* p = ctermid_r
   10864   ;
   10865   return 0;
   10866 }
   10867 _ACEOF
   10868 if ac_fn_c_try_compile "$LINENO"; then :
   10869 
   10870 $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
   10871 
   10872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10873 $as_echo "yes" >&6; }
   10874 else
   10875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10876 $as_echo "no" >&6; }
   10877 
   10878 fi
   10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10880 
   10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
   10882 $as_echo_n "checking for flock declaration... " >&6; }
   10883 if ${ac_cv_flock_decl+:} false; then :
   10884   $as_echo_n "(cached) " >&6
   10885 else
   10886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10887 /* end confdefs.h.  */
   10888 #include <sys/file.h>
   10889 int
   10890 main ()
   10891 {
   10892 void* p = flock
   10893 
   10894   ;
   10895   return 0;
   10896 }
   10897 _ACEOF
   10898 if ac_fn_c_try_compile "$LINENO"; then :
   10899   ac_cv_flock_decl=yes
   10900 else
   10901   ac_cv_flock_decl=no
   10902 
   10903 fi
   10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10905 
   10906 fi
   10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
   10908 $as_echo "$ac_cv_flock_decl" >&6; }
   10909 if test "x${ac_cv_flock_decl}" = xyes; then
   10910   for ac_func in flock
   10911 do :
   10912   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
   10913 if test "x$ac_cv_func_flock" = xyes; then :
   10914   cat >>confdefs.h <<_ACEOF
   10915 #define HAVE_FLOCK 1
   10916 _ACEOF
   10917 
   10918 else
   10919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
   10920 $as_echo_n "checking for flock in -lbsd... " >&6; }
   10921 if ${ac_cv_lib_bsd_flock+:} false; then :
   10922   $as_echo_n "(cached) " >&6
   10923 else
   10924   ac_check_lib_save_LIBS=$LIBS
   10925 LIBS="-lbsd  $LIBS"
   10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10927 /* end confdefs.h.  */
   10928 
   10929 /* Override any GCC internal prototype to avoid an error.
   10930    Use char because int might match the return type of a GCC
   10931    builtin and then its argument prototype would still apply.  */
   10932 #ifdef __cplusplus
   10933 extern "C"
   10934 #endif
   10935 char flock ();
   10936 int
   10937 main ()
   10938 {
   10939 return flock ();
   10940   ;
   10941   return 0;
   10942 }
   10943 _ACEOF
   10944 if ac_fn_c_try_link "$LINENO"; then :
   10945   ac_cv_lib_bsd_flock=yes
   10946 else
   10947   ac_cv_lib_bsd_flock=no
   10948 fi
   10949 rm -f core conftest.err conftest.$ac_objext \
   10950     conftest$ac_exeext conftest.$ac_ext
   10951 LIBS=$ac_check_lib_save_LIBS
   10952 fi
   10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
   10954 $as_echo "$ac_cv_lib_bsd_flock" >&6; }
   10955 if test "x$ac_cv_lib_bsd_flock" = xyes; then :
   10956   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
   10957 
   10958 
   10959 $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
   10960 
   10961 
   10962 fi
   10963 
   10964 
   10965 fi
   10966 done
   10967 
   10968 fi
   10969 
   10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
   10971 $as_echo_n "checking for getpagesize... " >&6; }
   10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10973 /* end confdefs.h.  */
   10974 
   10975 #include <unistd.h>
   10976 
   10977 int
   10978 main ()
   10979 {
   10980 void* p = getpagesize
   10981   ;
   10982   return 0;
   10983 }
   10984 _ACEOF
   10985 if ac_fn_c_try_compile "$LINENO"; then :
   10986 
   10987 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
   10988 
   10989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10990 $as_echo "yes" >&6; }
   10991 else
   10992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10993 $as_echo "no" >&6; }
   10994 
   10995 fi
   10996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10997 
   10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
   10999 $as_echo_n "checking for broken unsetenv... " >&6; }
   11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11001 /* end confdefs.h.  */
   11002 
   11003 #include <stdlib.h>
   11004 
   11005 int
   11006 main ()
   11007 {
   11008 int res = unsetenv("DUMMY")
   11009   ;
   11010   return 0;
   11011 }
   11012 _ACEOF
   11013 if ac_fn_c_try_compile "$LINENO"; then :
   11014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11015 $as_echo "no" >&6; }
   11016 else
   11017 
   11018 $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
   11019 
   11020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11021 $as_echo "yes" >&6; }
   11022 
   11023 fi
   11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11025 
   11026 for ac_prog in true
   11027 do
   11028   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11029 set dummy $ac_prog; ac_word=$2
   11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11031 $as_echo_n "checking for $ac_word... " >&6; }
   11032 if ${ac_cv_prog_TRUE+:} false; then :
   11033   $as_echo_n "(cached) " >&6
   11034 else
   11035   if test -n "$TRUE"; then
   11036   ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
   11037 else
   11038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11039 for as_dir in $PATH
   11040 do
   11041   IFS=$as_save_IFS
   11042   test -z "$as_dir" && as_dir=.
   11043     for ac_exec_ext in '' $ac_executable_extensions; do
   11044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11045     ac_cv_prog_TRUE="$ac_prog"
   11046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11047     break 2
   11048   fi
   11049 done
   11050   done
   11051 IFS=$as_save_IFS
   11052 
   11053 fi
   11054 fi
   11055 TRUE=$ac_cv_prog_TRUE
   11056 if test -n "$TRUE"; then
   11057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
   11058 $as_echo "$TRUE" >&6; }
   11059 else
   11060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11061 $as_echo "no" >&6; }
   11062 fi
   11063 
   11064 
   11065   test -n "$TRUE" && break
   11066 done
   11067 test -n "$TRUE" || TRUE="/bin/true"
   11068 
   11069 
   11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
   11071 $as_echo_n "checking for inet_aton in -lc... " >&6; }
   11072 if ${ac_cv_lib_c_inet_aton+:} false; then :
   11073   $as_echo_n "(cached) " >&6
   11074 else
   11075   ac_check_lib_save_LIBS=$LIBS
   11076 LIBS="-lc  $LIBS"
   11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11078 /* end confdefs.h.  */
   11079 
   11080 /* Override any GCC internal prototype to avoid an error.
   11081    Use char because int might match the return type of a GCC
   11082    builtin and then its argument prototype would still apply.  */
   11083 #ifdef __cplusplus
   11084 extern "C"
   11085 #endif
   11086 char inet_aton ();
   11087 int
   11088 main ()
   11089 {
   11090 return inet_aton ();
   11091   ;
   11092   return 0;
   11093 }
   11094 _ACEOF
   11095 if ac_fn_c_try_link "$LINENO"; then :
   11096   ac_cv_lib_c_inet_aton=yes
   11097 else
   11098   ac_cv_lib_c_inet_aton=no
   11099 fi
   11100 rm -f core conftest.err conftest.$ac_objext \
   11101     conftest$ac_exeext conftest.$ac_ext
   11102 LIBS=$ac_check_lib_save_LIBS
   11103 fi
   11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
   11105 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
   11106 if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
   11107   $ac_cv_prog_TRUE
   11108 else
   11109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
   11110 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
   11111 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
   11112   $as_echo_n "(cached) " >&6
   11113 else
   11114   ac_check_lib_save_LIBS=$LIBS
   11115 LIBS="-lresolv  $LIBS"
   11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11117 /* end confdefs.h.  */
   11118 
   11119 /* Override any GCC internal prototype to avoid an error.
   11120    Use char because int might match the return type of a GCC
   11121    builtin and then its argument prototype would still apply.  */
   11122 #ifdef __cplusplus
   11123 extern "C"
   11124 #endif
   11125 char inet_aton ();
   11126 int
   11127 main ()
   11128 {
   11129 return inet_aton ();
   11130   ;
   11131   return 0;
   11132 }
   11133 _ACEOF
   11134 if ac_fn_c_try_link "$LINENO"; then :
   11135   ac_cv_lib_resolv_inet_aton=yes
   11136 else
   11137   ac_cv_lib_resolv_inet_aton=no
   11138 fi
   11139 rm -f core conftest.err conftest.$ac_objext \
   11140     conftest$ac_exeext conftest.$ac_ext
   11141 LIBS=$ac_check_lib_save_LIBS
   11142 fi
   11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
   11144 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
   11145 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
   11146   cat >>confdefs.h <<_ACEOF
   11147 #define HAVE_LIBRESOLV 1
   11148 _ACEOF
   11149 
   11150   LIBS="-lresolv $LIBS"
   11151 
   11152 fi
   11153 
   11154 
   11155 fi
   11156 
   11157 
   11158 # On Tru64, chflags seems to be present, but calling it will
   11159 # exit Python
   11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
   11161 $as_echo_n "checking for chflags... " >&6; }
   11162 if ${ac_cv_have_chflags+:} false; then :
   11163   $as_echo_n "(cached) " >&6
   11164 else
   11165   if test "$cross_compiling" = yes; then :
   11166   ac_cv_have_chflags=cross
   11167 else
   11168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11169 /* end confdefs.h.  */
   11170 
   11171 #include <sys/stat.h>
   11172 #include <unistd.h>
   11173 int main(int argc, char*argv[])
   11174 {
   11175   if(chflags(argv[0], 0) != 0)
   11176     return 1;
   11177   return 0;
   11178 }
   11179 
   11180 _ACEOF
   11181 if ac_fn_c_try_run "$LINENO"; then :
   11182   ac_cv_have_chflags=yes
   11183 else
   11184   ac_cv_have_chflags=no
   11185 fi
   11186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11187   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11188 fi
   11189 
   11190 
   11191 fi
   11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
   11193 $as_echo "$ac_cv_have_chflags" >&6; }
   11194 if test "$ac_cv_have_chflags" = cross ; then
   11195   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
   11196 if test "x$ac_cv_func_chflags" = xyes; then :
   11197   ac_cv_have_chflags="yes"
   11198 else
   11199   ac_cv_have_chflags="no"
   11200 fi
   11201 
   11202 fi
   11203 if test "$ac_cv_have_chflags" = yes ; then
   11204 
   11205 $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
   11206 
   11207 fi
   11208 
   11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
   11210 $as_echo_n "checking for lchflags... " >&6; }
   11211 if ${ac_cv_have_lchflags+:} false; then :
   11212   $as_echo_n "(cached) " >&6
   11213 else
   11214   if test "$cross_compiling" = yes; then :
   11215   ac_cv_have_lchflags=cross
   11216 else
   11217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11218 /* end confdefs.h.  */
   11219 
   11220 #include <sys/stat.h>
   11221 #include <unistd.h>
   11222 int main(int argc, char*argv[])
   11223 {
   11224   if(lchflags(argv[0], 0) != 0)
   11225     return 1;
   11226   return 0;
   11227 }
   11228 
   11229 _ACEOF
   11230 if ac_fn_c_try_run "$LINENO"; then :
   11231   ac_cv_have_lchflags=yes
   11232 else
   11233   ac_cv_have_lchflags=no
   11234 fi
   11235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11236   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11237 fi
   11238 
   11239 
   11240 fi
   11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
   11242 $as_echo "$ac_cv_have_lchflags" >&6; }
   11243 if test "$ac_cv_have_lchflags" = cross ; then
   11244   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
   11245 if test "x$ac_cv_func_lchflags" = xyes; then :
   11246   ac_cv_have_lchflags="yes"
   11247 else
   11248   ac_cv_have_lchflags="no"
   11249 fi
   11250 
   11251 fi
   11252 if test "$ac_cv_have_lchflags" = yes ; then
   11253 
   11254 $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
   11255 
   11256 fi
   11257 
   11258 case $ac_sys_system/$ac_sys_release in
   11259 Darwin/*)
   11260 	_CUR_CFLAGS="${CFLAGS}"
   11261 	_CUR_LDFLAGS="${LDFLAGS}"
   11262 	CFLAGS="${CFLAGS} -Wl,-search_paths_first"
   11263 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
   11264 	;;
   11265 esac
   11266 
   11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
   11268 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
   11269 if ${ac_cv_lib_z_inflateCopy+:} false; then :
   11270   $as_echo_n "(cached) " >&6
   11271 else
   11272   ac_check_lib_save_LIBS=$LIBS
   11273 LIBS="-lz  $LIBS"
   11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11275 /* end confdefs.h.  */
   11276 
   11277 /* Override any GCC internal prototype to avoid an error.
   11278    Use char because int might match the return type of a GCC
   11279    builtin and then its argument prototype would still apply.  */
   11280 #ifdef __cplusplus
   11281 extern "C"
   11282 #endif
   11283 char inflateCopy ();
   11284 int
   11285 main ()
   11286 {
   11287 return inflateCopy ();
   11288   ;
   11289   return 0;
   11290 }
   11291 _ACEOF
   11292 if ac_fn_c_try_link "$LINENO"; then :
   11293   ac_cv_lib_z_inflateCopy=yes
   11294 else
   11295   ac_cv_lib_z_inflateCopy=no
   11296 fi
   11297 rm -f core conftest.err conftest.$ac_objext \
   11298     conftest$ac_exeext conftest.$ac_ext
   11299 LIBS=$ac_check_lib_save_LIBS
   11300 fi
   11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
   11302 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
   11303 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
   11304 
   11305 $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
   11306 
   11307 fi
   11308 
   11309 
   11310 case $ac_sys_system/$ac_sys_release in
   11311 Darwin/*)
   11312 	CFLAGS="${_CUR_CFLAGS}"
   11313 	LDFLAGS="${_CUR_LDFLAGS}"
   11314 	;;
   11315 esac
   11316 
   11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
   11318 $as_echo_n "checking for hstrerror... " >&6; }
   11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11320 /* end confdefs.h.  */
   11321 
   11322 #include <netdb.h>
   11323 
   11324 int
   11325 main ()
   11326 {
   11327 void* p = hstrerror; hstrerror(0)
   11328   ;
   11329   return 0;
   11330 }
   11331 _ACEOF
   11332 if ac_fn_c_try_link "$LINENO"; then :
   11333 
   11334 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
   11335 
   11336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11337 $as_echo "yes" >&6; }
   11338 else
   11339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11340 $as_echo "no" >&6; }
   11341 
   11342 fi
   11343 rm -f core conftest.err conftest.$ac_objext \
   11344     conftest$ac_exeext conftest.$ac_ext
   11345 
   11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
   11347 $as_echo_n "checking for inet_aton... " >&6; }
   11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11349 /* end confdefs.h.  */
   11350 
   11351 #include <sys/types.h>
   11352 #include <sys/socket.h>
   11353 #include <netinet/in.h>
   11354 #include <arpa/inet.h>
   11355 
   11356 int
   11357 main ()
   11358 {
   11359 void* p = inet_aton;inet_aton(0,0)
   11360   ;
   11361   return 0;
   11362 }
   11363 _ACEOF
   11364 if ac_fn_c_try_link "$LINENO"; then :
   11365 
   11366 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
   11367 
   11368    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11369 $as_echo "yes" >&6; }
   11370 else
   11371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11372 $as_echo "no" >&6; }
   11373 
   11374 fi
   11375 rm -f core conftest.err conftest.$ac_objext \
   11376     conftest$ac_exeext conftest.$ac_ext
   11377 
   11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
   11379 $as_echo_n "checking for inet_pton... " >&6; }
   11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11381 /* end confdefs.h.  */
   11382 
   11383 #include <sys/types.h>
   11384 #include <sys/socket.h>
   11385 #include <netinet/in.h>
   11386 #include <arpa/inet.h>
   11387 
   11388 int
   11389 main ()
   11390 {
   11391 void* p = inet_pton
   11392   ;
   11393   return 0;
   11394 }
   11395 _ACEOF
   11396 if ac_fn_c_try_compile "$LINENO"; then :
   11397 
   11398 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
   11399 
   11400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11401 $as_echo "yes" >&6; }
   11402 else
   11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11404 $as_echo "no" >&6; }
   11405 
   11406 fi
   11407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11408 
   11409 # On some systems, setgroups is in unistd.h, on others, in grp.h
   11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
   11411 $as_echo_n "checking for setgroups... " >&6; }
   11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11413 /* end confdefs.h.  */
   11414 
   11415 #include <unistd.h>
   11416 #ifdef HAVE_GRP_H
   11417 #include <grp.h>
   11418 #endif
   11419 
   11420 int
   11421 main ()
   11422 {
   11423 void* p = setgroups
   11424   ;
   11425   return 0;
   11426 }
   11427 _ACEOF
   11428 if ac_fn_c_try_compile "$LINENO"; then :
   11429 
   11430 $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
   11431 
   11432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11433 $as_echo "yes" >&6; }
   11434 else
   11435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11436 $as_echo "no" >&6; }
   11437 
   11438 fi
   11439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11440 
   11441 # check for openpty and forkpty
   11442 
   11443 for ac_func in openpty
   11444 do :
   11445   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
   11446 if test "x$ac_cv_func_openpty" = xyes; then :
   11447   cat >>confdefs.h <<_ACEOF
   11448 #define HAVE_OPENPTY 1
   11449 _ACEOF
   11450 
   11451 else
   11452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
   11453 $as_echo_n "checking for openpty in -lutil... " >&6; }
   11454 if ${ac_cv_lib_util_openpty+:} false; then :
   11455   $as_echo_n "(cached) " >&6
   11456 else
   11457   ac_check_lib_save_LIBS=$LIBS
   11458 LIBS="-lutil  $LIBS"
   11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11460 /* end confdefs.h.  */
   11461 
   11462 /* Override any GCC internal prototype to avoid an error.
   11463    Use char because int might match the return type of a GCC
   11464    builtin and then its argument prototype would still apply.  */
   11465 #ifdef __cplusplus
   11466 extern "C"
   11467 #endif
   11468 char openpty ();
   11469 int
   11470 main ()
   11471 {
   11472 return openpty ();
   11473   ;
   11474   return 0;
   11475 }
   11476 _ACEOF
   11477 if ac_fn_c_try_link "$LINENO"; then :
   11478   ac_cv_lib_util_openpty=yes
   11479 else
   11480   ac_cv_lib_util_openpty=no
   11481 fi
   11482 rm -f core conftest.err conftest.$ac_objext \
   11483     conftest$ac_exeext conftest.$ac_ext
   11484 LIBS=$ac_check_lib_save_LIBS
   11485 fi
   11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
   11487 $as_echo "$ac_cv_lib_util_openpty" >&6; }
   11488 if test "x$ac_cv_lib_util_openpty" = xyes; then :
   11489   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
   11490  LIBS="$LIBS -lutil"
   11491 else
   11492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
   11493 $as_echo_n "checking for openpty in -lbsd... " >&6; }
   11494 if ${ac_cv_lib_bsd_openpty+:} false; then :
   11495   $as_echo_n "(cached) " >&6
   11496 else
   11497   ac_check_lib_save_LIBS=$LIBS
   11498 LIBS="-lbsd  $LIBS"
   11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11500 /* end confdefs.h.  */
   11501 
   11502 /* Override any GCC internal prototype to avoid an error.
   11503    Use char because int might match the return type of a GCC
   11504    builtin and then its argument prototype would still apply.  */
   11505 #ifdef __cplusplus
   11506 extern "C"
   11507 #endif
   11508 char openpty ();
   11509 int
   11510 main ()
   11511 {
   11512 return openpty ();
   11513   ;
   11514   return 0;
   11515 }
   11516 _ACEOF
   11517 if ac_fn_c_try_link "$LINENO"; then :
   11518   ac_cv_lib_bsd_openpty=yes
   11519 else
   11520   ac_cv_lib_bsd_openpty=no
   11521 fi
   11522 rm -f core conftest.err conftest.$ac_objext \
   11523     conftest$ac_exeext conftest.$ac_ext
   11524 LIBS=$ac_check_lib_save_LIBS
   11525 fi
   11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
   11527 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
   11528 if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
   11529   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
   11530  LIBS="$LIBS -lbsd"
   11531 fi
   11532 
   11533 
   11534 fi
   11535 
   11536 
   11537 fi
   11538 done
   11539 
   11540 for ac_func in forkpty
   11541 do :
   11542   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
   11543 if test "x$ac_cv_func_forkpty" = xyes; then :
   11544   cat >>confdefs.h <<_ACEOF
   11545 #define HAVE_FORKPTY 1
   11546 _ACEOF
   11547 
   11548 else
   11549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
   11550 $as_echo_n "checking for forkpty in -lutil... " >&6; }
   11551 if ${ac_cv_lib_util_forkpty+:} false; then :
   11552   $as_echo_n "(cached) " >&6
   11553 else
   11554   ac_check_lib_save_LIBS=$LIBS
   11555 LIBS="-lutil  $LIBS"
   11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11557 /* end confdefs.h.  */
   11558 
   11559 /* Override any GCC internal prototype to avoid an error.
   11560    Use char because int might match the return type of a GCC
   11561    builtin and then its argument prototype would still apply.  */
   11562 #ifdef __cplusplus
   11563 extern "C"
   11564 #endif
   11565 char forkpty ();
   11566 int
   11567 main ()
   11568 {
   11569 return forkpty ();
   11570   ;
   11571   return 0;
   11572 }
   11573 _ACEOF
   11574 if ac_fn_c_try_link "$LINENO"; then :
   11575   ac_cv_lib_util_forkpty=yes
   11576 else
   11577   ac_cv_lib_util_forkpty=no
   11578 fi
   11579 rm -f core conftest.err conftest.$ac_objext \
   11580     conftest$ac_exeext conftest.$ac_ext
   11581 LIBS=$ac_check_lib_save_LIBS
   11582 fi
   11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
   11584 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
   11585 if test "x$ac_cv_lib_util_forkpty" = xyes; then :
   11586   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
   11587  LIBS="$LIBS -lutil"
   11588 else
   11589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
   11590 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
   11591 if ${ac_cv_lib_bsd_forkpty+:} false; then :
   11592   $as_echo_n "(cached) " >&6
   11593 else
   11594   ac_check_lib_save_LIBS=$LIBS
   11595 LIBS="-lbsd  $LIBS"
   11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11597 /* end confdefs.h.  */
   11598 
   11599 /* Override any GCC internal prototype to avoid an error.
   11600    Use char because int might match the return type of a GCC
   11601    builtin and then its argument prototype would still apply.  */
   11602 #ifdef __cplusplus
   11603 extern "C"
   11604 #endif
   11605 char forkpty ();
   11606 int
   11607 main ()
   11608 {
   11609 return forkpty ();
   11610   ;
   11611   return 0;
   11612 }
   11613 _ACEOF
   11614 if ac_fn_c_try_link "$LINENO"; then :
   11615   ac_cv_lib_bsd_forkpty=yes
   11616 else
   11617   ac_cv_lib_bsd_forkpty=no
   11618 fi
   11619 rm -f core conftest.err conftest.$ac_objext \
   11620     conftest$ac_exeext conftest.$ac_ext
   11621 LIBS=$ac_check_lib_save_LIBS
   11622 fi
   11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
   11624 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
   11625 if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
   11626   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
   11627  LIBS="$LIBS -lbsd"
   11628 fi
   11629 
   11630 
   11631 fi
   11632 
   11633 
   11634 fi
   11635 done
   11636 
   11637 
   11638 # Stuff for expat.
   11639 for ac_func in memmove
   11640 do :
   11641   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
   11642 if test "x$ac_cv_func_memmove" = xyes; then :
   11643   cat >>confdefs.h <<_ACEOF
   11644 #define HAVE_MEMMOVE 1
   11645 _ACEOF
   11646 
   11647 fi
   11648 done
   11649 
   11650 
   11651 # check for long file support functions
   11652 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
   11653 do :
   11654   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11655 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11656 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   11657   cat >>confdefs.h <<_ACEOF
   11658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11659 _ACEOF
   11660 
   11661 fi
   11662 done
   11663 
   11664 
   11665 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
   11666 if test "x$ac_cv_func_dup2" = xyes; then :
   11667   $as_echo "#define HAVE_DUP2 1" >>confdefs.h
   11668 
   11669 else
   11670   case " $LIBOBJS " in
   11671   *" dup2.$ac_objext "* ) ;;
   11672   *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
   11673  ;;
   11674 esac
   11675 
   11676 fi
   11677 
   11678 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
   11679 if test "x$ac_cv_func_getcwd" = xyes; then :
   11680   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
   11681 
   11682 else
   11683   case " $LIBOBJS " in
   11684   *" getcwd.$ac_objext "* ) ;;
   11685   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
   11686  ;;
   11687 esac
   11688 
   11689 fi
   11690 
   11691 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
   11692 if test "x$ac_cv_func_strdup" = xyes; then :
   11693   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
   11694 
   11695 else
   11696   case " $LIBOBJS " in
   11697   *" strdup.$ac_objext "* ) ;;
   11698   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
   11699  ;;
   11700 esac
   11701 
   11702 fi
   11703 
   11704 
   11705 for ac_func in getpgrp
   11706 do :
   11707   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
   11708 if test "x$ac_cv_func_getpgrp" = xyes; then :
   11709   cat >>confdefs.h <<_ACEOF
   11710 #define HAVE_GETPGRP 1
   11711 _ACEOF
   11712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11713 /* end confdefs.h.  */
   11714 #include <unistd.h>
   11715 int
   11716 main ()
   11717 {
   11718 getpgrp(0);
   11719   ;
   11720   return 0;
   11721 }
   11722 _ACEOF
   11723 if ac_fn_c_try_compile "$LINENO"; then :
   11724 
   11725 $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
   11726 
   11727 fi
   11728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11729 
   11730 fi
   11731 done
   11732 
   11733 for ac_func in setpgrp
   11734 do :
   11735   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
   11736 if test "x$ac_cv_func_setpgrp" = xyes; then :
   11737   cat >>confdefs.h <<_ACEOF
   11738 #define HAVE_SETPGRP 1
   11739 _ACEOF
   11740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11741 /* end confdefs.h.  */
   11742 #include <unistd.h>
   11743 int
   11744 main ()
   11745 {
   11746 setpgrp(0,0);
   11747   ;
   11748   return 0;
   11749 }
   11750 _ACEOF
   11751 if ac_fn_c_try_compile "$LINENO"; then :
   11752 
   11753 $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
   11754 
   11755 fi
   11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11757 
   11758 fi
   11759 done
   11760 
   11761 for ac_func in gettimeofday
   11762 do :
   11763   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
   11764 if test "x$ac_cv_func_gettimeofday" = xyes; then :
   11765   cat >>confdefs.h <<_ACEOF
   11766 #define HAVE_GETTIMEOFDAY 1
   11767 _ACEOF
   11768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11769 /* end confdefs.h.  */
   11770 #include <sys/time.h>
   11771 int
   11772 main ()
   11773 {
   11774 gettimeofday((struct timeval*)0,(struct timezone*)0);
   11775   ;
   11776   return 0;
   11777 }
   11778 _ACEOF
   11779 if ac_fn_c_try_compile "$LINENO"; then :
   11780 
   11781 else
   11782 
   11783 $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
   11784 
   11785 
   11786 fi
   11787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11788 
   11789 fi
   11790 done
   11791 
   11792 
   11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
   11794 $as_echo_n "checking for major... " >&6; }
   11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11796 /* end confdefs.h.  */
   11797 
   11798 #if defined(MAJOR_IN_MKDEV)
   11799 #include <sys/mkdev.h>
   11800 #elif defined(MAJOR_IN_SYSMACROS)
   11801 #include <sys/sysmacros.h>
   11802 #else
   11803 #include <sys/types.h>
   11804 #endif
   11805 
   11806 int
   11807 main ()
   11808 {
   11809 
   11810   makedev(major(0),minor(0));
   11811 
   11812   ;
   11813   return 0;
   11814 }
   11815 _ACEOF
   11816 if ac_fn_c_try_link "$LINENO"; then :
   11817 
   11818 
   11819 $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
   11820 
   11821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11822 $as_echo "yes" >&6; }
   11823 
   11824 else
   11825 
   11826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11827 $as_echo "no" >&6; }
   11828 
   11829 fi
   11830 rm -f core conftest.err conftest.$ac_objext \
   11831     conftest$ac_exeext conftest.$ac_ext
   11832 
   11833 # On OSF/1 V5.1, getaddrinfo is available, but a define
   11834 # for [no]getaddrinfo in netdb.h.
   11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
   11836 $as_echo_n "checking for getaddrinfo... " >&6; }
   11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11838 /* end confdefs.h.  */
   11839 
   11840 #include <sys/types.h>
   11841 #include <sys/socket.h>
   11842 #include <netdb.h>
   11843 #include <stdio.h>
   11844 
   11845 int
   11846 main ()
   11847 {
   11848 getaddrinfo(NULL, NULL, NULL, NULL);
   11849   ;
   11850   return 0;
   11851 }
   11852 _ACEOF
   11853 if ac_fn_c_try_link "$LINENO"; then :
   11854   have_getaddrinfo=yes
   11855 else
   11856   have_getaddrinfo=no
   11857 fi
   11858 rm -f core conftest.err conftest.$ac_objext \
   11859     conftest$ac_exeext conftest.$ac_ext
   11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
   11861 $as_echo "$have_getaddrinfo" >&6; }
   11862 if test $have_getaddrinfo = yes
   11863 then
   11864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
   11865 $as_echo_n "checking getaddrinfo bug... " >&6; }
   11866   if ${ac_cv_buggy_getaddrinfo+:} false; then :
   11867   $as_echo_n "(cached) " >&6
   11868 else
   11869   if test "$cross_compiling" = yes; then :
   11870 
   11871 if test "${enable_ipv6+set}" = set; then
   11872   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
   11873 else
   11874   ac_cv_buggy_getaddrinfo=yes
   11875 fi
   11876 else
   11877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11878 /* end confdefs.h.  */
   11879 
   11880 #include <stdio.h>
   11881 #include <sys/types.h>
   11882 #include <netdb.h>
   11883 #include <string.h>
   11884 #include <sys/socket.h>
   11885 #include <netinet/in.h>
   11886 
   11887 int main()
   11888 {
   11889   int passive, gaierr, inet4 = 0, inet6 = 0;
   11890   struct addrinfo hints, *ai, *aitop;
   11891   char straddr[INET6_ADDRSTRLEN], strport[16];
   11892 
   11893   for (passive = 0; passive <= 1; passive++) {
   11894     memset(&hints, 0, sizeof(hints));
   11895     hints.ai_family = AF_UNSPEC;
   11896     hints.ai_flags = passive ? AI_PASSIVE : 0;
   11897     hints.ai_socktype = SOCK_STREAM;
   11898     hints.ai_protocol = IPPROTO_TCP;
   11899     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
   11900       (void)gai_strerror(gaierr);
   11901       goto bad;
   11902     }
   11903     for (ai = aitop; ai; ai = ai->ai_next) {
   11904       if (ai->ai_addr == NULL ||
   11905           ai->ai_addrlen == 0 ||
   11906           getnameinfo(ai->ai_addr, ai->ai_addrlen,
   11907                       straddr, sizeof(straddr), strport, sizeof(strport),
   11908                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
   11909         goto bad;
   11910       }
   11911       switch (ai->ai_family) {
   11912       case AF_INET:
   11913         if (strcmp(strport, "54321") != 0) {
   11914           goto bad;
   11915         }
   11916         if (passive) {
   11917           if (strcmp(straddr, "0.0.0.0") != 0) {
   11918             goto bad;
   11919           }
   11920         } else {
   11921           if (strcmp(straddr, "127.0.0.1") != 0) {
   11922             goto bad;
   11923           }
   11924         }
   11925         inet4++;
   11926         break;
   11927       case AF_INET6:
   11928         if (strcmp(strport, "54321") != 0) {
   11929           goto bad;
   11930         }
   11931         if (passive) {
   11932           if (strcmp(straddr, "::") != 0) {
   11933             goto bad;
   11934           }
   11935         } else {
   11936           if (strcmp(straddr, "::1") != 0) {
   11937             goto bad;
   11938           }
   11939         }
   11940         inet6++;
   11941         break;
   11942       case AF_UNSPEC:
   11943         goto bad;
   11944         break;
   11945       default:
   11946         /* another family support? */
   11947         break;
   11948       }
   11949     }
   11950     freeaddrinfo(aitop);
   11951     aitop = NULL;
   11952   }
   11953 
   11954   if (!(inet4 == 0 || inet4 == 2))
   11955     goto bad;
   11956   if (!(inet6 == 0 || inet6 == 2))
   11957     goto bad;
   11958 
   11959   if (aitop)
   11960     freeaddrinfo(aitop);
   11961   return 0;
   11962 
   11963  bad:
   11964   if (aitop)
   11965     freeaddrinfo(aitop);
   11966   return 1;
   11967 }
   11968 
   11969 _ACEOF
   11970 if ac_fn_c_try_run "$LINENO"; then :
   11971   ac_cv_buggy_getaddrinfo=no
   11972 else
   11973   ac_cv_buggy_getaddrinfo=yes
   11974 fi
   11975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11976   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11977 fi
   11978 
   11979 fi
   11980 
   11981 fi
   11982 
   11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
   11984 $as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
   11985 
   11986 if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
   11987 then
   11988 	if test $ipv6 = yes
   11989 	then
   11990 		echo 'Fatal: You must get working getaddrinfo() function.'
   11991 		echo '       or you can specify "--disable-ipv6"'.
   11992 		exit 1
   11993 	fi
   11994 else
   11995 
   11996 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
   11997 
   11998 fi
   11999 
   12000 for ac_func in getnameinfo
   12001 do :
   12002   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
   12003 if test "x$ac_cv_func_getnameinfo" = xyes; then :
   12004   cat >>confdefs.h <<_ACEOF
   12005 #define HAVE_GETNAMEINFO 1
   12006 _ACEOF
   12007 
   12008 fi
   12009 done
   12010 
   12011 
   12012 # checks for structures
   12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   12014 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   12015 if ${ac_cv_header_time+:} false; then :
   12016   $as_echo_n "(cached) " >&6
   12017 else
   12018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12019 /* end confdefs.h.  */
   12020 #include <sys/types.h>
   12021 #include <sys/time.h>
   12022 #include <time.h>
   12023 
   12024 int
   12025 main ()
   12026 {
   12027 if ((struct tm *) 0)
   12028 return 0;
   12029   ;
   12030   return 0;
   12031 }
   12032 _ACEOF
   12033 if ac_fn_c_try_compile "$LINENO"; then :
   12034   ac_cv_header_time=yes
   12035 else
   12036   ac_cv_header_time=no
   12037 fi
   12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12039 fi
   12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   12041 $as_echo "$ac_cv_header_time" >&6; }
   12042 if test $ac_cv_header_time = yes; then
   12043 
   12044 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   12045 
   12046 fi
   12047 
   12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
   12049 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
   12050 if ${ac_cv_struct_tm+:} false; then :
   12051   $as_echo_n "(cached) " >&6
   12052 else
   12053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12054 /* end confdefs.h.  */
   12055 #include <sys/types.h>
   12056 #include <time.h>
   12057 
   12058 int
   12059 main ()
   12060 {
   12061 struct tm tm;
   12062 				     int *p = &tm.tm_sec;
   12063 				     return !p;
   12064   ;
   12065   return 0;
   12066 }
   12067 _ACEOF
   12068 if ac_fn_c_try_compile "$LINENO"; then :
   12069   ac_cv_struct_tm=time.h
   12070 else
   12071   ac_cv_struct_tm=sys/time.h
   12072 fi
   12073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12074 fi
   12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
   12076 $as_echo "$ac_cv_struct_tm" >&6; }
   12077 if test $ac_cv_struct_tm = sys/time.h; then
   12078 
   12079 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
   12080 
   12081 fi
   12082 
   12083 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
   12084 #include <$ac_cv_struct_tm>
   12085 
   12086 "
   12087 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
   12088 
   12089 cat >>confdefs.h <<_ACEOF
   12090 #define HAVE_STRUCT_TM_TM_ZONE 1
   12091 _ACEOF
   12092 
   12093 
   12094 fi
   12095 
   12096 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
   12097 
   12098 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
   12099 
   12100 else
   12101   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
   12102 "
   12103 if test "x$ac_cv_have_decl_tzname" = xyes; then :
   12104   ac_have_decl=1
   12105 else
   12106   ac_have_decl=0
   12107 fi
   12108 
   12109 cat >>confdefs.h <<_ACEOF
   12110 #define HAVE_DECL_TZNAME $ac_have_decl
   12111 _ACEOF
   12112 
   12113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
   12114 $as_echo_n "checking for tzname... " >&6; }
   12115 if ${ac_cv_var_tzname+:} false; then :
   12116   $as_echo_n "(cached) " >&6
   12117 else
   12118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12119 /* end confdefs.h.  */
   12120 #include <time.h>
   12121 #if !HAVE_DECL_TZNAME
   12122 extern char *tzname[];
   12123 #endif
   12124 
   12125 int
   12126 main ()
   12127 {
   12128 return tzname[0][0];
   12129   ;
   12130   return 0;
   12131 }
   12132 _ACEOF
   12133 if ac_fn_c_try_link "$LINENO"; then :
   12134   ac_cv_var_tzname=yes
   12135 else
   12136   ac_cv_var_tzname=no
   12137 fi
   12138 rm -f core conftest.err conftest.$ac_objext \
   12139     conftest$ac_exeext conftest.$ac_ext
   12140 fi
   12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
   12142 $as_echo "$ac_cv_var_tzname" >&6; }
   12143   if test $ac_cv_var_tzname = yes; then
   12144 
   12145 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
   12146 
   12147   fi
   12148 fi
   12149 
   12150 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
   12151 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
   12152 
   12153 cat >>confdefs.h <<_ACEOF
   12154 #define HAVE_STRUCT_STAT_ST_RDEV 1
   12155 _ACEOF
   12156 
   12157 
   12158 fi
   12159 
   12160 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   12161 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
   12162 
   12163 cat >>confdefs.h <<_ACEOF
   12164 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   12165 _ACEOF
   12166 
   12167 
   12168 fi
   12169 
   12170 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
   12171 if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
   12172 
   12173 cat >>confdefs.h <<_ACEOF
   12174 #define HAVE_STRUCT_STAT_ST_FLAGS 1
   12175 _ACEOF
   12176 
   12177 
   12178 fi
   12179 
   12180 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
   12181 if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
   12182 
   12183 cat >>confdefs.h <<_ACEOF
   12184 #define HAVE_STRUCT_STAT_ST_GEN 1
   12185 _ACEOF
   12186 
   12187 
   12188 fi
   12189 
   12190 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
   12191 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
   12192 
   12193 cat >>confdefs.h <<_ACEOF
   12194 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
   12195 _ACEOF
   12196 
   12197 
   12198 fi
   12199 
   12200 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
   12201 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
   12202 
   12203 cat >>confdefs.h <<_ACEOF
   12204 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
   12205 _ACEOF
   12206 
   12207 
   12208 fi
   12209 
   12210 
   12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
   12212 $as_echo_n "checking for time.h that defines altzone... " >&6; }
   12213 if ${ac_cv_header_time_altzone+:} false; then :
   12214   $as_echo_n "(cached) " >&6
   12215 else
   12216 
   12217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12218 /* end confdefs.h.  */
   12219 #include <time.h>
   12220 int
   12221 main ()
   12222 {
   12223 return altzone;
   12224   ;
   12225   return 0;
   12226 }
   12227 _ACEOF
   12228 if ac_fn_c_try_compile "$LINENO"; then :
   12229   ac_cv_header_time_altzone=yes
   12230 else
   12231   ac_cv_header_time_altzone=no
   12232 fi
   12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12234 
   12235 fi
   12236 
   12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
   12238 $as_echo "$ac_cv_header_time_altzone" >&6; }
   12239 if test $ac_cv_header_time_altzone = yes; then
   12240 
   12241 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
   12242 
   12243 fi
   12244 
   12245 was_it_defined=no
   12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
   12247 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
   12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12249 /* end confdefs.h.  */
   12250 
   12251 #include <sys/types.h>
   12252 #include <sys/select.h>
   12253 #include <sys/time.h>
   12254 
   12255 int
   12256 main ()
   12257 {
   12258 ;
   12259   ;
   12260   return 0;
   12261 }
   12262 _ACEOF
   12263 if ac_fn_c_try_compile "$LINENO"; then :
   12264 
   12265 
   12266 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
   12267 
   12268   was_it_defined=yes
   12269 
   12270 fi
   12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
   12273 $as_echo "$was_it_defined" >&6; }
   12274 
   12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
   12276 $as_echo_n "checking for addrinfo... " >&6; }
   12277 if ${ac_cv_struct_addrinfo+:} false; then :
   12278   $as_echo_n "(cached) " >&6
   12279 else
   12280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12281 /* end confdefs.h.  */
   12282 #include <netdb.h>
   12283 int
   12284 main ()
   12285 {
   12286 struct addrinfo a
   12287   ;
   12288   return 0;
   12289 }
   12290 _ACEOF
   12291 if ac_fn_c_try_compile "$LINENO"; then :
   12292   ac_cv_struct_addrinfo=yes
   12293 else
   12294   ac_cv_struct_addrinfo=no
   12295 fi
   12296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12297 fi
   12298 
   12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
   12300 $as_echo "$ac_cv_struct_addrinfo" >&6; }
   12301 if test $ac_cv_struct_addrinfo = yes; then
   12302 
   12303 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
   12304 
   12305 fi
   12306 
   12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
   12308 $as_echo_n "checking for sockaddr_storage... " >&6; }
   12309 if ${ac_cv_struct_sockaddr_storage+:} false; then :
   12310   $as_echo_n "(cached) " >&6
   12311 else
   12312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12313 /* end confdefs.h.  */
   12314 
   12315 #		include <sys/types.h>
   12316 #		include <sys/socket.h>
   12317 int
   12318 main ()
   12319 {
   12320 struct sockaddr_storage s
   12321   ;
   12322   return 0;
   12323 }
   12324 _ACEOF
   12325 if ac_fn_c_try_compile "$LINENO"; then :
   12326   ac_cv_struct_sockaddr_storage=yes
   12327 else
   12328   ac_cv_struct_sockaddr_storage=no
   12329 fi
   12330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12331 fi
   12332 
   12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
   12334 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
   12335 if test $ac_cv_struct_sockaddr_storage = yes; then
   12336 
   12337 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
   12338 
   12339 fi
   12340 
   12341 # checks for compiler characteristics
   12342 
   12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
   12344 $as_echo_n "checking whether char is unsigned... " >&6; }
   12345 if ${ac_cv_c_char_unsigned+:} false; then :
   12346   $as_echo_n "(cached) " >&6
   12347 else
   12348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12349 /* end confdefs.h.  */
   12350 $ac_includes_default
   12351 int
   12352 main ()
   12353 {
   12354 static int test_array [1 - 2 * !(((char) -1) < 0)];
   12355 test_array [0] = 0;
   12356 return test_array [0];
   12357 
   12358   ;
   12359   return 0;
   12360 }
   12361 _ACEOF
   12362 if ac_fn_c_try_compile "$LINENO"; then :
   12363   ac_cv_c_char_unsigned=no
   12364 else
   12365   ac_cv_c_char_unsigned=yes
   12366 fi
   12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12368 fi
   12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
   12370 $as_echo "$ac_cv_c_char_unsigned" >&6; }
   12371 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
   12372   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
   12373 
   12374 fi
   12375 
   12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   12377 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   12378 if ${ac_cv_c_const+:} false; then :
   12379   $as_echo_n "(cached) " >&6
   12380 else
   12381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12382 /* end confdefs.h.  */
   12383 
   12384 int
   12385 main ()
   12386 {
   12387 
   12388 #ifndef __cplusplus
   12389   /* Ultrix mips cc rejects this sort of thing.  */
   12390   typedef int charset[2];
   12391   const charset cs = { 0, 0 };
   12392   /* SunOS 4.1.1 cc rejects this.  */
   12393   char const *const *pcpcc;
   12394   char **ppc;
   12395   /* NEC SVR4.0.2 mips cc rejects this.  */
   12396   struct point {int x, y;};
   12397   static struct point const zero = {0,0};
   12398   /* AIX XL C 1.02.0.0 rejects this.
   12399      It does not let you subtract one const X* pointer from another in
   12400      an arm of an if-expression whose if-part is not a constant
   12401      expression */
   12402   const char *g = "string";
   12403   pcpcc = &g + (g ? g-g : 0);
   12404   /* HPUX 7.0 cc rejects these. */
   12405   ++pcpcc;
   12406   ppc = (char**) pcpcc;
   12407   pcpcc = (char const *const *) ppc;
   12408   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   12409     char tx;
   12410     char *t = &tx;
   12411     char const *s = 0 ? (char *) 0 : (char const *) 0;
   12412 
   12413     *t++ = 0;
   12414     if (s) return 0;
   12415   }
   12416   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   12417     int x[] = {25, 17};
   12418     const int *foo = &x[0];
   12419     ++foo;
   12420   }
   12421   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   12422     typedef const int *iptr;
   12423     iptr p = 0;
   12424     ++p;
   12425   }
   12426   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   12427        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   12428     struct s { int j; const int *ap[3]; } bx;
   12429     struct s *b = &bx; b->j = 5;
   12430   }
   12431   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   12432     const int foo = 10;
   12433     if (!foo) return 0;
   12434   }
   12435   return !cs[0] && !zero.x;
   12436 #endif
   12437 
   12438   ;
   12439   return 0;
   12440 }
   12441 _ACEOF
   12442 if ac_fn_c_try_compile "$LINENO"; then :
   12443   ac_cv_c_const=yes
   12444 else
   12445   ac_cv_c_const=no
   12446 fi
   12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12448 fi
   12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   12450 $as_echo "$ac_cv_c_const" >&6; }
   12451 if test $ac_cv_c_const = no; then
   12452 
   12453 $as_echo "#define const /**/" >>confdefs.h
   12454 
   12455 fi
   12456 
   12457 
   12458 works=no
   12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   12460 $as_echo_n "checking for working volatile... " >&6; }
   12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12462 /* end confdefs.h.  */
   12463 
   12464 int
   12465 main ()
   12466 {
   12467 volatile int x; x = 0;
   12468   ;
   12469   return 0;
   12470 }
   12471 _ACEOF
   12472 if ac_fn_c_try_compile "$LINENO"; then :
   12473   works=yes
   12474 else
   12475 
   12476 $as_echo "#define volatile /**/" >>confdefs.h
   12477 
   12478 
   12479 fi
   12480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
   12482 $as_echo "$works" >&6; }
   12483 
   12484 works=no
   12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
   12486 $as_echo_n "checking for working signed char... " >&6; }
   12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12488 /* end confdefs.h.  */
   12489 
   12490 int
   12491 main ()
   12492 {
   12493 signed char c;
   12494   ;
   12495   return 0;
   12496 }
   12497 _ACEOF
   12498 if ac_fn_c_try_compile "$LINENO"; then :
   12499   works=yes
   12500 else
   12501 
   12502 $as_echo "#define signed /**/" >>confdefs.h
   12503 
   12504 
   12505 fi
   12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
   12508 $as_echo "$works" >&6; }
   12509 
   12510 have_prototypes=no
   12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
   12512 $as_echo_n "checking for prototypes... " >&6; }
   12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12514 /* end confdefs.h.  */
   12515 int foo(int x) { return 0; }
   12516 int
   12517 main ()
   12518 {
   12519 return foo(10);
   12520   ;
   12521   return 0;
   12522 }
   12523 _ACEOF
   12524 if ac_fn_c_try_compile "$LINENO"; then :
   12525 
   12526 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
   12527 
   12528    have_prototypes=yes
   12529 fi
   12530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
   12532 $as_echo "$have_prototypes" >&6; }
   12533 
   12534 works=no
   12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
   12536 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
   12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12538 /* end confdefs.h.  */
   12539 
   12540 #include <stdarg.h>
   12541 int foo(int x, ...) {
   12542 	va_list va;
   12543 	va_start(va, x);
   12544 	va_arg(va, int);
   12545 	va_arg(va, char *);
   12546 	va_arg(va, double);
   12547 	return 0;
   12548 }
   12549 
   12550 int
   12551 main ()
   12552 {
   12553 return foo(10, "", 3.14);
   12554   ;
   12555   return 0;
   12556 }
   12557 _ACEOF
   12558 if ac_fn_c_try_compile "$LINENO"; then :
   12559 
   12560 
   12561 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
   12562 
   12563   works=yes
   12564 
   12565 fi
   12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
   12568 $as_echo "$works" >&6; }
   12569 
   12570 # check for socketpair
   12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
   12572 $as_echo_n "checking for socketpair... " >&6; }
   12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12574 /* end confdefs.h.  */
   12575 
   12576 #include <sys/types.h>
   12577 #include <sys/socket.h>
   12578 
   12579 int
   12580 main ()
   12581 {
   12582 void *x=socketpair
   12583   ;
   12584   return 0;
   12585 }
   12586 _ACEOF
   12587 if ac_fn_c_try_compile "$LINENO"; then :
   12588 
   12589 $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
   12590 
   12591    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12592 $as_echo "yes" >&6; }
   12593 else
   12594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12595 $as_echo "no" >&6; }
   12596 
   12597 fi
   12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12599 
   12600 # check if sockaddr has sa_len member
   12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
   12602 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
   12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12604 /* end confdefs.h.  */
   12605 #include <sys/types.h>
   12606 #include <sys/socket.h>
   12607 int
   12608 main ()
   12609 {
   12610 struct sockaddr x;
   12611 x.sa_len = 0;
   12612   ;
   12613   return 0;
   12614 }
   12615 _ACEOF
   12616 if ac_fn_c_try_compile "$LINENO"; then :
   12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12618 $as_echo "yes" >&6; }
   12619 
   12620 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
   12621 
   12622 else
   12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12624 $as_echo "no" >&6; }
   12625 
   12626 fi
   12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12628 
   12629 va_list_is_array=no
   12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
   12631 $as_echo_n "checking whether va_list is an array... " >&6; }
   12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12633 /* end confdefs.h.  */
   12634 
   12635 #ifdef HAVE_STDARG_PROTOTYPES
   12636 #include <stdarg.h>
   12637 #else
   12638 #include <varargs.h>
   12639 #endif
   12640 
   12641 int
   12642 main ()
   12643 {
   12644 va_list list1, list2; list1 = list2;
   12645   ;
   12646   return 0;
   12647 }
   12648 _ACEOF
   12649 if ac_fn_c_try_compile "$LINENO"; then :
   12650 
   12651 else
   12652 
   12653 
   12654 $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
   12655 
   12656  va_list_is_array=yes
   12657 
   12658 fi
   12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
   12661 $as_echo "$va_list_is_array" >&6; }
   12662 
   12663 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
   12664 
   12665 
   12666 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
   12667 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
   12668 
   12669   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   12670 
   12671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
   12672 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
   12673   OLD_CFLAGS=$CFLAGS
   12674   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
   12675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12676 /* end confdefs.h.  */
   12677 
   12678 #   include <netdb.h>
   12679 
   12680 int
   12681 main ()
   12682 {
   12683 
   12684     char *name;
   12685     struct hostent *he, *res;
   12686     char buffer[2048];
   12687     int buflen = 2048;
   12688     int h_errnop;
   12689 
   12690     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
   12691 
   12692   ;
   12693   return 0;
   12694 }
   12695 _ACEOF
   12696 if ac_fn_c_try_compile "$LINENO"; then :
   12697 
   12698     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   12699 
   12700 
   12701 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
   12702 
   12703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12704 $as_echo "yes" >&6; }
   12705 
   12706 else
   12707 
   12708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12709 $as_echo "no" >&6; }
   12710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
   12711 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
   12712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12713 /* end confdefs.h.  */
   12714 
   12715 #       include <netdb.h>
   12716 
   12717 int
   12718 main ()
   12719 {
   12720 
   12721         char *name;
   12722         struct hostent *he;
   12723         char buffer[2048];
   12724         int buflen = 2048;
   12725         int h_errnop;
   12726 
   12727         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
   12728 
   12729   ;
   12730   return 0;
   12731 }
   12732 _ACEOF
   12733 if ac_fn_c_try_compile "$LINENO"; then :
   12734 
   12735         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   12736 
   12737 
   12738 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
   12739 
   12740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12741 $as_echo "yes" >&6; }
   12742 
   12743 else
   12744 
   12745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12746 $as_echo "no" >&6; }
   12747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
   12748 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
   12749         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12750 /* end confdefs.h.  */
   12751 
   12752 #           include <netdb.h>
   12753 
   12754 int
   12755 main ()
   12756 {
   12757 
   12758             char *name;
   12759             struct hostent *he;
   12760             struct hostent_data data;
   12761 
   12762             (void) gethostbyname_r(name, he, &data);
   12763 
   12764   ;
   12765   return 0;
   12766 }
   12767 _ACEOF
   12768 if ac_fn_c_try_compile "$LINENO"; then :
   12769 
   12770             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
   12771 
   12772 
   12773 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
   12774 
   12775             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12776 $as_echo "yes" >&6; }
   12777 
   12778 else
   12779 
   12780            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12781 $as_echo "no" >&6; }
   12782 
   12783 fi
   12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12785 
   12786 fi
   12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12788 
   12789 fi
   12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12791   CFLAGS=$OLD_CFLAGS
   12792 
   12793 else
   12794 
   12795   for ac_func in gethostbyname
   12796 do :
   12797   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
   12798 if test "x$ac_cv_func_gethostbyname" = xyes; then :
   12799   cat >>confdefs.h <<_ACEOF
   12800 #define HAVE_GETHOSTBYNAME 1
   12801 _ACEOF
   12802 
   12803 fi
   12804 done
   12805 
   12806 
   12807 fi
   12808 
   12809 
   12810 
   12811 
   12812 
   12813 
   12814 
   12815 # checks for system services
   12816 # (none yet)
   12817 
   12818 # Linux requires this for correct f.p. operations
   12819 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
   12820 if test "x$ac_cv_func___fpu_control" = xyes; then :
   12821 
   12822 else
   12823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
   12824 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
   12825 if ${ac_cv_lib_ieee___fpu_control+:} false; then :
   12826   $as_echo_n "(cached) " >&6
   12827 else
   12828   ac_check_lib_save_LIBS=$LIBS
   12829 LIBS="-lieee  $LIBS"
   12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12831 /* end confdefs.h.  */
   12832 
   12833 /* Override any GCC internal prototype to avoid an error.
   12834    Use char because int might match the return type of a GCC
   12835    builtin and then its argument prototype would still apply.  */
   12836 #ifdef __cplusplus
   12837 extern "C"
   12838 #endif
   12839 char __fpu_control ();
   12840 int
   12841 main ()
   12842 {
   12843 return __fpu_control ();
   12844   ;
   12845   return 0;
   12846 }
   12847 _ACEOF
   12848 if ac_fn_c_try_link "$LINENO"; then :
   12849   ac_cv_lib_ieee___fpu_control=yes
   12850 else
   12851   ac_cv_lib_ieee___fpu_control=no
   12852 fi
   12853 rm -f core conftest.err conftest.$ac_objext \
   12854     conftest$ac_exeext conftest.$ac_ext
   12855 LIBS=$ac_check_lib_save_LIBS
   12856 fi
   12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
   12858 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
   12859 if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
   12860   cat >>confdefs.h <<_ACEOF
   12861 #define HAVE_LIBIEEE 1
   12862 _ACEOF
   12863 
   12864   LIBS="-lieee $LIBS"
   12865 
   12866 fi
   12867 
   12868 
   12869 fi
   12870 
   12871 
   12872 # Check for --with-fpectl
   12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
   12874 $as_echo_n "checking for --with-fpectl... " >&6; }
   12875 
   12876 # Check whether --with-fpectl was given.
   12877 if test "${with_fpectl+set}" = set; then :
   12878   withval=$with_fpectl;
   12879 if test "$withval" != no
   12880 then
   12881 
   12882 $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
   12883 
   12884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12885 $as_echo "yes" >&6; }
   12886 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12887 $as_echo "no" >&6; }
   12888 fi
   12889 else
   12890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12891 $as_echo "no" >&6; }
   12892 fi
   12893 
   12894 
   12895 # check for --with-libm=...
   12896 
   12897 case $ac_sys_system in
   12898 Darwin) ;;
   12899 BeOS) ;;
   12900 *) LIBM=-lm
   12901 esac
   12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
   12903 $as_echo_n "checking for --with-libm=STRING... " >&6; }
   12904 
   12905 # Check whether --with-libm was given.
   12906 if test "${with_libm+set}" = set; then :
   12907   withval=$with_libm;
   12908 if test "$withval" = no
   12909 then LIBM=
   12910      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
   12911 $as_echo "force LIBM empty" >&6; }
   12912 elif test "$withval" != yes
   12913 then LIBM=$withval
   12914      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
   12915 $as_echo "set LIBM=\"$withval\"" >&6; }
   12916 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
   12917 fi
   12918 else
   12919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
   12920 $as_echo "default LIBM=\"$LIBM\"" >&6; }
   12921 fi
   12922 
   12923 
   12924 # check for --with-libc=...
   12925 
   12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
   12927 $as_echo_n "checking for --with-libc=STRING... " >&6; }
   12928 
   12929 # Check whether --with-libc was given.
   12930 if test "${with_libc+set}" = set; then :
   12931   withval=$with_libc;
   12932 if test "$withval" = no
   12933 then LIBC=
   12934      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
   12935 $as_echo "force LIBC empty" >&6; }
   12936 elif test "$withval" != yes
   12937 then LIBC=$withval
   12938      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
   12939 $as_echo "set LIBC=\"$withval\"" >&6; }
   12940 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
   12941 fi
   12942 else
   12943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
   12944 $as_echo "default LIBC=\"$LIBC\"" >&6; }
   12945 fi
   12946 
   12947 
   12948 # **************************************************
   12949 # * Check for various properties of floating point *
   12950 # **************************************************
   12951 
   12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
   12953 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
   12954 if ${ac_cv_little_endian_double+:} false; then :
   12955   $as_echo_n "(cached) " >&6
   12956 else
   12957 
   12958 if test "$cross_compiling" = yes; then :
   12959   ac_cv_little_endian_double=no
   12960 else
   12961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12962 /* end confdefs.h.  */
   12963 
   12964 #include <string.h>
   12965 int main() {
   12966     double x = 9006104071832581.0;
   12967     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
   12968         return 0;
   12969     else
   12970         return 1;
   12971 }
   12972 
   12973 _ACEOF
   12974 if ac_fn_c_try_run "$LINENO"; then :
   12975   ac_cv_little_endian_double=yes
   12976 else
   12977   ac_cv_little_endian_double=no
   12978 fi
   12979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12980   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12981 fi
   12982 
   12983 fi
   12984 
   12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
   12986 $as_echo "$ac_cv_little_endian_double" >&6; }
   12987 if test "$ac_cv_little_endian_double" = yes
   12988 then
   12989 
   12990 $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
   12991 
   12992 fi
   12993 
   12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
   12995 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
   12996 if ${ac_cv_big_endian_double+:} false; then :
   12997   $as_echo_n "(cached) " >&6
   12998 else
   12999 
   13000 if test "$cross_compiling" = yes; then :
   13001   ac_cv_big_endian_double=no
   13002 else
   13003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13004 /* end confdefs.h.  */
   13005 
   13006 #include <string.h>
   13007 int main() {
   13008     double x = 9006104071832581.0;
   13009     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
   13010         return 0;
   13011     else
   13012         return 1;
   13013 }
   13014 
   13015 _ACEOF
   13016 if ac_fn_c_try_run "$LINENO"; then :
   13017   ac_cv_big_endian_double=yes
   13018 else
   13019   ac_cv_big_endian_double=no
   13020 fi
   13021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13022   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13023 fi
   13024 
   13025 fi
   13026 
   13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
   13028 $as_echo "$ac_cv_big_endian_double" >&6; }
   13029 if test "$ac_cv_big_endian_double" = yes
   13030 then
   13031 
   13032 $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
   13033 
   13034 fi
   13035 
   13036 # Some ARM platforms use a mixed-endian representation for doubles.
   13037 # While Python doesn't currently have full support for these platforms
   13038 # (see e.g., issue 1762561), we can at least make sure that float <-> string
   13039 # conversions work.
   13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
   13041 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
   13042 if ${ac_cv_mixed_endian_double+:} false; then :
   13043   $as_echo_n "(cached) " >&6
   13044 else
   13045 
   13046 if test "$cross_compiling" = yes; then :
   13047   ac_cv_mixed_endian_double=no
   13048 else
   13049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13050 /* end confdefs.h.  */
   13051 
   13052 #include <string.h>
   13053 int main() {
   13054     double x = 9006104071832581.0;
   13055     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
   13056         return 0;
   13057     else
   13058         return 1;
   13059 }
   13060 
   13061 _ACEOF
   13062 if ac_fn_c_try_run "$LINENO"; then :
   13063   ac_cv_mixed_endian_double=yes
   13064 else
   13065   ac_cv_mixed_endian_double=no
   13066 fi
   13067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13068   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13069 fi
   13070 
   13071 fi
   13072 
   13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
   13074 $as_echo "$ac_cv_mixed_endian_double" >&6; }
   13075 if test "$ac_cv_mixed_endian_double" = yes
   13076 then
   13077 
   13078 $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
   13079 
   13080 fi
   13081 
   13082 # The short float repr introduced in Python 3.1 requires the
   13083 # correctly-rounded string <-> double conversion functions from
   13084 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
   13085 # rounding; this is a problem on x86, where the x87 FPU has a default
   13086 # rounding precision of 64 bits.  For gcc/x86, we can fix this by
   13087 # using inline assembler to get and set the x87 FPU control word.
   13088 
   13089 # This inline assembler syntax may also work for suncc and icc,
   13090 # so we try it on all platforms.
   13091 
   13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
   13093 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
   13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13095 /* end confdefs.h.  */
   13096 
   13097 int
   13098 main ()
   13099 {
   13100 
   13101   unsigned short cw;
   13102   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
   13103   __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
   13104 
   13105   ;
   13106   return 0;
   13107 }
   13108 _ACEOF
   13109 if ac_fn_c_try_link "$LINENO"; then :
   13110   have_gcc_asm_for_x87=yes
   13111 else
   13112   have_gcc_asm_for_x87=no
   13113 fi
   13114 rm -f core conftest.err conftest.$ac_objext \
   13115     conftest$ac_exeext conftest.$ac_ext
   13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
   13117 $as_echo "$have_gcc_asm_for_x87" >&6; }
   13118 if test "$have_gcc_asm_for_x87" = yes
   13119 then
   13120 
   13121 $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
   13122 
   13123 fi
   13124 
   13125 # Detect whether system arithmetic is subject to x87-style double
   13126 # rounding issues.  The result of this test has little meaning on non
   13127 # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding
   13128 # mode is round-to-nearest and double rounding issues are present, and
   13129 # 0 otherwise.  See http://bugs.python.org/issue2937 for more info.
   13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
   13131 $as_echo_n "checking for x87-style double rounding... " >&6; }
   13132 # $BASECFLAGS may affect the result
   13133 ac_save_cc="$CC"
   13134 CC="$CC $BASECFLAGS"
   13135 if test "$cross_compiling" = yes; then :
   13136   ac_cv_x87_double_rounding=no
   13137 else
   13138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13139 /* end confdefs.h.  */
   13140 
   13141 #include <stdlib.h>
   13142 #include <math.h>
   13143 int main() {
   13144     volatile double x, y, z;
   13145     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
   13146     x = 0.99999999999999989; /* 1-2**-53 */
   13147     y = 1./x;
   13148     if (y != 1.)
   13149         exit(0);
   13150     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
   13151     x = 1e16;
   13152     y = 2.99999;
   13153     z = x + y;
   13154     if (z != 1e16+4.)
   13155         exit(0);
   13156     /* both tests show evidence of double rounding */
   13157     exit(1);
   13158 }
   13159 
   13160 _ACEOF
   13161 if ac_fn_c_try_run "$LINENO"; then :
   13162   ac_cv_x87_double_rounding=no
   13163 else
   13164   ac_cv_x87_double_rounding=yes
   13165 fi
   13166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13167   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13168 fi
   13169 
   13170 CC="$ac_save_cc"
   13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
   13172 $as_echo "$ac_cv_x87_double_rounding" >&6; }
   13173 if test "$ac_cv_x87_double_rounding" = yes
   13174 then
   13175 
   13176 $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
   13177 
   13178 fi
   13179 
   13180 # ************************************
   13181 # * Check for mathematical functions *
   13182 # ************************************
   13183 
   13184 LIBS_SAVE=$LIBS
   13185 LIBS="$LIBS $LIBM"
   13186 
   13187 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
   13188 # -0. on some architectures.
   13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
   13190 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
   13191 if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
   13192   $as_echo_n "(cached) " >&6
   13193 else
   13194 
   13195 if test "$cross_compiling" = yes; then :
   13196   ac_cv_tanh_preserves_zero_sign=no
   13197 else
   13198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13199 /* end confdefs.h.  */
   13200 
   13201 #include <math.h>
   13202 #include <stdlib.h>
   13203 int main() {
   13204     /* return 0 if either negative zeros don't exist
   13205        on this platform or if negative zeros exist
   13206        and tanh(-0.) == -0. */
   13207   if (atan2(0., -1.) == atan2(-0., -1.) ||
   13208       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
   13209   else exit(1);
   13210 }
   13211 
   13212 _ACEOF
   13213 if ac_fn_c_try_run "$LINENO"; then :
   13214   ac_cv_tanh_preserves_zero_sign=yes
   13215 else
   13216   ac_cv_tanh_preserves_zero_sign=no
   13217 fi
   13218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13219   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13220 fi
   13221 
   13222 fi
   13223 
   13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
   13225 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
   13226 if test "$ac_cv_tanh_preserves_zero_sign" = yes
   13227 then
   13228 
   13229 $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
   13230 
   13231 fi
   13232 
   13233 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
   13234 do :
   13235   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13236 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13237 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13238   cat >>confdefs.h <<_ACEOF
   13239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13240 _ACEOF
   13241 
   13242 fi
   13243 done
   13244 
   13245 for ac_func in hypot lgamma log1p round tgamma
   13246 do :
   13247   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13249 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13250   cat >>confdefs.h <<_ACEOF
   13251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13252 _ACEOF
   13253 
   13254 fi
   13255 done
   13256 
   13257 ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
   13258 "
   13259 if test "x$ac_cv_have_decl_isinf" = xyes; then :
   13260   ac_have_decl=1
   13261 else
   13262   ac_have_decl=0
   13263 fi
   13264 
   13265 cat >>confdefs.h <<_ACEOF
   13266 #define HAVE_DECL_ISINF $ac_have_decl
   13267 _ACEOF
   13268 ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
   13269 "
   13270 if test "x$ac_cv_have_decl_isnan" = xyes; then :
   13271   ac_have_decl=1
   13272 else
   13273   ac_have_decl=0
   13274 fi
   13275 
   13276 cat >>confdefs.h <<_ACEOF
   13277 #define HAVE_DECL_ISNAN $ac_have_decl
   13278 _ACEOF
   13279 ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
   13280 "
   13281 if test "x$ac_cv_have_decl_isfinite" = xyes; then :
   13282   ac_have_decl=1
   13283 else
   13284   ac_have_decl=0
   13285 fi
   13286 
   13287 cat >>confdefs.h <<_ACEOF
   13288 #define HAVE_DECL_ISFINITE $ac_have_decl
   13289 _ACEOF
   13290 
   13291 
   13292 LIBS=$LIBS_SAVE
   13293 
   13294 # For multiprocessing module, check that sem_open
   13295 # actually works.  For FreeBSD versions <= 7.2,
   13296 # the kernel module that provides POSIX semaphores
   13297 # isn't loaded by default, so an attempt to call
   13298 # sem_open results in a 'Signal 12' error.
   13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
   13300 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
   13301 if ${ac_cv_posix_semaphores_enabled+:} false; then :
   13302   $as_echo_n "(cached) " >&6
   13303 else
   13304   if test "$cross_compiling" = yes; then :
   13305   ac_cv_posix_semaphores_enabled=yes
   13306 else
   13307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13308 /* end confdefs.h.  */
   13309 
   13310 #include <unistd.h>
   13311 #include <fcntl.h>
   13312 #include <stdio.h>
   13313 #include <semaphore.h>
   13314 #include <sys/stat.h>
   13315 
   13316 int main(void) {
   13317   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
   13318   if (a == SEM_FAILED) {
   13319     perror("sem_open");
   13320     return 1;
   13321   }
   13322   sem_close(a);
   13323   sem_unlink("/autoconf");
   13324   return 0;
   13325 }
   13326 
   13327 _ACEOF
   13328 if ac_fn_c_try_run "$LINENO"; then :
   13329   ac_cv_posix_semaphores_enabled=yes
   13330 else
   13331   ac_cv_posix_semaphores_enabled=no
   13332 fi
   13333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13334   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13335 fi
   13336 
   13337 
   13338 fi
   13339 
   13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
   13341 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
   13342 if test $ac_cv_posix_semaphores_enabled = no
   13343 then
   13344 
   13345 $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
   13346 
   13347 fi
   13348 
   13349 # Multiprocessing check for broken sem_getvalue
   13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
   13351 $as_echo_n "checking for broken sem_getvalue... " >&6; }
   13352 if ${ac_cv_broken_sem_getvalue+:} false; then :
   13353   $as_echo_n "(cached) " >&6
   13354 else
   13355   if test "$cross_compiling" = yes; then :
   13356   ac_cv_broken_sem_getvalue=yes
   13357 else
   13358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13359 /* end confdefs.h.  */
   13360 
   13361 #include <unistd.h>
   13362 #include <fcntl.h>
   13363 #include <stdio.h>
   13364 #include <semaphore.h>
   13365 #include <sys/stat.h>
   13366 
   13367 int main(void){
   13368   sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
   13369   int count;
   13370   int res;
   13371   if(a==SEM_FAILED){
   13372     perror("sem_open");
   13373     return 1;
   13374 
   13375   }
   13376   res = sem_getvalue(a, &count);
   13377   sem_close(a);
   13378   sem_unlink("/autocftw");
   13379   return res==-1 ? 1 : 0;
   13380 }
   13381 
   13382 _ACEOF
   13383 if ac_fn_c_try_run "$LINENO"; then :
   13384   ac_cv_broken_sem_getvalue=no
   13385 else
   13386   ac_cv_broken_sem_getvalue=yes
   13387 fi
   13388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13389   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13390 fi
   13391 
   13392 
   13393 fi
   13394 
   13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
   13396 $as_echo "$ac_cv_broken_sem_getvalue" >&6; }
   13397 if test $ac_cv_broken_sem_getvalue = yes
   13398 then
   13399 
   13400 $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
   13401 
   13402 fi
   13403 
   13404 # determine what size digit to use for Python's longs
   13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
   13406 $as_echo_n "checking digit size for Python's longs... " >&6; }
   13407 # Check whether --enable-big-digits was given.
   13408 if test "${enable_big_digits+set}" = set; then :
   13409   enableval=$enable_big_digits; case $enable_big_digits in
   13410 yes)
   13411   enable_big_digits=30 ;;
   13412 no)
   13413   enable_big_digits=15 ;;
   13414 15|30)
   13415   ;;
   13416 *)
   13417   as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
   13418 esac
   13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
   13420 $as_echo "$enable_big_digits" >&6; }
   13421 
   13422 cat >>confdefs.h <<_ACEOF
   13423 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
   13424 _ACEOF
   13425 
   13426 
   13427 else
   13428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
   13429 $as_echo "no value specified" >&6; }
   13430 fi
   13431 
   13432 
   13433 # check for wchar.h
   13434 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
   13435 if test "x$ac_cv_header_wchar_h" = xyes; then :
   13436 
   13437 
   13438 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
   13439 
   13440   wchar_h="yes"
   13441 
   13442 else
   13443   wchar_h="no"
   13444 
   13445 fi
   13446 
   13447 
   13448 
   13449 # determine wchar_t size
   13450 if test "$wchar_h" = yes
   13451 then
   13452   # The cast to long int works around a bug in the HP C Compiler
   13453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   13454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   13455 # This bug is HP SR number 8606223364.
   13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
   13457 $as_echo_n "checking size of wchar_t... " >&6; }
   13458 if ${ac_cv_sizeof_wchar_t+:} false; then :
   13459   $as_echo_n "(cached) " >&6
   13460 else
   13461   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h>
   13462 "; then :
   13463 
   13464 else
   13465   if test "$ac_cv_type_wchar_t" = yes; then
   13466      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   13467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   13468 as_fn_error 77 "cannot compute sizeof (wchar_t)
   13469 See \`config.log' for more details" "$LINENO" 5; }
   13470    else
   13471      ac_cv_sizeof_wchar_t=0
   13472    fi
   13473 fi
   13474 
   13475 fi
   13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
   13477 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
   13478 
   13479 
   13480 
   13481 cat >>confdefs.h <<_ACEOF
   13482 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
   13483 _ACEOF
   13484 
   13485 
   13486 fi
   13487 
   13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
   13489 $as_echo_n "checking for UCS-4 tcl... " >&6; }
   13490 have_ucs4_tcl=no
   13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13492 /* end confdefs.h.  */
   13493 
   13494 #include <tcl.h>
   13495 #if TCL_UTF_MAX != 6
   13496 # error "NOT UCS4_TCL"
   13497 #endif
   13498 int
   13499 main ()
   13500 {
   13501 
   13502   ;
   13503   return 0;
   13504 }
   13505 _ACEOF
   13506 if ac_fn_c_try_compile "$LINENO"; then :
   13507 
   13508 
   13509 $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
   13510 
   13511   have_ucs4_tcl=yes
   13512 
   13513 fi
   13514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
   13516 $as_echo "$have_ucs4_tcl" >&6; }
   13517 
   13518 # check whether wchar_t is signed or not
   13519 if test "$wchar_h" = yes
   13520 then
   13521   # check whether wchar_t is signed or not
   13522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
   13523 $as_echo_n "checking whether wchar_t is signed... " >&6; }
   13524   if ${ac_cv_wchar_t_signed+:} false; then :
   13525   $as_echo_n "(cached) " >&6
   13526 else
   13527 
   13528   if test "$cross_compiling" = yes; then :
   13529   ac_cv_wchar_t_signed=yes
   13530 else
   13531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13532 /* end confdefs.h.  */
   13533 
   13534   #include <wchar.h>
   13535   int main()
   13536   {
   13537 	/* Success: exit code 0 */
   13538         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
   13539   }
   13540 
   13541 _ACEOF
   13542 if ac_fn_c_try_run "$LINENO"; then :
   13543   ac_cv_wchar_t_signed=yes
   13544 else
   13545   ac_cv_wchar_t_signed=no
   13546 fi
   13547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13548   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13549 fi
   13550 
   13551 fi
   13552 
   13553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
   13554 $as_echo "$ac_cv_wchar_t_signed" >&6; }
   13555 fi
   13556 
   13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
   13558 $as_echo_n "checking what type to use for unicode... " >&6; }
   13559 # Check whether --enable-unicode was given.
   13560 if test "${enable_unicode+set}" = set; then :
   13561   enableval=$enable_unicode;
   13562 else
   13563   enable_unicode=yes
   13564 fi
   13565 
   13566 
   13567 if test $enable_unicode = yes
   13568 then
   13569   # Without any arguments, Py_UNICODE defaults to two-byte mode
   13570   case "$have_ucs4_tcl" in
   13571   yes) enable_unicode="ucs4"
   13572        ;;
   13573   *)   enable_unicode="ucs2"
   13574        ;;
   13575   esac
   13576 fi
   13577 
   13578 
   13579 case "$enable_unicode" in
   13580 ucs2) unicode_size="2"
   13581       $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
   13582 
   13583       ;;
   13584 ucs4) unicode_size="4"
   13585       $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
   13586 
   13587       ;;
   13588 no)   ;;      # To allow --disable-unicode
   13589 *) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;;
   13590 esac
   13591 
   13592 
   13593 
   13594 
   13595 if test "$enable_unicode" = "no"
   13596 then
   13597   UNICODE_OBJS=""
   13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
   13599 $as_echo "not used" >&6; }
   13600 else
   13601   UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
   13602 
   13603 $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
   13604 
   13605 
   13606   # wchar_t is only usable if it maps to an unsigned type
   13607   if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
   13608           -a "$ac_cv_wchar_t_signed" = "no"
   13609   then
   13610     PY_UNICODE_TYPE="wchar_t"
   13611 
   13612 $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
   13613 
   13614     $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
   13615 
   13616   elif test "$ac_cv_sizeof_short" = "$unicode_size"
   13617   then
   13618        PY_UNICODE_TYPE="unsigned short"
   13619        $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
   13620 
   13621   elif test "$ac_cv_sizeof_long" = "$unicode_size"
   13622   then
   13623        PY_UNICODE_TYPE="unsigned long"
   13624        $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
   13625 
   13626   else
   13627        PY_UNICODE_TYPE="no type found"
   13628   fi
   13629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
   13630 $as_echo "$PY_UNICODE_TYPE" >&6; }
   13631 fi
   13632 
   13633 # check for endianness
   13634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   13635 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   13636 if ${ac_cv_c_bigendian+:} false; then :
   13637   $as_echo_n "(cached) " >&6
   13638 else
   13639   ac_cv_c_bigendian=unknown
   13640     # See if we're dealing with a universal compiler.
   13641     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13642 /* end confdefs.h.  */
   13643 #ifndef __APPLE_CC__
   13644 	       not a universal capable compiler
   13645 	     #endif
   13646 	     typedef int dummy;
   13647 
   13648 _ACEOF
   13649 if ac_fn_c_try_compile "$LINENO"; then :
   13650 
   13651 	# Check for potential -arch flags.  It is not universal unless
   13652 	# there are at least two -arch flags with different values.
   13653 	ac_arch=
   13654 	ac_prev=
   13655 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   13656 	 if test -n "$ac_prev"; then
   13657 	   case $ac_word in
   13658 	     i?86 | x86_64 | ppc | ppc64)
   13659 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   13660 		 ac_arch=$ac_word
   13661 	       else
   13662 		 ac_cv_c_bigendian=universal
   13663 		 break
   13664 	       fi
   13665 	       ;;
   13666 	   esac
   13667 	   ac_prev=
   13668 	 elif test "x$ac_word" = "x-arch"; then
   13669 	   ac_prev=arch
   13670 	 fi
   13671        done
   13672 fi
   13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13674     if test $ac_cv_c_bigendian = unknown; then
   13675       # See if sys/param.h defines the BYTE_ORDER macro.
   13676       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13677 /* end confdefs.h.  */
   13678 #include <sys/types.h>
   13679 	     #include <sys/param.h>
   13680 
   13681 int
   13682 main ()
   13683 {
   13684 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   13685 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   13686 		     && LITTLE_ENDIAN)
   13687 	      bogus endian macros
   13688 	     #endif
   13689 
   13690   ;
   13691   return 0;
   13692 }
   13693 _ACEOF
   13694 if ac_fn_c_try_compile "$LINENO"; then :
   13695   # It does; now see whether it defined to BIG_ENDIAN or not.
   13696 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13697 /* end confdefs.h.  */
   13698 #include <sys/types.h>
   13699 		#include <sys/param.h>
   13700 
   13701 int
   13702 main ()
   13703 {
   13704 #if BYTE_ORDER != BIG_ENDIAN
   13705 		 not big endian
   13706 		#endif
   13707 
   13708   ;
   13709   return 0;
   13710 }
   13711 _ACEOF
   13712 if ac_fn_c_try_compile "$LINENO"; then :
   13713   ac_cv_c_bigendian=yes
   13714 else
   13715   ac_cv_c_bigendian=no
   13716 fi
   13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13718 fi
   13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13720     fi
   13721     if test $ac_cv_c_bigendian = unknown; then
   13722       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   13723       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13724 /* end confdefs.h.  */
   13725 #include <limits.h>
   13726 
   13727 int
   13728 main ()
   13729 {
   13730 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   13731 	      bogus endian macros
   13732 	     #endif
   13733 
   13734   ;
   13735   return 0;
   13736 }
   13737 _ACEOF
   13738 if ac_fn_c_try_compile "$LINENO"; then :
   13739   # It does; now see whether it defined to _BIG_ENDIAN or not.
   13740 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13741 /* end confdefs.h.  */
   13742 #include <limits.h>
   13743 
   13744 int
   13745 main ()
   13746 {
   13747 #ifndef _BIG_ENDIAN
   13748 		 not big endian
   13749 		#endif
   13750 
   13751   ;
   13752   return 0;
   13753 }
   13754 _ACEOF
   13755 if ac_fn_c_try_compile "$LINENO"; then :
   13756   ac_cv_c_bigendian=yes
   13757 else
   13758   ac_cv_c_bigendian=no
   13759 fi
   13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13761 fi
   13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13763     fi
   13764     if test $ac_cv_c_bigendian = unknown; then
   13765       # Compile a test program.
   13766       if test "$cross_compiling" = yes; then :
   13767   # Try to guess by grepping values from an object file.
   13768 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13769 /* end confdefs.h.  */
   13770 short int ascii_mm[] =
   13771 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   13772 		short int ascii_ii[] =
   13773 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   13774 		int use_ascii (int i) {
   13775 		  return ascii_mm[i] + ascii_ii[i];
   13776 		}
   13777 		short int ebcdic_ii[] =
   13778 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   13779 		short int ebcdic_mm[] =
   13780 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   13781 		int use_ebcdic (int i) {
   13782 		  return ebcdic_mm[i] + ebcdic_ii[i];
   13783 		}
   13784 		extern int foo;
   13785 
   13786 int
   13787 main ()
   13788 {
   13789 return use_ascii (foo) == use_ebcdic (foo);
   13790   ;
   13791   return 0;
   13792 }
   13793 _ACEOF
   13794 if ac_fn_c_try_compile "$LINENO"; then :
   13795   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   13796 	      ac_cv_c_bigendian=yes
   13797 	    fi
   13798 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   13799 	      if test "$ac_cv_c_bigendian" = unknown; then
   13800 		ac_cv_c_bigendian=no
   13801 	      else
   13802 		# finding both strings is unlikely to happen, but who knows?
   13803 		ac_cv_c_bigendian=unknown
   13804 	      fi
   13805 	    fi
   13806 fi
   13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13808 else
   13809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13810 /* end confdefs.h.  */
   13811 $ac_includes_default
   13812 int
   13813 main ()
   13814 {
   13815 
   13816 	     /* Are we little or big endian?  From Harbison&Steele.  */
   13817 	     union
   13818 	     {
   13819 	       long int l;
   13820 	       char c[sizeof (long int)];
   13821 	     } u;
   13822 	     u.l = 1;
   13823 	     return u.c[sizeof (long int) - 1] == 1;
   13824 
   13825   ;
   13826   return 0;
   13827 }
   13828 _ACEOF
   13829 if ac_fn_c_try_run "$LINENO"; then :
   13830   ac_cv_c_bigendian=no
   13831 else
   13832   ac_cv_c_bigendian=yes
   13833 fi
   13834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13835   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13836 fi
   13837 
   13838     fi
   13839 fi
   13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   13841 $as_echo "$ac_cv_c_bigendian" >&6; }
   13842  case $ac_cv_c_bigendian in #(
   13843    yes)
   13844      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   13845 ;; #(
   13846    no)
   13847       ;; #(
   13848    universal)
   13849 
   13850 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   13851 
   13852      ;; #(
   13853    *)
   13854      as_fn_error $? "unknown endianness
   13855  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   13856  esac
   13857 
   13858 
   13859 # Check whether right shifting a negative integer extends the sign bit
   13860 # or fills with zeros (like the Cray J90, according to Tim Peters).
   13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
   13862 $as_echo_n "checking whether right shift extends the sign bit... " >&6; }
   13863 if ${ac_cv_rshift_extends_sign+:} false; then :
   13864   $as_echo_n "(cached) " >&6
   13865 else
   13866 
   13867 if test "$cross_compiling" = yes; then :
   13868   ac_cv_rshift_extends_sign=yes
   13869 else
   13870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13871 /* end confdefs.h.  */
   13872 
   13873 int main()
   13874 {
   13875 	exit(((-1)>>3 == -1) ? 0 : 1);
   13876 }
   13877 
   13878 _ACEOF
   13879 if ac_fn_c_try_run "$LINENO"; then :
   13880   ac_cv_rshift_extends_sign=yes
   13881 else
   13882   ac_cv_rshift_extends_sign=no
   13883 fi
   13884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13885   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13886 fi
   13887 
   13888 fi
   13889 
   13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
   13891 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
   13892 if test "$ac_cv_rshift_extends_sign" = no
   13893 then
   13894 
   13895 $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
   13896 
   13897 fi
   13898 
   13899 # check for getc_unlocked and related locking functions
   13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
   13901 $as_echo_n "checking for getc_unlocked() and friends... " >&6; }
   13902 if ${ac_cv_have_getc_unlocked+:} false; then :
   13903   $as_echo_n "(cached) " >&6
   13904 else
   13905 
   13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13907 /* end confdefs.h.  */
   13908 #include <stdio.h>
   13909 int
   13910 main ()
   13911 {
   13912 
   13913 	FILE *f = fopen("/dev/null", "r");
   13914 	flockfile(f);
   13915 	getc_unlocked(f);
   13916 	funlockfile(f);
   13917 
   13918   ;
   13919   return 0;
   13920 }
   13921 _ACEOF
   13922 if ac_fn_c_try_link "$LINENO"; then :
   13923   ac_cv_have_getc_unlocked=yes
   13924 else
   13925   ac_cv_have_getc_unlocked=no
   13926 fi
   13927 rm -f core conftest.err conftest.$ac_objext \
   13928     conftest$ac_exeext conftest.$ac_ext
   13929 fi
   13930 
   13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
   13932 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
   13933 if test "$ac_cv_have_getc_unlocked" = yes
   13934 then
   13935 
   13936 $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
   13937 
   13938 fi
   13939 
   13940 # check where readline lives
   13941 # save the value of LIBS so we don't actually link Python with readline
   13942 LIBS_no_readline=$LIBS
   13943 
   13944 # On some systems we need to link readline to a termcap compatible
   13945 # library.  NOTE: Keep the precedence of listed libraries synchronised
   13946 # with setup.py.
   13947 py_cv_lib_readline=no
   13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
   13949 $as_echo_n "checking how to link readline libs... " >&6; }
   13950 for py_libtermcap in "" ncursesw ncurses curses termcap; do
   13951   if test -z "$py_libtermcap"; then
   13952     READLINE_LIBS="-lreadline"
   13953   else
   13954     READLINE_LIBS="-lreadline -l$py_libtermcap"
   13955   fi
   13956   LIBS="$READLINE_LIBS $LIBS_no_readline"
   13957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13958 /* end confdefs.h.  */
   13959 
   13960 /* Override any GCC internal prototype to avoid an error.
   13961    Use char because int might match the return type of a GCC
   13962    builtin and then its argument prototype would still apply.  */
   13963 #ifdef __cplusplus
   13964 extern "C"
   13965 #endif
   13966 char readline ();
   13967 int
   13968 main ()
   13969 {
   13970 return readline ();
   13971   ;
   13972   return 0;
   13973 }
   13974 _ACEOF
   13975 if ac_fn_c_try_link "$LINENO"; then :
   13976   py_cv_lib_readline=yes
   13977 fi
   13978 rm -f core conftest.err conftest.$ac_objext \
   13979     conftest$ac_exeext conftest.$ac_ext
   13980   if test $py_cv_lib_readline = yes; then
   13981     break
   13982   fi
   13983 done
   13984 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
   13985 #AC_SUBST([READLINE_LIBS])
   13986 if test $py_cv_lib_readline = no; then
   13987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   13988 $as_echo "none" >&6; }
   13989 else
   13990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
   13991 $as_echo "$READLINE_LIBS" >&6; }
   13992 
   13993 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
   13994 
   13995 fi
   13996 
   13997 # check for readline 2.1
   13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
   13999 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
   14000 if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
   14001   $as_echo_n "(cached) " >&6
   14002 else
   14003   ac_check_lib_save_LIBS=$LIBS
   14004 LIBS="-lreadline $READLINE_LIBS $LIBS"
   14005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14006 /* end confdefs.h.  */
   14007 
   14008 /* Override any GCC internal prototype to avoid an error.
   14009    Use char because int might match the return type of a GCC
   14010    builtin and then its argument prototype would still apply.  */
   14011 #ifdef __cplusplus
   14012 extern "C"
   14013 #endif
   14014 char rl_callback_handler_install ();
   14015 int
   14016 main ()
   14017 {
   14018 return rl_callback_handler_install ();
   14019   ;
   14020   return 0;
   14021 }
   14022 _ACEOF
   14023 if ac_fn_c_try_link "$LINENO"; then :
   14024   ac_cv_lib_readline_rl_callback_handler_install=yes
   14025 else
   14026   ac_cv_lib_readline_rl_callback_handler_install=no
   14027 fi
   14028 rm -f core conftest.err conftest.$ac_objext \
   14029     conftest$ac_exeext conftest.$ac_ext
   14030 LIBS=$ac_check_lib_save_LIBS
   14031 fi
   14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
   14033 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
   14034 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
   14035 
   14036 $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
   14037 
   14038 fi
   14039 
   14040 
   14041 # check for readline 2.2
   14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14043 /* end confdefs.h.  */
   14044 #include <readline/readline.h>
   14045 _ACEOF
   14046 if ac_fn_c_try_cpp "$LINENO"; then :
   14047   have_readline=yes
   14048 else
   14049   have_readline=no
   14050 
   14051 fi
   14052 rm -f conftest.err conftest.i conftest.$ac_ext
   14053 if test $have_readline = yes
   14054 then
   14055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14056 /* end confdefs.h.  */
   14057 #include <readline/readline.h>
   14058 
   14059 _ACEOF
   14060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14061   $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
   14062 
   14063 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
   14064 
   14065 fi
   14066 rm -f conftest*
   14067 
   14068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14069 /* end confdefs.h.  */
   14070 #include <readline/readline.h>
   14071 
   14072 _ACEOF
   14073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14074   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
   14075 
   14076 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
   14077 
   14078 fi
   14079 rm -f conftest*
   14080 
   14081 fi
   14082 
   14083 # check for readline 4.0
   14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
   14085 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
   14086 if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
   14087   $as_echo_n "(cached) " >&6
   14088 else
   14089   ac_check_lib_save_LIBS=$LIBS
   14090 LIBS="-lreadline $READLINE_LIBS $LIBS"
   14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14092 /* end confdefs.h.  */
   14093 
   14094 /* Override any GCC internal prototype to avoid an error.
   14095    Use char because int might match the return type of a GCC
   14096    builtin and then its argument prototype would still apply.  */
   14097 #ifdef __cplusplus
   14098 extern "C"
   14099 #endif
   14100 char rl_pre_input_hook ();
   14101 int
   14102 main ()
   14103 {
   14104 return rl_pre_input_hook ();
   14105   ;
   14106   return 0;
   14107 }
   14108 _ACEOF
   14109 if ac_fn_c_try_link "$LINENO"; then :
   14110   ac_cv_lib_readline_rl_pre_input_hook=yes
   14111 else
   14112   ac_cv_lib_readline_rl_pre_input_hook=no
   14113 fi
   14114 rm -f core conftest.err conftest.$ac_objext \
   14115     conftest$ac_exeext conftest.$ac_ext
   14116 LIBS=$ac_check_lib_save_LIBS
   14117 fi
   14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
   14119 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
   14120 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
   14121 
   14122 $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
   14123 
   14124 fi
   14125 
   14126 
   14127 # also in 4.0
   14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
   14129 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
   14130 if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
   14131   $as_echo_n "(cached) " >&6
   14132 else
   14133   ac_check_lib_save_LIBS=$LIBS
   14134 LIBS="-lreadline $READLINE_LIBS $LIBS"
   14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14136 /* end confdefs.h.  */
   14137 
   14138 /* Override any GCC internal prototype to avoid an error.
   14139    Use char because int might match the return type of a GCC
   14140    builtin and then its argument prototype would still apply.  */
   14141 #ifdef __cplusplus
   14142 extern "C"
   14143 #endif
   14144 char rl_completion_display_matches_hook ();
   14145 int
   14146 main ()
   14147 {
   14148 return rl_completion_display_matches_hook ();
   14149   ;
   14150   return 0;
   14151 }
   14152 _ACEOF
   14153 if ac_fn_c_try_link "$LINENO"; then :
   14154   ac_cv_lib_readline_rl_completion_display_matches_hook=yes
   14155 else
   14156   ac_cv_lib_readline_rl_completion_display_matches_hook=no
   14157 fi
   14158 rm -f core conftest.err conftest.$ac_objext \
   14159     conftest$ac_exeext conftest.$ac_ext
   14160 LIBS=$ac_check_lib_save_LIBS
   14161 fi
   14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
   14163 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
   14164 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
   14165 
   14166 $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
   14167 
   14168 fi
   14169 
   14170 
   14171 # also in 4.0, but not in editline
   14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
   14173 $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
   14174 if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
   14175   $as_echo_n "(cached) " >&6
   14176 else
   14177   ac_check_lib_save_LIBS=$LIBS
   14178 LIBS="-lreadline $READLINE_LIBS $LIBS"
   14179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14180 /* end confdefs.h.  */
   14181 
   14182 /* Override any GCC internal prototype to avoid an error.
   14183    Use char because int might match the return type of a GCC
   14184    builtin and then its argument prototype would still apply.  */
   14185 #ifdef __cplusplus
   14186 extern "C"
   14187 #endif
   14188 char rl_resize_terminal ();
   14189 int
   14190 main ()
   14191 {
   14192 return rl_resize_terminal ();
   14193   ;
   14194   return 0;
   14195 }
   14196 _ACEOF
   14197 if ac_fn_c_try_link "$LINENO"; then :
   14198   ac_cv_lib_readline_rl_resize_terminal=yes
   14199 else
   14200   ac_cv_lib_readline_rl_resize_terminal=no
   14201 fi
   14202 rm -f core conftest.err conftest.$ac_objext \
   14203     conftest$ac_exeext conftest.$ac_ext
   14204 LIBS=$ac_check_lib_save_LIBS
   14205 fi
   14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
   14207 $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
   14208 if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
   14209 
   14210 $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
   14211 
   14212 fi
   14213 
   14214 
   14215 # check for readline 4.2
   14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
   14217 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
   14218 if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
   14219   $as_echo_n "(cached) " >&6
   14220 else
   14221   ac_check_lib_save_LIBS=$LIBS
   14222 LIBS="-lreadline $READLINE_LIBS $LIBS"
   14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14224 /* end confdefs.h.  */
   14225 
   14226 /* Override any GCC internal prototype to avoid an error.
   14227    Use char because int might match the return type of a GCC
   14228    builtin and then its argument prototype would still apply.  */
   14229 #ifdef __cplusplus
   14230 extern "C"
   14231 #endif
   14232 char rl_completion_matches ();
   14233 int
   14234 main ()
   14235 {
   14236 return rl_completion_matches ();
   14237   ;
   14238   return 0;
   14239 }
   14240 _ACEOF
   14241 if ac_fn_c_try_link "$LINENO"; then :
   14242   ac_cv_lib_readline_rl_completion_matches=yes
   14243 else
   14244   ac_cv_lib_readline_rl_completion_matches=no
   14245 fi
   14246 rm -f core conftest.err conftest.$ac_objext \
   14247     conftest$ac_exeext conftest.$ac_ext
   14248 LIBS=$ac_check_lib_save_LIBS
   14249 fi
   14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
   14251 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
   14252 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
   14253 
   14254 $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
   14255 
   14256 fi
   14257 
   14258 
   14259 # also in readline 4.2
   14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14261 /* end confdefs.h.  */
   14262 #include <readline/readline.h>
   14263 _ACEOF
   14264 if ac_fn_c_try_cpp "$LINENO"; then :
   14265   have_readline=yes
   14266 else
   14267   have_readline=no
   14268 
   14269 fi
   14270 rm -f conftest.err conftest.i conftest.$ac_ext
   14271 if test $have_readline = yes
   14272 then
   14273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14274 /* end confdefs.h.  */
   14275 #include <readline/readline.h>
   14276 
   14277 _ACEOF
   14278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14279   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
   14280 
   14281 $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
   14282 
   14283 fi
   14284 rm -f conftest*
   14285 
   14286 fi
   14287 
   14288 # End of readline checks: restore LIBS
   14289 LIBS=$LIBS_no_readline
   14290 
   14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
   14292 $as_echo_n "checking for broken nice()... " >&6; }
   14293 if ${ac_cv_broken_nice+:} false; then :
   14294   $as_echo_n "(cached) " >&6
   14295 else
   14296 
   14297 if test "$cross_compiling" = yes; then :
   14298   ac_cv_broken_nice=no
   14299 else
   14300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14301 /* end confdefs.h.  */
   14302 
   14303 int main()
   14304 {
   14305 	int val1 = nice(1);
   14306 	if (val1 != -1 && val1 == nice(2))
   14307 		exit(0);
   14308 	exit(1);
   14309 }
   14310 
   14311 _ACEOF
   14312 if ac_fn_c_try_run "$LINENO"; then :
   14313   ac_cv_broken_nice=yes
   14314 else
   14315   ac_cv_broken_nice=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_broken_nice" >&5
   14324 $as_echo "$ac_cv_broken_nice" >&6; }
   14325 if test "$ac_cv_broken_nice" = yes
   14326 then
   14327 
   14328 $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
   14329 
   14330 fi
   14331 
   14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
   14333 $as_echo_n "checking for broken poll()... " >&6; }
   14334 if ${ac_cv_broken_poll+:} false; then :
   14335   $as_echo_n "(cached) " >&6
   14336 else
   14337   if test "$cross_compiling" = yes; then :
   14338   ac_cv_broken_poll=no
   14339 else
   14340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14341 /* end confdefs.h.  */
   14342 
   14343 #include <poll.h>
   14344 
   14345 int main()
   14346 {
   14347     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
   14348     int poll_test;
   14349 
   14350     close (42);
   14351 
   14352     poll_test = poll(&poll_struct, 1, 0);
   14353     if (poll_test < 0)
   14354         return 0;
   14355     else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
   14356         return 0;
   14357     else
   14358         return 1;
   14359 }
   14360 
   14361 _ACEOF
   14362 if ac_fn_c_try_run "$LINENO"; then :
   14363   ac_cv_broken_poll=yes
   14364 else
   14365   ac_cv_broken_poll=no
   14366 fi
   14367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14368   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14369 fi
   14370 
   14371 fi
   14372 
   14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
   14374 $as_echo "$ac_cv_broken_poll" >&6; }
   14375 if test "$ac_cv_broken_poll" = yes
   14376 then
   14377 
   14378 $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
   14379 
   14380 fi
   14381 
   14382 # Before we can test tzset, we need to check if struct tm has a tm_zone
   14383 # (which is not required by ISO C or UNIX spec) and/or if we support
   14384 # tzname[]
   14385 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
   14386 #include <$ac_cv_struct_tm>
   14387 
   14388 "
   14389 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
   14390 
   14391 cat >>confdefs.h <<_ACEOF
   14392 #define HAVE_STRUCT_TM_TM_ZONE 1
   14393 _ACEOF
   14394 
   14395 
   14396 fi
   14397 
   14398 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
   14399 
   14400 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
   14401 
   14402 else
   14403   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
   14404 "
   14405 if test "x$ac_cv_have_decl_tzname" = xyes; then :
   14406   ac_have_decl=1
   14407 else
   14408   ac_have_decl=0
   14409 fi
   14410 
   14411 cat >>confdefs.h <<_ACEOF
   14412 #define HAVE_DECL_TZNAME $ac_have_decl
   14413 _ACEOF
   14414 
   14415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
   14416 $as_echo_n "checking for tzname... " >&6; }
   14417 if ${ac_cv_var_tzname+:} false; then :
   14418   $as_echo_n "(cached) " >&6
   14419 else
   14420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14421 /* end confdefs.h.  */
   14422 #include <time.h>
   14423 #if !HAVE_DECL_TZNAME
   14424 extern char *tzname[];
   14425 #endif
   14426 
   14427 int
   14428 main ()
   14429 {
   14430 return tzname[0][0];
   14431   ;
   14432   return 0;
   14433 }
   14434 _ACEOF
   14435 if ac_fn_c_try_link "$LINENO"; then :
   14436   ac_cv_var_tzname=yes
   14437 else
   14438   ac_cv_var_tzname=no
   14439 fi
   14440 rm -f core conftest.err conftest.$ac_objext \
   14441     conftest$ac_exeext conftest.$ac_ext
   14442 fi
   14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
   14444 $as_echo "$ac_cv_var_tzname" >&6; }
   14445   if test $ac_cv_var_tzname = yes; then
   14446 
   14447 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
   14448 
   14449   fi
   14450 fi
   14451 
   14452 
   14453 # check tzset(3) exists and works like we expect it to
   14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
   14455 $as_echo_n "checking for working tzset()... " >&6; }
   14456 if ${ac_cv_working_tzset+:} false; then :
   14457   $as_echo_n "(cached) " >&6
   14458 else
   14459 
   14460 if test "$cross_compiling" = yes; then :
   14461   ac_cv_working_tzset=no
   14462 else
   14463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14464 /* end confdefs.h.  */
   14465 
   14466 #include <stdlib.h>
   14467 #include <time.h>
   14468 #include <string.h>
   14469 
   14470 #if HAVE_TZNAME
   14471 extern char *tzname[];
   14472 #endif
   14473 
   14474 int main()
   14475 {
   14476 	/* Note that we need to ensure that not only does tzset(3)
   14477 	   do 'something' with localtime, but it works as documented
   14478 	   in the library reference and as expected by the test suite.
   14479 	   This includes making sure that tzname is set properly if
   14480 	   tm->tm_zone does not exist since it is the alternative way
   14481 	   of getting timezone info.
   14482 
   14483 	   Red Hat 6.2 doesn't understand the southern hemisphere
   14484 	   after New Year's Day.
   14485 	*/
   14486 
   14487 	time_t groundhogday = 1044144000; /* GMT-based */
   14488 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
   14489 
   14490 	putenv("TZ=UTC+0");
   14491 	tzset();
   14492 	if (localtime(&groundhogday)->tm_hour != 0)
   14493 	    exit(1);
   14494 #if HAVE_TZNAME
   14495 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */
   14496 	if (strcmp(tzname[0], "UTC") ||
   14497 		(tzname[1][0] != 0 && tzname[1][0] != ' '))
   14498 	    exit(1);
   14499 #endif
   14500 
   14501 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
   14502 	tzset();
   14503 	if (localtime(&groundhogday)->tm_hour != 19)
   14504 	    exit(1);
   14505 #if HAVE_TZNAME
   14506 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
   14507 	    exit(1);
   14508 #endif
   14509 
   14510 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
   14511 	tzset();
   14512 	if (localtime(&groundhogday)->tm_hour != 11)
   14513 	    exit(1);
   14514 #if HAVE_TZNAME
   14515 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
   14516 	    exit(1);
   14517 #endif
   14518 
   14519 #if HAVE_STRUCT_TM_TM_ZONE
   14520 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
   14521 	    exit(1);
   14522 	if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
   14523 	    exit(1);
   14524 #endif
   14525 
   14526 	exit(0);
   14527 }
   14528 
   14529 _ACEOF
   14530 if ac_fn_c_try_run "$LINENO"; then :
   14531   ac_cv_working_tzset=yes
   14532 else
   14533   ac_cv_working_tzset=no
   14534 fi
   14535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14536   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14537 fi
   14538 
   14539 fi
   14540 
   14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
   14542 $as_echo "$ac_cv_working_tzset" >&6; }
   14543 if test "$ac_cv_working_tzset" = yes
   14544 then
   14545 
   14546 $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
   14547 
   14548 fi
   14549 
   14550 # Look for subsecond timestamps in struct stat
   14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
   14552 $as_echo_n "checking for tv_nsec in struct stat... " >&6; }
   14553 if ${ac_cv_stat_tv_nsec+:} false; then :
   14554   $as_echo_n "(cached) " >&6
   14555 else
   14556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14557 /* end confdefs.h.  */
   14558 #include <sys/stat.h>
   14559 int
   14560 main ()
   14561 {
   14562 
   14563 struct stat st;
   14564 st.st_mtim.tv_nsec = 1;
   14565 
   14566   ;
   14567   return 0;
   14568 }
   14569 _ACEOF
   14570 if ac_fn_c_try_compile "$LINENO"; then :
   14571   ac_cv_stat_tv_nsec=yes
   14572 else
   14573   ac_cv_stat_tv_nsec=no
   14574 fi
   14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14576 fi
   14577 
   14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
   14579 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
   14580 if test "$ac_cv_stat_tv_nsec" = yes
   14581 then
   14582 
   14583 $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
   14584 
   14585 fi
   14586 
   14587 # Look for BSD style subsecond timestamps in struct stat
   14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
   14589 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
   14590 if ${ac_cv_stat_tv_nsec2+:} false; then :
   14591   $as_echo_n "(cached) " >&6
   14592 else
   14593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14594 /* end confdefs.h.  */
   14595 #include <sys/stat.h>
   14596 int
   14597 main ()
   14598 {
   14599 
   14600 struct stat st;
   14601 st.st_mtimespec.tv_nsec = 1;
   14602 
   14603   ;
   14604   return 0;
   14605 }
   14606 _ACEOF
   14607 if ac_fn_c_try_compile "$LINENO"; then :
   14608   ac_cv_stat_tv_nsec2=yes
   14609 else
   14610   ac_cv_stat_tv_nsec2=no
   14611 fi
   14612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14613 fi
   14614 
   14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
   14616 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
   14617 if test "$ac_cv_stat_tv_nsec2" = yes
   14618 then
   14619 
   14620 $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
   14621 
   14622 fi
   14623 
   14624 # first curses configure check
   14625 ac_save_cppflags="$CPPFLAGS"
   14626 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
   14627 
   14628 for ac_header in curses.h ncurses.h
   14629 do :
   14630   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14631 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   14632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   14633   cat >>confdefs.h <<_ACEOF
   14634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14635 _ACEOF
   14636 
   14637 fi
   14638 
   14639 done
   14640 
   14641 
   14642 # On Solaris, term.h requires curses.h
   14643 for ac_header in term.h
   14644 do :
   14645   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
   14646 #ifdef HAVE_CURSES_H
   14647 #include <curses.h>
   14648 #endif
   14649 
   14650 "
   14651 if test "x$ac_cv_header_term_h" = xyes; then :
   14652   cat >>confdefs.h <<_ACEOF
   14653 #define HAVE_TERM_H 1
   14654 _ACEOF
   14655 
   14656 fi
   14657 
   14658 done
   14659 
   14660 
   14661 # On HP/UX 11.0, mvwdelch is a block with a return statement
   14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
   14663 $as_echo_n "checking whether mvwdelch is an expression... " >&6; }
   14664 if ${ac_cv_mvwdelch_is_expression+:} false; then :
   14665   $as_echo_n "(cached) " >&6
   14666 else
   14667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14668 /* end confdefs.h.  */
   14669 #include <curses.h>
   14670 int
   14671 main ()
   14672 {
   14673 
   14674   int rtn;
   14675   rtn = mvwdelch(0,0,0);
   14676 
   14677   ;
   14678   return 0;
   14679 }
   14680 _ACEOF
   14681 if ac_fn_c_try_compile "$LINENO"; then :
   14682   ac_cv_mvwdelch_is_expression=yes
   14683 else
   14684   ac_cv_mvwdelch_is_expression=no
   14685 fi
   14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14687 fi
   14688 
   14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
   14690 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
   14691 
   14692 if test "$ac_cv_mvwdelch_is_expression" = yes
   14693 then
   14694 
   14695 $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
   14696 
   14697 fi
   14698 
   14699 # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
   14700 # structs since version 5.7.  If the macro is defined as zero before including
   14701 # [n]curses.h, ncurses will expose fields of the structs regardless of the
   14702 # configuration.
   14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
   14704 $as_echo_n "checking whether WINDOW has _flags... " >&6; }
   14705 if ${ac_cv_window_has_flags+:} false; then :
   14706   $as_echo_n "(cached) " >&6
   14707 else
   14708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14709 /* end confdefs.h.  */
   14710 
   14711   #define NCURSES_OPAQUE 0
   14712   #include <curses.h>
   14713 
   14714 int
   14715 main ()
   14716 {
   14717 
   14718   WINDOW *w;
   14719   w->_flags = 0;
   14720 
   14721   ;
   14722   return 0;
   14723 }
   14724 _ACEOF
   14725 if ac_fn_c_try_compile "$LINENO"; then :
   14726   ac_cv_window_has_flags=yes
   14727 else
   14728   ac_cv_window_has_flags=no
   14729 fi
   14730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14731 fi
   14732 
   14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
   14734 $as_echo "$ac_cv_window_has_flags" >&6; }
   14735 
   14736 
   14737 if test "$ac_cv_window_has_flags" = yes
   14738 then
   14739 
   14740 $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
   14741 
   14742 fi
   14743 
   14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
   14745 $as_echo_n "checking for is_pad... " >&6; }
   14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14747 /* end confdefs.h.  */
   14748 #include <curses.h>
   14749 int
   14750 main ()
   14751 {
   14752 
   14753 #ifndef is_pad
   14754 void *x=is_pad
   14755 #endif
   14756 
   14757   ;
   14758   return 0;
   14759 }
   14760 _ACEOF
   14761 if ac_fn_c_try_compile "$LINENO"; then :
   14762 
   14763 $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
   14764 
   14765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14766 $as_echo "yes" >&6; }
   14767 else
   14768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14769 $as_echo "no" >&6; }
   14770 
   14771 fi
   14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14773 
   14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
   14775 $as_echo_n "checking for is_term_resized... " >&6; }
   14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14777 /* end confdefs.h.  */
   14778 #include <curses.h>
   14779 int
   14780 main ()
   14781 {
   14782 void *x=is_term_resized
   14783   ;
   14784   return 0;
   14785 }
   14786 _ACEOF
   14787 if ac_fn_c_try_compile "$LINENO"; then :
   14788 
   14789 $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
   14790 
   14791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14792 $as_echo "yes" >&6; }
   14793 else
   14794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14795 $as_echo "no" >&6; }
   14796 
   14797 fi
   14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14799 
   14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
   14801 $as_echo_n "checking for resize_term... " >&6; }
   14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14803 /* end confdefs.h.  */
   14804 #include <curses.h>
   14805 int
   14806 main ()
   14807 {
   14808 void *x=resize_term
   14809   ;
   14810   return 0;
   14811 }
   14812 _ACEOF
   14813 if ac_fn_c_try_compile "$LINENO"; then :
   14814 
   14815 $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
   14816 
   14817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14818 $as_echo "yes" >&6; }
   14819 else
   14820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14821 $as_echo "no" >&6; }
   14822 
   14823 fi
   14824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14825 
   14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
   14827 $as_echo_n "checking for resizeterm... " >&6; }
   14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14829 /* end confdefs.h.  */
   14830 #include <curses.h>
   14831 int
   14832 main ()
   14833 {
   14834 void *x=resizeterm
   14835   ;
   14836   return 0;
   14837 }
   14838 _ACEOF
   14839 if ac_fn_c_try_compile "$LINENO"; then :
   14840 
   14841 $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
   14842 
   14843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14844 $as_echo "yes" >&6; }
   14845 else
   14846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14847 $as_echo "no" >&6; }
   14848 
   14849 fi
   14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14851 
   14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
   14853 $as_echo_n "checking for immedok... " >&6; }
   14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14855 /* end confdefs.h.  */
   14856 #include <curses.h>
   14857 int
   14858 main ()
   14859 {
   14860 
   14861 #ifndef immedok
   14862 void *x=immedok
   14863 #endif
   14864 
   14865   ;
   14866   return 0;
   14867 }
   14868 _ACEOF
   14869 if ac_fn_c_try_compile "$LINENO"; then :
   14870 
   14871 $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
   14872 
   14873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14874 $as_echo "yes" >&6; }
   14875 else
   14876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14877 $as_echo "no" >&6; }
   14878 
   14879 fi
   14880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14881 
   14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
   14883 $as_echo_n "checking for syncok... " >&6; }
   14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14885 /* end confdefs.h.  */
   14886 #include <curses.h>
   14887 int
   14888 main ()
   14889 {
   14890 
   14891 #ifndef syncok
   14892 void *x=syncok
   14893 #endif
   14894 
   14895   ;
   14896   return 0;
   14897 }
   14898 _ACEOF
   14899 if ac_fn_c_try_compile "$LINENO"; then :
   14900 
   14901 $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
   14902 
   14903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14904 $as_echo "yes" >&6; }
   14905 else
   14906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14907 $as_echo "no" >&6; }
   14908 
   14909 fi
   14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14911 
   14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
   14913 $as_echo_n "checking for wchgat... " >&6; }
   14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14915 /* end confdefs.h.  */
   14916 #include <curses.h>
   14917 int
   14918 main ()
   14919 {
   14920 
   14921 #ifndef wchgat
   14922 void *x=wchgat
   14923 #endif
   14924 
   14925   ;
   14926   return 0;
   14927 }
   14928 _ACEOF
   14929 if ac_fn_c_try_compile "$LINENO"; then :
   14930 
   14931 $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
   14932 
   14933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14934 $as_echo "yes" >&6; }
   14935 else
   14936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14937 $as_echo "no" >&6; }
   14938 
   14939 fi
   14940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14941 
   14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
   14943 $as_echo_n "checking for filter... " >&6; }
   14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14945 /* end confdefs.h.  */
   14946 #include <curses.h>
   14947 int
   14948 main ()
   14949 {
   14950 
   14951 #ifndef filter
   14952 void *x=filter
   14953 #endif
   14954 
   14955   ;
   14956   return 0;
   14957 }
   14958 _ACEOF
   14959 if ac_fn_c_try_compile "$LINENO"; then :
   14960 
   14961 $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
   14962 
   14963    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14964 $as_echo "yes" >&6; }
   14965 else
   14966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14967 $as_echo "no" >&6; }
   14968 
   14969 fi
   14970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14971 
   14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
   14973 $as_echo_n "checking for has_key... " >&6; }
   14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14975 /* end confdefs.h.  */
   14976 #include <curses.h>
   14977 int
   14978 main ()
   14979 {
   14980 
   14981 #ifndef has_key
   14982 void *x=has_key
   14983 #endif
   14984 
   14985   ;
   14986   return 0;
   14987 }
   14988 _ACEOF
   14989 if ac_fn_c_try_compile "$LINENO"; then :
   14990 
   14991 $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
   14992 
   14993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14994 $as_echo "yes" >&6; }
   14995 else
   14996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14997 $as_echo "no" >&6; }
   14998 
   14999 fi
   15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15001 
   15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
   15003 $as_echo_n "checking for typeahead... " >&6; }
   15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15005 /* end confdefs.h.  */
   15006 #include <curses.h>
   15007 int
   15008 main ()
   15009 {
   15010 
   15011 #ifndef typeahead
   15012 void *x=typeahead
   15013 #endif
   15014 
   15015   ;
   15016   return 0;
   15017 }
   15018 _ACEOF
   15019 if ac_fn_c_try_compile "$LINENO"; then :
   15020 
   15021 $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
   15022 
   15023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15024 $as_echo "yes" >&6; }
   15025 else
   15026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15027 $as_echo "no" >&6; }
   15028 
   15029 fi
   15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15031 
   15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
   15033 $as_echo_n "checking for use_env... " >&6; }
   15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15035 /* end confdefs.h.  */
   15036 #include <curses.h>
   15037 int
   15038 main ()
   15039 {
   15040 
   15041 #ifndef use_env
   15042 void *x=use_env
   15043 #endif
   15044 
   15045   ;
   15046   return 0;
   15047 }
   15048 _ACEOF
   15049 if ac_fn_c_try_compile "$LINENO"; then :
   15050 
   15051 $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
   15052 
   15053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15054 $as_echo "yes" >&6; }
   15055 else
   15056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15057 $as_echo "no" >&6; }
   15058 
   15059 fi
   15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15061 # last curses configure check
   15062 CPPFLAGS=$ac_save_cppflags
   15063 
   15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
   15065 $as_echo "$as_me: checking for device files" >&6;}
   15066 
   15067 if test "x$cross_compiling" = xyes; then
   15068   if test "${ac_cv_file__dev_ptmx+set}" != set; then
   15069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
   15070 $as_echo_n "checking for /dev/ptmx... " >&6; }
   15071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
   15072 $as_echo "not set" >&6; }
   15073     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
   15074   fi
   15075   if test "${ac_cv_file__dev_ptc+set}" != set; then
   15076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
   15077 $as_echo_n "checking for /dev/ptc... " >&6; }
   15078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
   15079 $as_echo "not set" >&6; }
   15080     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
   15081   fi
   15082 fi
   15083 
   15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
   15085 $as_echo_n "checking for /dev/ptmx... " >&6; }
   15086 if ${ac_cv_file__dev_ptmx+:} false; then :
   15087   $as_echo_n "(cached) " >&6
   15088 else
   15089   test "$cross_compiling" = yes &&
   15090   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
   15091 if test -r "/dev/ptmx"; then
   15092   ac_cv_file__dev_ptmx=yes
   15093 else
   15094   ac_cv_file__dev_ptmx=no
   15095 fi
   15096 fi
   15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
   15098 $as_echo "$ac_cv_file__dev_ptmx" >&6; }
   15099 if test "x$ac_cv_file__dev_ptmx" = xyes; then :
   15100 
   15101 fi
   15102 
   15103 if test "x$ac_cv_file__dev_ptmx" = xyes; then
   15104 
   15105 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
   15106 
   15107 fi
   15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
   15109 $as_echo_n "checking for /dev/ptc... " >&6; }
   15110 if ${ac_cv_file__dev_ptc+:} false; then :
   15111   $as_echo_n "(cached) " >&6
   15112 else
   15113   test "$cross_compiling" = yes &&
   15114   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
   15115 if test -r "/dev/ptc"; then
   15116   ac_cv_file__dev_ptc=yes
   15117 else
   15118   ac_cv_file__dev_ptc=no
   15119 fi
   15120 fi
   15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
   15122 $as_echo "$ac_cv_file__dev_ptc" >&6; }
   15123 if test "x$ac_cv_file__dev_ptc" = xyes; then :
   15124 
   15125 fi
   15126 
   15127 if test "x$ac_cv_file__dev_ptc" = xyes; then
   15128 
   15129 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
   15130 
   15131 fi
   15132 
   15133 if test "$have_long_long" = yes
   15134 then
   15135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5
   15136 $as_echo_n "checking for %lld and %llu printf() format support... " >&6; }
   15137   if ${ac_cv_have_long_long_format+:} false; then :
   15138   $as_echo_n "(cached) " >&6
   15139 else
   15140   if test "$cross_compiling" = yes; then :
   15141   ac_cv_have_long_long_format="cross -- assuming no"
   15142    if test x$GCC = xyes; then
   15143     save_CFLAGS=$CFLAGS
   15144     CFLAGS="$CFLAGS -Werror -Wformat"
   15145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15146 /* end confdefs.h.  */
   15147 
   15148         #include <stdio.h>
   15149         #include <stddef.h>
   15150 
   15151 int
   15152 main ()
   15153 {
   15154 
   15155       char *buffer;
   15156       sprintf(buffer, "%lld", (long long)123);
   15157       sprintf(buffer, "%lld", (long long)-123);
   15158       sprintf(buffer, "%llu", (unsigned long long)123);
   15159 
   15160   ;
   15161   return 0;
   15162 }
   15163 _ACEOF
   15164 if ac_fn_c_try_compile "$LINENO"; then :
   15165   ac_cv_have_long_long_format=yes
   15166 
   15167 fi
   15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15169     CFLAGS=$save_CFLAGS
   15170    fi
   15171 else
   15172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15173 /* end confdefs.h.  */
   15174 
   15175   #include <stdio.h>
   15176   #include <stddef.h>
   15177   #include <string.h>
   15178 
   15179   #ifdef HAVE_SYS_TYPES_H
   15180   #include <sys/types.h>
   15181   #endif
   15182 
   15183   int main()
   15184   {
   15185       char buffer[256];
   15186 
   15187       if (sprintf(buffer, "%lld", (long long)123) < 0)
   15188           return 1;
   15189       if (strcmp(buffer, "123"))
   15190           return 1;
   15191 
   15192       if (sprintf(buffer, "%lld", (long long)-123) < 0)
   15193           return 1;
   15194       if (strcmp(buffer, "-123"))
   15195           return 1;
   15196 
   15197       if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
   15198           return 1;
   15199       if (strcmp(buffer, "123"))
   15200           return 1;
   15201 
   15202       return 0;
   15203   }
   15204 
   15205 _ACEOF
   15206 if ac_fn_c_try_run "$LINENO"; then :
   15207   ac_cv_have_long_long_format=yes
   15208 else
   15209   ac_cv_have_long_long_format=no
   15210 fi
   15211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15212   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15213 fi
   15214 
   15215 
   15216 fi
   15217 
   15218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5
   15219 $as_echo "$ac_cv_have_long_long_format" >&6; }
   15220 fi
   15221 
   15222 if test "$ac_cv_have_long_long_format" = yes
   15223 then
   15224 
   15225 $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
   15226 
   15227 fi
   15228 
   15229 if test $ac_sys_system = Darwin
   15230 then
   15231 	LIBS="$LIBS -framework CoreFoundation"
   15232 fi
   15233 
   15234 
   15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
   15236 $as_echo_n "checking for %zd printf() format support... " >&6; }
   15237 if ${ac_cv_have_size_t_format+:} false; then :
   15238   $as_echo_n "(cached) " >&6
   15239 else
   15240   if test "$cross_compiling" = yes; then :
   15241   ac_cv_have_size_t_format="cross -- assuming yes"
   15242 
   15243 else
   15244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15245 /* end confdefs.h.  */
   15246 
   15247 #include <stdio.h>
   15248 #include <stddef.h>
   15249 #include <string.h>
   15250 
   15251 #ifdef HAVE_SYS_TYPES_H
   15252 #include <sys/types.h>
   15253 #endif
   15254 
   15255 #ifdef HAVE_SSIZE_T
   15256 typedef ssize_t Py_ssize_t;
   15257 #elif SIZEOF_VOID_P == SIZEOF_LONG
   15258 typedef long Py_ssize_t;
   15259 #else
   15260 typedef int Py_ssize_t;
   15261 #endif
   15262 
   15263 int main()
   15264 {
   15265     char buffer[256];
   15266 
   15267     if(sprintf(buffer, "%zd", (size_t)123) < 0)
   15268        	return 1;
   15269 
   15270     if (strcmp(buffer, "123"))
   15271 	return 1;
   15272 
   15273     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
   15274        	return 1;
   15275 
   15276     if (strcmp(buffer, "-123"))
   15277 	return 1;
   15278 
   15279     return 0;
   15280 }
   15281 
   15282 _ACEOF
   15283 if ac_fn_c_try_run "$LINENO"; then :
   15284   ac_cv_have_size_t_format=yes
   15285 else
   15286   ac_cv_have_size_t_format=no
   15287 fi
   15288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15289   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15290 fi
   15291 
   15292 fi
   15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
   15294 $as_echo "$ac_cv_have_size_t_format" >&6; }
   15295 if test "$ac_cv_have_size_t_format" != no ; then
   15296 
   15297 $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
   15298 
   15299 fi
   15300 
   15301 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
   15302 #ifdef HAVE_SYS_TYPES_H
   15303 #include <sys/types.h>
   15304 #endif
   15305 #ifdef HAVE_SYS_SOCKET_H
   15306 #include <sys/socket.h>
   15307 #endif
   15308 
   15309 "
   15310 if test "x$ac_cv_type_socklen_t" = xyes; then :
   15311 
   15312 else
   15313 
   15314 $as_echo "#define socklen_t int" >>confdefs.h
   15315 
   15316 fi
   15317 
   15318 
   15319 case $ac_sys_system in
   15320 AIX*)
   15321 
   15322 $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
   15323  ;;
   15324 esac
   15325 
   15326 
   15327 
   15328 
   15329 for h in `(cd $srcdir;echo Python/thread_*.h)`
   15330 do
   15331   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
   15332 done
   15333 
   15334 
   15335 SRCDIRS="Parser Objects Python Modules"
   15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
   15337 $as_echo_n "checking for build directories... " >&6; }
   15338 for dir in $SRCDIRS; do
   15339     if test ! -d $dir; then
   15340         mkdir $dir
   15341     fi
   15342 done
   15343 
   15344 # BEGIN_COMPUTED_GOTO
   15345 # Check for --with-computed-gotos
   15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
   15347 $as_echo_n "checking for --with-computed-gotos... " >&6; }
   15348 
   15349 # Check whether --with-computed-gotos was given.
   15350 if test "${with_computed_gotos+set}" = set; then :
   15351   withval=$with_computed_gotos;
   15352 if test "$withval" = yes
   15353 then
   15354 
   15355 $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
   15356 
   15357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15358 $as_echo "yes" >&6; }
   15359 fi
   15360 if test "$withval" = no
   15361 then
   15362 
   15363 $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
   15364 
   15365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15366 $as_echo "no" >&6; }
   15367 fi
   15368 
   15369 else
   15370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
   15371 $as_echo "no value specified" >&6; }
   15372 fi
   15373 
   15374 
   15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
   15376 $as_echo_n "checking whether $CC supports computed gotos... " >&6; }
   15377 if ${ac_cv_computed_gotos+:} false; then :
   15378   $as_echo_n "(cached) " >&6
   15379 else
   15380   if test "$cross_compiling" = yes; then :
   15381   if test "${with_computed_gotos+set}" = set; then
   15382    ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
   15383  else
   15384    ac_cv_computed_gotos=no
   15385  fi
   15386 else
   15387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15388 /* end confdefs.h.  */
   15389 
   15390 int main(int argc, char **argv)
   15391 {
   15392     static void *targets[1] = { &&LABEL1 };
   15393     goto LABEL2;
   15394 LABEL1:
   15395     return 0;
   15396 LABEL2:
   15397     goto *targets[0];
   15398     return 1;
   15399 }
   15400 
   15401 _ACEOF
   15402 if ac_fn_c_try_run "$LINENO"; then :
   15403   ac_cv_computed_gotos=yes
   15404 else
   15405   ac_cv_computed_gotos=no
   15406 fi
   15407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15408   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15409 fi
   15410 
   15411 fi
   15412 
   15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
   15414 $as_echo "$ac_cv_computed_gotos" >&6; }
   15415 case "$ac_cv_computed_gotos" in yes*)
   15416 
   15417 $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
   15418 
   15419 esac
   15420 # END_COMPUTED_GOTO
   15421 
   15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
   15423 $as_echo "done" >&6; }
   15424 
   15425 # ensurepip option
   15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
   15427 $as_echo_n "checking for ensurepip... " >&6; }
   15428 
   15429 # Check whether --with-ensurepip was given.
   15430 if test "${with_ensurepip+set}" = set; then :
   15431   withval=$with_ensurepip;
   15432 else
   15433   with_ensurepip=no
   15434 fi
   15435 
   15436 case $with_ensurepip in #(
   15437   yes|upgrade) :
   15438     ENSUREPIP=upgrade ;; #(
   15439   install) :
   15440     ENSUREPIP=install ;; #(
   15441   no) :
   15442     ENSUREPIP=no ;; #(
   15443   *) :
   15444     as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
   15445 esac
   15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
   15447 $as_echo "$ENSUREPIP" >&6; }
   15448 
   15449 
   15450 # generate output files
   15451 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
   15452 
   15453 ac_config_files="$ac_config_files Modules/ld_so_aix"
   15454 
   15455 cat >confcache <<\_ACEOF
   15456 # This file is a shell script that caches the results of configure
   15457 # tests run on this system so they can be shared between configure
   15458 # scripts and configure runs, see configure's option --config-cache.
   15459 # It is not useful on other systems.  If it contains results you don't
   15460 # want to keep, you may remove or edit it.
   15461 #
   15462 # config.status only pays attention to the cache file if you give it
   15463 # the --recheck option to rerun configure.
   15464 #
   15465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   15466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   15467 # following values.
   15468 
   15469 _ACEOF
   15470 
   15471 # The following way of writing the cache mishandles newlines in values,
   15472 # but we know of no workaround that is simple, portable, and efficient.
   15473 # So, we kill variables containing newlines.
   15474 # Ultrix sh set writes to stderr and can't be redirected directly,
   15475 # and sets the high bit in the cache file unless we assign to the vars.
   15476 (
   15477   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   15478     eval ac_val=\$$ac_var
   15479     case $ac_val in #(
   15480     *${as_nl}*)
   15481       case $ac_var in #(
   15482       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   15483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   15484       esac
   15485       case $ac_var in #(
   15486       _ | IFS | as_nl) ;; #(
   15487       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   15488       *) { eval $ac_var=; unset $ac_var;} ;;
   15489       esac ;;
   15490     esac
   15491   done
   15492 
   15493   (set) 2>&1 |
   15494     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   15495     *${as_nl}ac_space=\ *)
   15496       # `set' does not quote correctly, so add quotes: double-quote
   15497       # substitution turns \\\\ into \\, and sed turns \\ into \.
   15498       sed -n \
   15499 	"s/'/'\\\\''/g;
   15500 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   15501       ;; #(
   15502     *)
   15503       # `set' quotes correctly as required by POSIX, so do not add quotes.
   15504       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   15505       ;;
   15506     esac |
   15507     sort
   15508 ) |
   15509   sed '
   15510      /^ac_cv_env_/b end
   15511      t clear
   15512      :clear
   15513      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   15514      t end
   15515      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   15516      :end' >>confcache
   15517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   15518   if test -w "$cache_file"; then
   15519     if test "x$cache_file" != "x/dev/null"; then
   15520       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   15521 $as_echo "$as_me: updating cache $cache_file" >&6;}
   15522       if test ! -f "$cache_file" || test -h "$cache_file"; then
   15523 	cat confcache >"$cache_file"
   15524       else
   15525         case $cache_file in #(
   15526         */* | ?:*)
   15527 	  mv -f confcache "$cache_file"$$ &&
   15528 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   15529         *)
   15530 	  mv -f confcache "$cache_file" ;;
   15531 	esac
   15532       fi
   15533     fi
   15534   else
   15535     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   15536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   15537   fi
   15538 fi
   15539 rm -f confcache
   15540 
   15541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   15542 # Let make expand exec_prefix.
   15543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   15544 
   15545 DEFS=-DHAVE_CONFIG_H
   15546 
   15547 ac_libobjs=
   15548 ac_ltlibobjs=
   15549 U=
   15550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   15551   # 1. Remove the extension, and $U if already installed.
   15552   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   15553   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   15554   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   15555   #    will be set to the directory where LIBOBJS objects are built.
   15556   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   15557   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   15558 done
   15559 LIBOBJS=$ac_libobjs
   15560 
   15561 LTLIBOBJS=$ac_ltlibobjs
   15562 
   15563 
   15564 
   15565 
   15566 : "${CONFIG_STATUS=./config.status}"
   15567 ac_write_fail=0
   15568 ac_clean_files_save=$ac_clean_files
   15569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   15570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   15571 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   15572 as_write_fail=0
   15573 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   15574 #! $SHELL
   15575 # Generated by $as_me.
   15576 # Run this file to recreate the current configuration.
   15577 # Compiler output produced by configure, useful for debugging
   15578 # configure, is in config.log if it exists.
   15579 
   15580 debug=false
   15581 ac_cs_recheck=false
   15582 ac_cs_silent=false
   15583 
   15584 SHELL=\${CONFIG_SHELL-$SHELL}
   15585 export SHELL
   15586 _ASEOF
   15587 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   15588 ## -------------------- ##
   15589 ## M4sh Initialization. ##
   15590 ## -------------------- ##
   15591 
   15592 # Be more Bourne compatible
   15593 DUALCASE=1; export DUALCASE # for MKS sh
   15594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   15595   emulate sh
   15596   NULLCMD=:
   15597   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   15598   # is contrary to our usage.  Disable this feature.
   15599   alias -g '${1+"$@"}'='"$@"'
   15600   setopt NO_GLOB_SUBST
   15601 else
   15602   case `(set -o) 2>/dev/null` in #(
   15603   *posix*) :
   15604     set -o posix ;; #(
   15605   *) :
   15606      ;;
   15607 esac
   15608 fi
   15609 
   15610 
   15611 as_nl='
   15612 '
   15613 export as_nl
   15614 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   15615 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   15616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   15617 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   15618 # Prefer a ksh shell builtin over an external printf program on Solaris,
   15619 # but without wasting forks for bash or zsh.
   15620 if test -z "$BASH_VERSION$ZSH_VERSION" \
   15621     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   15622   as_echo='print -r --'
   15623   as_echo_n='print -rn --'
   15624 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   15625   as_echo='printf %s\n'
   15626   as_echo_n='printf %s'
   15627 else
   15628   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   15629     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   15630     as_echo_n='/usr/ucb/echo -n'
   15631   else
   15632     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   15633     as_echo_n_body='eval
   15634       arg=$1;
   15635       case $arg in #(
   15636       *"$as_nl"*)
   15637 	expr "X$arg" : "X\\(.*\\)$as_nl";
   15638 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   15639       esac;
   15640       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   15641     '
   15642     export as_echo_n_body
   15643     as_echo_n='sh -c $as_echo_n_body as_echo'
   15644   fi
   15645   export as_echo_body
   15646   as_echo='sh -c $as_echo_body as_echo'
   15647 fi
   15648 
   15649 # The user is always right.
   15650 if test "${PATH_SEPARATOR+set}" != set; then
   15651   PATH_SEPARATOR=:
   15652   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   15653     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   15654       PATH_SEPARATOR=';'
   15655   }
   15656 fi
   15657 
   15658 
   15659 # IFS
   15660 # We need space, tab and new line, in precisely that order.  Quoting is
   15661 # there to prevent editors from complaining about space-tab.
   15662 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   15663 # splitting by setting IFS to empty value.)
   15664 IFS=" ""	$as_nl"
   15665 
   15666 # Find who we are.  Look in the path if we contain no directory separator.
   15667 as_myself=
   15668 case $0 in #((
   15669   *[\\/]* ) as_myself=$0 ;;
   15670   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15671 for as_dir in $PATH
   15672 do
   15673   IFS=$as_save_IFS
   15674   test -z "$as_dir" && as_dir=.
   15675     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   15676   done
   15677 IFS=$as_save_IFS
   15678 
   15679      ;;
   15680 esac
   15681 # We did not find ourselves, most probably we were run as `sh COMMAND'
   15682 # in which case we are not to be found in the path.
   15683 if test "x$as_myself" = x; then
   15684   as_myself=$0
   15685 fi
   15686 if test ! -f "$as_myself"; then
   15687   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   15688   exit 1
   15689 fi
   15690 
   15691 # Unset variables that we do not need and which cause bugs (e.g. in
   15692 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   15693 # suppresses any "Segmentation fault" message there.  '((' could
   15694 # trigger a bug in pdksh 5.2.14.
   15695 for as_var in BASH_ENV ENV MAIL MAILPATH
   15696 do eval test x\${$as_var+set} = xset \
   15697   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   15698 done
   15699 PS1='$ '
   15700 PS2='> '
   15701 PS4='+ '
   15702 
   15703 # NLS nuisances.
   15704 LC_ALL=C
   15705 export LC_ALL
   15706 LANGUAGE=C
   15707 export LANGUAGE
   15708 
   15709 # CDPATH.
   15710 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   15711 
   15712 
   15713 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   15714 # ----------------------------------------
   15715 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   15716 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   15717 # script with STATUS, using 1 if that was 0.
   15718 as_fn_error ()
   15719 {
   15720   as_status=$1; test $as_status -eq 0 && as_status=1
   15721   if test "$4"; then
   15722     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   15723     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   15724   fi
   15725   $as_echo "$as_me: error: $2" >&2
   15726   as_fn_exit $as_status
   15727 } # as_fn_error
   15728 
   15729 
   15730 # as_fn_set_status STATUS
   15731 # -----------------------
   15732 # Set $? to STATUS, without forking.
   15733 as_fn_set_status ()
   15734 {
   15735   return $1
   15736 } # as_fn_set_status
   15737 
   15738 # as_fn_exit STATUS
   15739 # -----------------
   15740 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   15741 as_fn_exit ()
   15742 {
   15743   set +e
   15744   as_fn_set_status $1
   15745   exit $1
   15746 } # as_fn_exit
   15747 
   15748 # as_fn_unset VAR
   15749 # ---------------
   15750 # Portably unset VAR.
   15751 as_fn_unset ()
   15752 {
   15753   { eval $1=; unset $1;}
   15754 }
   15755 as_unset=as_fn_unset
   15756 # as_fn_append VAR VALUE
   15757 # ----------------------
   15758 # Append the text in VALUE to the end of the definition contained in VAR. Take
   15759 # advantage of any shell optimizations that allow amortized linear growth over
   15760 # repeated appends, instead of the typical quadratic growth present in naive
   15761 # implementations.
   15762 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   15763   eval 'as_fn_append ()
   15764   {
   15765     eval $1+=\$2
   15766   }'
   15767 else
   15768   as_fn_append ()
   15769   {
   15770     eval $1=\$$1\$2
   15771   }
   15772 fi # as_fn_append
   15773 
   15774 # as_fn_arith ARG...
   15775 # ------------------
   15776 # Perform arithmetic evaluation on the ARGs, and store the result in the
   15777 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   15778 # must be portable across $(()) and expr.
   15779 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   15780   eval 'as_fn_arith ()
   15781   {
   15782     as_val=$(( $* ))
   15783   }'
   15784 else
   15785   as_fn_arith ()
   15786   {
   15787     as_val=`expr "$@" || test $? -eq 1`
   15788   }
   15789 fi # as_fn_arith
   15790 
   15791 
   15792 if expr a : '\(a\)' >/dev/null 2>&1 &&
   15793    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   15794   as_expr=expr
   15795 else
   15796   as_expr=false
   15797 fi
   15798 
   15799 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   15800   as_basename=basename
   15801 else
   15802   as_basename=false
   15803 fi
   15804 
   15805 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   15806   as_dirname=dirname
   15807 else
   15808   as_dirname=false
   15809 fi
   15810 
   15811 as_me=`$as_basename -- "$0" ||
   15812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   15813 	 X"$0" : 'X\(//\)$' \| \
   15814 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   15815 $as_echo X/"$0" |
   15816     sed '/^.*\/\([^/][^/]*\)\/*$/{
   15817 	    s//\1/
   15818 	    q
   15819 	  }
   15820 	  /^X\/\(\/\/\)$/{
   15821 	    s//\1/
   15822 	    q
   15823 	  }
   15824 	  /^X\/\(\/\).*/{
   15825 	    s//\1/
   15826 	    q
   15827 	  }
   15828 	  s/.*/./; q'`
   15829 
   15830 # Avoid depending upon Character Ranges.
   15831 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   15832 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   15833 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   15834 as_cr_digits='0123456789'
   15835 as_cr_alnum=$as_cr_Letters$as_cr_digits
   15836 
   15837 ECHO_C= ECHO_N= ECHO_T=
   15838 case `echo -n x` in #(((((
   15839 -n*)
   15840   case `echo 'xy\c'` in
   15841   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   15842   xy)  ECHO_C='\c';;
   15843   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   15844        ECHO_T='	';;
   15845   esac;;
   15846 *)
   15847   ECHO_N='-n';;
   15848 esac
   15849 
   15850 rm -f conf$$ conf$$.exe conf$$.file
   15851 if test -d conf$$.dir; then
   15852   rm -f conf$$.dir/conf$$.file
   15853 else
   15854   rm -f conf$$.dir
   15855   mkdir conf$$.dir 2>/dev/null
   15856 fi
   15857 if (echo >conf$$.file) 2>/dev/null; then
   15858   if ln -s conf$$.file conf$$ 2>/dev/null; then
   15859     as_ln_s='ln -s'
   15860     # ... but there are two gotchas:
   15861     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   15862     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   15863     # In both cases, we have to default to `cp -pR'.
   15864     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   15865       as_ln_s='cp -pR'
   15866   elif ln conf$$.file conf$$ 2>/dev/null; then
   15867     as_ln_s=ln
   15868   else
   15869     as_ln_s='cp -pR'
   15870   fi
   15871 else
   15872   as_ln_s='cp -pR'
   15873 fi
   15874 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   15875 rmdir conf$$.dir 2>/dev/null
   15876 
   15877 
   15878 # as_fn_mkdir_p
   15879 # -------------
   15880 # Create "$as_dir" as a directory, including parents if necessary.
   15881 as_fn_mkdir_p ()
   15882 {
   15883 
   15884   case $as_dir in #(
   15885   -*) as_dir=./$as_dir;;
   15886   esac
   15887   test -d "$as_dir" || eval $as_mkdir_p || {
   15888     as_dirs=
   15889     while :; do
   15890       case $as_dir in #(
   15891       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   15892       *) as_qdir=$as_dir;;
   15893       esac
   15894       as_dirs="'$as_qdir' $as_dirs"
   15895       as_dir=`$as_dirname -- "$as_dir" ||
   15896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15897 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   15898 	 X"$as_dir" : 'X\(//\)$' \| \
   15899 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   15900 $as_echo X"$as_dir" |
   15901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   15902 	    s//\1/
   15903 	    q
   15904 	  }
   15905 	  /^X\(\/\/\)[^/].*/{
   15906 	    s//\1/
   15907 	    q
   15908 	  }
   15909 	  /^X\(\/\/\)$/{
   15910 	    s//\1/
   15911 	    q
   15912 	  }
   15913 	  /^X\(\/\).*/{
   15914 	    s//\1/
   15915 	    q
   15916 	  }
   15917 	  s/.*/./; q'`
   15918       test -d "$as_dir" && break
   15919     done
   15920     test -z "$as_dirs" || eval "mkdir $as_dirs"
   15921   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   15922 
   15923 
   15924 } # as_fn_mkdir_p
   15925 if mkdir -p . 2>/dev/null; then
   15926   as_mkdir_p='mkdir -p "$as_dir"'
   15927 else
   15928   test -d ./-p && rmdir ./-p
   15929   as_mkdir_p=false
   15930 fi
   15931 
   15932 
   15933 # as_fn_executable_p FILE
   15934 # -----------------------
   15935 # Test if FILE is an executable regular file.
   15936 as_fn_executable_p ()
   15937 {
   15938   test -f "$1" && test -x "$1"
   15939 } # as_fn_executable_p
   15940 as_test_x='test -x'
   15941 as_executable_p=as_fn_executable_p
   15942 
   15943 # Sed expression to map a string onto a valid CPP name.
   15944 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   15945 
   15946 # Sed expression to map a string onto a valid variable name.
   15947 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   15948 
   15949 
   15950 exec 6>&1
   15951 ## ----------------------------------- ##
   15952 ## Main body of $CONFIG_STATUS script. ##
   15953 ## ----------------------------------- ##
   15954 _ASEOF
   15955 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   15956 
   15957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15958 # Save the log message, to keep $0 and so on meaningful, and to
   15959 # report actual input values of CONFIG_FILES etc. instead of their
   15960 # values after options handling.
   15961 ac_log="
   15962 This file was extended by python $as_me 2.7, which was
   15963 generated by GNU Autoconf 2.69.  Invocation command line was
   15964 
   15965   CONFIG_FILES    = $CONFIG_FILES
   15966   CONFIG_HEADERS  = $CONFIG_HEADERS
   15967   CONFIG_LINKS    = $CONFIG_LINKS
   15968   CONFIG_COMMANDS = $CONFIG_COMMANDS
   15969   $ $0 $@
   15970 
   15971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   15972 "
   15973 
   15974 _ACEOF
   15975 
   15976 case $ac_config_files in *"
   15977 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   15978 esac
   15979 
   15980 case $ac_config_headers in *"
   15981 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   15982 esac
   15983 
   15984 
   15985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15986 # Files that config.status was made for.
   15987 config_files="$ac_config_files"
   15988 config_headers="$ac_config_headers"
   15989 
   15990 _ACEOF
   15991 
   15992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15993 ac_cs_usage="\
   15994 \`$as_me' instantiates files and other configuration actions
   15995 from templates according to the current configuration.  Unless the files
   15996 and actions are specified as TAGs, all are instantiated by default.
   15997 
   15998 Usage: $0 [OPTION]... [TAG]...
   15999 
   16000   -h, --help       print this help, then exit
   16001   -V, --version    print version number and configuration settings, then exit
   16002       --config     print configuration, then exit
   16003   -q, --quiet, --silent
   16004                    do not print progress messages
   16005   -d, --debug      don't remove temporary files
   16006       --recheck    update $as_me by reconfiguring in the same conditions
   16007       --file=FILE[:TEMPLATE]
   16008                    instantiate the configuration file FILE
   16009       --header=FILE[:TEMPLATE]
   16010                    instantiate the configuration header FILE
   16011 
   16012 Configuration files:
   16013 $config_files
   16014 
   16015 Configuration headers:
   16016 $config_headers
   16017 
   16018 Report bugs to <https://bugs.python.org/>."
   16019 
   16020 _ACEOF
   16021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16022 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   16023 ac_cs_version="\\
   16024 python config.status 2.7
   16025 configured by $0, generated by GNU Autoconf 2.69,
   16026   with options \\"\$ac_cs_config\\"
   16027 
   16028 Copyright (C) 2012 Free Software Foundation, Inc.
   16029 This config.status script is free software; the Free Software Foundation
   16030 gives unlimited permission to copy, distribute and modify it."
   16031 
   16032 ac_pwd='$ac_pwd'
   16033 srcdir='$srcdir'
   16034 INSTALL='$INSTALL'
   16035 MKDIR_P='$MKDIR_P'
   16036 test -n "\$AWK" || AWK=awk
   16037 _ACEOF
   16038 
   16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16040 # The default lists apply if the user does not specify any file.
   16041 ac_need_defaults=:
   16042 while test $# != 0
   16043 do
   16044   case $1 in
   16045   --*=?*)
   16046     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   16047     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   16048     ac_shift=:
   16049     ;;
   16050   --*=)
   16051     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   16052     ac_optarg=
   16053     ac_shift=:
   16054     ;;
   16055   *)
   16056     ac_option=$1
   16057     ac_optarg=$2
   16058     ac_shift=shift
   16059     ;;
   16060   esac
   16061 
   16062   case $ac_option in
   16063   # Handling of the options.
   16064   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   16065     ac_cs_recheck=: ;;
   16066   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   16067     $as_echo "$ac_cs_version"; exit ;;
   16068   --config | --confi | --conf | --con | --co | --c )
   16069     $as_echo "$ac_cs_config"; exit ;;
   16070   --debug | --debu | --deb | --de | --d | -d )
   16071     debug=: ;;
   16072   --file | --fil | --fi | --f )
   16073     $ac_shift
   16074     case $ac_optarg in
   16075     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   16076     '') as_fn_error $? "missing file argument" ;;
   16077     esac
   16078     as_fn_append CONFIG_FILES " '$ac_optarg'"
   16079     ac_need_defaults=false;;
   16080   --header | --heade | --head | --hea )
   16081     $ac_shift
   16082     case $ac_optarg in
   16083     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   16084     esac
   16085     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   16086     ac_need_defaults=false;;
   16087   --he | --h)
   16088     # Conflict between --help and --header
   16089     as_fn_error $? "ambiguous option: \`$1'
   16090 Try \`$0 --help' for more information.";;
   16091   --help | --hel | -h )
   16092     $as_echo "$ac_cs_usage"; exit ;;
   16093   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   16094   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   16095     ac_cs_silent=: ;;
   16096 
   16097   # This is an error.
   16098   -*) as_fn_error $? "unrecognized option: \`$1'
   16099 Try \`$0 --help' for more information." ;;
   16100 
   16101   *) as_fn_append ac_config_targets " $1"
   16102      ac_need_defaults=false ;;
   16103 
   16104   esac
   16105   shift
   16106 done
   16107 
   16108 ac_configure_extra_args=
   16109 
   16110 if $ac_cs_silent; then
   16111   exec 6>/dev/null
   16112   ac_configure_extra_args="$ac_configure_extra_args --silent"
   16113 fi
   16114 
   16115 _ACEOF
   16116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16117 if \$ac_cs_recheck; then
   16118   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   16119   shift
   16120   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   16121   CONFIG_SHELL='$SHELL'
   16122   export CONFIG_SHELL
   16123   exec "\$@"
   16124 fi
   16125 
   16126 _ACEOF
   16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16128 exec 5>>config.log
   16129 {
   16130   echo
   16131   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   16132 ## Running $as_me. ##
   16133 _ASBOX
   16134   $as_echo "$ac_log"
   16135 } >&5
   16136 
   16137 _ACEOF
   16138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16139 _ACEOF
   16140 
   16141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16142 
   16143 # Handling of arguments.
   16144 for ac_config_target in $ac_config_targets
   16145 do
   16146   case $ac_config_target in
   16147     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
   16148     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
   16149     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
   16150     "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
   16151     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
   16152     "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
   16153     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
   16154     "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
   16155     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
   16156     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
   16157 
   16158   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   16159   esac
   16160 done
   16161 
   16162 
   16163 # If the user did not use the arguments to specify the items to instantiate,
   16164 # then the envvar interface is used.  Set only those that are not.
   16165 # We use the long form for the default assignment because of an extremely
   16166 # bizarre bug on SunOS 4.1.3.
   16167 if $ac_need_defaults; then
   16168   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   16169   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   16170 fi
   16171 
   16172 # Have a temporary directory for convenience.  Make it in the build tree
   16173 # simply because there is no reason against having it here, and in addition,
   16174 # creating and moving files from /tmp can sometimes cause problems.
   16175 # Hook for its removal unless debugging.
   16176 # Note that there is a small window in which the directory will not be cleaned:
   16177 # after its creation but before its name has been assigned to `$tmp'.
   16178 $debug ||
   16179 {
   16180   tmp= ac_tmp=
   16181   trap 'exit_status=$?
   16182   : "${ac_tmp:=$tmp}"
   16183   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   16184 ' 0
   16185   trap 'as_fn_exit 1' 1 2 13 15
   16186 }
   16187 # Create a (secure) tmp directory for tmp files.
   16188 
   16189 {
   16190   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   16191   test -d "$tmp"
   16192 }  ||
   16193 {
   16194   tmp=./conf$$-$RANDOM
   16195   (umask 077 && mkdir "$tmp")
   16196 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   16197 ac_tmp=$tmp
   16198 
   16199 # Set up the scripts for CONFIG_FILES section.
   16200 # No need to generate them if there are no CONFIG_FILES.
   16201 # This happens for instance with `./config.status config.h'.
   16202 if test -n "$CONFIG_FILES"; then
   16203 
   16204 
   16205 ac_cr=`echo X | tr X '\015'`
   16206 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   16207 # But we know of no other shell where ac_cr would be empty at this
   16208 # point, so we can use a bashism as a fallback.
   16209 if test "x$ac_cr" = x; then
   16210   eval ac_cr=\$\'\\r\'
   16211 fi
   16212 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   16213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   16214   ac_cs_awk_cr='\\r'
   16215 else
   16216   ac_cs_awk_cr=$ac_cr
   16217 fi
   16218 
   16219 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   16220 _ACEOF
   16221 
   16222 
   16223 {
   16224   echo "cat >conf$$subs.awk <<_ACEOF" &&
   16225   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   16226   echo "_ACEOF"
   16227 } >conf$$subs.sh ||
   16228   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   16229 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   16230 ac_delim='%!_!# '
   16231 for ac_last_try in false false false false false :; do
   16232   . ./conf$$subs.sh ||
   16233     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   16234 
   16235   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   16236   if test $ac_delim_n = $ac_delim_num; then
   16237     break
   16238   elif $ac_last_try; then
   16239     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   16240   else
   16241     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   16242   fi
   16243 done
   16244 rm -f conf$$subs.sh
   16245 
   16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16247 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   16248 _ACEOF
   16249 sed -n '
   16250 h
   16251 s/^/S["/; s/!.*/"]=/
   16252 p
   16253 g
   16254 s/^[^!]*!//
   16255 :repl
   16256 t repl
   16257 s/'"$ac_delim"'$//
   16258 t delim
   16259 :nl
   16260 h
   16261 s/\(.\{148\}\)..*/\1/
   16262 t more1
   16263 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   16264 p
   16265 n
   16266 b repl
   16267 :more1
   16268 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   16269 p
   16270 g
   16271 s/.\{148\}//
   16272 t nl
   16273 :delim
   16274 h
   16275 s/\(.\{148\}\)..*/\1/
   16276 t more2
   16277 s/["\\]/\\&/g; s/^/"/; s/$/"/
   16278 p
   16279 b
   16280 :more2
   16281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   16282 p
   16283 g
   16284 s/.\{148\}//
   16285 t delim
   16286 ' <conf$$subs.awk | sed '
   16287 /^[^""]/{
   16288   N
   16289   s/\n//
   16290 }
   16291 ' >>$CONFIG_STATUS || ac_write_fail=1
   16292 rm -f conf$$subs.awk
   16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16294 _ACAWK
   16295 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   16296   for (key in S) S_is_set[key] = 1
   16297   FS = ""
   16298 
   16299 }
   16300 {
   16301   line = $ 0
   16302   nfields = split(line, field, "@")
   16303   substed = 0
   16304   len = length(field[1])
   16305   for (i = 2; i < nfields; i++) {
   16306     key = field[i]
   16307     keylen = length(key)
   16308     if (S_is_set[key]) {
   16309       value = S[key]
   16310       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   16311       len += length(value) + length(field[++i])
   16312       substed = 1
   16313     } else
   16314       len += 1 + keylen
   16315   }
   16316 
   16317   print line
   16318 }
   16319 
   16320 _ACAWK
   16321 _ACEOF
   16322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16323 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   16324   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   16325 else
   16326   cat
   16327 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   16328   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   16329 _ACEOF
   16330 
   16331 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   16332 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   16333 # trailing colons and then remove the whole line if VPATH becomes empty
   16334 # (actually we leave an empty line to preserve line numbers).
   16335 if test "x$srcdir" = x.; then
   16336   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   16337 h
   16338 s///
   16339 s/^/:/
   16340 s/[	 ]*$/:/
   16341 s/:\$(srcdir):/:/g
   16342 s/:\${srcdir}:/:/g
   16343 s/:@srcdir@:/:/g
   16344 s/^:*//
   16345 s/:*$//
   16346 x
   16347 s/\(=[	 ]*\).*/\1/
   16348 G
   16349 s/\n//
   16350 s/^[^=]*=[	 ]*$//
   16351 }'
   16352 fi
   16353 
   16354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16355 fi # test -n "$CONFIG_FILES"
   16356 
   16357 # Set up the scripts for CONFIG_HEADERS section.
   16358 # No need to generate them if there are no CONFIG_HEADERS.
   16359 # This happens for instance with `./config.status Makefile'.
   16360 if test -n "$CONFIG_HEADERS"; then
   16361 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   16362 BEGIN {
   16363 _ACEOF
   16364 
   16365 # Transform confdefs.h into an awk script `defines.awk', embedded as
   16366 # here-document in config.status, that substitutes the proper values into
   16367 # config.h.in to produce config.h.
   16368 
   16369 # Create a delimiter string that does not exist in confdefs.h, to ease
   16370 # handling of long lines.
   16371 ac_delim='%!_!# '
   16372 for ac_last_try in false false :; do
   16373   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   16374   if test -z "$ac_tt"; then
   16375     break
   16376   elif $ac_last_try; then
   16377     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   16378   else
   16379     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   16380   fi
   16381 done
   16382 
   16383 # For the awk script, D is an array of macro values keyed by name,
   16384 # likewise P contains macro parameters if any.  Preserve backslash
   16385 # newline sequences.
   16386 
   16387 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   16388 sed -n '
   16389 s/.\{148\}/&'"$ac_delim"'/g
   16390 t rset
   16391 :rset
   16392 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   16393 t def
   16394 d
   16395 :def
   16396 s/\\$//
   16397 t bsnl
   16398 s/["\\]/\\&/g
   16399 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   16400 D["\1"]=" \3"/p
   16401 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   16402 d
   16403 :bsnl
   16404 s/["\\]/\\&/g
   16405 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   16406 D["\1"]=" \3\\\\\\n"\\/p
   16407 t cont
   16408 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   16409 t cont
   16410 d
   16411 :cont
   16412 n
   16413 s/.\{148\}/&'"$ac_delim"'/g
   16414 t clear
   16415 :clear
   16416 s/\\$//
   16417 t bsnlc
   16418 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   16419 d
   16420 :bsnlc
   16421 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   16422 b cont
   16423 ' <confdefs.h | sed '
   16424 s/'"$ac_delim"'/"\\\
   16425 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   16426 
   16427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16428   for (key in D) D_is_set[key] = 1
   16429   FS = ""
   16430 }
   16431 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   16432   line = \$ 0
   16433   split(line, arg, " ")
   16434   if (arg[1] == "#") {
   16435     defundef = arg[2]
   16436     mac1 = arg[3]
   16437   } else {
   16438     defundef = substr(arg[1], 2)
   16439     mac1 = arg[2]
   16440   }
   16441   split(mac1, mac2, "(") #)
   16442   macro = mac2[1]
   16443   prefix = substr(line, 1, index(line, defundef) - 1)
   16444   if (D_is_set[macro]) {
   16445     # Preserve the white space surrounding the "#".
   16446     print prefix "define", macro P[macro] D[macro]
   16447     next
   16448   } else {
   16449     # Replace #undef with comments.  This is necessary, for example,
   16450     # in the case of _POSIX_SOURCE, which is predefined and required
   16451     # on some systems where configure will not decide to define it.
   16452     if (defundef == "undef") {
   16453       print "/*", prefix defundef, macro, "*/"
   16454       next
   16455     }
   16456   }
   16457 }
   16458 { print }
   16459 _ACAWK
   16460 _ACEOF
   16461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16462   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   16463 fi # test -n "$CONFIG_HEADERS"
   16464 
   16465 
   16466 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
   16467 shift
   16468 for ac_tag
   16469 do
   16470   case $ac_tag in
   16471   :[FHLC]) ac_mode=$ac_tag; continue;;
   16472   esac
   16473   case $ac_mode$ac_tag in
   16474   :[FHL]*:*);;
   16475   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   16476   :[FH]-) ac_tag=-:-;;
   16477   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   16478   esac
   16479   ac_save_IFS=$IFS
   16480   IFS=:
   16481   set x $ac_tag
   16482   IFS=$ac_save_IFS
   16483   shift
   16484   ac_file=$1
   16485   shift
   16486 
   16487   case $ac_mode in
   16488   :L) ac_source=$1;;
   16489   :[FH])
   16490     ac_file_inputs=
   16491     for ac_f
   16492     do
   16493       case $ac_f in
   16494       -) ac_f="$ac_tmp/stdin";;
   16495       *) # Look for the file first in the build tree, then in the source tree
   16496 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   16497 	 # because $ac_f cannot contain `:'.
   16498 	 test -f "$ac_f" ||
   16499 	   case $ac_f in
   16500 	   [\\/$]*) false;;
   16501 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   16502 	   esac ||
   16503 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   16504       esac
   16505       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   16506       as_fn_append ac_file_inputs " '$ac_f'"
   16507     done
   16508 
   16509     # Let's still pretend it is `configure' which instantiates (i.e., don't
   16510     # use $as_me), people would be surprised to read:
   16511     #    /* config.h.  Generated by config.status.  */
   16512     configure_input='Generated from '`
   16513 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   16514 	`' by configure.'
   16515     if test x"$ac_file" != x-; then
   16516       configure_input="$ac_file.  $configure_input"
   16517       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   16518 $as_echo "$as_me: creating $ac_file" >&6;}
   16519     fi
   16520     # Neutralize special characters interpreted by sed in replacement strings.
   16521     case $configure_input in #(
   16522     *\&* | *\|* | *\\* )
   16523        ac_sed_conf_input=`$as_echo "$configure_input" |
   16524        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   16525     *) ac_sed_conf_input=$configure_input;;
   16526     esac
   16527 
   16528     case $ac_tag in
   16529     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   16530       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   16531     esac
   16532     ;;
   16533   esac
   16534 
   16535   ac_dir=`$as_dirname -- "$ac_file" ||
   16536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   16537 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   16538 	 X"$ac_file" : 'X\(//\)$' \| \
   16539 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   16540 $as_echo X"$ac_file" |
   16541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   16542 	    s//\1/
   16543 	    q
   16544 	  }
   16545 	  /^X\(\/\/\)[^/].*/{
   16546 	    s//\1/
   16547 	    q
   16548 	  }
   16549 	  /^X\(\/\/\)$/{
   16550 	    s//\1/
   16551 	    q
   16552 	  }
   16553 	  /^X\(\/\).*/{
   16554 	    s//\1/
   16555 	    q
   16556 	  }
   16557 	  s/.*/./; q'`
   16558   as_dir="$ac_dir"; as_fn_mkdir_p
   16559   ac_builddir=.
   16560 
   16561 case "$ac_dir" in
   16562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   16563 *)
   16564   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   16565   # A ".." for each directory in $ac_dir_suffix.
   16566   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   16567   case $ac_top_builddir_sub in
   16568   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   16569   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   16570   esac ;;
   16571 esac
   16572 ac_abs_top_builddir=$ac_pwd
   16573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   16574 # for backward compatibility:
   16575 ac_top_builddir=$ac_top_build_prefix
   16576 
   16577 case $srcdir in
   16578   .)  # We are building in place.
   16579     ac_srcdir=.
   16580     ac_top_srcdir=$ac_top_builddir_sub
   16581     ac_abs_top_srcdir=$ac_pwd ;;
   16582   [\\/]* | ?:[\\/]* )  # Absolute name.
   16583     ac_srcdir=$srcdir$ac_dir_suffix;
   16584     ac_top_srcdir=$srcdir
   16585     ac_abs_top_srcdir=$srcdir ;;
   16586   *) # Relative name.
   16587     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   16588     ac_top_srcdir=$ac_top_build_prefix$srcdir
   16589     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   16590 esac
   16591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   16592 
   16593 
   16594   case $ac_mode in
   16595   :F)
   16596   #
   16597   # CONFIG_FILE
   16598   #
   16599 
   16600   case $INSTALL in
   16601   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   16602   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   16603   esac
   16604   ac_MKDIR_P=$MKDIR_P
   16605   case $MKDIR_P in
   16606   [\\/$]* | ?:[\\/]* ) ;;
   16607   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   16608   esac
   16609 _ACEOF
   16610 
   16611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16612 # If the template does not know about datarootdir, expand it.
   16613 # FIXME: This hack should be removed a few years after 2.60.
   16614 ac_datarootdir_hack=; ac_datarootdir_seen=
   16615 ac_sed_dataroot='
   16616 /datarootdir/ {
   16617   p
   16618   q
   16619 }
   16620 /@datadir@/p
   16621 /@docdir@/p
   16622 /@infodir@/p
   16623 /@localedir@/p
   16624 /@mandir@/p'
   16625 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   16626 *datarootdir*) ac_datarootdir_seen=yes;;
   16627 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   16628   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   16629 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   16630 _ACEOF
   16631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16632   ac_datarootdir_hack='
   16633   s&@datadir@&$datadir&g
   16634   s&@docdir@&$docdir&g
   16635   s&@infodir@&$infodir&g
   16636   s&@localedir@&$localedir&g
   16637   s&@mandir@&$mandir&g
   16638   s&\\\${datarootdir}&$datarootdir&g' ;;
   16639 esac
   16640 _ACEOF
   16641 
   16642 # Neutralize VPATH when `$srcdir' = `.'.
   16643 # Shell code in configure.ac might set extrasub.
   16644 # FIXME: do we really want to maintain this feature?
   16645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16646 ac_sed_extra="$ac_vpsub
   16647 $extrasub
   16648 _ACEOF
   16649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16650 :t
   16651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   16652 s|@configure_input@|$ac_sed_conf_input|;t t
   16653 s&@top_builddir@&$ac_top_builddir_sub&;t t
   16654 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   16655 s&@srcdir@&$ac_srcdir&;t t
   16656 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   16657 s&@top_srcdir@&$ac_top_srcdir&;t t
   16658 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   16659 s&@builddir@&$ac_builddir&;t t
   16660 s&@abs_builddir@&$ac_abs_builddir&;t t
   16661 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   16662 s&@INSTALL@&$ac_INSTALL&;t t
   16663 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   16664 $ac_datarootdir_hack
   16665 "
   16666 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   16667   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   16668 
   16669 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   16670   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   16671   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   16672       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   16673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   16674 which seems to be undefined.  Please make sure it is defined" >&5
   16675 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   16676 which seems to be undefined.  Please make sure it is defined" >&2;}
   16677 
   16678   rm -f "$ac_tmp/stdin"
   16679   case $ac_file in
   16680   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   16681   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   16682   esac \
   16683   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   16684  ;;
   16685   :H)
   16686   #
   16687   # CONFIG_HEADER
   16688   #
   16689   if test x"$ac_file" != x-; then
   16690     {
   16691       $as_echo "/* $configure_input  */" \
   16692       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   16693     } >"$ac_tmp/config.h" \
   16694       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   16695     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   16696       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   16697 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   16698     else
   16699       rm -f "$ac_file"
   16700       mv "$ac_tmp/config.h" "$ac_file" \
   16701 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   16702     fi
   16703   else
   16704     $as_echo "/* $configure_input  */" \
   16705       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   16706       || as_fn_error $? "could not create -" "$LINENO" 5
   16707   fi
   16708  ;;
   16709 
   16710 
   16711   esac
   16712 
   16713 
   16714   case $ac_file$ac_mode in
   16715     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
   16716 
   16717   esac
   16718 done # for ac_tag
   16719 
   16720 
   16721 as_fn_exit 0
   16722 _ACEOF
   16723 ac_clean_files=$ac_clean_files_save
   16724 
   16725 test $ac_write_fail = 0 ||
   16726   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   16727 
   16728 
   16729 # configure is writing to config.log, and then calls config.status.
   16730 # config.status does its own redirection, appending to config.log.
   16731 # Unfortunately, on DOS this fails, as config.log is still kept open
   16732 # by configure, so config.status won't be able to write to it; its
   16733 # output is simply discarded.  So we exec the FD to /dev/null,
   16734 # effectively closing config.log, so it can be properly (re)opened and
   16735 # appended to by config.status.  When coming back to configure, we
   16736 # need to make the FD available again.
   16737 if test "$no_create" != yes; then
   16738   ac_cs_success=:
   16739   ac_config_status_args=
   16740   test "$silent" = yes &&
   16741     ac_config_status_args="$ac_config_status_args --quiet"
   16742   exec 5>/dev/null
   16743   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   16744   exec 5>>config.log
   16745   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   16746   # would make configure fail if this is the last instruction.
   16747   $ac_cs_success || as_fn_exit 1
   16748 fi
   16749 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   16750   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   16751 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   16752 fi
   16753 
   16754 
   16755 echo "creating Modules/Setup"
   16756 if test ! -f Modules/Setup
   16757 then
   16758 	cp $srcdir/Modules/Setup.dist Modules/Setup
   16759 fi
   16760 
   16761 echo "creating Modules/Setup.local"
   16762 if test ! -f Modules/Setup.local
   16763 then
   16764 	echo "# Edit this file for local setup changes" >Modules/Setup.local
   16765 fi
   16766 
   16767 echo "creating Makefile"
   16768 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
   16769 			-s Modules Modules/Setup.config \
   16770 			Modules/Setup.local Modules/Setup
   16771 
   16772 case $ac_sys_system in
   16773 BeOS)
   16774         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
   16775 
   16776   Support for BeOS is deprecated as of Python 2.6.
   16777   See PEP 11 for the gory details.
   16778   " >&5
   16779 $as_echo "$as_me: WARNING:
   16780 
   16781   Support for BeOS is deprecated as of Python 2.6.
   16782   See PEP 11 for the gory details.
   16783   " >&2;}
   16784   ;;
   16785 *) ;;
   16786 esac
   16787 
   16788 mv config.c Modules
   16789 
   16790 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
   16791     echo "" >&6
   16792     echo "" >&6
   16793     echo "If you want a release build with all optimizations active (LTO, PGO, etc),"
   16794     echo "please run ./configure --enable-optimizations" >&6
   16795     echo "" >&6
   16796     echo "" >&6
   16797 fi
   16798