| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for python 3.7. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | # | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 5 | # Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7 | # | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9 | # | 
 | 10 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation | 
 | 12 | # gives unlimited permission to copy, distribute and modify it. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13 | ## -------------------- ## | 
 | 14 | ## M4sh Initialization. ## | 
 | 15 | ## -------------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible | 
 | 18 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20 |   emulate sh | 
 | 21 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 22 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23 |   # is contrary to our usage.  Disable this feature. | 
 | 24 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 26 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 27 |   case `(set -o) 2>/dev/null` in #( | 
 | 28 |   *posix*) : | 
 | 29 |     set -o posix ;; #( | 
 | 30 |   *) : | 
 | 31 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 32 | esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 34 |  | 
 | 35 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 36 | as_nl=' | 
 | 37 | ' | 
 | 38 | export as_nl | 
 | 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 44 | # but without wasting forks for bash or zsh. | 
 | 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 46 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 47 |   as_echo='print -r --' | 
 | 48 |   as_echo_n='print -rn --' | 
 | 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 50 |   as_echo='printf %s\n' | 
 | 51 |   as_echo_n='printf %s' | 
 | 52 | else | 
 | 53 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 54 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 55 |     as_echo_n='/usr/ucb/echo -n' | 
 | 56 |   else | 
 | 57 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 58 |     as_echo_n_body='eval | 
 | 59 |       arg=$1; | 
 | 60 |       case $arg in #( | 
 | 61 |       *"$as_nl"*) | 
 | 62 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 63 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 64 |       esac; | 
 | 65 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 66 |     ' | 
 | 67 |     export as_echo_n_body | 
 | 68 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 69 |   fi | 
 | 70 |   export as_echo_body | 
 | 71 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 72 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 73 |  | 
 | 74 | # The user is always right. | 
 | 75 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 76 |   PATH_SEPARATOR=: | 
 | 77 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 78 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 79 |       PATH_SEPARATOR=';' | 
 | 80 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 81 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 82 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 |  | 
 | 84 | # IFS | 
 | 85 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 86 | # there to prevent editors from complaining about space-tab. | 
 | 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 88 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 89 | IFS=" ""	$as_nl" | 
 | 90 |  | 
 | 91 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 92 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 93 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 94 |   *[\\/]* ) as_myself=$0 ;; | 
 | 95 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 96 | for as_dir in $PATH | 
 | 97 | do | 
 | 98 |   IFS=$as_save_IFS | 
 | 99 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 100 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 101 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 103 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 104 |      ;; | 
 | 105 | esac | 
 | 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 107 | # in which case we are not to be found in the path. | 
 | 108 | if test "x$as_myself" = x; then | 
 | 109 |   as_myself=$0 | 
 | 110 | fi | 
 | 111 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 112 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 113 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 114 | fi | 
 | 115 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 117 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 118 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 119 | # trigger a bug in pdksh 5.2.14. | 
 | 120 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 121 | do eval test x\${$as_var+set} = xset \ | 
 | 122 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 123 | done | 
 | 124 | PS1='$ ' | 
 | 125 | PS2='> ' | 
 | 126 | PS4='+ ' | 
 | 127 |  | 
 | 128 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 129 | LC_ALL=C | 
 | 130 | export LC_ALL | 
 | 131 | LANGUAGE=C | 
 | 132 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 133 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 134 | # CDPATH. | 
 | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 136 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall | 
 | 138 |   # into an infinite loop, continuously re-executing ourselves. | 
 | 139 |   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | 
 | 140 |     _as_can_reexec=no; export _as_can_reexec; | 
 | 141 |     # We cannot yet assume a decent shell, so we have to provide a | 
 | 142 | # neutralization value for shells without unset; and this also | 
 | 143 | # works around shells that cannot unset nonexistent variables. | 
 | 144 | # Preserve -v and -x to the replacement shell. | 
 | 145 | BASH_ENV=/dev/null | 
 | 146 | ENV=/dev/null | 
 | 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 148 | case $- in # (((( | 
 | 149 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 150 |   *v* ) as_opts=-v ;; | 
 | 151 |   *x* ) as_opts=-x ;; | 
 | 152 |   * ) as_opts= ;; | 
 | 153 | esac | 
 | 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 155 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 156 | # out after a failed `exec'. | 
 | 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 158 | as_fn_exit 255 | 
 | 159 |   fi | 
 | 160 |   # We don't want this to propagate to other subprocesses. | 
 | 161 |           { _as_can_reexec=; unset _as_can_reexec;} | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then | 
 | 163 |   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
 | 164 |   emulate sh | 
 | 165 |   NULLCMD=: | 
 | 166 |   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
 | 167 |   # is contrary to our usage.  Disable this feature. | 
 | 168 |   alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
 | 169 |   setopt NO_GLOB_SUBST | 
 | 170 | else | 
 | 171 |   case \`(set -o) 2>/dev/null\` in #( | 
 | 172 |   *posix*) : | 
 | 173 |     set -o posix ;; #( | 
 | 174 |   *) : | 
 | 175 |      ;; | 
 | 176 | esac | 
 | 177 | fi | 
 | 178 | " | 
 | 179 |   as_required="as_fn_return () { (exit \$1); } | 
 | 180 | as_fn_success () { as_fn_return 0; } | 
 | 181 | as_fn_failure () { as_fn_return 1; } | 
 | 182 | as_fn_ret_success () { return 0; } | 
 | 183 | as_fn_ret_failure () { return 1; } | 
 | 184 |  | 
 | 185 | exitcode=0 | 
 | 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
 | 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
 | 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
 | 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
 | 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
 | 191 |  | 
 | 192 | else | 
 | 193 |   exitcode=1; echo positional parameters were not saved. | 
 | 194 | fi | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 | 
 | 196 | test -x / || exit 1" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 197 |   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
 | 198 |   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
 | 199 |   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
 | 200 |   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
 | 201 | test \$(( 1 + 1 )) = 2 || exit 1" | 
 | 202 |   if (eval "$as_required") 2>/dev/null; then : | 
 | 203 |   as_have_required=yes | 
 | 204 | else | 
 | 205 |   as_have_required=no | 
 | 206 | fi | 
 | 207 |   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
 | 208 |  | 
 | 209 | else | 
 | 210 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 211 | as_found=false | 
 | 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 213 | do | 
 | 214 |   IFS=$as_save_IFS | 
 | 215 |   test -z "$as_dir" && as_dir=. | 
 | 216 |   as_found=: | 
 | 217 |   case $as_dir in #( | 
 | 218 | 	 /*) | 
 | 219 | 	   for as_base in sh bash ksh sh5; do | 
 | 220 | 	     # Try only shells that exist, to save several forks. | 
 | 221 | 	     as_shell=$as_dir/$as_base | 
 | 222 | 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
 | 223 | 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 224 |   CONFIG_SHELL=$as_shell as_have_required=yes | 
 | 225 | 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 226 |   break 2 | 
 | 227 | fi | 
 | 228 | fi | 
 | 229 | 	   done;; | 
 | 230 |        esac | 
 | 231 |   as_found=false | 
 | 232 | done | 
 | 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
 | 234 | 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
 | 235 |   CONFIG_SHELL=$SHELL as_have_required=yes | 
 | 236 | fi; } | 
 | 237 | IFS=$as_save_IFS | 
 | 238 |  | 
 | 239 |  | 
 | 240 |       if test "x$CONFIG_SHELL" != x; then : | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 241 |   export CONFIG_SHELL | 
 | 242 |              # We cannot yet assume a decent shell, so we have to provide a | 
 | 243 | # neutralization value for shells without unset; and this also | 
 | 244 | # works around shells that cannot unset nonexistent variables. | 
 | 245 | # Preserve -v and -x to the replacement shell. | 
 | 246 | BASH_ENV=/dev/null | 
 | 247 | ENV=/dev/null | 
 | 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 249 | case $- in # (((( | 
 | 250 |   *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 251 |   *v* ) as_opts=-v ;; | 
 | 252 |   *x* ) as_opts=-x ;; | 
 | 253 |   * ) as_opts= ;; | 
 | 254 | esac | 
 | 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 
 | 256 | # Admittedly, this is quite paranoid, since all the known shells bail | 
 | 257 | # out after a failed `exec'. | 
 | 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | 
 | 259 | exit 255 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 260 | fi | 
 | 261 |  | 
 | 262 |     if test x$as_have_required = xno; then : | 
 | 263 |   $as_echo "$0: This script requires a shell more modern than all" | 
 | 264 |   $as_echo "$0: the shells that I found on your system." | 
 | 265 |   if test x${ZSH_VERSION+set} = xset ; then | 
 | 266 |     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
 | 267 |     $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
 | 268 |   else | 
 | 269 |     $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 270 | $0: https://bugs.python.org/ about your system, including | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 271 | $0: any error possibly output before this message. Then | 
 | 272 | $0: install a modern shell, or manually run the script | 
 | 273 | $0: under such a shell if you do have one." | 
 | 274 |   fi | 
 | 275 |   exit 1 | 
 | 276 | fi | 
 | 277 | fi | 
 | 278 | fi | 
 | 279 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 280 | export SHELL | 
 | 281 | # Unset more variables known to interfere with behavior of common tools. | 
 | 282 | CLICOLOR_FORCE= GREP_OPTIONS= | 
 | 283 | unset CLICOLOR_FORCE GREP_OPTIONS | 
 | 284 |  | 
 | 285 | ## --------------------- ## | 
 | 286 | ## M4sh Shell Functions. ## | 
 | 287 | ## --------------------- ## | 
 | 288 | # as_fn_unset VAR | 
 | 289 | # --------------- | 
 | 290 | # Portably unset VAR. | 
 | 291 | as_fn_unset () | 
 | 292 | { | 
 | 293 |   { eval $1=; unset $1;} | 
 | 294 | } | 
 | 295 | as_unset=as_fn_unset | 
 | 296 |  | 
 | 297 | # as_fn_set_status STATUS | 
 | 298 | # ----------------------- | 
 | 299 | # Set $? to STATUS, without forking. | 
 | 300 | as_fn_set_status () | 
 | 301 | { | 
 | 302 |   return $1 | 
 | 303 | } # as_fn_set_status | 
 | 304 |  | 
 | 305 | # as_fn_exit STATUS | 
 | 306 | # ----------------- | 
 | 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 308 | as_fn_exit () | 
 | 309 | { | 
 | 310 |   set +e | 
 | 311 |   as_fn_set_status $1 | 
 | 312 |   exit $1 | 
 | 313 | } # as_fn_exit | 
 | 314 |  | 
 | 315 | # as_fn_mkdir_p | 
 | 316 | # ------------- | 
 | 317 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 318 | as_fn_mkdir_p () | 
 | 319 | { | 
 | 320 |  | 
 | 321 |   case $as_dir in #( | 
 | 322 |   -*) as_dir=./$as_dir;; | 
 | 323 |   esac | 
 | 324 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 325 |     as_dirs= | 
 | 326 |     while :; do | 
 | 327 |       case $as_dir in #( | 
 | 328 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 329 |       *) as_qdir=$as_dir;; | 
 | 330 |       esac | 
 | 331 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 332 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 334 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 335 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 336 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 337 | $as_echo X"$as_dir" | | 
 | 338 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 339 | 	    s//\1/ | 
 | 340 | 	    q | 
 | 341 | 	  } | 
 | 342 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 343 | 	    s//\1/ | 
 | 344 | 	    q | 
 | 345 | 	  } | 
 | 346 | 	  /^X\(\/\/\)$/{ | 
 | 347 | 	    s//\1/ | 
 | 348 | 	    q | 
 | 349 | 	  } | 
 | 350 | 	  /^X\(\/\).*/{ | 
 | 351 | 	    s//\1/ | 
 | 352 | 	    q | 
 | 353 | 	  } | 
 | 354 | 	  s/.*/./; q'` | 
 | 355 |       test -d "$as_dir" && break | 
 | 356 |     done | 
 | 357 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 358 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 359 |  | 
 | 360 |  | 
 | 361 | } # as_fn_mkdir_p | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 362 |  | 
 | 363 | # as_fn_executable_p FILE | 
 | 364 | # ----------------------- | 
 | 365 | # Test if FILE is an executable regular file. | 
 | 366 | as_fn_executable_p () | 
 | 367 | { | 
 | 368 |   test -f "$1" && test -x "$1" | 
 | 369 | } # as_fn_executable_p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 370 | # as_fn_append VAR VALUE | 
 | 371 | # ---------------------- | 
 | 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 373 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 374 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 375 | # implementations. | 
 | 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 377 |   eval 'as_fn_append () | 
 | 378 |   { | 
 | 379 |     eval $1+=\$2 | 
 | 380 |   }' | 
 | 381 | else | 
 | 382 |   as_fn_append () | 
 | 383 |   { | 
 | 384 |     eval $1=\$$1\$2 | 
 | 385 |   } | 
 | 386 | fi # as_fn_append | 
 | 387 |  | 
 | 388 | # as_fn_arith ARG... | 
 | 389 | # ------------------ | 
 | 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 392 | # must be portable across $(()) and expr. | 
 | 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 394 |   eval 'as_fn_arith () | 
 | 395 |   { | 
 | 396 |     as_val=$(( $* )) | 
 | 397 |   }' | 
 | 398 | else | 
 | 399 |   as_fn_arith () | 
 | 400 |   { | 
 | 401 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 402 |   } | 
 | 403 | fi # as_fn_arith | 
 | 404 |  | 
 | 405 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 407 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 410 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 411 | as_fn_error () | 
 | 412 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 413 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 414 |   if test "$4"; then | 
 | 415 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 416 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 417 |   fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 418 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 419 |   as_fn_exit $as_status | 
 | 420 | } # as_fn_error | 
 | 421 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 422 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 423 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 424 |   as_expr=expr | 
 | 425 | else | 
 | 426 |   as_expr=false | 
 | 427 | fi | 
 | 428 |  | 
 | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 430 |   as_basename=basename | 
 | 431 | else | 
 | 432 |   as_basename=false | 
 | 433 | fi | 
 | 434 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 436 |   as_dirname=dirname | 
 | 437 | else | 
 | 438 |   as_dirname=false | 
 | 439 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 440 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 441 | as_me=`$as_basename -- "$0" || | 
 | 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 443 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 444 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 445 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 446 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 447 | 	    s//\1/ | 
 | 448 | 	    q | 
 | 449 | 	  } | 
 | 450 | 	  /^X\/\(\/\/\)$/{ | 
 | 451 | 	    s//\1/ | 
 | 452 | 	    q | 
 | 453 | 	  } | 
 | 454 | 	  /^X\/\(\/\).*/{ | 
 | 455 | 	    s//\1/ | 
 | 456 | 	    q | 
 | 457 | 	  } | 
 | 458 | 	  s/.*/./; q'` | 
 | 459 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 460 | # Avoid depending upon Character Ranges. | 
 | 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 464 | as_cr_digits='0123456789' | 
 | 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 466 |  | 
 | 467 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 468 |   as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
 | 469 |   as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
 | 470 |   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
 | 471 |   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
 | 472 |   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 473 |   sed -n ' | 
 | 474 |     p | 
 | 475 |     /[$]LINENO/= | 
 | 476 |   ' <$as_myself | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 477 |     sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 478 |       s/[$]LINENO.*/&-/ | 
 | 479 |       t lineno | 
 | 480 |       b | 
 | 481 |       :lineno | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 482 |       N | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 483 |       :loop | 
 | 484 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 |       t loop | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 486 |       s/-\n.*// | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 487 |     ' >$as_me.lineno && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 488 |   chmod +x "$as_me.lineno" || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 489 |     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 491 |   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | 
 | 492 |   # already done that, so ensure we don't try to do so again and fall | 
 | 493 |   # in an infinite loop.  This has already happened in practice. | 
 | 494 |   _as_can_reexec=no; export _as_can_reexec | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 495 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 496 |   # (the dirname of $[0] is not the place where we might find the | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 497 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 498 |   . "./$as_me.lineno" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 499 |   # Exit status is that of the last command. | 
 | 500 |   exit | 
 | 501 | } | 
 | 502 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 503 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 504 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 505 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 506 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 507 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 508 |   xy)  ECHO_C='\c';; | 
 | 509 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 510 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 511 |   esac;; | 
 | 512 | *) | 
 | 513 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 515 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 517 | if test -d conf$$.dir; then | 
 | 518 |   rm -f conf$$.dir/conf$$.file | 
 | 519 | else | 
 | 520 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 521 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 522 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 523 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 524 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 525 |     as_ln_s='ln -s' | 
 | 526 |     # ... but there are two gotchas: | 
 | 527 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 528 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 529 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 530 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 531 |       as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 532 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 533 |     as_ln_s=ln | 
 | 534 |   else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 535 |     as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 536 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 537 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 538 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 539 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 541 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 543 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 544 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 545 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 546 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 547 |   as_mkdir_p=false | 
 | 548 | fi | 
 | 549 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 550 | as_test_x='test -x' | 
 | 551 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 |  | 
 | 553 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 555 |  | 
 | 556 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 558 |  | 
 | 559 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 560 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
 | 561 | exec 6>&1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 |  | 
 | 563 | # Name of the host. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 565 | # so uname gets run too. | 
 | 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 567 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 568 | # | 
 | 569 | # Initializations. | 
 | 570 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 571 | ac_default_prefix=/usr/local | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 572 | ac_clean_files= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 573 | ac_config_libobj_dir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 574 | LIBOBJS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | cross_compiling=no | 
 | 576 | subdirs= | 
 | 577 | MFLAGS= | 
 | 578 | MAKEFLAGS= | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 580 | # Identity of this package. | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 581 | PACKAGE_NAME='python' | 
 | 582 | PACKAGE_TARNAME='python' | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 583 | PACKAGE_VERSION='3.7' | 
 | 584 | PACKAGE_STRING='python 3.7' | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 585 | PACKAGE_BUGREPORT='https://bugs.python.org/' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 586 | PACKAGE_URL='' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 |  | 
 | 588 | ac_unique_file="Include/object.h" | 
 | 589 | # Factoring default headers for most tests. | 
 | 590 | ac_includes_default="\ | 
 | 591 | #include <stdio.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 592 | #ifdef HAVE_SYS_TYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <sys/types.h> | 
 | 594 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 595 | #ifdef HAVE_SYS_STAT_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | # include <sys/stat.h> | 
 | 597 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 598 | #ifdef STDC_HEADERS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 599 | # include <stdlib.h> | 
 | 600 | # include <stddef.h> | 
 | 601 | #else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 602 | # ifdef HAVE_STDLIB_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | #  include <stdlib.h> | 
 | 604 | # endif | 
 | 605 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRING_H | 
 | 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 608 | #  include <memory.h> | 
 | 609 | # endif | 
 | 610 | # include <string.h> | 
 | 611 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STRINGS_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 613 | # include <strings.h> | 
 | 614 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 615 | #ifdef HAVE_INTTYPES_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <inttypes.h> | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 617 | #endif | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 618 | #ifdef HAVE_STDINT_H | 
 | 619 | # include <stdint.h> | 
 | 620 | #endif | 
 | 621 | #ifdef HAVE_UNISTD_H | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 622 | # include <unistd.h> | 
 | 623 | #endif" | 
 | 624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 625 | ac_subst_vars='LTLIBOBJS | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 626 | ENSUREPIP | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 627 | SRCDIRS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 628 | THREADHEADERS | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 629 | LIBPL | 
 | 630 | PY_ENABLE_SHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 631 | EXT_SUFFIX | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 632 | SOABI | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 633 | LIBC | 
 | 634 | LIBM | 
 | 635 | HAVE_GETHOSTBYNAME | 
 | 636 | HAVE_GETHOSTBYNAME_R | 
 | 637 | HAVE_GETHOSTBYNAME_R_3_ARG | 
 | 638 | HAVE_GETHOSTBYNAME_R_5_ARG | 
 | 639 | HAVE_GETHOSTBYNAME_R_6_ARG | 
 | 640 | LIBOBJS | 
 | 641 | TRUE | 
 | 642 | MACHDEP_OBJS | 
 | 643 | DYNLOADFILE | 
 | 644 | DLINCLDIR | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 645 | DTRACE_OBJS | 
 | 646 | DTRACE_HEADERS | 
 | 647 | DFLAGS | 
 | 648 | DTRACE | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 649 | LDLAST | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 650 | TCLTK_LIBS | 
 | 651 | TCLTK_INCLUDES | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 652 | LIBFFI_INCLUDEDIR | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 653 | PKG_CONFIG_LIBDIR | 
 | 654 | PKG_CONFIG_PATH | 
 | 655 | PKG_CONFIG | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 656 | SHLIBS | 
 | 657 | CFLAGSFORSHARED | 
 | 658 | LINKFORSHARED | 
 | 659 | CCSHARED | 
 | 660 | BLDSHARED | 
 | 661 | LDCXXSHARED | 
 | 662 | LDSHARED | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 663 | SHLIB_SUFFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 664 | LIBTOOL_CRUFT | 
 | 665 | OTHER_LIBTOOL_OPT | 
 | 666 | UNIVERSAL_ARCH_FLAGS | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 667 | CFLAGS_NODIST | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 668 | BASECFLAGS | 
| Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 669 | CFLAGS_ALIASING | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 670 | OPT | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 671 | LLVM_PROF_FOUND | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 672 | target_os | 
 | 673 | target_vendor | 
 | 674 | target_cpu | 
 | 675 | target | 
 | 676 | LLVM_PROFDATA | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 677 | LLVM_PROF_ERR | 
 | 678 | LLVM_PROF_FILE | 
 | 679 | LLVM_PROF_MERGER | 
 | 680 | PGO_PROF_USE_FLAG | 
 | 681 | PGO_PROF_GEN_FLAG | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 682 | DEF_MAKE_RULE | 
 | 683 | DEF_MAKE_ALL_RULE | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 684 | ABIFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 685 | LN | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 686 | MKDIR_P | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 687 | INSTALL_DATA | 
 | 688 | INSTALL_SCRIPT | 
 | 689 | INSTALL_PROGRAM | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 690 | ac_ct_READELF | 
 | 691 | READELF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 692 | ARFLAGS | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 693 | ac_ct_AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 694 | AR | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 695 | GNULD | 
 | 696 | LINKCC | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 697 | LDVERSION | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 698 | RUNSHARED | 
 | 699 | INSTSONAME | 
 | 700 | LDLIBRARYDIR | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 701 | PY3LIBRARY | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 702 | BLDLIBRARY | 
 | 703 | DLLLIBRARY | 
 | 704 | LDLIBRARY | 
 | 705 | LIBRARY | 
 | 706 | BUILDEXEEXT | 
 | 707 | EGREP | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 708 | NO_AS_NEEDED | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 709 | MULTIARCH_CPPFLAGS | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 710 | PLATFORM_TRIPLET | 
 | 711 | MULTIARCH | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 712 | ac_ct_CXX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 713 | MAINCC | 
 | 714 | CXX | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 715 | SED | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 716 | GREP | 
 | 717 | CPP | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 718 | OBJEXT | 
 | 719 | EXEEXT | 
 | 720 | ac_ct_CC | 
 | 721 | CPPFLAGS | 
 | 722 | LDFLAGS | 
 | 723 | CFLAGS | 
 | 724 | CC | 
 | 725 | EXPORT_MACOSX_DEPLOYMENT_TARGET | 
 | 726 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 727 | _PYTHON_HOST_PLATFORM | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 728 | MACHDEP | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 729 | FRAMEWORKINSTALLAPPSPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 730 | FRAMEWORKUNIXTOOLSPREFIX | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 731 | FRAMEWORKPYTHONW | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 732 | FRAMEWORKALTINSTALLLAST | 
 | 733 | FRAMEWORKALTINSTALLFIRST | 
 | 734 | FRAMEWORKINSTALLLAST | 
 | 735 | FRAMEWORKINSTALLFIRST | 
 | 736 | PYTHONFRAMEWORKINSTALLDIR | 
 | 737 | PYTHONFRAMEWORKPREFIX | 
 | 738 | PYTHONFRAMEWORKDIR | 
 | 739 | PYTHONFRAMEWORKIDENTIFIER | 
 | 740 | PYTHONFRAMEWORK | 
 | 741 | LIPO_32BIT_FLAGS | 
 | 742 | ARCH_RUN_32BIT | 
 | 743 | UNIVERSALSDK | 
 | 744 | CONFIG_ARGS | 
 | 745 | SOVERSION | 
 | 746 | VERSION | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 747 | PYTHON_FOR_BUILD | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 748 | PYTHON_FOR_REGEN | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 749 | host_os | 
 | 750 | host_vendor | 
 | 751 | host_cpu | 
 | 752 | host | 
 | 753 | build_os | 
 | 754 | build_vendor | 
 | 755 | build_cpu | 
 | 756 | build | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 757 | HAS_GIT | 
 | 758 | GITBRANCH | 
 | 759 | GITTAG | 
 | 760 | GITVERSION | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 761 | BASECPPFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 762 | target_alias | 
 | 763 | host_alias | 
 | 764 | build_alias | 
 | 765 | LIBS | 
 | 766 | ECHO_T | 
 | 767 | ECHO_N | 
 | 768 | ECHO_C | 
 | 769 | DEFS | 
 | 770 | mandir | 
 | 771 | localedir | 
 | 772 | libdir | 
 | 773 | psdir | 
 | 774 | pdfdir | 
 | 775 | dvidir | 
 | 776 | htmldir | 
 | 777 | infodir | 
 | 778 | docdir | 
 | 779 | oldincludedir | 
 | 780 | includedir | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 781 | runstatedir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 782 | localstatedir | 
 | 783 | sharedstatedir | 
 | 784 | sysconfdir | 
 | 785 | datadir | 
 | 786 | datarootdir | 
 | 787 | libexecdir | 
 | 788 | sbindir | 
 | 789 | bindir | 
 | 790 | program_transform_name | 
 | 791 | prefix | 
 | 792 | exec_prefix | 
 | 793 | PACKAGE_URL | 
 | 794 | PACKAGE_BUGREPORT | 
 | 795 | PACKAGE_STRING | 
 | 796 | PACKAGE_VERSION | 
 | 797 | PACKAGE_TARNAME | 
 | 798 | PACKAGE_NAME | 
 | 799 | PATH_SEPARATOR | 
 | 800 | SHELL' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 801 | ac_subst_files='' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 802 | ac_user_opts=' | 
 | 803 | enable_option_checking | 
 | 804 | enable_universalsdk | 
 | 805 | with_universal_archs | 
 | 806 | with_framework_name | 
 | 807 | enable_framework | 
 | 808 | with_gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 809 | with_icc | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 810 | with_cxx_main | 
 | 811 | with_suffix | 
 | 812 | enable_shared | 
 | 813 | enable_profiling | 
 | 814 | with_pydebug | 
| T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 815 | with_assertions | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 816 | enable_optimizations | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 817 | with_lto | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 818 | with_hash_algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 819 | with_address_sanitizer | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 820 | with_libs | 
 | 821 | with_system_expat | 
 | 822 | with_system_ffi | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 823 | with_system_libmpdec | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 824 | enable_loadable_sqlite_extensions | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 825 | with_tcltk_includes | 
 | 826 | with_tcltk_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 827 | with_dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 828 | enable_ipv6 | 
 | 829 | with_doc_strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 830 | with_pymalloc | 
| Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 831 | with_c_locale_coercion | 
 | 832 | with_c_locale_warning | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 833 | with_valgrind | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 834 | with_dtrace | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 835 | with_fpectl | 
 | 836 | with_libm | 
 | 837 | with_libc | 
 | 838 | enable_big_digits | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 839 | with_computed_gotos | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 840 | with_ensurepip | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 841 | ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 842 |       ac_precious_vars='build_alias | 
 | 843 | host_alias | 
 | 844 | target_alias | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 845 | MACHDEP | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 846 | CC | 
 | 847 | CFLAGS | 
 | 848 | LDFLAGS | 
 | 849 | LIBS | 
 | 850 | CPPFLAGS | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 851 | CPP | 
 | 852 | PKG_CONFIG | 
 | 853 | PKG_CONFIG_PATH | 
 | 854 | PKG_CONFIG_LIBDIR' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 855 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 856 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 857 | # Initialize some variables set by options. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 858 | ac_init_help= | 
 | 859 | ac_init_version=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 860 | ac_unrecognized_opts= | 
 | 861 | ac_unrecognized_sep= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 862 | # The variables have the same names as the options, with | 
 | 863 | # dashes changed to underlines. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 864 | cache_file=/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 865 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 866 | no_create= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 867 | no_recursion= | 
 | 868 | prefix=NONE | 
 | 869 | program_prefix=NONE | 
 | 870 | program_suffix=NONE | 
 | 871 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 872 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 873 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 | srcdir= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 875 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | x_includes=NONE | 
 | 877 | x_libraries=NONE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 878 |  | 
 | 879 | # Installation directory options. | 
 | 880 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 881 | # and all the variables that are supposed to be based on exec_prefix | 
 | 882 | # by default will actually change. | 
 | 883 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 884 | # (The list follows the same order as the GNU Coding Standards.) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 885 | bindir='${exec_prefix}/bin' | 
 | 886 | sbindir='${exec_prefix}/sbin' | 
 | 887 | libexecdir='${exec_prefix}/libexec' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 888 | datarootdir='${prefix}/share' | 
 | 889 | datadir='${datarootdir}' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 890 | sysconfdir='${prefix}/etc' | 
 | 891 | sharedstatedir='${prefix}/com' | 
 | 892 | localstatedir='${prefix}/var' | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 893 | runstatedir='${localstatedir}/run' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 894 | includedir='${prefix}/include' | 
 | 895 | oldincludedir='/usr/include' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 896 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 897 | infodir='${datarootdir}/info' | 
 | 898 | htmldir='${docdir}' | 
 | 899 | dvidir='${docdir}' | 
 | 900 | pdfdir='${docdir}' | 
 | 901 | psdir='${docdir}' | 
 | 902 | libdir='${exec_prefix}/lib' | 
 | 903 | localedir='${datarootdir}/locale' | 
 | 904 | mandir='${datarootdir}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 905 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 906 | ac_prev= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 907 | ac_dashdash= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 908 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 909 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 910 |   # If the previous option needs an argument, assign it. | 
 | 911 |   if test -n "$ac_prev"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 912 |     eval $ac_prev=\$ac_option | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 913 |     ac_prev= | 
 | 914 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 915 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 916 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 917 |   case $ac_option in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 918 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 919 |   *=)   ac_optarg= ;; | 
 | 920 |   *)    ac_optarg=yes ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 921 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 922 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 923 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 924 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 925 |   case $ac_dashdash$ac_option in | 
 | 926 |   --) | 
 | 927 |     ac_dashdash=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 928 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 929 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 930 |     ac_prev=bindir ;; | 
 | 931 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 932 |     bindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 933 |  | 
 | 934 |   -build | --build | --buil | --bui | --bu) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 935 |     ac_prev=build_alias ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 936 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 937 |     build_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 938 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 939 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 940 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 941 |     ac_prev=cache_file ;; | 
 | 942 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 943 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 944 |     cache_file=$ac_optarg ;; | 
 | 945 |  | 
 | 946 |   --config-cache | -C) | 
 | 947 |     cache_file=config.cache ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 948 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 949 |   -datadir | --datadir | --datadi | --datad) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 950 |     ac_prev=datadir ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 951 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 952 |     datadir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 953 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 954 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 955 |   | --dataroo | --dataro | --datar) | 
 | 956 |     ac_prev=datarootdir ;; | 
 | 957 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 958 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 959 |     datarootdir=$ac_optarg ;; | 
 | 960 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 961 |   -disable-* | --disable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 962 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 963 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 964 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 965 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 966 |     ac_useropt_orig=$ac_useropt | 
 | 967 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 968 |     case $ac_user_opts in | 
 | 969 |       *" | 
 | 970 | "enable_$ac_useropt" | 
 | 971 | "*) ;; | 
 | 972 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 973 | 	 ac_unrecognized_sep=', ';; | 
 | 974 |     esac | 
 | 975 |     eval enable_$ac_useropt=no ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 976 |  | 
 | 977 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 978 |     ac_prev=docdir ;; | 
 | 979 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 980 |     docdir=$ac_optarg ;; | 
 | 981 |  | 
 | 982 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 983 |     ac_prev=dvidir ;; | 
 | 984 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 985 |     dvidir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 986 |  | 
 | 987 |   -enable-* | --enable-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 988 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 989 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 990 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 991 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 992 |     ac_useropt_orig=$ac_useropt | 
 | 993 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 994 |     case $ac_user_opts in | 
 | 995 |       *" | 
 | 996 | "enable_$ac_useropt" | 
 | 997 | "*) ;; | 
 | 998 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 999 | 	 ac_unrecognized_sep=', ';; | 
 | 1000 |     esac | 
 | 1001 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1002 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1003 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 1004 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 1005 |   | --exec | --exe | --ex) | 
 | 1006 |     ac_prev=exec_prefix ;; | 
 | 1007 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 1008 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 1009 |   | --exec=* | --exe=* | --ex=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 |     exec_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 |  | 
 | 1012 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1013 |     # Obsolete; use --with-gas. | 
 | 1014 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1015 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1016 |   -help | --help | --hel | --he | -h) | 
 | 1017 |     ac_init_help=long ;; | 
 | 1018 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 1019 |     ac_init_help=recursive ;; | 
 | 1020 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 1021 |     ac_init_help=short ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1022 |  | 
 | 1023 |   -host | --host | --hos | --ho) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 |     ac_prev=host_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1025 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1026 |     host_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1027 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1028 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 1029 |     ac_prev=htmldir ;; | 
 | 1030 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 1031 |   | --ht=*) | 
 | 1032 |     htmldir=$ac_optarg ;; | 
 | 1033 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1034 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 1035 |   | --includ | --inclu | --incl | --inc) | 
 | 1036 |     ac_prev=includedir ;; | 
 | 1037 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 1038 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1039 |     includedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1040 |  | 
 | 1041 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1042 |     ac_prev=infodir ;; | 
 | 1043 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1044 |     infodir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1045 |  | 
 | 1046 |   -libdir | --libdir | --libdi | --libd) | 
 | 1047 |     ac_prev=libdir ;; | 
 | 1048 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1049 |     libdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1050 |  | 
 | 1051 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1052 |   | --libexe | --libex | --libe) | 
 | 1053 |     ac_prev=libexecdir ;; | 
 | 1054 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1055 |   | --libexe=* | --libex=* | --libe=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1056 |     libexecdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1057 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1058 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1059 |     ac_prev=localedir ;; | 
 | 1060 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1061 |     localedir=$ac_optarg ;; | 
 | 1062 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1063 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1064 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1065 |     ac_prev=localstatedir ;; | 
 | 1066 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1067 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1068 |     localstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1069 |  | 
 | 1070 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1071 |     ac_prev=mandir ;; | 
 | 1072 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 |     mandir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1074 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1075 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1076 |     # Obsolete; use --without-fp. | 
 | 1077 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1078 |  | 
 | 1079 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1080 |   | --no-cr | --no-c | -n) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1081 |     no_create=yes ;; | 
 | 1082 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1083 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1084 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1085 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1086 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1087 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1088 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1089 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1090 |     ac_prev=oldincludedir ;; | 
 | 1091 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1092 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1093 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1094 |     oldincludedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1095 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1096 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1097 |     ac_prev=prefix ;; | 
 | 1098 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 |     prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1100 |  | 
 | 1101 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1102 |   | --program-pre | --program-pr | --program-p) | 
 | 1103 |     ac_prev=program_prefix ;; | 
 | 1104 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1105 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1106 |     program_prefix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 |  | 
 | 1108 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1109 |   | --program-suf | --program-su | --program-s) | 
 | 1110 |     ac_prev=program_suffix ;; | 
 | 1111 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1112 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1113 |     program_suffix=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1114 |  | 
 | 1115 |   -program-transform-name | --program-transform-name \ | 
 | 1116 |   | --program-transform-nam | --program-transform-na \ | 
 | 1117 |   | --program-transform-n | --program-transform- \ | 
 | 1118 |   | --program-transform | --program-transfor \ | 
 | 1119 |   | --program-transfo | --program-transf \ | 
 | 1120 |   | --program-trans | --program-tran \ | 
 | 1121 |   | --progr-tra | --program-tr | --program-t) | 
 | 1122 |     ac_prev=program_transform_name ;; | 
 | 1123 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1124 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1125 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1126 |   | --program-transform=* | --program-transfor=* \ | 
 | 1127 |   | --program-transfo=* | --program-transf=* \ | 
 | 1128 |   | --program-trans=* | --program-tran=* \ | 
 | 1129 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 |     program_transform_name=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1131 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1132 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1133 |     ac_prev=pdfdir ;; | 
 | 1134 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1135 |     pdfdir=$ac_optarg ;; | 
 | 1136 |  | 
 | 1137 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1138 |     ac_prev=psdir ;; | 
 | 1139 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1140 |     psdir=$ac_optarg ;; | 
 | 1141 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1142 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1143 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1144 |     silent=yes ;; | 
 | 1145 |  | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 1146 |   -runstatedir | --runstatedir | --runstatedi | --runstated \ | 
 | 1147 |   | --runstate | --runstat | --runsta | --runst | --runs \ | 
 | 1148 |   | --run | --ru | --r) | 
 | 1149 |     ac_prev=runstatedir ;; | 
 | 1150 |   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | 
 | 1151 |   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | 
 | 1152 |   | --run=* | --ru=* | --r=*) | 
 | 1153 |     runstatedir=$ac_optarg ;; | 
 | 1154 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1155 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1156 |     ac_prev=sbindir ;; | 
 | 1157 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1158 |   | --sbi=* | --sb=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1159 |     sbindir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1160 |  | 
 | 1161 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1162 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1163 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1164 |   | --sha | --sh) | 
 | 1165 |     ac_prev=sharedstatedir ;; | 
 | 1166 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1167 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1168 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1169 |   | --sha=* | --sh=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1170 |     sharedstatedir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1171 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1172 |   -site | --site | --sit) | 
 | 1173 |     ac_prev=site ;; | 
 | 1174 |   -site=* | --site=* | --sit=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1175 |     site=$ac_optarg ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1176 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1177 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1178 |     ac_prev=srcdir ;; | 
 | 1179 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1180 |     srcdir=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1182 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1183 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1184 |     ac_prev=sysconfdir ;; | 
 | 1185 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1186 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1187 |     sysconfdir=$ac_optarg ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1188 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1189 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1190 |     ac_prev=target_alias ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1191 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1192 |     target_alias=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1193 |  | 
 | 1194 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1195 |     verbose=yes ;; | 
 | 1196 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1197 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1198 |     ac_init_version=: ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1199 |  | 
 | 1200 |   -with-* | --with-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1201 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1202 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1203 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1204 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1205 |     ac_useropt_orig=$ac_useropt | 
 | 1206 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1207 |     case $ac_user_opts in | 
 | 1208 |       *" | 
 | 1209 | "with_$ac_useropt" | 
 | 1210 | "*) ;; | 
 | 1211 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1212 | 	 ac_unrecognized_sep=', ';; | 
 | 1213 |     esac | 
 | 1214 |     eval with_$ac_useropt=\$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1215 |  | 
 | 1216 |   -without-* | --without-*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1217 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1219 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1220 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1221 |     ac_useropt_orig=$ac_useropt | 
 | 1222 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1223 |     case $ac_user_opts in | 
 | 1224 |       *" | 
 | 1225 | "with_$ac_useropt" | 
 | 1226 | "*) ;; | 
 | 1227 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1228 | 	 ac_unrecognized_sep=', ';; | 
 | 1229 |     esac | 
 | 1230 |     eval with_$ac_useropt=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1231 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1232 |   --x) | 
 | 1233 |     # Obsolete; use --with-x. | 
 | 1234 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1235 |  | 
 | 1236 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1237 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1238 |     ac_prev=x_includes ;; | 
 | 1239 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1240 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1241 |     x_includes=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1242 |  | 
 | 1243 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1244 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1245 |     ac_prev=x_libraries ;; | 
 | 1246 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1247 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 |     x_libraries=$ac_optarg ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1249 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1250 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1251 | Try \`$0 --help' for more information" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1252 |     ;; | 
 | 1253 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1254 |   *=*) | 
 | 1255 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1256 |     # Reject names that are not valid shell variable names. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1257 |     case $ac_envvar in #( | 
 | 1258 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1259 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1260 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1261 |     eval $ac_envvar=\$ac_optarg | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1262 |     export $ac_envvar ;; | 
 | 1263 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1264 |   *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1265 |     # FIXME: should be removed in autoconf 3.0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1266 |     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1267 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1268 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1269 |     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1270 |     ;; | 
 | 1271 |  | 
 | 1272 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1273 | done | 
 | 1274 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1275 | if test -n "$ac_prev"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1276 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1277 |   as_fn_error $? "missing argument to $ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1278 | fi | 
 | 1279 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1280 | if test -n "$ac_unrecognized_opts"; then | 
 | 1281 |   case $enable_option_checking in | 
 | 1282 |     no) ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1283 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1284 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1285 |   esac | 
 | 1286 | fi | 
 | 1287 |  | 
 | 1288 | # Check all directory arguments for consistency. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1289 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1290 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1291 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 1292 | 		libdir localedir mandir runstatedir | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1293 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1294 |   eval ac_val=\$$ac_var | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1295 |   # Remove trailing slashes. | 
 | 1296 |   case $ac_val in | 
 | 1297 |     */ ) | 
 | 1298 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1299 |       eval $ac_var=\$ac_val;; | 
 | 1300 |   esac | 
 | 1301 |   # Be sure to have absolute directory names. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1302 |   case $ac_val in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1303 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1304 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1305 |   esac | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1306 |   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1307 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1308 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1310 | # used to hold the argument of --host etc. | 
 | 1311 | # FIXME: To remove some day. | 
 | 1312 | build=$build_alias | 
 | 1313 | host=$host_alias | 
 | 1314 | target=$target_alias | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1315 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1316 | # FIXME: To remove some day. | 
 | 1317 | if test "x$host_alias" != x; then | 
 | 1318 |   if test "x$build_alias" = x; then | 
 | 1319 |     cross_compiling=maybe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1320 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1321 |     cross_compiling=yes | 
 | 1322 |   fi | 
 | 1323 | fi | 
 | 1324 |  | 
 | 1325 | ac_tool_prefix= | 
 | 1326 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1327 |  | 
 | 1328 | test "$silent" = yes && exec 6>/dev/null | 
 | 1329 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1330 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1331 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1332 | ac_ls_di=`ls -di .` && | 
 | 1333 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1334 |   as_fn_error $? "working directory cannot be determined" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1335 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1336 |   as_fn_error $? "pwd does not report name of working directory" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1337 |  | 
 | 1338 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1339 | # Find the source files, if location was not specified. | 
 | 1340 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1341 |   ac_srcdir_defaulted=yes | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1342 |   # Try the directory containing this script, then the parent directory. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1343 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1344 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1345 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1346 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1347 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1348 | $as_echo X"$as_myself" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1349 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1350 | 	    s//\1/ | 
 | 1351 | 	    q | 
 | 1352 | 	  } | 
 | 1353 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1354 | 	    s//\1/ | 
 | 1355 | 	    q | 
 | 1356 | 	  } | 
 | 1357 | 	  /^X\(\/\/\)$/{ | 
 | 1358 | 	    s//\1/ | 
 | 1359 | 	    q | 
 | 1360 | 	  } | 
 | 1361 | 	  /^X\(\/\).*/{ | 
 | 1362 | 	    s//\1/ | 
 | 1363 | 	    q | 
 | 1364 | 	  } | 
 | 1365 | 	  s/.*/./; q'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1366 |   srcdir=$ac_confdir | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1367 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1368 |     srcdir=.. | 
 | 1369 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1370 | else | 
 | 1371 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1372 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1373 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1374 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1375 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1376 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1377 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1378 | ac_abs_confdir=`( | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1379 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1380 | 	pwd)` | 
 | 1381 | # When building in place, set srcdir=. | 
 | 1382 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1383 |   srcdir=. | 
 | 1384 | fi | 
 | 1385 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1386 | # Double slashes in file names in object file debugging info | 
 | 1387 | # mess up M-x gdb in Emacs. | 
 | 1388 | case $srcdir in | 
 | 1389 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1390 | esac | 
 | 1391 | for ac_var in $ac_precious_vars; do | 
 | 1392 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1393 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1394 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1395 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1396 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1397 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1398 | # | 
 | 1399 | # Report the --help message. | 
 | 1400 | # | 
 | 1401 | if test "$ac_init_help" = "long"; then | 
 | 1402 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1403 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1404 |   cat <<_ACEOF | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 1405 | \`configure' configures python 3.7 to adapt to many kinds of systems. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1406 |  | 
 | 1407 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1408 |  | 
 | 1409 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1410 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1411 |  | 
 | 1412 | Defaults for the options are specified in brackets. | 
 | 1413 |  | 
 | 1414 | Configuration: | 
 | 1415 |   -h, --help              display this help and exit | 
 | 1416 |       --help=short        display options specific to this package | 
 | 1417 |       --help=recursive    display the short help of all the included packages | 
 | 1418 |   -V, --version           display version information and exit | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1419 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1421 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1422 |   -n, --no-create         do not create output files | 
 | 1423 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1424 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | Installation directories: | 
 | 1426 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1427 |                           [$ac_default_prefix] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1428 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1429 |                           [PREFIX] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1430 |  | 
 | 1431 | By default, \`make install' will install all the files in | 
 | 1432 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1433 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1434 | for instance \`--prefix=\$HOME'. | 
 | 1435 |  | 
 | 1436 | For better control, use the options below. | 
 | 1437 |  | 
 | 1438 | Fine tuning of the installation directories: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1439 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1440 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1441 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1442 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1443 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1444 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 1445 |   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1446 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1447 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1448 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1449 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1450 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1451 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1452 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1453 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
 | 1454 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/python] | 
 | 1455 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1456 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1457 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1458 |   --psdir=DIR             ps documentation [DOCDIR] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 | _ACEOF | 
 | 1460 |  | 
 | 1461 |   cat <<\_ACEOF | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 1462 |  | 
 | 1463 | System types: | 
 | 1464 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1465 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 1466 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1467 | _ACEOF | 
 | 1468 | fi | 
 | 1469 |  | 
 | 1470 | if test -n "$ac_init_help"; then | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1471 |   case $ac_init_help in | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 1472 |      short | recursive ) echo "Configuration of python 3.7:";; | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1473 |    esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 |   cat <<\_ACEOF | 
 | 1475 |  | 
 | 1476 | Optional Features: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1477 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1478 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1479 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1480 |   --enable-universalsdk[=SDKDIR] | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 1481 |                           Build fat binary against Mac OS X SDK | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1482 |   --enable-framework[=INSTALLDIR] | 
 | 1483 |                           Build (MacOSX|Darwin) framework | 
 | 1484 |   --enable-shared         disable/enable building shared python library | 
| Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1485 |   --enable-profiling      enable C-level code profiling | 
| Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 1486 |   --enable-optimizations  Enable expensive, stable optimizations (PGO, etc). | 
 | 1487 |                           Disabled by default. | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 1488 |   --enable-loadable-sqlite-extensions | 
 | 1489 |                           support loadable extensions in _sqlite module | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1490 |   --enable-ipv6           Enable ipv6 (with ipv4) support | 
 | 1491 |   --disable-ipv6          Disable ipv6 support | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 1492 |   --enable-big-digits[=BITS] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1493 |                           use big digits for Python longs [[BITS=30]] | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1494 |  | 
 | 1495 | Optional Packages: | 
 | 1496 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1497 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 1498 |   --with-universal-archs=ARCH | 
 | 1499 |                           select architectures for universal build ("32-bit", | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 1500 |                           "64-bit", "3-way", "intel", "intel-32", or "all") | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1501 |   --with-framework-name=FRAMEWORK | 
 | 1502 |                           specify an alternate name of the framework built | 
 | 1503 |                           with --enable-framework | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1504 |   --without-gcc           never use gcc | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 1505 |   --with-icc              build with icc | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1506 |   --with-cxx-main=<compiler> | 
 | 1507 |                           compile main() and link python executable with C++ | 
 | 1508 |                           compiler | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1509 |   --with-suffix=.exe      set executable suffix | 
 | 1510 |   --with-pydebug          build with Py_DEBUG defined | 
| T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 1511 |   --with-assertions       build with C assertions enabled | 
| octaviansoldea | 4c81401 | 2017-09-08 12:14:33 -0700 | [diff] [blame] | 1512 |   --with-lto              Enable Link Time Optimization in any build. Disabled | 
 | 1513 |                           by default. | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 1514 |   --with-hash-algorithm=[fnv|siphash24] | 
 | 1515 |                           select hash algorithm | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 1516 |   --with-address-sanitizer | 
 | 1517 |                           enable AddressSanitizer | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1518 |   --with-libs='lib1 ...'  link against additional libs | 
| Benjamin Peterson | b2d9046 | 2009-12-31 03:23:10 +0000 | [diff] [blame] | 1519 |   --with-system-expat     build pyexpat module using an installed expat | 
 | 1520 |                           library | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1521 |   --with-system-ffi       build _ctypes module using an installed ffi library | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 1522 |   --with-system-libmpdec  build _decimal module using an installed libmpdec | 
 | 1523 |                           library | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 1524 |   --with-tcltk-includes='-I...' | 
 | 1525 |                           override search for Tcl and Tk include files | 
 | 1526 |   --with-tcltk-libs='-L...' | 
 | 1527 |                           override search for Tcl and Tk libs | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 1528 |   --with-dbmliborder=db1:db2:... | 
 | 1529 |                           order to check db backends for dbm. Valid value is a | 
 | 1530 |                           colon separated string with the backend names | 
 | 1531 |                           `ndbm', `gdbm' and `bdb'. | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1532 |   --with(out)-doc-strings disable/enable documentation strings | 
 | 1533 |   --with(out)-pymalloc    disable/enable specialized mallocs | 
| Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 1534 |   --with(out)-c-locale-coercion | 
 | 1535 |                           disable/enable C locale coercion to a UTF-8 based | 
 | 1536 |                           locale | 
 | 1537 |   --with(out)-c-locale-warning | 
 | 1538 |                           disable/enable locale compatibility warning in the C | 
 | 1539 |                           locale | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 1540 |   --with-valgrind         Enable Valgrind support | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 1541 |   --with(out)-dtrace      disable/enable DTrace support | 
| Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1542 |   --with-fpectl           enable SIGFPE catching | 
 | 1543 |   --with-libm=STRING      math library | 
 | 1544 |   --with-libc=STRING      C library | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 1545 |   --with(out)-computed-gotos | 
 | 1546 |                           Use computed gotos in evaluation loop (enabled by | 
 | 1547 |                           default on supported compilers) | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 1548 |   --with(out)-ensurepip=[=upgrade] | 
 | 1549 |                           "install" or "upgrade" using bundled pip | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 |  | 
 | 1551 | Some influential environment variables: | 
| doko@python.org | eab42bf | 2013-01-26 18:57:19 +0100 | [diff] [blame] | 1552 |   MACHDEP     name for machine-dependent library files | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1553 |   CC          C compiler command | 
 | 1554 |   CFLAGS      C compiler flags | 
 | 1555 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1556 |               nonstandard directory <lib dir> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1557 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1558 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1559 |               you have headers in a nonstandard directory <include dir> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 |   CPP         C preprocessor | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 1561 |   PKG_CONFIG  path to pkg-config utility | 
 | 1562 |   PKG_CONFIG_PATH | 
 | 1563 |               directories to add to pkg-config's search path | 
 | 1564 |   PKG_CONFIG_LIBDIR | 
 | 1565 |               path overriding pkg-config's built-in search path | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1566 |  | 
 | 1567 | Use these variables to override the choices made by `configure' or to help | 
 | 1568 | it to find libraries and programs with nonstandard names/locations. | 
 | 1569 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1570 | Report bugs to <https://bugs.python.org/>. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1571 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1572 | ac_status=$? | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1573 | fi | 
 | 1574 |  | 
 | 1575 | if test "$ac_init_help" = "recursive"; then | 
 | 1576 |   # If there are subdirs, report their specific --help. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1577 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1578 |     test -d "$ac_dir" || | 
 | 1579 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1580 |       continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1581 |     ac_builddir=. | 
 | 1582 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1583 | case "$ac_dir" in | 
 | 1584 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1585 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1586 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1587 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1588 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1589 |   case $ac_top_builddir_sub in | 
 | 1590 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1591 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1592 |   esac ;; | 
 | 1593 | esac | 
 | 1594 | ac_abs_top_builddir=$ac_pwd | 
 | 1595 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1596 | # for backward compatibility: | 
 | 1597 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1598 |  | 
 | 1599 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1600 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1601 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1602 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1603 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1604 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1605 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1606 |     ac_top_srcdir=$srcdir | 
 | 1607 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1608 |   *) # Relative name. | 
 | 1609 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1610 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1611 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1612 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1613 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1614 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1615 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1616 |     # Check for guested configure. | 
 | 1617 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1618 |       echo && | 
 | 1619 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1620 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1621 |       echo && | 
 | 1622 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1624 |       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1625 |     fi || ac_status=$? | 
 | 1626 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1627 |   done | 
 | 1628 | fi | 
 | 1629 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1630 | test -n "$ac_init_help" && exit $ac_status | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1631 | if $ac_init_version; then | 
 | 1632 |   cat <<\_ACEOF | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 1633 | python configure 3.7 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1634 | generated by GNU Autoconf 2.69 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1635 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1636 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1637 | This configure script is free software; the Free Software Foundation | 
 | 1638 | gives unlimited permission to copy, distribute and modify it. | 
 | 1639 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1640 |   exit | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1641 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1642 |  | 
 | 1643 | ## ------------------------ ## | 
 | 1644 | ## Autoconf initialization. ## | 
 | 1645 | ## ------------------------ ## | 
 | 1646 |  | 
 | 1647 | # ac_fn_c_try_compile LINENO | 
 | 1648 | # -------------------------- | 
 | 1649 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 1650 | ac_fn_c_try_compile () | 
 | 1651 | { | 
 | 1652 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1653 |   rm -f conftest.$ac_objext | 
 | 1654 |   if { { ac_try="$ac_compile" | 
 | 1655 | case "(($ac_try" in | 
 | 1656 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1657 |   *) ac_try_echo=$ac_try;; | 
 | 1658 | esac | 
 | 1659 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1660 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1661 |   (eval "$ac_compile") 2>conftest.err | 
 | 1662 |   ac_status=$? | 
 | 1663 |   if test -s conftest.err; then | 
 | 1664 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1665 |     cat conftest.er1 >&5 | 
 | 1666 |     mv -f conftest.er1 conftest.err | 
 | 1667 |   fi | 
 | 1668 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1669 |   test $ac_status = 0; } && { | 
 | 1670 | 	 test -z "$ac_c_werror_flag" || | 
 | 1671 | 	 test ! -s conftest.err | 
 | 1672 |        } && test -s conftest.$ac_objext; then : | 
 | 1673 |   ac_retval=0 | 
 | 1674 | else | 
 | 1675 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1676 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1677 |  | 
 | 1678 | 	ac_retval=1 | 
 | 1679 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1680 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1681 |   as_fn_set_status $ac_retval | 
 | 1682 |  | 
 | 1683 | } # ac_fn_c_try_compile | 
 | 1684 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 1685 | # ac_fn_c_try_cpp LINENO | 
 | 1686 | # ---------------------- | 
 | 1687 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 1688 | ac_fn_c_try_cpp () | 
 | 1689 | { | 
 | 1690 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1691 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 1692 | case "(($ac_try" in | 
 | 1693 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1694 |   *) ac_try_echo=$ac_try;; | 
 | 1695 | esac | 
 | 1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1697 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1698 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 1699 |   ac_status=$? | 
 | 1700 |   if test -s conftest.err; then | 
 | 1701 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1702 |     cat conftest.er1 >&5 | 
 | 1703 |     mv -f conftest.er1 conftest.err | 
 | 1704 |   fi | 
 | 1705 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1706 |   test $ac_status = 0; } > conftest.i && { | 
 | 1707 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 1708 | 	 test ! -s conftest.err | 
 | 1709 |        }; then : | 
 | 1710 |   ac_retval=0 | 
 | 1711 | else | 
 | 1712 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1713 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1714 |  | 
 | 1715 |     ac_retval=1 | 
 | 1716 | fi | 
 | 1717 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 1718 |   as_fn_set_status $ac_retval | 
 | 1719 |  | 
 | 1720 | } # ac_fn_c_try_cpp | 
 | 1721 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1722 | # ac_fn_c_try_link LINENO | 
 | 1723 | # ----------------------- | 
 | 1724 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 1725 | ac_fn_c_try_link () | 
 | 1726 | { | 
 | 1727 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1728 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 1729 |   if { { ac_try="$ac_link" | 
 | 1730 | case "(($ac_try" in | 
 | 1731 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1732 |   *) ac_try_echo=$ac_try;; | 
 | 1733 | esac | 
 | 1734 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1735 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1736 |   (eval "$ac_link") 2>conftest.err | 
 | 1737 |   ac_status=$? | 
 | 1738 |   if test -s conftest.err; then | 
 | 1739 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 1740 |     cat conftest.er1 >&5 | 
 | 1741 |     mv -f conftest.er1 conftest.err | 
 | 1742 |   fi | 
 | 1743 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1744 |   test $ac_status = 0; } && { | 
 | 1745 | 	 test -z "$ac_c_werror_flag" || | 
 | 1746 | 	 test ! -s conftest.err | 
 | 1747 |        } && test -s conftest$ac_exeext && { | 
 | 1748 | 	 test "$cross_compiling" = yes || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 1749 | 	 test -x conftest$ac_exeext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1750 |        }; then : | 
 | 1751 |   ac_retval=0 | 
 | 1752 | else | 
 | 1753 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 1754 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1755 |  | 
 | 1756 | 	ac_retval=1 | 
 | 1757 | fi | 
 | 1758 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 1759 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 1760 |   # interfere with the next link command; also delete a directory that is | 
 | 1761 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 1762 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1763 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1764 |   as_fn_set_status $ac_retval | 
 | 1765 |  | 
 | 1766 | } # ac_fn_c_try_link | 
 | 1767 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1768 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 1769 | # ------------------------------------------------------- | 
 | 1770 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 1771 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 1772 | # accordingly. | 
 | 1773 | ac_fn_c_check_header_mongrel () | 
 | 1774 | { | 
 | 1775 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1776 |   if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1777 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1778 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1779 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1780 |   $as_echo_n "(cached) " >&6 | 
 | 1781 | fi | 
 | 1782 | eval ac_res=\$$3 | 
 | 1783 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1784 | $as_echo "$ac_res" >&6; } | 
 | 1785 | else | 
 | 1786 |   # Is the header compilable? | 
 | 1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 1788 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 1789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1790 | /* end confdefs.h.  */ | 
 | 1791 | $4 | 
 | 1792 | #include <$2> | 
 | 1793 | _ACEOF | 
 | 1794 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1795 |   ac_header_compiler=yes | 
 | 1796 | else | 
 | 1797 |   ac_header_compiler=no | 
 | 1798 | fi | 
 | 1799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 1801 | $as_echo "$ac_header_compiler" >&6; } | 
 | 1802 |  | 
 | 1803 | # Is the header present? | 
 | 1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 1805 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 1806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1807 | /* end confdefs.h.  */ | 
 | 1808 | #include <$2> | 
 | 1809 | _ACEOF | 
 | 1810 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 1811 |   ac_header_preproc=yes | 
 | 1812 | else | 
 | 1813 |   ac_header_preproc=no | 
 | 1814 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 1815 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 1817 | $as_echo "$ac_header_preproc" >&6; } | 
 | 1818 |  | 
 | 1819 | # So?  What about this header? | 
 | 1820 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 1821 |   yes:no: ) | 
 | 1822 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 1823 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 1824 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1825 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 1826 |     ;; | 
 | 1827 |   no:yes:* ) | 
 | 1828 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 1829 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 1830 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 1831 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 1832 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 1833 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 1834 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 1835 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 1836 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 1837 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 1838 | ( $as_echo "## --------------------------------------- ## | 
 | 1839 | ## Report this to https://bugs.python.org/ ## | 
 | 1840 | ## --------------------------------------- ##" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1841 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 1842 |     ;; | 
 | 1843 | esac | 
 | 1844 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1845 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1846 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1847 |   $as_echo_n "(cached) " >&6 | 
 | 1848 | else | 
 | 1849 |   eval "$3=\$ac_header_compiler" | 
 | 1850 | fi | 
 | 1851 | eval ac_res=\$$3 | 
 | 1852 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1853 | $as_echo "$ac_res" >&6; } | 
 | 1854 | fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1855 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1856 |  | 
 | 1857 | } # ac_fn_c_check_header_mongrel | 
 | 1858 |  | 
 | 1859 | # ac_fn_c_try_run LINENO | 
 | 1860 | # ---------------------- | 
 | 1861 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 1862 | # that executables *can* be run. | 
 | 1863 | ac_fn_c_try_run () | 
 | 1864 | { | 
 | 1865 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1866 |   if { { ac_try="$ac_link" | 
 | 1867 | case "(($ac_try" in | 
 | 1868 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1869 |   *) ac_try_echo=$ac_try;; | 
 | 1870 | esac | 
 | 1871 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1872 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1873 |   (eval "$ac_link") 2>&5 | 
 | 1874 |   ac_status=$? | 
 | 1875 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1876 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 1877 |   { { case "(($ac_try" in | 
 | 1878 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 1879 |   *) ac_try_echo=$ac_try;; | 
 | 1880 | esac | 
 | 1881 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 1882 | $as_echo "$ac_try_echo"; } >&5 | 
 | 1883 |   (eval "$ac_try") 2>&5 | 
 | 1884 |   ac_status=$? | 
 | 1885 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 1886 |   test $ac_status = 0; }; }; then : | 
 | 1887 |   ac_retval=0 | 
 | 1888 | else | 
 | 1889 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 1890 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 1891 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 1892 |  | 
 | 1893 |        ac_retval=$ac_status | 
 | 1894 | fi | 
 | 1895 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1896 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1897 |   as_fn_set_status $ac_retval | 
 | 1898 |  | 
 | 1899 | } # ac_fn_c_try_run | 
 | 1900 |  | 
 | 1901 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 1902 | # ------------------------------------------------------- | 
 | 1903 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 1904 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 1905 | ac_fn_c_check_header_compile () | 
 | 1906 | { | 
 | 1907 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1908 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1909 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1910 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1911 |   $as_echo_n "(cached) " >&6 | 
 | 1912 | else | 
 | 1913 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1914 | /* end confdefs.h.  */ | 
 | 1915 | $4 | 
 | 1916 | #include <$2> | 
 | 1917 | _ACEOF | 
 | 1918 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1919 |   eval "$3=yes" | 
 | 1920 | else | 
 | 1921 |   eval "$3=no" | 
 | 1922 | fi | 
 | 1923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1924 | fi | 
 | 1925 | eval ac_res=\$$3 | 
 | 1926 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1927 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1928 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1929 |  | 
 | 1930 | } # ac_fn_c_check_header_compile | 
 | 1931 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1932 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 1933 | # ------------------------------------------- | 
 | 1934 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 1935 | # variable VAR accordingly. | 
 | 1936 | ac_fn_c_check_type () | 
 | 1937 | { | 
 | 1938 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1939 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 1940 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1941 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1942 |   $as_echo_n "(cached) " >&6 | 
 | 1943 | else | 
 | 1944 |   eval "$3=no" | 
 | 1945 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1946 | /* end confdefs.h.  */ | 
 | 1947 | $4 | 
 | 1948 | int | 
 | 1949 | main () | 
 | 1950 | { | 
 | 1951 | if (sizeof ($2)) | 
 | 1952 | 	 return 0; | 
 | 1953 |   ; | 
 | 1954 |   return 0; | 
 | 1955 | } | 
 | 1956 | _ACEOF | 
 | 1957 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1958 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1959 | /* end confdefs.h.  */ | 
 | 1960 | $4 | 
 | 1961 | int | 
 | 1962 | main () | 
 | 1963 | { | 
 | 1964 | if (sizeof (($2))) | 
 | 1965 | 	    return 0; | 
 | 1966 |   ; | 
 | 1967 |   return 0; | 
 | 1968 | } | 
 | 1969 | _ACEOF | 
 | 1970 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 1971 |  | 
 | 1972 | else | 
 | 1973 |   eval "$3=yes" | 
 | 1974 | fi | 
 | 1975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1976 | fi | 
 | 1977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 1978 | fi | 
 | 1979 | eval ac_res=\$$3 | 
 | 1980 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 1981 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 1982 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1983 |  | 
 | 1984 | } # ac_fn_c_check_type | 
 | 1985 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 1986 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 1987 | # -------------------------------------------- | 
 | 1988 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 1989 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 1990 | # computed | 
 | 1991 | ac_fn_c_compute_int () | 
 | 1992 | { | 
 | 1993 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 1994 |   if test "$cross_compiling" = yes; then | 
 | 1995 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 1996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 1997 | /* end confdefs.h.  */ | 
 | 1998 | $4 | 
 | 1999 | int | 
 | 2000 | main () | 
 | 2001 | { | 
 | 2002 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2003 | test_array [0] = 0; | 
 | 2004 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2005 |  | 
 | 2006 |   ; | 
 | 2007 |   return 0; | 
 | 2008 | } | 
 | 2009 | _ACEOF | 
 | 2010 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2011 |   ac_lo=0 ac_mid=0 | 
 | 2012 |   while :; do | 
 | 2013 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2014 | /* end confdefs.h.  */ | 
 | 2015 | $4 | 
 | 2016 | int | 
 | 2017 | main () | 
 | 2018 | { | 
 | 2019 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2020 | test_array [0] = 0; | 
 | 2021 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2022 |  | 
 | 2023 |   ; | 
 | 2024 |   return 0; | 
 | 2025 | } | 
 | 2026 | _ACEOF | 
 | 2027 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2028 |   ac_hi=$ac_mid; break | 
 | 2029 | else | 
 | 2030 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2031 | 			if test $ac_lo -le $ac_mid; then | 
 | 2032 | 			  ac_lo= ac_hi= | 
 | 2033 | 			  break | 
 | 2034 | 			fi | 
 | 2035 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2036 | fi | 
 | 2037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2038 |   done | 
 | 2039 | else | 
 | 2040 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2041 | /* end confdefs.h.  */ | 
 | 2042 | $4 | 
 | 2043 | int | 
 | 2044 | main () | 
 | 2045 | { | 
 | 2046 | static int test_array [1 - 2 * !(($2) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2047 | test_array [0] = 0; | 
 | 2048 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2049 |  | 
 | 2050 |   ; | 
 | 2051 |   return 0; | 
 | 2052 | } | 
 | 2053 | _ACEOF | 
 | 2054 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2055 |   ac_hi=-1 ac_mid=-1 | 
 | 2056 |   while :; do | 
 | 2057 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2058 | /* end confdefs.h.  */ | 
 | 2059 | $4 | 
 | 2060 | int | 
 | 2061 | main () | 
 | 2062 | { | 
 | 2063 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2064 | test_array [0] = 0; | 
 | 2065 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2066 |  | 
 | 2067 |   ; | 
 | 2068 |   return 0; | 
 | 2069 | } | 
 | 2070 | _ACEOF | 
 | 2071 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2072 |   ac_lo=$ac_mid; break | 
 | 2073 | else | 
 | 2074 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2075 | 			if test $ac_mid -le $ac_hi; then | 
 | 2076 | 			  ac_lo= ac_hi= | 
 | 2077 | 			  break | 
 | 2078 | 			fi | 
 | 2079 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2080 | fi | 
 | 2081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2082 |   done | 
 | 2083 | else | 
 | 2084 |   ac_lo= ac_hi= | 
 | 2085 | fi | 
 | 2086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2087 | fi | 
 | 2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2089 | # Binary search between lo and hi bounds. | 
 | 2090 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2091 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2092 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2093 | /* end confdefs.h.  */ | 
 | 2094 | $4 | 
 | 2095 | int | 
 | 2096 | main () | 
 | 2097 | { | 
 | 2098 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2099 | test_array [0] = 0; | 
 | 2100 | return test_array [0]; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2101 |  | 
 | 2102 |   ; | 
 | 2103 |   return 0; | 
 | 2104 | } | 
 | 2105 | _ACEOF | 
 | 2106 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2107 |   ac_hi=$ac_mid | 
 | 2108 | else | 
 | 2109 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2110 | fi | 
 | 2111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2112 | done | 
 | 2113 | case $ac_lo in #(( | 
 | 2114 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2115 | '') ac_retval=1 ;; | 
 | 2116 | esac | 
 | 2117 |   else | 
 | 2118 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2119 | /* end confdefs.h.  */ | 
 | 2120 | $4 | 
 | 2121 | static long int longval () { return $2; } | 
 | 2122 | static unsigned long int ulongval () { return $2; } | 
 | 2123 | #include <stdio.h> | 
 | 2124 | #include <stdlib.h> | 
 | 2125 | int | 
 | 2126 | main () | 
 | 2127 | { | 
 | 2128 |  | 
 | 2129 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2130 |   if (! f) | 
 | 2131 |     return 1; | 
 | 2132 |   if (($2) < 0) | 
 | 2133 |     { | 
 | 2134 |       long int i = longval (); | 
 | 2135 |       if (i != ($2)) | 
 | 2136 | 	return 1; | 
 | 2137 |       fprintf (f, "%ld", i); | 
 | 2138 |     } | 
 | 2139 |   else | 
 | 2140 |     { | 
 | 2141 |       unsigned long int i = ulongval (); | 
 | 2142 |       if (i != ($2)) | 
 | 2143 | 	return 1; | 
 | 2144 |       fprintf (f, "%lu", i); | 
 | 2145 |     } | 
 | 2146 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2147 |      on some platforms.  */ | 
 | 2148 |   return ferror (f) || fclose (f) != 0; | 
 | 2149 |  | 
 | 2150 |   ; | 
 | 2151 |   return 0; | 
 | 2152 | } | 
 | 2153 | _ACEOF | 
 | 2154 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2155 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2156 | else | 
 | 2157 |   ac_retval=1 | 
 | 2158 | fi | 
 | 2159 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2160 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2161 | rm -f conftest.val | 
 | 2162 |  | 
 | 2163 |   fi | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2164 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2165 |   as_fn_set_status $ac_retval | 
 | 2166 |  | 
 | 2167 | } # ac_fn_c_compute_int | 
 | 2168 |  | 
 | 2169 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2170 | # ---------------------------------- | 
 | 2171 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2172 | ac_fn_c_check_func () | 
 | 2173 | { | 
 | 2174 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2175 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2176 | $as_echo_n "checking for $2... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2177 | if eval \${$3+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2178 |   $as_echo_n "(cached) " >&6 | 
 | 2179 | else | 
 | 2180 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2181 | /* end confdefs.h.  */ | 
 | 2182 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2183 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2184 | #define $2 innocuous_$2 | 
 | 2185 |  | 
 | 2186 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2187 |     which can conflict with char $2 (); below. | 
 | 2188 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2189 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2190 |  | 
 | 2191 | #ifdef __STDC__ | 
 | 2192 | # include <limits.h> | 
 | 2193 | #else | 
 | 2194 | # include <assert.h> | 
 | 2195 | #endif | 
 | 2196 |  | 
 | 2197 | #undef $2 | 
 | 2198 |  | 
 | 2199 | /* Override any GCC internal prototype to avoid an error. | 
 | 2200 |    Use char because int might match the return type of a GCC | 
 | 2201 |    builtin and then its argument prototype would still apply.  */ | 
 | 2202 | #ifdef __cplusplus | 
 | 2203 | extern "C" | 
 | 2204 | #endif | 
 | 2205 | char $2 (); | 
 | 2206 | /* The GNU C library defines this for functions which it implements | 
 | 2207 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2208 |     something starting with __ and the normal name is an alias.  */ | 
 | 2209 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2210 | choke me | 
 | 2211 | #endif | 
 | 2212 |  | 
 | 2213 | int | 
 | 2214 | main () | 
 | 2215 | { | 
 | 2216 | return $2 (); | 
 | 2217 |   ; | 
 | 2218 |   return 0; | 
 | 2219 | } | 
 | 2220 | _ACEOF | 
 | 2221 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2222 |   eval "$3=yes" | 
 | 2223 | else | 
 | 2224 |   eval "$3=no" | 
 | 2225 | fi | 
 | 2226 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2227 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2228 | fi | 
 | 2229 | eval ac_res=\$$3 | 
 | 2230 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2231 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2232 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2233 |  | 
 | 2234 | } # ac_fn_c_check_func | 
 | 2235 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 2236 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2237 | # --------------------------------------------- | 
 | 2238 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2239 | # accordingly. | 
 | 2240 | ac_fn_c_check_decl () | 
 | 2241 | { | 
 | 2242 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2243 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2244 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2245 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2246 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
 | 2247 | if eval \${$3+:} false; then : | 
 | 2248 |   $as_echo_n "(cached) " >&6 | 
 | 2249 | else | 
 | 2250 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2251 | /* end confdefs.h.  */ | 
 | 2252 | $4 | 
 | 2253 | int | 
 | 2254 | main () | 
 | 2255 | { | 
 | 2256 | #ifndef $as_decl_name | 
 | 2257 | #ifdef __cplusplus | 
 | 2258 |   (void) $as_decl_use; | 
 | 2259 | #else | 
 | 2260 |   (void) $as_decl_name; | 
 | 2261 | #endif | 
 | 2262 | #endif | 
 | 2263 |  | 
 | 2264 |   ; | 
 | 2265 |   return 0; | 
 | 2266 | } | 
 | 2267 | _ACEOF | 
 | 2268 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2269 |   eval "$3=yes" | 
 | 2270 | else | 
 | 2271 |   eval "$3=no" | 
 | 2272 | fi | 
 | 2273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2274 | fi | 
 | 2275 | eval ac_res=\$$3 | 
 | 2276 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2277 | $as_echo "$ac_res" >&6; } | 
 | 2278 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 2279 |  | 
 | 2280 | } # ac_fn_c_check_decl | 
 | 2281 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2282 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2283 | # ---------------------------------------------------- | 
 | 2284 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2285 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2286 | ac_fn_c_check_member () | 
 | 2287 | { | 
 | 2288 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2289 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2290 | $as_echo_n "checking for $2.$3... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2291 | if eval \${$4+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2292 |   $as_echo_n "(cached) " >&6 | 
 | 2293 | else | 
 | 2294 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2295 | /* end confdefs.h.  */ | 
 | 2296 | $5 | 
 | 2297 | int | 
 | 2298 | main () | 
 | 2299 | { | 
 | 2300 | static $2 ac_aggr; | 
 | 2301 | if (ac_aggr.$3) | 
 | 2302 | return 0; | 
 | 2303 |   ; | 
 | 2304 |   return 0; | 
 | 2305 | } | 
 | 2306 | _ACEOF | 
 | 2307 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2308 |   eval "$4=yes" | 
 | 2309 | else | 
 | 2310 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2311 | /* end confdefs.h.  */ | 
 | 2312 | $5 | 
 | 2313 | int | 
 | 2314 | main () | 
 | 2315 | { | 
 | 2316 | static $2 ac_aggr; | 
 | 2317 | if (sizeof ac_aggr.$3) | 
 | 2318 | return 0; | 
 | 2319 |   ; | 
 | 2320 |   return 0; | 
 | 2321 | } | 
 | 2322 | _ACEOF | 
 | 2323 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2324 |   eval "$4=yes" | 
 | 2325 | else | 
 | 2326 |   eval "$4=no" | 
 | 2327 | fi | 
 | 2328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2329 | fi | 
 | 2330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2331 | fi | 
 | 2332 | eval ac_res=\$$4 | 
 | 2333 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2334 | $as_echo "$ac_res" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2335 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2336 |  | 
 | 2337 | } # ac_fn_c_check_member | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2338 | cat >config.log <<_ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | This file contains any messages produced by compilers while | 
 | 2340 | running configure, to aid debugging if configure makes a mistake. | 
 | 2341 |  | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 2342 | It was created by python $as_me 3.7, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 2343 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2344 |  | 
 | 2345 |   $ $0 $@ | 
 | 2346 |  | 
 | 2347 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2348 | exec 5>>config.log | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | { | 
 | 2350 | cat <<_ASUNAME | 
 | 2351 | ## --------- ## | 
 | 2352 | ## Platform. ## | 
 | 2353 | ## --------- ## | 
 | 2354 |  | 
 | 2355 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 2356 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 2357 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 2358 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 2359 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 2360 |  | 
 | 2361 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 2362 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 2363 |  | 
 | 2364 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 2365 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 2366 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2367 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2368 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 2369 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 2370 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 2371 |  | 
 | 2372 | _ASUNAME | 
 | 2373 |  | 
 | 2374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2375 | for as_dir in $PATH | 
 | 2376 | do | 
 | 2377 |   IFS=$as_save_IFS | 
 | 2378 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2379 |     $as_echo "PATH: $as_dir" | 
 | 2380 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2381 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2382 |  | 
 | 2383 | } >&5 | 
 | 2384 |  | 
 | 2385 | cat >&5 <<_ACEOF | 
 | 2386 |  | 
 | 2387 |  | 
 | 2388 | ## ----------- ## | 
 | 2389 | ## Core tests. ## | 
 | 2390 | ## ----------- ## | 
 | 2391 |  | 
 | 2392 | _ACEOF | 
 | 2393 |  | 
 | 2394 |  | 
 | 2395 | # Keep a trace of the command line. | 
 | 2396 | # Strip out --no-create and --no-recursion so they do not pile up. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2397 | # Strip out --silent because we don't want to record it for future runs. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2398 | # Also quote any args containing shell meta-characters. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2399 | # Make two passes to allow for proper duplicate-argument suppression. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2400 | ac_configure_args= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2401 | ac_configure_args0= | 
 | 2402 | ac_configure_args1= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2403 | ac_must_keep_next=false | 
 | 2404 | for ac_pass in 1 2 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2405 | do | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2406 |   for ac_arg | 
 | 2407 |   do | 
 | 2408 |     case $ac_arg in | 
 | 2409 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 2410 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 2411 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 2412 |       continue ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2413 |     *\'*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2414 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2415 |     esac | 
 | 2416 |     case $ac_pass in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2417 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2418 |     2) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2419 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2420 |       if test $ac_must_keep_next = true; then | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2421 | 	ac_must_keep_next=false # Got value, back to normal. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2422 |       else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2423 | 	case $ac_arg in | 
 | 2424 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 2425 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 2426 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 2427 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 2428 | 	    case "$ac_configure_args0 " in | 
 | 2429 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 2430 | 	    esac | 
 | 2431 | 	    ;; | 
 | 2432 | 	  -* ) ac_must_keep_next=true ;; | 
 | 2433 | 	esac | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2434 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2435 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2436 |       ;; | 
 | 2437 |     esac | 
 | 2438 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2439 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2440 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 2441 | { ac_configure_args1=; unset ac_configure_args1;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2442 |  | 
 | 2443 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 2444 | # config.log.  We remove comments because anyway the quotes in there | 
 | 2445 | # would cause problems or look ugly. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2446 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 2447 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2448 | trap 'exit_status=$? | 
 | 2449 |   # Save into config.log some information that might help in debugging. | 
 | 2450 |   { | 
 | 2451 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2452 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2453 |     $as_echo "## ---------------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | ## Cache variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2455 | ## ---------------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 |     echo | 
 | 2457 |     # The following way of writing the cache mishandles newlines in values, | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2458 | ( | 
 | 2459 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 2460 |     eval ac_val=\$$ac_var | 
 | 2461 |     case $ac_val in #( | 
 | 2462 |     *${as_nl}*) | 
 | 2463 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2464 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 2465 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2466 |       esac | 
 | 2467 |       case $ac_var in #( | 
 | 2468 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2469 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 2470 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2471 |       esac ;; | 
 | 2472 |     esac | 
 | 2473 |   done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2474 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2475 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 2476 |     *${as_nl}ac_space=\ *) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 |       sed -n \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2478 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 2479 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 2480 |       ;; #( | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2481 |     *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2482 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 2483 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2484 |     esac | | 
 | 2485 |     sort | 
 | 2486 | ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2487 |     echo | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2488 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2489 |     $as_echo "## ----------------- ## | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2490 | ## Output variables. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2491 | ## ----------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2492 |     echo | 
 | 2493 |     for ac_var in $ac_subst_vars | 
 | 2494 |     do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2495 |       eval ac_val=\$$ac_var | 
 | 2496 |       case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2497 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2498 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2499 |       $as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2500 |     done | sort | 
 | 2501 |     echo | 
 | 2502 |  | 
 | 2503 |     if test -n "$ac_subst_files"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2504 |       $as_echo "## ------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2505 | ## File substitutions. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2506 | ## ------------------- ##" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2507 |       echo | 
 | 2508 |       for ac_var in $ac_subst_files | 
 | 2509 |       do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2510 | 	eval ac_val=\$$ac_var | 
 | 2511 | 	case $ac_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2512 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2513 | 	esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2514 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2515 |       done | sort | 
 | 2516 |       echo | 
 | 2517 |     fi | 
 | 2518 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 |     if test -s confdefs.h; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2520 |       $as_echo "## ----------- ## | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | ## confdefs.h. ## | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2522 | ## ----------- ##" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2523 |       echo | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2524 |       cat confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2525 |       echo | 
 | 2526 |     fi | 
 | 2527 |     test "$ac_signal" != 0 && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2528 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 2529 |     $as_echo "$as_me: exit $exit_status" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 |   } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2531 |   rm -f core *.core core.conftest.* && | 
 | 2532 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 |     exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2534 | ' 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | for ac_signal in 1 2 13 15; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2536 |   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2537 | done | 
 | 2538 | ac_signal=0 | 
 | 2539 |  | 
 | 2540 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2541 | rm -f -r conftest* confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2543 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 2544 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | # Predefined preprocessor variables. | 
 | 2546 |  | 
 | 2547 | cat >>confdefs.h <<_ACEOF | 
 | 2548 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 2549 | _ACEOF | 
 | 2550 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | cat >>confdefs.h <<_ACEOF | 
 | 2552 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 2553 | _ACEOF | 
 | 2554 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2555 | cat >>confdefs.h <<_ACEOF | 
 | 2556 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 2557 | _ACEOF | 
 | 2558 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | cat >>confdefs.h <<_ACEOF | 
 | 2560 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 2561 | _ACEOF | 
 | 2562 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 | cat >>confdefs.h <<_ACEOF | 
 | 2564 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 2565 | _ACEOF | 
 | 2566 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2567 | cat >>confdefs.h <<_ACEOF | 
 | 2568 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 2569 | _ACEOF | 
 | 2570 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 |  | 
 | 2572 | # Let the site file select an alternate cache file if it wants to. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2573 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 2574 | ac_site_file1=NONE | 
 | 2575 | ac_site_file2=NONE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2576 | if test -n "$CONFIG_SITE"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2577 |   # We do not want a PATH search for config.site. | 
 | 2578 |   case $CONFIG_SITE in #(( | 
 | 2579 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 2580 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 2581 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 2582 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2583 | elif test "x$prefix" != xNONE; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2584 |   ac_site_file1=$prefix/share/config.site | 
 | 2585 |   ac_site_file2=$prefix/etc/config.site | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2586 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2587 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 2588 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2589 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2590 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2591 | do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2592 |   test "x$ac_site_file" = xNONE && continue | 
 | 2593 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
 | 2594 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 
 | 2595 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2596 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2597 |     . "$ac_site_file" \ | 
 | 2598 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2599 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2600 | as_fn_error $? "failed to load site script $ac_site_file | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 2601 | See \`config.log' for more details" "$LINENO" 5; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2602 |   fi | 
 | 2603 | done | 
 | 2604 |  | 
 | 2605 | if test -r "$cache_file"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2606 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 2607 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 2608 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
 | 2609 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
 | 2610 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2611 |     case $cache_file in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2612 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 2613 |       *)                      . "./$cache_file";; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 |     esac | 
 | 2615 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2616 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2617 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
 | 2618 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2619 |   >$cache_file | 
 | 2620 | fi | 
 | 2621 |  | 
 | 2622 | # Check that the precious variables saved in the cache have kept the same | 
 | 2623 | # value. | 
 | 2624 | ac_cache_corrupted=false | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2625 | for ac_var in $ac_precious_vars; do | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 2627 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2628 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2629 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2630 |   case $ac_old_set,$ac_new_set in | 
 | 2631 |     set,) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2632 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2633 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 |       ac_cache_corrupted=: ;; | 
 | 2635 |     ,set) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2636 |       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2637 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2638 |       ac_cache_corrupted=: ;; | 
 | 2639 |     ,);; | 
 | 2640 |     *) | 
 | 2641 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2642 | 	# differences in whitespace do not lead to failure. | 
 | 2643 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 2644 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 2645 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
 | 2646 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 2647 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 2648 | 	  ac_cache_corrupted=: | 
 | 2649 | 	else | 
 | 2650 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 
 | 2651 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 2652 | 	  eval $ac_var=\$ac_old_val | 
 | 2653 | 	fi | 
 | 2654 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
 | 2655 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
 | 2656 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
 | 2657 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 |       fi;; | 
 | 2659 |   esac | 
 | 2660 |   # Pass precious variables to config.status. | 
 | 2661 |   if test "$ac_new_set" = set; then | 
 | 2662 |     case $ac_new_val in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2663 |     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2665 |     esac | 
 | 2666 |     case " $ac_configure_args " in | 
 | 2667 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2668 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 |     esac | 
 | 2670 |   fi | 
 | 2671 | done | 
 | 2672 | if $ac_cache_corrupted; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2673 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 2674 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 2675 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 
 | 2676 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 2677 |   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2678 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2679 | ## -------------------- ## | 
 | 2680 | ## Main body of script. ## | 
 | 2681 | ## -------------------- ## | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2682 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2683 | ac_ext=c | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2684 | ac_cpp='$CPP $CPPFLAGS' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2688 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2689 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2690 |  | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2691 |  | 
| Martin Panter | c5ee3ca | 2016-09-12 01:32:03 +0000 | [diff] [blame] | 2692 | if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then | 
| Trent Nelson | 4d4ec65 | 2012-10-16 08:51:24 -0400 | [diff] [blame] | 2693 |     # If we're building out-of-tree, we need to make sure the following | 
 | 2694 |     # resources get picked up before their $srcdir counterparts. | 
 | 2695 |     #   Objects/ -> typeslots.inc | 
 | 2696 |     #   Include/ -> Python-ast.h, graminit.h | 
 | 2697 |     #   Python/  -> importlib.h | 
 | 2698 |     # (A side effect of this is that these resources will automatically be | 
 | 2699 |     #  regenerated when building out-of-tree, regardless of whether or not | 
 | 2700 |     #  the $srcdir counterpart is up-to-date.  This is an acceptable trade | 
 | 2701 |     #  off.) | 
 | 2702 |     BASECPPFLAGS="-IObjects -IInclude -IPython" | 
 | 2703 | else | 
 | 2704 |     BASECPPFLAGS="" | 
 | 2705 | fi | 
 | 2706 |  | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2707 |  | 
 | 2708 |  | 
 | 2709 |  | 
 | 2710 |  | 
| Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 2711 | if test -e $srcdir/.git | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2712 | then | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2713 | # Extract the first word of "git", so it can be a program name with args. | 
 | 2714 | set dummy git; ac_word=$2 | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 2716 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2717 | if ${ac_cv_prog_HAS_GIT+:} false; then : | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2718 |   $as_echo_n "(cached) " >&6 | 
 | 2719 | else | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2720 |   if test -n "$HAS_GIT"; then | 
 | 2721 |   ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2722 | else | 
 | 2723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2724 | for as_dir in $PATH | 
 | 2725 | do | 
 | 2726 |   IFS=$as_save_IFS | 
 | 2727 |   test -z "$as_dir" && as_dir=. | 
 | 2728 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 2729 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2730 |     ac_cv_prog_HAS_GIT="found" | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2731 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2732 |     break 2 | 
 | 2733 |   fi | 
 | 2734 | done | 
 | 2735 |   done | 
 | 2736 | IFS=$as_save_IFS | 
 | 2737 |  | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2738 |   test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2739 | fi | 
 | 2740 | fi | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2741 | HAS_GIT=$ac_cv_prog_HAS_GIT | 
 | 2742 | if test -n "$HAS_GIT"; then | 
 | 2743 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 | 
 | 2744 | $as_echo "$HAS_GIT" >&6; } | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2745 | else | 
 | 2746 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2747 | $as_echo "no" >&6; } | 
 | 2748 | fi | 
 | 2749 |  | 
 | 2750 |  | 
 | 2751 | else | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2752 | HAS_GIT=no-repository | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2753 | fi | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2754 | if test $HAS_GIT = found | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2755 | then | 
| Ned Deily | 554626a | 2017-03-20 23:41:52 -0400 | [diff] [blame] | 2756 |     GITVERSION="git -C \$(srcdir) rev-parse --short HEAD" | 
 | 2757 |     GITTAG="git -C \$(srcdir) describe --all --always --dirty" | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2758 |     GITBRANCH="git -C \$(srcdir) name-rev --name-only HEAD" | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2759 | else | 
| Ned Deily | 5c4b0d0 | 2017-03-04 00:19:55 -0500 | [diff] [blame] | 2760 |     GITVERSION="" | 
 | 2761 |     GITTAG="" | 
 | 2762 |     GITBRANCH="" | 
| Benjamin Peterson | 8c6f88e | 2011-05-31 20:52:17 -0500 | [diff] [blame] | 2763 | fi | 
 | 2764 |  | 
 | 2765 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2766 | ac_config_headers="$ac_config_headers pyconfig.h" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2767 |  | 
 | 2768 |  | 
| Matthias Klose | ca2f6ec | 2012-03-15 21:30:11 +0100 | [diff] [blame] | 2769 | ac_aux_dir= | 
 | 2770 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 
 | 2771 |   if test -f "$ac_dir/install-sh"; then | 
 | 2772 |     ac_aux_dir=$ac_dir | 
 | 2773 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 2774 |     break | 
 | 2775 |   elif test -f "$ac_dir/install.sh"; then | 
 | 2776 |     ac_aux_dir=$ac_dir | 
 | 2777 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 2778 |     break | 
 | 2779 |   elif test -f "$ac_dir/shtool"; then | 
 | 2780 |     ac_aux_dir=$ac_dir | 
 | 2781 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 2782 |     break | 
 | 2783 |   fi | 
 | 2784 | done | 
 | 2785 | if test -z "$ac_aux_dir"; then | 
 | 2786 |   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 
 | 2787 | fi | 
 | 2788 |  | 
 | 2789 | # These three variables are undocumented and unsupported, | 
 | 2790 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 2791 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 2792 | # whose full name contains unusual characters. | 
 | 2793 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 2794 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 2795 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 2796 |  | 
 | 2797 |  | 
 | 2798 | # Make sure we can run config.sub. | 
 | 2799 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
 | 2800 |   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
 | 2801 |  | 
 | 2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
 | 2803 | $as_echo_n "checking build system type... " >&6; } | 
 | 2804 | if ${ac_cv_build+:} false; then : | 
 | 2805 |   $as_echo_n "(cached) " >&6 | 
 | 2806 | else | 
 | 2807 |   ac_build_alias=$build_alias | 
 | 2808 | test "x$ac_build_alias" = x && | 
 | 2809 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 2810 | test "x$ac_build_alias" = x && | 
 | 2811 |   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
 | 2812 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
 | 2813 |   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 
 | 2814 |  | 
 | 2815 | fi | 
 | 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
 | 2817 | $as_echo "$ac_cv_build" >&6; } | 
 | 2818 | case $ac_cv_build in | 
 | 2819 | *-*-*) ;; | 
 | 2820 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
 | 2821 | esac | 
 | 2822 | build=$ac_cv_build | 
 | 2823 | ac_save_IFS=$IFS; IFS='-' | 
 | 2824 | set x $ac_cv_build | 
 | 2825 | shift | 
 | 2826 | build_cpu=$1 | 
 | 2827 | build_vendor=$2 | 
 | 2828 | shift; shift | 
 | 2829 | # Remember, the first character of IFS is used to create $*, | 
 | 2830 | # except with old shells: | 
 | 2831 | build_os=$* | 
 | 2832 | IFS=$ac_save_IFS | 
 | 2833 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
 | 2834 |  | 
 | 2835 |  | 
 | 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
 | 2837 | $as_echo_n "checking host system type... " >&6; } | 
 | 2838 | if ${ac_cv_host+:} false; then : | 
 | 2839 |   $as_echo_n "(cached) " >&6 | 
 | 2840 | else | 
 | 2841 |   if test "x$host_alias" = x; then | 
 | 2842 |   ac_cv_host=$ac_cv_build | 
 | 2843 | else | 
 | 2844 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
 | 2845 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 
 | 2846 | fi | 
 | 2847 |  | 
 | 2848 | fi | 
 | 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
 | 2850 | $as_echo "$ac_cv_host" >&6; } | 
 | 2851 | case $ac_cv_host in | 
 | 2852 | *-*-*) ;; | 
 | 2853 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
 | 2854 | esac | 
 | 2855 | host=$ac_cv_host | 
 | 2856 | ac_save_IFS=$IFS; IFS='-' | 
 | 2857 | set x $ac_cv_host | 
 | 2858 | shift | 
 | 2859 | host_cpu=$1 | 
 | 2860 | host_vendor=$2 | 
 | 2861 | shift; shift | 
 | 2862 | # Remember, the first character of IFS is used to create $*, | 
 | 2863 | # except with old shells: | 
 | 2864 | host_os=$* | 
 | 2865 | IFS=$ac_save_IFS | 
 | 2866 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
 | 2867 |  | 
 | 2868 |  | 
 | 2869 |  | 
| doko@python.org | a10e4a9 | 2013-01-25 18:45:12 +0100 | [diff] [blame] | 2870 |  | 
 | 2871 |  | 
| Ned Deily | fcbc246 | 2014-08-22 13:32:49 -0700 | [diff] [blame] | 2872 | # pybuilddir.txt will be created by --generate-posix-vars in the Makefile | 
 | 2873 | rm -f pybuilddir.txt | 
 | 2874 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2875 | for ac_prog in python$PACKAGE_VERSION python3 python | 
 | 2876 | do | 
 | 2877 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 2878 | set dummy $ac_prog; ac_word=$2 | 
 | 2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 2880 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2881 | if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2882 |   $as_echo_n "(cached) " >&6 | 
 | 2883 | else | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2884 |   if test -n "$PYTHON_FOR_REGEN"; then | 
 | 2885 |   ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2886 | else | 
 | 2887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2888 | for as_dir in $PATH | 
 | 2889 | do | 
 | 2890 |   IFS=$as_save_IFS | 
 | 2891 |   test -z "$as_dir" && as_dir=. | 
 | 2892 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2893 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2894 |     ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2895 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2896 |     break 2 | 
 | 2897 |   fi | 
 | 2898 | done | 
 | 2899 |   done | 
 | 2900 | IFS=$as_save_IFS | 
 | 2901 |  | 
 | 2902 | fi | 
 | 2903 | fi | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2904 | PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN | 
 | 2905 | if test -n "$PYTHON_FOR_REGEN"; then | 
 | 2906 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 | 
 | 2907 | $as_echo "$PYTHON_FOR_REGEN" >&6; } | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2908 | else | 
 | 2909 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 2910 | $as_echo "no" >&6; } | 
 | 2911 | fi | 
 | 2912 |  | 
 | 2913 |  | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2914 |   test -n "$PYTHON_FOR_REGEN" && break | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2915 | done | 
| Victor Stinner | a5c62a8 | 2017-05-03 18:21:48 +0200 | [diff] [blame] | 2916 | test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2917 |  | 
| Xavier de Gaye | fd0d593 | 2016-07-26 12:48:08 +0200 | [diff] [blame] | 2918 |  | 
 | 2919 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2920 | if test "$cross_compiling" = yes; then | 
 | 2921 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 | 
 | 2922 | $as_echo_n "checking for python interpreter for cross build... " >&6; } | 
 | 2923 |     if test -z "$PYTHON_FOR_BUILD"; then | 
 | 2924 |         for interp in python$PACKAGE_VERSION python3 python; do | 
 | 2925 | 	    which $interp >/dev/null 2>&1 || continue | 
| Xavier de Gaye | 4afd143 | 2016-07-07 18:00:22 +0200 | [diff] [blame] | 2926 | 	    if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2927 | 	        break | 
 | 2928 | 	    fi | 
 | 2929 |             interp= | 
 | 2930 | 	done | 
 | 2931 |         if test x$interp = x; then | 
 | 2932 | 	    as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 | 
 | 2933 | 	fi | 
 | 2934 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 | 
 | 2935 | $as_echo "$interp" >&6; } | 
| Xavier de Gaye | 92dec54 | 2016-09-11 22:22:24 +0200 | [diff] [blame] | 2936 | 	PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2937 |     fi | 
| Christian Heimes | 954ac03 | 2012-12-12 13:10:21 +0100 | [diff] [blame] | 2938 | elif test "$cross_compiling" = maybe; then | 
 | 2939 |     as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 2940 | else | 
 | 2941 |     PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' | 
 | 2942 | fi | 
 | 2943 |  | 
 | 2944 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2945 |  | 
| Benjamin Peterson | d23f822 | 2009-04-05 19:13:16 +0000 | [diff] [blame] | 2946 | if test "$prefix" != "/"; then | 
 | 2947 |     prefix=`echo "$prefix" | sed -e 's/\/$//g'` | 
 | 2948 | fi | 
 | 2949 |  | 
 | 2950 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 |  | 
 | 2952 |  | 
| Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 2953 | # We don't use PACKAGE_ variables, and they cause conflicts | 
 | 2954 | # with other autoconf-based packages that include Python.h | 
 | 2955 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new | 
 | 2956 | rm confdefs.h | 
 | 2957 | mv confdefs.h.new confdefs.h | 
 | 2958 |  | 
| Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 2959 |  | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 2960 | VERSION=3.7 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 2961 |  | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 2962 | # Version number of Python's own shared library file. | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 2963 |  | 
 | 2964 | SOVERSION=1.0 | 
 | 2965 |  | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2966 | # The later defininition of _XOPEN_SOURCE disables certain features | 
 | 2967 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). | 
 | 2968 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2969 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2970 |  | 
 | 2971 |  | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2972 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2973 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable | 
 | 2974 | # them. | 
 | 2975 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2976 | $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 2977 |  | 
 | 2978 |  | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2979 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
 | 2980 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable | 
 | 2981 | # them. | 
 | 2982 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2983 | $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h | 
| Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 2984 |  | 
 | 2985 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 2986 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2987 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable | 
 | 2988 | # them. | 
 | 2989 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 2990 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 2991 |  | 
 | 2992 |  | 
 | 2993 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2994 | define_xopen_source=yes | 
| Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 2995 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 2996 | # Arguments passed to configure. | 
 | 2997 |  | 
 | 2998 | CONFIG_ARGS="$ac_configure_args" | 
 | 2999 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 | 
 | 3001 | $as_echo_n "checking for --enable-universalsdk... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3002 | # Check whether --enable-universalsdk was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3003 | if test "${enable_universalsdk+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3004 |   enableval=$enable_universalsdk; | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3005 | 	case $enableval in | 
 | 3006 | 	yes) | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3007 | 		# Locate the best usable SDK, see Mac/README.txt for more | 
 | 3008 | 		# information | 
 | 3009 | 		enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3010 | 		if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3011 | 		then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3012 | 			enableval=/Developer/SDKs/MacOSX10.4u.sdk | 
 | 3013 | 			if test ! -d "${enableval}" | 
 | 3014 | 			then | 
 | 3015 | 				enableval=/ | 
 | 3016 | 			fi | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3017 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3018 | 		;; | 
 | 3019 | 	esac | 
 | 3020 | 	case $enableval in | 
 | 3021 | 	no) | 
 | 3022 | 		UNIVERSALSDK= | 
 | 3023 | 		enable_universalsdk= | 
 | 3024 | 		;; | 
 | 3025 | 	*) | 
 | 3026 | 		UNIVERSALSDK=$enableval | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3027 | 		if test ! -d "${UNIVERSALSDK}" | 
 | 3028 | 		then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3029 | 			as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3030 | 		fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3031 | 		;; | 
 | 3032 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3033 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3034 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3035 | else | 
 | 3036 |  | 
 | 3037 |    	UNIVERSALSDK= | 
 | 3038 | 	enable_universalsdk= | 
 | 3039 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3040 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3041 |  | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3042 | if test -n "${UNIVERSALSDK}" | 
 | 3043 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3044 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 | 
 | 3045 | $as_echo "${UNIVERSALSDK}" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3046 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3047 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3048 | $as_echo "no" >&6; } | 
| Ronald Oussoren | 8af24c1 | 2010-02-07 12:03:42 +0000 | [diff] [blame] | 3049 | fi | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3050 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3051 |  | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3052 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3053 | ARCH_RUN_32BIT="" | 
| Benjamin Peterson | 6794aa3 | 2008-07-16 20:33:37 +0000 | [diff] [blame] | 3054 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3055 | # For backward compatibility reasons we prefer to select '32-bit' if available, | 
 | 3056 | # otherwise use 'intel' | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3057 | UNIVERSAL_ARCHS="32-bit" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3058 | if test "`uname -s`" = "Darwin" | 
 | 3059 | then | 
 | 3060 | 	if test -n "${UNIVERSALSDK}" | 
 | 3061 | 	then | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3062 | 		if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3063 | 		then | 
 | 3064 | 			UNIVERSAL_ARCHS="intel" | 
 | 3065 | 		fi | 
 | 3066 | 	fi | 
 | 3067 | fi | 
 | 3068 |  | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3069 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 | 
 | 3071 | $as_echo_n "checking for --with-universal-archs... " >&6; } | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3072 |  | 
 | 3073 | # Check whether --with-universal-archs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3074 | if test "${with_universal_archs+set}" = set; then : | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3075 |   withval=$with_universal_archs; | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3076 | 	UNIVERSAL_ARCHS="$withval" | 
 | 3077 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3078 | fi | 
 | 3079 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 3080 | if test -n "${UNIVERSALSDK}" | 
 | 3081 | then | 
 | 3082 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 | 
 | 3083 | $as_echo "${UNIVERSAL_ARCHS}" >&6; } | 
 | 3084 | else | 
 | 3085 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3086 | $as_echo "no" >&6; } | 
 | 3087 | fi | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3088 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3089 |  | 
 | 3090 | # Check whether --with-framework-name was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3091 | if test "${with_framework_name+set}" = set; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3092 |   withval=$with_framework_name; | 
 | 3093 |     PYTHONFRAMEWORK=${withval} | 
 | 3094 |     PYTHONFRAMEWORKDIR=${withval}.framework | 
 | 3095 |     PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` | 
 | 3096 |  | 
 | 3097 | else | 
 | 3098 |  | 
 | 3099 |     PYTHONFRAMEWORK=Python | 
 | 3100 |     PYTHONFRAMEWORKDIR=Python.framework | 
 | 3101 |     PYTHONFRAMEWORKIDENTIFIER=org.python.python | 
 | 3102 |  | 
 | 3103 | fi | 
 | 3104 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3105 | # Check whether --enable-framework was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3106 | if test "${enable_framework+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3107 |   enableval=$enable_framework; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3108 | 	case $enableval in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3109 | 	yes) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3110 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3111 | 	esac | 
 | 3112 | 	case $enableval in | 
 | 3113 | 	no) | 
 | 3114 | 		PYTHONFRAMEWORK= | 
 | 3115 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 3116 | 		PYTHONFRAMEWORKPREFIX= | 
 | 3117 | 		PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3118 | 		FRAMEWORKINSTALLFIRST= | 
 | 3119 | 		FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3120 | 		FRAMEWORKALTINSTALLFIRST= | 
 | 3121 | 		FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3122 | 		FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3123 | 		if test "x${prefix}" = "xNONE"; then | 
 | 3124 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3125 | 		else | 
 | 3126 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3127 | 		fi | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3128 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3129 | 		;; | 
 | 3130 | 	*) | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3131 | 		PYTHONFRAMEWORKPREFIX="${enableval}" | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3132 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3133 | 		FRAMEWORKINSTALLFIRST="frameworkinstallstructure" | 
| Ronald Oussoren | f6ccbf6 | 2009-06-02 10:55:56 +0000 | [diff] [blame] | 3134 | 		FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " | 
| Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 3135 | 		FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" | 
 | 3136 | 		FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3137 | 		FRAMEWORKPYTHONW="frameworkpythonw" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3138 | 		FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3139 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3140 | 		if test "x${prefix}" = "xNONE" ; then | 
 | 3141 | 			FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3142 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3143 | 		else | 
 | 3144 | 			FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3145 | 		fi | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3146 |  | 
 | 3147 | 		case "${enableval}" in | 
 | 3148 | 		/System*) | 
 | 3149 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3150 | 			if test "${prefix}" = "NONE" ; then | 
 | 3151 | 				# See below | 
 | 3152 | 				FRAMEWORKUNIXTOOLSPREFIX="/usr" | 
 | 3153 | 			fi | 
 | 3154 | 			;; | 
 | 3155 |  | 
 | 3156 | 		/Library*) | 
 | 3157 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3158 | 			;; | 
 | 3159 |  | 
 | 3160 | 		*/Library/Frameworks) | 
 | 3161 | 			MDIR="`dirname "${enableval}"`" | 
 | 3162 | 			MDIR="`dirname "${MDIR}"`" | 
 | 3163 | 			FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" | 
 | 3164 |  | 
 | 3165 | 			if test "${prefix}" = "NONE"; then | 
 | 3166 | 				# User hasn't specified the | 
 | 3167 | 				# --prefix option, but wants to install | 
 | 3168 | 				# the framework in a non-default location, | 
 | 3169 | 				# ensure that the compatibility links get | 
 | 3170 | 				# installed relative to that prefix as well | 
 | 3171 | 				# instead of in /usr/local. | 
 | 3172 | 				FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" | 
 | 3173 | 			fi | 
 | 3174 | 			;; | 
 | 3175 |  | 
 | 3176 | 		*) | 
 | 3177 | 			FRAMEWORKINSTALLAPPSPREFIX="/Applications" | 
 | 3178 | 			;; | 
 | 3179 | 		esac | 
 | 3180 |  | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3181 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3182 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3183 | 		# Add files for Mac specific code to the list of output | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3184 | 		# files: | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3185 | 		ac_config_files="$ac_config_files Mac/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3186 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3187 | 		ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3188 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3189 | 		ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" | 
 | 3190 |  | 
 | 3191 | 		ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" | 
 | 3192 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3193 | 	esac | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3194 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3195 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3196 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3197 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 3198 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3199 | 	PYTHONFRAMEWORKPREFIX= | 
 | 3200 | 	PYTHONFRAMEWORKINSTALLDIR= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3201 | 	FRAMEWORKINSTALLFIRST= | 
 | 3202 | 	FRAMEWORKINSTALLLAST= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3203 | 	FRAMEWORKALTINSTALLFIRST= | 
 | 3204 | 	FRAMEWORKALTINSTALLLAST= | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3205 | 	FRAMEWORKPYTHONW= | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3206 | 	if test "x${prefix}" = "xNONE" ; then | 
 | 3207 | 		FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" | 
 | 3208 | 	else | 
 | 3209 | 		FRAMEWORKUNIXTOOLSPREFIX="${prefix}" | 
 | 3210 | 	fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3211 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3212 |  | 
| Benjamin Peterson | 14ae959 | 2008-07-16 02:20:15 +0000 | [diff] [blame] | 3213 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3214 | fi | 
 | 3215 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3216 |  | 
 | 3217 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3218 |  | 
 | 3219 |  | 
 | 3220 |  | 
 | 3221 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3222 |  | 
| Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 3223 |  | 
 | 3224 |  | 
 | 3225 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 3226 |  | 
| Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 3227 |  | 
| Ned Deily | b8f944f | 2013-11-21 22:42:25 -0800 | [diff] [blame] | 3228 |  | 
| INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3229 |  | 
 | 3230 | cat >>confdefs.h <<_ACEOF | 
| INADA Naoki | 6b42eb1 | 2017-06-29 15:31:38 +0900 | [diff] [blame] | 3231 | #define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" | 
| INADA Naoki | a8f8d5b | 2017-06-29 00:31:53 +0900 | [diff] [blame] | 3232 | _ACEOF | 
 | 3233 |  | 
 | 3234 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3235 | ##AC_ARG_WITH(dyld, | 
| Matthias Klose | 2b8733f | 2010-04-25 18:34:36 +0000 | [diff] [blame] | 3236 | ##            AS_HELP_STRING([--with-dyld], | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 3237 | ##                           [Use (OpenStep|Rhapsody) dynamic linker])) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3238 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3239 | # Set name for machine-dependent library files | 
 | 3240 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 | 
 | 3242 | $as_echo_n "checking MACHDEP... " >&6; } | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3243 | if test -z "$MACHDEP" | 
 | 3244 | then | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3245 |     # avoid using uname for cross builds | 
 | 3246 |     if test "$cross_compiling" = yes; then | 
| doko@python.org | 44bbbda | 2013-01-25 14:44:00 +0100 | [diff] [blame] | 3247 |        # ac_sys_system and ac_sys_release are used for setting | 
 | 3248 |        # a lot of different things including 'define_xopen_source' | 
 | 3249 |        # in the case statement below. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3250 | 	case "$host" in | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 3251 | 	*-*-linux-android*) | 
 | 3252 | 		ac_sys_system=Linux-android | 
 | 3253 | 		;; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3254 | 	*-*-linux*) | 
 | 3255 | 		ac_sys_system=Linux | 
 | 3256 | 		;; | 
 | 3257 | 	*-*-cygwin*) | 
 | 3258 | 		ac_sys_system=Cygwin | 
 | 3259 | 		;; | 
 | 3260 | 	*) | 
 | 3261 | 		# for now, limit cross builds to known configurations | 
 | 3262 | 		MACHDEP="unknown" | 
 | 3263 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3264 | 	esac | 
 | 3265 | 	ac_sys_release= | 
 | 3266 |     else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3267 | 	ac_sys_system=`uname -s` | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 3268 | 	if test "$ac_sys_system" = "AIX" \ | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3269 | 	-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3270 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3271 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3272 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3273 | 	fi | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3274 |     fi | 
 | 3275 |     ac_md_system=`echo $ac_sys_system | | 
 | 3276 | 			tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 3277 |     ac_md_release=`echo $ac_sys_release | | 
 | 3278 | 			tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
 | 3279 |     MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3280 |  | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3281 |     case $MACHDEP in | 
| Victor Stinner | 7209ff2 | 2011-08-21 00:00:16 +0200 | [diff] [blame] | 3282 | 	linux*) MACHDEP="linux";; | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 3283 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 3284 | 	darwin*) MACHDEP="darwin";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 3285 | 	'')	MACHDEP="unknown";; | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 3286 |     esac | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3287 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3288 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 3289 |  | 
 | 3290 | if test "$cross_compiling" = yes; then | 
 | 3291 | 	case "$host" in | 
 | 3292 | 	*-*-linux*) | 
 | 3293 | 		case "$host_cpu" in | 
 | 3294 | 		arm*) | 
 | 3295 | 			_host_cpu=arm | 
 | 3296 | 			;; | 
 | 3297 | 		*) | 
 | 3298 | 			_host_cpu=$host_cpu | 
 | 3299 | 		esac | 
 | 3300 | 		;; | 
 | 3301 | 	*-*-cygwin*) | 
 | 3302 | 		_host_cpu= | 
 | 3303 | 		;; | 
 | 3304 | 	*) | 
 | 3305 | 		# for now, limit cross builds to known configurations | 
 | 3306 | 		MACHDEP="unknown" | 
 | 3307 | 		as_fn_error $? "cross build not supported for $host" "$LINENO" 5 | 
 | 3308 | 	esac | 
 | 3309 | 	_PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | 
 | 3310 | fi | 
 | 3311 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3312 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | 
 | 3313 | # disable features if it is defined, without any means to access these | 
 | 3314 | # features as extensions. For these systems, we skip the definition of | 
 | 3315 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to | 
 | 3316 | # some feature, make sure there is no alternative way to access this | 
 | 3317 | # feature. Also, when using wildcards, make sure you have verified the | 
 | 3318 | # need for not defining _XOPEN_SOURCE on all systems matching the | 
 | 3319 | # wildcard, and that the wildcard does not include future systems | 
 | 3320 | # (which may remove their limitations). | 
 | 3321 | case $ac_sys_system/$ac_sys_release in | 
 | 3322 |   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, | 
 | 3323 |   # even though select is a POSIX function. Reported by J. Ribbens. | 
| Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 3324 |   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. | 
| Martin v. Löwis | 19ed3c8 | 2010-02-15 21:45:06 +0000 | [diff] [blame] | 3325 |   # In addition, Stefan Krah confirms that issue #1244610 exists through | 
 | 3326 |   # OpenBSD 4.6, but is fixed in 4.7. | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3327 |   OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3328 |     define_xopen_source=no | 
 | 3329 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3330 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3331 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3332 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3333 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 3334 |  | 
 | 3335 |     ;; | 
| Charles-François Natali | 54ef40b | 2011-07-22 23:52:02 +0200 | [diff] [blame] | 3336 |   OpenBSD/*) | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3337 |     # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is | 
 | 3338 |     # also defined. This can be overridden by defining _BSD_SOURCE | 
 | 3339 |     # As this has a different meaning on Linux, only define it on OpenBSD | 
 | 3340 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3341 | $as_echo "#define _BSD_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 7671efc | 2010-02-15 08:35:16 +0000 | [diff] [blame] | 3342 |  | 
 | 3343 |     ;; | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3344 |   # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of | 
 | 3345 |   # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by | 
 | 3346 |   # Marc Recht | 
| Benjamin Peterson | f608c61 | 2008-11-16 18:33:53 +0000 | [diff] [blame] | 3347 |   NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3348 |     define_xopen_source=no;; | 
| Martin v. Löwis | 1a41576 | 2010-05-28 15:44:20 +0000 | [diff] [blame] | 3349 |   # From the perspective of Solaris, _XOPEN_SOURCE is not so much a | 
 | 3350 |   # request to enable features supported by the standard as a request | 
 | 3351 |   # to disable features not supported by the standard.  The best way | 
 | 3352 |   # for Python to use Solaris is simply to leave _XOPEN_SOURCE out | 
 | 3353 |   # entirely and define __EXTENSIONS__ instead. | 
 | 3354 |   SunOS/*) | 
| Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 3355 |     define_xopen_source=no;; | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3356 |   # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, | 
 | 3357 |   # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3358 |   # Reconfirmed for 7.1.4 by Martin v. Loewis. | 
| Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 3359 |   OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3360 |     define_xopen_source=no;; | 
 | 3361 |   # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3362 |   # but used in struct sockaddr.sa_family. Reported by Tim Rice. | 
| Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 3363 |   SCO_SV/3.2) | 
| Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 3364 |     define_xopen_source=no;; | 
| Martin v. Löwis | b37509b | 2008-11-04 20:45:29 +0000 | [diff] [blame] | 3365 |   # On FreeBSD 4, the math functions C89 does not cover are never defined | 
 | 3366 |   # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. | 
 | 3367 |   FreeBSD/4.*) | 
 | 3368 |     define_xopen_source=no;; | 
 | 3369 |   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if | 
 | 3370 |   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which | 
 | 3371 |   # identifies itself as Darwin/7.* | 
 | 3372 |   # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3373 |   # disables platform specific features beyond repair. | 
 | 3374 |   # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE | 
 | 3375 |   # has no effect, don't bother defining them | 
 | 3376 |   Darwin/[6789].*) | 
| Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 3377 |     define_xopen_source=no;; | 
| Ronald Oussoren | 92fb941 | 2010-03-09 06:40:19 +0000 | [diff] [blame] | 3378 |   Darwin/1[0-9].*) | 
| Ronald Oussoren | b8f11a6 | 2010-03-08 07:02:03 +0000 | [diff] [blame] | 3379 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3380 |   # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but | 
 | 3381 |   # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined | 
 | 3382 |   # or has another value. By not (re)defining it, the defaults come in place. | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 3383 |   AIX/4) | 
 | 3384 |     define_xopen_source=no;; | 
| Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 3385 |   AIX/5) | 
 | 3386 |     if test `uname -r` -eq 1; then | 
 | 3387 |       define_xopen_source=no | 
 | 3388 |     fi | 
 | 3389 |     ;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 3390 |   # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from | 
 | 3391 |   # defining NI_NUMERICHOST. | 
 | 3392 |   QNX/6.3.2) | 
 | 3393 |     define_xopen_source=no | 
 | 3394 |     ;; | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3395 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3396 | esac | 
 | 3397 |  | 
 | 3398 | if test $define_xopen_source = yes | 
 | 3399 | then | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3400 |   # X/Open 7, incorporating POSIX.1-2008 | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3401 |  | 
| Victor Stinner | 14d098d | 2011-09-07 22:29:43 +0200 | [diff] [blame] | 3402 | $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3403 |  | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3404 |  | 
 | 3405 |   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires | 
 | 3406 |   # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else | 
 | 3407 |   # several APIs are not declared. Since this is also needed in some | 
 | 3408 |   # cases for HP-UX, we define it globally. | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3409 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3410 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3411 |  | 
 | 3412 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 3413 |  | 
| Victor Stinner | d169fdc | 2011-09-08 00:56:17 +0200 | [diff] [blame] | 3414 | $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h | 
| Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 3415 |  | 
| Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 3416 | fi | 
 | 3417 |  | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3418 | # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE | 
 | 3419 | case $ac_sys_system in | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3420 |   hp*|HP*) | 
 | 3421 |     define_stdc_a1=yes;; | 
 | 3422 |   *) | 
 | 3423 |     define_stdc_a1=no;; | 
 | 3424 | esac | 
 | 3425 |  | 
 | 3426 | if test $define_stdc_a1 = yes | 
 | 3427 | then | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3428 |  | 
 | 3429 | $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h | 
 | 3430 |  | 
| Christian Heimes | b02bcae | 2013-12-08 15:21:08 +0100 | [diff] [blame] | 3431 | fi | 
| Christian Heimes | 647cd87 | 2013-12-07 23:39:33 +0100 | [diff] [blame] | 3432 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3433 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, | 
 | 3434 | # it may influence the way we can build extensions, so distutils | 
 | 3435 | # needs to check it | 
 | 3436 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3437 |  | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3438 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3439 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 3440 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3441 | # checks for alternative programs | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3442 |  | 
 | 3443 | # compiler flags are generated in two sets, BASECFLAGS and OPT.  OPT is just | 
 | 3444 | # for debug/optimization stuff.  BASECFLAGS is for flags that are required | 
 | 3445 | # just to get things to compile and link.  Users are free to override OPT | 
 | 3446 | # when running configure or make.  The build should not break if they do. | 
 | 3447 | # BASECFLAGS should generally not be messed with, however. | 
 | 3448 |  | 
 | 3449 | # XXX shouldn't some/most/all of this code be merged with the stuff later | 
 | 3450 | # on that fiddles with OPT and BASECFLAGS? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 | 
 | 3452 | $as_echo_n "checking for --without-gcc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3453 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3454 | # Check whether --with-gcc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3455 | if test "${with_gcc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3456 |   withval=$with_gcc; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3457 | 	case $withval in | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 3458 | 	no)	CC=${CC:-cc} | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3459 | 		without_gcc=yes;; | 
 | 3460 | 	yes)	CC=gcc | 
 | 3461 | 		without_gcc=no;; | 
 | 3462 | 	*)	CC=$withval | 
 | 3463 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3464 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3465 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3467 | 	case $ac_sys_system in | 
| Antoine Pitrou | f6350d2 | 2010-09-21 15:19:14 +0000 | [diff] [blame] | 3468 | 	AIX*)   CC=${CC:-xlc_r} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3469 | 		without_gcc=;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3470 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 3471 | 	esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3472 | fi | 
 | 3473 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 | 
 | 3475 | $as_echo "$without_gcc" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3476 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 | 
 | 3478 | $as_echo_n "checking for --with-icc... " >&6; } | 
 | 3479 |  | 
 | 3480 | # Check whether --with-icc was given. | 
 | 3481 | if test "${with_icc+set}" = set; then : | 
 | 3482 |   withval=$with_icc; | 
 | 3483 | 	case $withval in | 
 | 3484 | 	no)	CC=${CC:-cc} | 
 | 3485 | 		with_icc=no;; | 
 | 3486 | 	yes)	CC=icc | 
 | 3487 | 		CXX=icpc | 
 | 3488 | 		with_icc=yes;; | 
 | 3489 | 	*)	CC=$withval | 
 | 3490 | 		with_icc=$withval;; | 
 | 3491 | 	esac | 
 | 3492 | else | 
 | 3493 |  | 
 | 3494 | 	with_icc=no | 
 | 3495 | fi | 
 | 3496 |  | 
 | 3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 | 
 | 3498 | $as_echo "$with_icc" >&6; } | 
 | 3499 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3500 | # If the user switches compilers, we can't believe the cache | 
 | 3501 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 3502 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3503 |   as_fn_error $? "cached CC is different -- throw away $cache_file | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3504 | (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 3505 | fi | 
 | 3506 |  | 
| Jeffrey Yasskin | d4fcdb1 | 2010-07-09 16:30:58 +0000 | [diff] [blame] | 3507 | # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 | 
 | 3508 | # when the compiler supports them, but we don't always want -O2, and | 
 | 3509 | # we set -g later. | 
 | 3510 | if test -z "$CFLAGS"; then | 
 | 3511 |         CFLAGS= | 
 | 3512 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3513 |  | 
 | 3514 | if test "$ac_sys_system" = "Darwin" | 
 | 3515 | then | 
 | 3516 | 	# Compiler selection on MacOSX is more complicated than | 
 | 3517 | 	# AC_PROG_CC can handle, see Mac/README.txt for more | 
 | 3518 | 	# information | 
 | 3519 | 	if test -z "${CC}" | 
 | 3520 | 	then | 
 | 3521 | 		found_gcc= | 
 | 3522 | 		found_clang= | 
 | 3523 | 		as_save_IFS=$IFS; IFS=: | 
 | 3524 | 		for as_dir in $PATH | 
 | 3525 | 		do | 
 | 3526 | 			IFS=$as_save_IFS | 
| Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3527 | 			if test -x "${as_dir}/gcc"; then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3528 | 				if test -z "${found_gcc}"; then | 
| Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3529 | 					found_gcc="${as_dir}/gcc" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3530 | 				fi | 
 | 3531 | 			fi | 
| Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3532 | 			if test -x "${as_dir}/clang"; then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3533 | 				if test -z "${found_clang}"; then | 
| Ned Deily | 14aa00b | 2017-10-09 13:53:27 -0400 | [diff] [blame] | 3534 | 					found_clang="${as_dir}/clang" | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 3535 | 				fi | 
 | 3536 | 			fi | 
 | 3537 | 		done | 
 | 3538 | 		IFS=$as_save_IFS | 
 | 3539 |  | 
 | 3540 | 		if test -n "$found_gcc" -a -n "$found_clang" | 
 | 3541 | 		then | 
 | 3542 | 			if test -n "`"$found_gcc" --version | grep llvm-gcc`" | 
 | 3543 | 			then | 
 | 3544 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 | 
 | 3545 | $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} | 
 | 3546 | 				CC="$found_clang" | 
 | 3547 | 				CXX="$found_clang++" | 
 | 3548 | 			fi | 
 | 3549 |  | 
 | 3550 |  | 
 | 3551 | 		elif test -z "$found_gcc" -a -n "$found_clang" | 
 | 3552 | 		then | 
 | 3553 | 			{ $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 | 
 | 3554 | $as_echo "$as_me: No GCC found, use CLANG" >&6;} | 
 | 3555 | 			CC="$found_clang" | 
 | 3556 | 			CXX="$found_clang++" | 
 | 3557 |  | 
 | 3558 | 		elif test -z "$found_gcc" -a -z "$found_clang" | 
 | 3559 | 		then | 
 | 3560 | 			found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` | 
 | 3561 | 			if test -n "${found_clang}" | 
 | 3562 | 			then | 
 | 3563 | 				{ $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 | 
 | 3564 | $as_echo "$as_me: Using clang from Xcode.app" >&6;} | 
 | 3565 | 				CC="${found_clang}" | 
 | 3566 | 				CXX="`/usr/bin/xcrun -find clang++`" | 
 | 3567 |  | 
 | 3568 | 			# else: use default behaviour | 
 | 3569 | 			fi | 
 | 3570 | 		fi | 
 | 3571 | 	fi | 
 | 3572 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3573 | ac_ext=c | 
 | 3574 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3578 | if test -n "$ac_tool_prefix"; then | 
 | 3579 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 3580 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3582 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3583 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3584 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3585 | else | 
 | 3586 |   if test -n "$CC"; then | 
 | 3587 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3588 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3590 | for as_dir in $PATH | 
 | 3591 | do | 
 | 3592 |   IFS=$as_save_IFS | 
 | 3593 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3594 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3595 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3596 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3597 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3598 |     break 2 | 
 | 3599 |   fi | 
 | 3600 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3601 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3602 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3603 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3604 | fi | 
 | 3605 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | CC=$ac_cv_prog_CC | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3607 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3608 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3609 | $as_echo "$CC" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3610 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3611 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3612 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 | fi | 
 | 3614 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3615 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3616 | fi | 
 | 3617 | if test -z "$ac_cv_prog_CC"; then | 
 | 3618 |   ac_ct_CC=$CC | 
 | 3619 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 3620 | set dummy gcc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3622 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3623 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3624 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3625 | else | 
 | 3626 |   if test -n "$ac_ct_CC"; then | 
 | 3627 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3628 | else | 
 | 3629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3630 | for as_dir in $PATH | 
 | 3631 | do | 
 | 3632 |   IFS=$as_save_IFS | 
 | 3633 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3634 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3635 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3636 |     ac_cv_prog_ac_ct_CC="gcc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3637 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3638 |     break 2 | 
 | 3639 |   fi | 
 | 3640 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3641 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3642 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3643 |  | 
 | 3644 | fi | 
 | 3645 | fi | 
 | 3646 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3647 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3648 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3649 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3651 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3652 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | fi | 
 | 3654 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3655 |   if test "x$ac_ct_CC" = x; then | 
 | 3656 |     CC="" | 
 | 3657 |   else | 
 | 3658 |     case $cross_compiling:$ac_tool_warned in | 
 | 3659 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3661 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3662 | ac_tool_warned=yes ;; | 
 | 3663 | esac | 
 | 3664 |     CC=$ac_ct_CC | 
 | 3665 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | else | 
 | 3667 |   CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3668 | fi | 
 | 3669 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3670 | if test -z "$CC"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3671 |           if test -n "$ac_tool_prefix"; then | 
 | 3672 |     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3675 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3676 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3677 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3678 | else | 
 | 3679 |   if test -n "$CC"; then | 
 | 3680 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3681 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3683 | for as_dir in $PATH | 
 | 3684 | do | 
 | 3685 |   IFS=$as_save_IFS | 
 | 3686 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3687 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3688 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3689 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3690 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3691 |     break 2 | 
 | 3692 |   fi | 
 | 3693 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3694 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3695 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3696 |  | 
 | 3697 | fi | 
 | 3698 | fi | 
 | 3699 | CC=$ac_cv_prog_CC | 
 | 3700 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3701 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3702 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3703 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3704 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3705 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3706 | fi | 
 | 3707 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3708 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3710 | fi | 
 | 3711 | if test -z "$CC"; then | 
 | 3712 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 3713 | set dummy cc; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3715 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3716 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3717 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3718 | else | 
 | 3719 |   if test -n "$CC"; then | 
 | 3720 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3721 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3722 |   ac_prog_rejected=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3724 | for as_dir in $PATH | 
 | 3725 | do | 
 | 3726 |   IFS=$as_save_IFS | 
 | 3727 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3728 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3729 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3730 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 3731 |        ac_prog_rejected=yes | 
 | 3732 |        continue | 
 | 3733 |      fi | 
 | 3734 |     ac_cv_prog_CC="cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3735 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 |     break 2 | 
 | 3737 |   fi | 
 | 3738 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3739 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3740 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3741 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3742 | if test $ac_prog_rejected = yes; then | 
 | 3743 |   # We found a bogon in the path, so make sure we never use it. | 
 | 3744 |   set dummy $ac_cv_prog_CC | 
 | 3745 |   shift | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3746 |   if test $# != 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3747 |     # We chose a different compiler from the bogus one. | 
 | 3748 |     # However, it has the same basename, so the bogon will be chosen | 
 | 3749 |     # first if we set CC to just the basename; use the full file name. | 
 | 3750 |     shift | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3751 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3752 |   fi | 
 | 3753 | fi | 
 | 3754 | fi | 
 | 3755 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3756 | CC=$ac_cv_prog_CC | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3757 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3758 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3759 | $as_echo "$CC" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3760 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3761 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3762 | $as_echo "no" >&6; } | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3763 | fi | 
 | 3764 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3765 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3766 | fi | 
 | 3767 | if test -z "$CC"; then | 
 | 3768 |   if test -n "$ac_tool_prefix"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3769 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 |   do | 
 | 3771 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3772 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3774 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3775 | if ${ac_cv_prog_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3776 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3777 | else | 
 | 3778 |   if test -n "$CC"; then | 
 | 3779 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3780 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3782 | for as_dir in $PATH | 
 | 3783 | do | 
 | 3784 |   IFS=$as_save_IFS | 
 | 3785 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3786 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3787 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3788 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3789 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3790 |     break 2 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3791 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3792 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3793 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3794 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3795 |  | 
 | 3796 | fi | 
 | 3797 | fi | 
 | 3798 | CC=$ac_cv_prog_CC | 
 | 3799 | if test -n "$CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3800 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 3801 | $as_echo "$CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3802 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3803 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3804 | $as_echo "no" >&6; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3805 | fi | 
 | 3806 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3807 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3808 |     test -n "$CC" && break | 
 | 3809 |   done | 
 | 3810 | fi | 
 | 3811 | if test -z "$CC"; then | 
 | 3812 |   ac_ct_CC=$CC | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3813 |   for ac_prog in cl.exe | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3814 | do | 
 | 3815 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3816 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3818 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3819 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3820 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3821 | else | 
 | 3822 |   if test -n "$ac_ct_CC"; then | 
 | 3823 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3824 | else | 
 | 3825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3826 | for as_dir in $PATH | 
 | 3827 | do | 
 | 3828 |   IFS=$as_save_IFS | 
 | 3829 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3830 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 3831 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3832 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3833 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3834 |     break 2 | 
 | 3835 |   fi | 
 | 3836 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3837 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3838 | IFS=$as_save_IFS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3839 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3840 | fi | 
 | 3841 | fi | 
 | 3842 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3843 | if test -n "$ac_ct_CC"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3844 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 3845 | $as_echo "$ac_ct_CC" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3846 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3847 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3848 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3849 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3850 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3851 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 |   test -n "$ac_ct_CC" && break | 
 | 3853 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3854 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3855 |   if test "x$ac_ct_CC" = x; then | 
 | 3856 |     CC="" | 
 | 3857 |   else | 
 | 3858 |     case $cross_compiling:$ac_tool_warned in | 
 | 3859 | yes:) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3861 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3862 | ac_tool_warned=yes ;; | 
 | 3863 | esac | 
 | 3864 |     CC=$ac_ct_CC | 
 | 3865 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3866 | fi | 
 | 3867 |  | 
 | 3868 | fi | 
 | 3869 |  | 
 | 3870 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3871 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3873 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3874 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3875 |  | 
 | 3876 | # Provide some information about the compiler. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3877 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 3878 | set X $ac_compile | 
 | 3879 | ac_compiler=$2 | 
 | 3880 | for ac_option in --version -v -V -qversion; do | 
 | 3881 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3882 | case "(($ac_try" in | 
 | 3883 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3884 |   *) ac_try_echo=$ac_try;; | 
 | 3885 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3886 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3887 | $as_echo "$ac_try_echo"; } >&5 | 
 | 3888 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3889 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3890 |   if test -s conftest.err; then | 
 | 3891 |     sed '10a\ | 
 | 3892 | ... rest of stderr output deleted ... | 
 | 3893 |          10q' conftest.err >conftest.er1 | 
 | 3894 |     cat conftest.er1 >&5 | 
 | 3895 |   fi | 
 | 3896 |   rm -f conftest.er1 conftest.err | 
 | 3897 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3898 |   test $ac_status = 0; } | 
 | 3899 | done | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3900 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3902 | /* end confdefs.h.  */ | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3903 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | int | 
 | 3905 | main () | 
 | 3906 | { | 
 | 3907 |  | 
 | 3908 |   ; | 
 | 3909 |   return 0; | 
 | 3910 | } | 
 | 3911 | _ACEOF | 
 | 3912 | ac_clean_files_save=$ac_clean_files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3913 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3914 | # Try to create an executable without -o first, disregard a.out. | 
 | 3915 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 3916 | # of exeext. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 3918 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
 | 3919 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 3920 |  | 
 | 3921 | # The possible output files: | 
 | 3922 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 3923 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3924 | ac_rmfiles= | 
 | 3925 | for ac_file in $ac_files | 
 | 3926 | do | 
 | 3927 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3928 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3929 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 3930 |   esac | 
 | 3931 | done | 
 | 3932 | rm -f $ac_rmfiles | 
 | 3933 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3934 | if { { ac_try="$ac_link_default" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3935 | case "(($ac_try" in | 
 | 3936 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3937 |   *) ac_try_echo=$ac_try;; | 
 | 3938 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3939 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 3940 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3941 |   (eval "$ac_link_default") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3942 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3943 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 3944 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3945 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 3946 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 3947 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 3948 | # so that the user can short-circuit this test for compilers unknown to | 
 | 3949 | # Autoconf. | 
 | 3950 | for ac_file in $ac_files '' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3951 | do | 
 | 3952 |   test -f "$ac_file" || continue | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3953 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3954 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3955 | 	;; | 
 | 3956 |     [ab].out ) | 
 | 3957 | 	# We found the default executable, but exeext='' is most | 
 | 3958 | 	# certainly right. | 
 | 3959 | 	break;; | 
 | 3960 |     *.* ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3961 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3962 | 	then :; else | 
 | 3963 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 3964 | 	fi | 
 | 3965 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 3966 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 3967 | 	# argument, so we may need to know it at that point already. | 
 | 3968 | 	# Even if this section looks crufty: it has the advantage of | 
 | 3969 | 	# actually working. | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3970 | 	break;; | 
 | 3971 |     * ) | 
 | 3972 | 	break;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3973 |   esac | 
 | 3974 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3975 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 3976 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3977 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3978 |   ac_file='' | 
 | 3979 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3980 | if test -z "$ac_file"; then : | 
 | 3981 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3982 | $as_echo "no" >&6; } | 
 | 3983 | $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3984 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3985 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3986 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3987 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 3988 | as_fn_error 77 "C compiler cannot create executables | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 3989 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3990 | else | 
 | 3991 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 3992 | $as_echo "yes" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3993 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 3995 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 3997 | $as_echo "$ac_file" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3998 | ac_exeext=$ac_cv_exeext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3999 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4000 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4001 | ac_clean_files=$ac_clean_files_save | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
 | 4003 | $as_echo_n "checking for suffix of executables... " >&6; } | 
 | 4004 | if { { ac_try="$ac_link" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4005 | case "(($ac_try" in | 
 | 4006 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4007 |   *) ac_try_echo=$ac_try;; | 
 | 4008 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4009 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4010 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4011 |   (eval "$ac_link") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4012 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4013 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4014 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4015 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 4016 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 4017 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 4018 | # `rm'. | 
 | 4019 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 4020 |   test -f "$ac_file" || continue | 
 | 4021 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4022 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4023 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4024 | 	  break;; | 
 | 4025 |     * ) break;; | 
 | 4026 |   esac | 
 | 4027 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4028 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4029 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4030 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4031 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4032 | See \`config.log' for more details" "$LINENO" 5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4033 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4034 | rm -f conftest conftest$ac_cv_exeext | 
 | 4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
 | 4036 | $as_echo "$ac_cv_exeext" >&6; } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4037 |  | 
 | 4038 | rm -f conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4039 | EXEEXT=$ac_cv_exeext | 
 | 4040 | ac_exeext=$EXEEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4042 | /* end confdefs.h.  */ | 
 | 4043 | #include <stdio.h> | 
 | 4044 | int | 
 | 4045 | main () | 
 | 4046 | { | 
 | 4047 | FILE *f = fopen ("conftest.out", "w"); | 
 | 4048 |  return ferror (f) || fclose (f) != 0; | 
 | 4049 |  | 
 | 4050 |   ; | 
 | 4051 |   return 0; | 
 | 4052 | } | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4053 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4054 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 4055 | # Check that the compiler produces executables we can run.  If not, either | 
 | 4056 | # the compiler is broken, or we cross compile. | 
 | 4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 4058 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 4059 | if test "$cross_compiling" != yes; then | 
 | 4060 |   { { ac_try="$ac_link" | 
 | 4061 | case "(($ac_try" in | 
 | 4062 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4063 |   *) ac_try_echo=$ac_try;; | 
 | 4064 | esac | 
 | 4065 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4066 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4067 |   (eval "$ac_link") 2>&5 | 
 | 4068 |   ac_status=$? | 
 | 4069 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4070 |   test $ac_status = 0; } | 
 | 4071 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 4072 |   { { case "(($ac_try" in | 
 | 4073 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4074 |   *) ac_try_echo=$ac_try;; | 
 | 4075 | esac | 
 | 4076 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4077 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4078 |   (eval "$ac_try") 2>&5 | 
 | 4079 |   ac_status=$? | 
 | 4080 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4081 |   test $ac_status = 0; }; }; then | 
 | 4082 |     cross_compiling=no | 
 | 4083 |   else | 
 | 4084 |     if test "$cross_compiling" = maybe; then | 
 | 4085 | 	cross_compiling=yes | 
 | 4086 |     else | 
 | 4087 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4088 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4089 | as_fn_error $? "cannot run C compiled programs. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4090 | If you meant to cross compile, use \`--host'. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4091 | See \`config.log' for more details" "$LINENO" 5; } | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4092 |     fi | 
 | 4093 |   fi | 
 | 4094 | fi | 
 | 4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 4096 | $as_echo "$cross_compiling" >&6; } | 
 | 4097 |  | 
 | 4098 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 4099 | ac_clean_files=$ac_clean_files_save | 
 | 4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 
 | 4101 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4102 | if ${ac_cv_objext+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4103 |   $as_echo_n "(cached) " >&6 | 
 | 4104 | else | 
 | 4105 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4106 | /* end confdefs.h.  */ | 
 | 4107 |  | 
 | 4108 | int | 
 | 4109 | main () | 
 | 4110 | { | 
 | 4111 |  | 
 | 4112 |   ; | 
 | 4113 |   return 0; | 
 | 4114 | } | 
 | 4115 | _ACEOF | 
 | 4116 | rm -f conftest.o conftest.obj | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4117 | if { { ac_try="$ac_compile" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4118 | case "(($ac_try" in | 
 | 4119 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4120 |   *) ac_try_echo=$ac_try;; | 
 | 4121 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4122 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4123 | $as_echo "$ac_try_echo"; } >&5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4124 |   (eval "$ac_compile") 2>&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4125 |   ac_status=$? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4126 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4127 |   test $ac_status = 0; }; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4128 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 4129 |   test -f "$ac_file" || continue; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4130 |   case $ac_file in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4131 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4132 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 4133 |        break;; | 
 | 4134 |   esac | 
 | 4135 | done | 
 | 4136 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4137 |   $as_echo "$as_me: failed program was:" >&5 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4138 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4139 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4140 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4141 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 4142 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4143 | See \`config.log' for more details" "$LINENO" 5; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4144 | fi | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4145 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4146 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
 | 4148 | $as_echo "$ac_cv_objext" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4149 | OBJEXT=$ac_cv_objext | 
 | 4150 | ac_objext=$OBJEXT | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 4152 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4153 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4154 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4155 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4156 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4157 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4158 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4159 | int | 
 | 4160 | main () | 
 | 4161 | { | 
 | 4162 | #ifndef __GNUC__ | 
 | 4163 |        choke me | 
 | 4164 | #endif | 
 | 4165 |  | 
 | 4166 |   ; | 
 | 4167 |   return 0; | 
 | 4168 | } | 
 | 4169 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4170 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 |   ac_compiler_gnu=yes | 
 | 4172 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4173 |   ac_compiler_gnu=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4176 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 4177 |  | 
 | 4178 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 4180 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 4181 | if test $ac_compiler_gnu = yes; then | 
 | 4182 |   GCC=yes | 
 | 4183 | else | 
 | 4184 |   GCC= | 
 | 4185 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4186 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 4187 | ac_save_CFLAGS=$CFLAGS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 4189 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4190 | if ${ac_cv_prog_cc_g+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4191 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4192 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4193 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 4194 |    ac_c_werror_flag=yes | 
 | 4195 |    ac_cv_prog_cc_g=no | 
 | 4196 |    CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4197 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4198 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4199 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4200 | int | 
 | 4201 | main () | 
 | 4202 | { | 
 | 4203 |  | 
 | 4204 |   ; | 
 | 4205 |   return 0; | 
 | 4206 | } | 
 | 4207 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4208 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4209 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4210 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4211 |   CFLAGS="" | 
 | 4212 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4213 | /* end confdefs.h.  */ | 
 | 4214 |  | 
 | 4215 | int | 
 | 4216 | main () | 
 | 4217 | { | 
 | 4218 |  | 
 | 4219 |   ; | 
 | 4220 |   return 0; | 
 | 4221 | } | 
 | 4222 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4223 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4224 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4225 | else | 
 | 4226 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4227 | 	 CFLAGS="-g" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4228 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4229 | /* end confdefs.h.  */ | 
 | 4230 |  | 
 | 4231 | int | 
 | 4232 | main () | 
 | 4233 | { | 
 | 4234 |  | 
 | 4235 |   ; | 
 | 4236 |   return 0; | 
 | 4237 | } | 
 | 4238 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4239 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4240 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4241 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4243 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4245 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4247 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 4248 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 4250 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4251 | if test "$ac_test_CFLAGS" = set; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4252 |   CFLAGS=$ac_save_CFLAGS | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4253 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 4254 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4255 |     CFLAGS="-g -O2" | 
 | 4256 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4257 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4258 |   fi | 
 | 4259 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4260 |   if test "$GCC" = yes; then | 
 | 4261 |     CFLAGS="-O2" | 
 | 4262 |   else | 
 | 4263 |     CFLAGS= | 
 | 4264 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4265 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 4267 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4268 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4269 |   $as_echo_n "(cached) " >&6 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4270 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4271 |   ac_cv_prog_cc_c89=no | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4272 | ac_save_CC=$CC | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4274 | /* end confdefs.h.  */ | 
 | 4275 | #include <stdarg.h> | 
 | 4276 | #include <stdio.h> | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4277 | struct stat; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4278 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 4279 | struct buf { int x; }; | 
 | 4280 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 4281 | static char *e (p, i) | 
 | 4282 |      char **p; | 
 | 4283 |      int i; | 
 | 4284 | { | 
 | 4285 |   return p[i]; | 
 | 4286 | } | 
 | 4287 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 4288 | { | 
 | 4289 |   char *s; | 
 | 4290 |   va_list v; | 
 | 4291 |   va_start (v,p); | 
 | 4292 |   s = g (p, va_arg (v,int)); | 
 | 4293 |   va_end (v); | 
 | 4294 |   return s; | 
 | 4295 | } | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4296 |  | 
 | 4297 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 4298 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 4299 |    These don't provoke an error unfortunately, instead are silently treated | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4300 |    as 'x'.  The following induces an error, until -std is added to get | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4301 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 4302 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4303 |    that's true only with -std.  */ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4304 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 4305 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4306 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 4307 |    inside strings and character constants.  */ | 
 | 4308 | #define FOO(x) 'x' | 
 | 4309 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 4310 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4311 | int test (int i, double x); | 
 | 4312 | struct s1 {int (*f) (int a);}; | 
 | 4313 | struct s2 {int (*f) (double a);}; | 
 | 4314 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 4315 | int argc; | 
 | 4316 | char **argv; | 
 | 4317 | int | 
 | 4318 | main () | 
 | 4319 | { | 
 | 4320 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 4321 |   ; | 
 | 4322 |   return 0; | 
 | 4323 | } | 
 | 4324 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4325 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 4326 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4327 | do | 
 | 4328 |   CC="$ac_save_CC $ac_arg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4329 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4330 |   ac_cv_prog_cc_c89=$ac_arg | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4331 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4332 | rm -f core conftest.err conftest.$ac_objext | 
 | 4333 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4334 | done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4335 | rm -f conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4336 | CC=$ac_save_CC | 
 | 4337 |  | 
 | 4338 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4339 | # AC_CACHE_VAL | 
 | 4340 | case "x$ac_cv_prog_cc_c89" in | 
 | 4341 |   x) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4342 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 4343 | $as_echo "none needed" >&6; } ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4344 |   xno) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4345 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 4346 | $as_echo "unsupported" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4347 |   *) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4348 |     CC="$CC $ac_cv_prog_cc_c89" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4349 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 4350 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4351 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4352 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4353 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4354 | fi | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4355 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4356 | ac_ext=c | 
 | 4357 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4361 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 4362 | ac_ext=c | 
 | 4363 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 4368 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
 | 4369 | # On Suns, sometimes $CPP names a directory. | 
 | 4370 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 4371 |   CPP= | 
 | 4372 | fi | 
 | 4373 | if test -z "$CPP"; then | 
 | 4374 |   if ${ac_cv_prog_CPP+:} false; then : | 
 | 4375 |   $as_echo_n "(cached) " >&6 | 
 | 4376 | else | 
 | 4377 |       # Double quotes because CPP needs to be expanded | 
 | 4378 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 4379 |     do | 
 | 4380 |       ac_preproc_ok=false | 
 | 4381 | for ac_c_preproc_warn_flag in '' yes | 
 | 4382 | do | 
 | 4383 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4384 |   # with a fresh cross-compiler works. | 
 | 4385 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4386 |   # <limits.h> exists even on freestanding compilers. | 
 | 4387 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4388 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4389 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4390 | /* end confdefs.h.  */ | 
 | 4391 | #ifdef __STDC__ | 
 | 4392 | # include <limits.h> | 
 | 4393 | #else | 
 | 4394 | # include <assert.h> | 
 | 4395 | #endif | 
 | 4396 | 		     Syntax error | 
 | 4397 | _ACEOF | 
 | 4398 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4399 |  | 
 | 4400 | else | 
 | 4401 |   # Broken: fails on valid input. | 
 | 4402 | continue | 
 | 4403 | fi | 
 | 4404 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4405 |  | 
 | 4406 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 4407 |   # can be detected and how. | 
 | 4408 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4409 | /* end confdefs.h.  */ | 
 | 4410 | #include <ac_nonexistent.h> | 
 | 4411 | _ACEOF | 
 | 4412 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4413 |   # Broken: success on invalid input. | 
 | 4414 | continue | 
 | 4415 | else | 
 | 4416 |   # Passes both tests. | 
 | 4417 | ac_preproc_ok=: | 
 | 4418 | break | 
 | 4419 | fi | 
 | 4420 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4421 |  | 
 | 4422 | done | 
 | 4423 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4424 | rm -f conftest.i conftest.err conftest.$ac_ext | 
 | 4425 | if $ac_preproc_ok; then : | 
 | 4426 |   break | 
 | 4427 | fi | 
 | 4428 |  | 
 | 4429 |     done | 
 | 4430 |     ac_cv_prog_CPP=$CPP | 
 | 4431 |  | 
 | 4432 | fi | 
 | 4433 |   CPP=$ac_cv_prog_CPP | 
 | 4434 | else | 
 | 4435 |   ac_cv_prog_CPP=$CPP | 
 | 4436 | fi | 
 | 4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 4438 | $as_echo "$CPP" >&6; } | 
 | 4439 | ac_preproc_ok=false | 
 | 4440 | for ac_c_preproc_warn_flag in '' yes | 
 | 4441 | do | 
 | 4442 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4443 |   # with a fresh cross-compiler works. | 
 | 4444 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4445 |   # <limits.h> exists even on freestanding compilers. | 
 | 4446 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4447 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4448 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4449 | /* end confdefs.h.  */ | 
 | 4450 | #ifdef __STDC__ | 
 | 4451 | # include <limits.h> | 
 | 4452 | #else | 
 | 4453 | # include <assert.h> | 
 | 4454 | #endif | 
 | 4455 | 		     Syntax error | 
 | 4456 | _ACEOF | 
 | 4457 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4458 |  | 
 | 4459 | else | 
 | 4460 |   # Broken: fails on valid input. | 
 | 4461 | continue | 
 | 4462 | fi | 
 | 4463 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4464 |  | 
 | 4465 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 4466 |   # can be detected and how. | 
 | 4467 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4468 | /* end confdefs.h.  */ | 
 | 4469 | #include <ac_nonexistent.h> | 
 | 4470 | _ACEOF | 
 | 4471 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 4472 |   # Broken: success on invalid input. | 
 | 4473 | continue | 
 | 4474 | else | 
 | 4475 |   # Passes both tests. | 
 | 4476 | ac_preproc_ok=: | 
 | 4477 | break | 
 | 4478 | fi | 
 | 4479 | rm -f conftest.err conftest.i conftest.$ac_ext | 
 | 4480 |  | 
 | 4481 | done | 
 | 4482 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4483 | rm -f conftest.i conftest.err conftest.$ac_ext | 
 | 4484 | if $ac_preproc_ok; then : | 
 | 4485 |  | 
 | 4486 | else | 
 | 4487 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4488 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 4489 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
 | 4490 | See \`config.log' for more details" "$LINENO" 5; } | 
 | 4491 | fi | 
 | 4492 |  | 
 | 4493 | ac_ext=c | 
 | 4494 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4498 |  | 
 | 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 4500 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
 | 4501 | if ${ac_cv_path_GREP+:} false; then : | 
 | 4502 |   $as_echo_n "(cached) " >&6 | 
 | 4503 | else | 
 | 4504 |   if test -z "$GREP"; then | 
 | 4505 |   ac_path_GREP_found=false | 
 | 4506 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4507 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4508 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 4509 | do | 
 | 4510 |   IFS=$as_save_IFS | 
 | 4511 |   test -z "$as_dir" && as_dir=. | 
 | 4512 |     for ac_prog in grep ggrep; do | 
 | 4513 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4514 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4515 |       as_fn_executable_p "$ac_path_GREP" || continue | 
 | 4516 | # Check for GNU ac_path_GREP and select it if it is found. | 
 | 4517 |   # Check for GNU $ac_path_GREP | 
 | 4518 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 4519 | *GNU*) | 
 | 4520 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 4521 | *) | 
 | 4522 |   ac_count=0 | 
 | 4523 |   $as_echo_n 0123456789 >"conftest.in" | 
 | 4524 |   while : | 
 | 4525 |   do | 
 | 4526 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4527 |     mv "conftest.tmp" "conftest.in" | 
 | 4528 |     cp "conftest.in" "conftest.nl" | 
 | 4529 |     $as_echo 'GREP' >> "conftest.nl" | 
 | 4530 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4531 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 4532 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
 | 4533 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 4534 |       # Best one so far, save it but keep looking for a better one | 
 | 4535 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 4536 |       ac_path_GREP_max=$ac_count | 
 | 4537 |     fi | 
 | 4538 |     # 10*(2^10) chars as input seems more than enough | 
 | 4539 |     test $ac_count -gt 10 && break | 
 | 4540 |   done | 
 | 4541 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4542 | esac | 
 | 4543 |  | 
 | 4544 |       $ac_path_GREP_found && break 3 | 
 | 4545 |     done | 
 | 4546 |   done | 
 | 4547 |   done | 
 | 4548 | IFS=$as_save_IFS | 
 | 4549 |   if test -z "$ac_cv_path_GREP"; then | 
 | 4550 |     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
 | 4551 |   fi | 
 | 4552 | else | 
 | 4553 |   ac_cv_path_GREP=$GREP | 
 | 4554 | fi | 
 | 4555 |  | 
 | 4556 | fi | 
 | 4557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 4558 | $as_echo "$ac_cv_path_GREP" >&6; } | 
 | 4559 |  GREP="$ac_cv_path_GREP" | 
 | 4560 |  | 
 | 4561 |  | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | 
 | 4563 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | 
 | 4564 | if ${ac_cv_path_SED+:} false; then : | 
 | 4565 |   $as_echo_n "(cached) " >&6 | 
 | 4566 | else | 
 | 4567 |             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | 
 | 4568 |      for ac_i in 1 2 3 4 5 6 7; do | 
 | 4569 |        ac_script="$ac_script$as_nl$ac_script" | 
 | 4570 |      done | 
 | 4571 |      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | 
 | 4572 |      { ac_script=; unset ac_script;} | 
 | 4573 |      if test -z "$SED"; then | 
 | 4574 |   ac_path_SED_found=false | 
 | 4575 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 4576 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4577 | for as_dir in $PATH | 
 | 4578 | do | 
 | 4579 |   IFS=$as_save_IFS | 
 | 4580 |   test -z "$as_dir" && as_dir=. | 
 | 4581 |     for ac_prog in sed gsed; do | 
 | 4582 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4583 |       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | 
 | 4584 |       as_fn_executable_p "$ac_path_SED" || continue | 
 | 4585 | # Check for GNU ac_path_SED and select it if it is found. | 
 | 4586 |   # Check for GNU $ac_path_SED | 
 | 4587 | case `"$ac_path_SED" --version 2>&1` in | 
 | 4588 | *GNU*) | 
 | 4589 |   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | 
 | 4590 | *) | 
 | 4591 |   ac_count=0 | 
 | 4592 |   $as_echo_n 0123456789 >"conftest.in" | 
 | 4593 |   while : | 
 | 4594 |   do | 
 | 4595 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 4596 |     mv "conftest.tmp" "conftest.in" | 
 | 4597 |     cp "conftest.in" "conftest.nl" | 
 | 4598 |     $as_echo '' >> "conftest.nl" | 
 | 4599 |     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 4600 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 4601 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
 | 4602 |     if test $ac_count -gt ${ac_path_SED_max-0}; then | 
 | 4603 |       # Best one so far, save it but keep looking for a better one | 
 | 4604 |       ac_cv_path_SED="$ac_path_SED" | 
 | 4605 |       ac_path_SED_max=$ac_count | 
 | 4606 |     fi | 
 | 4607 |     # 10*(2^10) chars as input seems more than enough | 
 | 4608 |     test $ac_count -gt 10 && break | 
 | 4609 |   done | 
 | 4610 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 4611 | esac | 
 | 4612 |  | 
 | 4613 |       $ac_path_SED_found && break 3 | 
 | 4614 |     done | 
 | 4615 |   done | 
 | 4616 |   done | 
 | 4617 | IFS=$as_save_IFS | 
 | 4618 |   if test -z "$ac_cv_path_SED"; then | 
 | 4619 |     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | 
 | 4620 |   fi | 
 | 4621 | else | 
 | 4622 |   ac_cv_path_SED=$SED | 
 | 4623 | fi | 
 | 4624 |  | 
 | 4625 | fi | 
 | 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | 
 | 4627 | $as_echo "$ac_cv_path_SED" >&6; } | 
 | 4628 |  SED="$ac_cv_path_SED" | 
 | 4629 |   rm -f conftest.sed | 
 | 4630 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 4631 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4632 |  | 
 | 4633 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 | 
 | 4635 | $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4636 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4637 | # Check whether --with-cxx_main was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4638 | if test "${with_cxx_main+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4639 |   withval=$with_cxx_main; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4640 |  | 
 | 4641 | 	case $withval in | 
 | 4642 | 	no)	with_cxx_main=no | 
 | 4643 | 		MAINCC='$(CC)';; | 
 | 4644 | 	yes)	with_cxx_main=yes | 
 | 4645 | 		MAINCC='$(CXX)';; | 
 | 4646 | 	*)	with_cxx_main=yes | 
 | 4647 | 		MAINCC=$withval | 
 | 4648 | 		if test -z "$CXX" | 
 | 4649 | 		then | 
 | 4650 | 			CXX=$withval | 
 | 4651 | 		fi;; | 
 | 4652 | 	esac | 
 | 4653 | else | 
 | 4654 |  | 
 | 4655 | 	with_cxx_main=no | 
 | 4656 | 	MAINCC='$(CC)' | 
 | 4657 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4658 | fi | 
 | 4659 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 | 
 | 4661 | $as_echo "$with_cxx_main" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4662 |  | 
 | 4663 | preset_cxx="$CXX" | 
 | 4664 | if test -z "$CXX" | 
 | 4665 | then | 
 | 4666 |         case "$CC" in | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4667 |         gcc)    if test -n "$ac_tool_prefix"; then | 
 | 4668 |   # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. | 
 | 4669 | set dummy ${ac_tool_prefix}g++; ac_word=$2 | 
 | 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4671 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4672 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4673 |   $as_echo_n "(cached) " >&6 | 
 | 4674 | else | 
 | 4675 |   case $CXX in | 
 | 4676 |   [\\/]* | ?:[\\/]*) | 
 | 4677 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4678 |   ;; | 
 | 4679 |   *) | 
 | 4680 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4681 | for as_dir in notfound | 
 | 4682 | do | 
 | 4683 |   IFS=$as_save_IFS | 
 | 4684 |   test -z "$as_dir" && as_dir=. | 
 | 4685 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4686 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4687 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4688 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4689 |     break 2 | 
 | 4690 |   fi | 
 | 4691 | done | 
 | 4692 |   done | 
 | 4693 | IFS=$as_save_IFS | 
 | 4694 |  | 
 | 4695 |   ;; | 
 | 4696 | esac | 
 | 4697 | fi | 
 | 4698 | CXX=$ac_cv_path_CXX | 
 | 4699 | if test -n "$CXX"; then | 
 | 4700 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4701 | $as_echo "$CXX" >&6; } | 
 | 4702 | else | 
 | 4703 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4704 | $as_echo "no" >&6; } | 
 | 4705 | fi | 
 | 4706 |  | 
 | 4707 |  | 
 | 4708 | fi | 
 | 4709 | if test -z "$ac_cv_path_CXX"; then | 
 | 4710 |   ac_pt_CXX=$CXX | 
 | 4711 |   # Extract the first word of "g++", so it can be a program name with args. | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4712 | set dummy g++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4714 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4715 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4716 |   $as_echo_n "(cached) " >&6 | 
 | 4717 | else | 
 | 4718 |   case $ac_pt_CXX in | 
 | 4719 |   [\\/]* | ?:[\\/]*) | 
 | 4720 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4721 |   ;; | 
 | 4722 |   *) | 
 | 4723 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4724 | for as_dir in notfound | 
 | 4725 | do | 
 | 4726 |   IFS=$as_save_IFS | 
 | 4727 |   test -z "$as_dir" && as_dir=. | 
 | 4728 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4729 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4730 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4731 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4732 |     break 2 | 
 | 4733 |   fi | 
 | 4734 | done | 
 | 4735 |   done | 
 | 4736 | IFS=$as_save_IFS | 
 | 4737 |  | 
 | 4738 |   ;; | 
 | 4739 | esac | 
 | 4740 | fi | 
 | 4741 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4742 | if test -n "$ac_pt_CXX"; then | 
 | 4743 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4744 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4745 | else | 
 | 4746 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4747 | $as_echo "no" >&6; } | 
 | 4748 | fi | 
 | 4749 |  | 
 | 4750 |   if test "x$ac_pt_CXX" = x; then | 
 | 4751 |     CXX="g++" | 
 | 4752 |   else | 
 | 4753 |     case $cross_compiling:$ac_tool_warned in | 
 | 4754 | yes:) | 
 | 4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4756 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4757 | ac_tool_warned=yes ;; | 
 | 4758 | esac | 
 | 4759 |     CXX=$ac_pt_CXX | 
 | 4760 |   fi | 
 | 4761 | else | 
 | 4762 |   CXX="$ac_cv_path_CXX" | 
 | 4763 | fi | 
 | 4764 |  ;; | 
 | 4765 |         cc)     if test -n "$ac_tool_prefix"; then | 
 | 4766 |   # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. | 
 | 4767 | set dummy ${ac_tool_prefix}c++; ac_word=$2 | 
 | 4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4769 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 4770 | if ${ac_cv_path_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4771 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4772 | else | 
 | 4773 |   case $CXX in | 
 | 4774 |   [\\/]* | ?:[\\/]*) | 
 | 4775 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4776 |   ;; | 
 | 4777 |   *) | 
 | 4778 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4779 | for as_dir in notfound | 
 | 4780 | do | 
 | 4781 |   IFS=$as_save_IFS | 
 | 4782 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4783 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 4784 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4785 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4786 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4787 |     break 2 | 
 | 4788 |   fi | 
 | 4789 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4790 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4791 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4792 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4793 |   ;; | 
 | 4794 | esac | 
 | 4795 | fi | 
 | 4796 | CXX=$ac_cv_path_CXX | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4797 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4798 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4799 | $as_echo "$CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4800 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4801 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4802 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4803 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4804 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4805 |  | 
 | 4806 | fi | 
 | 4807 | if test -z "$ac_cv_path_CXX"; then | 
 | 4808 |   ac_pt_CXX=$CXX | 
 | 4809 |   # Extract the first word of "c++", so it can be a program name with args. | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4810 | set dummy c++; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4812 | $as_echo_n "checking for $ac_word... " >&6; } | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4813 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4814 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4815 | else | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4816 |   case $ac_pt_CXX in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4817 |   [\\/]* | ?:[\\/]*) | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4818 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4819 |   ;; | 
 | 4820 |   *) | 
 | 4821 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4822 | for as_dir in notfound | 
 | 4823 | do | 
 | 4824 |   IFS=$as_save_IFS | 
 | 4825 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4826 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4827 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4828 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4829 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4830 |     break 2 | 
 | 4831 |   fi | 
 | 4832 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4833 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4834 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4835 |  | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4836 |   ;; | 
 | 4837 | esac | 
 | 4838 | fi | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4839 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4840 | if test -n "$ac_pt_CXX"; then | 
 | 4841 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4842 | $as_echo "$ac_pt_CXX" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4843 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 4844 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4845 | $as_echo "no" >&6; } | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 4846 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4847 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4848 |   if test "x$ac_pt_CXX" = x; then | 
 | 4849 |     CXX="c++" | 
 | 4850 |   else | 
 | 4851 |     case $cross_compiling:$ac_tool_warned in | 
 | 4852 | yes:) | 
 | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4854 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4855 | ac_tool_warned=yes ;; | 
 | 4856 | esac | 
 | 4857 |     CXX=$ac_pt_CXX | 
 | 4858 |   fi | 
 | 4859 | else | 
 | 4860 |   CXX="$ac_cv_path_CXX" | 
 | 4861 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4862 |  ;; | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4863 |         clang|*/clang)     if test -n "$ac_tool_prefix"; then | 
 | 4864 |   # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. | 
 | 4865 | set dummy ${ac_tool_prefix}clang++; ac_word=$2 | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4867 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4868 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4869 |   $as_echo_n "(cached) " >&6 | 
 | 4870 | else | 
 | 4871 |   case $CXX in | 
 | 4872 |   [\\/]* | ?:[\\/]*) | 
 | 4873 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4874 |   ;; | 
 | 4875 |   *) | 
 | 4876 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4877 | for as_dir in notfound | 
 | 4878 | do | 
 | 4879 |   IFS=$as_save_IFS | 
 | 4880 |   test -z "$as_dir" && as_dir=. | 
 | 4881 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4882 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4883 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4884 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4885 |     break 2 | 
 | 4886 |   fi | 
 | 4887 | done | 
 | 4888 |   done | 
 | 4889 | IFS=$as_save_IFS | 
 | 4890 |  | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4891 |   ;; | 
 | 4892 | esac | 
 | 4893 | fi | 
 | 4894 | CXX=$ac_cv_path_CXX | 
 | 4895 | if test -n "$CXX"; then | 
 | 4896 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4897 | $as_echo "$CXX" >&6; } | 
 | 4898 | else | 
 | 4899 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4900 | $as_echo "no" >&6; } | 
 | 4901 | fi | 
 | 4902 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4903 |  | 
 | 4904 | fi | 
 | 4905 | if test -z "$ac_cv_path_CXX"; then | 
 | 4906 |   ac_pt_CXX=$CXX | 
 | 4907 |   # Extract the first word of "clang++", so it can be a program name with args. | 
 | 4908 | set dummy clang++; ac_word=$2 | 
 | 4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4910 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4911 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 4912 |   $as_echo_n "(cached) " >&6 | 
 | 4913 | else | 
 | 4914 |   case $ac_pt_CXX in | 
 | 4915 |   [\\/]* | ?:[\\/]*) | 
 | 4916 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 4917 |   ;; | 
 | 4918 |   *) | 
 | 4919 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4920 | for as_dir in notfound | 
 | 4921 | do | 
 | 4922 |   IFS=$as_save_IFS | 
 | 4923 |   test -z "$as_dir" && as_dir=. | 
 | 4924 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 4925 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 4926 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4927 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4928 |     break 2 | 
 | 4929 |   fi | 
 | 4930 | done | 
 | 4931 |   done | 
 | 4932 | IFS=$as_save_IFS | 
 | 4933 |  | 
 | 4934 |   ;; | 
 | 4935 | esac | 
 | 4936 | fi | 
 | 4937 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 4938 | if test -n "$ac_pt_CXX"; then | 
 | 4939 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 4940 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 4941 | else | 
 | 4942 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4943 | $as_echo "no" >&6; } | 
 | 4944 | fi | 
 | 4945 |  | 
 | 4946 |   if test "x$ac_pt_CXX" = x; then | 
 | 4947 |     CXX="clang++" | 
 | 4948 |   else | 
 | 4949 |     case $cross_compiling:$ac_tool_warned in | 
 | 4950 | yes:) | 
 | 4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 4952 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4953 | ac_tool_warned=yes ;; | 
 | 4954 | esac | 
 | 4955 |     CXX=$ac_pt_CXX | 
 | 4956 |   fi | 
 | 4957 | else | 
 | 4958 |   CXX="$ac_cv_path_CXX" | 
 | 4959 | fi | 
| Ned Deily | cbfb9a5 | 2012-06-23 16:02:19 -0700 | [diff] [blame] | 4960 |  ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 4961 |         icc|*/icc)         if test -n "$ac_tool_prefix"; then | 
 | 4962 |   # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. | 
 | 4963 | set dummy ${ac_tool_prefix}icpc; ac_word=$2 | 
 | 4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 4965 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 4966 | if ${ac_cv_path_CXX+:} false; then : | 
 | 4967 |   $as_echo_n "(cached) " >&6 | 
 | 4968 | else | 
 | 4969 |   case $CXX in | 
 | 4970 |   [\\/]* | ?:[\\/]*) | 
 | 4971 |   ac_cv_path_CXX="$CXX" # Let the user override the test with a path. | 
 | 4972 |   ;; | 
 | 4973 |   *) | 
 | 4974 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4975 | for as_dir in notfound | 
 | 4976 | do | 
 | 4977 |   IFS=$as_save_IFS | 
 | 4978 |   test -z "$as_dir" && as_dir=. | 
 | 4979 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4980 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4981 |     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4982 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4983 |     break 2 | 
 | 4984 |   fi | 
 | 4985 | done | 
 | 4986 |   done | 
 | 4987 | IFS=$as_save_IFS | 
 | 4988 |  | 
 | 4989 |   ;; | 
 | 4990 | esac | 
 | 4991 | fi | 
 | 4992 | CXX=$ac_cv_path_CXX | 
 | 4993 | if test -n "$CXX"; then | 
 | 4994 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 4995 | $as_echo "$CXX" >&6; } | 
 | 4996 | else | 
 | 4997 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4998 | $as_echo "no" >&6; } | 
 | 4999 | fi | 
 | 5000 |  | 
 | 5001 |  | 
 | 5002 | fi | 
 | 5003 | if test -z "$ac_cv_path_CXX"; then | 
 | 5004 |   ac_pt_CXX=$CXX | 
 | 5005 |   # Extract the first word of "icpc", so it can be a program name with args. | 
 | 5006 | set dummy icpc; ac_word=$2 | 
 | 5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5008 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5009 | if ${ac_cv_path_ac_pt_CXX+:} false; then : | 
 | 5010 |   $as_echo_n "(cached) " >&6 | 
 | 5011 | else | 
 | 5012 |   case $ac_pt_CXX in | 
 | 5013 |   [\\/]* | ?:[\\/]*) | 
 | 5014 |   ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. | 
 | 5015 |   ;; | 
 | 5016 |   *) | 
 | 5017 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5018 | for as_dir in notfound | 
 | 5019 | do | 
 | 5020 |   IFS=$as_save_IFS | 
 | 5021 |   test -z "$as_dir" && as_dir=. | 
 | 5022 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5023 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5024 |     ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 5025 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5026 |     break 2 | 
 | 5027 |   fi | 
 | 5028 | done | 
 | 5029 |   done | 
 | 5030 | IFS=$as_save_IFS | 
 | 5031 |  | 
 | 5032 |   ;; | 
 | 5033 | esac | 
 | 5034 | fi | 
 | 5035 | ac_pt_CXX=$ac_cv_path_ac_pt_CXX | 
 | 5036 | if test -n "$ac_pt_CXX"; then | 
 | 5037 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 | 
 | 5038 | $as_echo "$ac_pt_CXX" >&6; } | 
 | 5039 | else | 
 | 5040 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5041 | $as_echo "no" >&6; } | 
 | 5042 | fi | 
 | 5043 |  | 
 | 5044 |   if test "x$ac_pt_CXX" = x; then | 
 | 5045 |     CXX="icpc" | 
 | 5046 |   else | 
 | 5047 |     case $cross_compiling:$ac_tool_warned in | 
 | 5048 | yes:) | 
 | 5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5050 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5051 | ac_tool_warned=yes ;; | 
 | 5052 | esac | 
 | 5053 |     CXX=$ac_pt_CXX | 
 | 5054 |   fi | 
 | 5055 | else | 
 | 5056 |   CXX="$ac_cv_path_CXX" | 
 | 5057 | fi | 
 | 5058 |  ;; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5059 |         esac | 
 | 5060 | 	if test "$CXX" = "notfound" | 
 | 5061 | 	then | 
 | 5062 | 		CXX="" | 
 | 5063 | 	fi | 
 | 5064 | fi | 
 | 5065 | if test -z "$CXX" | 
 | 5066 | then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5067 | 	if test -n "$ac_tool_prefix"; then | 
 | 5068 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 5069 |   do | 
 | 5070 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5071 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5073 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5074 | if ${ac_cv_prog_CXX+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5075 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5076 | else | 
 | 5077 |   if test -n "$CXX"; then | 
 | 5078 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 5079 | else | 
 | 5080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5081 | for as_dir in $PATH | 
 | 5082 | do | 
 | 5083 |   IFS=$as_save_IFS | 
 | 5084 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5085 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5086 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5087 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5088 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5089 |     break 2 | 
 | 5090 |   fi | 
 | 5091 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5092 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5093 | IFS=$as_save_IFS | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5094 |  | 
 | 5095 | fi | 
 | 5096 | fi | 
 | 5097 | CXX=$ac_cv_prog_CXX | 
 | 5098 | if test -n "$CXX"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5099 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 5100 | $as_echo "$CXX" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5101 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5102 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5103 | $as_echo "no" >&6; } | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5104 | fi | 
 | 5105 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5106 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5107 |     test -n "$CXX" && break | 
 | 5108 |   done | 
 | 5109 | fi | 
 | 5110 | if test -z "$CXX"; then | 
 | 5111 |   ac_ct_CXX=$CXX | 
 | 5112 |   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 5113 | do | 
 | 5114 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5115 | set dummy $ac_prog; ac_word=$2 | 
 | 5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5117 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5118 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
 | 5119 |   $as_echo_n "(cached) " >&6 | 
 | 5120 | else | 
 | 5121 |   if test -n "$ac_ct_CXX"; then | 
 | 5122 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 5123 | else | 
 | 5124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5125 | for as_dir in $PATH | 
 | 5126 | do | 
 | 5127 |   IFS=$as_save_IFS | 
 | 5128 |   test -z "$as_dir" && as_dir=. | 
 | 5129 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 5130 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5131 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 5132 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5133 |     break 2 | 
 | 5134 |   fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5135 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5136 |   done | 
 | 5137 | IFS=$as_save_IFS | 
 | 5138 |  | 
 | 5139 | fi | 
 | 5140 | fi | 
 | 5141 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 5142 | if test -n "$ac_ct_CXX"; then | 
 | 5143 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
 | 5144 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 5145 | else | 
 | 5146 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5147 | $as_echo "no" >&6; } | 
 | 5148 | fi | 
 | 5149 |  | 
 | 5150 |  | 
 | 5151 |   test -n "$ac_ct_CXX" && break | 
 | 5152 | done | 
 | 5153 |  | 
 | 5154 |   if test "x$ac_ct_CXX" = x; then | 
 | 5155 |     CXX="notfound" | 
 | 5156 |   else | 
 | 5157 |     case $cross_compiling:$ac_tool_warned in | 
 | 5158 | yes:) | 
 | 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5161 | ac_tool_warned=yes ;; | 
 | 5162 | esac | 
 | 5163 |     CXX=$ac_ct_CXX | 
 | 5164 |   fi | 
 | 5165 | fi | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5166 |  | 
 | 5167 | 	if test "$CXX" = "notfound" | 
 | 5168 | 	then | 
 | 5169 | 		CXX="" | 
 | 5170 | 	fi | 
 | 5171 | fi | 
 | 5172 | if test "$preset_cxx" != "$CXX" | 
 | 5173 | then | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5174 |         { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5175 |  | 
 | 5176 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 5177 |   If this is not intended, then set CXX on the configure command line. | 
 | 5178 |   " >&5 | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5179 | $as_echo "$as_me: | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5180 |  | 
 | 5181 |   By default, distutils will build C++ extension modules with \"$CXX\". | 
 | 5182 |   If this is not intended, then set CXX on the configure command line. | 
| Christian Heimes | fe32aec | 2013-11-20 01:18:26 +0100 | [diff] [blame] | 5183 |   " >&6;} | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 5184 | fi | 
 | 5185 |  | 
 | 5186 |  | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5187 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | 
 | 5188 |  | 
 | 5189 |  | 
 | 5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 | 
 | 5191 | $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } | 
 | 5192 | cat >> conftest.c <<EOF | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5193 | #undef bfin | 
 | 5194 | #undef cris | 
 | 5195 | #undef fr30 | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5196 | #undef linux | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5197 | #undef hppa | 
 | 5198 | #undef hpux | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5199 | #undef i386 | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5200 | #undef mips | 
| doko@ubuntu.com | 9abe049 | 2015-04-15 23:31:02 +0200 | [diff] [blame] | 5201 | #undef powerpc | 
| doko@ubuntu.com | 5cc9c4f | 2015-04-19 14:44:05 +0200 | [diff] [blame] | 5202 | #undef sparc | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5203 | #undef unix | 
| doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5204 | #if defined(__ANDROID__) | 
| Xavier de Gaye | 32cf1ac | 2016-12-10 17:31:28 +0100 | [diff] [blame] | 5205 |     # Android is not a multiarch system. | 
| doko@ubuntu.com | 5c38cb2 | 2016-09-01 22:05:20 +0200 | [diff] [blame] | 5206 | #elif defined(__linux__) | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5207 | # if defined(__x86_64__) && defined(__LP64__) | 
 | 5208 |         x86_64-linux-gnu | 
 | 5209 | # elif defined(__x86_64__) && defined(__ILP32__) | 
 | 5210 |         x86_64-linux-gnux32 | 
 | 5211 | # elif defined(__i386__) | 
 | 5212 |         i386-linux-gnu | 
 | 5213 | # elif defined(__aarch64__) && defined(__AARCH64EL__) | 
 | 5214 | #  if defined(__ILP32__) | 
 | 5215 |         aarch64_ilp32-linux-gnu | 
 | 5216 | #  else | 
 | 5217 |         aarch64-linux-gnu | 
 | 5218 | #  endif | 
 | 5219 | # elif defined(__aarch64__) && defined(__AARCH64EB__) | 
 | 5220 | #  if defined(__ILP32__) | 
 | 5221 |         aarch64_be_ilp32-linux-gnu | 
 | 5222 | #  else | 
 | 5223 |         aarch64_be-linux-gnu | 
 | 5224 | #  endif | 
 | 5225 | # elif defined(__alpha__) | 
 | 5226 |         alpha-linux-gnu | 
 | 5227 | # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) | 
 | 5228 | #  if defined(__ARMEL__) | 
 | 5229 |         arm-linux-gnueabihf | 
 | 5230 | #  else | 
 | 5231 |         armeb-linux-gnueabihf | 
 | 5232 | #  endif | 
 | 5233 | # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) | 
 | 5234 | #  if defined(__ARMEL__) | 
 | 5235 |         arm-linux-gnueabi | 
 | 5236 | #  else | 
 | 5237 |         armeb-linux-gnueabi | 
 | 5238 | #  endif | 
 | 5239 | # elif defined(__hppa__) | 
 | 5240 |         hppa-linux-gnu | 
 | 5241 | # elif defined(__ia64__) | 
 | 5242 |         ia64-linux-gnu | 
 | 5243 | # elif defined(__m68k__) && !defined(__mcoldfire__) | 
 | 5244 |         m68k-linux-gnu | 
 | 5245 | # elif defined(__mips_hard_float) && defined(_MIPSEL) | 
 | 5246 | #  if _MIPS_SIM == _ABIO32 | 
 | 5247 |         mipsel-linux-gnu | 
 | 5248 | #  elif _MIPS_SIM == _ABIN32 | 
 | 5249 |         mips64el-linux-gnuabin32 | 
 | 5250 | #  elif _MIPS_SIM == _ABI64 | 
 | 5251 |         mips64el-linux-gnuabi64 | 
 | 5252 | #  else | 
 | 5253 | #   error unknown platform triplet | 
 | 5254 | #  endif | 
 | 5255 | # elif defined(__mips_hard_float) | 
 | 5256 | #  if _MIPS_SIM == _ABIO32 | 
 | 5257 |         mips-linux-gnu | 
 | 5258 | #  elif _MIPS_SIM == _ABIN32 | 
 | 5259 |         mips64-linux-gnuabin32 | 
 | 5260 | #  elif _MIPS_SIM == _ABI64 | 
 | 5261 |         mips64-linux-gnuabi64 | 
 | 5262 | #  else | 
 | 5263 | #   error unknown platform triplet | 
 | 5264 | #  endif | 
 | 5265 | # elif defined(__or1k__) | 
 | 5266 |         or1k-linux-gnu | 
 | 5267 | # elif defined(__powerpc__) && defined(__SPE__) | 
 | 5268 |         powerpc-linux-gnuspe | 
 | 5269 | # elif defined(__powerpc64__) | 
 | 5270 | #  if defined(__LITTLE_ENDIAN__) | 
 | 5271 |         powerpc64le-linux-gnu | 
 | 5272 | #  else | 
 | 5273 |         powerpc64-linux-gnu | 
 | 5274 | #  endif | 
 | 5275 | # elif defined(__powerpc__) | 
 | 5276 |         powerpc-linux-gnu | 
 | 5277 | # elif defined(__s390x__) | 
 | 5278 |         s390x-linux-gnu | 
 | 5279 | # elif defined(__s390__) | 
 | 5280 |         s390-linux-gnu | 
 | 5281 | # elif defined(__sh__) && defined(__LITTLE_ENDIAN__) | 
 | 5282 |         sh4-linux-gnu | 
 | 5283 | # elif defined(__sparc__) && defined(__arch64__) | 
 | 5284 |         sparc64-linux-gnu | 
 | 5285 | # elif defined(__sparc__) | 
 | 5286 |         sparc-linux-gnu | 
 | 5287 | # else | 
 | 5288 | #   error unknown platform triplet | 
 | 5289 | # endif | 
 | 5290 | #elif defined(__FreeBSD_kernel__) | 
 | 5291 | # if defined(__LP64__) | 
 | 5292 |         x86_64-kfreebsd-gnu | 
 | 5293 | # elif defined(__i386__) | 
 | 5294 |         i386-kfreebsd-gnu | 
 | 5295 | # else | 
 | 5296 | #   error unknown platform triplet | 
 | 5297 | # endif | 
 | 5298 | #elif defined(__gnu_hurd__) | 
 | 5299 |         i386-gnu | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 5300 | #elif defined(__APPLE__) | 
 | 5301 |         darwin | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5302 | #else | 
 | 5303 | # error unknown platform triplet | 
 | 5304 | #endif | 
 | 5305 |  | 
 | 5306 | EOF | 
 | 5307 |  | 
| Xavier de Gaye | 3a32bdf | 2016-07-30 11:28:35 +0200 | [diff] [blame] | 5308 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5309 |   PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' 	'` | 
 | 5310 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 | 
 | 5311 | $as_echo "$PLATFORM_TRIPLET" >&6; } | 
 | 5312 | else | 
 | 5313 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 5314 | $as_echo "none" >&6; } | 
 | 5315 | fi | 
 | 5316 | rm -f conftest.c conftest.out | 
 | 5317 |  | 
 | 5318 | if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then | 
 | 5319 |   if test x$PLATFORM_TRIPLET != x$MULTIARCH; then | 
 | 5320 |     as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 | 
 | 5321 |   fi | 
| doko@ubuntu.com | 75b1cb1 | 2016-08-29 20:03:25 +0200 | [diff] [blame] | 5322 | elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then | 
 | 5323 |   MULTIARCH=$PLATFORM_TRIPLET | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5324 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5325 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 5326 | if test x$MULTIARCH != x; then | 
 | 5327 |   MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" | 
 | 5328 | fi | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 5329 |  | 
 | 5330 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 | 
 | 5332 | $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } | 
 | 5333 | save_LDFLAGS="$LDFLAGS" | 
 | 5334 | LDFLAGS="$LDFLAGS -Wl,--no-as-needed" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5335 |  | 
| Martin v. Löwis | 48e14d3 | 2011-05-09 07:37:45 +0200 | [diff] [blame] | 5336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5337 | /* end confdefs.h.  */ | 
 | 5338 |  | 
 | 5339 | int | 
 | 5340 | main () | 
 | 5341 | { | 
 | 5342 |  | 
 | 5343 |   ; | 
 | 5344 |   return 0; | 
 | 5345 | } | 
 | 5346 | _ACEOF | 
 | 5347 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5348 |   NO_AS_NEEDED="-Wl,--no-as-needed" | 
 | 5349 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5350 | $as_echo "yes" >&6; } | 
 | 5351 | else | 
 | 5352 |   NO_AS_NEEDED="" | 
 | 5353 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5354 | $as_echo "no" >&6; } | 
 | 5355 | fi | 
 | 5356 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5357 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5358 | LDFLAGS="$save_LDFLAGS" | 
 | 5359 |  | 
 | 5360 |  | 
 | 5361 |  | 
 | 5362 | # checks for UNIX variants that set C preprocessor variables | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5363 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 5365 | $as_echo_n "checking for egrep... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5366 | if ${ac_cv_path_EGREP+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5367 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5368 | else | 
 | 5369 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 5370 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 5371 |    else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5372 |      if test -z "$EGREP"; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5373 |   ac_path_EGREP_found=false | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5374 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 5375 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5376 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 5377 | do | 
 | 5378 |   IFS=$as_save_IFS | 
 | 5379 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5380 |     for ac_prog in egrep; do | 
 | 5381 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5382 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5383 |       as_fn_executable_p "$ac_path_EGREP" || continue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5384 | # Check for GNU ac_path_EGREP and select it if it is found. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5385 |   # Check for GNU $ac_path_EGREP | 
 | 5386 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 5387 | *GNU*) | 
 | 5388 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 5389 | *) | 
 | 5390 |   ac_count=0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5391 |   $as_echo_n 0123456789 >"conftest.in" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5392 |   while : | 
 | 5393 |   do | 
 | 5394 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 5395 |     mv "conftest.tmp" "conftest.in" | 
 | 5396 |     cp "conftest.in" "conftest.nl" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5397 |     $as_echo 'EGREP' >> "conftest.nl" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5398 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 5399 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5400 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5401 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 5402 |       # Best one so far, save it but keep looking for a better one | 
 | 5403 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 5404 |       ac_path_EGREP_max=$ac_count | 
 | 5405 |     fi | 
 | 5406 |     # 10*(2^10) chars as input seems more than enough | 
 | 5407 |     test $ac_count -gt 10 && break | 
 | 5408 |   done | 
 | 5409 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 5410 | esac | 
 | 5411 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5412 |       $ac_path_EGREP_found && break 3 | 
 | 5413 |     done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5414 |   done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5415 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5416 | IFS=$as_save_IFS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5417 |   if test -z "$ac_cv_path_EGREP"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5418 |     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5419 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5420 | else | 
 | 5421 |   ac_cv_path_EGREP=$EGREP | 
 | 5422 | fi | 
 | 5423 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5424 |    fi | 
 | 5425 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 5427 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5428 |  EGREP="$ac_cv_path_EGREP" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5429 |  | 
 | 5430 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 5432 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5433 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5434 |   $as_echo_n "(cached) " >&6 | 
 | 5435 | else | 
 | 5436 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5437 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5438 | #include <stdlib.h> | 
 | 5439 | #include <stdarg.h> | 
 | 5440 | #include <string.h> | 
 | 5441 | #include <float.h> | 
 | 5442 |  | 
 | 5443 | int | 
 | 5444 | main () | 
 | 5445 | { | 
 | 5446 |  | 
 | 5447 |   ; | 
 | 5448 |   return 0; | 
 | 5449 | } | 
 | 5450 | _ACEOF | 
 | 5451 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5452 |   ac_cv_header_stdc=yes | 
 | 5453 | else | 
 | 5454 |   ac_cv_header_stdc=no | 
 | 5455 | fi | 
 | 5456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5457 |  | 
 | 5458 | if test $ac_cv_header_stdc = yes; then | 
 | 5459 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 5460 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5461 | /* end confdefs.h.  */ | 
 | 5462 | #include <string.h> | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5463 |  | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 5464 | _ACEOF | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5466 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5467 |  | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5468 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5469 |   ac_cv_header_stdc=no | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 5470 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 5471 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5472 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5473 | fi | 
 | 5474 |  | 
 | 5475 | if test $ac_cv_header_stdc = yes; then | 
 | 5476 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 5477 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5478 | /* end confdefs.h.  */ | 
 | 5479 | #include <stdlib.h> | 
 | 5480 |  | 
 | 5481 | _ACEOF | 
 | 5482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5483 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 5484 |  | 
 | 5485 | else | 
 | 5486 |   ac_cv_header_stdc=no | 
 | 5487 | fi | 
 | 5488 | rm -f conftest* | 
 | 5489 |  | 
 | 5490 | fi | 
 | 5491 |  | 
 | 5492 | if test $ac_cv_header_stdc = yes; then | 
 | 5493 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 5494 |   if test "$cross_compiling" = yes; then : | 
 | 5495 |   : | 
 | 5496 | else | 
 | 5497 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5498 | /* end confdefs.h.  */ | 
 | 5499 | #include <ctype.h> | 
 | 5500 | #include <stdlib.h> | 
 | 5501 | #if ((' ' & 0x0FF) == 0x020) | 
 | 5502 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 5503 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 5504 | #else | 
 | 5505 | # define ISLOWER(c) \ | 
 | 5506 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 5507 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 5508 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 5509 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 5510 | #endif | 
 | 5511 |  | 
 | 5512 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 5513 | int | 
 | 5514 | main () | 
 | 5515 | { | 
 | 5516 |   int i; | 
 | 5517 |   for (i = 0; i < 256; i++) | 
 | 5518 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 5519 | 	|| toupper (i) != TOUPPER (i)) | 
 | 5520 |       return 2; | 
 | 5521 |   return 0; | 
 | 5522 | } | 
 | 5523 | _ACEOF | 
 | 5524 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 5525 |  | 
 | 5526 | else | 
 | 5527 |   ac_cv_header_stdc=no | 
 | 5528 | fi | 
 | 5529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5530 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 5531 | fi | 
 | 5532 |  | 
 | 5533 | fi | 
 | 5534 | fi | 
 | 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 5536 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 5537 | if test $ac_cv_header_stdc = yes; then | 
 | 5538 |  | 
 | 5539 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 5540 |  | 
 | 5541 | fi | 
 | 5542 |  | 
 | 5543 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 5544 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 5545 | 		  inttypes.h stdint.h unistd.h | 
 | 5546 | do : | 
 | 5547 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 5548 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 5549 | " | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 5550 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5551 |   cat >>confdefs.h <<_ACEOF | 
 | 5552 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 5553 | _ACEOF | 
 | 5554 |  | 
 | 5555 | fi | 
 | 5556 |  | 
 | 5557 | done | 
 | 5558 |  | 
 | 5559 |  | 
 | 5560 |  | 
 | 5561 |   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5562 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5563 |   MINIX=yes | 
 | 5564 | else | 
 | 5565 |   MINIX= | 
 | 5566 | fi | 
 | 5567 |  | 
 | 5568 |  | 
 | 5569 |   if test "$MINIX" = yes; then | 
 | 5570 |  | 
 | 5571 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 5572 |  | 
 | 5573 |  | 
 | 5574 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 5575 |  | 
 | 5576 |  | 
 | 5577 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 5578 |  | 
 | 5579 |   fi | 
 | 5580 |  | 
 | 5581 |  | 
 | 5582 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 5583 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5584 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5585 |   $as_echo_n "(cached) " >&6 | 
 | 5586 | else | 
 | 5587 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5588 | /* end confdefs.h.  */ | 
 | 5589 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5590 | #         define __EXTENSIONS__ 1 | 
 | 5591 |           $ac_includes_default | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5592 | int | 
 | 5593 | main () | 
 | 5594 | { | 
 | 5595 |  | 
 | 5596 |   ; | 
 | 5597 |   return 0; | 
 | 5598 | } | 
 | 5599 | _ACEOF | 
 | 5600 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5601 |   ac_cv_safe_to_define___extensions__=yes | 
 | 5602 | else | 
 | 5603 |   ac_cv_safe_to_define___extensions__=no | 
 | 5604 | fi | 
 | 5605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5606 | fi | 
 | 5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 5608 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 5609 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 5610 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 5611 |  | 
 | 5612 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 5613 |  | 
 | 5614 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 5615 |  | 
 | 5616 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 5617 |  | 
 | 5618 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 5619 |  | 
 | 5620 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5621 |  | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 | 
 | 5623 | $as_echo_n "checking for the Android API level... " >&6; } | 
 | 5624 | cat >> conftest.c <<EOF | 
 | 5625 | #ifdef __ANDROID__ | 
 | 5626 | #include <android/api-level.h> | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5627 | android_api = __ANDROID_API__ | 
 | 5628 | arm_arch = __ARM_ARCH | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5629 | #else | 
 | 5630 | #error not Android | 
 | 5631 | #endif | 
 | 5632 | EOF | 
 | 5633 |  | 
 | 5634 | if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5635 |   ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` | 
 | 5636 |   _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5637 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 | 
 | 5638 | $as_echo "$ANDROID_API_LEVEL" >&6; } | 
 | 5639 |  | 
 | 5640 | cat >>confdefs.h <<_ACEOF | 
 | 5641 | #define ANDROID_API_LEVEL $ANDROID_API_LEVEL | 
 | 5642 | _ACEOF | 
 | 5643 |  | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 5644 |  | 
 | 5645 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 | 
 | 5646 | $as_echo_n "checking for the Android arm ABI... " >&6; } | 
 | 5647 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 | 
 | 5648 | $as_echo "$_arm_arch" >&6; } | 
 | 5649 |   if test "$_arm_arch" = 7; then | 
 | 5650 |     BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" | 
 | 5651 |     LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" | 
 | 5652 |   fi | 
| Xavier de Gaye | 95750b1 | 2016-07-09 11:05:42 +0200 | [diff] [blame] | 5653 | else | 
 | 5654 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 | 
 | 5655 | $as_echo "not Android" >&6; } | 
 | 5656 | fi | 
 | 5657 | rm -f conftest.c conftest.out | 
 | 5658 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5659 | # Check for unsupported systems | 
 | 5660 | case $ac_sys_system/$ac_sys_release in | 
 | 5661 | atheos*|Linux*/1*) | 
 | 5662 |    echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. | 
 | 5663 |    echo See README for details. | 
 | 5664 |    exit 1;; | 
 | 5665 | esac | 
 | 5666 |  | 
 | 5667 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 | 
 | 5669 | $as_echo_n "checking for --with-suffix... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5670 |  | 
 | 5671 | # Check whether --with-suffix was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5672 | if test "${with_suffix+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5673 |   withval=$with_suffix; | 
 | 5674 | 	case $withval in | 
 | 5675 | 	no)	EXEEXT=;; | 
 | 5676 | 	yes)	EXEEXT=.exe;; | 
 | 5677 | 	*)	EXEEXT=$withval;; | 
 | 5678 | 	esac | 
 | 5679 | fi | 
 | 5680 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | 
 | 5682 | $as_echo "$EXEEXT" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5683 |  | 
 | 5684 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 5685 | # case we give a warning if no ext is given | 
 | 5686 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 | 
 | 5688 | $as_echo_n "checking for case-insensitive build directory... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5689 | if test ! -d CaseSensitiveTestDir; then | 
 | 5690 | mkdir CaseSensitiveTestDir | 
 | 5691 | fi | 
 | 5692 |  | 
 | 5693 | if test -d casesensitivetestdir | 
 | 5694 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5695 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 5696 | $as_echo "yes" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5697 |     BUILDEXEEXT=.exe | 
 | 5698 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5699 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5700 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5701 | 	BUILDEXEEXT=$EXEEXT | 
 | 5702 | fi | 
 | 5703 | rmdir CaseSensitiveTestDir | 
 | 5704 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5705 | case $ac_sys_system in | 
 | 5706 | hp*|HP*) | 
 | 5707 |     case $CC in | 
 | 5708 |     cc|*/cc) CC="$CC -Ae";; | 
 | 5709 |     esac;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5710 | esac | 
 | 5711 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5712 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 | 
 | 5714 | $as_echo_n "checking LIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5715 | if test -z "$LIBRARY" | 
 | 5716 | then | 
| Barry Warsaw | f040d7d | 2010-10-18 17:09:07 +0000 | [diff] [blame] | 5717 | 	LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5718 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 | 
 | 5720 | $as_echo "$LIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5721 |  | 
 | 5722 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 5723 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 5724 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 5725 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 5726 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 5727 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 5728 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 5729 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
 | 5730 | # | 
 | 5731 | # RUNSHARED is used to run shared python without installed libraries | 
 | 5732 | # | 
 | 5733 | # INSTSONAME is the name of the shared library that will be use to install | 
 | 5734 | # on the system - some systems like version suffix, others don't | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5735 | # | 
 | 5736 | # LDVERSION is the shared library version number, normally the Python version | 
 | 5737 | # with the ABI build flags appended. | 
 | 5738 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5739 |  | 
 | 5740 |  | 
 | 5741 |  | 
 | 5742 |  | 
 | 5743 |  | 
 | 5744 |  | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5745 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5746 | LDLIBRARY="$LIBRARY" | 
 | 5747 | BLDLIBRARY='$(LDLIBRARY)' | 
 | 5748 | INSTSONAME='$(LDLIBRARY)' | 
 | 5749 | DLLLIBRARY='' | 
 | 5750 | LDLIBRARYDIR='' | 
 | 5751 | RUNSHARED='' | 
| Barry Warsaw | 14d98ac | 2010-11-24 19:43:47 +0000 | [diff] [blame] | 5752 | LDVERSION="$VERSION" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5753 |  | 
 | 5754 | # LINKCC is the command that links the python executable -- default is $(CC). | 
 | 5755 | # If CXX is set, and if it is needed to link a main function that was | 
 | 5756 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 5757 | # python might then depend on the C++ runtime | 
 | 5758 | # This is altered for AIX in order to build the export list before | 
 | 5759 | # linking. | 
 | 5760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 | 
 | 5762 | $as_echo_n "checking LINKCC... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5763 | if test -z "$LINKCC" | 
 | 5764 | then | 
 | 5765 | 	LINKCC='$(PURIFY) $(MAINCC)' | 
 | 5766 | 	case $ac_sys_system in | 
 | 5767 | 	AIX*) | 
 | 5768 | 	   exp_extra="\"\"" | 
 | 5769 | 	   if test $ac_sys_release -ge 5 -o \ | 
 | 5770 | 		   $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then | 
 | 5771 | 	       exp_extra="." | 
 | 5772 | 	   fi | 
 | 5773 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5774 | 	QNX*) | 
 | 5775 | 	   # qcc must be used because the other compilers do not | 
 | 5776 | 	   # support -N. | 
 | 5777 | 	   LINKCC=qcc;; | 
 | 5778 | 	esac | 
 | 5779 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 | 
 | 5781 | $as_echo "$LINKCC" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5782 |  | 
 | 5783 | # GNULD is set to "yes" if the GNU linker is used.  If this goes wrong | 
 | 5784 | # make sure we default having it set to "no": this is used by | 
 | 5785 | # distutils.unixccompiler to know if it should add --enable-new-dtags | 
 | 5786 | # to linker command lines, and failing to detect GNU ld simply results | 
 | 5787 | # in the same bahaviour as before. | 
 | 5788 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 5790 | $as_echo_n "checking for GNU ld... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5791 | ac_prog=ld | 
 | 5792 | if test "$GCC" = yes; then | 
 | 5793 |        ac_prog=`$CC -print-prog-name=ld` | 
 | 5794 | fi | 
 | 5795 | case `"$ac_prog" -V 2>&1 < /dev/null` in | 
 | 5796 |       *GNU*) | 
 | 5797 |           GNULD=yes;; | 
 | 5798 |       *) | 
 | 5799 |           GNULD=no;; | 
 | 5800 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 | 
 | 5802 | $as_echo "$GNULD" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5803 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 | 
 | 5805 | $as_echo_n "checking for --enable-shared... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5806 | # Check whether --enable-shared was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5807 | if test "${enable_shared+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5808 |   enableval=$enable_shared; | 
 | 5809 | fi | 
 | 5810 |  | 
 | 5811 |  | 
 | 5812 | if test -z "$enable_shared" | 
 | 5813 | then | 
 | 5814 |   case $ac_sys_system in | 
| Antoine Pitrou | 6103ab1 | 2009-10-24 20:11:21 +0000 | [diff] [blame] | 5815 |   CYGWIN*) | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5816 |     enable_shared="yes";; | 
 | 5817 |   *) | 
 | 5818 |     enable_shared="no";; | 
 | 5819 |   esac | 
 | 5820 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 5822 | $as_echo "$enable_shared" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5823 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 | 
 | 5825 | $as_echo_n "checking for --enable-profiling... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5826 | # Check whether --enable-profiling was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5827 | if test "${enable_profiling+set}" = set; then : | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5828 |   enableval=$enable_profiling; | 
 | 5829 | fi | 
 | 5830 |  | 
 | 5831 | if test "x$enable_profiling" = xyes; then | 
 | 5832 |   ac_save_cc="$CC" | 
| Benjamin Peterson | 615ea1a | 2013-03-26 08:55:37 -0400 | [diff] [blame] | 5833 |   CC="$CC -pg" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5834 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5835 | /* end confdefs.h.  */ | 
 | 5836 | int main() { return 0; } | 
 | 5837 | _ACEOF | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5838 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 5839 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5840 | else | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5841 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5842 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5843 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 5844 |     conftest$ac_exeext conftest.$ac_ext | 
 | 5845 |   CC="$ac_save_cc" | 
 | 5846 | else | 
 | 5847 |   enable_profiling=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5848 | fi | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 | 
 | 5850 | $as_echo "$enable_profiling" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5851 |  | 
| doko@ubuntu.com | ba01583 | 2012-06-30 16:52:05 +0200 | [diff] [blame] | 5852 | if test "x$enable_profiling" = xyes; then | 
 | 5853 |   BASECFLAGS="-pg $BASECFLAGS" | 
 | 5854 |   LDFLAGS="-pg $LDFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5855 | fi | 
 | 5856 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 | 
 | 5858 | $as_echo_n "checking LDLIBRARY... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5859 |  | 
 | 5860 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 5861 | # library that we build, but we do not want to link against it (we | 
 | 5862 | # will find it with a -framework option). For this reason there is an | 
 | 5863 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 5864 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 5865 | # LDLIBRARY, but empty for MacOSX framework builds. | 
 | 5866 | if test "$enable_framework" | 
 | 5867 | then | 
 | 5868 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5869 |   RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5870 |   BLDLIBRARY='' | 
 | 5871 | else | 
 | 5872 |   BLDLIBRARY='$(LDLIBRARY)' | 
 | 5873 | fi | 
 | 5874 |  | 
 | 5875 | # Other platforms follow | 
 | 5876 | if test $enable_shared = "yes"; then | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5877 |   PY_ENABLE_SHARED=1 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5878 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5879 | $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5880 |  | 
 | 5881 |   case $ac_sys_system in | 
 | 5882 |     CYGWIN*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5883 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
 | 5884 |           DLLLIBRARY='libpython$(LDVERSION).dll' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5885 |           ;; | 
 | 5886 |     SunOS*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5887 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 5888 | 	  BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5889 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5890 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5891 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5892 | 	  then | 
 | 5893 | 	      PY3LIBRARY=libpython3.so | 
 | 5894 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5895 |           ;; | 
| Charles-François Natali | 749400a | 2011-07-24 22:41:18 +0200 | [diff] [blame] | 5896 |     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5897 | 	  LDLIBRARY='libpython$(LDVERSION).so' | 
 | 5898 | 	  BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5899 | 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5900 | 	  INSTSONAME="$LDLIBRARY".$SOVERSION | 
| Martin v. Löwis | 9b142aa | 2011-02-05 20:26:52 +0000 | [diff] [blame] | 5901 | 	  if test "$with_pydebug" != yes | 
| Martin v. Löwis | d1fc34d | 2010-12-30 14:55:47 +0000 | [diff] [blame] | 5902 |           then | 
 | 5903 | 	      PY3LIBRARY=libpython3.so | 
 | 5904 | 	  fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5905 | 	  ;; | 
 | 5906 |     hp*|HP*) | 
 | 5907 | 	  case `uname -m` in | 
 | 5908 | 		ia64) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5909 | 			LDLIBRARY='libpython$(LDVERSION).so' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5910 | 			;; | 
 | 5911 | 		*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5912 | 			LDLIBRARY='libpython$(LDVERSION).sl' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5913 | 			;; | 
 | 5914 | 	  esac | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5915 | 	  BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5916 | 	  RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5917 | 	  ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5918 |     Darwin*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5919 |     	LDLIBRARY='libpython$(LDVERSION).dylib' | 
 | 5920 | 	BLDLIBRARY='-L. -lpython$(LDVERSION)' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5921 | 	RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5922 | 	;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5923 |     AIX*) | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5924 | 	LDLIBRARY='libpython$(LDVERSION).so' | 
| doko@ubuntu.com | e5de66e | 2014-05-07 12:57:44 +0200 | [diff] [blame] | 5925 | 	RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 5926 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5927 |  | 
 | 5928 |   esac | 
 | 5929 | else # shared is disabled | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 5930 |   PY_ENABLE_SHARED=0 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5931 |   case $ac_sys_system in | 
 | 5932 |     CYGWIN*) | 
 | 5933 |           BLDLIBRARY='$(LIBRARY)' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 5934 |           LDLIBRARY='libpython$(LDVERSION).dll.a' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5935 |           ;; | 
 | 5936 |   esac | 
 | 5937 | fi | 
 | 5938 |  | 
| doko@ubuntu.com | 1abe1c5 | 2012-06-30 20:42:45 +0200 | [diff] [blame] | 5939 | if test "$cross_compiling" = yes; then | 
 | 5940 | 	RUNSHARED= | 
 | 5941 | fi | 
 | 5942 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 | 
 | 5944 | $as_echo "$LDLIBRARY" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5945 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5946 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5947 | if test -n "$ac_tool_prefix"; then | 
 | 5948 |   for ac_prog in ar aal | 
 | 5949 |   do | 
 | 5950 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5951 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5953 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 5954 | if ${ac_cv_prog_AR+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5955 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5956 | else | 
 | 5957 |   if test -n "$AR"; then | 
 | 5958 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5959 | else | 
 | 5960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5961 | for as_dir in $PATH | 
 | 5962 | do | 
 | 5963 |   IFS=$as_save_IFS | 
 | 5964 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5965 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 5966 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5967 |     ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5968 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5969 |     break 2 | 
 | 5970 |   fi | 
 | 5971 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5972 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5973 | IFS=$as_save_IFS | 
 | 5974 |  | 
 | 5975 | fi | 
 | 5976 | fi | 
 | 5977 | AR=$ac_cv_prog_AR | 
 | 5978 | if test -n "$AR"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5979 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 5980 | $as_echo "$AR" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5981 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 5982 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5983 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 5984 | fi | 
 | 5985 |  | 
 | 5986 |  | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 5987 |     test -n "$AR" && break | 
 | 5988 |   done | 
 | 5989 | fi | 
 | 5990 | if test -z "$AR"; then | 
 | 5991 |   ac_ct_AR=$AR | 
 | 5992 |   for ac_prog in ar aal | 
 | 5993 | do | 
 | 5994 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5995 | set dummy $ac_prog; ac_word=$2 | 
 | 5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5997 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 5998 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
 | 5999 |   $as_echo_n "(cached) " >&6 | 
 | 6000 | else | 
 | 6001 |   if test -n "$ac_ct_AR"; then | 
 | 6002 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 6003 | else | 
 | 6004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6005 | for as_dir in $PATH | 
 | 6006 | do | 
 | 6007 |   IFS=$as_save_IFS | 
 | 6008 |   test -z "$as_dir" && as_dir=. | 
 | 6009 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 646eb1e | 2012-10-29 17:35:57 +0000 | [diff] [blame] | 6010 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6011 |     ac_cv_prog_ac_ct_AR="$ac_prog" | 
 | 6012 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6013 |     break 2 | 
 | 6014 |   fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6015 | done | 
| doko@ubuntu.com | 51f6594 | 2012-06-30 14:42:46 +0200 | [diff] [blame] | 6016 |   done | 
 | 6017 | IFS=$as_save_IFS | 
 | 6018 |  | 
 | 6019 | fi | 
 | 6020 | fi | 
 | 6021 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 6022 | if test -n "$ac_ct_AR"; then | 
 | 6023 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
 | 6024 | $as_echo "$ac_ct_AR" >&6; } | 
 | 6025 | else | 
 | 6026 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6027 | $as_echo "no" >&6; } | 
 | 6028 | fi | 
 | 6029 |  | 
 | 6030 |  | 
 | 6031 |   test -n "$ac_ct_AR" && break | 
 | 6032 | done | 
 | 6033 |  | 
 | 6034 |   if test "x$ac_ct_AR" = x; then | 
 | 6035 |     AR="ar" | 
 | 6036 |   else | 
 | 6037 |     case $cross_compiling:$ac_tool_warned in | 
 | 6038 | yes:) | 
 | 6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6040 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 6041 | ac_tool_warned=yes ;; | 
 | 6042 | esac | 
 | 6043 |     AR=$ac_ct_AR | 
 | 6044 |   fi | 
 | 6045 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6046 |  | 
 | 6047 |  | 
 | 6048 | # tweak ARFLAGS only if the user didn't set it on the command line | 
 | 6049 |  | 
 | 6050 | if test -z "$ARFLAGS" | 
 | 6051 | then | 
| Benjamin Peterson | d15108a | 2017-09-29 08:42:41 -0700 | [diff] [blame] | 6052 |         ARFLAGS="rcs" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6053 | fi | 
 | 6054 |  | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6055 | if test -n "$ac_tool_prefix"; then | 
 | 6056 |   for ac_prog in readelf | 
 | 6057 |   do | 
 | 6058 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 6059 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 6060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6061 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6062 | if ${ac_cv_prog_READELF+:} false; then : | 
 | 6063 |   $as_echo_n "(cached) " >&6 | 
 | 6064 | else | 
 | 6065 |   if test -n "$READELF"; then | 
 | 6066 |   ac_cv_prog_READELF="$READELF" # Let the user override the test. | 
 | 6067 | else | 
 | 6068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6069 | for as_dir in $PATH | 
 | 6070 | do | 
 | 6071 |   IFS=$as_save_IFS | 
 | 6072 |   test -z "$as_dir" && as_dir=. | 
 | 6073 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6074 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6075 |     ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" | 
 | 6076 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6077 |     break 2 | 
 | 6078 |   fi | 
 | 6079 | done | 
 | 6080 |   done | 
 | 6081 | IFS=$as_save_IFS | 
 | 6082 |  | 
 | 6083 | fi | 
 | 6084 | fi | 
 | 6085 | READELF=$ac_cv_prog_READELF | 
 | 6086 | if test -n "$READELF"; then | 
 | 6087 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | 
 | 6088 | $as_echo "$READELF" >&6; } | 
 | 6089 | else | 
 | 6090 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6091 | $as_echo "no" >&6; } | 
 | 6092 | fi | 
 | 6093 |  | 
 | 6094 |  | 
 | 6095 |     test -n "$READELF" && break | 
 | 6096 |   done | 
 | 6097 | fi | 
 | 6098 | if test -z "$READELF"; then | 
 | 6099 |   ac_ct_READELF=$READELF | 
 | 6100 |   for ac_prog in readelf | 
 | 6101 | do | 
 | 6102 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6103 | set dummy $ac_prog; ac_word=$2 | 
 | 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6105 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6106 | if ${ac_cv_prog_ac_ct_READELF+:} false; then : | 
 | 6107 |   $as_echo_n "(cached) " >&6 | 
 | 6108 | else | 
 | 6109 |   if test -n "$ac_ct_READELF"; then | 
 | 6110 |   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | 
 | 6111 | else | 
 | 6112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6113 | for as_dir in $PATH | 
 | 6114 | do | 
 | 6115 |   IFS=$as_save_IFS | 
 | 6116 |   test -z "$as_dir" && as_dir=. | 
 | 6117 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6118 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| doko@ubuntu.com | 5884449 | 2012-06-30 18:25:32 +0200 | [diff] [blame] | 6119 |     ac_cv_prog_ac_ct_READELF="$ac_prog" | 
 | 6120 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6121 |     break 2 | 
 | 6122 |   fi | 
 | 6123 | done | 
 | 6124 |   done | 
 | 6125 | IFS=$as_save_IFS | 
 | 6126 |  | 
 | 6127 | fi | 
 | 6128 | fi | 
 | 6129 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | 
 | 6130 | if test -n "$ac_ct_READELF"; then | 
 | 6131 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | 
 | 6132 | $as_echo "$ac_ct_READELF" >&6; } | 
 | 6133 | else | 
 | 6134 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6135 | $as_echo "no" >&6; } | 
 | 6136 | fi | 
 | 6137 |  | 
 | 6138 |  | 
 | 6139 |   test -n "$ac_ct_READELF" && break | 
 | 6140 | done | 
 | 6141 |  | 
 | 6142 |   if test "x$ac_ct_READELF" = x; then | 
 | 6143 |     READELF=":" | 
 | 6144 |   else | 
 | 6145 |     case $cross_compiling:$ac_tool_warned in | 
 | 6146 | yes:) | 
 | 6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6148 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 6149 | ac_tool_warned=yes ;; | 
 | 6150 | esac | 
 | 6151 |     READELF=$ac_ct_READELF | 
 | 6152 |   fi | 
 | 6153 | fi | 
 | 6154 |  | 
 | 6155 | if test "$cross_compiling" = yes; then | 
 | 6156 |     case "$READELF" in | 
 | 6157 | 	readelf|:) | 
 | 6158 | 	as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | 
 | 6159 | 	;; | 
 | 6160 |     esac | 
 | 6161 | fi | 
 | 6162 |  | 
 | 6163 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6164 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6165 | case $MACHDEP in | 
| Benjamin Peterson | 288d1da | 2017-09-28 22:44:27 -0700 | [diff] [blame] | 6166 | hp*|HP*) | 
 | 6167 | 	# install -d does not work on HP-UX | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6168 | 	if test -z "$INSTALL" | 
 | 6169 | 	then | 
 | 6170 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 6171 | 	fi | 
 | 6172 | esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6173 | # Find a good install program.  We prefer a C program (faster), | 
 | 6174 | # so one script is as good as another.  But avoid the broken or | 
 | 6175 | # incompatible versions: | 
 | 6176 | # SysV /etc/install, /usr/sbin/install | 
 | 6177 | # SunOS /usr/etc/install | 
 | 6178 | # IRIX /sbin/install | 
 | 6179 | # AIX /bin/install | 
 | 6180 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 6181 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 6182 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 6183 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 6184 | # OS/2's system install, which has a completely different semantic | 
 | 6185 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6186 | # Reject install programs that cannot install multiple files. | 
 | 6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 6188 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6189 | if test -z "$INSTALL"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6190 | if ${ac_cv_path_install+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6191 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6192 | else | 
 | 6193 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6194 | for as_dir in $PATH | 
 | 6195 | do | 
 | 6196 |   IFS=$as_save_IFS | 
 | 6197 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6198 |     # Account for people who put trailing slashes in PATH elements. | 
 | 6199 | case $as_dir/ in #(( | 
 | 6200 |   ./ | .// | /[cC]/* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6201 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6202 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6203 |   /usr/ucb/* ) ;; | 
 | 6204 |   *) | 
 | 6205 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 6206 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 6207 |     # by default. | 
 | 6208 |     for ac_prog in ginstall scoinst install; do | 
 | 6209 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6210 | 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6211 | 	  if test $ac_prog = install && | 
 | 6212 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6213 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 6214 | 	    : | 
 | 6215 | 	  elif test $ac_prog = install && | 
 | 6216 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 6217 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 6218 | 	    : | 
 | 6219 | 	  else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6220 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 6221 | 	    echo one > conftest.one | 
 | 6222 | 	    echo two > conftest.two | 
 | 6223 | 	    mkdir conftest.dir | 
 | 6224 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 6225 | 	      test -s conftest.one && test -s conftest.two && | 
 | 6226 | 	      test -s conftest.dir/conftest.one && | 
 | 6227 | 	      test -s conftest.dir/conftest.two | 
 | 6228 | 	    then | 
 | 6229 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 6230 | 	      break 3 | 
 | 6231 | 	    fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6232 | 	  fi | 
 | 6233 | 	fi | 
 | 6234 |       done | 
 | 6235 |     done | 
 | 6236 |     ;; | 
 | 6237 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6238 |  | 
 | 6239 |   done | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6240 | IFS=$as_save_IFS | 
 | 6241 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6242 | rm -rf conftest.one conftest.two conftest.dir | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6243 |  | 
 | 6244 | fi | 
 | 6245 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 6246 |     INSTALL=$ac_cv_path_install | 
 | 6247 |   else | 
 | 6248 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6249 |     # value for INSTALL within a source directory, because that will | 
 | 6250 |     # break other packages using the cache if that directory is | 
 | 6251 |     # removed, or if the value is a relative name. | 
 | 6252 |     INSTALL=$ac_install_sh | 
 | 6253 |   fi | 
 | 6254 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 6256 | $as_echo "$INSTALL" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6257 |  | 
 | 6258 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 6259 | # It thinks the first close brace ends the variable substitution. | 
 | 6260 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 6261 |  | 
 | 6262 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 6263 |  | 
 | 6264 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 6265 |  | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 6267 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 6268 | if test -z "$MKDIR_P"; then | 
 | 6269 |   if ${ac_cv_path_mkdir+:} false; then : | 
 | 6270 |   $as_echo_n "(cached) " >&6 | 
 | 6271 | else | 
 | 6272 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6273 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 6274 | do | 
 | 6275 |   IFS=$as_save_IFS | 
 | 6276 |   test -z "$as_dir" && as_dir=. | 
 | 6277 |     for ac_prog in mkdir gmkdir; do | 
 | 6278 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 6279 | 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 6280 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 6281 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 6282 | 	     'mkdir (coreutils) '* | \ | 
 | 6283 | 	     'mkdir (fileutils) '4.1*) | 
 | 6284 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 6285 | 	       break 3;; | 
 | 6286 | 	   esac | 
 | 6287 | 	 done | 
 | 6288 |        done | 
 | 6289 |   done | 
 | 6290 | IFS=$as_save_IFS | 
 | 6291 |  | 
 | 6292 | fi | 
 | 6293 |  | 
 | 6294 |   test -d ./--version && rmdir ./--version | 
 | 6295 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 6296 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 6297 |   else | 
 | 6298 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 6299 |     # value for MKDIR_P within a source directory, because that will | 
 | 6300 |     # break other packages using the cache if that directory is | 
 | 6301 |     # removed, or if the value is a relative name. | 
 | 6302 |     MKDIR_P="$ac_install_sh -d" | 
 | 6303 |   fi | 
 | 6304 | fi | 
 | 6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 6306 | $as_echo "$MKDIR_P" >&6; } | 
 | 6307 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6308 |  | 
 | 6309 | # Not every filesystem supports hard links | 
 | 6310 |  | 
 | 6311 | if test -z "$LN" ; then | 
 | 6312 | 	case $ac_sys_system in | 
 | 6313 | 		CYGWIN*) LN="ln -s";; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6314 | 		*) LN=ln;; | 
 | 6315 | 	esac | 
 | 6316 | fi | 
 | 6317 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6318 | # For calculating the .so ABI tag. | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6319 |  | 
 | 6320 | ABIFLAGS="" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 6321 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6322 | # Check for --with-pydebug | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 | 
 | 6324 | $as_echo_n "checking for --with-pydebug... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6325 |  | 
 | 6326 | # Check whether --with-pydebug was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6327 | if test "${with_pydebug+set}" = set; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6328 |   withval=$with_pydebug; | 
 | 6329 | if test "$withval" != no | 
 | 6330 | then | 
 | 6331 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6332 | $as_echo "#define Py_DEBUG 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6333 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6334 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6335 | $as_echo "yes" >&6; }; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6336 |   Py_DEBUG='true' | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 6337 |   ABIFLAGS="${ABIFLAGS}d" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6338 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6339 | $as_echo "no" >&6; }; Py_DEBUG='false' | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6340 | fi | 
 | 6341 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6342 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6343 | $as_echo "no" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6344 | fi | 
 | 6345 |  | 
 | 6346 |  | 
| T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 6347 | # Check for --with-assertions. Py_DEBUG implies assertions, but also changes | 
 | 6348 | # the ABI. This allows enabling assertions without changing the ABI. | 
 | 6349 | assertions='false' | 
 | 6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 | 
 | 6351 | $as_echo_n "checking for --with-assertions... " >&6; } | 
 | 6352 |  | 
 | 6353 | # Check whether --with-assertions was given. | 
 | 6354 | if test "${with_assertions+set}" = set; then : | 
 | 6355 |   withval=$with_assertions; | 
 | 6356 | if test "$withval" != no | 
 | 6357 | then | 
 | 6358 |   assertions='true' | 
 | 6359 | fi | 
 | 6360 | fi | 
 | 6361 |  | 
 | 6362 | if test "$assertions" = 'true'; then | 
 | 6363 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6364 | $as_echo "yes" >&6; } | 
 | 6365 | elif test "$Py_DEBUG" = 'true'; then | 
 | 6366 |   assertions='true' | 
 | 6367 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 | 
 | 6368 | $as_echo "implied by --with-pydebug" >&6; } | 
 | 6369 | else | 
 | 6370 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6371 | $as_echo "no" >&6; } | 
 | 6372 | fi | 
 | 6373 |  | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6374 | # Enable optimization flags | 
 | 6375 |  | 
 | 6376 |  | 
 | 6377 | Py_OPT='false' | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 | 
 | 6379 | $as_echo_n "checking for --enable-optimizations... " >&6; } | 
 | 6380 | # Check whether --enable-optimizations was given. | 
 | 6381 | if test "${enable_optimizations+set}" = set; then : | 
 | 6382 |   enableval=$enable_optimizations; | 
| Alex Wang | 8cea592 | 2017-03-28 08:50:51 -0400 | [diff] [blame] | 6383 | if test "$enableval" != no | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6384 | then | 
 | 6385 |   Py_OPT='true' | 
 | 6386 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6387 | $as_echo "yes" >&6; }; | 
 | 6388 | else | 
 | 6389 |   Py_OPT='false' | 
 | 6390 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6391 | $as_echo "no" >&6; }; | 
 | 6392 | fi | 
 | 6393 | else | 
 | 6394 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6395 | $as_echo "no" >&6; } | 
 | 6396 | fi | 
 | 6397 |  | 
 | 6398 | if test "$Py_OPT" = 'true' ; then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6399 |   # Intentionally not forcing Py_LTO='true' here.  Too many toolchains do not | 
 | 6400 |   # compile working code using it and both test_distutils and test_gdb are | 
| Brett Cannon | 1d8f755 | 2016-11-03 16:20:00 -0700 | [diff] [blame] | 6401 |   # broken when you do manage to get a toolchain that works with it.  People | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 14c7f71 | 2016-09-08 22:38:46 +0000 | [diff] [blame] | 6402 |   # who want LTO need to use --with-lto themselves. | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6403 |   DEF_MAKE_ALL_RULE="profile-opt" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6404 |   REQUIRE_PGO="yes" | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6405 |   DEF_MAKE_RULE="build_all" | 
 | 6406 | else | 
 | 6407 |   DEF_MAKE_ALL_RULE="build_all" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6408 |   REQUIRE_PGO="no" | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 6409 |   DEF_MAKE_RULE="all" | 
 | 6410 | fi | 
 | 6411 |  | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6412 | # Enable LTO flags | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 | 
 | 6414 | $as_echo_n "checking for --with-lto... " >&6; } | 
 | 6415 |  | 
 | 6416 | # Check whether --with-lto was given. | 
 | 6417 | if test "${with_lto+set}" = set; then : | 
 | 6418 |   withval=$with_lto; | 
 | 6419 | if test "$withval" != no | 
 | 6420 | then | 
 | 6421 |   Py_LTO='true' | 
 | 6422 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 6423 | $as_echo "yes" >&6; }; | 
 | 6424 | else | 
 | 6425 |   Py_LTO='false' | 
 | 6426 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6427 | $as_echo "no" >&6; }; | 
 | 6428 | fi | 
 | 6429 | else | 
 | 6430 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6431 | $as_echo "no" >&6; } | 
 | 6432 | fi | 
 | 6433 |  | 
 | 6434 | if test "$Py_LTO" = 'true' ; then | 
 | 6435 |   case $CC in | 
 | 6436 |     *clang*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6437 |       case $ac_sys_system in | 
 | 6438 |         Darwin*) | 
 | 6439 |           # Any changes made here should be reflected in the GCC+Darwin case below | 
 | 6440 |           LTOFLAGS="-flto -Wl,-export_dynamic" | 
 | 6441 |           ;; | 
 | 6442 |         *) | 
 | 6443 |           LTOFLAGS="-flto" | 
 | 6444 |           ;; | 
 | 6445 |       esac | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6446 |       ;; | 
 | 6447 |     *gcc*) | 
 | 6448 |       case $ac_sys_system in | 
 | 6449 |         Darwin*) | 
| Ned Deily | 8482ce4 | 2016-09-06 15:09:20 -0700 | [diff] [blame] | 6450 |           LTOFLAGS="-flto -Wl,-export_dynamic" | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6451 |           ;; | 
 | 6452 |         *) | 
 | 6453 |           LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" | 
 | 6454 |           ;; | 
 | 6455 |       esac | 
 | 6456 |       ;; | 
 | 6457 |   esac | 
| octaviansoldea | 4c81401 | 2017-09-08 12:14:33 -0700 | [diff] [blame] | 6458 |   CFLAGS="$CFLAGS $LTOFLAGS" | 
 | 6459 |   LDFLAGS="$LDFLAGS $LTOFLAGS" | 
| Gregory P. Smith | d82da9f | 2016-04-15 16:57:04 -0700 | [diff] [blame] | 6460 | fi | 
 | 6461 |  | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6462 | # Enable PGO flags. | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6463 |  | 
 | 6464 |  | 
 | 6465 |  | 
 | 6466 |  | 
 | 6467 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6468 | # Make this work on systems where llvm tools are not installed with their | 
 | 6469 | # normal names in the default $PATH (ie: Ubuntu).  They exist under the | 
 | 6470 | # non-suffixed name in their versioned llvm directory. | 
 | 6471 | llvm_bin_dir='' | 
 | 6472 | llvm_path="${PATH}" | 
 | 6473 | if test "${CC}" = "clang" | 
 | 6474 | then | 
 | 6475 |   clang_bin=`which clang` | 
 | 6476 |   # Some systems install clang elsewhere as a symlink to the real path | 
 | 6477 |   # which is where the related llvm tools are located. | 
 | 6478 |   if test -L "${clang_bin}" | 
 | 6479 |   then | 
 | 6480 |     clang_dir=`dirname "${clang_bin}"` | 
 | 6481 |     clang_bin=`readlink "${clang_bin}"` | 
 | 6482 |     llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` | 
 | 6483 |     llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" | 
 | 6484 |   fi | 
 | 6485 | fi | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6486 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | 
 | 6488 | $as_echo_n "checking target system type... " >&6; } | 
 | 6489 | if ${ac_cv_target+:} false; then : | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6490 |   $as_echo_n "(cached) " >&6 | 
 | 6491 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6492 |   if test "x$target_alias" = x; then | 
 | 6493 |   ac_cv_target=$ac_cv_host | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6494 | else | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6495 |   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
 | 6496 |     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | 
 | 6497 | fi | 
 | 6498 |  | 
 | 6499 | fi | 
 | 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | 
 | 6501 | $as_echo "$ac_cv_target" >&6; } | 
 | 6502 | case $ac_cv_target in | 
 | 6503 | *-*-*) ;; | 
 | 6504 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | 
 | 6505 | esac | 
 | 6506 | target=$ac_cv_target | 
 | 6507 | ac_save_IFS=$IFS; IFS='-' | 
 | 6508 | set x $ac_cv_target | 
 | 6509 | shift | 
 | 6510 | target_cpu=$1 | 
 | 6511 | target_vendor=$2 | 
 | 6512 | shift; shift | 
 | 6513 | # Remember, the first character of IFS is used to create $*, | 
 | 6514 | # except with old shells: | 
 | 6515 | target_os=$* | 
 | 6516 | IFS=$ac_save_IFS | 
 | 6517 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
 | 6518 |  | 
 | 6519 |  | 
 | 6520 | # The aliases save the names the user supplied, while $host etc. | 
 | 6521 | # will get canonicalized. | 
 | 6522 | test -n "$target_alias" && | 
 | 6523 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 6524 |     NONENONEs,x,x, && | 
 | 6525 |   program_prefix=${target_alias}- | 
 | 6526 | # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. | 
 | 6527 | set dummy $target_alias-llvm-profdata; ac_word=$2 | 
 | 6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6529 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6530 | if ${ac_cv_path_LLVM_PROFDATA+:} false; then : | 
 | 6531 |   $as_echo_n "(cached) " >&6 | 
 | 6532 | else | 
 | 6533 |   case $LLVM_PROFDATA in | 
 | 6534 |   [\\/]* | ?:[\\/]*) | 
 | 6535 |   ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. | 
 | 6536 |   ;; | 
 | 6537 |   *) | 
 | 6538 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6539 | for as_dir in ${llvm_path} | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6540 | do | 
 | 6541 |   IFS=$as_save_IFS | 
 | 6542 |   test -z "$as_dir" && as_dir=. | 
 | 6543 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6544 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6545 |     ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6546 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6547 |     break 2 | 
 | 6548 |   fi | 
 | 6549 | done | 
 | 6550 |   done | 
 | 6551 | IFS=$as_save_IFS | 
 | 6552 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6553 |   ;; | 
 | 6554 | esac | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6555 | fi | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6556 | LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA | 
 | 6557 | if test -n "$LLVM_PROFDATA"; then | 
 | 6558 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 | 
 | 6559 | $as_echo "$LLVM_PROFDATA" >&6; } | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6560 | else | 
 | 6561 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6562 | $as_echo "no" >&6; } | 
 | 6563 | fi | 
 | 6564 |  | 
 | 6565 |  | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6566 | if test -z "$ac_cv_path_LLVM_PROFDATA"; then | 
 | 6567 |   if test "$build" = "$target"; then | 
 | 6568 |     ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA | 
 | 6569 |     # Extract the first word of "llvm-profdata", so it can be a program name with args. | 
 | 6570 | set dummy llvm-profdata; ac_word=$2 | 
 | 6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6572 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 6573 | if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : | 
 | 6574 |   $as_echo_n "(cached) " >&6 | 
 | 6575 | else | 
 | 6576 |   case $ac_pt_LLVM_PROFDATA in | 
 | 6577 |   [\\/]* | ?:[\\/]*) | 
 | 6578 |   ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. | 
 | 6579 |   ;; | 
 | 6580 |   *) | 
 | 6581 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6582 | for as_dir in ${llvm_path} | 
 | 6583 | do | 
 | 6584 |   IFS=$as_save_IFS | 
 | 6585 |   test -z "$as_dir" && as_dir=. | 
 | 6586 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6587 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 6588 |     ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" | 
 | 6589 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6590 |     break 2 | 
 | 6591 |   fi | 
 | 6592 | done | 
 | 6593 |   done | 
 | 6594 | IFS=$as_save_IFS | 
 | 6595 |  | 
 | 6596 |   test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" | 
 | 6597 |   ;; | 
 | 6598 | esac | 
 | 6599 | fi | 
 | 6600 | ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA | 
 | 6601 | if test -n "$ac_pt_LLVM_PROFDATA"; then | 
 | 6602 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 | 
 | 6603 | $as_echo "$ac_pt_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 |     LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA | 
 | 6610 |   else | 
 | 6611 |     LLVM_PROFDATA="''" | 
 | 6612 |   fi | 
 | 6613 | else | 
 | 6614 |   LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" | 
 | 6615 | fi | 
 | 6616 |  | 
 | 6617 |  | 
 | 6618 | if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" | 
 | 6619 | then | 
 | 6620 |   LLVM_PROF_FOUND="found" | 
 | 6621 | else | 
 | 6622 |   LLVM_PROF_FOUND="not-found" | 
 | 6623 | fi | 
 | 6624 | if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" | 
 | 6625 | then | 
 | 6626 |   found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` | 
 | 6627 |   if test -n "${found_llvm_profdata}" | 
 | 6628 |   then | 
 | 6629 |     # llvm-profdata isn't directly in $PATH in some cases. | 
 | 6630 |     # https://apple.stackexchange.com/questions/197053/ | 
 | 6631 |     LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' | 
 | 6632 |     LLVM_PROF_FOUND=found | 
 | 6633 |     { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 | 
 | 6634 | $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} | 
 | 6635 |   fi | 
 | 6636 | fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6637 | LLVM_PROF_ERR=no | 
 | 6638 | case $CC in | 
 | 6639 |   *clang*) | 
 | 6640 |     # Any changes made here should be reflected in the GCC+Darwin case below | 
 | 6641 |     PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
 | 6642 |     PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6643 |     LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6644 |     LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
 | 6645 |     if test $LLVM_PROF_FOUND = not-found | 
 | 6646 |     then | 
 | 6647 |       LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6648 |       if test "${REQUIRE_PGO}" = "yes" | 
 | 6649 |       then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6650 |         as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6651 |       fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6652 |     fi | 
 | 6653 |     ;; | 
 | 6654 |   *gcc*) | 
 | 6655 |     case $ac_sys_system in | 
 | 6656 |       Darwin*) | 
 | 6657 |         PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 
 | 6658 |         PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6659 |         LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6660 |         LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6661 |         if test "${LLVM_PROF_FOUND}" = "not-found" | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6662 |         then | 
 | 6663 |           LLVM_PROF_ERR=yes | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6664 |           if test "${REQUIRE_PGO}" = "yes" | 
 | 6665 | 	  then | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 6666 | 	    as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 | 
| Gregory P. Smith | 799520c | 2016-09-07 16:10:00 -0700 | [diff] [blame] | 6667 | 	  fi | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6668 |         fi | 
 | 6669 |         ;; | 
 | 6670 |       *) | 
 | 6671 |         PGO_PROF_GEN_FLAG="-fprofile-generate" | 
 | 6672 |         PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" | 
 | 6673 |         LLVM_PROF_MERGER="true" | 
 | 6674 |         LLVM_PROF_FILE="" | 
 | 6675 |         ;; | 
 | 6676 |     esac | 
 | 6677 |     ;; | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6678 |   *icc*) | 
 | 6679 |     PGO_PROF_GEN_FLAG="-prof-gen" | 
 | 6680 |     PGO_PROF_USE_FLAG="-prof-use" | 
 | 6681 |     LLVM_PROF_MERGER="true" | 
 | 6682 |     LLVM_PROF_FILE="" | 
 | 6683 |     ;; | 
| Brett Cannon | 7188a3e | 2015-09-18 15:13:44 -0700 | [diff] [blame] | 6684 | esac | 
 | 6685 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6686 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | 
 | 6687 | # merged with this chunk of code? | 
 | 6688 |  | 
 | 6689 | # Optimizer/debugger flags | 
 | 6690 | # ------------------------ | 
 | 6691 | # (The following bit of code is complicated enough - please keep things | 
 | 6692 | # indented properly.  Just pretend you're editing Python code. ;-) | 
 | 6693 |  | 
 | 6694 | # There are two parallel sets of case statements below, one that checks to | 
 | 6695 | # see if OPT was set and one that does BASECFLAGS setting based upon | 
 | 6696 | # compiler and platform.  BASECFLAGS tweaks need to be made even if the | 
 | 6697 | # user set OPT. | 
 | 6698 |  | 
 | 6699 | # tweak OPT based on compiler and platform, only if the user didn't set | 
 | 6700 | # it on the command line | 
 | 6701 |  | 
| Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6702 |  | 
| Benjamin Peterson | 65b4ec5 | 2010-03-23 21:02:34 +0000 | [diff] [blame] | 6703 | if test "${OPT-unset}" = "unset" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6704 | then | 
 | 6705 |     case $GCC in | 
 | 6706 |     yes) | 
 | 6707 |         if test "$CC" != 'g++' ; then | 
 | 6708 | 	    STRICT_PROTO="-Wstrict-prototypes" | 
 | 6709 | 	fi | 
 | 6710 |         # For gcc 4.x we need to use -fwrapv so lets check if its supported | 
 | 6711 |         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then | 
 | 6712 |            WRAP="-fwrapv" | 
 | 6713 |         fi | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6714 |  | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6715 |         case $CC in | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6716 |             *clang*) | 
| Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6717 |                 cc_is_clang=1 | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6718 |                 ;; | 
| Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6719 |             *) | 
 | 6720 |                 if $CC --version 2>&1 | grep -q clang | 
 | 6721 |                 then | 
 | 6722 |                     cc_is_clang=1 | 
 | 6723 |                 else | 
 | 6724 |                     cc_is_clang= | 
 | 6725 |                 fi | 
| Stefan Krah | af04ff2 | 2011-12-08 22:20:31 +0100 | [diff] [blame] | 6726 |         esac | 
| Stefan Krah | 962055d | 2011-09-14 15:14:08 +0200 | [diff] [blame] | 6727 |  | 
| Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6728 |         if test -n "${cc_is_clang}" | 
 | 6729 |         then | 
 | 6730 |             # Clang also needs -fwrapv | 
 | 6731 |             WRAP="-fwrapv" | 
| Victor Stinner | 9ed34a8 | 2017-05-02 22:35:58 +0200 | [diff] [blame] | 6732 |             # bpo-30104: disable strict aliasing to compile correctly dtoa.c, | 
 | 6733 |             # see Makefile.pre.in for more information | 
| Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6734 |             CFLAGS_ALIASING="-fno-strict-aliasing" | 
| Victor Stinner | 35f3d24 | 2017-04-21 12:35:24 +0200 | [diff] [blame] | 6735 |         fi | 
 | 6736 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6737 | 	case $ac_cv_prog_cc_g in | 
 | 6738 | 	yes) | 
 | 6739 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 6740 | 		# Optimization messes up debuggers, so turn it off for | 
 | 6741 | 		# debug builds. | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6742 |                 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6743 |                     OPT="-g -Og -Wall" | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6744 |                 else | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6745 |                     OPT="-g -O0 -Wall" | 
| Antoine Pitrou | 3d6c784 | 2015-02-11 19:39:16 +0100 | [diff] [blame] | 6746 |                 fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6747 | 	    else | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6748 | 		OPT="-g $WRAP -O3 -Wall" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6749 | 	    fi | 
 | 6750 | 	    ;; | 
 | 6751 | 	*) | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6752 | 	    OPT="-O3 -Wall" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6753 | 	    ;; | 
 | 6754 | 	esac | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6755 |  | 
| Victor Stinner | 826f83f | 2017-04-28 15:07:10 +0200 | [diff] [blame] | 6756 | 	OPT="$OPT $STRICT_PROTO" | 
| Victor Stinner | 28205b2 | 2017-04-21 11:24:34 +0200 | [diff] [blame] | 6757 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6758 | 	case $ac_sys_system in | 
 | 6759 | 	    SCO_SV*) OPT="$OPT -m486 -DSCO5" | 
 | 6760 | 	    ;; | 
 | 6761 |         esac | 
 | 6762 | 	;; | 
 | 6763 |  | 
 | 6764 |     *) | 
 | 6765 | 	OPT="-O" | 
 | 6766 | 	;; | 
 | 6767 |     esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6768 | fi | 
 | 6769 |  | 
 | 6770 |  | 
 | 6771 |  | 
| Benjamin Peterson | acb8c52 | 2014-08-09 20:01:49 -0700 | [diff] [blame] | 6772 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6773 | # The -arch flags for universal builds on OSX | 
 | 6774 | UNIVERSAL_ARCH_FLAGS= | 
 | 6775 |  | 
 | 6776 |  | 
 | 6777 | # tweak BASECFLAGS based on compiler and platform | 
 | 6778 | case $GCC in | 
 | 6779 | yes) | 
| Benjamin Peterson | 050af5d | 2016-09-10 17:53:13 -0700 | [diff] [blame] | 6780 |     CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" | 
| Benjamin Peterson | d170256 | 2016-09-07 12:00:06 -0700 | [diff] [blame] | 6781 |  | 
| Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 6782 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 | 
 | 6783 | $as_echo_n "checking for -Wextra... " >&6; } | 
 | 6784 |      ac_save_cc="$CC" | 
 | 6785 |      CC="$CC -Wextra -Werror" | 
 | 6786 |      if ${ac_cv_extra_warnings+:} false; then : | 
 | 6787 |   $as_echo_n "(cached) " >&6 | 
 | 6788 | else | 
 | 6789 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6790 | /* end confdefs.h.  */ | 
 | 6791 |  | 
 | 6792 |  | 
 | 6793 | int | 
 | 6794 | main () | 
 | 6795 | { | 
 | 6796 |  | 
 | 6797 |   ; | 
 | 6798 |   return 0; | 
 | 6799 | } | 
 | 6800 |  | 
 | 6801 | _ACEOF | 
 | 6802 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6803 |  | 
 | 6804 |            ac_cv_extra_warnings=yes | 
 | 6805 |  | 
 | 6806 | else | 
 | 6807 |  | 
 | 6808 |            ac_cv_extra_warnings=no | 
 | 6809 |  | 
 | 6810 | fi | 
 | 6811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6812 | fi | 
 | 6813 |  | 
 | 6814 |      CC="$ac_save_cc" | 
 | 6815 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 | 
 | 6816 | $as_echo "$ac_cv_extra_warnings" >&6; } | 
 | 6817 |  | 
 | 6818 |     if test $ac_cv_extra_warnings = yes | 
 | 6819 |     then | 
 | 6820 |       CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" | 
 | 6821 |     fi | 
 | 6822 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6823 |     # Python doesn't violate C99 aliasing rules, but older versions of | 
 | 6824 |     # GCC produce warnings for legal Python code.  Enable | 
 | 6825 |     # -fno-strict-aliasing on versions of GCC that support but produce | 
 | 6826 |     # warnings.  See Issue3326 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6827 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 | 
 | 6828 | $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6829 |      ac_save_cc="$CC" | 
 | 6830 |      CC="$CC -fno-strict-aliasing" | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6831 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6832 |      if ${ac_cv_no_strict_aliasing+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6833 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6834 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6835 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6836 | /* end confdefs.h.  */ | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6837 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6838 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6839 | int | 
 | 6840 | main () | 
 | 6841 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6842 |  | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6843 |   ; | 
 | 6844 |   return 0; | 
 | 6845 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6846 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6847 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6848 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6849 |  | 
 | 6850 | 	   CC="$ac_save_cc -fstrict-aliasing" | 
 | 6851 |            CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" | 
 | 6852 |            cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6853 | /* end confdefs.h.  */ | 
 | 6854 |  | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6855 | 	       void f(int **x) {} | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6856 | int | 
 | 6857 | main () | 
 | 6858 | { | 
| Mark Dickinson | 8c2b6f1 | 2010-05-11 09:23:07 +0000 | [diff] [blame] | 6859 | double *x; f((int **) &x); | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6860 |   ; | 
 | 6861 |   return 0; | 
 | 6862 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6863 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6864 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6865 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6866 |  | 
 | 6867 | 	       ac_cv_no_strict_aliasing=no | 
 | 6868 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6869 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6870 |  | 
 | 6871 |                ac_cv_no_strict_aliasing=yes | 
 | 6872 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6873 | fi | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6875 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6876 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 6877 |  | 
 | 6878 | 	   ac_cv_no_strict_aliasing=no | 
 | 6879 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6880 | fi | 
| Gregory P. Smith | e0450c6 | 2009-11-01 21:11:36 +0000 | [diff] [blame] | 6881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 6882 | fi | 
 | 6883 |  | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6884 |      CFLAGS="$save_CFLAGS" | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6885 |      CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 6886 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 | 
 | 6887 | $as_echo "$ac_cv_no_strict_aliasing" >&6; } | 
| Benjamin Peterson | e6c9d24 | 2010-03-30 17:34:47 +0000 | [diff] [blame] | 6888 |     if test $ac_cv_no_strict_aliasing = yes | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 6889 |     then | 
 | 6890 |       BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" | 
 | 6891 |     fi | 
 | 6892 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6893 |     # ICC doesn't recognize the option, but only emits a warning | 
 | 6894 |     ## XXX does it emit an unused result warning and can it be disabled? | 
 | 6895 |     case "$CC" in | 
 | 6896 |     *icc*) | 
 | 6897 |     ac_cv_disable_unused_result_warning=no | 
 | 6898 |     ;; | 
 | 6899 |     *) | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6900 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 | 
 | 6901 | $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } | 
 | 6902 |      ac_save_cc="$CC" | 
 | 6903 |      CC="$CC -Wunused-result -Werror" | 
 | 6904 |      save_CFLAGS="$CFLAGS" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 6905 |      if ${ac_cv_disable_unused_result_warning+:} false; then : | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6906 |   $as_echo_n "(cached) " >&6 | 
 | 6907 | else | 
 | 6908 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6909 | /* end confdefs.h.  */ | 
 | 6910 |  | 
 | 6911 |  | 
 | 6912 | int | 
 | 6913 | main () | 
 | 6914 | { | 
 | 6915 |  | 
 | 6916 |   ; | 
 | 6917 |   return 0; | 
 | 6918 | } | 
 | 6919 |  | 
 | 6920 | _ACEOF | 
 | 6921 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6922 |  | 
 | 6923 |            ac_cv_disable_unused_result_warning=yes | 
 | 6924 |  | 
 | 6925 | else | 
 | 6926 |  | 
 | 6927 |            ac_cv_disable_unused_result_warning=no | 
 | 6928 |  | 
 | 6929 | fi | 
 | 6930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6931 | fi | 
 | 6932 |  | 
 | 6933 |      CFLAGS="$save_CFLAGS" | 
 | 6934 |      CC="$ac_save_cc" | 
 | 6935 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 | 
 | 6936 | $as_echo "$ac_cv_disable_unused_result_warning" >&6; } | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 6937 |     ;; | 
 | 6938 |     esac | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 6939 |  | 
 | 6940 |     if test $ac_cv_disable_unused_result_warning = yes | 
 | 6941 |     then | 
 | 6942 |       BASECFLAGS="$BASECFLAGS -Wno-unused-result" | 
| Serhiy Storchaka | ea80ffb | 2016-09-11 21:56:32 +0300 | [diff] [blame] | 6943 |       CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" | 
 | 6944 |     fi | 
 | 6945 |  | 
 | 6946 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 | 
 | 6947 | $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } | 
 | 6948 |      ac_save_cc="$CC" | 
 | 6949 |      CC="$CC -Wunused-parameter -Werror" | 
 | 6950 |      if ${ac_cv_disable_unused_parameter_warning+:} false; then : | 
 | 6951 |   $as_echo_n "(cached) " >&6 | 
 | 6952 | else | 
 | 6953 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6954 | /* end confdefs.h.  */ | 
 | 6955 |  | 
 | 6956 |  | 
 | 6957 | int | 
 | 6958 | main () | 
 | 6959 | { | 
 | 6960 |  | 
 | 6961 |   ; | 
 | 6962 |   return 0; | 
 | 6963 | } | 
 | 6964 |  | 
 | 6965 | _ACEOF | 
 | 6966 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6967 |  | 
 | 6968 |            ac_cv_disable_unused_parameter_warning=yes | 
 | 6969 |  | 
 | 6970 | else | 
 | 6971 |  | 
 | 6972 |            ac_cv_disable_unused_parameter_warning=no | 
 | 6973 |  | 
 | 6974 | fi | 
 | 6975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6976 | fi | 
 | 6977 |  | 
 | 6978 |      CC="$ac_save_cc" | 
 | 6979 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 | 
 | 6980 | $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } | 
 | 6981 |  | 
 | 6982 |     if test $ac_cv_disable_unused_parameter_warning = yes | 
 | 6983 |     then | 
 | 6984 |       CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" | 
 | 6985 |     fi | 
 | 6986 |  | 
 | 6987 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 | 
 | 6988 | $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } | 
 | 6989 |      ac_save_cc="$CC" | 
 | 6990 |      CC="$CC -Wmissing-field-initializers -Werror" | 
 | 6991 |      if ${ac_cv_disable_missing_field_initializers+:} false; then : | 
 | 6992 |   $as_echo_n "(cached) " >&6 | 
 | 6993 | else | 
 | 6994 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6995 | /* end confdefs.h.  */ | 
 | 6996 |  | 
 | 6997 |  | 
 | 6998 | int | 
 | 6999 | main () | 
 | 7000 | { | 
 | 7001 |  | 
 | 7002 |   ; | 
 | 7003 |   return 0; | 
 | 7004 | } | 
 | 7005 |  | 
 | 7006 | _ACEOF | 
 | 7007 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7008 |  | 
 | 7009 |            ac_cv_disable_missing_field_initializers=yes | 
 | 7010 |  | 
 | 7011 | else | 
 | 7012 |  | 
 | 7013 |            ac_cv_disable_missing_field_initializers=no | 
 | 7014 |  | 
 | 7015 | fi | 
 | 7016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7017 | fi | 
 | 7018 |  | 
 | 7019 |      CC="$ac_save_cc" | 
 | 7020 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 | 
 | 7021 | $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } | 
 | 7022 |  | 
 | 7023 |     if test $ac_cv_disable_missing_field_initializers = yes | 
 | 7024 |     then | 
 | 7025 |       CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" | 
| Benjamin Peterson | 7ddbf10 | 2011-09-23 13:23:22 -0400 | [diff] [blame] | 7026 |     fi | 
 | 7027 |  | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7028 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 | 
 | 7029 | $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } | 
 | 7030 |      ac_save_cc="$CC" | 
 | 7031 |      CC="$CC -Wsign-compare" | 
 | 7032 |      save_CFLAGS="$CFLAGS" | 
 | 7033 |      if ${ac_cv_enable_sign_compare_warning+:} false; then : | 
 | 7034 |   $as_echo_n "(cached) " >&6 | 
 | 7035 | else | 
 | 7036 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7037 | /* end confdefs.h.  */ | 
 | 7038 |  | 
 | 7039 |  | 
 | 7040 | int | 
 | 7041 | main () | 
 | 7042 | { | 
 | 7043 |  | 
 | 7044 |   ; | 
 | 7045 |   return 0; | 
 | 7046 | } | 
 | 7047 |  | 
 | 7048 | _ACEOF | 
 | 7049 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7050 |  | 
 | 7051 |            ac_cv_enable_sign_compare_warning=yes | 
 | 7052 |  | 
 | 7053 | else | 
 | 7054 |  | 
 | 7055 |            ac_cv_enable_sign_compare_warning=no | 
 | 7056 |  | 
 | 7057 | fi | 
 | 7058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7059 | fi | 
 | 7060 |  | 
 | 7061 |      CFLAGS="$save_CFLAGS" | 
 | 7062 |      CC="$ac_save_cc" | 
 | 7063 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 | 
 | 7064 | $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } | 
 | 7065 |  | 
 | 7066 |     if test $ac_cv_enable_sign_compare_warning = yes | 
 | 7067 |     then | 
 | 7068 |       BASECFLAGS="$BASECFLAGS -Wsign-compare" | 
 | 7069 |     fi | 
 | 7070 |  | 
 | 7071 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 | 
 | 7072 | $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } | 
 | 7073 |      ac_save_cc="$CC" | 
 | 7074 |      CC="$CC -Wunreachable-code" | 
 | 7075 |      save_CFLAGS="$CFLAGS" | 
 | 7076 |      if ${ac_cv_enable_unreachable_code_warning+:} false; then : | 
 | 7077 |   $as_echo_n "(cached) " >&6 | 
 | 7078 | else | 
 | 7079 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7080 | /* end confdefs.h.  */ | 
 | 7081 |  | 
 | 7082 |  | 
 | 7083 | int | 
 | 7084 | main () | 
 | 7085 | { | 
 | 7086 |  | 
 | 7087 |   ; | 
 | 7088 |   return 0; | 
 | 7089 | } | 
 | 7090 |  | 
 | 7091 | _ACEOF | 
 | 7092 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7093 |  | 
 | 7094 |            ac_cv_enable_unreachable_code_warning=yes | 
 | 7095 |  | 
 | 7096 | else | 
 | 7097 |  | 
 | 7098 |            ac_cv_enable_unreachable_code_warning=no | 
 | 7099 |  | 
 | 7100 | fi | 
 | 7101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7102 | fi | 
 | 7103 |  | 
 | 7104 |      CFLAGS="$save_CFLAGS" | 
 | 7105 |      CC="$ac_save_cc" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7106 |  | 
 | 7107 |     # Don't enable unreachable code warning in debug mode, since it usually | 
 | 7108 |     # results in non-standard code paths. | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7109 |     # Issue #24324: Unfortunately, the unreachable code warning does not work | 
 | 7110 |     # correctly on gcc and has been silently removed from the compiler. | 
 | 7111 |     # It is supported on clang but on OS X systems gcc may be an alias | 
 | 7112 |     # for clang.  Try to determine if the compiler is not really gcc and, | 
 | 7113 |     # if so, only then enable the warning. | 
 | 7114 |     if test $ac_cv_enable_unreachable_code_warning = yes && \ | 
 | 7115 |         test "$Py_DEBUG" != "true" && \ | 
 | 7116 |         test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7117 |     then | 
 | 7118 |       BASECFLAGS="$BASECFLAGS -Wunreachable-code" | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7119 |     else | 
 | 7120 |       ac_cv_enable_unreachable_code_warning=no | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7121 |     fi | 
| Ned Deily | bec699e | 2016-03-08 00:28:37 -0500 | [diff] [blame] | 7122 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 | 
 | 7123 | $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } | 
| Charles-François Natali | 7f9cc93 | 2014-08-01 21:57:49 +0100 | [diff] [blame] | 7124 |  | 
| Victor Stinner | 193ee0a | 2017-02-06 14:24:00 +0100 | [diff] [blame] | 7125 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 | 
 | 7126 | $as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } | 
 | 7127 |      ac_save_cc="$CC" | 
 | 7128 |      CC="$CC -Werror=implicit-function-declaration" | 
 | 7129 |      if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : | 
 | 7130 |   $as_echo_n "(cached) " >&6 | 
 | 7131 | else | 
 | 7132 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7133 | /* end confdefs.h.  */ | 
 | 7134 |  | 
 | 7135 |  | 
 | 7136 | int | 
 | 7137 | main () | 
 | 7138 | { | 
 | 7139 |  | 
 | 7140 |   ; | 
 | 7141 |   return 0; | 
 | 7142 | } | 
 | 7143 |  | 
 | 7144 | _ACEOF | 
 | 7145 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7146 |  | 
 | 7147 |            ac_cv_enable_implicit_function_declaration_error=yes | 
 | 7148 |  | 
 | 7149 | else | 
 | 7150 |  | 
 | 7151 |            ac_cv_enable_implicit_function_declaration_error=no | 
 | 7152 |  | 
 | 7153 | fi | 
 | 7154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7155 | fi | 
 | 7156 |  | 
 | 7157 |      CC="$ac_save_cc" | 
 | 7158 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 | 
 | 7159 | $as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } | 
 | 7160 |  | 
 | 7161 |     if test $ac_cv_enable_implicit_function_declaration_error = yes | 
 | 7162 |     then | 
 | 7163 |       CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" | 
 | 7164 |     fi | 
 | 7165 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7166 |     # if using gcc on alpha, use -mieee to get (near) full IEEE 754 | 
 | 7167 |     # support.  Without this, treatment of subnormals doesn't follow | 
 | 7168 |     # the standard. | 
| Matthias Klose | df2aecb | 2012-03-15 22:19:28 +0100 | [diff] [blame] | 7169 |     case $host in | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7170 |          alpha*) | 
 | 7171 |                 BASECFLAGS="$BASECFLAGS -mieee" | 
 | 7172 |                 ;; | 
 | 7173 |     esac | 
 | 7174 |  | 
 | 7175 |     case $ac_sys_system in | 
 | 7176 | 	SCO_SV*) | 
 | 7177 | 	    BASECFLAGS="$BASECFLAGS -m486 -DSCO5" | 
 | 7178 | 	    ;; | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7179 |  | 
 | 7180 |     # is there any other compiler on Darwin besides gcc? | 
 | 7181 |     Darwin*) | 
 | 7182 |         # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd | 
 | 7183 |         # used to be here, but non-Apple gcc doesn't accept them. | 
 | 7184 |         if test "${CC}" = gcc | 
 | 7185 |         then | 
 | 7186 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7187 | $as_echo_n "checking which compiler should be used... " >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7188 |             case "${UNIVERSALSDK}" in | 
 | 7189 |             */MacOSX10.4u.sdk) | 
 | 7190 |                 # Build using 10.4 SDK, force usage of gcc when the | 
 | 7191 |                 # compiler is gcc, otherwise the user will get very | 
 | 7192 |                 # confusing error messages when building on OSX 10.6 | 
 | 7193 |                 CC=gcc-4.0 | 
 | 7194 |                 CPP=cpp-4.0 | 
 | 7195 |                 ;; | 
 | 7196 |             esac | 
 | 7197 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7198 | $as_echo "$CC" >&6; } | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7199 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7200 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7201 |         if test "${enable_universalsdk}" | 
 | 7202 |         then | 
 | 7203 |             case "$UNIVERSAL_ARCHS" in | 
 | 7204 |             32-bit) | 
 | 7205 |                UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" | 
 | 7206 |                LIPO_32BIT_FLAGS="" | 
 | 7207 |                ARCH_RUN_32BIT="" | 
 | 7208 |                ;; | 
 | 7209 |             64-bit) | 
 | 7210 |                UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" | 
 | 7211 |                LIPO_32BIT_FLAGS="" | 
 | 7212 |                ARCH_RUN_32BIT="true" | 
 | 7213 |                ;; | 
 | 7214 |             all) | 
 | 7215 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" | 
 | 7216 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 7217 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 7218 |                ;; | 
 | 7219 |             intel) | 
 | 7220 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" | 
 | 7221 |                LIPO_32BIT_FLAGS="-extract i386" | 
 | 7222 |                ARCH_RUN_32BIT="/usr/bin/arch -i386" | 
 | 7223 |                ;; | 
 | 7224 |             intel-32) | 
 | 7225 |                UNIVERSAL_ARCH_FLAGS="-arch i386" | 
 | 7226 |                LIPO_32BIT_FLAGS="" | 
 | 7227 |                ARCH_RUN_32BIT="" | 
 | 7228 |                ;; | 
 | 7229 |             3-way) | 
 | 7230 |                UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" | 
 | 7231 |                LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" | 
 | 7232 |                ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" | 
 | 7233 |                ;; | 
 | 7234 |             *) | 
 | 7235 |                as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 | 
 | 7236 |                ;; | 
 | 7237 |             esac | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7238 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7239 |             CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" | 
 | 7240 |             LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" | 
 | 7241 |             if test "${UNIVERSALSDK}" != "/" | 
 | 7242 |             then | 
 | 7243 |                 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" | 
 | 7244 |             fi | 
 | 7245 |         fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7246 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7247 |         # Calculate an appropriate deployment target for this build: | 
 | 7248 |         # The deployment target value is used explicitly to enable certain | 
 | 7249 |         # features are enabled (such as builtin libedit support for readline) | 
| Raymond Hettinger | 15f44ab | 2016-08-30 10:47:49 -0700 | [diff] [blame] | 7250 |         # through the use of Apple's Availability Macros and is used as a | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7251 |         # component of the string returned by distutils.get_platform(). | 
 | 7252 |         # | 
 | 7253 |         # Use the value from: | 
 | 7254 |         # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified | 
 | 7255 |         # 2. the operating system version of the build machine if >= 10.6 | 
 | 7256 |         # 3. If running on OS X 10.3 through 10.5, use the legacy tests | 
 | 7257 |         #       below to pick either 10.3, 10.4, or 10.5 as the target. | 
 | 7258 |         # 4. If we are running on OS X 10.2 or earlier, good luck! | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7259 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7260 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 | 
 | 7261 | $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7262 |         cur_target_major=`sw_vers -productVersion | \ | 
 | 7263 |                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 7264 |         cur_target_minor=`sw_vers -productVersion | \ | 
 | 7265 |                 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 7266 |         cur_target="${cur_target_major}.${cur_target_minor}" | 
 | 7267 |         if test ${cur_target_major} -eq 10 && \ | 
 | 7268 |            test ${cur_target_minor} -ge 3 && \ | 
 | 7269 |            test ${cur_target_minor} -le 5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7270 |         then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 7271 |             # OS X 10.3 through 10.5 | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7272 |             cur_target=10.3 | 
 | 7273 |             if test ${enable_universalsdk} | 
 | 7274 |             then | 
 | 7275 |                 case "$UNIVERSAL_ARCHS" in | 
 | 7276 |                 all|3-way|intel|64-bit) | 
 | 7277 |                     # These configurations were first supported in 10.5 | 
 | 7278 |                     cur_target='10.5' | 
 | 7279 |                     ;; | 
 | 7280 |                 esac | 
 | 7281 |             else | 
 | 7282 |                 if test `/usr/bin/arch` = "i386" | 
 | 7283 |                 then | 
 | 7284 |                     # 10.4 was the first release to support Intel archs | 
 | 7285 |                     cur_target="10.4" | 
 | 7286 |                 fi | 
 | 7287 |             fi | 
 | 7288 |         fi | 
 | 7289 |         CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7290 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7291 |         # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the | 
 | 7292 |         # environment with a value that is the same as what we'll use | 
 | 7293 |         # in the Makefile to ensure that we'll get the same compiler | 
 | 7294 |         # environment during configure and build time. | 
 | 7295 |         MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" | 
 | 7296 |         export MACOSX_DEPLOYMENT_TARGET | 
 | 7297 |         EXPORT_MACOSX_DEPLOYMENT_TARGET='' | 
 | 7298 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 | 
 | 7299 | $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 7300 |  | 
| Ned Deily | 87adb6e | 2013-10-18 21:09:56 -0700 | [diff] [blame] | 7301 |         # end of Darwin* tests | 
 | 7302 |         ;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7303 |     esac | 
 | 7304 |     ;; | 
 | 7305 |  | 
 | 7306 | *) | 
 | 7307 |     case $ac_sys_system in | 
 | 7308 |     OpenUNIX*|UnixWare*) | 
 | 7309 | 	BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " | 
 | 7310 | 	;; | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7311 |     SCO_SV*) | 
 | 7312 | 	BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" | 
 | 7313 | 	;; | 
 | 7314 |     esac | 
 | 7315 |     ;; | 
 | 7316 | esac | 
 | 7317 |  | 
| Zachary Ware | 5af8564 | 2015-12-21 12:09:17 -0600 | [diff] [blame] | 7318 | # ICC needs -fp-model strict or floats behave badly | 
 | 7319 | case "$CC" in | 
 | 7320 | *icc*) | 
 | 7321 |     CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 
 | 7322 |     ;; | 
 | 7323 | esac | 
 | 7324 |  | 
| T. Wouters | ddbfa2c | 2017-05-23 01:30:49 +0200 | [diff] [blame] | 7325 | if test "$assertions" = 'true'; then | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7326 |   : | 
 | 7327 | else | 
 | 7328 |   OPT="-DNDEBUG $OPT" | 
 | 7329 | fi | 
 | 7330 |  | 
 | 7331 | if test "$ac_arch_flags" | 
 | 7332 | then | 
 | 7333 | 	BASECFLAGS="$BASECFLAGS $ac_arch_flags" | 
 | 7334 | fi | 
 | 7335 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7336 | # On some compilers, pthreads are available without further options | 
 | 7337 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 7338 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 7339 | # So we have to see first whether pthreads are available without | 
 | 7340 | # options before we can check whether -Kpthread improves anything. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 | 
 | 7342 | $as_echo_n "checking whether pthreads are available without options... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7343 | if ${ac_cv_pthread_is_default+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7344 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7345 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7346 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7347 |   ac_cv_pthread_is_default=no | 
 | 7348 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7349 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7350 | /* end confdefs.h.  */ | 
 | 7351 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7352 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7353 | #include <pthread.h> | 
 | 7354 |  | 
 | 7355 | void* routine(void* p){return NULL;} | 
 | 7356 |  | 
 | 7357 | int main(){ | 
 | 7358 |   pthread_t p; | 
 | 7359 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7360 |     return 1; | 
 | 7361 |   (void)pthread_detach(p); | 
 | 7362 |   return 0; | 
 | 7363 | } | 
 | 7364 |  | 
 | 7365 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7366 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7367 |  | 
 | 7368 |   ac_cv_pthread_is_default=yes | 
 | 7369 |   ac_cv_kthread=no | 
 | 7370 |   ac_cv_pthread=no | 
 | 7371 |  | 
 | 7372 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7373 |   ac_cv_pthread_is_default=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7374 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7375 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7376 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7377 | fi | 
 | 7378 |  | 
 | 7379 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7380 | fi | 
 | 7381 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 | 
 | 7383 | $as_echo "$ac_cv_pthread_is_default" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7384 |  | 
 | 7385 |  | 
 | 7386 | if test $ac_cv_pthread_is_default = yes | 
 | 7387 | then | 
 | 7388 |   ac_cv_kpthread=no | 
 | 7389 | else | 
 | 7390 | # -Kpthread, if available, provides the right #defines | 
 | 7391 | # and linker options to make pthread_create available | 
 | 7392 | # Some compilers won't report that they do not support -Kpthread, | 
 | 7393 | # so we need to run a program to see whether it really made the | 
 | 7394 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 | 
 | 7396 | $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7397 | if ${ac_cv_kpthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7398 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7399 | else | 
 | 7400 |   ac_save_cc="$CC" | 
 | 7401 | CC="$CC -Kpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7402 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7403 |   ac_cv_kpthread=no | 
 | 7404 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7405 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7406 | /* end confdefs.h.  */ | 
 | 7407 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7408 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7409 | #include <pthread.h> | 
 | 7410 |  | 
 | 7411 | void* routine(void* p){return NULL;} | 
 | 7412 |  | 
 | 7413 | int main(){ | 
 | 7414 |   pthread_t p; | 
 | 7415 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7416 |     return 1; | 
 | 7417 |   (void)pthread_detach(p); | 
 | 7418 |   return 0; | 
 | 7419 | } | 
 | 7420 |  | 
 | 7421 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7422 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7423 |   ac_cv_kpthread=yes | 
 | 7424 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7425 |   ac_cv_kpthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7426 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7427 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7428 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7429 | fi | 
 | 7430 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7431 | CC="$ac_save_cc" | 
 | 7432 | fi | 
 | 7433 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 | 
 | 7435 | $as_echo "$ac_cv_kpthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7436 | fi | 
 | 7437 |  | 
 | 7438 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no | 
 | 7439 | then | 
 | 7440 | # -Kthread, if available, provides the right #defines | 
 | 7441 | # and linker options to make pthread_create available | 
 | 7442 | # Some compilers won't report that they do not support -Kthread, | 
 | 7443 | # so we need to run a program to see whether it really made the | 
 | 7444 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 | 
 | 7446 | $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7447 | if ${ac_cv_kthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7448 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7449 | else | 
 | 7450 |   ac_save_cc="$CC" | 
 | 7451 | CC="$CC -Kthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7452 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7453 |   ac_cv_kthread=no | 
 | 7454 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7455 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7456 | /* end confdefs.h.  */ | 
 | 7457 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7458 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7459 | #include <pthread.h> | 
 | 7460 |  | 
 | 7461 | void* routine(void* p){return NULL;} | 
 | 7462 |  | 
 | 7463 | int main(){ | 
 | 7464 |   pthread_t p; | 
 | 7465 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7466 |     return 1; | 
 | 7467 |   (void)pthread_detach(p); | 
 | 7468 |   return 0; | 
 | 7469 | } | 
 | 7470 |  | 
 | 7471 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7472 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7473 |   ac_cv_kthread=yes | 
 | 7474 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7475 |   ac_cv_kthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7476 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7477 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7478 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7479 | fi | 
 | 7480 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7481 | CC="$ac_save_cc" | 
 | 7482 | fi | 
 | 7483 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 | 
 | 7485 | $as_echo "$ac_cv_kthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7486 | fi | 
 | 7487 |  | 
 | 7488 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no | 
 | 7489 | then | 
 | 7490 | # -pthread, if available, provides the right #defines | 
 | 7491 | # and linker options to make pthread_create available | 
 | 7492 | # Some compilers won't report that they do not support -pthread, | 
 | 7493 | # so we need to run a program to see whether it really made the | 
 | 7494 | # function available. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 | 
 | 7496 | $as_echo_n "checking whether $CC accepts -pthread... " >&6; } | 
| doko@python.org | 7981f20 | 2013-01-25 15:33:25 +0100 | [diff] [blame] | 7497 | if ${ac_cv_pthread+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7498 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7499 | else | 
 | 7500 |   ac_save_cc="$CC" | 
 | 7501 | CC="$CC -pthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7502 | if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7503 |   ac_cv_pthread=no | 
 | 7504 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7505 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7506 | /* end confdefs.h.  */ | 
 | 7507 |  | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 7508 | #include <stdio.h> | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7509 | #include <pthread.h> | 
 | 7510 |  | 
 | 7511 | void* routine(void* p){return NULL;} | 
 | 7512 |  | 
 | 7513 | int main(){ | 
 | 7514 |   pthread_t p; | 
 | 7515 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 7516 |     return 1; | 
 | 7517 |   (void)pthread_detach(p); | 
 | 7518 |   return 0; | 
 | 7519 | } | 
 | 7520 |  | 
 | 7521 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7522 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7523 |   ac_cv_pthread=yes | 
 | 7524 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7525 |   ac_cv_pthread=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7526 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7527 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7528 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7529 | fi | 
 | 7530 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7531 | CC="$ac_save_cc" | 
 | 7532 | fi | 
 | 7533 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 | 
 | 7535 | $as_echo "$ac_cv_pthread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7536 | fi | 
 | 7537 |  | 
 | 7538 | # If we have set a CC compiler flag for thread support then | 
 | 7539 | # check if it works for CXX, too. | 
 | 7540 | ac_cv_cxx_thread=no | 
 | 7541 | if test ! -z "$CXX" | 
 | 7542 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 | 
 | 7544 | $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7545 | ac_save_cxx="$CXX" | 
 | 7546 |  | 
 | 7547 | if test "$ac_cv_kpthread" = "yes" | 
 | 7548 | then | 
 | 7549 |   CXX="$CXX -Kpthread" | 
 | 7550 |   ac_cv_cxx_thread=yes | 
 | 7551 | elif test "$ac_cv_kthread" = "yes" | 
 | 7552 | then | 
 | 7553 |   CXX="$CXX -Kthread" | 
 | 7554 |   ac_cv_cxx_thread=yes | 
 | 7555 | elif test "$ac_cv_pthread" = "yes" | 
 | 7556 | then | 
 | 7557 |   CXX="$CXX -pthread" | 
 | 7558 |   ac_cv_cxx_thread=yes | 
 | 7559 | fi | 
 | 7560 |  | 
 | 7561 | if test $ac_cv_cxx_thread = yes | 
 | 7562 | then | 
 | 7563 |   echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext | 
 | 7564 |   $CXX -c conftest.$ac_ext 2>&5 | 
 | 7565 |   if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 7566 |      && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 7567 |   then | 
 | 7568 |     ac_cv_cxx_thread=yes | 
 | 7569 |   else | 
 | 7570 |     ac_cv_cxx_thread=no | 
 | 7571 |   fi | 
 | 7572 |   rm -fr conftest* | 
 | 7573 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 | 
 | 7575 | $as_echo "$ac_cv_cxx_thread" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7576 | fi | 
 | 7577 | CXX="$ac_save_cxx" | 
 | 7578 |  | 
 | 7579 |  | 
 | 7580 | # checks for header files | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 7582 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7583 | if ${ac_cv_header_stdc+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7584 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7585 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7586 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7587 | /* end confdefs.h.  */ | 
 | 7588 | #include <stdlib.h> | 
 | 7589 | #include <stdarg.h> | 
 | 7590 | #include <string.h> | 
 | 7591 | #include <float.h> | 
 | 7592 |  | 
 | 7593 | int | 
 | 7594 | main () | 
 | 7595 | { | 
 | 7596 |  | 
 | 7597 |   ; | 
 | 7598 |   return 0; | 
 | 7599 | } | 
 | 7600 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7601 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7602 |   ac_cv_header_stdc=yes | 
 | 7603 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7604 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7605 | fi | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7607 |  | 
 | 7608 | if test $ac_cv_header_stdc = yes; then | 
 | 7609 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7610 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7611 | /* end confdefs.h.  */ | 
 | 7612 | #include <string.h> | 
 | 7613 |  | 
 | 7614 | _ACEOF | 
 | 7615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7616 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 7617 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7618 | else | 
 | 7619 |   ac_cv_header_stdc=no | 
 | 7620 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7621 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7622 |  | 
 | 7623 | fi | 
 | 7624 |  | 
 | 7625 | if test $ac_cv_header_stdc = yes; then | 
 | 7626 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7627 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7628 | /* end confdefs.h.  */ | 
 | 7629 | #include <stdlib.h> | 
 | 7630 |  | 
 | 7631 | _ACEOF | 
 | 7632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7633 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 7634 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7635 | else | 
 | 7636 |   ac_cv_header_stdc=no | 
 | 7637 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 7638 | rm -f conftest* | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7639 |  | 
 | 7640 | fi | 
 | 7641 |  | 
 | 7642 | if test $ac_cv_header_stdc = yes; then | 
 | 7643 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7644 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7645 |   : | 
 | 7646 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7647 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7648 | /* end confdefs.h.  */ | 
 | 7649 | #include <ctype.h> | 
 | 7650 | #include <stdlib.h> | 
 | 7651 | #if ((' ' & 0x0FF) == 0x020) | 
 | 7652 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 7653 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 7654 | #else | 
 | 7655 | # define ISLOWER(c) \ | 
 | 7656 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 7657 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 7658 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 7659 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 7660 | #endif | 
 | 7661 |  | 
 | 7662 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 7663 | int | 
 | 7664 | main () | 
 | 7665 | { | 
 | 7666 |   int i; | 
 | 7667 |   for (i = 0; i < 256; i++) | 
 | 7668 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 7669 | 	|| toupper (i) != TOUPPER (i)) | 
 | 7670 |       return 2; | 
 | 7671 |   return 0; | 
 | 7672 | } | 
 | 7673 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7674 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 7675 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7676 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7677 |   ac_cv_header_stdc=no | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7678 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7679 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 7680 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7681 | fi | 
 | 7682 |  | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7683 | fi | 
 | 7684 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 7686 | $as_echo "$ac_cv_header_stdc" >&6; } | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7687 | if test $ac_cv_header_stdc = yes; then | 
 | 7688 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7689 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 7690 |  | 
 | 7691 | fi | 
 | 7692 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7693 | for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7694 | fcntl.h grp.h \ | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 7695 | ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ | 
| Benjamin Peterson | 4fe5510 | 2016-09-06 11:58:01 -0700 | [diff] [blame] | 7696 | sched.h shadow.h signal.h stropts.h termios.h \ | 
| Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 7697 | unistd.h utime.h \ | 
| Jesus Cea | d8b9ae6 | 2011-11-14 19:07:41 +0100 | [diff] [blame] | 7698 | poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ | 
| Antoine Pitrou | bcf2b59 | 2012-02-08 23:28:36 +0100 | [diff] [blame] | 7699 | sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ | 
| Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 7700 | sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ | 
| Benjamin Peterson | fb2ae15 | 2016-12-19 23:54:25 -0800 | [diff] [blame] | 7701 | sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ | 
| Martin v. Löwis | 9d6c669 | 2012-02-03 17:44:58 +0100 | [diff] [blame] | 7702 | sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 7703 | sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7704 | libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ | 
| Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 7705 | linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ | 
| Christian Heimes | 75b9618 | 2017-09-05 15:53:09 +0200 | [diff] [blame] | 7706 | sys/endian.h sys/sysmacros.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7707 | do : | 
 | 7708 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 7709 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7710 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7712 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | _ACEOF | 
 | 7714 |  | 
 | 7715 | fi | 
 | 7716 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7717 | done | 
 | 7718 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7719 | ac_header_dirent=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7720 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7721 |   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 7722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | 
 | 7723 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7724 | if eval \${$as_ac_Header+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7725 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7726 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7727 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7728 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7729 | #include <sys/types.h> | 
 | 7730 | #include <$ac_hdr> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7731 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7732 | int | 
 | 7733 | main () | 
 | 7734 | { | 
 | 7735 | if ((DIR *) 0) | 
 | 7736 | return 0; | 
 | 7737 |   ; | 
 | 7738 |   return 0; | 
 | 7739 | } | 
 | 7740 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7741 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7742 |   eval "$as_ac_Header=yes" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7743 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7744 |   eval "$as_ac_Header=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7745 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7747 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7748 | eval ac_res=\$$as_ac_Header | 
 | 7749 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 7750 | $as_echo "$ac_res" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 7751 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7752 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7753 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | _ACEOF | 
 | 7755 |  | 
 | 7756 | ac_header_dirent=$ac_hdr; break | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7757 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7758 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7759 | done | 
 | 7760 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 7761 | if test $ac_header_dirent = dirent.h; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7762 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7763 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7764 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7765 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7766 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7767 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7769 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7771 | /* Override any GCC internal prototype to avoid an error. | 
 | 7772 |    Use char because int might match the return type of a GCC | 
 | 7773 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 | #ifdef __cplusplus | 
 | 7775 | extern "C" | 
 | 7776 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7777 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7778 | int | 
 | 7779 | main () | 
 | 7780 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7781 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7782 |   ; | 
 | 7783 |   return 0; | 
 | 7784 | } | 
 | 7785 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7786 | for ac_lib in '' dir; do | 
 | 7787 |   if test -z "$ac_lib"; then | 
 | 7788 |     ac_res="none required" | 
 | 7789 |   else | 
 | 7790 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7791 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7792 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7793 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7794 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7795 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7796 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7797 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7798 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7799 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7800 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7801 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7802 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7803 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7804 | else | 
 | 7805 |   ac_cv_search_opendir=no | 
 | 7806 | fi | 
 | 7807 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7808 | LIBS=$ac_func_search_save_LIBS | 
 | 7809 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7811 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7812 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7813 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7814 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7815 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7816 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7817 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7818 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7819 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
 | 7820 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7821 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7822 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7823 | else | 
 | 7824 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7826 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7827 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7828 | /* Override any GCC internal prototype to avoid an error. | 
 | 7829 |    Use char because int might match the return type of a GCC | 
 | 7830 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7831 | #ifdef __cplusplus | 
 | 7832 | extern "C" | 
 | 7833 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7834 | char opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | int | 
 | 7836 | main () | 
 | 7837 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7838 | return opendir (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7839 |   ; | 
 | 7840 |   return 0; | 
 | 7841 | } | 
 | 7842 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7843 | for ac_lib in '' x; do | 
 | 7844 |   if test -z "$ac_lib"; then | 
 | 7845 |     ac_res="none required" | 
 | 7846 |   else | 
 | 7847 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7848 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7849 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7850 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7851 |   ac_cv_search_opendir=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7852 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7853 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7854 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7855 |   if ${ac_cv_search_opendir+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7856 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 7857 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7858 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7859 | if ${ac_cv_search_opendir+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7860 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7861 | else | 
 | 7862 |   ac_cv_search_opendir=no | 
 | 7863 | fi | 
 | 7864 | rm conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7865 | LIBS=$ac_func_search_save_LIBS | 
 | 7866 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
 | 7868 | $as_echo "$ac_cv_search_opendir" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7869 | ac_res=$ac_cv_search_opendir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7870 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7871 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7872 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7873 | fi | 
 | 7874 |  | 
 | 7875 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7876 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | 
 | 7878 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7879 | if ${ac_cv_header_sys_types_h_makedev+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7880 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7881 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7882 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7883 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7884 | #include <sys/types.h> | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7885 | int | 
 | 7886 | main () | 
 | 7887 | { | 
 | 7888 | return makedev(0, 0); | 
 | 7889 |   ; | 
 | 7890 |   return 0; | 
 | 7891 | } | 
 | 7892 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7893 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7894 |   ac_cv_header_sys_types_h_makedev=yes | 
 | 7895 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7896 |   ac_cv_header_sys_types_h_makedev=no | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7897 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7898 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 7899 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7900 |  | 
 | 7901 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 | 
 | 7903 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7904 |  | 
 | 7905 | if test $ac_cv_header_sys_types_h_makedev = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7906 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7907 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7908 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7909 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7910 |  | 
 | 7911 | fi | 
 | 7912 |  | 
 | 7913 |  | 
 | 7914 |  | 
 | 7915 |   if test $ac_cv_header_sys_mkdev_h = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7916 |     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7917 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7918 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7919 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 7920 |  | 
 | 7921 | fi | 
 | 7922 |  | 
 | 7923 |  | 
 | 7924 |   fi | 
 | 7925 | fi | 
 | 7926 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7927 |  | 
| Benjamin Peterson | 93b2dee | 2016-09-09 10:22:45 -0700 | [diff] [blame] | 7928 | # bluetooth/bluetooth.h has been known to not compile with -std=c99. | 
 | 7929 | # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 | 
 | 7930 | SAVE_CFLAGS=$CFLAGS | 
 | 7931 | CFLAGS="-std=c99 $CFLAGS" | 
 | 7932 | for ac_header in bluetooth/bluetooth.h | 
 | 7933 | do : | 
 | 7934 |   ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" | 
 | 7935 | if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : | 
 | 7936 |   cat >>confdefs.h <<_ACEOF | 
 | 7937 | #define HAVE_BLUETOOTH_BLUETOOTH_H 1 | 
 | 7938 | _ACEOF | 
 | 7939 |  | 
 | 7940 | fi | 
 | 7941 |  | 
 | 7942 | done | 
 | 7943 |  | 
 | 7944 | CFLAGS=$SAVE_CFLAGS | 
 | 7945 |  | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7946 | # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. | 
 | 7947 | for ac_header in net/if.h | 
 | 7948 | do : | 
 | 7949 |   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> | 
 | 7950 | #ifdef STDC_HEADERS | 
 | 7951 | # include <stdlib.h> | 
 | 7952 | # include <stddef.h> | 
 | 7953 | #else | 
 | 7954 | # ifdef HAVE_STDLIB_H | 
 | 7955 | #  include <stdlib.h> | 
 | 7956 | # endif | 
 | 7957 | #endif | 
 | 7958 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7959 | # include <sys/socket.h> | 
 | 7960 | #endif | 
 | 7961 |  | 
 | 7962 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7963 | if test "x$ac_cv_header_net_if_h" = xyes; then : | 
| Gregory P. Smith | 3b1f2c3 | 2011-05-15 12:18:23 -0700 | [diff] [blame] | 7964 |   cat >>confdefs.h <<_ACEOF | 
 | 7965 | #define HAVE_NET_IF_H 1 | 
 | 7966 | _ACEOF | 
 | 7967 |  | 
 | 7968 | fi | 
 | 7969 |  | 
 | 7970 | done | 
 | 7971 |  | 
 | 7972 |  | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7973 | # On Linux, netlink.h requires asm/types.h | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7974 | for ac_header in linux/netlink.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7975 | do : | 
 | 7976 |   ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7977 | #ifdef HAVE_ASM_TYPES_H | 
 | 7978 | #include <asm/types.h> | 
 | 7979 | #endif | 
 | 7980 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7981 | #include <sys/socket.h> | 
 | 7982 | #endif | 
 | 7983 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7984 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 7985 | if test "x$ac_cv_header_linux_netlink_h" = xyes; then : | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7986 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 7987 | #define HAVE_LINUX_NETLINK_H 1 | 
| Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 7988 | _ACEOF | 
 | 7989 |  | 
 | 7990 | fi | 
 | 7991 |  | 
 | 7992 | done | 
 | 7993 |  | 
 | 7994 |  | 
| caavery | effc12f | 2017-09-06 18:18:10 -0400 | [diff] [blame] | 7995 | for ac_header in linux/vm_sockets.h | 
 | 7996 | do : | 
 | 7997 |   ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " | 
 | 7998 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7999 | #include <sys/socket.h> | 
 | 8000 | #endif | 
 | 8001 |  | 
 | 8002 | " | 
 | 8003 | if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : | 
 | 8004 |   cat >>confdefs.h <<_ACEOF | 
 | 8005 | #define HAVE_LINUX_VM_SOCKETS_H 1 | 
 | 8006 | _ACEOF | 
 | 8007 |  | 
 | 8008 | fi | 
 | 8009 |  | 
 | 8010 | done | 
 | 8011 |  | 
 | 8012 |  | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8013 | # On Linux, can.h and can/raw.h require sys/socket.h | 
| Charles-François Natali | 773e42d | 2013-02-05 19:42:01 +0100 | [diff] [blame] | 8014 | for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h | 
| Charles-François Natali | 47413c1 | 2011-10-06 19:47:44 +0200 | [diff] [blame] | 8015 | do : | 
 | 8016 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 8017 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | 
 | 8018 | #ifdef HAVE_SYS_SOCKET_H | 
 | 8019 | #include <sys/socket.h> | 
 | 8020 | #endif | 
 | 8021 |  | 
 | 8022 | " | 
 | 8023 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 8024 |   cat >>confdefs.h <<_ACEOF | 
 | 8025 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 8026 | _ACEOF | 
 | 8027 |  | 
 | 8028 | fi | 
 | 8029 |  | 
 | 8030 | done | 
 | 8031 |  | 
 | 8032 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8033 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8034 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 | 
 | 8036 | $as_echo_n "checking for clock_t in time.h... " >&6; } | 
 | 8037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8038 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8039 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 |  | 
 | 8041 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8042 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8043 |   $EGREP "clock_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8044 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8045 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8046 |  | 
 | 8047 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8048 | $as_echo "#define clock_t long" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8049 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8050 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8051 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8052 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8053 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 8055 | $as_echo "$was_it_defined" >&6; } | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8056 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 | 
 | 8058 | $as_echo_n "checking for makedev... " >&6; } | 
 | 8059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8060 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8061 |  | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8062 | #if defined(MAJOR_IN_MKDEV) | 
 | 8063 | #include <sys/mkdev.h> | 
 | 8064 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 8065 | #include <sys/sysmacros.h> | 
 | 8066 | #else | 
 | 8067 | #include <sys/types.h> | 
 | 8068 | #endif | 
 | 8069 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8070 | int | 
 | 8071 | main () | 
 | 8072 | { | 
| Jesus Cea | 740f53a | 2010-04-28 11:35:30 +0000 | [diff] [blame] | 8073 |  | 
 | 8074 |   makedev(0, 0) | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8075 |   ; | 
 | 8076 |   return 0; | 
 | 8077 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8078 |  | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8079 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8080 | if ac_fn_c_try_link "$LINENO"; then : | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8081 |   ac_cv_has_makedev=yes | 
 | 8082 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8083 |   ac_cv_has_makedev=no | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8084 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8085 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8086 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 | 
 | 8088 | $as_echo "$ac_cv_has_makedev" >&6; } | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8089 | if test "$ac_cv_has_makedev" = "yes"; then | 
 | 8090 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8091 | $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h | 
| Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 8092 |  | 
 | 8093 | fi | 
 | 8094 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 8095 | # byte swapping | 
 | 8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 | 
 | 8097 | $as_echo_n "checking for le64toh... " >&6; } | 
 | 8098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8099 | /* end confdefs.h.  */ | 
 | 8100 |  | 
 | 8101 | #ifdef HAVE_ENDIAN_H | 
 | 8102 | #include <endian.h> | 
 | 8103 | #elif defined(HAVE_SYS_ENDIAN_H) | 
 | 8104 | #include <sys/endian.h> | 
 | 8105 | #endif | 
 | 8106 |  | 
 | 8107 | int | 
 | 8108 | main () | 
 | 8109 | { | 
 | 8110 |  | 
 | 8111 |    le64toh(1) | 
 | 8112 |   ; | 
 | 8113 |   return 0; | 
 | 8114 | } | 
 | 8115 |  | 
 | 8116 | _ACEOF | 
 | 8117 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8118 |   ac_cv_has_le64toh=yes | 
 | 8119 | else | 
 | 8120 |   ac_cv_has_le64toh=no | 
 | 8121 | fi | 
 | 8122 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8123 |     conftest$ac_exeext conftest.$ac_ext | 
 | 8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 | 
 | 8125 | $as_echo "$ac_cv_has_le64toh" >&6; } | 
 | 8126 | if test "$ac_cv_has_le64toh" = "yes"; then | 
 | 8127 |  | 
 | 8128 | $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h | 
 | 8129 |  | 
 | 8130 | fi | 
 | 8131 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8132 | use_lfs=yes | 
| doko@ubuntu.com | 006a56c | 2016-06-14 10:15:25 +0200 | [diff] [blame] | 8133 | # Don't use largefile support for GNU/Hurd | 
 | 8134 | case $ac_sys_system in GNU*) | 
 | 8135 |   use_lfs=no | 
 | 8136 | esac | 
 | 8137 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8138 | if test "$use_lfs" = "yes"; then | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8139 | # Two defines needed to enable largefile support on various platforms | 
 | 8140 | # These may affect some typedefs | 
| Georg Brandl | 216e404 | 2011-02-19 08:58:23 +0000 | [diff] [blame] | 8141 | case $ac_sys_system/$ac_sys_release in | 
 | 8142 | AIX*) | 
 | 8143 |  | 
 | 8144 | $as_echo "#define _LARGE_FILES 1" >>confdefs.h | 
 | 8145 |  | 
 | 8146 |     ;; | 
 | 8147 | esac | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8148 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8149 | $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8150 |  | 
 | 8151 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8152 | $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 8153 |  | 
| Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 8154 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8155 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8156 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 8157 | cat >> confdefs.h <<\EOF | 
 | 8158 | #if defined(SCO_DS) | 
 | 8159 | #undef _OFF_T | 
 | 8160 | #endif | 
 | 8161 | EOF | 
 | 8162 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8163 | # Type availability checks | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8164 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8165 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8166 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8167 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8168 |  | 
 | 8169 | cat >>confdefs.h <<_ACEOF | 
 | 8170 | #define mode_t int | 
 | 8171 | _ACEOF | 
 | 8172 |  | 
 | 8173 | fi | 
 | 8174 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8175 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8176 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8177 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8178 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 |  | 
 | 8180 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8181 | #define off_t long int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8182 | _ACEOF | 
 | 8183 |  | 
 | 8184 | fi | 
 | 8185 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8186 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8187 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8188 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8189 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8190 |  | 
 | 8191 | cat >>confdefs.h <<_ACEOF | 
 | 8192 | #define pid_t int | 
 | 8193 | _ACEOF | 
 | 8194 |  | 
 | 8195 | fi | 
 | 8196 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8197 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8198 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | bada4c3 | 2010-04-25 21:18:48 +0000 | [diff] [blame] | 8199 | #define RETSIGTYPE void | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8201 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8202 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8203 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8204 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8205 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8206 |  | 
 | 8207 | cat >>confdefs.h <<_ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8208 | #define size_t unsigned int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8209 | _ACEOF | 
 | 8210 |  | 
 | 8211 | fi | 
 | 8212 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 8214 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8215 | if ${ac_cv_type_uid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8216 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8217 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8218 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8219 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8220 | #include <sys/types.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8221 |  | 
 | 8222 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8223 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8224 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8225 |   ac_cv_type_uid_t=yes | 
 | 8226 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8227 |   ac_cv_type_uid_t=no | 
 | 8228 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 8229 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8230 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8231 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 8233 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8234 | if test $ac_cv_type_uid_t = no; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8235 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8236 | $as_echo "#define uid_t int" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8237 |  | 
 | 8238 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8239 | $as_echo "#define gid_t int" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8240 |  | 
 | 8241 | fi | 
 | 8242 |  | 
| Mark Dickinson | 983bc16 | 2012-12-02 12:11:38 +0000 | [diff] [blame] | 8243 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8244 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8245 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8246 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8247 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8248 |  | 
 | 8249 | fi | 
 | 8250 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 8251 | ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" | 
 | 8252 | if test "x$ac_cv_type___uint128_t" = xyes; then : | 
 | 8253 |  | 
 | 8254 | $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h | 
 | 8255 |  | 
 | 8256 | fi | 
 | 8257 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8258 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8259 | # Sizes of various common basic types | 
| Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 8260 | # ANSI C requires sizeof(char) == 1, so no need to check it | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8261 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8262 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8263 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8264 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 
 | 8266 | $as_echo_n "checking size of int... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8267 | if ${ac_cv_sizeof_int+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8268 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8270 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8272 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8273 |   if test "$ac_cv_type_int" = yes; then | 
 | 8274 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8275 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8276 | as_fn_error 77 "cannot compute sizeof (int) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8277 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8278 |    else | 
 | 8279 |      ac_cv_sizeof_int=0 | 
 | 8280 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8281 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8282 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8283 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | 
 | 8285 | $as_echo "$ac_cv_sizeof_int" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8286 |  | 
 | 8287 |  | 
 | 8288 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8289 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8290 | #define SIZEOF_INT $ac_cv_sizeof_int | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8292 |  | 
 | 8293 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8294 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8295 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8296 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8297 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | 
 | 8299 | $as_echo_n "checking size of long... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8300 | if ${ac_cv_sizeof_long+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8301 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8302 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8303 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8306 |   if test "$ac_cv_type_long" = yes; then | 
 | 8307 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8309 | as_fn_error 77 "cannot compute sizeof (long) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8310 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8311 |    else | 
 | 8312 |      ac_cv_sizeof_long=0 | 
 | 8313 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8315 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8316 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | 
 | 8318 | $as_echo "$ac_cv_sizeof_long" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8319 |  | 
 | 8320 |  | 
 | 8321 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8322 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8323 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | _ACEOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8325 |  | 
 | 8326 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8327 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8328 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8329 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8330 | # This bug is HP SR number 8606223364. | 
| Benjamin Peterson | ed4aa83 | 2016-09-05 17:44:18 -0700 | [diff] [blame] | 8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | 
 | 8332 | $as_echo_n "checking size of long long... " >&6; } | 
 | 8333 | if ${ac_cv_sizeof_long_long+:} false; then : | 
 | 8334 |   $as_echo_n "(cached) " >&6 | 
 | 8335 | else | 
 | 8336 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then : | 
 | 8337 |  | 
 | 8338 | else | 
 | 8339 |   if test "$ac_cv_type_long_long" = yes; then | 
 | 8340 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8341 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 8342 | as_fn_error 77 "cannot compute sizeof (long long) | 
 | 8343 | See \`config.log' for more details" "$LINENO" 5; } | 
 | 8344 |    else | 
 | 8345 |      ac_cv_sizeof_long_long=0 | 
 | 8346 |    fi | 
 | 8347 | fi | 
 | 8348 |  | 
 | 8349 | fi | 
 | 8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | 
 | 8351 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | 
 | 8352 |  | 
 | 8353 |  | 
 | 8354 |  | 
 | 8355 | cat >>confdefs.h <<_ACEOF | 
 | 8356 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
 | 8357 | _ACEOF | 
 | 8358 |  | 
 | 8359 |  | 
 | 8360 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8361 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8362 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8363 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | 
 | 8365 | $as_echo_n "checking size of void *... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8366 | if ${ac_cv_sizeof_void_p+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8367 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8369 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8371 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8372 |   if test "$ac_cv_type_void_p" = yes; then | 
 | 8373 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8374 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8375 | as_fn_error 77 "cannot compute sizeof (void *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8376 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8377 |    else | 
 | 8378 |      ac_cv_sizeof_void_p=0 | 
 | 8379 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8381 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8382 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | 
 | 8384 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8385 |  | 
 | 8386 |  | 
 | 8387 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8388 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8389 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | _ACEOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8391 |  | 
 | 8392 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8393 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8394 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8395 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8396 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | 
 | 8398 | $as_echo_n "checking size of short... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8399 | if ${ac_cv_sizeof_short+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8400 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8401 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8402 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8403 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8404 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8405 |   if test "$ac_cv_type_short" = yes; then | 
 | 8406 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8407 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8408 | as_fn_error 77 "cannot compute sizeof (short) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8409 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8410 |    else | 
 | 8411 |      ac_cv_sizeof_short=0 | 
 | 8412 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8413 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8414 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | 
 | 8417 | $as_echo "$ac_cv_sizeof_short" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8418 |  | 
 | 8419 |  | 
 | 8420 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8422 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8424 |  | 
 | 8425 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8426 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8427 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8428 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8429 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | 
 | 8431 | $as_echo_n "checking size of float... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8432 | if ${ac_cv_sizeof_float+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8433 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8435 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8436 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8438 |   if test "$ac_cv_type_float" = yes; then | 
 | 8439 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8440 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8441 | as_fn_error 77 "cannot compute sizeof (float) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8442 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8443 |    else | 
 | 8444 |      ac_cv_sizeof_float=0 | 
 | 8445 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8447 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8448 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | 
 | 8450 | $as_echo "$ac_cv_sizeof_float" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8451 |  | 
 | 8452 |  | 
 | 8453 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8454 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8455 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8457 |  | 
 | 8458 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8459 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8460 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8461 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8462 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | 
 | 8464 | $as_echo_n "checking size of double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8465 | if ${ac_cv_sizeof_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8466 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8468 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8471 |   if test "$ac_cv_type_double" = yes; then | 
 | 8472 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8474 | as_fn_error 77 "cannot compute sizeof (double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8475 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8476 |    else | 
 | 8477 |      ac_cv_sizeof_double=0 | 
 | 8478 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8480 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | 
 | 8483 | $as_echo "$ac_cv_sizeof_double" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8484 |  | 
 | 8485 |  | 
 | 8486 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8488 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | _ACEOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8490 |  | 
 | 8491 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8492 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8493 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8494 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8495 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 | 
 | 8497 | $as_echo_n "checking size of fpos_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8498 | if ${ac_cv_sizeof_fpos_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8499 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8501 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8504 |   if test "$ac_cv_type_fpos_t" = yes; then | 
 | 8505 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8506 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8507 | as_fn_error 77 "cannot compute sizeof (fpos_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8508 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8509 |    else | 
 | 8510 |      ac_cv_sizeof_fpos_t=0 | 
 | 8511 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8513 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 | 
 | 8516 | $as_echo "$ac_cv_sizeof_fpos_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8517 |  | 
 | 8518 |  | 
 | 8519 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8521 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8523 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8524 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8525 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8526 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8527 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8528 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
 | 8530 | $as_echo_n "checking size of size_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8531 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8532 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8533 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8534 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then : | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8535 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8536 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8537 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 8538 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8539 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8540 | as_fn_error 77 "cannot compute sizeof (size_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8541 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8542 |    else | 
 | 8543 |      ac_cv_sizeof_size_t=0 | 
 | 8544 |    fi | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8545 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8546 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8547 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | 
 | 8549 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8550 |  | 
 | 8551 |  | 
 | 8552 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 8553 | cat >>confdefs.h <<_ACEOF | 
 | 8554 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 8555 | _ACEOF | 
 | 8556 |  | 
 | 8557 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8558 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8559 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8560 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8561 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 | 
 | 8563 | $as_echo_n "checking size of pid_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8564 | if ${ac_cv_sizeof_pid_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8565 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8566 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8567 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then : | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8568 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8569 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8570 |   if test "$ac_cv_type_pid_t" = yes; then | 
 | 8571 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8572 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8573 | as_fn_error 77 "cannot compute sizeof (pid_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8574 | See \`config.log' for more details" "$LINENO" 5; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8575 |    else | 
 | 8576 |      ac_cv_sizeof_pid_t=0 | 
 | 8577 |    fi | 
 | 8578 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8579 |  | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8580 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 | 
 | 8582 | $as_echo "$ac_cv_sizeof_pid_t" >&6; } | 
| Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 8583 |  | 
 | 8584 |  | 
 | 8585 |  | 
 | 8586 | cat >>confdefs.h <<_ACEOF | 
 | 8587 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t | 
 | 8588 | _ACEOF | 
 | 8589 |  | 
 | 8590 |  | 
| Benjamin Peterson | df6ff7b | 2016-09-06 13:53:14 -0700 | [diff] [blame] | 8591 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8592 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8593 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8594 | # This bug is HP SR number 8606223364. | 
 | 8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 | 
 | 8596 | $as_echo_n "checking size of uintptr_t... " >&6; } | 
 | 8597 | if ${ac_cv_sizeof_uintptr_t+:} false; then : | 
 | 8598 |   $as_echo_n "(cached) " >&6 | 
 | 8599 | else | 
 | 8600 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t"        "$ac_includes_default"; then : | 
 | 8601 |  | 
 | 8602 | else | 
 | 8603 |   if test "$ac_cv_type_uintptr_t" = yes; then | 
 | 8604 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8605 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 8606 | as_fn_error 77 "cannot compute sizeof (uintptr_t) | 
 | 8607 | See \`config.log' for more details" "$LINENO" 5; } | 
 | 8608 |    else | 
 | 8609 |      ac_cv_sizeof_uintptr_t=0 | 
 | 8610 |    fi | 
 | 8611 | fi | 
 | 8612 |  | 
 | 8613 | fi | 
 | 8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 | 
 | 8615 | $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } | 
 | 8616 |  | 
 | 8617 |  | 
 | 8618 |  | 
 | 8619 | cat >>confdefs.h <<_ACEOF | 
 | 8620 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
 | 8621 | _ACEOF | 
 | 8622 |  | 
 | 8623 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 | 
 | 8626 | $as_echo_n "checking for long double support... " >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8627 | have_long_double=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8629 | /* end confdefs.h.  */ | 
 | 8630 |  | 
 | 8631 | int | 
 | 8632 | main () | 
 | 8633 | { | 
 | 8634 | long double x; x = (long double)0; | 
 | 8635 |   ; | 
 | 8636 |   return 0; | 
 | 8637 | } | 
 | 8638 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8639 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8640 |  | 
 | 8641 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8642 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8643 |  | 
 | 8644 |   have_long_double=yes | 
 | 8645 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8646 | fi | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 | 
 | 8649 | $as_echo "$have_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8650 | if test "$have_long_double" = yes ; then | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8651 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8652 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8653 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8654 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | 
 | 8656 | $as_echo_n "checking size of long double... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8657 | if ${ac_cv_sizeof_long_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8658 |   $as_echo_n "(cached) " >&6 | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8659 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8660 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then : | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8661 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8662 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8663 |   if test "$ac_cv_type_long_double" = yes; then | 
 | 8664 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8666 | as_fn_error 77 "cannot compute sizeof (long double) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8667 | See \`config.log' for more details" "$LINENO" 5; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8668 |    else | 
 | 8669 |      ac_cv_sizeof_long_double=0 | 
 | 8670 |    fi | 
 | 8671 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8672 |  | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8673 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | 
 | 8675 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | 
| Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 8676 |  | 
 | 8677 |  | 
 | 8678 |  | 
 | 8679 | cat >>confdefs.h <<_ACEOF | 
 | 8680 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | 
 | 8681 | _ACEOF | 
 | 8682 |  | 
 | 8683 |  | 
 | 8684 | fi | 
 | 8685 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8686 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8687 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8688 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8689 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 | 
 | 8691 | $as_echo_n "checking size of _Bool... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8692 | if ${ac_cv_sizeof__Bool+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8693 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8694 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8695 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then : | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8696 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8697 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8698 |   if test "$ac_cv_type__Bool" = yes; then | 
 | 8699 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8701 | as_fn_error 77 "cannot compute sizeof (_Bool) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8702 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8703 |    else | 
 | 8704 |      ac_cv_sizeof__Bool=0 | 
 | 8705 |    fi | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8706 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8707 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8708 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 | 
 | 8710 | $as_echo "$ac_cv_sizeof__Bool" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8711 |  | 
 | 8712 |  | 
 | 8713 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8714 | cat >>confdefs.h <<_ACEOF | 
 | 8715 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool | 
 | 8716 | _ACEOF | 
 | 8717 |  | 
 | 8718 |  | 
| Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 8719 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8720 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8721 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8722 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8723 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
 | 8725 | $as_echo_n "checking size of off_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8726 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8727 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8728 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8729 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8730 | #ifdef HAVE_SYS_TYPES_H | 
 | 8731 | #include <sys/types.h> | 
 | 8732 | #endif | 
 | 8733 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8734 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8735 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8736 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8737 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 8738 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8739 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8740 | as_fn_error 77 "cannot compute sizeof (off_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8741 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8742 |    else | 
 | 8743 |      ac_cv_sizeof_off_t=0 | 
 | 8744 |    fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8745 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8746 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8747 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | 
 | 8749 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8750 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8751 |  | 
 | 8752 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8753 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8754 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8755 | _ACEOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8756 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8757 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8758 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 | 
 | 8760 | $as_echo_n "checking whether to enable large file support... " >&6; } | 
| Mark Dickinson | 2df5d28 | 2009-12-31 21:22:50 +0000 | [diff] [blame] | 8761 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8762 | 	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8763 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8764 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8766 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8767 | $as_echo "yes" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8768 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8769 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8770 | $as_echo "no" >&6; } | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8771 | fi | 
 | 8772 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8773 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8774 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8775 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8776 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | 
 | 8778 | $as_echo_n "checking size of time_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8779 | if ${ac_cv_sizeof_time_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8780 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8781 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8782 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8783 | #ifdef HAVE_SYS_TYPES_H | 
 | 8784 | #include <sys/types.h> | 
 | 8785 | #endif | 
 | 8786 | #ifdef HAVE_TIME_H | 
 | 8787 | #include <time.h> | 
 | 8788 | #endif | 
 | 8789 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8790 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8791 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8792 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8793 |   if test "$ac_cv_type_time_t" = yes; then | 
 | 8794 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8796 | as_fn_error 77 "cannot compute sizeof (time_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8797 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8798 |    else | 
 | 8799 |      ac_cv_sizeof_time_t=0 | 
 | 8800 |    fi | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8801 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8802 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8803 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | 
 | 8805 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8806 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8807 |  | 
 | 8808 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8809 | cat >>confdefs.h <<_ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8810 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8811 | _ACEOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8812 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8813 |  | 
 | 8814 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8815 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8816 | ac_save_cc="$CC" | 
 | 8817 | if test "$ac_cv_kpthread" = "yes" | 
 | 8818 | then CC="$CC -Kpthread" | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 8819 | elif test "$ac_cv_kthread" = "yes" | 
 | 8820 | then CC="$CC -Kthread" | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 8821 | elif test "$ac_cv_pthread" = "yes" | 
 | 8822 | then CC="$CC -pthread" | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8823 | fi | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8824 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 | 
 | 8826 | $as_echo_n "checking for pthread_t... " >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8827 | have_pthread_t=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8829 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8830 |  | 
 | 8831 |   #include <pthread.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8832 | int | 
 | 8833 | main () | 
 | 8834 | { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8835 | pthread_t x; x = *(pthread_t*)0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8836 |   ; | 
 | 8837 |   return 0; | 
 | 8838 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 8839 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8840 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8841 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8842 |   have_pthread_t=yes | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8843 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 | 
 | 8846 | $as_echo "$have_pthread_t" >&6; } | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8847 | if test "$have_pthread_t" = yes ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8848 |   # The cast to long int works around a bug in the HP C Compiler | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8849 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8850 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8851 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 | 
 | 8853 | $as_echo_n "checking size of pthread_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8854 | if ${ac_cv_sizeof_pthread_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8855 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8856 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8857 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        " | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8858 | #ifdef HAVE_PTHREAD_H | 
 | 8859 | #include <pthread.h> | 
 | 8860 | #endif | 
 | 8861 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8862 | "; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8863 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8864 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8865 |   if test "$ac_cv_type_pthread_t" = yes; then | 
 | 8866 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8867 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 8868 | as_fn_error 77 "cannot compute sizeof (pthread_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 8869 | See \`config.log' for more details" "$LINENO" 5; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8870 |    else | 
 | 8871 |      ac_cv_sizeof_pthread_t=0 | 
 | 8872 |    fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8873 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8874 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8875 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 | 
 | 8877 | $as_echo "$ac_cv_sizeof_pthread_t" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8879 |  | 
 | 8880 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8881 | cat >>confdefs.h <<_ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8882 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 | _ACEOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8884 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 8885 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8886 | fi | 
| Masayuki Yamamoto | 731e189 | 2017-10-06 19:41:34 +0900 | [diff] [blame] | 8887 |  | 
 | 8888 | # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. | 
 | 8889 | # This checking will be unnecessary after removing deprecated TLS API. | 
 | 8890 | # The cast to long int works around a bug in the HP C Compiler | 
 | 8891 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 8892 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 8893 | # This bug is HP SR number 8606223364. | 
 | 8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 | 
 | 8895 | $as_echo_n "checking size of pthread_key_t... " >&6; } | 
 | 8896 | if ${ac_cv_sizeof_pthread_key_t+:} false; then : | 
 | 8897 |   $as_echo_n "(cached) " >&6 | 
 | 8898 | else | 
 | 8899 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t"        "#include <pthread.h> | 
 | 8900 | "; then : | 
 | 8901 |  | 
 | 8902 | else | 
 | 8903 |   if test "$ac_cv_type_pthread_key_t" = yes; then | 
 | 8904 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 8905 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 8906 | as_fn_error 77 "cannot compute sizeof (pthread_key_t) | 
 | 8907 | See \`config.log' for more details" "$LINENO" 5; } | 
 | 8908 |    else | 
 | 8909 |      ac_cv_sizeof_pthread_key_t=0 | 
 | 8910 |    fi | 
 | 8911 | fi | 
 | 8912 |  | 
 | 8913 | fi | 
 | 8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 | 
 | 8915 | $as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } | 
 | 8916 |  | 
 | 8917 |  | 
 | 8918 |  | 
 | 8919 | cat >>confdefs.h <<_ACEOF | 
 | 8920 | #define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t | 
 | 8921 | _ACEOF | 
 | 8922 |  | 
 | 8923 |  | 
 | 8924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 | 
 | 8925 | $as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } | 
 | 8926 | if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then | 
 | 8927 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8928 | /* end confdefs.h.  */ | 
 | 8929 | #include <pthread.h> | 
 | 8930 | int | 
 | 8931 | main () | 
 | 8932 | { | 
 | 8933 | pthread_key_t k; k * 1; | 
 | 8934 |   ; | 
 | 8935 |   return 0; | 
 | 8936 | } | 
 | 8937 | _ACEOF | 
 | 8938 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 8939 |   ac_pthread_key_t_is_arithmetic_type=yes | 
 | 8940 | else | 
 | 8941 |   ac_pthread_key_t_is_arithmetic_type=no | 
 | 8942 |  | 
 | 8943 | fi | 
 | 8944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 8945 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 | 
 | 8946 | $as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } | 
 | 8947 |   if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then | 
 | 8948 |  | 
 | 8949 | $as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h | 
 | 8950 |  | 
 | 8951 |   fi | 
 | 8952 | else | 
 | 8953 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8954 | $as_echo "no" >&6; } | 
 | 8955 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8956 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8957 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8958 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8959 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8960 |   Darwin/[01567]\..*) | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8961 |     OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" | 
 | 8962 |     ;; | 
 | 8963 |   Darwin/*) | 
 | 8964 |     OTHER_LIBTOOL_OPT="" | 
 | 8965 |     ;; | 
 | 8966 | esac | 
 | 8967 |  | 
 | 8968 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8969 |  | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8970 | case $ac_sys_system/$ac_sys_release in | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8971 |   Darwin/[01567]\..*) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8972 |     LIBTOOL_CRUFT="-framework System -lcc_dynamic" | 
 | 8973 |     if test "${enable_universalsdk}"; then | 
 | 8974 | 	    : | 
 | 8975 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 8976 |         LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8977 |     fi | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 8978 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8979 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8980 |   Darwin/*) | 
| Ronald Oussoren | 9812a6c | 2010-02-07 11:53:18 +0000 | [diff] [blame] | 8981 |     gcc_version=`gcc -dumpversion` | 
| Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 8982 |     if test ${gcc_version} '<' 4.0 | 
 | 8983 |         then | 
 | 8984 |             LIBTOOL_CRUFT="-lcc_dynamic" | 
 | 8985 |         else | 
 | 8986 |             LIBTOOL_CRUFT="" | 
 | 8987 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8988 |     if test "$cross_compiling" = yes; then : | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8989 |   ac_osx_32bit=yes | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8990 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 8991 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8992 | /* end confdefs.h.  */ | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 8993 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 8994 |     #include <unistd.h> | 
 | 8995 |     int main(int argc, char*argv[]) | 
 | 8996 |     { | 
 | 8997 |       if (sizeof(long) == 4) { | 
 | 8998 |     	  return 0; | 
 | 8999 |       } else { | 
 | 9000 |       	  return 1; | 
 | 9001 |       } | 
| Ronald Oussoren | 3c064c1 | 2009-09-08 07:12:42 +0000 | [diff] [blame] | 9002 |     } | 
 | 9003 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9004 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9005 | if ac_fn_c_try_run "$LINENO"; then : | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9006 |   ac_osx_32bit=yes | 
 | 9007 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9008 |   ac_osx_32bit=no | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9009 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9010 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9011 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9012 | fi | 
 | 9013 |  | 
 | 9014 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9015 |     if test "${ac_osx_32bit}" = "yes"; then | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9016 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9017 |     	i386) | 
 | 9018 |     		MACOSX_DEFAULT_ARCH="i386" | 
 | 9019 |     		;; | 
 | 9020 |     	ppc) | 
 | 9021 |     		MACOSX_DEFAULT_ARCH="ppc" | 
 | 9022 |     		;; | 
 | 9023 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9024 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9025 |     		;; | 
 | 9026 |     	esac | 
 | 9027 |     else | 
| Ronald Oussoren | e3da75a | 2010-02-11 13:38:58 +0000 | [diff] [blame] | 9028 |     	case `/usr/bin/arch` in | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9029 |     	i386) | 
 | 9030 |     		MACOSX_DEFAULT_ARCH="x86_64" | 
 | 9031 |     		;; | 
 | 9032 |     	ppc) | 
 | 9033 |     		MACOSX_DEFAULT_ARCH="ppc64" | 
 | 9034 |     		;; | 
 | 9035 |     	*) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9036 |     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9037 |     		;; | 
 | 9038 |     	esac | 
 | 9039 |  | 
| Ronald Oussoren | 5bbab3e | 2009-09-06 11:01:15 +0000 | [diff] [blame] | 9040 |     fi | 
 | 9041 |  | 
 | 9042 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | 
| Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 9043 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9044 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9045 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 | 
 | 9047 | $as_echo_n "checking for --enable-framework... " >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9048 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9049 | then | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9050 | 	BASECFLAGS="$BASECFLAGS -fno-common -dynamic" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | 	# -F. is needed to allow linking to the framework while | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9052 | 	# in the build location. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9053 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9054 | $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9055 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9056 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9057 | $as_echo "yes" >&6; } | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9058 | 	if test $enable_shared = "yes" | 
 | 9059 | 	then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 9060 | 		as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 | 
| Ronald Oussoren | 99aab65 | 2009-06-08 21:22:57 +0000 | [diff] [blame] | 9061 | 	fi | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9062 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9063 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9064 | $as_echo "no" >&6; } | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9065 | fi | 
 | 9066 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 | 
 | 9068 | $as_echo_n "checking for dyld... " >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9069 | case $ac_sys_system/$ac_sys_release in | 
 | 9070 |   Darwin/*) | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9071 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9072 | $as_echo "#define WITH_DYLD 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9073 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9074 |   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 | 
 | 9075 | $as_echo "always on for Darwin" >&6; } | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9076 |   	;; | 
 | 9077 |   *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9078 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9079 | $as_echo "no" >&6; } | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9080 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9081 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9082 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9083 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9084 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9085 |  | 
 | 9086 |  | 
 | 9087 |  | 
 | 9088 |  | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9089 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9090 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 9091 | # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) | 
 | 9092 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
 | 9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 | 
 | 9094 | $as_echo_n "checking the extension of shared libraries... " >&6; } | 
 | 9095 | if test -z "$SHLIB_SUFFIX"; then | 
 | 9096 | 	case $ac_sys_system in | 
 | 9097 | 	hp*|HP*) | 
 | 9098 | 		case `uname -m` in | 
 | 9099 | 			ia64) SHLIB_SUFFIX=.so;; | 
 | 9100 | 	  		*)    SHLIB_SUFFIX=.sl;; | 
 | 9101 | 		esac | 
 | 9102 | 		;; | 
 | 9103 | 	CYGWIN*)   SHLIB_SUFFIX=.dll;; | 
 | 9104 | 	*)	   SHLIB_SUFFIX=.so;; | 
 | 9105 | 	esac | 
 | 9106 | fi | 
 | 9107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 | 
 | 9108 | $as_echo "$SHLIB_SUFFIX" >&6; } | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9109 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9110 | # LDSHARED is the ld *command* used to create shared library | 
| Benjamin Peterson | 0693063 | 2017-09-04 16:36:05 -0700 | [diff] [blame] | 9111 | # -- "cc -G" on SunOS 5.x. | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9112 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 9113 | # Python, as opposed to building Python itself as a shared library.) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | 
 | 9115 | $as_echo_n "checking LDSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9116 | if test -z "$LDSHARED" | 
 | 9117 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9118 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9119 | 	AIX*) | 
| Martin Panter | 395733d | 2016-11-20 07:56:37 +0000 | [diff] [blame] | 9120 | 		BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" | 
| Martin Panter | 5de141f | 2016-08-27 04:00:19 +0000 | [diff] [blame] | 9121 | 		LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9122 | 		;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | 	SunOS/5*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9124 | 		if test "$GCC" = "yes" ; then | 
 | 9125 | 			LDSHARED='$(CC) -shared' | 
 | 9126 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9127 | 		else | 
 | 9128 | 			LDSHARED='$(CC) -G' | 
 | 9129 | 			LDCXXSHARED='$(CXX) -G' | 
| Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9130 | 		fi ;; | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9131 | 	hp*|HP*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9132 | 		if test "$GCC" = "yes" ; then | 
 | 9133 | 			LDSHARED='$(CC) -shared' | 
 | 9134 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9135 | 		else | 
 | 9136 | 			LDSHARED='ld -b' | 
| Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 9137 | 		fi ;; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9138 | 	Darwin/1.3*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9139 | 		LDSHARED='$(CC) -bundle' | 
 | 9140 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9141 | 		if test "$enable_framework" ; then | 
 | 9142 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9143 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9144 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9145 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9146 | 		else | 
 | 9147 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9148 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9149 | 			LDCXXSHARED="$LDCXXSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9150 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9151 | 	Darwin/1.4*|Darwin/5.*|Darwin/6.*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9152 | 		LDSHARED='$(CC) -bundle' | 
 | 9153 | 		LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9154 | 		if test "$enable_framework" ; then | 
 | 9155 | 			# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9156 | 			BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9157 | 			LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9158 | 			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9159 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9160 | 			# No framework, use the Python app as bundle-loader | 
 | 9161 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
| Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9162 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9163 | 			LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9164 | 		fi ;; | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9165 | 	Darwin/*) | 
 | 9166 | 		# Use -undefined dynamic_lookup whenever possible (10.3 and later). | 
 | 9167 | 		# This allows an extension to be used in any Python | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 9168 |  | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9169 | 		dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 9170 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` | 
 | 9171 | 		dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ | 
 | 9172 | 				sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` | 
 | 9173 | 		if test ${dep_target_major} -eq 10 && \ | 
 | 9174 | 		   test ${dep_target_minor} -le 2 | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9175 | 		then | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9176 | 			# building for OS X 10.0 through 10.2 | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9177 | 			LDSHARED='$(CC) -bundle' | 
 | 9178 | 			LDCXXSHARED='$(CXX) -bundle' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9179 | 			if test "$enable_framework" ; then | 
 | 9180 | 				# Link against the framework. All externals should be defined. | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9181 | 				BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 9182 | 				LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9183 | 				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9184 | 			else | 
 | 9185 | 				# No framework, use the Python app as bundle-loader | 
 | 9186 | 				BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 9187 | 				LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9188 | 				LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9189 | 			fi | 
| Ned Deily | 36820b6 | 2014-06-25 13:44:22 -0700 | [diff] [blame] | 9190 | 		else | 
 | 9191 | 			# building for OS X 10.3 and later | 
 | 9192 | 			LDSHARED='$(CC) -bundle -undefined dynamic_lookup' | 
 | 9193 | 			LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' | 
 | 9194 | 			BLDSHARED="$LDSHARED" | 
| Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 9195 | 		fi | 
 | 9196 | 		;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9197 | 	Linux*|GNU*|QNX*) | 
 | 9198 | 		LDSHARED='$(CC) -shared' | 
 | 9199 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9200 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9201 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9202 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9203 | 			LDSHARED='$(CC) -shared' | 
 | 9204 | 			LDCXXSHARED='$(CXX) -shared' | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9205 | 		else | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9206 | 			LDSHARED="ld -Bshareable" | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9207 | 		fi;; | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9208 | 	OpenBSD*) | 
 | 9209 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 9210 | 		then | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9211 | 				LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 9212 | 				LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9213 | 		else | 
 | 9214 | 				case `uname -r` in | 
 | 9215 | 				[01].* | 2.[0-7] | 2.[0-7].*) | 
 | 9216 | 				   LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 9217 | 				   ;; | 
 | 9218 | 				*) | 
| Antoine Pitrou | d4958c2 | 2010-10-13 17:01:10 +0000 | [diff] [blame] | 9219 | 				   LDSHARED='$(CC) -shared $(CCSHARED)' | 
 | 9220 | 				   LDCXXSHARED='$(CXX) -shared $(CCSHARED)' | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9221 | 				   ;; | 
 | 9222 | 				esac | 
 | 9223 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9224 | 	NetBSD*|DragonFly*) | 
| Antoine Pitrou | ece919e | 2011-01-02 20:45:21 +0000 | [diff] [blame] | 9225 | 		LDSHARED='$(CC) -shared' | 
 | 9226 | 		LDCXXSHARED='$(CXX) -shared';; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9227 | 	OpenUNIX*|UnixWare*) | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9228 | 		if test "$GCC" = "yes" ; then | 
 | 9229 | 			LDSHARED='$(CC) -shared' | 
 | 9230 | 			LDCXXSHARED='$(CXX) -shared' | 
 | 9231 | 		else | 
 | 9232 | 			LDSHARED='$(CC) -G' | 
 | 9233 | 			LDCXXSHARED='$(CXX) -G' | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9234 | 		fi;; | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9235 | 	SCO_SV*) | 
 | 9236 | 		LDSHARED='$(CC) -Wl,-G,-Bexport' | 
 | 9237 | 		LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; | 
 | 9238 | 	CYGWIN*) | 
 | 9239 | 		LDSHARED="gcc -shared -Wl,--enable-auto-image-base" | 
 | 9240 | 		LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9241 | 	*)	LDSHARED="ld";; | 
 | 9242 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9243 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | 
 | 9245 | $as_echo "$LDSHARED" >&6; } | 
| Benjamin Peterson | 99f0376 | 2010-04-11 22:15:28 +0000 | [diff] [blame] | 9246 | LDCXXSHARED=${LDCXXSHARED-$LDSHARED} | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9247 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9248 | # CCSHARED are the C *flags* used to create objects to go into a shared | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9249 | # library (module) -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | 
 | 9251 | $as_echo_n "checking CCSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9252 | if test -z "$CCSHARED" | 
 | 9253 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9254 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9255 | 	SunOS*) if test "$GCC" = yes; | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9256 | 		then CCSHARED="-fPIC"; | 
 | 9257 | 		elif test `uname -p` = sparc; | 
 | 9258 | 		then CCSHARED="-xcode=pic32"; | 
 | 9259 | 		else CCSHARED="-Kpic"; | 
 | 9260 | 		fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9261 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9262 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9263 | 		 else CCSHARED="+z"; | 
 | 9264 | 		 fi;; | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9265 | 	Linux-android*) ;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9266 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9267 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9268 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9269 | 		if test "$GCC" = "yes" | 
 | 9270 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9271 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9272 | 		fi;; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9273 | 	SCO_SV*) | 
 | 9274 | 		if test "$GCC" = "yes" | 
 | 9275 | 		then CCSHARED="-fPIC" | 
 | 9276 | 		else CCSHARED="-Kpic -belf" | 
 | 9277 | 		fi;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9278 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9279 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | 
 | 9281 | $as_echo "$CCSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9282 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9283 | # the python executable -- this is only needed for a few systems | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | 
 | 9285 | $as_echo_n "checking LINKFORSHARED... " >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9286 | if test -z "$LINKFORSHARED" | 
 | 9287 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9288 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9289 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9290 | 	hp*|HP*) | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9291 | 	    LINKFORSHARED="-Wl,-E -Wl,+s";; | 
 | 9292 | #	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Xavier de Gaye | 2a352b6 | 2017-01-04 21:51:16 +0100 | [diff] [blame] | 9293 | 	Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9294 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9295 | 	# -u libsys_s pulls in all symbols in libsys | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9296 | 	Darwin/*) | 
| Benjamin Peterson | 9c80cac | 2009-05-23 16:34:23 +0000 | [diff] [blame] | 9297 | 		LINKFORSHARED="$extra_undefs -framework CoreFoundation" | 
| Łukasz Langa | 335ab5b | 2013-05-30 20:58:53 +0200 | [diff] [blame] | 9298 |  | 
 | 9299 | 		# Issue #18075: the default maximum stack size (8MBytes) is too | 
 | 9300 | 		# small for the default recursion limit. Increase the stack size | 
 | 9301 | 		# to ensure that tests don't crash | 
 | 9302 | 		LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" | 
 | 9303 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9304 | 		if test "$enable_framework" | 
 | 9305 | 		then | 
| Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 9306 | 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9307 | 		fi | 
| Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 9308 | 		LINKFORSHARED="$LINKFORSHARED";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9309 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9310 | 	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9311 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 9312 | 	FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9313 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 9314 | 		then | 
 | 9315 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 9316 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9317 | 	SunOS/5*) case $CC in | 
 | 9318 | 		  *gcc*) | 
| Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9319 | 		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9320 | 		    then | 
 | 9321 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9322 | 		    fi;; | 
 | 9323 | 		  esac;; | 
| Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 9324 | 	CYGWIN*) | 
 | 9325 | 		if test $enable_shared = "no" | 
 | 9326 | 		then | 
 | 9327 | 			LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' | 
 | 9328 | 		fi;; | 
| Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 9329 | 	QNX*) | 
 | 9330 | 		# -Wl,-E causes the symbols to be added to the dynamic | 
 | 9331 | 		# symbol table so that they can be found when a module | 
 | 9332 | 		# is loaded.  -N 2048K causes the stack size to be set | 
 | 9333 | 		# to 2048 kilobytes so that the stack doesn't overflow | 
 | 9334 | 		# when running test_compile.py. | 
 | 9335 | 		LINKFORSHARED='-Wl,-E -N 2048K';; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9336 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9337 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | 
 | 9339 | $as_echo "$LINKFORSHARED" >&6; } | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9340 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9341 |  | 
| Benjamin Peterson | 8f95cc2 | 2008-07-16 02:23:25 +0000 | [diff] [blame] | 9342 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 | 
 | 9344 | $as_echo_n "checking CFLAGSFORSHARED... " >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9345 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 9346 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9347 | 	case $ac_sys_system in | 
 | 9348 | 	CYGWIN*) | 
 | 9349 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 9350 | 		# but not when building the interpreter DLL. | 
 | 9351 | 		CFLAGSFORSHARED='';; | 
 | 9352 | 	*) | 
 | 9353 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 9354 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9355 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 | 
 | 9357 | $as_echo "$CFLAGSFORSHARED" >&6; } | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9358 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9359 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared | 
 | 9360 | # library (with --enable-shared). | 
 | 9361 | # For platforms on which shared libraries are not allowed to have unresolved | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9362 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even | 
 | 9363 | # if it is not required, since it creates a dependency of the shared library | 
 | 9364 | # to LIBS. This, in turn, means that applications linking the shared libpython | 
 | 9365 | # don't need to link LIBS explicitly. The default should be only changed | 
 | 9366 | # on systems where this approach causes problems. | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9367 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 | 
 | 9369 | $as_echo_n "checking SHLIBS... " >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9370 | case "$ac_sys_system" in | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9371 | 	*) | 
| Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9372 | 		SHLIBS='$(LIBS)';; | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9373 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 | 
 | 9375 | $as_echo "$SHLIBS" >&6; } | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9376 |  | 
 | 9377 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9378 | # checks for libraries | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 | 
 | 9380 | $as_echo_n "checking for sendfile in -lsendfile... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9381 | if ${ac_cv_lib_sendfile_sendfile+:} false; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9382 |   $as_echo_n "(cached) " >&6 | 
 | 9383 | else | 
 | 9384 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9385 | LIBS="-lsendfile  $LIBS" | 
 | 9386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9387 | /* end confdefs.h.  */ | 
 | 9388 |  | 
 | 9389 | /* Override any GCC internal prototype to avoid an error. | 
 | 9390 |    Use char because int might match the return type of a GCC | 
 | 9391 |    builtin and then its argument prototype would still apply.  */ | 
 | 9392 | #ifdef __cplusplus | 
 | 9393 | extern "C" | 
 | 9394 | #endif | 
 | 9395 | char sendfile (); | 
 | 9396 | int | 
 | 9397 | main () | 
 | 9398 | { | 
 | 9399 | return sendfile (); | 
 | 9400 |   ; | 
 | 9401 |   return 0; | 
 | 9402 | } | 
 | 9403 | _ACEOF | 
 | 9404 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9405 |   ac_cv_lib_sendfile_sendfile=yes | 
 | 9406 | else | 
 | 9407 |   ac_cv_lib_sendfile_sendfile=no | 
 | 9408 | fi | 
 | 9409 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9410 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9411 | LIBS=$ac_check_lib_save_LIBS | 
 | 9412 | fi | 
 | 9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 | 
 | 9414 | $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9415 | if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : | 
| Georg Brandl | 941f956 | 2011-02-25 15:21:47 +0000 | [diff] [blame] | 9416 |   cat >>confdefs.h <<_ACEOF | 
 | 9417 | #define HAVE_LIBSENDFILE 1 | 
 | 9418 | _ACEOF | 
 | 9419 |  | 
 | 9420 |   LIBS="-lsendfile $LIBS" | 
 | 9421 |  | 
 | 9422 | fi | 
 | 9423 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 9425 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9426 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9427 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9428 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9430 | LIBS="-ldl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9432 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9433 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9434 | /* Override any GCC internal prototype to avoid an error. | 
 | 9435 |    Use char because int might match the return type of a GCC | 
 | 9436 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | #ifdef __cplusplus | 
 | 9438 | extern "C" | 
 | 9439 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9440 | char dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | int | 
 | 9442 | main () | 
 | 9443 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9444 | return dlopen (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9445 |   ; | 
 | 9446 |   return 0; | 
 | 9447 | } | 
 | 9448 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9449 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9450 |   ac_cv_lib_dl_dlopen=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9451 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9452 |   ac_cv_lib_dl_dlopen=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9453 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9454 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9455 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9456 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9457 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 9459 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9460 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9461 |   cat >>confdefs.h <<_ACEOF | 
 | 9462 | #define HAVE_LIBDL 1 | 
 | 9463 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9464 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9465 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9466 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9467 | fi | 
 | 9468 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 9470 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9471 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9472 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9473 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9474 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9475 | LIBS="-ldld  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9477 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9479 | /* Override any GCC internal prototype to avoid an error. | 
 | 9480 |    Use char because int might match the return type of a GCC | 
 | 9481 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9482 | #ifdef __cplusplus | 
 | 9483 | extern "C" | 
 | 9484 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9485 | char shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | int | 
 | 9487 | main () | 
 | 9488 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9489 | return shl_load (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 |   ; | 
 | 9491 |   return 0; | 
 | 9492 | } | 
 | 9493 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9494 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 |   ac_cv_lib_dld_shl_load=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9496 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9497 |   ac_cv_lib_dld_shl_load=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9498 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9499 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9500 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9502 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 9504 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9505 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 |   cat >>confdefs.h <<_ACEOF | 
 | 9507 | #define HAVE_LIBDLD 1 | 
 | 9508 | _ACEOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9509 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9510 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9511 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9512 | fi | 
 | 9513 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9514 |  | 
| Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 | 
 | 9516 | $as_echo_n "checking for uuid_generate_time_safe... " >&6; } | 
 | 9517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9518 | /* end confdefs.h.  */ | 
 | 9519 | #include <uuid/uuid.h> | 
 | 9520 | int | 
 | 9521 | main () | 
 | 9522 | { | 
 | 9523 |  | 
 | 9524 | #ifndef uuid_generate_time_safe | 
| Berker Peksag | 0e163d2 | 2017-11-09 00:43:14 +0300 | [diff] [blame] | 9525 | void *x = uuid_generate_time_safe | 
| Berker Peksag | 9a10ff4 | 2017-11-08 23:09:16 +0300 | [diff] [blame] | 9526 | #endif | 
 | 9527 |  | 
 | 9528 |   ; | 
 | 9529 |   return 0; | 
 | 9530 | } | 
 | 9531 | _ACEOF | 
 | 9532 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 9533 |  | 
 | 9534 | $as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h | 
 | 9535 |  | 
 | 9536 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9537 | $as_echo "yes" >&6; } | 
 | 9538 | else | 
 | 9539 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9540 | $as_echo "no" >&6; } | 
 | 9541 |  | 
 | 9542 | fi | 
 | 9543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9544 |  | 
| Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame^] | 9545 | # 'Real Time' functions on Solaris | 
 | 9546 | # posix4 on Solaris 2.6 | 
 | 9547 | # pthread (first!) on Linux | 
| Berker Peksag | 7e666ee | 2017-11-06 19:06:05 +0300 | [diff] [blame] | 9548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9549 | $as_echo_n "checking for library containing sem_init... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9550 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9551 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9552 | else | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9553 |   ac_func_search_save_LIBS=$LIBS | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9555 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9557 | /* Override any GCC internal prototype to avoid an error. | 
 | 9558 |    Use char because int might match the return type of a GCC | 
 | 9559 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9560 | #ifdef __cplusplus | 
 | 9561 | extern "C" | 
 | 9562 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9563 | char sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | int | 
 | 9565 | main () | 
 | 9566 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9567 | return sem_init (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 |   ; | 
 | 9569 |   return 0; | 
 | 9570 | } | 
 | 9571 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9572 | for ac_lib in '' pthread rt posix4; do | 
 | 9573 |   if test -z "$ac_lib"; then | 
 | 9574 |     ac_res="none required" | 
 | 9575 |   else | 
 | 9576 |     ac_res=-l$ac_lib | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9577 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9578 |   fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9579 |   if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9580 |   ac_cv_search_sem_init=$ac_res | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9581 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9582 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9583 |     conftest$ac_exeext | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9584 |   if ${ac_cv_search_sem_init+:} false; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9585 |   break | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 9586 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9587 | done | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9588 | if ${ac_cv_search_sem_init+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9589 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9590 | else | 
 | 9591 |   ac_cv_search_sem_init=no | 
 | 9592 | fi | 
 | 9593 | rm conftest.$ac_ext | 
| Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9594 | LIBS=$ac_func_search_save_LIBS | 
 | 9595 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 | 
 | 9597 | $as_echo "$ac_cv_search_sem_init" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9598 | ac_res=$ac_cv_search_sem_init | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9599 | if test "$ac_res" != no; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9600 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9601 |  | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9602 | fi | 
| Serhiy Storchaka | 9e78dc2 | 2017-11-11 19:18:28 +0200 | [diff] [blame^] | 9603 |  | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 9604 |  | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9605 | # check if we need libintl for locale functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 | 
 | 9607 | $as_echo_n "checking for textdomain in -lintl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9608 | if ${ac_cv_lib_intl_textdomain+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9609 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9610 | else | 
 | 9611 |   ac_check_lib_save_LIBS=$LIBS | 
 | 9612 | LIBS="-lintl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9614 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9615 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9616 | /* Override any GCC internal prototype to avoid an error. | 
 | 9617 |    Use char because int might match the return type of a GCC | 
 | 9618 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9619 | #ifdef __cplusplus | 
 | 9620 | extern "C" | 
 | 9621 | #endif | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9622 | char textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9623 | int | 
 | 9624 | main () | 
 | 9625 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9626 | return textdomain (); | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9627 |   ; | 
 | 9628 |   return 0; | 
 | 9629 | } | 
 | 9630 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9631 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9632 |   ac_cv_lib_intl_textdomain=yes | 
 | 9633 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9634 |   ac_cv_lib_intl_textdomain=no | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9635 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9636 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9637 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9638 | LIBS=$ac_check_lib_save_LIBS | 
 | 9639 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 | 
 | 9641 | $as_echo "$ac_cv_lib_intl_textdomain" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9642 | if test "x$ac_cv_lib_intl_textdomain" = xyes; then : | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9643 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9644 | $as_echo "#define WITH_LIBINTL 1" >>confdefs.h | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9645 |  | 
| Brett Cannon | c6d936e | 2009-06-07 20:09:53 +0000 | [diff] [blame] | 9646 |         LIBS="-lintl $LIBS" | 
| Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 9647 | fi | 
 | 9648 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9649 |  | 
 | 9650 | # checks for system dependent C++ extensions support | 
 | 9651 | case "$ac_sys_system" in | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9652 | 	AIX*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 | 
 | 9653 | $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } | 
 | 9654 | 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9655 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9656 |  | 
| Georg Brandl | 59e87bd | 2011-02-15 19:48:59 +0000 | [diff] [blame] | 9657 | 		  #include <load.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | int | 
 | 9659 | main () | 
 | 9660 | { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9661 | loadAndInit("", 0, "") | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9662 |   ; | 
 | 9663 |   return 0; | 
 | 9664 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9665 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9666 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9667 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9668 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9669 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9670 | $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9671 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9672 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9673 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9674 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9675 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9676 |  | 
 | 9677 | 		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9678 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 9679 |  | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9680 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9681 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9682 |     conftest$ac_exeext conftest.$ac_ext;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9683 | 	*) ;; | 
 | 9684 | esac | 
 | 9685 |  | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9686 | # check for systems that require aligned memory access | 
 | 9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 | 
 | 9688 | $as_echo_n "checking aligned memory access is required... " >&6; } | 
| Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9689 | if ${ac_cv_aligned_required+:} false; then : | 
 | 9690 |   $as_echo_n "(cached) " >&6 | 
 | 9691 | else | 
 | 9692 |   if test "$cross_compiling" = yes; then : | 
 | 9693 |   ac_cv_aligned_required=yes | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9694 | else | 
 | 9695 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9696 | /* end confdefs.h.  */ | 
 | 9697 |  | 
 | 9698 | int main() | 
 | 9699 | { | 
 | 9700 |     char s[16]; | 
 | 9701 |     int i, *p1, *p2; | 
 | 9702 |     for (i=0; i < 16; i++) | 
 | 9703 |         s[i] = i; | 
 | 9704 |     p1 = (int*)(s+1); | 
 | 9705 |     p2 = (int*)(s+2); | 
 | 9706 |     if (*p1 == *p2) | 
 | 9707 |         return 1; | 
 | 9708 |     return 0; | 
 | 9709 | } | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9710 | _ACEOF | 
 | 9711 | if ac_fn_c_try_run "$LINENO"; then : | 
| Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9712 |   ac_cv_aligned_required=no | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9713 | else | 
| Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9714 |   ac_cv_aligned_required=yes | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9715 | fi | 
 | 9716 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9717 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 9718 | fi | 
 | 9719 |  | 
 | 9720 |  | 
| Benjamin Peterson | e4f961b | 2017-04-14 09:36:45 -0700 | [diff] [blame] | 9721 | fi | 
 | 9722 |  | 
 | 9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 | 
 | 9724 | $as_echo "$ac_cv_aligned_required" >&6; } | 
 | 9725 | if test "$ac_cv_aligned_required" = yes ; then | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9726 |  | 
 | 9727 | $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h | 
 | 9728 |  | 
 | 9729 | fi | 
| Christian Heimes | 985ecdc | 2013-11-20 11:46:18 +0100 | [diff] [blame] | 9730 |  | 
 | 9731 | # str, bytes and memoryview hash algorithm | 
 | 9732 |  | 
 | 9733 |  | 
 | 9734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 | 
 | 9735 | $as_echo_n "checking for --with-hash-algorithm... " >&6; } | 
 | 9736 |  | 
 | 9737 | # Check whether --with-hash_algorithm was given. | 
 | 9738 | if test "${with_hash_algorithm+set}" = set; then : | 
 | 9739 |   withval=$with_hash_algorithm; | 
 | 9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9741 | $as_echo "$withval" >&6; } | 
 | 9742 | case "$withval" in | 
 | 9743 |     siphash24) | 
 | 9744 |         $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h | 
 | 9745 |  | 
 | 9746 |         ;; | 
 | 9747 |     fnv) | 
 | 9748 |         $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h | 
 | 9749 |  | 
 | 9750 |         ;; | 
 | 9751 |     *) | 
 | 9752 |         as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 | 
 | 9753 |         ;; | 
 | 9754 | esac | 
 | 9755 |  | 
 | 9756 | else | 
 | 9757 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 | 
 | 9758 | $as_echo "default" >&6; } | 
 | 9759 | fi | 
 | 9760 |  | 
 | 9761 |  | 
| Charles-François Natali | d30b022 | 2014-05-08 23:08:51 +0100 | [diff] [blame] | 9762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 | 
 | 9763 | $as_echo_n "checking for --with-address-sanitizer... " >&6; } | 
 | 9764 |  | 
 | 9765 | # Check whether --with-address_sanitizer was given. | 
 | 9766 | if test "${with_address_sanitizer+set}" = set; then : | 
 | 9767 |   withval=$with_address_sanitizer; | 
 | 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9769 | $as_echo "$withval" >&6; } | 
 | 9770 | BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" | 
 | 9771 | LDFLAGS="-fsanitize=address $LDFLAGS" | 
 | 9772 |  | 
 | 9773 | else | 
 | 9774 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9775 | $as_echo "no" >&6; } | 
 | 9776 | fi | 
 | 9777 |  | 
 | 9778 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9779 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | 
 | 9781 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9782 | if ${ac_cv_lib_nsl_t_open+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9783 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9784 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9785 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9786 | LIBS="-lnsl  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9788 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9790 | /* Override any GCC internal prototype to avoid an error. | 
 | 9791 |    Use char because int might match the return type of a GCC | 
 | 9792 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9793 | #ifdef __cplusplus | 
 | 9794 | extern "C" | 
 | 9795 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | char t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9797 | int | 
 | 9798 | main () | 
 | 9799 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9800 | return t_open (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9801 |   ; | 
 | 9802 |   return 0; | 
 | 9803 | } | 
 | 9804 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9805 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9806 |   ac_cv_lib_nsl_t_open=yes | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9807 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9808 |   ac_cv_lib_nsl_t_open=no | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9809 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9810 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9811 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9813 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | 
 | 9815 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9816 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9817 |   LIBS="-lnsl $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9818 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9819 |  # SVR4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 
 | 9821 | $as_echo_n "checking for socket in -lsocket... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9822 | if ${ac_cv_lib_socket_socket+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9823 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9824 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9826 | LIBS="-lsocket $LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9828 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9829 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9830 | /* Override any GCC internal prototype to avoid an error. | 
 | 9831 |    Use char because int might match the return type of a GCC | 
 | 9832 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9833 | #ifdef __cplusplus | 
 | 9834 | extern "C" | 
 | 9835 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9836 | char socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | int | 
 | 9838 | main () | 
 | 9839 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9840 | return socket (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9841 |   ; | 
 | 9842 |   return 0; | 
 | 9843 | } | 
 | 9844 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9845 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9846 |   ac_cv_lib_socket_socket=yes | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9847 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9848 |   ac_cv_lib_socket_socket=no | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9849 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9850 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9851 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9853 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 
 | 9855 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 9856 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9857 |   LIBS="-lsocket $LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9858 | fi | 
 | 9859 |  # SVR4 sockets | 
| Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 9860 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 | 
 | 9862 | $as_echo_n "checking for --with-libs... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9863 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9864 | # Check whether --with-libs was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9865 | if test "${with_libs+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9866 |   withval=$with_libs; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | 
 | 9868 | $as_echo "$withval" >&6; } | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9869 | LIBS="$withval $LIBS" | 
 | 9870 |  | 
 | 9871 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9872 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9873 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9874 | fi | 
 | 9875 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9876 |  | 
| Victor Stinner | 8291b5e | 2015-03-20 16:03:14 +0100 | [diff] [blame] | 9877 |  | 
 | 9878 |  | 
 | 9879 |  | 
 | 9880 |  | 
 | 9881 |  | 
 | 9882 |  | 
 | 9883 |  | 
 | 9884 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
 | 9885 | 	if test -n "$ac_tool_prefix"; then | 
 | 9886 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 9887 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
 | 9888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9889 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 9890 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
 | 9891 |   $as_echo_n "(cached) " >&6 | 
 | 9892 | else | 
 | 9893 |   case $PKG_CONFIG in | 
 | 9894 |   [\\/]* | ?:[\\/]*) | 
 | 9895 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 9896 |   ;; | 
 | 9897 |   *) | 
 | 9898 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9899 | for as_dir in $PATH | 
 | 9900 | do | 
 | 9901 |   IFS=$as_save_IFS | 
 | 9902 |   test -z "$as_dir" && as_dir=. | 
 | 9903 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9904 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 9905 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 9906 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 9907 |     break 2 | 
 | 9908 |   fi | 
 | 9909 | done | 
 | 9910 |   done | 
 | 9911 | IFS=$as_save_IFS | 
 | 9912 |  | 
 | 9913 |   ;; | 
 | 9914 | esac | 
 | 9915 | fi | 
 | 9916 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 9917 | if test -n "$PKG_CONFIG"; then | 
 | 9918 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 9919 | $as_echo "$PKG_CONFIG" >&6; } | 
 | 9920 | else | 
 | 9921 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9922 | $as_echo "no" >&6; } | 
 | 9923 | fi | 
 | 9924 |  | 
 | 9925 |  | 
 | 9926 | fi | 
 | 9927 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 9928 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 9929 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 9930 | set dummy pkg-config; ac_word=$2 | 
 | 9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9932 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 9933 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
 | 9934 |   $as_echo_n "(cached) " >&6 | 
 | 9935 | else | 
 | 9936 |   case $ac_pt_PKG_CONFIG in | 
 | 9937 |   [\\/]* | ?:[\\/]*) | 
 | 9938 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 9939 |   ;; | 
 | 9940 |   *) | 
 | 9941 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9942 | for as_dir in $PATH | 
 | 9943 | do | 
 | 9944 |   IFS=$as_save_IFS | 
 | 9945 |   test -z "$as_dir" && as_dir=. | 
 | 9946 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9947 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 9948 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 9949 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 9950 |     break 2 | 
 | 9951 |   fi | 
 | 9952 | done | 
 | 9953 |   done | 
 | 9954 | IFS=$as_save_IFS | 
 | 9955 |  | 
 | 9956 |   ;; | 
 | 9957 | esac | 
 | 9958 | fi | 
 | 9959 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 9960 | if test -n "$ac_pt_PKG_CONFIG"; then | 
 | 9961 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 9962 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
 | 9963 | else | 
 | 9964 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9965 | $as_echo "no" >&6; } | 
 | 9966 | fi | 
 | 9967 |  | 
 | 9968 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 9969 |     PKG_CONFIG="" | 
 | 9970 |   else | 
 | 9971 |     case $cross_compiling:$ac_tool_warned in | 
 | 9972 | yes:) | 
 | 9973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 9974 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 9975 | ac_tool_warned=yes ;; | 
 | 9976 | esac | 
 | 9977 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 9978 |   fi | 
 | 9979 | else | 
 | 9980 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 9981 | fi | 
 | 9982 |  | 
 | 9983 | fi | 
 | 9984 | if test -n "$PKG_CONFIG"; then | 
 | 9985 | 	_pkg_min_version=0.9.0 | 
 | 9986 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
 | 9987 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
 | 9988 | 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
 | 9989 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 9990 | $as_echo "yes" >&6; } | 
 | 9991 | 	else | 
 | 9992 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9993 | $as_echo "no" >&6; } | 
 | 9994 | 		PKG_CONFIG="" | 
 | 9995 | 	fi | 
 | 9996 | fi | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 9997 |  | 
 | 9998 | # Check for use of the system expat library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 | 
 | 10000 | $as_echo_n "checking for --with-system-expat... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10001 |  | 
 | 10002 | # Check whether --with-system_expat was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10003 | if test "${with_system_expat+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10004 |   withval=$with_system_expat; | 
| Benjamin Peterson | 7926325 | 2010-10-31 16:50:44 +0000 | [diff] [blame] | 10005 | else | 
 | 10006 |   with_system_expat="no" | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10007 | fi | 
 | 10008 |  | 
 | 10009 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 | 
 | 10011 | $as_echo "$with_system_expat" >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10012 |  | 
 | 10013 | # Check for use of the system libffi library | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 | 
 | 10015 | $as_echo_n "checking for --with-system-ffi... " >&6; } | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10016 |  | 
 | 10017 | # Check whether --with-system_ffi was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10018 | if test "${with_system_ffi+set}" = set; then : | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10019 |   withval=$with_system_ffi; | 
 | 10020 | fi | 
 | 10021 |  | 
 | 10022 |  | 
| Zachary Ware | f40d4dd | 2016-09-17 01:25:24 -0500 | [diff] [blame] | 10023 | if test "$ac_sys_system" = "Darwin" | 
 | 10024 | then | 
 | 10025 |     case "$with_system_ffi" in | 
 | 10026 |         "") | 
 | 10027 |             with_system_ffi="no" | 
 | 10028 |             ;; | 
 | 10029 |         yes|no) | 
 | 10030 |             ;; | 
 | 10031 |         *) | 
 | 10032 |             as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 | 
 | 10033 |             ;; | 
 | 10034 |     esac | 
 | 10035 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 | 
 | 10036 | $as_echo "$with_system_ffi" >&6; } | 
 | 10037 | else | 
 | 10038 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10039 | $as_echo "yes" >&6; } | 
 | 10040 |     if test "$with_system_ffi" != "" | 
 | 10041 |     then | 
 | 10042 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 | 
 | 10043 | $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} | 
 | 10044 |     fi | 
 | 10045 |     with_system_ffi="yes" | 
 | 10046 | fi | 
| Zachary Ware | 935043d | 2016-09-09 17:01:21 -0700 | [diff] [blame] | 10047 |  | 
| Benjamin Peterson | 0f64b0b | 2010-03-09 21:49:52 +0000 | [diff] [blame] | 10048 | if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then | 
| Benjamin Peterson | d78735d | 2010-01-01 16:04:23 +0000 | [diff] [blame] | 10049 |     LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" | 
 | 10050 | else | 
 | 10051 |     LIBFFI_INCLUDEDIR="" | 
 | 10052 | fi | 
 | 10053 |  | 
 | 10054 |  | 
| Stefan Krah | 60187b5 | 2012-03-23 19:06:27 +0100 | [diff] [blame] | 10055 | # Check for use of the system libmpdec library | 
 | 10056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 | 
 | 10057 | $as_echo_n "checking for --with-system-libmpdec... " >&6; } | 
 | 10058 |  | 
 | 10059 | # Check whether --with-system_libmpdec was given. | 
 | 10060 | if test "${with_system_libmpdec+set}" = set; then : | 
 | 10061 |   withval=$with_system_libmpdec; | 
 | 10062 | else | 
 | 10063 |   with_system_libmpdec="no" | 
 | 10064 | fi | 
 | 10065 |  | 
 | 10066 |  | 
 | 10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 | 
 | 10068 | $as_echo "$with_system_libmpdec" >&6; } | 
 | 10069 |  | 
| Benjamin Peterson | 076ed00 | 2010-10-31 17:11:02 +0000 | [diff] [blame] | 10070 | # Check for support for loadable sqlite extensions | 
 | 10071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 | 
 | 10072 | $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } | 
 | 10073 | # Check whether --enable-loadable-sqlite-extensions was given. | 
 | 10074 | if test "${enable_loadable_sqlite_extensions+set}" = set; then : | 
 | 10075 |   enableval=$enable_loadable_sqlite_extensions; | 
 | 10076 | else | 
 | 10077 |   enable_loadable_sqlite_extensions="no" | 
 | 10078 | fi | 
 | 10079 |  | 
 | 10080 |  | 
 | 10081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 | 
 | 10082 | $as_echo "$enable_loadable_sqlite_extensions" >&6; } | 
 | 10083 |  | 
| Ned Deily | d819b93 | 2013-09-06 01:07:05 -0700 | [diff] [blame] | 10084 | # Check for --with-tcltk-includes=path and --with-tcltk-libs=path | 
 | 10085 |  | 
 | 10086 |  | 
 | 10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 | 
 | 10088 | $as_echo_n "checking for --with-tcltk-includes... " >&6; } | 
 | 10089 |  | 
 | 10090 | # Check whether --with-tcltk-includes was given. | 
 | 10091 | if test "${with_tcltk_includes+set}" = set; then : | 
 | 10092 |   withval=$with_tcltk_includes; | 
 | 10093 | else | 
 | 10094 |   with_tcltk_includes="default" | 
 | 10095 | fi | 
 | 10096 |  | 
 | 10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 | 
 | 10098 | $as_echo "$with_tcltk_includes" >&6; } | 
 | 10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 | 
 | 10100 | $as_echo_n "checking for --with-tcltk-libs... " >&6; } | 
 | 10101 |  | 
 | 10102 | # Check whether --with-tcltk-libs was given. | 
 | 10103 | if test "${with_tcltk_libs+set}" = set; then : | 
 | 10104 |   withval=$with_tcltk_libs; | 
 | 10105 | else | 
 | 10106 |   with_tcltk_libs="default" | 
 | 10107 | fi | 
 | 10108 |  | 
 | 10109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 | 
 | 10110 | $as_echo "$with_tcltk_libs" >&6; } | 
 | 10111 | if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault | 
 | 10112 | then | 
 | 10113 |   if test "x$with_tcltk_includes" != "x$with_tcltk_libs" | 
 | 10114 |   then | 
 | 10115 |     as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 | 
 | 10116 |   fi | 
 | 10117 |   TCLTK_INCLUDES="" | 
 | 10118 |   TCLTK_LIBS="" | 
 | 10119 | else | 
 | 10120 |   TCLTK_INCLUDES="$with_tcltk_includes" | 
 | 10121 |   TCLTK_LIBS="$with_tcltk_libs" | 
 | 10122 | fi | 
 | 10123 |  | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10124 | # Check for --with-dbmliborder | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 | 
 | 10126 | $as_echo_n "checking for --with-dbmliborder... " >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10127 |  | 
 | 10128 | # Check whether --with-dbmliborder was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10129 | if test "${with_dbmliborder+set}" = set; then : | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10130 |   withval=$with_dbmliborder; | 
 | 10131 | if test x$with_dbmliborder = xyes | 
 | 10132 | then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10133 | as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10134 | else | 
 | 10135 |   for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do | 
 | 10136 |     if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb | 
 | 10137 |     then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10138 |       as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10139 |     fi | 
 | 10140 |   done | 
 | 10141 | fi | 
 | 10142 | fi | 
 | 10143 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 | 
 | 10145 | $as_echo "$with_dbmliborder" >&6; } | 
| Matthias Klose | 55708cc | 2009-04-30 08:06:49 +0000 | [diff] [blame] | 10146 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10147 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10148 |  | 
 | 10149 | # Templates for things AC_DEFINEd more than once. | 
 | 10150 | # For a single AC_DEFINE, no template is needed. | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10151 |  | 
 | 10152 |  | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10153 | if test "$ac_cv_pthread_is_default" = yes | 
| Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10154 | then | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10155 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10156 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10157 |  | 
 | 10158 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10159 | elif test "$ac_cv_kpthread" = "yes" | 
 | 10160 | then | 
 | 10161 |     CC="$CC -Kpthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10162 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10163 |         CXX="$CXX -Kpthread" | 
 | 10164 |     fi | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10165 |     posix_threads=yes | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10166 | elif test "$ac_cv_kthread" = "yes" | 
 | 10167 | then | 
 | 10168 |     CC="$CC -Kthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10169 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10170 |         CXX="$CXX -Kthread" | 
 | 10171 |     fi | 
| Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10172 |     posix_threads=yes | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10173 | elif test "$ac_cv_pthread" = "yes" | 
 | 10174 | then | 
 | 10175 |     CC="$CC -pthread" | 
| Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10176 |     if test "$ac_cv_cxx_thread" = "yes"; then | 
 | 10177 |         CXX="$CXX -pthread" | 
 | 10178 |     fi | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10179 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10180 | else | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10181 |     if test ! -z "$withval" -a -d "$withval" | 
 | 10182 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 10183 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10184 |  | 
 | 10185 |     # According to the POSIX spec, a pthreads implementation must | 
| Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 10186 |     # define _POSIX_THREADS in unistd.h. Some apparently don't | 
 | 10187 |     # (e.g. gnu pth with pthread emulation) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10188 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 | 
 | 10189 | $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } | 
 | 10190 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10191 | /* end confdefs.h.  */ | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10192 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10193 | #include <unistd.h> | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10194 | #ifdef _POSIX_THREADS | 
 | 10195 | yes | 
 | 10196 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10197 |  | 
 | 10198 | _ACEOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10200 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10201 |   unistd_defines_pthreads=yes | 
 | 10202 | else | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10203 |   unistd_defines_pthreads=no | 
 | 10204 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10205 | rm -f conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10206 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10207 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 | 
 | 10208 | $as_echo "$unistd_defines_pthreads" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10209 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10210 |     $as_echo "#define _REENTRANT 1" >>confdefs.h | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10211 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10212 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 10213 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 10214 |     # So we really have to include pthread.h, and then link. | 
 | 10215 |     _libs=$LIBS | 
 | 10216 |     LIBS="$LIBS -lpthread" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10217 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | 
 | 10218 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | 
 | 10219 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10220 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10221 |  | 
 | 10222 | #include <stdio.h> | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10223 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10224 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10225 | void * start_routine (void *arg) { exit (0); } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | int | 
 | 10227 | main () | 
 | 10228 | { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10229 |  | 
 | 10230 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10231 |   ; | 
 | 10232 |   return 0; | 
 | 10233 | } | 
 | 10234 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10235 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10237 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10238 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10239 |     posix_threads=yes | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10240 |  | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10241 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10242 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10243 |     LIBS=$_libs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10244 |     ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10245 | if test "x$ac_cv_func_pthread_detach" = xyes; then : | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10246 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10247 |     posix_threads=yes | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10248 |  | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10249 | else | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10250 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10251 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 | 
 | 10252 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10253 | if ${ac_cv_lib_pthreads_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10254 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10255 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10257 | LIBS="-lpthreads  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10259 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10260 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10261 | /* Override any GCC internal prototype to avoid an error. | 
 | 10262 |    Use char because int might match the return type of a GCC | 
 | 10263 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | #ifdef __cplusplus | 
 | 10265 | extern "C" | 
 | 10266 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10268 | int | 
 | 10269 | main () | 
 | 10270 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10271 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10272 |   ; | 
 | 10273 |   return 0; | 
 | 10274 | } | 
 | 10275 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10276 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10277 |   ac_cv_lib_pthreads_pthread_create=yes | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10278 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10279 |   ac_cv_lib_pthreads_pthread_create=no | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10280 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10281 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10282 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 | LIBS=$ac_check_lib_save_LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10284 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 | 
 | 10286 | $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10287 | if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10288 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10289 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10290 |     LIBS="$LIBS -lpthreads" | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10291 |  | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10292 | else | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10293 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10294 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 | 
 | 10295 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10296 | if ${ac_cv_lib_c_r_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10297 |   $as_echo_n "(cached) " >&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10298 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 |   ac_check_lib_save_LIBS=$LIBS | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10300 | LIBS="-lc_r  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10302 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10304 | /* Override any GCC internal prototype to avoid an error. | 
 | 10305 |    Use char because int might match the return type of a GCC | 
 | 10306 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | #ifdef __cplusplus | 
 | 10308 | extern "C" | 
 | 10309 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | int | 
 | 10312 | main () | 
 | 10313 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10314 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 |   ; | 
 | 10316 |   return 0; | 
 | 10317 | } | 
 | 10318 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10319 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10320 |   ac_cv_lib_c_r_pthread_create=yes | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10321 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10322 |   ac_cv_lib_c_r_pthread_create=no | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10323 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10324 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10325 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10327 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 | 
 | 10329 | $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10330 | if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10331 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10332 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10333 |     LIBS="$LIBS -lc_r" | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10334 |  | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10335 | else | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10336 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10337 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 | 
 | 10338 | $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10339 | if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10340 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10341 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10343 | LIBS="-lpthread  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10345 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10347 | /* Override any GCC internal prototype to avoid an error. | 
 | 10348 |    Use char because int might match the return type of a GCC | 
 | 10349 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10350 | #ifdef __cplusplus | 
 | 10351 | extern "C" | 
 | 10352 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 | char __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10354 | int | 
 | 10355 | main () | 
 | 10356 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10357 | return __pthread_create_system (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10358 |   ; | 
 | 10359 |   return 0; | 
 | 10360 | } | 
 | 10361 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10362 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10363 |   ac_cv_lib_pthread___pthread_create_system=yes | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10364 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10365 |   ac_cv_lib_pthread___pthread_create_system=no | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10366 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10367 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10368 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10370 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 | 
 | 10372 | $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10373 | if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10374 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10375 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10376 |     LIBS="$LIBS -lpthread" | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10377 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10378 | else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10379 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10380 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 | 
 | 10381 | $as_echo_n "checking for pthread_create in -lcma... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10382 | if ${ac_cv_lib_cma_pthread_create+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10383 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10384 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10386 | LIBS="-lcma  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10388 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10390 | /* Override any GCC internal prototype to avoid an error. | 
 | 10391 |    Use char because int might match the return type of a GCC | 
 | 10392 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | #ifdef __cplusplus | 
 | 10394 | extern "C" | 
 | 10395 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10396 | char pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | int | 
 | 10398 | main () | 
 | 10399 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10400 | return pthread_create (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10401 |   ; | 
 | 10402 |   return 0; | 
 | 10403 | } | 
 | 10404 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10405 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10406 |   ac_cv_lib_cma_pthread_create=yes | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10407 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10408 |   ac_cv_lib_cma_pthread_create=no | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10409 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10410 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10411 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10412 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10413 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 | 
 | 10415 | $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10416 | if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10417 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10418 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10419 |     LIBS="$LIBS -lcma" | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10420 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10421 | else | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10422 |  | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10423 |     as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 | 
 | 10424 |  | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10425 | fi | 
 | 10426 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10427 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10428 | fi | 
 | 10429 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10430 | fi | 
 | 10431 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10432 | fi | 
 | 10433 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10434 | fi | 
 | 10435 |  | 
| Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10436 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10437 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10438 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10439 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10440 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 | 
 | 10441 | $as_echo_n "checking for usconfig in -lmpc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10442 | if ${ac_cv_lib_mpc_usconfig+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10443 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10444 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10445 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10446 | LIBS="-lmpc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10448 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10449 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10450 | /* Override any GCC internal prototype to avoid an error. | 
 | 10451 |    Use char because int might match the return type of a GCC | 
 | 10452 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10453 | #ifdef __cplusplus | 
 | 10454 | extern "C" | 
 | 10455 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10456 | char usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10457 | int | 
 | 10458 | main () | 
 | 10459 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10460 | return usconfig (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10461 |   ; | 
 | 10462 |   return 0; | 
 | 10463 | } | 
 | 10464 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10465 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10466 |   ac_cv_lib_mpc_usconfig=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10467 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10468 |   ac_cv_lib_mpc_usconfig=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10469 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10470 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 10471 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10472 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10473 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 | 
 | 10475 | $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10476 | if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10477 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10478 |     LIBS="$LIBS -lmpc" | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 10479 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10480 | fi | 
 | 10481 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10482 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10483 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10484 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10485 | if test "$posix_threads" = "yes"; then | 
 | 10486 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10487 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10488 | $as_echo "#define _POSIX_THREADS 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10489 |  | 
 | 10490 |       fi | 
 | 10491 |  | 
 | 10492 |       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. | 
 | 10493 |       case  $ac_sys_system/$ac_sys_release in | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10494 |       SunOS/5.6) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10495 | $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10496 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10497 | 		       ;; | 
 | 10498 |       SunOS/5.8) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10499 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10500 |  | 
 | 10501 | 		       ;; | 
| Charles-François Natali | 996f606 | 2011-07-21 19:45:31 +0200 | [diff] [blame] | 10502 |       AIX/*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10503 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | 
| Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 10504 |  | 
 | 10505 | 		       ;; | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10506 |       esac | 
 | 10507 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10508 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
 | 10509 | $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10510 |       if ${ac_cv_pthread_system_supported+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10511 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10512 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10513 |   if test "$cross_compiling" = yes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10514 |   ac_cv_pthread_system_supported=no | 
 | 10515 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10516 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10517 | /* end confdefs.h.  */ | 
| Stefan Krah | 7dba594 | 2012-11-22 22:49:11 +0100 | [diff] [blame] | 10518 |  | 
 | 10519 |       #include <stdio.h> | 
 | 10520 |       #include <pthread.h> | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10521 |       void *foo(void *parm) { | 
 | 10522 |         return NULL; | 
 | 10523 |       } | 
 | 10524 |       main() { | 
 | 10525 |         pthread_attr_t attr; | 
 | 10526 |         pthread_t id; | 
 | 10527 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 10528 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
 | 10529 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
 | 10530 |         exit(0); | 
 | 10531 |       } | 
 | 10532 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10533 | if ac_fn_c_try_run "$LINENO"; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10534 |   ac_cv_pthread_system_supported=yes | 
 | 10535 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10536 |   ac_cv_pthread_system_supported=no | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10537 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10538 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 10539 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10540 | fi | 
| Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 10541 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10542 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10543 | fi | 
 | 10544 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10545 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 | 
 | 10546 | $as_echo "$ac_cv_pthread_system_supported" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10547 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
 | 10548 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10549 | $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10550 |  | 
 | 10551 |       fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10552 |       for ac_func in pthread_sigmask | 
 | 10553 | do : | 
 | 10554 |   ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10555 | if test "x$ac_cv_func_pthread_sigmask" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10556 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10557 | #define HAVE_PTHREAD_SIGMASK 1 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10558 | _ACEOF | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10559 |  case $ac_sys_system in | 
 | 10560 |         CYGWIN*) | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10561 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10562 | $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h | 
| Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 10563 |  | 
 | 10564 |             ;; | 
 | 10565 |         esac | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10566 | fi | 
 | 10567 | done | 
 | 10568 |  | 
| pdox | e14679c | 2017-10-05 00:01:56 -0700 | [diff] [blame] | 10569 |       for ac_func in pthread_getcpuclockid | 
 | 10570 | do : | 
 | 10571 |   ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" | 
 | 10572 | if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : | 
 | 10573 |   cat >>confdefs.h <<_ACEOF | 
 | 10574 | #define HAVE_PTHREAD_GETCPUCLOCKID 1 | 
 | 10575 | _ACEOF | 
 | 10576 |  | 
 | 10577 | fi | 
 | 10578 | done | 
 | 10579 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10580 | fi | 
 | 10581 |  | 
 | 10582 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10583 | # Check for enable-ipv6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10584 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 | 
 | 10586 | $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10587 | # Check whether --enable-ipv6 was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10588 | if test "${enable_ipv6+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10589 |   enableval=$enable_ipv6;  case "$enableval" in | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10590 |   no) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10591 |        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10592 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10593 |        ipv6=no | 
 | 10594 |        ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10595 |   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10596 | $as_echo "yes" >&6; } | 
 | 10597 |        $as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10598 |  | 
 | 10599 |        ipv6=yes | 
 | 10600 |        ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10601 |   esac | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10602 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10603 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10604 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10605 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10606 |  /* AF_INET6 available check */ | 
 | 10607 | #include <sys/types.h> | 
 | 10608 | #include <sys/socket.h> | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10609 | int | 
 | 10610 | main () | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10611 | { | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10612 | int domain = AF_INET6; | 
 | 10613 |   ; | 
 | 10614 |   return 0; | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10615 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10616 | _ACEOF | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10617 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10618 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10619 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10620 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10621 |   ipv6=yes | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10622 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10623 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10625 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10626 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10627 |   ipv6=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10628 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10629 | fi | 
| Charles-François Natali | f6fd794 | 2013-01-08 19:49:42 +0100 | [diff] [blame] | 10630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10631 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10632 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10633 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 | 
 | 10634 | $as_echo_n "checking if RFC2553 API is available... " >&6; } | 
 | 10635 | 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10636 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10637 |  | 
 | 10638 | 	  #include <sys/types.h> | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10639 | #include <netinet/in.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | int | 
 | 10641 | main () | 
 | 10642 | { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10643 | struct sockaddr_in6 x; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10644 | 			    x.sin6_scope_id; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10645 |   ; | 
 | 10646 |   return 0; | 
 | 10647 | } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10648 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10649 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10650 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10651 |  | 
 | 10652 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10653 | $as_echo "yes" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10654 | 	  ipv6=yes | 
 | 10655 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10656 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10657 |  | 
 | 10658 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10659 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 10660 | 	  ipv6=no | 
 | 10661 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10662 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10664 | fi | 
 | 10665 |  | 
 | 10666 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10667 | 	$as_echo "#define ENABLE_IPV6 1" >>confdefs.h | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10668 |  | 
 | 10669 | fi | 
 | 10670 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10671 | fi | 
 | 10672 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10673 |  | 
 | 10674 | ipv6type=unknown | 
 | 10675 | ipv6lib=none | 
 | 10676 | ipv6trylibc=no | 
 | 10677 |  | 
 | 10678 | if test "$ipv6" = "yes"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10679 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 | 
 | 10680 | $as_echo_n "checking ipv6 stack type... " >&6; } | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10681 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 10682 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10683 | 		case $i in | 
 | 10684 | 		inria) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10685 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10686 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10687 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10688 | #include <netinet/in.h> | 
 | 10689 | #ifdef IPV6_INRIA_VERSION | 
 | 10690 | yes | 
 | 10691 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10692 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10693 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10694 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10695 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10696 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10697 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10698 |  | 
 | 10699 | 			;; | 
 | 10700 | 		kame) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10701 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10702 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10703 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10704 | #include <netinet/in.h> | 
 | 10705 | #ifdef __KAME__ | 
 | 10706 | yes | 
 | 10707 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10708 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10709 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10710 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10711 |   ipv6type=$i; | 
 | 10712 | 				ipv6lib=inet6 | 
 | 10713 | 				ipv6libdir=/usr/local/v6/lib | 
 | 10714 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10715 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10716 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10717 |  | 
 | 10718 | 			;; | 
 | 10719 | 		linux-glibc) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10720 | 						cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10721 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10722 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10723 | #include <features.h> | 
 | 10724 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 10725 | yes | 
 | 10726 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10727 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10728 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10729 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10730 |   ipv6type=$i; | 
 | 10731 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10732 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10733 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10734 |  | 
 | 10735 | 			;; | 
 | 10736 | 		linux-inet6) | 
 | 10737 | 						if test -d /usr/inet6; then | 
 | 10738 | 				ipv6type=$i | 
 | 10739 | 				ipv6lib=inet6 | 
 | 10740 | 				ipv6libdir=/usr/inet6/lib | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10741 | 				BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10742 | 			fi | 
 | 10743 | 			;; | 
 | 10744 | 		solaris) | 
 | 10745 | 			if test -f /etc/netconfig; then | 
| Antoine Pitrou | f3fcd9f | 2011-01-03 18:53:50 +0000 | [diff] [blame] | 10746 |                           if $GREP -q tcp6 /etc/netconfig; then | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10747 | 				ipv6type=$i | 
 | 10748 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10749 |                           fi | 
 | 10750 |                         fi | 
 | 10751 | 			;; | 
 | 10752 | 		toshiba) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10753 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10754 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10755 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10756 | #include <sys/param.h> | 
 | 10757 | #ifdef _TOSHIBA_INET6 | 
 | 10758 | yes | 
 | 10759 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10762 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10763 |   ipv6type=$i; | 
 | 10764 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10765 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10766 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10767 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10768 |  | 
 | 10769 | 			;; | 
 | 10770 | 		v6d) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10771 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10772 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10773 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10774 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 10775 | #ifdef __V6D__ | 
 | 10776 | yes | 
 | 10777 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10780 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10781 |   ipv6type=$i; | 
 | 10782 | 				ipv6lib=v6; | 
 | 10783 | 				ipv6libdir=/usr/local/v6/lib; | 
| Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10784 | 				BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10785 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10786 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10787 |  | 
 | 10788 | 			;; | 
 | 10789 | 		zeta) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10790 | 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10791 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10792 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10793 | #include <sys/param.h> | 
 | 10794 | #ifdef _ZETA_MINAMI_INET6 | 
 | 10795 | yes | 
 | 10796 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10797 | _ACEOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10799 |   $EGREP "yes" >/dev/null 2>&1; then : | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10800 |   ipv6type=$i; | 
 | 10801 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10802 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10803 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 10804 | rm -f conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10805 |  | 
 | 10806 | 			;; | 
 | 10807 | 		esac | 
 | 10808 | 		if test "$ipv6type" != "unknown"; then | 
 | 10809 | 			break | 
 | 10810 | 		fi | 
 | 10811 | 	done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10812 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 | 
 | 10813 | $as_echo "$ipv6type" >&6; } | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10814 | fi | 
 | 10815 |  | 
 | 10816 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 10817 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 10818 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 10819 | 		echo "using lib$ipv6lib" | 
 | 10820 | 	else | 
 | 10821 | 		if test $ipv6trylibc = "yes"; then | 
 | 10822 | 			echo "using libc" | 
 | 10823 | 		else | 
 | 10824 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 10825 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 10826 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 10827 | 			exit 1 | 
 | 10828 | 		fi | 
 | 10829 | 	fi | 
 | 10830 | fi | 
 | 10831 |  | 
| Larry Hastings | a6cc551 | 2015-04-13 17:48:40 -0400 | [diff] [blame] | 10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 | 
 | 10833 | $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } | 
 | 10834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10835 | /* end confdefs.h.  */ | 
 | 10836 |  /* CAN_RAW_FD_FRAMES available check */ | 
 | 10837 | #include <linux/can/raw.h> | 
 | 10838 | int | 
 | 10839 | main () | 
 | 10840 | { | 
 | 10841 | int can_raw_fd_frames = CAN_RAW_FD_FRAMES; | 
 | 10842 |   ; | 
 | 10843 |   return 0; | 
 | 10844 | } | 
 | 10845 | _ACEOF | 
 | 10846 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10847 |  | 
 | 10848 |  | 
 | 10849 | $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h | 
 | 10850 |  | 
 | 10851 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 10852 | $as_echo "yes" >&6; } | 
 | 10853 |  | 
 | 10854 | else | 
 | 10855 |  | 
 | 10856 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10857 | $as_echo "no" >&6; } | 
 | 10858 |  | 
 | 10859 | fi | 
 | 10860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10861 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10862 | # Check for --with-doc-strings | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 | 
 | 10864 | $as_echo_n "checking for --with-doc-strings... " >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10865 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10866 | # Check whether --with-doc-strings was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10867 | if test "${with_doc_strings+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10868 |   withval=$with_doc_strings; | 
 | 10869 | fi | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10870 |  | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10871 |  | 
 | 10872 | if test -z "$with_doc_strings" | 
 | 10873 | then with_doc_strings="yes" | 
 | 10874 | fi | 
 | 10875 | if test "$with_doc_strings" != "no" | 
 | 10876 | then | 
 | 10877 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10878 | $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10879 |  | 
 | 10880 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 | 
 | 10882 | $as_echo "$with_doc_strings" >&6; } | 
| Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 10883 |  | 
| Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 10884 | # Check for Python-specific malloc support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | 
 | 10886 | $as_echo_n "checking for --with-pymalloc... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10887 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10888 | # Check whether --with-pymalloc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10889 | if test "${with_pymalloc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10890 |   withval=$with_pymalloc; | 
 | 10891 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10892 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10893 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10894 | if test -z "$with_pymalloc" | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 10895 | then | 
 | 10896 |     with_pymalloc="yes" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10897 | fi | 
 | 10898 | if test "$with_pymalloc" != "no" | 
 | 10899 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10900 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10901 | $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10902 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 10903 |     ABIFLAGS="${ABIFLAGS}m" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10904 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 | 
 | 10906 | $as_echo "$with_pymalloc" >&6; } | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10907 |  | 
| Nick Coghlan | 6ea4186 | 2017-06-11 13:16:15 +1000 | [diff] [blame] | 10908 | # Check for --with-c-locale-coercion | 
 | 10909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 | 
 | 10910 | $as_echo_n "checking for --with-c-locale-coercion... " >&6; } | 
 | 10911 |  | 
 | 10912 | # Check whether --with-c-locale-coercion was given. | 
 | 10913 | if test "${with_c_locale_coercion+set}" = set; then : | 
 | 10914 |   withval=$with_c_locale_coercion; | 
 | 10915 | fi | 
 | 10916 |  | 
 | 10917 |  | 
 | 10918 | if test -z "$with_c_locale_coercion" | 
 | 10919 | then | 
 | 10920 |     with_c_locale_coercion="yes" | 
 | 10921 | fi | 
 | 10922 | if test "$with_c_locale_coercion" != "no" | 
 | 10923 | then | 
 | 10924 |  | 
 | 10925 | $as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h | 
 | 10926 |  | 
 | 10927 | fi | 
 | 10928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 | 
 | 10929 | $as_echo "$with_c_locale_coercion" >&6; } | 
 | 10930 |  | 
 | 10931 | # Check for --with-c-locale-warning | 
 | 10932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-warning" >&5 | 
 | 10933 | $as_echo_n "checking for --with-c-locale-warning... " >&6; } | 
 | 10934 |  | 
 | 10935 | # Check whether --with-c-locale-warning was given. | 
 | 10936 | if test "${with_c_locale_warning+set}" = set; then : | 
 | 10937 |   withval=$with_c_locale_warning; | 
 | 10938 | fi | 
 | 10939 |  | 
 | 10940 |  | 
 | 10941 | if test -z "$with_c_locale_warning" | 
 | 10942 | then | 
 | 10943 |     with_c_locale_warning="yes" | 
 | 10944 | fi | 
 | 10945 | if test "$with_c_locale_warning" != "no" | 
 | 10946 | then | 
 | 10947 |  | 
 | 10948 | $as_echo "#define PY_WARN_ON_C_LOCALE 1" >>confdefs.h | 
 | 10949 |  | 
 | 10950 | fi | 
 | 10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_warning" >&5 | 
 | 10952 | $as_echo "$with_c_locale_warning" >&6; } | 
 | 10953 |  | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10954 | # Check for Valgrind support | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 | 
 | 10956 | $as_echo_n "checking for --with-valgrind... " >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10957 |  | 
 | 10958 | # Check whether --with-valgrind was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10959 | if test "${with_valgrind+set}" = set; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10960 |   withval=$with_valgrind; | 
 | 10961 | else | 
 | 10962 |   with_valgrind=no | 
 | 10963 | fi | 
 | 10964 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 | 
 | 10966 | $as_echo "$with_valgrind" >&6; } | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10967 | if test "$with_valgrind" != no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10968 |     ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 10969 | if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10970 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 10971 | $as_echo "#define WITH_VALGRIND 1" >>confdefs.h | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10972 |  | 
 | 10973 | else | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 10974 |   as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10975 |  | 
 | 10976 | fi | 
 | 10977 |  | 
 | 10978 |  | 
| Jeffrey Yasskin | 3937083 | 2010-05-03 19:29:34 +0000 | [diff] [blame] | 10979 |     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" | 
| Benjamin Peterson | 05159c4 | 2009-12-03 03:01:27 +0000 | [diff] [blame] | 10980 | fi | 
 | 10981 |  | 
| Łukasz Langa | a785c87 | 2016-09-09 17:37:37 -0700 | [diff] [blame] | 10982 | # Check for DTrace support | 
 | 10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 | 
 | 10984 | $as_echo_n "checking for --with-dtrace... " >&6; } | 
 | 10985 |  | 
 | 10986 | # Check whether --with-dtrace was given. | 
 | 10987 | if test "${with_dtrace+set}" = set; then : | 
 | 10988 |   withval=$with_dtrace; | 
 | 10989 | else | 
 | 10990 |   with_dtrace=no | 
 | 10991 | fi | 
 | 10992 |  | 
 | 10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 | 
 | 10994 | $as_echo "$with_dtrace" >&6; } | 
 | 10995 |  | 
 | 10996 |  | 
 | 10997 |  | 
 | 10998 |  | 
 | 10999 |  | 
 | 11000 | DTRACE= | 
 | 11001 | DFLAGS= | 
 | 11002 | DTRACE_HEADERS= | 
 | 11003 | DTRACE_OBJS= | 
 | 11004 |  | 
 | 11005 | if test "$with_dtrace" = "yes" | 
 | 11006 | then | 
 | 11007 |     # Extract the first word of "dtrace", so it can be a program name with args. | 
 | 11008 | set dummy dtrace; ac_word=$2 | 
 | 11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11010 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 11011 | if ${ac_cv_path_DTRACE+:} false; then : | 
 | 11012 |   $as_echo_n "(cached) " >&6 | 
 | 11013 | else | 
 | 11014 |   case $DTRACE in | 
 | 11015 |   [\\/]* | ?:[\\/]*) | 
 | 11016 |   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. | 
 | 11017 |   ;; | 
 | 11018 |   *) | 
 | 11019 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11020 | for as_dir in $PATH | 
 | 11021 | do | 
 | 11022 |   IFS=$as_save_IFS | 
 | 11023 |   test -z "$as_dir" && as_dir=. | 
 | 11024 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11025 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11026 |     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" | 
 | 11027 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11028 |     break 2 | 
 | 11029 |   fi | 
 | 11030 | done | 
 | 11031 |   done | 
 | 11032 | IFS=$as_save_IFS | 
 | 11033 |  | 
 | 11034 |   test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" | 
 | 11035 |   ;; | 
 | 11036 | esac | 
 | 11037 | fi | 
 | 11038 | DTRACE=$ac_cv_path_DTRACE | 
 | 11039 | if test -n "$DTRACE"; then | 
 | 11040 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 | 
 | 11041 | $as_echo "$DTRACE" >&6; } | 
 | 11042 | else | 
 | 11043 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11044 | $as_echo "no" >&6; } | 
 | 11045 | fi | 
 | 11046 |  | 
 | 11047 |  | 
 | 11048 |     if test "$DTRACE" = "not found"; then | 
 | 11049 |         as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 | 
 | 11050 |     fi | 
 | 11051 |  | 
 | 11052 | $as_echo "#define WITH_DTRACE 1" >>confdefs.h | 
 | 11053 |  | 
 | 11054 |     DTRACE_HEADERS="Include/pydtrace_probes.h" | 
 | 11055 |  | 
 | 11056 |     # On OS X, DTrace providers do not need to be explicitly compiled and | 
 | 11057 |     # linked into the binary. Correspondingly, dtrace(1) is missing the ELF | 
 | 11058 |     # generation flag '-G'. We check for presence of this flag, rather than | 
 | 11059 |     # hardcoding support by OS, in the interest of robustness. | 
 | 11060 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 | 
 | 11061 | $as_echo_n "checking whether DTrace probes require linking... " >&6; } | 
 | 11062 | if ${ac_cv_dtrace_link+:} false; then : | 
 | 11063 |   $as_echo_n "(cached) " >&6 | 
 | 11064 | else | 
 | 11065 |               ac_cv_dtrace_link=no | 
 | 11066 |             echo 'BEGIN' > conftest.d | 
 | 11067 |             "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ | 
 | 11068 |                 ac_cv_dtrace_link=yes | 
 | 11069 |  | 
 | 11070 | fi | 
 | 11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 | 
 | 11072 | $as_echo "$ac_cv_dtrace_link" >&6; } | 
 | 11073 |     if test "$ac_cv_dtrace_link" = "yes"; then | 
 | 11074 |         DTRACE_OBJS="Python/pydtrace.o" | 
 | 11075 |     fi | 
 | 11076 | fi | 
 | 11077 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11078 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11079 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11080 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11081 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11082 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 11083 | # platforms, such as AIX, have dlopen(), but don't want to use it. | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11084 | for ac_func in dlopen | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11085 | do : | 
 | 11086 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11087 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11088 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11089 | #define HAVE_DLOPEN 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11090 | _ACEOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11091 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11092 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11093 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11094 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11095 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11096 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 11097 | # loading of modules. | 
 | 11098 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 | 
 | 11100 | $as_echo_n "checking DYNLOADFILE... " >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11101 | if test -z "$DYNLOADFILE" | 
 | 11102 | then | 
 | 11103 | 	case $ac_sys_system/$ac_sys_release in | 
| Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 11104 | 	AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c | 
 | 11105 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 11106 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 11107 | 	else DYNLOADFILE="dynload_aix.o" | 
 | 11108 | 	fi | 
 | 11109 | 	;; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11110 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11111 | 	# Use dynload_next.c only on 10.2 and below, which don't have native dlopen() | 
 | 11112 | 	Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11113 | 	*) | 
 | 11114 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 11115 | 	# out any dynamic loading | 
 | 11116 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 11117 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 11118 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 11119 | 	fi | 
 | 11120 | 	;; | 
 | 11121 | 	esac | 
 | 11122 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 | 
 | 11124 | $as_echo "$DYNLOADFILE" >&6; } | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11125 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 11126 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11128 | $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11129 |  | 
 | 11130 | fi | 
 | 11131 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11132 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 11133 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11134 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 | 
 | 11136 | $as_echo_n "checking MACHDEP_OBJS... " >&6; } | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11137 | if test -z "$MACHDEP_OBJS" | 
 | 11138 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11139 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 11140 | else | 
 | 11141 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11142 | fi | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 11143 | if test -z "$MACHDEP_OBJS"; then | 
 | 11144 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 11145 | $as_echo "none" >&6; } | 
 | 11146 | else | 
 | 11147 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 | 
 | 11148 | $as_echo "$MACHDEP_OBJS" >&6; } | 
 | 11149 | fi | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11150 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11151 | # checks for library functions | 
| Antoine Pitrou | b1c5496 | 2010-10-14 15:05:38 +0000 | [diff] [blame] | 11152 | for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ | 
| Victor Stinner | daf4555 | 2013-08-28 00:53:59 +0200 | [diff] [blame] | 11153 |  clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11154 |  fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ | 
| Victor Stinner | 4d6a3d6 | 2014-12-21 01:16:38 +0100 | [diff] [blame] | 11155 |  futimens futimes gai_strerror getentropy \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11156 |  getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ | 
| Martin v. Löwis | 7aed61a | 2009-11-27 14:09:49 +0000 | [diff] [blame] | 11157 |  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ | 
| Xavier de Gaye | bdf0d0f | 2016-12-22 10:38:59 +0100 | [diff] [blame] | 11158 |  initgroups kill killpg lchmod lchown linkat lstat lutimes mmap \ | 
| Antoine Pitrou | f0effe6 | 2011-11-26 01:11:02 +0100 | [diff] [blame] | 11159 |  memrchr mbrtowc mkdirat mkfifo \ | 
| Charles-François Natali | daafdd5 | 2011-05-29 20:07:40 +0200 | [diff] [blame] | 11160 |  mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11161 |  posix_fallocate posix_fadvise pread \ | 
| Victor Stinner | b3e7219 | 2011-05-08 01:46:11 +0200 | [diff] [blame] | 11162 |  pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ | 
| Benjamin Peterson | a234485 | 2017-09-04 10:21:42 -0700 | [diff] [blame] | 11163 |  sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ | 
| Antoine Pitrou | 061cfb5 | 2011-02-28 22:25:22 +0000 | [diff] [blame] | 11164 |  setgid sethostname \ | 
| Giampaolo Rodolà | 18e8bcb | 2011-02-25 20:57:54 +0000 | [diff] [blame] | 11165 |  setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ | 
| Charles-François Natali | ea0d5fc | 2011-09-06 19:03:35 +0200 | [diff] [blame] | 11166 |  sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ | 
 | 11167 |  sched_rr_get_interval \ | 
| Ross Lagerwall | bc80822 | 2011-06-25 12:13:40 +0200 | [diff] [blame] | 11168 |  sigaction sigaltstack siginterrupt sigpending sigrelse \ | 
 | 11169 |  sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ | 
| Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11170 |  sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Ross Lagerwall | 7807c35 | 2011-03-17 20:20:30 +0200 | [diff] [blame] | 11171 |  truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ | 
| Victor Stinner | cd777ea | 2013-04-08 22:43:44 +0200 | [diff] [blame] | 11172 |  wcscoll wcsftime wcsxfrm wmemcmp writev _getpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11173 | do : | 
 | 11174 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 11175 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 11176 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11177 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11178 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11179 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11180 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11181 | fi | 
 | 11182 | done | 
 | 11183 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11184 |  | 
| Gregory P. Smith | df300d5 | 2012-01-21 18:20:15 -0800 | [diff] [blame] | 11185 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> | 
 | 11186 |        #include <dirent.h> | 
 | 11187 | " | 
 | 11188 | if test "x$ac_cv_have_decl_dirfd" = xyes; then : | 
 | 11189 |  | 
 | 11190 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | 
 | 11191 |  | 
 | 11192 | fi | 
 | 11193 |  | 
 | 11194 |  | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11195 | # For some functions, having a definition is not sufficient, since | 
 | 11196 | # we want to take their address. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 | 
 | 11198 | $as_echo_n "checking for chroot... " >&6; } | 
 | 11199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11200 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11201 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11202 | int | 
 | 11203 | main () | 
 | 11204 | { | 
 | 11205 | void *x=chroot | 
 | 11206 |   ; | 
 | 11207 |   return 0; | 
 | 11208 | } | 
 | 11209 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11210 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11211 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11212 | $as_echo "#define HAVE_CHROOT 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11213 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11214 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11215 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11216 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11217 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11218 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11219 |  | 
 | 11220 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 | 
 | 11223 | $as_echo_n "checking for link... " >&6; } | 
 | 11224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11225 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11226 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11227 | int | 
 | 11228 | main () | 
 | 11229 | { | 
 | 11230 | void *x=link | 
 | 11231 |   ; | 
 | 11232 |   return 0; | 
 | 11233 | } | 
 | 11234 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11235 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11236 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11237 | $as_echo "#define HAVE_LINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11238 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11239 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11240 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11241 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11242 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11243 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11244 |  | 
 | 11245 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 | 
 | 11248 | $as_echo_n "checking for symlink... " >&6; } | 
 | 11249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11250 | /* end confdefs.h.  */ | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11251 | #include <unistd.h> | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11252 | int | 
 | 11253 | main () | 
 | 11254 | { | 
 | 11255 | void *x=symlink | 
 | 11256 |   ; | 
 | 11257 |   return 0; | 
 | 11258 | } | 
 | 11259 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11260 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11261 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11262 | $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11263 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11264 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11265 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11266 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11267 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11268 | $as_echo "no" >&6; } | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11269 |  | 
 | 11270 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 | 
 | 11273 | $as_echo_n "checking for fchdir... " >&6; } | 
 | 11274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11275 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11276 | #include <unistd.h> | 
 | 11277 | int | 
 | 11278 | main () | 
 | 11279 | { | 
 | 11280 | void *x=fchdir | 
 | 11281 |   ; | 
 | 11282 |   return 0; | 
 | 11283 | } | 
 | 11284 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11285 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11286 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11287 | $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11288 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11289 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11290 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11291 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11292 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11293 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11294 |  | 
 | 11295 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 | 
 | 11298 | $as_echo_n "checking for fsync... " >&6; } | 
 | 11299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11300 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11301 | #include <unistd.h> | 
 | 11302 | int | 
 | 11303 | main () | 
 | 11304 | { | 
 | 11305 | void *x=fsync | 
 | 11306 |   ; | 
 | 11307 |   return 0; | 
 | 11308 | } | 
 | 11309 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11310 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11311 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11312 | $as_echo "#define HAVE_FSYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11313 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11314 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11315 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11316 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11317 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11318 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11319 |  | 
 | 11320 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 | 
 | 11323 | $as_echo_n "checking for fdatasync... " >&6; } | 
 | 11324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11325 | /* end confdefs.h.  */ | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11326 | #include <unistd.h> | 
 | 11327 | int | 
 | 11328 | main () | 
 | 11329 | { | 
 | 11330 | void *x=fdatasync | 
 | 11331 |   ; | 
 | 11332 |   return 0; | 
 | 11333 | } | 
 | 11334 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11335 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11336 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11337 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11338 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11339 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11340 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11341 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11342 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11343 | $as_echo "no" >&6; } | 
| Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 11344 |  | 
 | 11345 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 | 
 | 11348 | $as_echo_n "checking for epoll... " >&6; } | 
 | 11349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11350 | /* end confdefs.h.  */ | 
 | 11351 | #include <sys/epoll.h> | 
 | 11352 | int | 
 | 11353 | main () | 
 | 11354 | { | 
 | 11355 | void *x=epoll_create | 
 | 11356 |   ; | 
 | 11357 |   return 0; | 
 | 11358 | } | 
 | 11359 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11360 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11361 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11362 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11363 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11364 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11365 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11366 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11367 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11368 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11369 |  | 
 | 11370 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Benjamin Peterson | 95c1662 | 2011-12-27 15:36:32 -0600 | [diff] [blame] | 11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 | 
 | 11373 | $as_echo_n "checking for epoll_create1... " >&6; } | 
 | 11374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11375 | /* end confdefs.h.  */ | 
 | 11376 | #include <sys/epoll.h> | 
 | 11377 | int | 
 | 11378 | main () | 
 | 11379 | { | 
 | 11380 | void *x=epoll_create1 | 
 | 11381 |   ; | 
 | 11382 |   return 0; | 
 | 11383 | } | 
 | 11384 | _ACEOF | 
 | 11385 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11386 |  | 
 | 11387 | $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h | 
 | 11388 |  | 
 | 11389 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11390 | $as_echo "yes" >&6; } | 
 | 11391 | else | 
 | 11392 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11393 | $as_echo "no" >&6; } | 
 | 11394 |  | 
 | 11395 | fi | 
 | 11396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 | 
 | 11398 | $as_echo_n "checking for kqueue... " >&6; } | 
 | 11399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11400 | /* end confdefs.h.  */ | 
 | 11401 |  | 
 | 11402 | #include <sys/types.h> | 
 | 11403 | #include <sys/event.h> | 
 | 11404 |  | 
 | 11405 | int | 
 | 11406 | main () | 
 | 11407 | { | 
 | 11408 | int x=kqueue() | 
 | 11409 |   ; | 
 | 11410 |   return 0; | 
 | 11411 | } | 
 | 11412 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11413 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11414 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11415 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11416 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11417 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11418 | $as_echo "yes" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11419 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11420 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11421 | $as_echo "no" >&6; } | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11422 |  | 
 | 11423 | fi | 
| Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 11424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Christian Heimes | b7bd5df | 2013-10-22 11:21:54 +0200 | [diff] [blame] | 11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 | 
 | 11426 | $as_echo_n "checking for prlimit... " >&6; } | 
 | 11427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11428 | /* end confdefs.h.  */ | 
 | 11429 |  | 
 | 11430 | #include <sys/time.h> | 
 | 11431 | #include <sys/resource.h> | 
 | 11432 |  | 
 | 11433 | int | 
 | 11434 | main () | 
 | 11435 | { | 
 | 11436 | void *x=prlimit | 
 | 11437 |   ; | 
 | 11438 |   return 0; | 
 | 11439 | } | 
 | 11440 | _ACEOF | 
 | 11441 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11442 |  | 
 | 11443 | $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h | 
 | 11444 |  | 
 | 11445 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11446 | $as_echo "yes" >&6; } | 
 | 11447 | else | 
 | 11448 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11449 | $as_echo "no" >&6; } | 
 | 11450 |  | 
 | 11451 | fi | 
 | 11452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11453 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11454 | # On some systems (eg. FreeBSD 5), we would find a definition of the | 
 | 11455 | # functions ctermid_r, setgroups in the library, but no prototype | 
 | 11456 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their | 
 | 11457 | # address to avoid compiler warnings and potential miscompilations | 
 | 11458 | # because of the missing prototypes. | 
 | 11459 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 | 
 | 11461 | $as_echo_n "checking for ctermid_r... " >&6; } | 
 | 11462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11463 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11464 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11465 | #include <stdio.h> | 
 | 11466 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11467 | int | 
 | 11468 | main () | 
 | 11469 | { | 
 | 11470 | void* p = ctermid_r | 
 | 11471 |   ; | 
 | 11472 |   return 0; | 
 | 11473 | } | 
 | 11474 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11475 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11476 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11477 | $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11478 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11479 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11480 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11481 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11482 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11483 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 11484 |  | 
 | 11485 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11487 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 | 
 | 11489 | $as_echo_n "checking for flock declaration... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11490 | if ${ac_cv_flock_decl+:} false; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11491 |   $as_echo_n "(cached) " >&6 | 
 | 11492 | else | 
 | 11493 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11494 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11495 | #include <sys/file.h> | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11496 | int | 
 | 11497 | main () | 
 | 11498 | { | 
 | 11499 | void* p = flock | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11500 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11501 |   ; | 
 | 11502 |   return 0; | 
 | 11503 | } | 
 | 11504 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11505 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11506 |   ac_cv_flock_decl=yes | 
 | 11507 | else | 
 | 11508 |   ac_cv_flock_decl=no | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11509 |  | 
 | 11510 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11512 |  | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11513 | fi | 
 | 11514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 | 
 | 11515 | $as_echo "$ac_cv_flock_decl" >&6; } | 
 | 11516 | if test "x${ac_cv_flock_decl}" = xyes; then | 
 | 11517 |   for ac_func in flock | 
 | 11518 | do : | 
 | 11519 |   ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11520 | if test "x$ac_cv_func_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11521 |   cat >>confdefs.h <<_ACEOF | 
 | 11522 | #define HAVE_FLOCK 1 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11523 | _ACEOF | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11524 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11525 | else | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11526 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11527 | $as_echo_n "checking for flock in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11528 | if ${ac_cv_lib_bsd_flock+:} false; then : | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11529 |   $as_echo_n "(cached) " >&6 | 
 | 11530 | else | 
 | 11531 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11532 | LIBS="-lbsd  $LIBS" | 
 | 11533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11534 | /* end confdefs.h.  */ | 
 | 11535 |  | 
 | 11536 | /* Override any GCC internal prototype to avoid an error. | 
 | 11537 |    Use char because int might match the return type of a GCC | 
 | 11538 |    builtin and then its argument prototype would still apply.  */ | 
 | 11539 | #ifdef __cplusplus | 
 | 11540 | extern "C" | 
 | 11541 | #endif | 
 | 11542 | char flock (); | 
 | 11543 | int | 
 | 11544 | main () | 
 | 11545 | { | 
 | 11546 | return flock (); | 
 | 11547 |   ; | 
 | 11548 |   return 0; | 
 | 11549 | } | 
 | 11550 | _ACEOF | 
 | 11551 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 11552 |   ac_cv_lib_bsd_flock=yes | 
 | 11553 | else | 
 | 11554 |   ac_cv_lib_bsd_flock=no | 
 | 11555 | fi | 
 | 11556 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11557 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11558 | LIBS=$ac_check_lib_save_LIBS | 
 | 11559 | fi | 
 | 11560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 | 
 | 11561 | $as_echo "$ac_cv_lib_bsd_flock" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11562 | if test "x$ac_cv_lib_bsd_flock" = xyes; then : | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11563 |   $as_echo "#define HAVE_FLOCK 1" >>confdefs.h | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11564 |  | 
 | 11565 |  | 
 | 11566 | $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h | 
 | 11567 |  | 
 | 11568 |  | 
 | 11569 | fi | 
 | 11570 |  | 
 | 11571 |  | 
 | 11572 | fi | 
| Antoine Pitrou | a4e4ae2 | 2010-09-10 18:39:00 +0000 | [diff] [blame] | 11573 | done | 
 | 11574 |  | 
| Antoine Pitrou | a300007 | 2010-09-07 14:52:42 +0000 | [diff] [blame] | 11575 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11576 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 | 
 | 11578 | $as_echo_n "checking for getpagesize... " >&6; } | 
 | 11579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11580 | /* end confdefs.h.  */ | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11581 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11582 | #include <unistd.h> | 
 | 11583 |  | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11584 | int | 
 | 11585 | main () | 
 | 11586 | { | 
 | 11587 | void* p = getpagesize | 
 | 11588 |   ; | 
 | 11589 |   return 0; | 
 | 11590 | } | 
 | 11591 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11592 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11593 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11594 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11595 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11596 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11597 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11598 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11599 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11600 | $as_echo "no" >&6; } | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11601 |  | 
 | 11602 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 11604 |  | 
| Victor Stinner | 984890f | 2011-11-24 13:53:38 +0100 | [diff] [blame] | 11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 | 
 | 11606 | $as_echo_n "checking for broken unsetenv... " >&6; } | 
 | 11607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11608 | /* end confdefs.h.  */ | 
 | 11609 |  | 
 | 11610 | #include <stdlib.h> | 
 | 11611 |  | 
 | 11612 | int | 
 | 11613 | main () | 
 | 11614 | { | 
 | 11615 | int res = unsetenv("DUMMY") | 
 | 11616 |   ; | 
 | 11617 |   return 0; | 
 | 11618 | } | 
 | 11619 | _ACEOF | 
 | 11620 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 11621 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11622 | $as_echo "no" >&6; } | 
 | 11623 | else | 
 | 11624 |  | 
 | 11625 | $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h | 
 | 11626 |  | 
 | 11627 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 11628 | $as_echo "yes" >&6; } | 
 | 11629 |  | 
 | 11630 | fi | 
 | 11631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11632 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11633 | for ac_prog in true | 
 | 11634 | do | 
 | 11635 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 11636 | set dummy $ac_prog; ac_word=$2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11638 | $as_echo_n "checking for $ac_word... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11639 | if ${ac_cv_prog_TRUE+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11640 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11641 | else | 
 | 11642 |   if test -n "$TRUE"; then | 
 | 11643 |   ac_cv_prog_TRUE="$TRUE" # Let the user override the test. | 
 | 11644 | else | 
 | 11645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11646 | for as_dir in $PATH | 
 | 11647 | do | 
 | 11648 |   IFS=$as_save_IFS | 
 | 11649 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11650 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 11651 |   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11652 |     ac_cv_prog_TRUE="$ac_prog" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11653 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11654 |     break 2 | 
 | 11655 |   fi | 
 | 11656 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11657 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11658 | IFS=$as_save_IFS | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11659 |  | 
 | 11660 | fi | 
 | 11661 | fi | 
 | 11662 | TRUE=$ac_cv_prog_TRUE | 
 | 11663 | if test -n "$TRUE"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11664 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 | 
 | 11665 | $as_echo "$TRUE" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11666 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11667 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11668 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11669 | fi | 
 | 11670 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11671 |  | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11672 |   test -n "$TRUE" && break | 
 | 11673 | done | 
 | 11674 | test -n "$TRUE" || TRUE="/bin/true" | 
 | 11675 |  | 
 | 11676 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 | 
 | 11678 | $as_echo_n "checking for inet_aton in -lc... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11679 | if ${ac_cv_lib_c_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11680 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11681 | else | 
 | 11682 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11683 | LIBS="-lc  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11685 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11686 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11687 | /* Override any GCC internal prototype to avoid an error. | 
 | 11688 |    Use char because int might match the return type of a GCC | 
 | 11689 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11690 | #ifdef __cplusplus | 
 | 11691 | extern "C" | 
 | 11692 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11693 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11694 | int | 
 | 11695 | main () | 
 | 11696 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11697 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11698 |   ; | 
 | 11699 |   return 0; | 
 | 11700 | } | 
 | 11701 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11702 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11703 |   ac_cv_lib_c_inet_aton=yes | 
 | 11704 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11705 |   ac_cv_lib_c_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11706 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11707 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11708 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11709 | LIBS=$ac_check_lib_save_LIBS | 
 | 11710 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 | 
 | 11712 | $as_echo "$ac_cv_lib_c_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11713 | if test "x$ac_cv_lib_c_inet_aton" = xyes; then : | 
| Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11714 |   $ac_cv_prog_TRUE | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11715 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11716 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 | 
 | 11717 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11718 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11719 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11720 | else | 
 | 11721 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11722 | LIBS="-lresolv  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11724 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11725 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11726 | /* Override any GCC internal prototype to avoid an error. | 
 | 11727 |    Use char because int might match the return type of a GCC | 
 | 11728 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11729 | #ifdef __cplusplus | 
 | 11730 | extern "C" | 
 | 11731 | #endif | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11732 | char inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11733 | int | 
 | 11734 | main () | 
 | 11735 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11736 | return inet_aton (); | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11737 |   ; | 
 | 11738 |   return 0; | 
 | 11739 | } | 
 | 11740 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11741 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11742 |   ac_cv_lib_resolv_inet_aton=yes | 
 | 11743 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11744 |   ac_cv_lib_resolv_inet_aton=no | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11745 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11746 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11747 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11748 | LIBS=$ac_check_lib_save_LIBS | 
 | 11749 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 | 
 | 11751 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11752 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11753 |   cat >>confdefs.h <<_ACEOF | 
 | 11754 | #define HAVE_LIBRESOLV 1 | 
 | 11755 | _ACEOF | 
 | 11756 |  | 
 | 11757 |   LIBS="-lresolv $LIBS" | 
 | 11758 |  | 
 | 11759 | fi | 
 | 11760 |  | 
 | 11761 |  | 
 | 11762 | fi | 
 | 11763 |  | 
 | 11764 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11765 | # On Tru64, chflags seems to be present, but calling it will | 
 | 11766 | # exit Python | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 | 
 | 11768 | $as_echo_n "checking for chflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11769 | if ${ac_cv_have_chflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11770 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11771 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11772 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11773 |   ac_cv_have_chflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11774 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11775 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11776 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11777 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11778 | #include <sys/stat.h> | 
 | 11779 | #include <unistd.h> | 
 | 11780 | int main(int argc, char*argv[]) | 
 | 11781 | { | 
 | 11782 |   if(chflags(argv[0], 0) != 0) | 
 | 11783 |     return 1; | 
 | 11784 |   return 0; | 
 | 11785 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11786 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11787 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11788 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11789 |   ac_cv_have_chflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11790 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11791 |   ac_cv_have_chflags=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11792 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11794 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 11795 | fi | 
 | 11796 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11797 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11798 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 | 
 | 11800 | $as_echo "$ac_cv_have_chflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11801 | if test "$ac_cv_have_chflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11802 |   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11803 | if test "x$ac_cv_func_chflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11804 |   ac_cv_have_chflags="yes" | 
 | 11805 | else | 
 | 11806 |   ac_cv_have_chflags="no" | 
 | 11807 | fi | 
 | 11808 |  | 
 | 11809 | fi | 
 | 11810 | if test "$ac_cv_have_chflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11811 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11812 | $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11813 |  | 
 | 11814 | fi | 
 | 11815 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 | 
 | 11817 | $as_echo_n "checking for lchflags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11818 | if ${ac_cv_have_lchflags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11819 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11820 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11821 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11822 |   ac_cv_have_lchflags=cross | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11823 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11824 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11825 | /* end confdefs.h.  */ | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11826 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11827 | #include <sys/stat.h> | 
 | 11828 | #include <unistd.h> | 
 | 11829 | int main(int argc, char*argv[]) | 
 | 11830 | { | 
 | 11831 |   if(lchflags(argv[0], 0) != 0) | 
 | 11832 |     return 1; | 
 | 11833 |   return 0; | 
 | 11834 | } | 
| Ned Deily | 3eb67d5 | 2011-06-28 00:00:28 -0700 | [diff] [blame] | 11835 |  | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11836 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11837 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11838 |   ac_cv_have_lchflags=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11839 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11840 |   ac_cv_have_lchflags=no | 
| Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 11841 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11842 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 11843 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 11844 | fi | 
 | 11845 |  | 
 | 11846 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11847 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 | 
 | 11849 | $as_echo "$ac_cv_have_lchflags" >&6; } | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11850 | if test "$ac_cv_have_lchflags" = cross ; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11851 |   ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11852 | if test "x$ac_cv_func_lchflags" = xyes; then : | 
| Benjamin Peterson | ed68afa | 2010-01-30 19:36:43 +0000 | [diff] [blame] | 11853 |   ac_cv_have_lchflags="yes" | 
 | 11854 | else | 
 | 11855 |   ac_cv_have_lchflags="no" | 
 | 11856 | fi | 
 | 11857 |  | 
 | 11858 | fi | 
 | 11859 | if test "$ac_cv_have_lchflags" = yes ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11860 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11861 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 11862 |  | 
 | 11863 | fi | 
 | 11864 |  | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11865 | case $ac_sys_system/$ac_sys_release in | 
 | 11866 | Darwin/*) | 
 | 11867 | 	_CUR_CFLAGS="${CFLAGS}" | 
 | 11868 | 	_CUR_LDFLAGS="${LDFLAGS}" | 
 | 11869 | 	CFLAGS="${CFLAGS} -Wl,-search_paths_first" | 
 | 11870 | 	LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" | 
 | 11871 | 	;; | 
 | 11872 | esac | 
 | 11873 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | 
 | 11875 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11876 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11877 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11878 | else | 
 | 11879 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11880 | LIBS="-lz  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11882 | /* end confdefs.h.  */ | 
 | 11883 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11884 | /* Override any GCC internal prototype to avoid an error. | 
 | 11885 |    Use char because int might match the return type of a GCC | 
 | 11886 |    builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11887 | #ifdef __cplusplus | 
 | 11888 | extern "C" | 
 | 11889 | #endif | 
 | 11890 | char inflateCopy (); | 
 | 11891 | int | 
 | 11892 | main () | 
 | 11893 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11894 | return inflateCopy (); | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11895 |   ; | 
 | 11896 |   return 0; | 
 | 11897 | } | 
 | 11898 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11899 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11900 |   ac_cv_lib_z_inflateCopy=yes | 
 | 11901 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11902 |   ac_cv_lib_z_inflateCopy=no | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11903 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11904 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11905 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11906 | LIBS=$ac_check_lib_save_LIBS | 
 | 11907 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | 
 | 11909 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 11910 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11911 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11912 | $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11913 |  | 
 | 11914 | fi | 
 | 11915 |  | 
 | 11916 |  | 
 | 11917 | case $ac_sys_system/$ac_sys_release in | 
 | 11918 | Darwin/*) | 
 | 11919 | 	CFLAGS="${_CUR_CFLAGS}" | 
 | 11920 | 	LDFLAGS="${_CUR_LDFLAGS}" | 
 | 11921 | 	;; | 
 | 11922 | esac | 
 | 11923 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 | 
 | 11925 | $as_echo_n "checking for hstrerror... " >&6; } | 
 | 11926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11927 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11928 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11929 | #include <netdb.h> | 
 | 11930 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11931 | int | 
 | 11932 | main () | 
 | 11933 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11934 | void* p = hstrerror; hstrerror(0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11935 |   ; | 
 | 11936 |   return 0; | 
 | 11937 | } | 
 | 11938 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11939 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11940 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11941 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11942 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11943 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11944 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11945 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11946 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11947 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11948 |  | 
 | 11949 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11950 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11951 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11952 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | 
 | 11954 | $as_echo_n "checking for inet_aton... " >&6; } | 
 | 11955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11956 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11957 |  | 
| Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11958 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11959 | #include <sys/socket.h> | 
 | 11960 | #include <netinet/in.h> | 
 | 11961 | #include <arpa/inet.h> | 
 | 11962 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11963 | int | 
 | 11964 | main () | 
 | 11965 | { | 
| Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 11966 | void* p = inet_aton;inet_aton(0,0) | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11967 |   ; | 
 | 11968 |   return 0; | 
 | 11969 | } | 
 | 11970 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11971 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11972 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11973 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11974 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 11975 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11976 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11977 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11978 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11979 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11980 |  | 
 | 11981 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11982 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11983 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11984 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 | 
 | 11986 | $as_echo_n "checking for inet_pton... " >&6; } | 
 | 11987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11988 | /* end confdefs.h.  */ | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11989 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 11990 | #include <sys/types.h> | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11991 | #include <sys/socket.h> | 
 | 11992 | #include <netinet/in.h> | 
 | 11993 | #include <arpa/inet.h> | 
 | 11994 |  | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 11995 | int | 
 | 11996 | main () | 
 | 11997 | { | 
 | 11998 | void* p = inet_pton | 
 | 11999 |   ; | 
 | 12000 |   return 0; | 
 | 12001 | } | 
 | 12002 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12003 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12004 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12005 | $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12006 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12007 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12008 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12009 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12010 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12011 | $as_echo "no" >&6; } | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12012 |  | 
 | 12013 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12015 |  | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12016 | # On some systems, setgroups is in unistd.h, on others, in grp.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 | 
 | 12018 | $as_echo_n "checking for setgroups... " >&6; } | 
 | 12019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12020 | /* end confdefs.h.  */ | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12021 |  | 
| Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12022 | #include <unistd.h> | 
| Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 12023 | #ifdef HAVE_GRP_H | 
 | 12024 | #include <grp.h> | 
 | 12025 | #endif | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12026 |  | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12027 | int | 
 | 12028 | main () | 
 | 12029 | { | 
 | 12030 | void* p = setgroups | 
 | 12031 |   ; | 
 | 12032 |   return 0; | 
 | 12033 | } | 
 | 12034 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12035 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12036 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12037 | $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12038 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 12039 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12040 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12041 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12042 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12043 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12044 |  | 
 | 12045 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12047 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12048 | # check for openpty and forkpty | 
 | 12049 |  | 
 | 12050 | for ac_func in openpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12051 | do : | 
 | 12052 |   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12053 | if test "x$ac_cv_func_openpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12054 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12055 | #define HAVE_OPENPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12056 | _ACEOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12057 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12058 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12059 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 | 
 | 12060 | $as_echo_n "checking for openpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12061 | if ${ac_cv_lib_util_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12062 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12063 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12064 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12065 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12067 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12068 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12069 | /* Override any GCC internal prototype to avoid an error. | 
 | 12070 |    Use char because int might match the return type of a GCC | 
 | 12071 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | #ifdef __cplusplus | 
 | 12073 | extern "C" | 
 | 12074 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12075 | char openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12076 | int | 
 | 12077 | main () | 
 | 12078 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12079 | return openpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12080 |   ; | 
 | 12081 |   return 0; | 
 | 12082 | } | 
 | 12083 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12084 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12085 |   ac_cv_lib_util_openpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12086 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12087 |   ac_cv_lib_util_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12088 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12089 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12090 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12091 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12092 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 | 
 | 12094 | $as_echo "$ac_cv_lib_util_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12095 | if test "x$ac_cv_lib_util_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12096 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12097 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12098 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12099 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 | 
 | 12100 | $as_echo_n "checking for openpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12101 | if ${ac_cv_lib_bsd_openpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12102 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12103 | else | 
 | 12104 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12105 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12107 | /* end confdefs.h.  */ | 
 | 12108 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12109 | /* Override any GCC internal prototype to avoid an error. | 
 | 12110 |    Use char because int might match the return type of a GCC | 
 | 12111 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12112 | #ifdef __cplusplus | 
 | 12113 | extern "C" | 
 | 12114 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12115 | char openpty (); | 
 | 12116 | int | 
 | 12117 | main () | 
 | 12118 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12119 | return openpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12120 |   ; | 
 | 12121 |   return 0; | 
 | 12122 | } | 
 | 12123 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12124 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12125 |   ac_cv_lib_bsd_openpty=yes | 
 | 12126 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12127 |   ac_cv_lib_bsd_openpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12128 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12129 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12130 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12131 | LIBS=$ac_check_lib_save_LIBS | 
 | 12132 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 | 
 | 12134 | $as_echo "$ac_cv_lib_bsd_openpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12135 | if test "x$ac_cv_lib_bsd_openpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12136 |   $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12137 |  LIBS="$LIBS -lbsd" | 
 | 12138 | fi | 
 | 12139 |  | 
 | 12140 |  | 
 | 12141 | fi | 
 | 12142 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12143 |  | 
 | 12144 | fi | 
 | 12145 | done | 
 | 12146 |  | 
 | 12147 | for ac_func in forkpty | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12148 | do : | 
 | 12149 |   ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12150 | if test "x$ac_cv_func_forkpty" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12152 | #define HAVE_FORKPTY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 | _ACEOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12154 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12155 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12156 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 | 
 | 12157 | $as_echo_n "checking for forkpty in -lutil... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12158 | if ${ac_cv_lib_util_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12159 |   $as_echo_n "(cached) " >&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12160 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 |   ac_check_lib_save_LIBS=$LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12162 | LIBS="-lutil  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12164 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12166 | /* Override any GCC internal prototype to avoid an error. | 
 | 12167 |    Use char because int might match the return type of a GCC | 
 | 12168 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12169 | #ifdef __cplusplus | 
 | 12170 | extern "C" | 
 | 12171 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12172 | char forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12173 | int | 
 | 12174 | main () | 
 | 12175 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12176 | return forkpty (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 |   ; | 
 | 12178 |   return 0; | 
 | 12179 | } | 
 | 12180 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12181 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 |   ac_cv_lib_util_forkpty=yes | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12183 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12184 |   ac_cv_lib_util_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12185 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12186 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12187 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 | LIBS=$ac_check_lib_save_LIBS | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12189 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 | 
 | 12191 | $as_echo "$ac_cv_lib_util_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12192 | if test "x$ac_cv_lib_util_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12193 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12194 |  LIBS="$LIBS -lutil" | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12195 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12196 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 | 
 | 12197 | $as_echo_n "checking for forkpty in -lbsd... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12198 | if ${ac_cv_lib_bsd_forkpty+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12199 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12200 | else | 
 | 12201 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12202 | LIBS="-lbsd  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12204 | /* end confdefs.h.  */ | 
 | 12205 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12206 | /* Override any GCC internal prototype to avoid an error. | 
 | 12207 |    Use char because int might match the return type of a GCC | 
 | 12208 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12209 | #ifdef __cplusplus | 
 | 12210 | extern "C" | 
 | 12211 | #endif | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12212 | char forkpty (); | 
 | 12213 | int | 
 | 12214 | main () | 
 | 12215 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12216 | return forkpty (); | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12217 |   ; | 
 | 12218 |   return 0; | 
 | 12219 | } | 
 | 12220 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12221 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12222 |   ac_cv_lib_bsd_forkpty=yes | 
 | 12223 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12224 |   ac_cv_lib_bsd_forkpty=no | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12225 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12226 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12227 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12228 | LIBS=$ac_check_lib_save_LIBS | 
 | 12229 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 | 
 | 12231 | $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12232 | if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12233 |   $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h | 
| Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 12234 |  LIBS="$LIBS -lbsd" | 
 | 12235 | fi | 
 | 12236 |  | 
 | 12237 |  | 
 | 12238 | fi | 
 | 12239 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12240 |  | 
 | 12241 | fi | 
 | 12242 | done | 
 | 12243 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12244 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12245 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12246 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12247 | do : | 
 | 12248 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 12249 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12250 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12252 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12253 | _ACEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12254 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12255 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12256 | done | 
 | 12257 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12258 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12259 | ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12260 | if test "x$ac_cv_func_dup2" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12261 |   $as_echo "#define HAVE_DUP2 1" >>confdefs.h | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12262 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12263 | else | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12264 |   case " $LIBOBJS " in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12265 |   *" dup2.$ac_objext "* ) ;; | 
 | 12266 |   *) LIBOBJS="$LIBOBJS dup2.$ac_objext" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12267 |  ;; | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12268 | esac | 
 | 12269 |  | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12270 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12271 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12272 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12273 | if test "x$ac_cv_func_strdup" = xyes; then : | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 12274 |   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h | 
 | 12275 |  | 
 | 12276 | else | 
 | 12277 |   case " $LIBOBJS " in | 
 | 12278 |   *" strdup.$ac_objext "* ) ;; | 
 | 12279 |   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | 
 | 12280 |  ;; | 
 | 12281 | esac | 
 | 12282 |  | 
 | 12283 | fi | 
| Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12284 |  | 
 | 12285 |  | 
 | 12286 | for ac_func in getpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12287 | do : | 
 | 12288 |   ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12289 | if test "x$ac_cv_func_getpgrp" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12290 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12291 | #define HAVE_GETPGRP 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12292 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12293 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12294 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12295 | #include <unistd.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 | int | 
 | 12297 | main () | 
 | 12298 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12299 | getpgrp(0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12300 |   ; | 
 | 12301 |   return 0; | 
 | 12302 | } | 
 | 12303 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12304 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12305 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12306 | $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12307 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12308 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12310 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12311 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12312 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12313 |  | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12314 | for ac_func in setpgrp | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12315 | do : | 
 | 12316 |   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12317 | if test "x$ac_cv_func_setpgrp" = xyes; then : | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12318 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12319 | #define HAVE_SETPGRP 1 | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12320 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12321 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12322 | /* end confdefs.h.  */ | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12323 | #include <unistd.h> | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12324 | int | 
 | 12325 | main () | 
 | 12326 | { | 
 | 12327 | setpgrp(0,0); | 
 | 12328 |   ; | 
 | 12329 |   return 0; | 
 | 12330 | } | 
 | 12331 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12332 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12333 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12334 | $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12335 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12336 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 12338 |  | 
 | 12339 | fi | 
 | 12340 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12341 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12342 | for ac_func in gettimeofday | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12343 | do : | 
 | 12344 |   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12345 | if test "x$ac_cv_func_gettimeofday" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12346 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12347 | #define HAVE_GETTIMEOFDAY 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12348 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12349 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12350 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12351 | #include <sys/time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 | int | 
 | 12353 | main () | 
 | 12354 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12355 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 |   ; | 
 | 12357 |   return 0; | 
 | 12358 | } | 
 | 12359 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12360 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 12361 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12362 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12363 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12364 | $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12365 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12366 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12367 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12369 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12370 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12371 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12372 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12373 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12374 | for ac_func in clock_gettime | 
 | 12375 | do : | 
 | 12376 |   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 
 | 12377 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | 
 | 12378 |   cat >>confdefs.h <<_ACEOF | 
 | 12379 | #define HAVE_CLOCK_GETTIME 1 | 
 | 12380 | _ACEOF | 
 | 12381 |  | 
 | 12382 | else | 
 | 12383 |  | 
 | 12384 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | 
 | 12385 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | 
 | 12386 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | 
 | 12387 |   $as_echo_n "(cached) " >&6 | 
 | 12388 | else | 
 | 12389 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12390 | LIBS="-lrt  $LIBS" | 
 | 12391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12392 | /* end confdefs.h.  */ | 
 | 12393 |  | 
 | 12394 | /* Override any GCC internal prototype to avoid an error. | 
 | 12395 |    Use char because int might match the return type of a GCC | 
 | 12396 |    builtin and then its argument prototype would still apply.  */ | 
 | 12397 | #ifdef __cplusplus | 
 | 12398 | extern "C" | 
 | 12399 | #endif | 
 | 12400 | char clock_gettime (); | 
 | 12401 | int | 
 | 12402 | main () | 
 | 12403 | { | 
 | 12404 | return clock_gettime (); | 
 | 12405 |   ; | 
 | 12406 |   return 0; | 
 | 12407 | } | 
 | 12408 | _ACEOF | 
 | 12409 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12410 |   ac_cv_lib_rt_clock_gettime=yes | 
 | 12411 | else | 
 | 12412 |   ac_cv_lib_rt_clock_gettime=no | 
 | 12413 | fi | 
 | 12414 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12415 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12416 | LIBS=$ac_check_lib_save_LIBS | 
 | 12417 | fi | 
 | 12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | 
 | 12419 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | 
 | 12420 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | 
 | 12421 |  | 
| Victor Stinner | 7efb833 | 2014-08-29 15:41:08 +0200 | [diff] [blame] | 12422 |         LIBS="$LIBS -lrt" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12423 |         $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
 | 12424 |  | 
 | 12425 |  | 
 | 12426 | $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h | 
 | 12427 |  | 
 | 12428 |  | 
 | 12429 | fi | 
 | 12430 |  | 
 | 12431 |  | 
 | 12432 | fi | 
 | 12433 | done | 
 | 12434 |  | 
 | 12435 |  | 
 | 12436 | for ac_func in clock_getres | 
 | 12437 | do : | 
 | 12438 |   ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" | 
 | 12439 | if test "x$ac_cv_func_clock_getres" = xyes; then : | 
 | 12440 |   cat >>confdefs.h <<_ACEOF | 
 | 12441 | #define HAVE_CLOCK_GETRES 1 | 
 | 12442 | _ACEOF | 
 | 12443 |  | 
 | 12444 | else | 
 | 12445 |  | 
 | 12446 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 | 
 | 12447 | $as_echo_n "checking for clock_getres in -lrt... " >&6; } | 
 | 12448 | if ${ac_cv_lib_rt_clock_getres+:} false; then : | 
 | 12449 |   $as_echo_n "(cached) " >&6 | 
 | 12450 | else | 
 | 12451 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12452 | LIBS="-lrt  $LIBS" | 
 | 12453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12454 | /* end confdefs.h.  */ | 
 | 12455 |  | 
 | 12456 | /* Override any GCC internal prototype to avoid an error. | 
 | 12457 |    Use char because int might match the return type of a GCC | 
 | 12458 |    builtin and then its argument prototype would still apply.  */ | 
 | 12459 | #ifdef __cplusplus | 
 | 12460 | extern "C" | 
 | 12461 | #endif | 
 | 12462 | char clock_getres (); | 
 | 12463 | int | 
 | 12464 | main () | 
 | 12465 | { | 
 | 12466 | return clock_getres (); | 
 | 12467 |   ; | 
 | 12468 |   return 0; | 
 | 12469 | } | 
 | 12470 | _ACEOF | 
 | 12471 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12472 |   ac_cv_lib_rt_clock_getres=yes | 
 | 12473 | else | 
 | 12474 |   ac_cv_lib_rt_clock_getres=no | 
 | 12475 | fi | 
 | 12476 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12477 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12478 | LIBS=$ac_check_lib_save_LIBS | 
 | 12479 | fi | 
 | 12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 | 
 | 12481 | $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } | 
 | 12482 | if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : | 
 | 12483 |  | 
 | 12484 |         $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h | 
 | 12485 |  | 
 | 12486 |  | 
 | 12487 | fi | 
 | 12488 |  | 
 | 12489 |  | 
 | 12490 | fi | 
 | 12491 | done | 
 | 12492 |  | 
 | 12493 |  | 
| Benjamin Peterson | 37098cd | 2016-09-13 22:55:09 -0700 | [diff] [blame] | 12494 | for ac_func in clock_settime | 
 | 12495 | do : | 
 | 12496 |   ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" | 
 | 12497 | if test "x$ac_cv_func_clock_settime" = xyes; then : | 
 | 12498 |   cat >>confdefs.h <<_ACEOF | 
 | 12499 | #define HAVE_CLOCK_SETTIME 1 | 
 | 12500 | _ACEOF | 
 | 12501 |  | 
 | 12502 | else | 
 | 12503 |  | 
 | 12504 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 | 
 | 12505 | $as_echo_n "checking for clock_settime in -lrt... " >&6; } | 
 | 12506 | if ${ac_cv_lib_rt_clock_settime+:} false; then : | 
 | 12507 |   $as_echo_n "(cached) " >&6 | 
 | 12508 | else | 
 | 12509 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12510 | LIBS="-lrt  $LIBS" | 
 | 12511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12512 | /* end confdefs.h.  */ | 
 | 12513 |  | 
 | 12514 | /* Override any GCC internal prototype to avoid an error. | 
 | 12515 |    Use char because int might match the return type of a GCC | 
 | 12516 |    builtin and then its argument prototype would still apply.  */ | 
 | 12517 | #ifdef __cplusplus | 
 | 12518 | extern "C" | 
 | 12519 | #endif | 
 | 12520 | char clock_settime (); | 
 | 12521 | int | 
 | 12522 | main () | 
 | 12523 | { | 
 | 12524 | return clock_settime (); | 
 | 12525 |   ; | 
 | 12526 |   return 0; | 
 | 12527 | } | 
 | 12528 | _ACEOF | 
 | 12529 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12530 |   ac_cv_lib_rt_clock_settime=yes | 
 | 12531 | else | 
 | 12532 |   ac_cv_lib_rt_clock_settime=no | 
 | 12533 | fi | 
 | 12534 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12535 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12536 | LIBS=$ac_check_lib_save_LIBS | 
 | 12537 | fi | 
 | 12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 | 
 | 12539 | $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } | 
 | 12540 | if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : | 
 | 12541 |  | 
 | 12542 |         $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h | 
 | 12543 |  | 
 | 12544 |  | 
 | 12545 | fi | 
 | 12546 |  | 
 | 12547 |  | 
 | 12548 | fi | 
 | 12549 | done | 
 | 12550 |  | 
 | 12551 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 | 
 | 12553 | $as_echo_n "checking for major... " >&6; } | 
 | 12554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12555 | /* end confdefs.h.  */ | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12556 |  | 
| Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12557 | #if defined(MAJOR_IN_MKDEV) | 
 | 12558 | #include <sys/mkdev.h> | 
 | 12559 | #elif defined(MAJOR_IN_SYSMACROS) | 
 | 12560 | #include <sys/sysmacros.h> | 
 | 12561 | #else | 
 | 12562 | #include <sys/types.h> | 
 | 12563 | #endif | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12564 |  | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12565 | int | 
 | 12566 | main () | 
 | 12567 | { | 
 | 12568 |  | 
 | 12569 |   makedev(major(0),minor(0)); | 
 | 12570 |  | 
 | 12571 |   ; | 
 | 12572 |   return 0; | 
 | 12573 | } | 
 | 12574 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12575 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12576 |  | 
 | 12577 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12578 | $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12579 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12580 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12581 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12582 |  | 
 | 12583 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12584 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12585 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12586 | $as_echo "no" >&6; } | 
| Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12587 |  | 
 | 12588 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12589 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12590 |     conftest$ac_exeext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12591 |  | 
| Xavier de Gaye | 40e320b | 2016-12-21 17:29:59 +0100 | [diff] [blame] | 12592 | # On Android API level 24 with android-ndk-r13, if_nameindex() is available, | 
 | 12593 | # but the if_nameindex structure is not defined. | 
| Xavier de Gaye | 7087842 | 2016-12-21 12:46:36 +0100 | [diff] [blame] | 12594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nameindex" >&5 | 
 | 12595 | $as_echo_n "checking for if_nameindex... " >&6; } | 
 | 12596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12597 | /* end confdefs.h.  */ | 
 | 12598 |  | 
| Xavier de Gaye | 40e320b | 2016-12-21 17:29:59 +0100 | [diff] [blame] | 12599 | #include <stdio.h> | 
 | 12600 | #ifdef STDC_HEADERS | 
 | 12601 | # include <stdlib.h> | 
 | 12602 | # include <stddef.h> | 
 | 12603 | #else | 
 | 12604 | # ifdef HAVE_STDLIB_H | 
 | 12605 | #  include <stdlib.h> | 
 | 12606 | # endif | 
 | 12607 | #endif | 
 | 12608 | #ifdef HAVE_SYS_SOCKET_H | 
 | 12609 | # include <sys/socket.h> | 
 | 12610 | #endif | 
| Xavier de Gaye | 7087842 | 2016-12-21 12:46:36 +0100 | [diff] [blame] | 12611 | #ifdef HAVE_NET_IF_H | 
 | 12612 | # include <net/if.h> | 
 | 12613 | #endif | 
 | 12614 |  | 
 | 12615 | int | 
 | 12616 | main () | 
 | 12617 | { | 
 | 12618 | struct if_nameindex *ni = if_nameindex(); int x = ni[0].if_index; | 
 | 12619 |   ; | 
 | 12620 |   return 0; | 
 | 12621 | } | 
 | 12622 | _ACEOF | 
 | 12623 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12624 |  | 
 | 12625 | $as_echo "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h | 
 | 12626 |  | 
 | 12627 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12628 | $as_echo "yes" >&6; } | 
 | 12629 | else | 
 | 12630 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12631 | $as_echo "no" >&6; } | 
 | 12632 |  | 
 | 12633 | fi | 
 | 12634 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12635 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12636 |  | 
| Xavier de Gaye | bdf0d0f | 2016-12-22 10:38:59 +0100 | [diff] [blame] | 12637 | # Issue #28762: lockf() is available on Android API level 24, but the F_LOCK | 
 | 12638 | # macro is not defined in android-ndk-r13. | 
 | 12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5 | 
 | 12640 | $as_echo_n "checking for lockf... " >&6; } | 
 | 12641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12642 | /* end confdefs.h.  */ | 
 | 12643 | #include <unistd.h> | 
 | 12644 | int | 
 | 12645 | main () | 
 | 12646 | { | 
 | 12647 | lockf(0, F_LOCK, 0); | 
 | 12648 |   ; | 
 | 12649 |   return 0; | 
 | 12650 | } | 
 | 12651 | _ACEOF | 
 | 12652 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12653 |  | 
 | 12654 | $as_echo "#define HAVE_LOCKF 1" >>confdefs.h | 
 | 12655 |  | 
 | 12656 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 12657 | $as_echo "yes" >&6; } | 
 | 12658 | else | 
 | 12659 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12660 | $as_echo "no" >&6; } | 
 | 12661 |  | 
 | 12662 | fi | 
 | 12663 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12664 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12665 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12666 | # On OSF/1 V5.1, getaddrinfo is available, but a define | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | # for [no]getaddrinfo in netdb.h. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 | 
 | 12669 | $as_echo_n "checking for getaddrinfo... " >&6; } | 
 | 12670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12671 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12672 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12673 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12674 | #include <sys/socket.h> | 
 | 12675 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12676 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12677 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12678 | int | 
 | 12679 | main () | 
 | 12680 | { | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12681 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12682 |   ; | 
 | 12683 |   return 0; | 
 | 12684 | } | 
 | 12685 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12686 | if ac_fn_c_try_link "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12687 |   have_getaddrinfo=yes | 
 | 12688 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12689 |   have_getaddrinfo=no | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12690 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12691 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12692 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 | 
 | 12694 | $as_echo "$have_getaddrinfo" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12695 | if test $have_getaddrinfo = yes | 
 | 12696 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12697 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | 
 | 12698 | $as_echo_n "checking getaddrinfo bug... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12699 |   if ${ac_cv_buggy_getaddrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12700 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12701 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12702 |   if test "$cross_compiling" = yes; then : | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12703 |  | 
 | 12704 | if test "${enable_ipv6+set}" = set; then | 
 | 12705 |   ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" | 
 | 12706 | else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12707 |   ac_cv_buggy_getaddrinfo=yes | 
| Matthias Klose | 9635013 | 2012-03-15 20:42:23 +0100 | [diff] [blame] | 12708 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12709 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12710 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12711 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12712 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 12713 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12714 | #include <sys/types.h> | 
 | 12715 | #include <netdb.h> | 
 | 12716 | #include <string.h> | 
 | 12717 | #include <sys/socket.h> | 
 | 12718 | #include <netinet/in.h> | 
 | 12719 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12720 | int main() | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12721 | { | 
 | 12722 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 12723 |   struct addrinfo hints, *ai, *aitop; | 
 | 12724 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 12725 |  | 
 | 12726 |   for (passive = 0; passive <= 1; passive++) { | 
 | 12727 |     memset(&hints, 0, sizeof(hints)); | 
 | 12728 |     hints.ai_family = AF_UNSPEC; | 
 | 12729 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 12730 |     hints.ai_socktype = SOCK_STREAM; | 
| Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 12731 |     hints.ai_protocol = IPPROTO_TCP; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12732 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 12733 |       (void)gai_strerror(gaierr); | 
 | 12734 |       goto bad; | 
 | 12735 |     } | 
 | 12736 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 12737 |       if (ai->ai_addr == NULL || | 
 | 12738 |           ai->ai_addrlen == 0 || | 
 | 12739 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 12740 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 12741 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 12742 |         goto bad; | 
 | 12743 |       } | 
 | 12744 |       switch (ai->ai_family) { | 
 | 12745 |       case AF_INET: | 
 | 12746 |         if (strcmp(strport, "54321") != 0) { | 
 | 12747 |           goto bad; | 
 | 12748 |         } | 
 | 12749 |         if (passive) { | 
 | 12750 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 12751 |             goto bad; | 
 | 12752 |           } | 
 | 12753 |         } else { | 
 | 12754 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 12755 |             goto bad; | 
 | 12756 |           } | 
 | 12757 |         } | 
 | 12758 |         inet4++; | 
 | 12759 |         break; | 
 | 12760 |       case AF_INET6: | 
 | 12761 |         if (strcmp(strport, "54321") != 0) { | 
 | 12762 |           goto bad; | 
 | 12763 |         } | 
 | 12764 |         if (passive) { | 
 | 12765 |           if (strcmp(straddr, "::") != 0) { | 
 | 12766 |             goto bad; | 
 | 12767 |           } | 
 | 12768 |         } else { | 
 | 12769 |           if (strcmp(straddr, "::1") != 0) { | 
 | 12770 |             goto bad; | 
 | 12771 |           } | 
 | 12772 |         } | 
 | 12773 |         inet6++; | 
 | 12774 |         break; | 
 | 12775 |       case AF_UNSPEC: | 
 | 12776 |         goto bad; | 
 | 12777 |         break; | 
 | 12778 |       default: | 
 | 12779 |         /* another family support? */ | 
 | 12780 |         break; | 
 | 12781 |       } | 
 | 12782 |     } | 
| Benjamin Peterson | 01c340d | 2016-09-06 15:54:24 -0700 | [diff] [blame] | 12783 |     freeaddrinfo(aitop); | 
 | 12784 |     aitop = NULL; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12785 |   } | 
 | 12786 |  | 
 | 12787 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 12788 |     goto bad; | 
 | 12789 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 12790 |     goto bad; | 
 | 12791 |  | 
 | 12792 |   if (aitop) | 
 | 12793 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12794 |   return 0; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12795 |  | 
 | 12796 |  bad: | 
 | 12797 |   if (aitop) | 
 | 12798 |     freeaddrinfo(aitop); | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12799 |   return 1; | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12800 | } | 
 | 12801 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12802 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12803 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12804 |   ac_cv_buggy_getaddrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12805 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12806 |   ac_cv_buggy_getaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12807 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12808 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 12809 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12810 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12811 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12812 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12813 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12814 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12815 |  | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 | 
 | 12817 | $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } | 
 | 12818 |  | 
| doko@ubuntu.com | 9c7817e | 2012-06-30 17:05:13 +0200 | [diff] [blame] | 12819 | if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 12820 | then | 
 | 12821 | 	if test $ipv6 = yes | 
 | 12822 | 	then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12823 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 12824 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 12825 | 		exit 1 | 
 | 12826 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12827 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12828 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12829 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12830 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12831 | fi | 
| Benjamin Peterson | d4694ed | 2010-11-01 01:44:30 +0000 | [diff] [blame] | 12832 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12833 | for ac_func in getnameinfo | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12834 | do : | 
 | 12835 |   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12836 | if test "x$ac_cv_func_getnameinfo" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12838 | #define HAVE_GETNAMEINFO 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12839 | _ACEOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12840 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12841 | fi | 
 | 12842 | done | 
 | 12843 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12844 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12845 | # checks for structures | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 12847 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12848 | if ${ac_cv_header_time+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12849 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12850 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12851 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12852 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12853 | #include <sys/types.h> | 
 | 12854 | #include <sys/time.h> | 
 | 12855 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12856 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | int | 
 | 12858 | main () | 
 | 12859 | { | 
 | 12860 | if ((struct tm *) 0) | 
 | 12861 | return 0; | 
 | 12862 |   ; | 
 | 12863 |   return 0; | 
 | 12864 | } | 
 | 12865 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12866 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12867 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12868 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12869 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12870 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12872 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
 | 12874 | $as_echo "$ac_cv_header_time" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12875 | if test $ac_cv_header_time = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12876 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12877 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12878 |  | 
 | 12879 | fi | 
 | 12880 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 12882 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12883 | if ${ac_cv_struct_tm+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12884 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12885 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12886 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12887 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12888 | #include <sys/types.h> | 
 | 12889 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | int | 
 | 12892 | main () | 
 | 12893 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12894 | struct tm tm; | 
 | 12895 | 				     int *p = &tm.tm_sec; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12896 | 				     return !p; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12897 |   ; | 
 | 12898 |   return 0; | 
 | 12899 | } | 
 | 12900 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12901 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12902 |   ac_cv_struct_tm=time.h | 
 | 12903 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12904 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12905 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12907 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
 | 12909 | $as_echo "$ac_cv_struct_tm" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12910 | if test $ac_cv_struct_tm = sys/time.h; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12911 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12912 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12913 |  | 
 | 12914 | fi | 
 | 12915 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12916 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12917 | #include <$ac_cv_struct_tm> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12919 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12920 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12921 |  | 
 | 12922 | cat >>confdefs.h <<_ACEOF | 
 | 12923 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 12924 | _ACEOF | 
 | 12925 |  | 
 | 12926 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12927 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12928 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 12930 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12931 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12932 |  | 
 | 12933 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12934 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 12935 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12936 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12937 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12938 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12939 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12940 | fi | 
 | 12941 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12942 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12943 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12944 | _ACEOF | 
 | 12945 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12946 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 12947 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12948 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12949 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12950 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12951 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12952 | /* end confdefs.h.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12953 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12954 | #if !HAVE_DECL_TZNAME | 
 | 12955 | extern char *tzname[]; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12956 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12958 | int | 
 | 12959 | main () | 
 | 12960 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12961 | return tzname[0][0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12962 |   ; | 
 | 12963 |   return 0; | 
 | 12964 | } | 
 | 12965 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12966 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12967 |   ac_cv_var_tzname=yes | 
 | 12968 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12969 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12970 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12971 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12972 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12973 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 12975 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12976 |   if test $ac_cv_var_tzname = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12977 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12978 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12979 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12980 |   fi | 
 | 12981 | fi | 
 | 12982 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12983 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12984 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12985 |  | 
 | 12986 | cat >>confdefs.h <<_ACEOF | 
 | 12987 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | 
 | 12988 | _ACEOF | 
 | 12989 |  | 
 | 12990 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12991 | fi | 
 | 12992 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 12993 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 12994 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12995 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | cat >>confdefs.h <<_ACEOF | 
 | 12997 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | 
 | 12998 | _ACEOF | 
 | 12999 |  | 
 | 13000 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13001 | fi | 
 | 13002 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13003 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13004 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : | 
| Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 13005 |  | 
 | 13006 | cat >>confdefs.h <<_ACEOF | 
 | 13007 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 | 
 | 13008 | _ACEOF | 
 | 13009 |  | 
 | 13010 |  | 
 | 13011 | fi | 
 | 13012 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13013 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13014 | if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13015 |  | 
 | 13016 | cat >>confdefs.h <<_ACEOF | 
 | 13017 | #define HAVE_STRUCT_STAT_ST_GEN 1 | 
 | 13018 | _ACEOF | 
 | 13019 |  | 
 | 13020 |  | 
 | 13021 | fi | 
 | 13022 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13023 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13024 | if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 13025 |  | 
 | 13026 | cat >>confdefs.h <<_ACEOF | 
 | 13027 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 | 
 | 13028 | _ACEOF | 
 | 13029 |  | 
 | 13030 |  | 
 | 13031 | fi | 
 | 13032 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13033 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13034 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13035 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | cat >>confdefs.h <<_ACEOF | 
 | 13037 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | 
 | 13038 | _ACEOF | 
 | 13039 |  | 
 | 13040 |  | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13041 | fi | 
 | 13042 |  | 
| Stefan Krah | 267b639 | 2016-04-26 01:09:18 +0200 | [diff] [blame] | 13043 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | 
 | 13044 |   #include <sys/types.h> | 
 | 13045 |   #include <pwd.h> | 
 | 13046 |  | 
 | 13047 | " | 
 | 13048 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | 
 | 13049 |  | 
 | 13050 | cat >>confdefs.h <<_ACEOF | 
 | 13051 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | 
 | 13052 | _ACEOF | 
 | 13053 |  | 
 | 13054 |  | 
 | 13055 | fi | 
 | 13056 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " | 
 | 13057 |   #include <sys/types.h> | 
 | 13058 |   #include <pwd.h> | 
 | 13059 |  | 
 | 13060 | " | 
 | 13061 | if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : | 
 | 13062 |  | 
 | 13063 | cat >>confdefs.h <<_ACEOF | 
 | 13064 | #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 | 
 | 13065 | _ACEOF | 
 | 13066 |  | 
 | 13067 |  | 
 | 13068 | fi | 
 | 13069 |  | 
| Zachary Ware | 6a6967e | 2016-10-01 00:47:27 -0500 | [diff] [blame] | 13070 | # Issue #21085: In Cygwin, siginfo_t does not have si_band field. | 
 | 13071 | ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> | 
 | 13072 | " | 
 | 13073 | if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : | 
 | 13074 |  | 
 | 13075 | cat >>confdefs.h <<_ACEOF | 
 | 13076 | #define HAVE_SIGINFO_T_SI_BAND 1 | 
 | 13077 | _ACEOF | 
 | 13078 |  | 
 | 13079 |  | 
 | 13080 | fi | 
 | 13081 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13082 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 | 
 | 13084 | $as_echo_n "checking for time.h that defines altzone... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13085 | if ${ac_cv_header_time_altzone+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13086 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13087 | else | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13088 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13089 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13090 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13091 | #include <time.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13092 | int | 
 | 13093 | main () | 
 | 13094 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13095 | return altzone; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13096 |   ; | 
 | 13097 |   return 0; | 
 | 13098 | } | 
 | 13099 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13100 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13101 |   ac_cv_header_time_altzone=yes | 
 | 13102 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13103 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13104 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13106 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13107 | fi | 
 | 13108 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 | 
 | 13110 | $as_echo "$ac_cv_header_time_altzone" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13111 | if test $ac_cv_header_time_altzone = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13112 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13113 | $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13114 |  | 
 | 13115 | fi | 
 | 13116 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13117 | was_it_defined=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
 | 13119 | $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } | 
 | 13120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13121 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13122 |  | 
 | 13123 | #include <sys/types.h> | 
 | 13124 | #include <sys/select.h> | 
 | 13125 | #include <sys/time.h> | 
 | 13126 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13127 | int | 
 | 13128 | main () | 
 | 13129 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13130 | ; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13131 |   ; | 
 | 13132 |   return 0; | 
 | 13133 | } | 
 | 13134 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13135 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 |  | 
 | 13137 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13138 | $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13140 |   was_it_defined=yes | 
 | 13141 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13142 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 | 
 | 13145 | $as_echo "$was_it_defined" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13146 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 | 
 | 13148 | $as_echo_n "checking for addrinfo... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13149 | if ${ac_cv_struct_addrinfo+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13150 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13151 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13152 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13153 | /* end confdefs.h.  */ | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13154 | #include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13155 | int | 
 | 13156 | main () | 
 | 13157 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13158 | struct addrinfo a | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13159 |   ; | 
 | 13160 |   return 0; | 
 | 13161 | } | 
 | 13162 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13163 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13164 |   ac_cv_struct_addrinfo=yes | 
 | 13165 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13166 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13167 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13169 | fi | 
 | 13170 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 | 
 | 13172 | $as_echo "$ac_cv_struct_addrinfo" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13173 | if test $ac_cv_struct_addrinfo = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13174 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13175 | $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13176 |  | 
 | 13177 | fi | 
 | 13178 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 | 
 | 13180 | $as_echo_n "checking for sockaddr_storage... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13181 | if ${ac_cv_struct_sockaddr_storage+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13182 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13183 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13184 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13185 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13186 |  | 
 | 13187 | #		include <sys/types.h> | 
 | 13188 | #		include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | int | 
 | 13190 | main () | 
 | 13191 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13192 | struct sockaddr_storage s | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 |   ; | 
 | 13194 |   return 0; | 
 | 13195 | } | 
 | 13196 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13197 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13198 |   ac_cv_struct_sockaddr_storage=yes | 
 | 13199 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13200 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13201 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13203 | fi | 
 | 13204 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 | 
 | 13206 | $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13207 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13208 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13209 | $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13210 |  | 
 | 13211 | fi | 
 | 13212 |  | 
| Christian Heimes | dffa394 | 2016-09-05 23:54:41 +0200 | [diff] [blame] | 13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 | 
 | 13214 | $as_echo_n "checking for sockaddr_alg... " >&6; } | 
 | 13215 | if ${ac_cv_struct_sockaddr_alg+:} false; then : | 
 | 13216 |   $as_echo_n "(cached) " >&6 | 
 | 13217 | else | 
 | 13218 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13219 | /* end confdefs.h.  */ | 
 | 13220 |  | 
 | 13221 | #		include <sys/types.h> | 
 | 13222 | #		include <sys/socket.h> | 
 | 13223 | #		include <linux/if_alg.h> | 
 | 13224 | int | 
 | 13225 | main () | 
 | 13226 | { | 
 | 13227 | struct sockaddr_alg s | 
 | 13228 |   ; | 
 | 13229 |   return 0; | 
 | 13230 | } | 
 | 13231 | _ACEOF | 
 | 13232 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13233 |   ac_cv_struct_sockaddr_alg=yes | 
 | 13234 | else | 
 | 13235 |   ac_cv_struct_sockaddr_alg=no | 
 | 13236 | fi | 
 | 13237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 13238 | fi | 
 | 13239 |  | 
 | 13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 | 
 | 13241 | $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } | 
 | 13242 | if test $ac_cv_struct_sockaddr_alg = yes; then | 
 | 13243 |  | 
 | 13244 | $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h | 
 | 13245 |  | 
 | 13246 | fi | 
 | 13247 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13248 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13249 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
 | 13251 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13252 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13253 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13254 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13255 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13256 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13257 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | int | 
 | 13259 | main () | 
 | 13260 | { | 
 | 13261 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13262 | test_array [0] = 0; | 
 | 13263 | return test_array [0]; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13264 |  | 
 | 13265 |   ; | 
 | 13266 |   return 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13267 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13268 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13269 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13270 |   ac_cv_c_char_unsigned=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13271 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13272 |   ac_cv_c_char_unsigned=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13273 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13275 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | 
 | 13277 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13278 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13279 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13280 |  | 
 | 13281 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13282 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 
 | 13284 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13285 | if ${ac_cv_c_const+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13286 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13288 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13289 | /* end confdefs.h.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13290 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13291 | int | 
 | 13292 | main () | 
 | 13293 | { | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13294 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13295 | #ifndef __cplusplus | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13296 |   /* Ultrix mips cc rejects this sort of thing.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13297 |   typedef int charset[2]; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13298 |   const charset cs = { 0, 0 }; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13299 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13300 |   char const *const *pcpcc; | 
 | 13301 |   char **ppc; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13302 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 13303 |   struct point {int x, y;}; | 
 | 13304 |   static struct point const zero = {0,0}; | 
 | 13305 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 13306 |      It does not let you subtract one const X* pointer from another in | 
 | 13307 |      an arm of an if-expression whose if-part is not a constant | 
 | 13308 |      expression */ | 
 | 13309 |   const char *g = "string"; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13310 |   pcpcc = &g + (g ? g-g : 0); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13311 |   /* HPUX 7.0 cc rejects these. */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13312 |   ++pcpcc; | 
 | 13313 |   ppc = (char**) pcpcc; | 
 | 13314 |   pcpcc = (char const *const *) ppc; | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13315 |   { /* SCO 3.2v4 cc rejects this sort of thing.  */ | 
 | 13316 |     char tx; | 
 | 13317 |     char *t = &tx; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13318 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13319 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13320 |     *t++ = 0; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13321 |     if (s) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13322 |   } | 
 | 13323 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 13324 |     int x[] = {25, 17}; | 
 | 13325 |     const int *foo = &x[0]; | 
 | 13326 |     ++foo; | 
 | 13327 |   } | 
 | 13328 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 13329 |     typedef const int *iptr; | 
 | 13330 |     iptr p = 0; | 
 | 13331 |     ++p; | 
 | 13332 |   } | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13333 |   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 13335 |     struct s { int j; const int *ap[3]; } bx; | 
 | 13336 |     struct s *b = &bx; b->j = 5; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13337 |   } | 
 | 13338 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 13339 |     const int foo = 10; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13340 |     if (!foo) return 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13341 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13342 |   return !cs[0] && !zero.x; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13343 | #endif | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13344 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13345 |   ; | 
 | 13346 |   return 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13347 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13348 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13349 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13350 |   ac_cv_c_const=yes | 
 | 13351 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13352 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13353 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13355 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 
 | 13357 | $as_echo "$ac_cv_c_const" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13358 | if test $ac_cv_c_const = no; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13359 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13360 | $as_echo "#define const /**/" >>confdefs.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13361 |  | 
 | 13362 | fi | 
 | 13363 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13364 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13365 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 | 
 | 13367 | $as_echo_n "checking for working signed char... " >&6; } | 
 | 13368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13369 | /* end confdefs.h.  */ | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13370 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13371 | int | 
 | 13372 | main () | 
 | 13373 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13374 | signed char c; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 |   ; | 
 | 13376 |   return 0; | 
 | 13377 | } | 
 | 13378 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13379 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13380 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13381 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13382 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13383 | $as_echo "#define signed /**/" >>confdefs.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13384 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13385 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13386 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13389 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13390 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13391 | have_prototypes=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 | 
 | 13393 | $as_echo_n "checking for prototypes... " >&6; } | 
 | 13394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13395 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13396 | int foo(int x) { return 0; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | int | 
 | 13398 | main () | 
 | 13399 | { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13400 | return foo(10); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13401 |   ; | 
 | 13402 |   return 0; | 
 | 13403 | } | 
 | 13404 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13405 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13406 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13407 | $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13408 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13409 |    have_prototypes=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13410 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 | 
 | 13413 | $as_echo "$have_prototypes" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13414 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13415 | works=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 | 
 | 13417 | $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } | 
 | 13418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13419 | /* end confdefs.h.  */ | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13420 |  | 
 | 13421 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13422 | int foo(int x, ...) { | 
 | 13423 | 	va_list va; | 
 | 13424 | 	va_start(va, x); | 
 | 13425 | 	va_arg(va, int); | 
 | 13426 | 	va_arg(va, char *); | 
 | 13427 | 	va_arg(va, double); | 
 | 13428 | 	return 0; | 
 | 13429 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13430 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 | int | 
 | 13432 | main () | 
 | 13433 | { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13434 | return foo(10, "", 3.14); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13435 |   ; | 
 | 13436 |   return 0; | 
 | 13437 | } | 
 | 13438 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13439 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13440 |  | 
 | 13441 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13442 | $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13443 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13444 |   works=yes | 
 | 13445 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13446 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 | 
 | 13449 | $as_echo "$works" >&6; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13450 |  | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13451 | # check for socketpair | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 | 
 | 13453 | $as_echo_n "checking for socketpair... " >&6; } | 
 | 13454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13455 | /* end confdefs.h.  */ | 
 | 13456 |  | 
 | 13457 | #include <sys/types.h> | 
 | 13458 | #include <sys/socket.h> | 
 | 13459 |  | 
 | 13460 | int | 
 | 13461 | main () | 
 | 13462 | { | 
 | 13463 | void *x=socketpair | 
 | 13464 |   ; | 
 | 13465 |   return 0; | 
 | 13466 | } | 
 | 13467 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13468 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13469 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13470 | $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13471 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13472 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13473 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13474 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13475 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13476 | $as_echo "no" >&6; } | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13477 |  | 
 | 13478 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13480 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13481 | # check if sockaddr has sa_len member | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 | 
 | 13483 | $as_echo_n "checking if sockaddr has sa_len member... " >&6; } | 
 | 13484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13485 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13486 | #include <sys/types.h> | 
 | 13487 | #include <sys/socket.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13488 | int | 
 | 13489 | main () | 
 | 13490 | { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13491 | struct sockaddr x; | 
 | 13492 | x.sa_len = 0; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13493 |   ; | 
 | 13494 |   return 0; | 
 | 13495 | } | 
 | 13496 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13497 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13498 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13499 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13501 | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13502 |  | 
 | 13503 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13504 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13505 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13506 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13507 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13509 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13510 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13511 |  | 
 | 13512 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13513 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13514 | if test "x$ac_cv_func_gethostbyname_r" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13515 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13516 |   $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13517 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13518 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 | 
 | 13519 | $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13520 |   OLD_CFLAGS=$CFLAGS | 
 | 13521 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13522 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13523 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13524 |  | 
 | 13525 | #   include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 | int | 
 | 13528 | main () | 
 | 13529 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13530 |  | 
 | 13531 |     char *name; | 
 | 13532 |     struct hostent *he, *res; | 
 | 13533 |     char buffer[2048]; | 
 | 13534 |     int buflen = 2048; | 
 | 13535 |     int h_errnop; | 
 | 13536 |  | 
 | 13537 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13538 |  | 
 | 13539 |   ; | 
 | 13540 |   return 0; | 
 | 13541 | } | 
 | 13542 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13543 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13544 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13545 |     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13546 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13547 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13548 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13549 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13550 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13551 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13552 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13553 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13554 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13555 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13556 | $as_echo "no" >&6; } | 
 | 13557 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 | 
 | 13558 | $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } | 
 | 13559 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13560 | /* end confdefs.h.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13561 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13562 | #       include <netdb.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13563 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13564 | int | 
 | 13565 | main () | 
 | 13566 | { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13567 |  | 
 | 13568 |         char *name; | 
 | 13569 |         struct hostent *he; | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13570 |         char buffer[2048]; | 
 | 13571 |         int buflen = 2048; | 
 | 13572 |         int h_errnop; | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13573 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13574 |         (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13575 |  | 
 | 13576 |   ; | 
 | 13577 |   return 0; | 
 | 13578 | } | 
 | 13579 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13580 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13581 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13582 |         $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13583 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13584 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13585 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13586 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13587 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13588 | $as_echo "yes" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13589 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13590 | else | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13591 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13592 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13593 | $as_echo "no" >&6; } | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 13594 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 | 
 | 13595 | $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } | 
 | 13596 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13597 | /* end confdefs.h.  */ | 
 | 13598 |  | 
 | 13599 | #           include <netdb.h> | 
 | 13600 |  | 
 | 13601 | int | 
 | 13602 | main () | 
 | 13603 | { | 
 | 13604 |  | 
 | 13605 |             char *name; | 
 | 13606 |             struct hostent *he; | 
 | 13607 |             struct hostent_data data; | 
 | 13608 |  | 
 | 13609 |             (void) gethostbyname_r(name, he, &data); | 
 | 13610 |  | 
 | 13611 |   ; | 
 | 13612 |   return 0; | 
 | 13613 | } | 
 | 13614 | _ACEOF | 
 | 13615 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 13616 |  | 
 | 13617 |             $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | 
 | 13618 |  | 
 | 13619 |  | 
 | 13620 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h | 
 | 13621 |  | 
 | 13622 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13623 | $as_echo "yes" >&6; } | 
 | 13624 |  | 
 | 13625 | else | 
 | 13626 |  | 
 | 13627 |            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13628 | $as_echo "no" >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13629 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13630 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13632 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13633 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13635 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13636 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13638 |   CFLAGS=$OLD_CFLAGS | 
 | 13639 |  | 
 | 13640 | else | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13641 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13642 |   for ac_func in gethostbyname | 
 | 13643 | do : | 
 | 13644 |   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13645 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13646 |   cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13647 | #define HAVE_GETHOSTBYNAME 1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13648 | _ACEOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13649 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13650 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13651 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13652 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13653 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13654 | fi | 
 | 13655 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13656 |  | 
 | 13657 |  | 
 | 13658 |  | 
 | 13659 |  | 
 | 13660 |  | 
 | 13661 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13662 | # checks for system services | 
 | 13663 | # (none yet) | 
 | 13664 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13665 | # Linux requires this for correct f.p. operations | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13666 | ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13667 | if test "x$ac_cv_func___fpu_control" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13668 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13669 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13670 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 | 
 | 13671 | $as_echo_n "checking for __fpu_control in -lieee... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13672 | if ${ac_cv_lib_ieee___fpu_control+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13673 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13674 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13675 |   ac_check_lib_save_LIBS=$LIBS | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13676 | LIBS="-lieee  $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13678 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13679 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13680 | /* Override any GCC internal prototype to avoid an error. | 
 | 13681 |    Use char because int might match the return type of a GCC | 
 | 13682 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13683 | #ifdef __cplusplus | 
 | 13684 | extern "C" | 
 | 13685 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13686 | char __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 | int | 
 | 13688 | main () | 
 | 13689 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13690 | return __fpu_control (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 |   ; | 
 | 13692 |   return 0; | 
 | 13693 | } | 
 | 13694 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13695 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13696 |   ac_cv_lib_ieee___fpu_control=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13697 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13698 |   ac_cv_lib_ieee___fpu_control=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13699 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13700 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13701 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13702 | LIBS=$ac_check_lib_save_LIBS | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13703 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 | 
 | 13705 | $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13706 | if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13707 |   cat >>confdefs.h <<_ACEOF | 
 | 13708 | #define HAVE_LIBIEEE 1 | 
 | 13709 | _ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13710 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13711 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13712 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13713 | fi | 
 | 13714 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13715 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 13716 | fi | 
 | 13717 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13718 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13719 | # Check for --with-fpectl | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 | 
 | 13721 | $as_echo_n "checking for --with-fpectl... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13722 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13723 | # Check whether --with-fpectl was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13724 | if test "${with_fpectl+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13725 |   withval=$with_fpectl; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13726 | if test "$withval" != no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13727 | then | 
 | 13728 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13729 | $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13730 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13731 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 13732 | $as_echo "yes" >&6; } | 
 | 13733 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13734 | $as_echo "no" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13735 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 13736 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13737 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13738 | $as_echo "no" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13739 | fi | 
 | 13740 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13741 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13742 | # check for --with-libm=... | 
 | 13743 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13744 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 13745 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13746 | *) LIBM=-lm | 
 | 13747 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 | 
 | 13749 | $as_echo_n "checking for --with-libm=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13750 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13751 | # Check whether --with-libm was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13752 | if test "${with_libm+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13753 |   withval=$with_libm; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13754 | if test "$withval" = no | 
 | 13755 | then LIBM= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13756 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 | 
 | 13757 | $as_echo "force LIBM empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13758 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13759 | then LIBM=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13760 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 | 
 | 13761 | $as_echo "set LIBM=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13762 | else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13763 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13764 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13765 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 | 
 | 13766 | $as_echo "default LIBM=\"$LIBM\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13767 | fi | 
 | 13768 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13769 |  | 
 | 13770 | # check for --with-libc=... | 
 | 13771 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 | 
 | 13773 | $as_echo_n "checking for --with-libc=STRING... " >&6; } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13774 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13775 | # Check whether --with-libc was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13776 | if test "${with_libc+set}" = set; then : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13777 |   withval=$with_libc; | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13778 | if test "$withval" = no | 
 | 13779 | then LIBC= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13780 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 | 
 | 13781 | $as_echo "force LIBC empty" >&6; } | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13782 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13783 | then LIBC=$withval | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13784 |      { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 | 
 | 13785 | $as_echo "set LIBC=\"$withval\"" >&6; } | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 13786 | else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13787 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 13788 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13789 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 | 
 | 13790 | $as_echo "default LIBC=\"$LIBC\"" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13791 | fi | 
 | 13792 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13793 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13794 | # ************************************** | 
 | 13795 | # * Check for gcc x64 inline assembler * | 
 | 13796 | # ************************************** | 
 | 13797 |  | 
 | 13798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 | 
 | 13799 | $as_echo_n "checking for x64 gcc inline assembler... " >&6; } | 
 | 13800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 13801 | /* end confdefs.h.  */ | 
 | 13802 |  | 
 | 13803 | int | 
 | 13804 | main () | 
 | 13805 | { | 
 | 13806 |  | 
 | 13807 |   __asm__ __volatile__ ("movq %rcx, %rax"); | 
 | 13808 |  | 
 | 13809 |   ; | 
 | 13810 |   return 0; | 
 | 13811 | } | 
 | 13812 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13813 | if ac_fn_c_try_link "$LINENO"; then : | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13814 |   have_gcc_asm_for_x64=yes | 
 | 13815 | else | 
 | 13816 |   have_gcc_asm_for_x64=no | 
 | 13817 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13818 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13819 |     conftest$ac_exeext conftest.$ac_ext | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 | 
 | 13821 | $as_echo "$have_gcc_asm_for_x64" >&6; } | 
 | 13822 | if test "$have_gcc_asm_for_x64" = yes | 
 | 13823 | then | 
 | 13824 |  | 
 | 13825 | $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h | 
 | 13826 |  | 
 | 13827 | fi | 
 | 13828 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13829 | # ************************************************** | 
 | 13830 | # * Check for various properties of floating point * | 
 | 13831 | # ************************************************** | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 13832 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 | 
 | 13834 | $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13835 | if ${ac_cv_little_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13836 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13837 | else | 
 | 13838 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13839 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13840 |   ac_cv_little_endian_double=no | 
 | 13841 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13842 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13843 | /* end confdefs.h.  */ | 
 | 13844 |  | 
 | 13845 | #include <string.h> | 
 | 13846 | int main() { | 
 | 13847 |     double x = 9006104071832581.0; | 
 | 13848 |     if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) | 
 | 13849 |         return 0; | 
 | 13850 |     else | 
 | 13851 |         return 1; | 
 | 13852 | } | 
 | 13853 |  | 
 | 13854 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13855 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13856 |   ac_cv_little_endian_double=yes | 
 | 13857 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13858 |   ac_cv_little_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13859 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13860 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13861 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13862 | fi | 
 | 13863 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13864 | fi | 
 | 13865 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 | 
 | 13867 | $as_echo "$ac_cv_little_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13868 | if test "$ac_cv_little_endian_double" = yes | 
 | 13869 | then | 
 | 13870 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13871 | $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13872 |  | 
 | 13873 | fi | 
 | 13874 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 | 
 | 13876 | $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13877 | if ${ac_cv_big_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13878 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13879 | else | 
 | 13880 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13881 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13882 |   ac_cv_big_endian_double=no | 
 | 13883 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13884 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13885 | /* end confdefs.h.  */ | 
 | 13886 |  | 
 | 13887 | #include <string.h> | 
 | 13888 | int main() { | 
 | 13889 |     double x = 9006104071832581.0; | 
 | 13890 |     if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) | 
 | 13891 |         return 0; | 
 | 13892 |     else | 
 | 13893 |         return 1; | 
 | 13894 | } | 
 | 13895 |  | 
 | 13896 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13897 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13898 |   ac_cv_big_endian_double=yes | 
 | 13899 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13900 |   ac_cv_big_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13901 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13902 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13903 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13904 | fi | 
 | 13905 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13906 | fi | 
 | 13907 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 | 
 | 13909 | $as_echo "$ac_cv_big_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13910 | if test "$ac_cv_big_endian_double" = yes | 
 | 13911 | then | 
 | 13912 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13913 | $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13914 |  | 
 | 13915 | fi | 
 | 13916 |  | 
 | 13917 | # Some ARM platforms use a mixed-endian representation for doubles. | 
 | 13918 | # While Python doesn't currently have full support for these platforms | 
 | 13919 | # (see e.g., issue 1762561), we can at least make sure that float <-> string | 
 | 13920 | # conversions work. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 | 
 | 13922 | $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 13923 | if ${ac_cv_mixed_endian_double+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13924 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13925 | else | 
 | 13926 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13927 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13928 |   ac_cv_mixed_endian_double=no | 
 | 13929 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13930 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13931 | /* end confdefs.h.  */ | 
 | 13932 |  | 
 | 13933 | #include <string.h> | 
 | 13934 | int main() { | 
 | 13935 |     double x = 9006104071832581.0; | 
 | 13936 |     if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) | 
 | 13937 |         return 0; | 
 | 13938 |     else | 
 | 13939 |         return 1; | 
 | 13940 | } | 
 | 13941 |  | 
 | 13942 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13943 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13944 |   ac_cv_mixed_endian_double=yes | 
 | 13945 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13946 |   ac_cv_mixed_endian_double=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13947 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13948 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 13949 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13950 | fi | 
 | 13951 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13952 | fi | 
 | 13953 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 | 
 | 13955 | $as_echo "$ac_cv_mixed_endian_double" >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13956 | if test "$ac_cv_mixed_endian_double" = yes | 
 | 13957 | then | 
 | 13958 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13959 | $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13960 |  | 
 | 13961 | fi | 
 | 13962 |  | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13963 | # The short float repr introduced in Python 3.1 requires the | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13964 | # correctly-rounded string <-> double conversion functions from | 
| Mark Dickinson | 7abf8d4 | 2009-04-18 20:17:52 +0000 | [diff] [blame] | 13965 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13966 | # rounding; this is a problem on x86, where the x87 FPU has a default | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13967 | # rounding precision of 64 bits.  For gcc/x86, we can fix this by | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 13968 | # using inline assembler to get and set the x87 FPU control word. | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13969 |  | 
 | 13970 | # This inline assembler syntax may also work for suncc and icc, | 
 | 13971 | # so we try it on all platforms. | 
 | 13972 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 | 
 | 13974 | $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } | 
 | 13975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13976 | /* end confdefs.h.  */ | 
 | 13977 |  | 
 | 13978 | int | 
 | 13979 | main () | 
 | 13980 | { | 
 | 13981 |  | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13982 |   unsigned short cw; | 
 | 13983 |   __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); | 
 | 13984 |   __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13985 |  | 
 | 13986 |   ; | 
 | 13987 |   return 0; | 
 | 13988 | } | 
 | 13989 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13990 | if ac_fn_c_try_link "$LINENO"; then : | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13991 |   have_gcc_asm_for_x87=yes | 
 | 13992 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13993 |   have_gcc_asm_for_x87=no | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 13994 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 13995 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 13996 |     conftest$ac_exeext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 13997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 | 
 | 13998 | $as_echo "$have_gcc_asm_for_x87" >&6; } | 
| Mark Dickinson | f4243f6 | 2009-11-15 13:47:27 +0000 | [diff] [blame] | 13999 | if test "$have_gcc_asm_for_x87" = yes | 
 | 14000 | then | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14001 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14002 | $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14003 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14004 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 |  | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 | 
 | 14007 | $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } | 
 | 14008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14009 | /* end confdefs.h.  */ | 
 | 14010 |  | 
 | 14011 | int | 
 | 14012 | main () | 
 | 14013 | { | 
 | 14014 |  | 
 | 14015 |   unsigned int fpcr; | 
 | 14016 |   __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); | 
 | 14017 |   __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); | 
 | 14018 |  | 
 | 14019 |   ; | 
 | 14020 |   return 0; | 
 | 14021 | } | 
 | 14022 | _ACEOF | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14023 | if ac_fn_c_try_link "$LINENO"; then : | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14024 |   have_gcc_asm_for_mc68881=yes | 
 | 14025 | else | 
 | 14026 |   have_gcc_asm_for_mc68881=no | 
 | 14027 | fi | 
| Stefan Krah | e31db2a | 2015-07-02 20:27:56 +0200 | [diff] [blame] | 14028 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14029 |     conftest$ac_exeext conftest.$ac_ext | 
| Benjamin Peterson | 8bdeb16 | 2014-04-17 00:00:31 -0400 | [diff] [blame] | 14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 | 
 | 14031 | $as_echo "$have_gcc_asm_for_mc68881" >&6; } | 
 | 14032 | if test "$have_gcc_asm_for_mc68881" = yes | 
 | 14033 | then | 
 | 14034 |  | 
 | 14035 | $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h | 
 | 14036 |  | 
 | 14037 | fi | 
 | 14038 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14039 | # Detect whether system arithmetic is subject to x87-style double | 
 | 14040 | # rounding issues.  The result of this test has little meaning on non | 
 | 14041 | # IEEE 754 platforms.  On IEEE 754, test should return 1 if rounding | 
 | 14042 | # mode is round-to-nearest and double rounding issues are present, and | 
 | 14043 | # 0 otherwise.  See http://bugs.python.org/issue2937 for more info. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 | 
 | 14045 | $as_echo_n "checking for x87-style double rounding... " >&6; } | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14046 | # $BASECFLAGS may affect the result | 
 | 14047 | ac_save_cc="$CC" | 
 | 14048 | CC="$CC $BASECFLAGS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14049 | if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14050 |   ac_cv_x87_double_rounding=no | 
 | 14051 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14052 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14053 | /* end confdefs.h.  */ | 
 | 14054 |  | 
 | 14055 | #include <stdlib.h> | 
 | 14056 | #include <math.h> | 
 | 14057 | int main() { | 
 | 14058 |     volatile double x, y, z; | 
 | 14059 |     /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ | 
 | 14060 |     x = 0.99999999999999989; /* 1-2**-53 */ | 
 | 14061 |     y = 1./x; | 
 | 14062 |     if (y != 1.) | 
 | 14063 |         exit(0); | 
 | 14064 |     /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ | 
 | 14065 |     x = 1e16; | 
 | 14066 |     y = 2.99999; | 
 | 14067 |     z = x + y; | 
 | 14068 |     if (z != 1e16+4.) | 
 | 14069 |         exit(0); | 
 | 14070 |     /* both tests show evidence of double rounding */ | 
 | 14071 |     exit(1); | 
 | 14072 | } | 
 | 14073 |  | 
 | 14074 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14075 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14076 |   ac_cv_x87_double_rounding=no | 
 | 14077 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14078 |   ac_cv_x87_double_rounding=yes | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14079 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14081 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14082 | fi | 
 | 14083 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14084 | CC="$ac_save_cc" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 | 
 | 14086 | $as_echo "$ac_cv_x87_double_rounding" >&6; } | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14087 | if test "$ac_cv_x87_double_rounding" = yes | 
 | 14088 | then | 
 | 14089 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14090 | $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14091 |  | 
 | 14092 | fi | 
 | 14093 |  | 
| Mark Dickinson | b08a53a | 2009-04-16 19:52:09 +0000 | [diff] [blame] | 14094 | # ************************************ | 
 | 14095 | # * Check for mathematical functions * | 
 | 14096 | # ************************************ | 
 | 14097 |  | 
 | 14098 | LIBS_SAVE=$LIBS | 
 | 14099 | LIBS="$LIBS $LIBM" | 
 | 14100 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14101 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma | 
 | 14102 | do : | 
 | 14103 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 14104 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14105 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14106 |   cat >>confdefs.h <<_ACEOF | 
 | 14107 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 14108 | _ACEOF | 
 | 14109 |  | 
 | 14110 | fi | 
 | 14111 | done | 
 | 14112 |  | 
| Victor Stinner | 8f9f8d6 | 2011-05-09 12:45:41 +0200 | [diff] [blame] | 14113 | for ac_func in hypot lgamma log1p log2 round tgamma | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14114 | do : | 
 | 14115 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 14116 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14117 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14118 |   cat >>confdefs.h <<_ACEOF | 
 | 14119 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 14120 | _ACEOF | 
 | 14121 |  | 
 | 14122 | fi | 
 | 14123 | done | 
 | 14124 |  | 
 | 14125 | ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> | 
 | 14126 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14127 | if test "x$ac_cv_have_decl_isinf" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14128 |   ac_have_decl=1 | 
 | 14129 | else | 
 | 14130 |   ac_have_decl=0 | 
 | 14131 | fi | 
 | 14132 |  | 
 | 14133 | cat >>confdefs.h <<_ACEOF | 
 | 14134 | #define HAVE_DECL_ISINF $ac_have_decl | 
 | 14135 | _ACEOF | 
 | 14136 | ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> | 
 | 14137 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14138 | if test "x$ac_cv_have_decl_isnan" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14139 |   ac_have_decl=1 | 
 | 14140 | else | 
 | 14141 |   ac_have_decl=0 | 
 | 14142 | fi | 
 | 14143 |  | 
 | 14144 | cat >>confdefs.h <<_ACEOF | 
 | 14145 | #define HAVE_DECL_ISNAN $ac_have_decl | 
 | 14146 | _ACEOF | 
 | 14147 | ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> | 
 | 14148 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14149 | if test "x$ac_cv_have_decl_isfinite" = xyes; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14150 |   ac_have_decl=1 | 
 | 14151 | else | 
 | 14152 |   ac_have_decl=0 | 
 | 14153 | fi | 
 | 14154 |  | 
 | 14155 | cat >>confdefs.h <<_ACEOF | 
 | 14156 | #define HAVE_DECL_ISFINITE $ac_have_decl | 
 | 14157 | _ACEOF | 
 | 14158 |  | 
 | 14159 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14160 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of | 
 | 14161 | # -0. on some architectures. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 | 
 | 14163 | $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14164 | if ${ac_cv_tanh_preserves_zero_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14165 |   $as_echo_n "(cached) " >&6 | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14166 | else | 
 | 14167 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14168 | if test "$cross_compiling" = yes; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14169 |   ac_cv_tanh_preserves_zero_sign=no | 
 | 14170 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14171 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14172 | /* end confdefs.h.  */ | 
 | 14173 |  | 
 | 14174 | #include <math.h> | 
 | 14175 | #include <stdlib.h> | 
 | 14176 | int main() { | 
 | 14177 |     /* return 0 if either negative zeros don't exist | 
 | 14178 |        on this platform or if negative zeros exist | 
 | 14179 |        and tanh(-0.) == -0. */ | 
 | 14180 |   if (atan2(0., -1.) == atan2(-0., -1.) || | 
 | 14181 |       atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); | 
 | 14182 |   else exit(1); | 
 | 14183 | } | 
 | 14184 |  | 
 | 14185 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14186 | if ac_fn_c_try_run "$LINENO"; then : | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14187 |   ac_cv_tanh_preserves_zero_sign=yes | 
 | 14188 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14189 |   ac_cv_tanh_preserves_zero_sign=no | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14190 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14191 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14192 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14193 | fi | 
 | 14194 |  | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14195 | fi | 
 | 14196 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 | 
 | 14198 | $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14199 | if test "$ac_cv_tanh_preserves_zero_sign" = yes | 
 | 14200 | then | 
 | 14201 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14202 | $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 14203 |  | 
 | 14204 | fi | 
 | 14205 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14206 | if test "$ac_cv_func_log1p" = yes | 
 | 14207 | then | 
 | 14208 |     # On some versions of AIX, log1p(-0.) returns 0. instead of | 
 | 14209 |     # -0.  See issue #9920. | 
 | 14210 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 | 
 | 14211 | $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14212 |     if ${ac_cv_log1p_drops_zero_sign+:} false; then : | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14213 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14214 | else | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14215 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14216 |     if test "$cross_compiling" = yes; then : | 
 | 14217 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14218 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14219 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14220 | /* end confdefs.h.  */ | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14221 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14222 |     #include <math.h> | 
 | 14223 |     #include <stdlib.h> | 
 | 14224 |     int main() { | 
 | 14225 |         /* Fail if the signs of log1p(-0.) and -0. can be | 
 | 14226 | 	   distinguished. */ | 
 | 14227 |         if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) | 
 | 14228 |             return 0; | 
 | 14229 |         else | 
 | 14230 |             return 1; | 
 | 14231 |     } | 
 | 14232 |  | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14233 | _ACEOF | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14234 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 14235 |   ac_cv_log1p_drops_zero_sign=no | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14236 | else | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14237 |   ac_cv_log1p_drops_zero_sign=yes | 
 | 14238 | fi | 
 | 14239 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14240 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14241 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14242 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14243 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14244 |  | 
| Mark Dickinson | ec0d355 | 2010-11-20 10:29:12 +0000 | [diff] [blame] | 14245 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 | 
 | 14246 | $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } | 
 | 14247 | fi | 
 | 14248 | if test "$ac_cv_log1p_drops_zero_sign" = yes | 
 | 14249 | then | 
 | 14250 |  | 
 | 14251 | $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h | 
 | 14252 |  | 
 | 14253 | fi | 
| Mark Dickinson | 3dc7c6a | 2009-01-04 15:09:02 +0000 | [diff] [blame] | 14254 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14255 | LIBS=$LIBS_SAVE | 
 | 14256 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14257 | # For multiprocessing module, check that sem_open | 
 | 14258 | # actually works.  For FreeBSD versions <= 7.2, | 
 | 14259 | # the kernel module that provides POSIX semaphores | 
 | 14260 | # isn't loaded by default, so an attempt to call | 
 | 14261 | # sem_open results in a 'Signal 12' error. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 | 
 | 14263 | $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14264 | if ${ac_cv_posix_semaphores_enabled+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14265 |   $as_echo_n "(cached) " >&6 | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14266 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14267 |   if test "$cross_compiling" = yes; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14268 |   ac_cv_posix_semaphores_enabled=yes | 
 | 14269 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14270 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14271 | /* end confdefs.h.  */ | 
 | 14272 |  | 
 | 14273 | #include <unistd.h> | 
 | 14274 | #include <fcntl.h> | 
 | 14275 | #include <stdio.h> | 
 | 14276 | #include <semaphore.h> | 
 | 14277 | #include <sys/stat.h> | 
 | 14278 |  | 
 | 14279 | int main(void) { | 
 | 14280 |   sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
 | 14281 |   if (a == SEM_FAILED) { | 
 | 14282 |     perror("sem_open"); | 
 | 14283 |     return 1; | 
 | 14284 |   } | 
 | 14285 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14286 |   sem_unlink("/autoconf"); | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14287 |   return 0; | 
 | 14288 | } | 
 | 14289 |  | 
 | 14290 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14291 | if ac_fn_c_try_run "$LINENO"; then : | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14292 |   ac_cv_posix_semaphores_enabled=yes | 
 | 14293 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14294 |   ac_cv_posix_semaphores_enabled=no | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14295 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14296 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14297 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14298 | fi | 
 | 14299 |  | 
 | 14300 |  | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14301 | fi | 
 | 14302 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 | 
 | 14304 | $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14305 | if test $ac_cv_posix_semaphores_enabled = no | 
 | 14306 | then | 
 | 14307 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14308 | $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h | 
| Mark Dickinson | a614f04 | 2009-11-28 12:48:43 +0000 | [diff] [blame] | 14309 |  | 
 | 14310 | fi | 
 | 14311 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14312 | # Multiprocessing check for broken sem_getvalue | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 | 
 | 14314 | $as_echo_n "checking for broken sem_getvalue... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14315 | if ${ac_cv_broken_sem_getvalue+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14316 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14317 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14318 |   if test "$cross_compiling" = yes; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14319 |   ac_cv_broken_sem_getvalue=yes | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14320 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14321 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14322 | /* end confdefs.h.  */ | 
 | 14323 |  | 
 | 14324 | #include <unistd.h> | 
 | 14325 | #include <fcntl.h> | 
 | 14326 | #include <stdio.h> | 
 | 14327 | #include <semaphore.h> | 
 | 14328 | #include <sys/stat.h> | 
 | 14329 |  | 
 | 14330 | int main(void){ | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14331 |   sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14332 |   int count; | 
 | 14333 |   int res; | 
 | 14334 |   if(a==SEM_FAILED){ | 
 | 14335 |     perror("sem_open"); | 
 | 14336 |     return 1; | 
 | 14337 |  | 
 | 14338 |   } | 
 | 14339 |   res = sem_getvalue(a, &count); | 
 | 14340 |   sem_close(a); | 
| Mark Dickinson | ba79b35 | 2009-12-13 21:10:57 +0000 | [diff] [blame] | 14341 |   sem_unlink("/autocftw"); | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14342 |   return res==-1 ? 1 : 0; | 
 | 14343 | } | 
 | 14344 |  | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14345 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14346 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14347 |   ac_cv_broken_sem_getvalue=no | 
| Mark Dickinson | 1068307 | 2009-04-18 21:18:19 +0000 | [diff] [blame] | 14348 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14349 |   ac_cv_broken_sem_getvalue=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14350 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14351 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14352 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 14353 | fi | 
 | 14354 |  | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 14355 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14356 | fi | 
 | 14357 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 | 
 | 14359 | $as_echo "$ac_cv_broken_sem_getvalue" >&6; } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14360 | if test $ac_cv_broken_sem_getvalue = yes | 
 | 14361 | then | 
 | 14362 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14363 | $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 14364 |  | 
 | 14365 | fi | 
 | 14366 |  | 
| Serhiy Storchaka | c2f7d87 | 2016-05-04 09:44:44 +0300 | [diff] [blame] | 14367 | ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> | 
 | 14368 | " | 
 | 14369 | if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : | 
 | 14370 |   ac_have_decl=1 | 
 | 14371 | else | 
 | 14372 |   ac_have_decl=0 | 
 | 14373 | fi | 
 | 14374 |  | 
 | 14375 | cat >>confdefs.h <<_ACEOF | 
 | 14376 | #define HAVE_DECL_RTLD_LAZY $ac_have_decl | 
 | 14377 | _ACEOF | 
 | 14378 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | 
 | 14379 | " | 
 | 14380 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | 
 | 14381 |   ac_have_decl=1 | 
 | 14382 | else | 
 | 14383 |   ac_have_decl=0 | 
 | 14384 | fi | 
 | 14385 |  | 
 | 14386 | cat >>confdefs.h <<_ACEOF | 
 | 14387 | #define HAVE_DECL_RTLD_NOW $ac_have_decl | 
 | 14388 | _ACEOF | 
 | 14389 | ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> | 
 | 14390 | " | 
 | 14391 | if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : | 
 | 14392 |   ac_have_decl=1 | 
 | 14393 | else | 
 | 14394 |   ac_have_decl=0 | 
 | 14395 | fi | 
 | 14396 |  | 
 | 14397 | cat >>confdefs.h <<_ACEOF | 
 | 14398 | #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl | 
 | 14399 | _ACEOF | 
 | 14400 | ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> | 
 | 14401 | " | 
 | 14402 | if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : | 
 | 14403 |   ac_have_decl=1 | 
 | 14404 | else | 
 | 14405 |   ac_have_decl=0 | 
 | 14406 | fi | 
 | 14407 |  | 
 | 14408 | cat >>confdefs.h <<_ACEOF | 
 | 14409 | #define HAVE_DECL_RTLD_LOCAL $ac_have_decl | 
 | 14410 | _ACEOF | 
 | 14411 | ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> | 
 | 14412 | " | 
 | 14413 | if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : | 
 | 14414 |   ac_have_decl=1 | 
 | 14415 | else | 
 | 14416 |   ac_have_decl=0 | 
 | 14417 | fi | 
 | 14418 |  | 
 | 14419 | cat >>confdefs.h <<_ACEOF | 
 | 14420 | #define HAVE_DECL_RTLD_NODELETE $ac_have_decl | 
 | 14421 | _ACEOF | 
 | 14422 | ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> | 
 | 14423 | " | 
 | 14424 | if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : | 
 | 14425 |   ac_have_decl=1 | 
 | 14426 | else | 
 | 14427 |   ac_have_decl=0 | 
 | 14428 | fi | 
 | 14429 |  | 
 | 14430 | cat >>confdefs.h <<_ACEOF | 
 | 14431 | #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl | 
 | 14432 | _ACEOF | 
 | 14433 | ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> | 
 | 14434 | " | 
 | 14435 | if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : | 
 | 14436 |   ac_have_decl=1 | 
 | 14437 | else | 
 | 14438 |   ac_have_decl=0 | 
 | 14439 | fi | 
 | 14440 |  | 
 | 14441 | cat >>confdefs.h <<_ACEOF | 
 | 14442 | #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl | 
 | 14443 | _ACEOF | 
 | 14444 |  | 
 | 14445 |  | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14446 | # determine what size digit to use for Python's longs | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 | 
 | 14448 | $as_echo_n "checking digit size for Python's longs... " >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14449 | # Check whether --enable-big-digits was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14450 | if test "${enable_big_digits+set}" = set; then : | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14451 |   enableval=$enable_big_digits; case $enable_big_digits in | 
 | 14452 | yes) | 
 | 14453 |   enable_big_digits=30 ;; | 
 | 14454 | no) | 
 | 14455 |   enable_big_digits=15 ;; | 
 | 14456 | 15|30) | 
 | 14457 |   ;; | 
 | 14458 | *) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14459 |   as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14460 | esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 | 
 | 14462 | $as_echo "$enable_big_digits" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14463 |  | 
 | 14464 | cat >>confdefs.h <<_ACEOF | 
 | 14465 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits | 
 | 14466 | _ACEOF | 
 | 14467 |  | 
 | 14468 |  | 
 | 14469 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14470 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 14471 | $as_echo "no value specified" >&6; } | 
| Mark Dickinson | bd79264 | 2009-03-18 20:06:12 +0000 | [diff] [blame] | 14472 | fi | 
 | 14473 |  | 
 | 14474 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14475 | # check for wchar.h | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14476 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14477 | if test "x$ac_cv_header_wchar_h" = xyes; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14478 |  | 
 | 14479 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14480 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14481 |  | 
| Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14482 |   wchar_h="yes" | 
 | 14483 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14484 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14485 |   wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14486 |  | 
 | 14487 | fi | 
 | 14488 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14489 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14490 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14491 | # determine wchar_t size | 
 | 14492 | if test "$wchar_h" = yes | 
 | 14493 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14494 |   # The cast to long int works around a bug in the HP C Compiler | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14495 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 14496 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 14497 | # This bug is HP SR number 8606223364. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | 
 | 14499 | $as_echo_n "checking size of wchar_t... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14500 | if ${ac_cv_sizeof_wchar_t+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14501 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14503 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "#include <wchar.h> | 
 | 14504 | "; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14505 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14506 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14507 |   if test "$ac_cv_type_wchar_t" = yes; then | 
 | 14508 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 14509 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14510 | as_fn_error 77 "cannot compute sizeof (wchar_t) | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14511 | See \`config.log' for more details" "$LINENO" 5; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14512 |    else | 
 | 14513 |      ac_cv_sizeof_wchar_t=0 | 
 | 14514 |    fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14515 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14516 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | 
 | 14519 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14520 |  | 
 | 14521 |  | 
 | 14522 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14523 | cat >>confdefs.h <<_ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14524 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14525 | _ACEOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14526 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14527 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14528 | fi | 
 | 14529 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 | 
 | 14531 | $as_echo_n "checking for UCS-4 tcl... " >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14532 | have_ucs4_tcl=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14534 | /* end confdefs.h.  */ | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14535 |  | 
 | 14536 | #include <tcl.h> | 
 | 14537 | #if TCL_UTF_MAX != 6 | 
 | 14538 | # error "NOT UCS4_TCL" | 
 | 14539 | #endif | 
 | 14540 | int | 
 | 14541 | main () | 
 | 14542 | { | 
 | 14543 |  | 
 | 14544 |   ; | 
 | 14545 |   return 0; | 
 | 14546 | } | 
 | 14547 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14548 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14549 |  | 
 | 14550 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14551 | $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14552 |  | 
 | 14553 |   have_ucs4_tcl=yes | 
 | 14554 |  | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14555 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 | 
 | 14558 | $as_echo "$have_ucs4_tcl" >&6; } | 
| Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 14559 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14560 | # check whether wchar_t is signed or not | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14561 | if test "$wchar_h" = yes | 
 | 14562 | then | 
 | 14563 |   # check whether wchar_t is signed or not | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14564 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 | 
 | 14565 | $as_echo_n "checking whether wchar_t is signed... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14566 |   if ${ac_cv_wchar_t_signed+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14567 |   $as_echo_n "(cached) " >&6 | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14568 | else | 
 | 14569 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14570 |   if test "$cross_compiling" = yes; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14571 |   ac_cv_wchar_t_signed=yes | 
 | 14572 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14573 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14574 | /* end confdefs.h.  */ | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14575 |  | 
 | 14576 |   #include <wchar.h> | 
 | 14577 |   int main() | 
 | 14578 |   { | 
| Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14579 | 	/* Success: exit code 0 */ | 
 | 14580 |         exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14581 |   } | 
 | 14582 |  | 
 | 14583 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14584 | if ac_fn_c_try_run "$LINENO"; then : | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14585 |   ac_cv_wchar_t_signed=yes | 
 | 14586 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14587 |   ac_cv_wchar_t_signed=no | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14588 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14589 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14590 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14591 | fi | 
 | 14592 |  | 
| Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 14593 | fi | 
 | 14594 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14595 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 | 
 | 14596 | $as_echo "$ac_cv_wchar_t_signed" >&6; } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14597 | fi | 
 | 14598 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14599 | # wchar_t is only usable if it maps to an unsigned type | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14600 | if test "$ac_cv_sizeof_wchar_t" -ge 2 \ | 
| Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 14601 |           -a "$ac_cv_wchar_t_signed" = "no" | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14602 | then | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14603 |   HAVE_USABLE_WCHAR_T="yes" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14604 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14605 | $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 |  | 
| Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 14607 | else | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14608 |   HAVE_USABLE_WCHAR_T="no usable wchar_t found" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14609 | fi | 
| Martin v. Löwis | d63a3b8 | 2011-09-28 07:41:54 +0200 | [diff] [blame] | 14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 | 
 | 14611 | $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14612 |  | 
 | 14613 | # check for endianness | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14614 |  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 
 | 14615 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14616 | if ${ac_cv_c_bigendian+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14617 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14618 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14619 |   ac_cv_c_bigendian=unknown | 
 | 14620 |     # See if we're dealing with a universal compiler. | 
 | 14621 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14622 | /* end confdefs.h.  */ | 
 | 14623 | #ifndef __APPLE_CC__ | 
 | 14624 | 	       not a universal capable compiler | 
 | 14625 | 	     #endif | 
 | 14626 | 	     typedef int dummy; | 
 | 14627 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14628 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14629 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14630 |  | 
 | 14631 | 	# Check for potential -arch flags.  It is not universal unless | 
 | 14632 | 	# there are at least two -arch flags with different values. | 
 | 14633 | 	ac_arch= | 
 | 14634 | 	ac_prev= | 
 | 14635 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 14636 | 	 if test -n "$ac_prev"; then | 
 | 14637 | 	   case $ac_word in | 
 | 14638 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 14639 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 14640 | 		 ac_arch=$ac_word | 
 | 14641 | 	       else | 
 | 14642 | 		 ac_cv_c_bigendian=universal | 
 | 14643 | 		 break | 
 | 14644 | 	       fi | 
 | 14645 | 	       ;; | 
 | 14646 | 	   esac | 
 | 14647 | 	   ac_prev= | 
 | 14648 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 14649 | 	   ac_prev=arch | 
 | 14650 | 	 fi | 
 | 14651 |        done | 
 | 14652 | fi | 
 | 14653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14654 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14655 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 14656 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14657 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14658 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14659 | 	     #include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14660 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14661 | int | 
 | 14662 | main () | 
 | 14663 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14664 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 14665 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 14666 | 		     && LITTLE_ENDIAN) | 
 | 14667 | 	      bogus endian macros | 
 | 14668 | 	     #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14669 |  | 
 | 14670 |   ; | 
 | 14671 |   return 0; | 
 | 14672 | } | 
 | 14673 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14674 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14675 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14676 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14677 | /* end confdefs.h.  */ | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14678 | #include <sys/types.h> | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14679 | 		#include <sys/param.h> | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14680 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14681 | int | 
 | 14682 | main () | 
 | 14683 | { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14684 | #if BYTE_ORDER != BIG_ENDIAN | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14685 | 		 not big endian | 
 | 14686 | 		#endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14687 |  | 
 | 14688 |   ; | 
 | 14689 |   return 0; | 
 | 14690 | } | 
 | 14691 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14692 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14693 |   ac_cv_c_bigendian=yes | 
 | 14694 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14695 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14696 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14698 | fi | 
 | 14699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14700 |     fi | 
 | 14701 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14702 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
 | 14703 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14704 | /* end confdefs.h.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14705 | #include <limits.h> | 
 | 14706 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14707 | int | 
 | 14708 | main () | 
 | 14709 | { | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14710 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 14711 | 	      bogus endian macros | 
 | 14712 | 	     #endif | 
 | 14713 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14714 |   ; | 
 | 14715 |   return 0; | 
 | 14716 | } | 
 | 14717 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14718 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14719 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
 | 14720 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14721 | /* end confdefs.h.  */ | 
 | 14722 | #include <limits.h> | 
 | 14723 |  | 
 | 14724 | int | 
 | 14725 | main () | 
 | 14726 | { | 
 | 14727 | #ifndef _BIG_ENDIAN | 
 | 14728 | 		 not big endian | 
 | 14729 | 		#endif | 
 | 14730 |  | 
 | 14731 |   ; | 
 | 14732 |   return 0; | 
 | 14733 | } | 
 | 14734 | _ACEOF | 
 | 14735 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14736 |   ac_cv_c_bigendian=yes | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14737 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14738 |   ac_cv_c_bigendian=no | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14739 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14741 | fi | 
 | 14742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 14743 |     fi | 
 | 14744 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 14745 |       # Compile a test program. | 
 | 14746 |       if test "$cross_compiling" = yes; then : | 
 | 14747 |   # Try to guess by grepping values from an object file. | 
 | 14748 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 14749 | /* end confdefs.h.  */ | 
 | 14750 | short int ascii_mm[] = | 
 | 14751 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 14752 | 		short int ascii_ii[] = | 
 | 14753 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 14754 | 		int use_ascii (int i) { | 
 | 14755 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 14756 | 		} | 
 | 14757 | 		short int ebcdic_ii[] = | 
 | 14758 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 14759 | 		short int ebcdic_mm[] = | 
 | 14760 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 14761 | 		int use_ebcdic (int i) { | 
 | 14762 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 14763 | 		} | 
 | 14764 | 		extern int foo; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14765 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14766 | int | 
 | 14767 | main () | 
 | 14768 | { | 
 | 14769 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 14770 |   ; | 
 | 14771 |   return 0; | 
 | 14772 | } | 
 | 14773 | _ACEOF | 
 | 14774 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 14775 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 14776 | 	      ac_cv_c_bigendian=yes | 
 | 14777 | 	    fi | 
 | 14778 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 14779 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 14780 | 		ac_cv_c_bigendian=no | 
 | 14781 | 	      else | 
 | 14782 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 14783 | 		ac_cv_c_bigendian=unknown | 
 | 14784 | 	      fi | 
 | 14785 | 	    fi | 
 | 14786 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14789 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14790 | /* end confdefs.h.  */ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14791 | $ac_includes_default | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | int | 
 | 14793 | main () | 
 | 14794 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14795 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14796 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 14797 | 	     union | 
 | 14798 | 	     { | 
 | 14799 | 	       long int l; | 
 | 14800 | 	       char c[sizeof (long int)]; | 
 | 14801 | 	     } u; | 
 | 14802 | 	     u.l = 1; | 
 | 14803 | 	     return u.c[sizeof (long int) - 1] == 1; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14804 |  | 
 | 14805 |   ; | 
 | 14806 |   return 0; | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14807 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14808 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14809 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14810 |   ac_cv_c_bigendian=no | 
 | 14811 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14812 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14813 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14814 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14815 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14816 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14817 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14818 |     fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14819 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
 | 14821 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 14822 |  case $ac_cv_c_bigendian in #( | 
 | 14823 |    yes) | 
 | 14824 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
 | 14825 | ;; #( | 
 | 14826 |    no) | 
 | 14827 |       ;; #( | 
 | 14828 |    universal) | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 14829 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14830 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| Benjamin Peterson | 8719ad5 | 2009-09-11 22:24:02 +0000 | [diff] [blame] | 14831 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14832 |      ;; #( | 
 | 14833 |    *) | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 14834 |      as_fn_error $? "unknown endianness | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14835 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14836 |  esac | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14837 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14838 |  | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14839 | # ABI version string for Python extension modules.  This appears between the | 
 | 14840 | # periods in shared library file names, e.g. foo.<SOABI>.so.  It is calculated | 
 | 14841 | # from the following attributes which affect the ABI of this Python build (in | 
 | 14842 | # this order): | 
 | 14843 | # | 
 | 14844 | # * The Python implementation (always 'cpython-' for us) | 
 | 14845 | # * The major and minor version numbers | 
 | 14846 | # * --with-pydebug (adds a 'd') | 
 | 14847 | # * --with-pymalloc (adds a 'm') | 
 | 14848 | # * --with-wide-unicode (adds a 'u') | 
 | 14849 | # | 
 | 14850 | # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, | 
| Benjamin Peterson | d7f73e9 | 2010-09-05 00:09:07 +0000 | [diff] [blame] | 14851 | # would get a shared library ABI version tag of 'cpython-32dmu' and shared | 
 | 14852 | # libraries would be named 'foo.cpython-32dmu.so'. | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14853 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 | 
 | 14855 | $as_echo_n "checking ABIFLAGS... " >&6; } | 
 | 14856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 | 
 | 14857 | $as_echo "$ABIFLAGS" >&6; } | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 | 
 | 14859 | $as_echo_n "checking SOABI... " >&6; } | 
| doko@ubuntu.com | d3899c1 | 2015-04-15 20:23:14 +0200 | [diff] [blame] | 14860 | SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} | 
| Barry Warsaw | 35f3a2c | 2010-09-03 18:30:30 +0000 | [diff] [blame] | 14861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 | 
 | 14862 | $as_echo "$SOABI" >&6; } | 
 | 14863 |  | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14864 |  | 
 | 14865 | case $ac_sys_system in | 
| Ned Deily | 3b81248 | 2015-04-15 17:11:47 -0700 | [diff] [blame] | 14866 |     Linux*|GNU*|Darwin) | 
| doko@ubuntu.com | d5537d0 | 2013-03-21 13:21:49 -0700 | [diff] [blame] | 14867 | 	EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 
 | 14868 |     *) | 
 | 14869 | 	EXT_SUFFIX=${SHLIB_SUFFIX};; | 
 | 14870 | esac | 
 | 14871 |  | 
| Barry Warsaw | 8cf4eae | 2010-10-16 01:04:07 +0000 | [diff] [blame] | 14872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 | 
 | 14873 | $as_echo_n "checking LDVERSION... " >&6; } | 
 | 14874 | LDVERSION='$(VERSION)$(ABIFLAGS)' | 
 | 14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 | 
 | 14876 | $as_echo "$LDVERSION" >&6; } | 
 | 14877 |  | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14878 |  | 
| doko@ubuntu.com | 5553231 | 2016-06-14 08:55:19 +0200 | [diff] [blame] | 14879 | if test x$PLATFORM_TRIPLET = x; then | 
 | 14880 |   LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | 
 | 14881 | else | 
 | 14882 |   LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | 
 | 14883 | fi | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 14884 |  | 
 | 14885 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14886 | # Check whether right shifting a negative integer extends the sign bit | 
 | 14887 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 | 
 | 14889 | $as_echo_n "checking whether right shift extends the sign bit... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14890 | if ${ac_cv_rshift_extends_sign+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14891 |   $as_echo_n "(cached) " >&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14892 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14893 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14894 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14895 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14896 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14897 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14898 | /* end confdefs.h.  */ | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14899 |  | 
 | 14900 | int main() | 
 | 14901 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14902 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14903 | } | 
 | 14904 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14905 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14906 | if ac_fn_c_try_run "$LINENO"; then : | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14907 |   ac_cv_rshift_extends_sign=yes | 
 | 14908 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14909 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14910 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14911 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 14912 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14913 | fi | 
 | 14914 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14915 | fi | 
 | 14916 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 | 
 | 14918 | $as_echo "$ac_cv_rshift_extends_sign" >&6; } | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 14919 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14920 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14921 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14922 | $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14923 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14924 | fi | 
 | 14925 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14926 | # check for getc_unlocked and related locking functions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 | 
 | 14928 | $as_echo_n "checking for getc_unlocked() and friends... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 14929 | if ${ac_cv_have_getc_unlocked+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14930 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14931 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14932 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14934 | /* end confdefs.h.  */ | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14935 | #include <stdio.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14936 | int | 
 | 14937 | main () | 
 | 14938 | { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14939 |  | 
 | 14940 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 14941 | 	flockfile(f); | 
 | 14942 | 	getc_unlocked(f); | 
 | 14943 | 	funlockfile(f); | 
 | 14944 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14945 |   ; | 
 | 14946 |   return 0; | 
 | 14947 | } | 
 | 14948 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14949 | if ac_fn_c_try_link "$LINENO"; then : | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14950 |   ac_cv_have_getc_unlocked=yes | 
 | 14951 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14952 |   ac_cv_have_getc_unlocked=no | 
 | 14953 | fi | 
 | 14954 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14955 |     conftest$ac_exeext conftest.$ac_ext | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14956 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14957 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 | 
 | 14959 | $as_echo "$ac_cv_have_getc_unlocked" >&6; } | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14960 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 14961 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14963 | $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 14964 |  | 
 | 14965 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 14966 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14967 | # check where readline lives | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 14968 | # save the value of LIBS so we don't actually link Python with readline | 
 | 14969 | LIBS_no_readline=$LIBS | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14970 |  | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14971 | # On some systems we need to link readline to a termcap compatible | 
 | 14972 | # library.  NOTE: Keep the precedence of listed libraries synchronised | 
 | 14973 | # with setup.py. | 
 | 14974 | py_cv_lib_readline=no | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 | 
 | 14976 | $as_echo_n "checking how to link readline libs... " >&6; } | 
| doko@ubuntu.com | f2967c7 | 2012-06-30 17:32:23 +0200 | [diff] [blame] | 14977 | for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 14978 |   if test -z "$py_libtermcap"; then | 
 | 14979 |     READLINE_LIBS="-lreadline" | 
 | 14980 |   else | 
 | 14981 |     READLINE_LIBS="-lreadline -l$py_libtermcap" | 
 | 14982 |   fi | 
 | 14983 |   LIBS="$READLINE_LIBS $LIBS_no_readline" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 14984 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14985 | /* end confdefs.h.  */ | 
 | 14986 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14987 | /* Override any GCC internal prototype to avoid an error. | 
 | 14988 |    Use char because int might match the return type of a GCC | 
 | 14989 |    builtin and then its argument prototype would still apply.  */ | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14990 | #ifdef __cplusplus | 
 | 14991 | extern "C" | 
 | 14992 | #endif | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14993 | char readline (); | 
 | 14994 | int | 
 | 14995 | main () | 
 | 14996 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14997 | return readline (); | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 14998 |   ; | 
 | 14999 |   return 0; | 
 | 15000 | } | 
 | 15001 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15002 | if ac_fn_c_try_link "$LINENO"; then : | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15003 |   py_cv_lib_readline=yes | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15004 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15005 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15006 |     conftest$ac_exeext conftest.$ac_ext | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15007 |   if test $py_cv_lib_readline = yes; then | 
 | 15008 |     break | 
 | 15009 |   fi | 
 | 15010 | done | 
 | 15011 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts | 
 | 15012 | #AC_SUBST([READLINE_LIBS]) | 
| Gregory P. Smith | 3856c37 | 2008-09-07 19:24:00 +0000 | [diff] [blame] | 15013 | if test $py_cv_lib_readline = no; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15014 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 15015 | $as_echo "none" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15016 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15017 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 | 
 | 15018 | $as_echo "$READLINE_LIBS" >&6; } | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15019 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15020 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15021 |  | 
| Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 15022 | fi | 
 | 15023 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15024 | # check for readline 2.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15026 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15027 | #include <readline/readline.h> | 
 | 15028 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15029 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15030 |   have_readline=yes | 
 | 15031 | else | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15032 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15033 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15034 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15035 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15036 | if test $have_readline = yes | 
 | 15037 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15038 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15039 | /* end confdefs.h.  */ | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15040 | #include <readline/readline.h> | 
 | 15041 |  | 
 | 15042 | _ACEOF | 
 | 15043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15044 |   $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15045 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15046 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15047 |  | 
 | 15048 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15049 | rm -f conftest* | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15050 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15051 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15052 | /* end confdefs.h.  */ | 
 | 15053 | #include <readline/readline.h> | 
 | 15054 |  | 
 | 15055 | _ACEOF | 
 | 15056 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15057 |   $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15058 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15059 | $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15060 |  | 
 | 15061 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15062 | rm -f conftest* | 
| Antoine Pitrou | d513177 | 2009-10-26 19:22:14 +0000 | [diff] [blame] | 15063 |  | 
| Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 15064 | fi | 
 | 15065 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15066 | # check for readline 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 | 
 | 15068 | $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15069 | if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15070 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15071 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15073 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15075 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15076 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15077 | /* Override any GCC internal prototype to avoid an error. | 
 | 15078 |    Use char because int might match the return type of a GCC | 
 | 15079 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 | #ifdef __cplusplus | 
 | 15081 | extern "C" | 
 | 15082 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15083 | char rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15084 | int | 
 | 15085 | main () | 
 | 15086 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15087 | return rl_pre_input_hook (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15088 |   ; | 
 | 15089 |   return 0; | 
 | 15090 | } | 
 | 15091 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15092 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15093 |   ac_cv_lib_readline_rl_pre_input_hook=yes | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15094 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15095 |   ac_cv_lib_readline_rl_pre_input_hook=no | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15096 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15097 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15098 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | LIBS=$ac_check_lib_save_LIBS | 
 | 15100 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 | 
 | 15102 | $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15103 | if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15104 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15105 | $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15106 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15107 | fi | 
 | 15108 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15109 |  | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15110 | # also in 4.0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 | 
 | 15112 | $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15113 | if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15114 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15115 | else | 
 | 15116 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15117 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15119 | /* end confdefs.h.  */ | 
 | 15120 |  | 
 | 15121 | /* Override any GCC internal prototype to avoid an error. | 
 | 15122 |    Use char because int might match the return type of a GCC | 
 | 15123 |    builtin and then its argument prototype would still apply.  */ | 
 | 15124 | #ifdef __cplusplus | 
 | 15125 | extern "C" | 
 | 15126 | #endif | 
 | 15127 | char rl_completion_display_matches_hook (); | 
 | 15128 | int | 
 | 15129 | main () | 
 | 15130 | { | 
 | 15131 | return rl_completion_display_matches_hook (); | 
 | 15132 |   ; | 
 | 15133 |   return 0; | 
 | 15134 | } | 
 | 15135 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15136 | if ac_fn_c_try_link "$LINENO"; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15137 |   ac_cv_lib_readline_rl_completion_display_matches_hook=yes | 
 | 15138 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15139 |   ac_cv_lib_readline_rl_completion_display_matches_hook=no | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15140 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15141 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15142 |     conftest$ac_exeext conftest.$ac_ext | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15143 | LIBS=$ac_check_lib_save_LIBS | 
 | 15144 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 | 
 | 15146 | $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15147 | if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15148 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15149 | $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h | 
| Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 15150 |  | 
 | 15151 | fi | 
 | 15152 |  | 
 | 15153 |  | 
| Martin Panter | 5dbbf1a | 2016-04-03 02:54:58 +0000 | [diff] [blame] | 15154 | # also in 4.0, but not in editline | 
 | 15155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 | 
 | 15156 | $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } | 
 | 15157 | if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : | 
 | 15158 |   $as_echo_n "(cached) " >&6 | 
 | 15159 | else | 
 | 15160 |   ac_check_lib_save_LIBS=$LIBS | 
 | 15161 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
 | 15162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15163 | /* end confdefs.h.  */ | 
 | 15164 |  | 
 | 15165 | /* Override any GCC internal prototype to avoid an error. | 
 | 15166 |    Use char because int might match the return type of a GCC | 
 | 15167 |    builtin and then its argument prototype would still apply.  */ | 
 | 15168 | #ifdef __cplusplus | 
 | 15169 | extern "C" | 
 | 15170 | #endif | 
 | 15171 | char rl_resize_terminal (); | 
 | 15172 | int | 
 | 15173 | main () | 
 | 15174 | { | 
 | 15175 | return rl_resize_terminal (); | 
 | 15176 |   ; | 
 | 15177 |   return 0; | 
 | 15178 | } | 
 | 15179 | _ACEOF | 
 | 15180 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 15181 |   ac_cv_lib_readline_rl_resize_terminal=yes | 
 | 15182 | else | 
 | 15183 |   ac_cv_lib_readline_rl_resize_terminal=no | 
 | 15184 | fi | 
 | 15185 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15186 |     conftest$ac_exeext conftest.$ac_ext | 
 | 15187 | LIBS=$ac_check_lib_save_LIBS | 
 | 15188 | fi | 
 | 15189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 | 
 | 15190 | $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } | 
 | 15191 | if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : | 
 | 15192 |  | 
 | 15193 | $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h | 
 | 15194 |  | 
 | 15195 | fi | 
 | 15196 |  | 
 | 15197 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15198 | # check for readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 | 
 | 15200 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15201 | if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15202 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15203 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 |   ac_check_lib_save_LIBS=$LIBS | 
| Gregory P. Smith | 1882094 | 2008-09-07 06:24:49 +0000 | [diff] [blame] | 15205 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15207 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15208 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15209 | /* Override any GCC internal prototype to avoid an error. | 
 | 15210 |    Use char because int might match the return type of a GCC | 
 | 15211 |    builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15212 | #ifdef __cplusplus | 
 | 15213 | extern "C" | 
 | 15214 | #endif | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15215 | char rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15216 | int | 
 | 15217 | main () | 
 | 15218 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15219 | return rl_completion_matches (); | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15220 |   ; | 
 | 15221 |   return 0; | 
 | 15222 | } | 
 | 15223 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15224 | if ac_fn_c_try_link "$LINENO"; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15225 |   ac_cv_lib_readline_rl_completion_matches=yes | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15226 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15227 |   ac_cv_lib_readline_rl_completion_matches=no | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15228 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15229 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15230 |     conftest$ac_exeext conftest.$ac_ext | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15231 | LIBS=$ac_check_lib_save_LIBS | 
 | 15232 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 | 
 | 15234 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15235 | if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15236 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15237 | $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15238 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15239 | fi | 
 | 15240 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15241 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15242 | # also in readline 4.2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15244 | /* end confdefs.h.  */ | 
 | 15245 | #include <readline/readline.h> | 
 | 15246 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15247 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15248 |   have_readline=yes | 
 | 15249 | else | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15250 |   have_readline=no | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15251 |  | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15252 | fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 15253 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15254 | if test $have_readline = yes | 
 | 15255 | then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15256 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15257 | /* end confdefs.h.  */ | 
 | 15258 | #include <readline/readline.h> | 
 | 15259 |  | 
 | 15260 | _ACEOF | 
 | 15261 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15262 |   $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15263 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15264 | $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15265 |  | 
 | 15266 | fi | 
| Matthias Klose | c80c93f | 2010-04-24 17:04:35 +0000 | [diff] [blame] | 15267 | rm -f conftest* | 
| Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15268 |  | 
 | 15269 | fi | 
 | 15270 |  | 
| Benjamin Peterson | d1e22ba | 2014-11-26 14:35:12 -0600 | [diff] [blame] | 15271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 | 
 | 15272 | $as_echo_n "checking for append_history in -lreadline... " >&6; } | 
 | 15273 | if ${ac_cv_lib_readline_append_history+:} false; then : | 
 | 15274 |   $as_echo_n "(cached) " >&6 | 
 | 15275 | else | 
 | 15276 |   ac_check_lib_save_LIBS=$LIBS | 
 | 15277 | LIBS="-lreadline $READLINE_LIBS $LIBS" | 
 | 15278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15279 | /* end confdefs.h.  */ | 
 | 15280 |  | 
 | 15281 | /* Override any GCC internal prototype to avoid an error. | 
 | 15282 |    Use char because int might match the return type of a GCC | 
 | 15283 |    builtin and then its argument prototype would still apply.  */ | 
 | 15284 | #ifdef __cplusplus | 
 | 15285 | extern "C" | 
 | 15286 | #endif | 
 | 15287 | char append_history (); | 
 | 15288 | int | 
 | 15289 | main () | 
 | 15290 | { | 
 | 15291 | return append_history (); | 
 | 15292 |   ; | 
 | 15293 |   return 0; | 
 | 15294 | } | 
 | 15295 | _ACEOF | 
 | 15296 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 15297 |   ac_cv_lib_readline_append_history=yes | 
 | 15298 | else | 
 | 15299 |   ac_cv_lib_readline_append_history=no | 
 | 15300 | fi | 
 | 15301 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15302 |     conftest$ac_exeext conftest.$ac_ext | 
 | 15303 | LIBS=$ac_check_lib_save_LIBS | 
 | 15304 | fi | 
 | 15305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 | 
 | 15306 | $as_echo "$ac_cv_lib_readline_append_history" >&6; } | 
 | 15307 | if test "x$ac_cv_lib_readline_append_history" = xyes; then : | 
 | 15308 |  | 
 | 15309 | $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h | 
 | 15310 |  | 
 | 15311 | fi | 
 | 15312 |  | 
 | 15313 |  | 
| Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 15314 | # End of readline checks: restore LIBS | 
 | 15315 | LIBS=$LIBS_no_readline | 
 | 15316 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 | 
 | 15318 | $as_echo_n "checking for broken nice()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15319 | if ${ac_cv_broken_nice+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15320 |   $as_echo_n "(cached) " >&6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15321 | else | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15322 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15323 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15324 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15325 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15326 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15327 | /* end confdefs.h.  */ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15328 |  | 
 | 15329 | int main() | 
 | 15330 | { | 
 | 15331 | 	int val1 = nice(1); | 
 | 15332 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 15333 | 		exit(0); | 
 | 15334 | 	exit(1); | 
 | 15335 | } | 
 | 15336 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15337 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15338 | if ac_fn_c_try_run "$LINENO"; then : | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15339 |   ac_cv_broken_nice=yes | 
 | 15340 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15341 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15342 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15343 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15344 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15345 | fi | 
 | 15346 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15347 | fi | 
 | 15348 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 | 
 | 15350 | $as_echo "$ac_cv_broken_nice" >&6; } | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15351 | if test "$ac_cv_broken_nice" = yes | 
 | 15352 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15353 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15354 | $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15355 |  | 
 | 15356 | fi | 
 | 15357 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 | 
 | 15359 | $as_echo_n "checking for broken poll()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15360 | if ${ac_cv_broken_poll+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15361 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15362 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15363 |   if test "$cross_compiling" = yes; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15364 |   ac_cv_broken_poll=no | 
 | 15365 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15366 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15367 | /* end confdefs.h.  */ | 
 | 15368 |  | 
 | 15369 | #include <poll.h> | 
 | 15370 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15371 | int main() | 
 | 15372 | { | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15373 |     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15374 |     int poll_test; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15375 |  | 
 | 15376 |     close (42); | 
 | 15377 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15378 |     poll_test = poll(&poll_struct, 1, 0); | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15379 |     if (poll_test < 0) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15380 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15381 |     else if (poll_test == 0 && poll_struct.revents != POLLNVAL) | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15382 |         return 0; | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15383 |     else | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15384 |         return 1; | 
 | 15385 | } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15386 |  | 
 | 15387 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15388 | if ac_fn_c_try_run "$LINENO"; then : | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15389 |   ac_cv_broken_poll=yes | 
 | 15390 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15391 |   ac_cv_broken_poll=no | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15392 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15393 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15394 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15395 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15396 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 15397 | fi | 
 | 15398 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 | 
 | 15400 | $as_echo "$ac_cv_broken_poll" >&6; } | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15401 | if test "$ac_cv_broken_poll" = yes | 
 | 15402 | then | 
 | 15403 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15404 | $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15405 |  | 
 | 15406 | fi | 
 | 15407 |  | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15408 | # Before we can test tzset, we need to check if struct tm has a tm_zone | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15409 | # (which is not required by ISO C or UNIX spec) and/or if we support | 
 | 15410 | # tzname[] | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15411 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15412 | #include <$ac_cv_struct_tm> | 
 | 15413 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15414 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15415 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15416 |  | 
 | 15417 | cat >>confdefs.h <<_ACEOF | 
 | 15418 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 15419 | _ACEOF | 
 | 15420 |  | 
 | 15421 |  | 
 | 15422 | fi | 
 | 15423 |  | 
 | 15424 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 15425 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15426 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15427 |  | 
 | 15428 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15429 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 15430 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15431 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15432 |   ac_have_decl=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15433 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15434 |   ac_have_decl=0 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15435 | fi | 
 | 15436 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15437 | cat >>confdefs.h <<_ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15438 | #define HAVE_DECL_TZNAME $ac_have_decl | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15439 | _ACEOF | 
 | 15440 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15441 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 15442 | $as_echo_n "checking for tzname... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15443 | if ${ac_cv_var_tzname+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15444 |   $as_echo_n "(cached) " >&6 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15445 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15446 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15447 | /* end confdefs.h.  */ | 
 | 15448 | #include <time.h> | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15449 | #if !HAVE_DECL_TZNAME | 
 | 15450 | extern char *tzname[]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15451 | #endif | 
 | 15452 |  | 
 | 15453 | int | 
 | 15454 | main () | 
 | 15455 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15456 | return tzname[0][0]; | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15457 |   ; | 
 | 15458 |   return 0; | 
 | 15459 | } | 
 | 15460 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15461 | if ac_fn_c_try_link "$LINENO"; then : | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15462 |   ac_cv_var_tzname=yes | 
 | 15463 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15464 |   ac_cv_var_tzname=no | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15465 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15466 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15467 |     conftest$ac_exeext conftest.$ac_ext | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15468 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 15470 | $as_echo "$ac_cv_var_tzname" >&6; } | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15471 |   if test $ac_cv_var_tzname = yes; then | 
 | 15472 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15473 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15474 |  | 
 | 15475 |   fi | 
 | 15476 | fi | 
 | 15477 |  | 
| Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 15478 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15479 | # check tzset(3) exists and works like we expect it to | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 | 
 | 15481 | $as_echo_n "checking for working tzset()... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15482 | if ${ac_cv_working_tzset+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15483 |   $as_echo_n "(cached) " >&6 | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15484 | else | 
 | 15485 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15486 | if test "$cross_compiling" = yes; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15487 |   ac_cv_working_tzset=no | 
 | 15488 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15489 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15490 | /* end confdefs.h.  */ | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15491 |  | 
 | 15492 | #include <stdlib.h> | 
 | 15493 | #include <time.h> | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15494 | #include <string.h> | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15495 |  | 
 | 15496 | #if HAVE_TZNAME | 
 | 15497 | extern char *tzname[]; | 
 | 15498 | #endif | 
 | 15499 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15500 | int main() | 
 | 15501 | { | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15502 | 	/* Note that we need to ensure that not only does tzset(3) | 
 | 15503 | 	   do 'something' with localtime, but it works as documented | 
 | 15504 | 	   in the library reference and as expected by the test suite. | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15505 | 	   This includes making sure that tzname is set properly if | 
 | 15506 | 	   tm->tm_zone does not exist since it is the alternative way | 
 | 15507 | 	   of getting timezone info. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15508 |  | 
 | 15509 | 	   Red Hat 6.2 doesn't understand the southern hemisphere | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15510 | 	   after New Year's Day. | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15511 | 	*/ | 
 | 15512 |  | 
| Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15513 | 	time_t groundhogday = 1044144000; /* GMT-based */ | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15514 | 	time_t midyear = groundhogday + (365 * 24 * 3600 / 2); | 
 | 15515 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15516 | 	putenv("TZ=UTC+0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15517 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15518 | 	if (localtime(&groundhogday)->tm_hour != 0) | 
 | 15519 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15520 | #if HAVE_TZNAME | 
 | 15521 | 	/* For UTC, tzname[1] is sometimes "", sometimes "   " */ | 
 | 15522 | 	if (strcmp(tzname[0], "UTC") || | 
 | 15523 | 		(tzname[1][0] != 0 && tzname[1][0] != ' ')) | 
 | 15524 | 	    exit(1); | 
 | 15525 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15526 |  | 
| Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 15527 | 	putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15528 | 	tzset(); | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15529 | 	if (localtime(&groundhogday)->tm_hour != 19) | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15530 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15531 | #if HAVE_TZNAME | 
 | 15532 | 	if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) | 
 | 15533 | 	    exit(1); | 
 | 15534 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15535 |  | 
 | 15536 | 	putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); | 
 | 15537 | 	tzset(); | 
 | 15538 | 	if (localtime(&groundhogday)->tm_hour != 11) | 
 | 15539 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15540 | #if HAVE_TZNAME | 
 | 15541 | 	if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) | 
 | 15542 | 	    exit(1); | 
 | 15543 | #endif | 
 | 15544 |  | 
 | 15545 | #if HAVE_STRUCT_TM_TM_ZONE | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15546 | 	if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) | 
 | 15547 | 	    exit(1); | 
 | 15548 | 	if (strcmp(localtime(&midyear)->tm_zone, "AEST")) | 
 | 15549 | 	    exit(1); | 
| Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15550 | #endif | 
| Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 15551 |  | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15552 | 	exit(0); | 
 | 15553 | } | 
 | 15554 |  | 
 | 15555 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15556 | if ac_fn_c_try_run "$LINENO"; then : | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15557 |   ac_cv_working_tzset=yes | 
 | 15558 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15559 |   ac_cv_working_tzset=no | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15560 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15561 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 15562 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15563 | fi | 
 | 15564 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15565 | fi | 
 | 15566 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 | 
 | 15568 | $as_echo "$ac_cv_working_tzset" >&6; } | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15569 | if test "$ac_cv_working_tzset" = yes | 
 | 15570 | then | 
 | 15571 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15572 | $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h | 
| Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 15573 |  | 
 | 15574 | fi | 
 | 15575 |  | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15576 | # Look for subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 | 
 | 15578 | $as_echo_n "checking for tv_nsec in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15579 | if ${ac_cv_stat_tv_nsec+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15580 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15581 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15582 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15583 | /* end confdefs.h.  */ | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15584 | #include <sys/stat.h> | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15585 | int | 
 | 15586 | main () | 
 | 15587 | { | 
 | 15588 |  | 
 | 15589 | struct stat st; | 
 | 15590 | st.st_mtim.tv_nsec = 1; | 
 | 15591 |  | 
 | 15592 |   ; | 
 | 15593 |   return 0; | 
 | 15594 | } | 
 | 15595 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15596 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 15597 |   ac_cv_stat_tv_nsec=yes | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15598 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15599 |   ac_cv_stat_tv_nsec=no | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15600 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15602 | fi | 
 | 15603 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 | 
 | 15605 | $as_echo "$ac_cv_stat_tv_nsec" >&6; } | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15606 | if test "$ac_cv_stat_tv_nsec" = yes | 
 | 15607 | then | 
 | 15608 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15609 | $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h | 
| Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 15610 |  | 
 | 15611 | fi | 
 | 15612 |  | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15613 | # Look for BSD style subsecond timestamps in struct stat | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 | 
 | 15615 | $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15616 | if ${ac_cv_stat_tv_nsec2+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15617 |   $as_echo_n "(cached) " >&6 | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15618 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15619 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15620 | /* end confdefs.h.  */ | 
 | 15621 | #include <sys/stat.h> | 
 | 15622 | int | 
 | 15623 | main () | 
 | 15624 | { | 
 | 15625 |  | 
 | 15626 | struct stat st; | 
 | 15627 | st.st_mtimespec.tv_nsec = 1; | 
 | 15628 |  | 
 | 15629 |   ; | 
 | 15630 |   return 0; | 
 | 15631 | } | 
 | 15632 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15633 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15634 |   ac_cv_stat_tv_nsec2=yes | 
 | 15635 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15636 |   ac_cv_stat_tv_nsec2=no | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15637 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15639 | fi | 
 | 15640 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 | 
 | 15642 | $as_echo "$ac_cv_stat_tv_nsec2" >&6; } | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15643 | if test "$ac_cv_stat_tv_nsec2" = yes | 
 | 15644 | then | 
 | 15645 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15646 | $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h | 
| Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 15647 |  | 
 | 15648 | fi | 
 | 15649 |  | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15650 | # first curses header check | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 15651 | ac_save_cppflags="$CPPFLAGS" | 
| Xavier de Gaye | e13c320 | 2016-12-13 16:04:14 +0100 | [diff] [blame] | 15652 | if test "$cross_compiling" = no; then | 
 | 15653 |   CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | 
 | 15654 | fi | 
| doko@ubuntu.com | 1a4f561 | 2014-04-17 20:13:44 +0200 | [diff] [blame] | 15655 |  | 
 | 15656 | for ac_header in curses.h ncurses.h | 
 | 15657 | do : | 
 | 15658 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 15659 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
 | 15660 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
 | 15661 |   cat >>confdefs.h <<_ACEOF | 
 | 15662 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 15663 | _ACEOF | 
 | 15664 |  | 
 | 15665 | fi | 
 | 15666 |  | 
 | 15667 | done | 
 | 15668 |  | 
 | 15669 |  | 
 | 15670 | # On Solaris, term.h requires curses.h | 
 | 15671 | for ac_header in term.h | 
 | 15672 | do : | 
 | 15673 |   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " | 
 | 15674 | #ifdef HAVE_CURSES_H | 
 | 15675 | #include <curses.h> | 
 | 15676 | #endif | 
 | 15677 |  | 
 | 15678 | " | 
 | 15679 | if test "x$ac_cv_header_term_h" = xyes; then : | 
 | 15680 |   cat >>confdefs.h <<_ACEOF | 
 | 15681 | #define HAVE_TERM_H 1 | 
 | 15682 | _ACEOF | 
 | 15683 |  | 
 | 15684 | fi | 
 | 15685 |  | 
 | 15686 | done | 
 | 15687 |  | 
 | 15688 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15689 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 | 
 | 15691 | $as_echo_n "checking whether mvwdelch is an expression... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15692 | if ${ac_cv_mvwdelch_is_expression+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15693 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15694 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15695 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15696 | /* end confdefs.h.  */ | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15697 | #include <curses.h> | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15698 | int | 
 | 15699 | main () | 
 | 15700 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15701 |  | 
 | 15702 |   int rtn; | 
 | 15703 |   rtn = mvwdelch(0,0,0); | 
 | 15704 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15705 |   ; | 
 | 15706 |   return 0; | 
 | 15707 | } | 
 | 15708 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15709 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15710 |   ac_cv_mvwdelch_is_expression=yes | 
 | 15711 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15712 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15713 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15715 | fi | 
 | 15716 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 | 
 | 15718 | $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15719 |  | 
 | 15720 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 15721 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15722 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15723 | $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15724 |  | 
 | 15725 | fi | 
 | 15726 |  | 
| Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 15727 | # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque | 
 | 15728 | # structs since version 5.7.  If the macro is defined as zero before including | 
 | 15729 | # [n]curses.h, ncurses will expose fields of the structs regardless of the | 
 | 15730 | # configuration. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 | 
 | 15732 | $as_echo_n "checking whether WINDOW has _flags... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 15733 | if ${ac_cv_window_has_flags+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15734 |   $as_echo_n "(cached) " >&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15735 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15736 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15737 | /* end confdefs.h.  */ | 
| Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 15738 |  | 
 | 15739 |   #define NCURSES_OPAQUE 0 | 
 | 15740 |   #include <curses.h> | 
 | 15741 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15742 | int | 
 | 15743 | main () | 
 | 15744 | { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15745 |  | 
 | 15746 |   WINDOW *w; | 
 | 15747 |   w->_flags = 0; | 
 | 15748 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 |   ; | 
 | 15750 |   return 0; | 
 | 15751 | } | 
 | 15752 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15753 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15754 |   ac_cv_window_has_flags=yes | 
 | 15755 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15756 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15757 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15759 | fi | 
 | 15760 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 | 
 | 15762 | $as_echo "$ac_cv_window_has_flags" >&6; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15763 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15764 |  | 
 | 15765 | if test "$ac_cv_window_has_flags" = yes | 
 | 15766 | then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15767 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15768 | $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15769 |  | 
 | 15770 | fi | 
 | 15771 |  | 
| Masayuki Yamamoto | 8bc7d63 | 2017-11-01 21:05:26 +0900 | [diff] [blame] | 15772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 | 
 | 15773 | $as_echo_n "checking for is_pad... " >&6; } | 
 | 15774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15775 | /* end confdefs.h.  */ | 
 | 15776 | #include <curses.h> | 
 | 15777 | int | 
 | 15778 | main () | 
 | 15779 | { | 
 | 15780 |  | 
 | 15781 | #ifndef is_pad | 
 | 15782 | void *x=is_pad | 
 | 15783 | #endif | 
 | 15784 |  | 
 | 15785 |   ; | 
 | 15786 |   return 0; | 
 | 15787 | } | 
 | 15788 | _ACEOF | 
 | 15789 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 15790 |  | 
 | 15791 | $as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h | 
 | 15792 |  | 
 | 15793 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 15794 | $as_echo "yes" >&6; } | 
 | 15795 | else | 
 | 15796 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15797 | $as_echo "no" >&6; } | 
 | 15798 |  | 
 | 15799 | fi | 
 | 15800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15801 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 | 
 | 15803 | $as_echo_n "checking for is_term_resized... " >&6; } | 
 | 15804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15805 | /* end confdefs.h.  */ | 
 | 15806 | #include <curses.h> | 
 | 15807 | int | 
 | 15808 | main () | 
 | 15809 | { | 
 | 15810 | void *x=is_term_resized | 
 | 15811 |   ; | 
 | 15812 |   return 0; | 
 | 15813 | } | 
 | 15814 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15815 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 15816 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15817 | $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15818 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15819 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15820 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15821 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15822 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15823 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15824 |  | 
 | 15825 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15827 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 | 
 | 15829 | $as_echo_n "checking for resize_term... " >&6; } | 
 | 15830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15831 | /* end confdefs.h.  */ | 
 | 15832 | #include <curses.h> | 
 | 15833 | int | 
 | 15834 | main () | 
 | 15835 | { | 
 | 15836 | void *x=resize_term | 
 | 15837 |   ; | 
 | 15838 |   return 0; | 
 | 15839 | } | 
 | 15840 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15841 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15842 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15843 | $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15844 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15845 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15846 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15847 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15848 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15849 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15850 |  | 
 | 15851 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15853 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 | 
 | 15855 | $as_echo_n "checking for resizeterm... " >&6; } | 
 | 15856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15857 | /* end confdefs.h.  */ | 
 | 15858 | #include <curses.h> | 
 | 15859 | int | 
 | 15860 | main () | 
 | 15861 | { | 
 | 15862 | void *x=resizeterm | 
 | 15863 |   ; | 
 | 15864 |   return 0; | 
 | 15865 | } | 
 | 15866 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15867 | if ac_fn_c_try_compile "$LINENO"; then : | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15868 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15869 | $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15870 |  | 
| Matthias Klose | b159a55 | 2010-04-25 21:00:44 +0000 | [diff] [blame] | 15871 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15872 | $as_echo "yes" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15873 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 15874 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15875 | $as_echo "no" >&6; } | 
| Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15876 |  | 
 | 15877 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 15879 |  | 
 | 15880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 | 
 | 15881 | $as_echo_n "checking for immedok... " >&6; } | 
 | 15882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15883 | /* end confdefs.h.  */ | 
 | 15884 | #include <curses.h> | 
 | 15885 | int | 
 | 15886 | main () | 
 | 15887 | { | 
 | 15888 |  | 
 | 15889 | #ifndef immedok | 
 | 15890 | void *x=immedok | 
 | 15891 | #endif | 
 | 15892 |  | 
 | 15893 |   ; | 
 | 15894 |   return 0; | 
 | 15895 | } | 
 | 15896 | _ACEOF | 
 | 15897 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 15898 |  | 
 | 15899 | $as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h | 
 | 15900 |  | 
 | 15901 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 15902 | $as_echo "yes" >&6; } | 
 | 15903 | else | 
 | 15904 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15905 | $as_echo "no" >&6; } | 
 | 15906 |  | 
 | 15907 | fi | 
 | 15908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15909 |  | 
 | 15910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 | 
 | 15911 | $as_echo_n "checking for syncok... " >&6; } | 
 | 15912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15913 | /* end confdefs.h.  */ | 
 | 15914 | #include <curses.h> | 
 | 15915 | int | 
 | 15916 | main () | 
 | 15917 | { | 
 | 15918 |  | 
 | 15919 | #ifndef syncok | 
 | 15920 | void *x=syncok | 
 | 15921 | #endif | 
 | 15922 |  | 
 | 15923 |   ; | 
 | 15924 |   return 0; | 
 | 15925 | } | 
 | 15926 | _ACEOF | 
 | 15927 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 15928 |  | 
 | 15929 | $as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h | 
 | 15930 |  | 
 | 15931 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 15932 | $as_echo "yes" >&6; } | 
 | 15933 | else | 
 | 15934 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15935 | $as_echo "no" >&6; } | 
 | 15936 |  | 
 | 15937 | fi | 
 | 15938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15939 |  | 
| Serhiy Storchaka | 894ebd0 | 2017-11-01 14:34:20 +0200 | [diff] [blame] | 15940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 | 
 | 15941 | $as_echo_n "checking for wchgat... " >&6; } | 
 | 15942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15943 | /* end confdefs.h.  */ | 
 | 15944 | #include <curses.h> | 
 | 15945 | int | 
 | 15946 | main () | 
 | 15947 | { | 
 | 15948 |  | 
 | 15949 | #ifndef wchgat | 
 | 15950 | void *x=wchgat | 
 | 15951 | #endif | 
 | 15952 |  | 
 | 15953 |   ; | 
 | 15954 |   return 0; | 
 | 15955 | } | 
 | 15956 | _ACEOF | 
 | 15957 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 15958 |  | 
 | 15959 | $as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h | 
 | 15960 |  | 
 | 15961 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 15962 | $as_echo "yes" >&6; } | 
 | 15963 | else | 
 | 15964 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15965 | $as_echo "no" >&6; } | 
 | 15966 |  | 
 | 15967 | fi | 
 | 15968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15969 |  | 
| Serhiy Storchaka | baac01e | 2017-10-31 13:56:44 +0200 | [diff] [blame] | 15970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 | 
 | 15971 | $as_echo_n "checking for filter... " >&6; } | 
 | 15972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 15973 | /* end confdefs.h.  */ | 
 | 15974 | #include <curses.h> | 
 | 15975 | int | 
 | 15976 | main () | 
 | 15977 | { | 
 | 15978 |  | 
 | 15979 | #ifndef filter | 
 | 15980 | void *x=filter | 
 | 15981 | #endif | 
 | 15982 |  | 
 | 15983 |   ; | 
 | 15984 |   return 0; | 
 | 15985 | } | 
 | 15986 | _ACEOF | 
 | 15987 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 15988 |  | 
 | 15989 | $as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h | 
 | 15990 |  | 
 | 15991 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 15992 | $as_echo "yes" >&6; } | 
 | 15993 | else | 
 | 15994 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 15995 | $as_echo "no" >&6; } | 
 | 15996 |  | 
 | 15997 | fi | 
 | 15998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 15999 |  | 
 | 16000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 | 
 | 16001 | $as_echo_n "checking for has_key... " >&6; } | 
 | 16002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16003 | /* end confdefs.h.  */ | 
 | 16004 | #include <curses.h> | 
 | 16005 | int | 
 | 16006 | main () | 
 | 16007 | { | 
 | 16008 |  | 
 | 16009 | #ifndef has_key | 
 | 16010 | void *x=has_key | 
 | 16011 | #endif | 
 | 16012 |  | 
 | 16013 |   ; | 
 | 16014 |   return 0; | 
 | 16015 | } | 
 | 16016 | _ACEOF | 
 | 16017 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 16018 |  | 
 | 16019 | $as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h | 
 | 16020 |  | 
 | 16021 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 16022 | $as_echo "yes" >&6; } | 
 | 16023 | else | 
 | 16024 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 16025 | $as_echo "no" >&6; } | 
 | 16026 |  | 
 | 16027 | fi | 
 | 16028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 16029 |  | 
 | 16030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 | 
 | 16031 | $as_echo_n "checking for typeahead... " >&6; } | 
 | 16032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16033 | /* end confdefs.h.  */ | 
 | 16034 | #include <curses.h> | 
 | 16035 | int | 
 | 16036 | main () | 
 | 16037 | { | 
 | 16038 |  | 
 | 16039 | #ifndef typeahead | 
 | 16040 | void *x=typeahead | 
 | 16041 | #endif | 
 | 16042 |  | 
 | 16043 |   ; | 
 | 16044 |   return 0; | 
 | 16045 | } | 
 | 16046 | _ACEOF | 
 | 16047 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 16048 |  | 
 | 16049 | $as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h | 
 | 16050 |  | 
 | 16051 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 16052 | $as_echo "yes" >&6; } | 
 | 16053 | else | 
 | 16054 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 16055 | $as_echo "no" >&6; } | 
 | 16056 |  | 
 | 16057 | fi | 
 | 16058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 16059 |  | 
 | 16060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 | 
 | 16061 | $as_echo_n "checking for use_env... " >&6; } | 
 | 16062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16063 | /* end confdefs.h.  */ | 
 | 16064 | #include <curses.h> | 
 | 16065 | int | 
 | 16066 | main () | 
 | 16067 | { | 
 | 16068 |  | 
 | 16069 | #ifndef use_env | 
 | 16070 | void *x=use_env | 
 | 16071 | #endif | 
 | 16072 |  | 
 | 16073 |   ; | 
 | 16074 |   return 0; | 
 | 16075 | } | 
 | 16076 | _ACEOF | 
 | 16077 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 16078 |  | 
 | 16079 | $as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h | 
 | 16080 |  | 
 | 16081 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 16082 | $as_echo "yes" >&6; } | 
 | 16083 | else | 
 | 16084 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 16085 | $as_echo "no" >&6; } | 
 | 16086 |  | 
 | 16087 | fi | 
 | 16088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| doko@ubuntu.com | 9dc823d | 2012-07-07 03:06:42 +0200 | [diff] [blame] | 16089 | # last curses configure check | 
 | 16090 | CPPFLAGS=$ac_save_cppflags | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16091 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 | 
 | 16093 | $as_echo "$as_me: checking for device files" >&6;} | 
 | 16094 |  | 
 | 16095 | if test "x$cross_compiling" = xyes; then | 
 | 16096 |   if test "${ac_cv_file__dev_ptmx+set}" != set; then | 
 | 16097 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 16098 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
 | 16099 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 16100 | $as_echo "not set" >&6; } | 
 | 16101 |     as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 16102 |   fi | 
 | 16103 |   if test "${ac_cv_file__dev_ptc+set}" != set; then | 
 | 16104 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 16105 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
 | 16106 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 
 | 16107 | $as_echo "not set" >&6; } | 
 | 16108 |     as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 | 
 | 16109 |   fi | 
 | 16110 | fi | 
 | 16111 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 | 
 | 16113 | $as_echo_n "checking for /dev/ptmx... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16114 | if ${ac_cv_file__dev_ptmx+:} false; then : | 
 | 16115 |   $as_echo_n "(cached) " >&6 | 
 | 16116 | else | 
 | 16117 |   test "$cross_compiling" = yes && | 
 | 16118 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 16119 | if test -r "/dev/ptmx"; then | 
 | 16120 |   ac_cv_file__dev_ptmx=yes | 
 | 16121 | else | 
 | 16122 |   ac_cv_file__dev_ptmx=no | 
 | 16123 | fi | 
 | 16124 | fi | 
 | 16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 | 
 | 16126 | $as_echo "$ac_cv_file__dev_ptmx" >&6; } | 
 | 16127 | if test "x$ac_cv_file__dev_ptmx" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16128 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16129 | fi | 
 | 16130 |  | 
 | 16131 | if test "x$ac_cv_file__dev_ptmx" = xyes; then | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16132 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16133 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16134 |  | 
| Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16135 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 | 
 | 16137 | $as_echo_n "checking for /dev/ptc... " >&6; } | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16138 | if ${ac_cv_file__dev_ptc+:} false; then : | 
 | 16139 |   $as_echo_n "(cached) " >&6 | 
 | 16140 | else | 
 | 16141 |   test "$cross_compiling" = yes && | 
 | 16142 |   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | 
 | 16143 | if test -r "/dev/ptc"; then | 
 | 16144 |   ac_cv_file__dev_ptc=yes | 
 | 16145 | else | 
 | 16146 |   ac_cv_file__dev_ptc=no | 
 | 16147 | fi | 
 | 16148 | fi | 
 | 16149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 | 
 | 16150 | $as_echo "$ac_cv_file__dev_ptc" >&6; } | 
 | 16151 | if test "x$ac_cv_file__dev_ptc" = xyes; then : | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16152 |  | 
| doko@ubuntu.com | b457b9b | 2012-06-30 19:28:16 +0200 | [diff] [blame] | 16153 | fi | 
 | 16154 |  | 
 | 16155 | if test "x$ac_cv_file__dev_ptc" = xyes; then | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16156 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16157 | $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16158 |  | 
| Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 16159 | fi | 
 | 16160 |  | 
| Ronald Oussoren | 3c1928a | 2009-11-19 17:15:31 +0000 | [diff] [blame] | 16161 | if test $ac_sys_system = Darwin | 
 | 16162 | then | 
 | 16163 | 	LIBS="$LIBS -framework CoreFoundation" | 
 | 16164 | fi | 
| Mark Dickinson | 6ce4a9a | 2009-11-16 17:00:11 +0000 | [diff] [blame] | 16165 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 | 
 | 16167 | $as_echo_n "checking for %zd printf() format support... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16168 | if ${ac_cv_have_size_t_format+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16169 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16170 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16171 |   if test "$cross_compiling" = yes; then : | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16172 |   ac_cv_have_size_t_format="cross -- assuming yes" | 
 | 16173 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16174 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16175 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16176 | /* end confdefs.h.  */ | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16177 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16178 | #include <stdio.h> | 
 | 16179 | #include <stddef.h> | 
 | 16180 | #include <string.h> | 
 | 16181 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16182 | #ifdef HAVE_SYS_TYPES_H | 
 | 16183 | #include <sys/types.h> | 
 | 16184 | #endif | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16185 |  | 
 | 16186 | #ifdef HAVE_SSIZE_T | 
 | 16187 | typedef ssize_t Py_ssize_t; | 
 | 16188 | #elif SIZEOF_VOID_P == SIZEOF_LONG | 
 | 16189 | typedef long Py_ssize_t; | 
 | 16190 | #else | 
 | 16191 | typedef int Py_ssize_t; | 
 | 16192 | #endif | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16193 |  | 
| Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 16194 | int main() | 
 | 16195 | { | 
 | 16196 |     char buffer[256]; | 
 | 16197 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16198 |     if(sprintf(buffer, "%zd", (size_t)123) < 0) | 
 | 16199 |        	return 1; | 
 | 16200 |  | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16201 |     if (strcmp(buffer, "123")) | 
 | 16202 | 	return 1; | 
 | 16203 |  | 
 | 16204 |     if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) | 
 | 16205 |        	return 1; | 
 | 16206 |  | 
 | 16207 |     if (strcmp(buffer, "-123")) | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16208 | 	return 1; | 
 | 16209 |  | 
 | 16210 |     return 0; | 
 | 16211 | } | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16212 |  | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16213 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16214 | if ac_fn_c_try_run "$LINENO"; then : | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16215 |   ac_cv_have_size_t_format=yes | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16216 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16217 |   ac_cv_have_size_t_format=no | 
| Alexandre Vassalotti | 1914228 | 2009-07-17 23:11:52 +0000 | [diff] [blame] | 16218 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16219 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16220 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Alexandre Vassalotti | 302825b | 2009-07-17 07:49:53 +0000 | [diff] [blame] | 16221 | fi | 
 | 16222 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16223 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 | 
 | 16225 | $as_echo "$ac_cv_have_size_t_format" >&6; } | 
| Benjamin Peterson | 8f326b2 | 2009-12-13 02:10:36 +0000 | [diff] [blame] | 16226 | if test "$ac_cv_have_size_t_format" != no ; then | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16227 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16228 | $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16229 |  | 
 | 16230 | fi | 
 | 16231 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16232 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16233 | #ifdef HAVE_SYS_TYPES_H | 
 | 16234 | #include <sys/types.h> | 
 | 16235 | #endif | 
 | 16236 | #ifdef HAVE_SYS_SOCKET_H | 
 | 16237 | #include <sys/socket.h> | 
 | 16238 | #endif | 
 | 16239 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16240 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16241 | if test "x$ac_cv_type_socklen_t" = xyes; then : | 
| Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16242 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16243 | else | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16244 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16245 | $as_echo "#define socklen_t int" >>confdefs.h | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16246 |  | 
 | 16247 | fi | 
 | 16248 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16249 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 | 
 | 16251 | $as_echo_n "checking for broken mbstowcs... " >&6; } | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16252 | if ${ac_cv_broken_mbstowcs+:} false; then : | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16253 |   $as_echo_n "(cached) " >&6 | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16254 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16255 |   if test "$cross_compiling" = yes; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16256 |   ac_cv_broken_mbstowcs=no | 
 | 16257 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16258 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16259 | /* end confdefs.h.  */ | 
 | 16260 |  | 
| Stefan Krah | 19c2139 | 2012-11-22 23:47:32 +0100 | [diff] [blame] | 16261 | #include <stdio.h> | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16262 | #include<stdlib.h> | 
 | 16263 | int main() { | 
 | 16264 |     size_t len = -1; | 
 | 16265 |     const char *str = "text"; | 
 | 16266 |     len = mbstowcs(NULL, str, 0); | 
 | 16267 |     return (len != 4); | 
 | 16268 | } | 
 | 16269 |  | 
 | 16270 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16271 | if ac_fn_c_try_run "$LINENO"; then : | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16272 |   ac_cv_broken_mbstowcs=no | 
 | 16273 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16274 |   ac_cv_broken_mbstowcs=yes | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16275 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16276 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16277 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16278 | fi | 
 | 16279 |  | 
| Alexandre Vassalotti | b0a61d7 | 2009-07-17 23:19:37 +0000 | [diff] [blame] | 16280 | fi | 
 | 16281 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 | 
 | 16283 | $as_echo "$ac_cv_broken_mbstowcs" >&6; } | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16284 | if test "$ac_cv_broken_mbstowcs" = yes | 
 | 16285 | then | 
 | 16286 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16287 | $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h | 
| Antoine Pitrou | fff9530 | 2008-09-03 18:58:51 +0000 | [diff] [blame] | 16288 |  | 
 | 16289 | fi | 
 | 16290 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16291 | # Check for --with-computed-gotos | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 | 
 | 16293 | $as_echo_n "checking for --with-computed-gotos... " >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16294 |  | 
 | 16295 | # Check whether --with-computed-gotos was given. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16296 | if test "${with_computed_gotos+set}" = set; then : | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16297 |   withval=$with_computed_gotos; | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16298 | if test "$withval" = yes | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16299 | then | 
 | 16300 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16301 | $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16302 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16303 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 16304 | $as_echo "yes" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16305 | fi | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16306 | if test "$withval" = no | 
 | 16307 | then | 
 | 16308 |  | 
 | 16309 | $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h | 
 | 16310 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16311 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 16312 | $as_echo "no" >&6; } | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16313 | fi | 
 | 16314 |  | 
| Antoine Pitrou | 042b128 | 2010-08-13 21:15:58 +0000 | [diff] [blame] | 16315 | else | 
 | 16316 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 | 
 | 16317 | $as_echo "no value specified" >&6; } | 
 | 16318 | fi | 
 | 16319 |  | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16320 |  | 
| Matthias Klose | b17289e | 2012-03-15 19:51:34 +0100 | [diff] [blame] | 16321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 | 
 | 16322 | $as_echo_n "checking whether $CC supports computed gotos... " >&6; } | 
 | 16323 | if ${ac_cv_computed_gotos+:} false; then : | 
 | 16324 |   $as_echo_n "(cached) " >&6 | 
 | 16325 | else | 
 | 16326 |   if test "$cross_compiling" = yes; then : | 
 | 16327 |   if test "${with_computed_gotos+set}" = set; then | 
 | 16328 |    ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" | 
 | 16329 |  else | 
 | 16330 |    ac_cv_computed_gotos=no | 
 | 16331 |  fi | 
 | 16332 | else | 
 | 16333 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16334 | /* end confdefs.h.  */ | 
 | 16335 |  | 
 | 16336 | int main(int argc, char **argv) | 
 | 16337 | { | 
 | 16338 |     static void *targets[1] = { &&LABEL1 }; | 
 | 16339 |     goto LABEL2; | 
 | 16340 | LABEL1: | 
 | 16341 |     return 0; | 
 | 16342 | LABEL2: | 
 | 16343 |     goto *targets[0]; | 
 | 16344 |     return 1; | 
 | 16345 | } | 
 | 16346 |  | 
 | 16347 | _ACEOF | 
 | 16348 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16349 |   ac_cv_computed_gotos=yes | 
 | 16350 | else | 
 | 16351 |   ac_cv_computed_gotos=no | 
 | 16352 | fi | 
 | 16353 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16354 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16355 | fi | 
 | 16356 |  | 
 | 16357 | fi | 
 | 16358 |  | 
 | 16359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 | 
 | 16360 | $as_echo "$ac_cv_computed_gotos" >&6; } | 
 | 16361 | case "$ac_cv_computed_gotos" in yes*) | 
 | 16362 |  | 
 | 16363 | $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h | 
 | 16364 |  | 
 | 16365 | esac | 
 | 16366 |  | 
| Benjamin Peterson | d8d835b | 2010-10-15 23:14:46 +0000 | [diff] [blame] | 16367 | case $ac_sys_system in | 
 | 16368 | AIX*) | 
 | 16369 |  | 
 | 16370 | $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h | 
 | 16371 |  ;; | 
 | 16372 | esac | 
| Antoine Pitrou | b52ec78 | 2009-01-25 16:34:23 +0000 | [diff] [blame] | 16373 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16374 |  | 
| Mark Dickinson | b2153e9 | 2010-05-05 22:31:36 +0000 | [diff] [blame] | 16375 |  | 
 | 16376 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16377 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 16378 | do | 
 | 16379 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 16380 | done | 
 | 16381 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16382 |  | 
| Alex Dzyoba | 8a543c0 | 2017-03-24 11:23:43 +0300 | [diff] [blame] | 16383 | SRCDIRS="Parser Objects Python Modules Programs" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 | 
 | 16385 | $as_echo_n "checking for build directories... " >&6; } | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16386 | for dir in $SRCDIRS; do | 
 | 16387 |     if test ! -d $dir; then | 
 | 16388 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16389 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16390 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | 
 | 16392 | $as_echo "done" >&6; } | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16393 |  | 
| Stefan Krah | 1919b7e | 2012-03-21 18:25:23 +0100 | [diff] [blame] | 16394 | # Availability of -O2: | 
 | 16395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 | 
 | 16396 | $as_echo_n "checking for -O2... " >&6; } | 
 | 16397 | saved_cflags="$CFLAGS" | 
 | 16398 | CFLAGS="-O2" | 
 | 16399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16400 | /* end confdefs.h.  */ | 
 | 16401 |  | 
 | 16402 | int | 
 | 16403 | main () | 
 | 16404 | { | 
 | 16405 |  | 
 | 16406 |  | 
 | 16407 |   ; | 
 | 16408 |   return 0; | 
 | 16409 | } | 
 | 16410 | _ACEOF | 
 | 16411 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 16412 |   have_O2=yes | 
 | 16413 | else | 
 | 16414 |   have_O2=no | 
 | 16415 | fi | 
 | 16416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 16417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 | 
 | 16418 | $as_echo "$have_O2" >&6; } | 
 | 16419 | CFLAGS="$saved_cflags" | 
 | 16420 |  | 
 | 16421 | # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: | 
 | 16422 | # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html | 
 | 16423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 | 
 | 16424 | $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } | 
 | 16425 | saved_cflags="$CFLAGS" | 
 | 16426 | CFLAGS="-O2 -D_FORTIFY_SOURCE=2" | 
 | 16427 | if test "$have_O2" = no; then | 
 | 16428 |     CFLAGS="" | 
 | 16429 | fi | 
 | 16430 | if test "$cross_compiling" = yes; then : | 
 | 16431 |   have_glibc_memmove_bug=undefined | 
 | 16432 | else | 
 | 16433 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16434 | /* end confdefs.h.  */ | 
 | 16435 |  | 
 | 16436 | #include <stdio.h> | 
 | 16437 | #include <stdlib.h> | 
 | 16438 | #include <string.h> | 
 | 16439 | void foo(void *p, void *q) { memmove(p, q, 19); } | 
 | 16440 | int main() { | 
 | 16441 |   char a[32] = "123456789000000000"; | 
 | 16442 |   foo(&a[9], a); | 
 | 16443 |   if (strcmp(a, "123456789123456789000000000") != 0) | 
 | 16444 |     return 1; | 
 | 16445 |   foo(a, &a[9]); | 
 | 16446 |   if (strcmp(a, "123456789000000000") != 0) | 
 | 16447 |     return 1; | 
 | 16448 |   return 0; | 
 | 16449 | } | 
 | 16450 |  | 
 | 16451 | _ACEOF | 
 | 16452 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16453 |   have_glibc_memmove_bug=no | 
 | 16454 | else | 
 | 16455 |   have_glibc_memmove_bug=yes | 
 | 16456 | fi | 
 | 16457 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16458 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16459 | fi | 
 | 16460 |  | 
 | 16461 | CFLAGS="$saved_cflags" | 
 | 16462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 | 
 | 16463 | $as_echo "$have_glibc_memmove_bug" >&6; } | 
 | 16464 | if test "$have_glibc_memmove_bug" = yes; then | 
 | 16465 |  | 
 | 16466 | $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h | 
 | 16467 |  | 
 | 16468 | fi | 
 | 16469 |  | 
 | 16470 | if test "$have_gcc_asm_for_x87" = yes; then | 
 | 16471 |     # Some versions of gcc miscompile inline asm: | 
 | 16472 |     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 
 | 16473 |     # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 
 | 16474 |     case $CC in | 
 | 16475 |         *gcc*) | 
 | 16476 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 | 
 | 16477 | $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } | 
 | 16478 |             saved_cflags="$CFLAGS" | 
 | 16479 |             CFLAGS="-O2" | 
 | 16480 |             if test "$cross_compiling" = yes; then : | 
 | 16481 |   have_ipa_pure_const_bug=undefined | 
 | 16482 | else | 
 | 16483 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16484 | /* end confdefs.h.  */ | 
 | 16485 |  | 
 | 16486 |             __attribute__((noinline)) int | 
 | 16487 |             foo(int *p) { | 
 | 16488 |               int r; | 
 | 16489 |               asm ( "movl \$6, (%1)\n\t" | 
 | 16490 |                     "xorl %0, %0\n\t" | 
 | 16491 |                     : "=r" (r) : "r" (p) : "memory" | 
 | 16492 |               ); | 
 | 16493 |               return r; | 
 | 16494 |             } | 
 | 16495 |             int main() { | 
 | 16496 |               int p = 8; | 
 | 16497 |               if ((foo(&p) ? : p) != 6) | 
 | 16498 |                 return 1; | 
 | 16499 |               return 0; | 
 | 16500 |             } | 
 | 16501 |  | 
 | 16502 | _ACEOF | 
 | 16503 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 16504 |   have_ipa_pure_const_bug=no | 
 | 16505 | else | 
 | 16506 |   have_ipa_pure_const_bug=yes | 
 | 16507 | fi | 
 | 16508 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 16509 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 16510 | fi | 
 | 16511 |  | 
 | 16512 |             CFLAGS="$saved_cflags" | 
 | 16513 |             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 | 
 | 16514 | $as_echo "$have_ipa_pure_const_bug" >&6; } | 
 | 16515 |             if test "$have_ipa_pure_const_bug" = yes; then | 
 | 16516 |  | 
 | 16517 | $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h | 
 | 16518 |  | 
 | 16519 |             fi | 
 | 16520 |         ;; | 
 | 16521 |     esac | 
 | 16522 | fi | 
 | 16523 |  | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16524 | # Check for stdatomic.h | 
 | 16525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 | 
 | 16526 | $as_echo_n "checking for stdatomic.h... " >&6; } | 
 | 16527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16528 | /* end confdefs.h.  */ | 
 | 16529 |  | 
 | 16530 |  | 
 | 16531 |     #include <stdatomic.h> | 
| Victor Stinner | 923e06f | 2015-01-14 16:01:46 +0100 | [diff] [blame] | 16532 |     atomic_int value = ATOMIC_VAR_INIT(1); | 
 | 16533 |     _Atomic void *py_atomic_address = (void*) &value; | 
| Victor Stinner | 4f5366e | 2015-01-09 02:13:19 +0100 | [diff] [blame] | 16534 |     int main() { | 
 | 16535 |       int loaded_value = atomic_load(&value); | 
 | 16536 |       return 0; | 
 | 16537 |     } | 
 | 16538 |  | 
 | 16539 |  | 
 | 16540 | _ACEOF | 
 | 16541 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16542 |   have_stdatomic_h=yes | 
 | 16543 | else | 
 | 16544 |   have_stdatomic_h=no | 
 | 16545 | fi | 
 | 16546 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16547 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16548 |  | 
 | 16549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 | 
 | 16550 | $as_echo "$have_stdatomic_h" >&6; } | 
 | 16551 |  | 
 | 16552 | if test "$have_stdatomic_h" = yes; then | 
 | 16553 |  | 
 | 16554 | $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h | 
 | 16555 |  | 
 | 16556 | fi | 
 | 16557 |  | 
 | 16558 | # Check for GCC >= 4.7 __atomic builtins | 
 | 16559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 | 
 | 16560 | $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } | 
 | 16561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16562 | /* end confdefs.h.  */ | 
 | 16563 |  | 
 | 16564 |  | 
 | 16565 |     volatile int val = 1; | 
 | 16566 |     int main() { | 
 | 16567 |       __atomic_load_n(&val, __ATOMIC_SEQ_CST); | 
 | 16568 |       return 0; | 
 | 16569 |     } | 
 | 16570 |  | 
 | 16571 |  | 
 | 16572 | _ACEOF | 
 | 16573 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16574 |   have_builtin_atomic=yes | 
 | 16575 | else | 
 | 16576 |   have_builtin_atomic=no | 
 | 16577 | fi | 
 | 16578 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16579 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16580 |  | 
 | 16581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 | 
 | 16582 | $as_echo "$have_builtin_atomic" >&6; } | 
 | 16583 |  | 
 | 16584 | if test "$have_builtin_atomic" = yes; then | 
 | 16585 |  | 
 | 16586 | $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h | 
 | 16587 |  | 
 | 16588 | fi | 
 | 16589 |  | 
| Ned Deily | 322f5ba | 2013-11-21 23:01:59 -0800 | [diff] [blame] | 16590 | # ensurepip option | 
 | 16591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 | 
 | 16592 | $as_echo_n "checking for ensurepip... " >&6; } | 
 | 16593 |  | 
 | 16594 | # Check whether --with-ensurepip was given. | 
 | 16595 | if test "${with_ensurepip+set}" = set; then : | 
 | 16596 |   withval=$with_ensurepip; | 
 | 16597 | else | 
 | 16598 |   with_ensurepip=upgrade | 
 | 16599 | fi | 
 | 16600 |  | 
 | 16601 | case $with_ensurepip in #( | 
 | 16602 |   yes|upgrade) : | 
 | 16603 |     ENSUREPIP=upgrade ;; #( | 
 | 16604 |   install) : | 
 | 16605 |     ENSUREPIP=install ;; #( | 
 | 16606 |   no) : | 
 | 16607 |     ENSUREPIP=no ;; #( | 
 | 16608 |   *) : | 
 | 16609 |     as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; | 
 | 16610 | esac | 
 | 16611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 | 
 | 16612 | $as_echo "$ENSUREPIP" >&6; } | 
 | 16613 |  | 
 | 16614 |  | 
| Victor Stinner | 35a97c0 | 2015-03-08 02:59:09 +0100 | [diff] [blame] | 16615 | # check if the dirent structure of a d_type field and DT_UNKNOWN is defined | 
 | 16616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 | 
 | 16617 | $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } | 
 | 16618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16619 | /* end confdefs.h.  */ | 
 | 16620 |  | 
 | 16621 |  | 
 | 16622 |     #include <dirent.h> | 
 | 16623 |  | 
 | 16624 |     int main() { | 
 | 16625 |       struct dirent entry; | 
 | 16626 |       return entry.d_type == DT_UNKNOWN; | 
 | 16627 |     } | 
 | 16628 |  | 
 | 16629 |  | 
 | 16630 | _ACEOF | 
 | 16631 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16632 |   have_dirent_d_type=yes | 
 | 16633 | else | 
 | 16634 |   have_dirent_d_type=no | 
 | 16635 | fi | 
 | 16636 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16637 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 | 
 | 16639 | $as_echo "$have_dirent_d_type" >&6; } | 
 | 16640 |  | 
 | 16641 | if test "$have_dirent_d_type" = yes; then | 
 | 16642 |  | 
 | 16643 | $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h | 
 | 16644 |  | 
 | 16645 | fi | 
 | 16646 |  | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16647 | # check if the Linux getrandom() syscall is available | 
 | 16648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 | 
 | 16649 | $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } | 
 | 16650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16651 | /* end confdefs.h.  */ | 
 | 16652 |  | 
 | 16653 |  | 
| Victor Stinner | 1b80b24 | 2016-04-12 22:34:58 +0200 | [diff] [blame] | 16654 |     #include <unistd.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16655 |     #include <sys/syscall.h> | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16656 |     #include <linux/random.h> | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16657 |  | 
 | 16658 |     int main() { | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16659 |         char buffer[1]; | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16660 |         const size_t buflen = sizeof(buffer); | 
| Victor Stinner | dddf484 | 2016-06-07 11:21:42 +0200 | [diff] [blame] | 16661 |         const int flags = GRND_NONBLOCK; | 
 | 16662 |         /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16663 |         (void)syscall(SYS_getrandom, buffer, buflen, flags); | 
| Victor Stinner | 9eb57c5 | 2015-03-19 22:21:49 +0100 | [diff] [blame] | 16664 |         return 0; | 
 | 16665 |     } | 
 | 16666 |  | 
 | 16667 |  | 
 | 16668 | _ACEOF | 
 | 16669 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16670 |   have_getrandom_syscall=yes | 
 | 16671 | else | 
 | 16672 |   have_getrandom_syscall=no | 
 | 16673 | fi | 
 | 16674 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16675 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 | 
 | 16677 | $as_echo "$have_getrandom_syscall" >&6; } | 
 | 16678 |  | 
 | 16679 | if test "$have_getrandom_syscall" = yes; then | 
 | 16680 |  | 
 | 16681 | $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h | 
 | 16682 |  | 
 | 16683 | fi | 
 | 16684 |  | 
| Victor Stinner | 3abf44e | 2015-09-18 15:38:37 +0200 | [diff] [blame] | 16685 | # check if the getrandom() function is available | 
 | 16686 | # the test was written for the Solaris function of <sys/random.h> | 
 | 16687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 | 
 | 16688 | $as_echo_n "checking for the getrandom() function... " >&6; } | 
 | 16689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16690 | /* end confdefs.h.  */ | 
 | 16691 |  | 
 | 16692 |  | 
 | 16693 |     #include <sys/random.h> | 
 | 16694 |  | 
 | 16695 |     int main() { | 
 | 16696 |         char buffer[1]; | 
 | 16697 |         const size_t buflen = sizeof(buffer); | 
 | 16698 |         const int flags = 0; | 
 | 16699 |         /* ignore the result, Python checks for ENOSYS at runtime */ | 
 | 16700 |         (void)getrandom(buffer, buflen, flags); | 
 | 16701 |         return 0; | 
 | 16702 |     } | 
 | 16703 |  | 
 | 16704 |  | 
 | 16705 | _ACEOF | 
 | 16706 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16707 |   have_getrandom=yes | 
 | 16708 | else | 
 | 16709 |   have_getrandom=no | 
 | 16710 | fi | 
 | 16711 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16712 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 | 
 | 16714 | $as_echo "$have_getrandom" >&6; } | 
 | 16715 |  | 
 | 16716 | if test "$have_getrandom" = yes; then | 
 | 16717 |  | 
 | 16718 | $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h | 
 | 16719 |  | 
 | 16720 | fi | 
 | 16721 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16722 | # generate output files | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 16723 | ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-config.sh" | 
| Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16724 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 16725 | ac_config_files="$ac_config_files Modules/ld_so_aix" | 
 | 16726 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16727 | cat >confcache <<\_ACEOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16728 | # This file is a shell script that caches the results of configure | 
 | 16729 | # tests run on this system so they can be shared between configure | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16730 | # scripts and configure runs, see configure's option --config-cache. | 
 | 16731 | # It is not useful on other systems.  If it contains results you don't | 
 | 16732 | # want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16733 | # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16734 | # config.status only pays attention to the cache file if you give it | 
 | 16735 | # the --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16736 | # | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16737 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16738 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 16739 | # following values. | 
 | 16740 |  | 
 | 16741 | _ACEOF | 
 | 16742 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16743 | # The following way of writing the cache mishandles newlines in values, | 
 | 16744 | # but we know of no workaround that is simple, portable, and efficient. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16745 | # So, we kill variables containing newlines. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16746 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 16747 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16748 | ( | 
 | 16749 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 16750 |     eval ac_val=\$$ac_var | 
 | 16751 |     case $ac_val in #( | 
 | 16752 |     *${as_nl}*) | 
 | 16753 |       case $ac_var in #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16754 |       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 
 | 16755 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16756 |       esac | 
 | 16757 |       case $ac_var in #( | 
 | 16758 |       _ | IFS | as_nl) ;; #( | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16759 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
 | 16760 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16761 |       esac ;; | 
 | 16762 |     esac | 
 | 16763 |   done | 
 | 16764 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16765 |   (set) 2>&1 | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16766 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 16767 |     *${as_nl}ac_space=\ *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16768 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 16769 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16770 |       sed -n \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16771 | 	"s/'/'\\\\''/g; | 
 | 16772 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16773 |       ;; #( | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16774 |     *) | 
 | 16775 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16776 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16777 |       ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16778 |     esac | | 
 | 16779 |     sort | 
 | 16780 | ) | | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16781 |   sed ' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16782 |      /^ac_cv_env_/b end | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16783 |      t clear | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16784 |      :clear | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16785 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 16786 |      t end | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16787 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 16788 |      :end' >>confcache | 
 | 16789 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 16790 |   if test -w "$cache_file"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16791 |     if test "x$cache_file" != "x/dev/null"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16792 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
 | 16793 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16794 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 16795 | 	cat confcache >"$cache_file" | 
 | 16796 |       else | 
 | 16797 |         case $cache_file in #( | 
 | 16798 |         */* | ?:*) | 
 | 16799 | 	  mv -f confcache "$cache_file"$$ && | 
 | 16800 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 16801 |         *) | 
 | 16802 | 	  mv -f confcache "$cache_file" ;; | 
 | 16803 | 	esac | 
 | 16804 |       fi | 
 | 16805 |     fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16806 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16807 |     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 
 | 16808 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16809 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16810 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16811 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16812 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16813 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 16814 | # Let make expand exec_prefix. | 
 | 16815 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16816 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16817 | DEFS=-DHAVE_CONFIG_H | 
 | 16818 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16819 | ac_libobjs= | 
 | 16820 | ac_ltlibobjs= | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16821 | U= | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16822 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 16823 |   # 1. Remove the extension, and $U if already installed. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16824 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16825 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16826 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 16827 |   #    will be set to the directory where LIBOBJS objects are built. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16828 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 16829 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16830 | done | 
 | 16831 | LIBOBJS=$ac_libobjs | 
 | 16832 |  | 
 | 16833 | LTLIBOBJS=$ac_ltlibobjs | 
 | 16834 |  | 
 | 16835 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16836 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16837 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16838 | : "${CONFIG_STATUS=./config.status}" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16839 | ac_write_fail=0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16840 | ac_clean_files_save=$ac_clean_files | 
 | 16841 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16842 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
 | 16843 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 16844 | as_write_fail=0 | 
 | 16845 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16846 | #! $SHELL | 
 | 16847 | # Generated by $as_me. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16848 | # Run this file to recreate the current configuration. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16849 | # Compiler output produced by configure, useful for debugging | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16850 | # configure, is in config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16851 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16852 | debug=false | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16853 | ac_cs_recheck=false | 
 | 16854 | ac_cs_silent=false | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16855 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16856 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 16857 | export SHELL | 
 | 16858 | _ASEOF | 
 | 16859 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 16860 | ## -------------------- ## | 
 | 16861 | ## M4sh Initialization. ## | 
 | 16862 | ## -------------------- ## | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16863 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16864 | # Be more Bourne compatible | 
 | 16865 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16866 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16867 |   emulate sh | 
 | 16868 |   NULLCMD=: | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16869 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16870 |   # is contrary to our usage.  Disable this feature. | 
 | 16871 |   alias -g '${1+"$@"}'='"$@"' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16872 |   setopt NO_GLOB_SUBST | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 16873 | else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16874 |   case `(set -o) 2>/dev/null` in #( | 
 | 16875 |   *posix*) : | 
 | 16876 |     set -o posix ;; #( | 
 | 16877 |   *) : | 
 | 16878 |      ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16879 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16880 | fi | 
| Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16881 |  | 
 | 16882 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16883 | as_nl=' | 
 | 16884 | ' | 
 | 16885 | export as_nl | 
 | 16886 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 16887 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 16888 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 16889 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 16890 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 16891 | # but without wasting forks for bash or zsh. | 
 | 16892 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 16893 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 16894 |   as_echo='print -r --' | 
 | 16895 |   as_echo_n='print -rn --' | 
 | 16896 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 16897 |   as_echo='printf %s\n' | 
 | 16898 |   as_echo_n='printf %s' | 
 | 16899 | else | 
 | 16900 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 16901 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 16902 |     as_echo_n='/usr/ucb/echo -n' | 
 | 16903 |   else | 
 | 16904 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 16905 |     as_echo_n_body='eval | 
 | 16906 |       arg=$1; | 
 | 16907 |       case $arg in #( | 
 | 16908 |       *"$as_nl"*) | 
 | 16909 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 16910 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 16911 |       esac; | 
 | 16912 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 16913 |     ' | 
 | 16914 |     export as_echo_n_body | 
 | 16915 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 16916 |   fi | 
 | 16917 |   export as_echo_body | 
 | 16918 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 16919 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16920 |  | 
 | 16921 | # The user is always right. | 
 | 16922 | if test "${PATH_SEPARATOR+set}" != set; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16923 |   PATH_SEPARATOR=: | 
 | 16924 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 16925 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 16926 |       PATH_SEPARATOR=';' | 
 | 16927 |   } | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16928 | fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16929 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16930 |  | 
 | 16931 | # IFS | 
 | 16932 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 16933 | # there to prevent editors from complaining about space-tab. | 
 | 16934 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 16935 | # splitting by setting IFS to empty value.) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16936 | IFS=" ""	$as_nl" | 
 | 16937 |  | 
 | 16938 | # Find who we are.  Look in the path if we contain no directory separator. | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 16939 | as_myself= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16940 | case $0 in #(( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16941 |   *[\\/]* ) as_myself=$0 ;; | 
 | 16942 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16943 | for as_dir in $PATH | 
 | 16944 | do | 
 | 16945 |   IFS=$as_save_IFS | 
 | 16946 |   test -z "$as_dir" && as_dir=. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16947 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 16948 |   done | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16949 | IFS=$as_save_IFS | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16950 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16951 |      ;; | 
 | 16952 | esac | 
 | 16953 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 16954 | # in which case we are not to be found in the path. | 
 | 16955 | if test "x$as_myself" = x; then | 
 | 16956 |   as_myself=$0 | 
 | 16957 | fi | 
 | 16958 | if test ! -f "$as_myself"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16959 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 16960 |   exit 1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16961 | fi | 
 | 16962 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16963 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 16964 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 16965 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 16966 | # trigger a bug in pdksh 5.2.14. | 
 | 16967 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 16968 | do eval test x\${$as_var+set} = xset \ | 
 | 16969 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16970 | done | 
 | 16971 | PS1='$ ' | 
 | 16972 | PS2='> ' | 
 | 16973 | PS4='+ ' | 
 | 16974 |  | 
 | 16975 | # NLS nuisances. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16976 | LC_ALL=C | 
 | 16977 | export LC_ALL | 
 | 16978 | LANGUAGE=C | 
 | 16979 | export LANGUAGE | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16980 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16981 | # CDPATH. | 
 | 16982 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 16983 |  | 
 | 16984 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16985 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 16986 | # ---------------------------------------- | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16987 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 16988 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16989 | # script with STATUS, using 1 if that was 0. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16990 | as_fn_error () | 
 | 16991 | { | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16992 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 16993 |   if test "$4"; then | 
 | 16994 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 16995 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16996 |   fi | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 16997 |   $as_echo "$as_me: error: $2" >&2 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 16998 |   as_fn_exit $as_status | 
 | 16999 | } # as_fn_error | 
 | 17000 |  | 
 | 17001 |  | 
 | 17002 | # as_fn_set_status STATUS | 
 | 17003 | # ----------------------- | 
 | 17004 | # Set $? to STATUS, without forking. | 
 | 17005 | as_fn_set_status () | 
 | 17006 | { | 
 | 17007 |   return $1 | 
 | 17008 | } # as_fn_set_status | 
 | 17009 |  | 
 | 17010 | # as_fn_exit STATUS | 
 | 17011 | # ----------------- | 
 | 17012 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 17013 | as_fn_exit () | 
 | 17014 | { | 
 | 17015 |   set +e | 
 | 17016 |   as_fn_set_status $1 | 
 | 17017 |   exit $1 | 
 | 17018 | } # as_fn_exit | 
 | 17019 |  | 
 | 17020 | # as_fn_unset VAR | 
 | 17021 | # --------------- | 
 | 17022 | # Portably unset VAR. | 
 | 17023 | as_fn_unset () | 
 | 17024 | { | 
 | 17025 |   { eval $1=; unset $1;} | 
 | 17026 | } | 
 | 17027 | as_unset=as_fn_unset | 
 | 17028 | # as_fn_append VAR VALUE | 
 | 17029 | # ---------------------- | 
 | 17030 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 17031 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 17032 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 17033 | # implementations. | 
 | 17034 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 17035 |   eval 'as_fn_append () | 
 | 17036 |   { | 
 | 17037 |     eval $1+=\$2 | 
 | 17038 |   }' | 
 | 17039 | else | 
 | 17040 |   as_fn_append () | 
 | 17041 |   { | 
 | 17042 |     eval $1=\$$1\$2 | 
 | 17043 |   } | 
 | 17044 | fi # as_fn_append | 
 | 17045 |  | 
 | 17046 | # as_fn_arith ARG... | 
 | 17047 | # ------------------ | 
 | 17048 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 17049 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 17050 | # must be portable across $(()) and expr. | 
 | 17051 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 17052 |   eval 'as_fn_arith () | 
 | 17053 |   { | 
 | 17054 |     as_val=$(( $* )) | 
 | 17055 |   }' | 
 | 17056 | else | 
 | 17057 |   as_fn_arith () | 
 | 17058 |   { | 
 | 17059 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 17060 |   } | 
 | 17061 | fi # as_fn_arith | 
 | 17062 |  | 
 | 17063 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17064 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 17065 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 17066 |   as_expr=expr | 
 | 17067 | else | 
 | 17068 |   as_expr=false | 
 | 17069 | fi | 
 | 17070 |  | 
 | 17071 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 17072 |   as_basename=basename | 
 | 17073 | else | 
 | 17074 |   as_basename=false | 
 | 17075 | fi | 
 | 17076 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17077 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 17078 |   as_dirname=dirname | 
 | 17079 | else | 
 | 17080 |   as_dirname=false | 
 | 17081 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17082 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17083 | as_me=`$as_basename -- "$0" || | 
 | 17084 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 17085 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 17086 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17087 | $as_echo X/"$0" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17088 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 17089 | 	    s//\1/ | 
 | 17090 | 	    q | 
 | 17091 | 	  } | 
 | 17092 | 	  /^X\/\(\/\/\)$/{ | 
 | 17093 | 	    s//\1/ | 
 | 17094 | 	    q | 
 | 17095 | 	  } | 
 | 17096 | 	  /^X\/\(\/\).*/{ | 
 | 17097 | 	    s//\1/ | 
 | 17098 | 	    q | 
 | 17099 | 	  } | 
 | 17100 | 	  s/.*/./; q'` | 
 | 17101 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17102 | # Avoid depending upon Character Ranges. | 
 | 17103 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 17104 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 17105 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 17106 | as_cr_digits='0123456789' | 
 | 17107 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17108 |  | 
 | 17109 | ECHO_C= ECHO_N= ECHO_T= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17110 | case `echo -n x` in #((((( | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17111 | -n*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17112 |   case `echo 'xy\c'` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17113 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17114 |   xy)  ECHO_C='\c';; | 
 | 17115 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 17116 |        ECHO_T='	';; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17117 |   esac;; | 
 | 17118 | *) | 
 | 17119 |   ECHO_N='-n';; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17120 | esac | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17121 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17122 | rm -f conf$$ conf$$.exe conf$$.file | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17123 | if test -d conf$$.dir; then | 
 | 17124 |   rm -f conf$$.dir/conf$$.file | 
 | 17125 | else | 
 | 17126 |   rm -f conf$$.dir | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17127 |   mkdir conf$$.dir 2>/dev/null | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17128 | fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17129 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 17130 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 17131 |     as_ln_s='ln -s' | 
 | 17132 |     # ... but there are two gotchas: | 
 | 17133 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 17134 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17135 |     # In both cases, we have to default to `cp -pR'. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17136 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17137 |       as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17138 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 17139 |     as_ln_s=ln | 
 | 17140 |   else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17141 |     as_ln_s='cp -pR' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17142 |   fi | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17143 | else | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17144 |   as_ln_s='cp -pR' | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17145 | fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17146 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 17147 | rmdir conf$$.dir 2>/dev/null | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17148 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17149 |  | 
 | 17150 | # as_fn_mkdir_p | 
 | 17151 | # ------------- | 
 | 17152 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 17153 | as_fn_mkdir_p () | 
 | 17154 | { | 
 | 17155 |  | 
 | 17156 |   case $as_dir in #( | 
 | 17157 |   -*) as_dir=./$as_dir;; | 
 | 17158 |   esac | 
 | 17159 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 17160 |     as_dirs= | 
 | 17161 |     while :; do | 
 | 17162 |       case $as_dir in #( | 
 | 17163 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 17164 |       *) as_qdir=$as_dir;; | 
 | 17165 |       esac | 
 | 17166 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 17167 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 17168 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 17169 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 17170 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 17171 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 17172 | $as_echo X"$as_dir" | | 
 | 17173 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 17174 | 	    s//\1/ | 
 | 17175 | 	    q | 
 | 17176 | 	  } | 
 | 17177 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 17178 | 	    s//\1/ | 
 | 17179 | 	    q | 
 | 17180 | 	  } | 
 | 17181 | 	  /^X\(\/\/\)$/{ | 
 | 17182 | 	    s//\1/ | 
 | 17183 | 	    q | 
 | 17184 | 	  } | 
 | 17185 | 	  /^X\(\/\).*/{ | 
 | 17186 | 	    s//\1/ | 
 | 17187 | 	    q | 
 | 17188 | 	  } | 
 | 17189 | 	  s/.*/./; q'` | 
 | 17190 |       test -d "$as_dir" && break | 
 | 17191 |     done | 
 | 17192 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17193 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17194 |  | 
 | 17195 |  | 
 | 17196 | } # as_fn_mkdir_p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17197 | if mkdir -p . 2>/dev/null; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17198 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17199 | else | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17200 |   test -d ./-p && rmdir ./-p | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17201 |   as_mkdir_p=false | 
 | 17202 | fi | 
 | 17203 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17204 |  | 
 | 17205 | # as_fn_executable_p FILE | 
 | 17206 | # ----------------------- | 
 | 17207 | # Test if FILE is an executable regular file. | 
 | 17208 | as_fn_executable_p () | 
 | 17209 | { | 
 | 17210 |   test -f "$1" && test -x "$1" | 
 | 17211 | } # as_fn_executable_p | 
 | 17212 | as_test_x='test -x' | 
 | 17213 | as_executable_p=as_fn_executable_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17214 |  | 
 | 17215 | # Sed expression to map a string onto a valid CPP name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17216 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17217 |  | 
 | 17218 | # Sed expression to map a string onto a valid variable name. | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17219 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17220 |  | 
 | 17221 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17222 | exec 6>&1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17223 | ## ----------------------------------- ## | 
 | 17224 | ## Main body of $CONFIG_STATUS script. ## | 
 | 17225 | ## ----------------------------------- ## | 
 | 17226 | _ASEOF | 
 | 17227 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17228 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17229 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17230 | # Save the log message, to keep $0 and so on meaningful, and to | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17231 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17232 | # values after options handling. | 
 | 17233 | ac_log=" | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 17234 | This file was extended by python $as_me 3.7, which was | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17235 | generated by GNU Autoconf 2.69.  Invocation command line was | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17236 |  | 
 | 17237 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 17238 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 17239 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 17240 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 17241 |   $ $0 $@ | 
 | 17242 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17243 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 17244 | " | 
 | 17245 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17246 | _ACEOF | 
 | 17247 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17248 | case $ac_config_files in *" | 
 | 17249 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 17250 | esac | 
 | 17251 |  | 
 | 17252 | case $ac_config_headers in *" | 
 | 17253 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 17254 | esac | 
 | 17255 |  | 
 | 17256 |  | 
 | 17257 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17258 | # Files that config.status was made for. | 
| Charles-François Natali | 6613c18 | 2011-11-27 12:41:06 +0100 | [diff] [blame] | 17259 | config_files="$ac_config_files" | 
 | 17260 | config_headers="$ac_config_headers" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17261 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17262 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17263 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17264 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17265 | ac_cs_usage="\ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17266 | \`$as_me' instantiates files and other configuration actions | 
 | 17267 | from templates according to the current configuration.  Unless the files | 
 | 17268 | and actions are specified as TAGs, all are instantiated by default. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17269 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17270 | Usage: $0 [OPTION]... [TAG]... | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17271 |  | 
 | 17272 |   -h, --help       print this help, then exit | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17273 |   -V, --version    print version number and configuration settings, then exit | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17274 |       --config     print configuration, then exit | 
 | 17275 |   -q, --quiet, --silent | 
 | 17276 |                    do not print progress messages | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 |   -d, --debug      don't remove temporary files | 
 | 17278 |       --recheck    update $as_me by reconfiguring in the same conditions | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17279 |       --file=FILE[:TEMPLATE] | 
 | 17280 |                    instantiate the configuration file FILE | 
 | 17281 |       --header=FILE[:TEMPLATE] | 
 | 17282 |                    instantiate the configuration header FILE | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17283 |  | 
 | 17284 | Configuration files: | 
 | 17285 | $config_files | 
 | 17286 |  | 
 | 17287 | Configuration headers: | 
 | 17288 | $config_headers | 
 | 17289 |  | 
| Benjamin Peterson | c2fcbf4 | 2016-08-03 22:01:32 -0700 | [diff] [blame] | 17290 | Report bugs to <https://bugs.python.org/>." | 
| Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 17291 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17292 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17293 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17294 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17295 | ac_cs_version="\\ | 
| Ned Deily | 4829bc6 | 2016-09-12 17:29:04 -0400 | [diff] [blame] | 17296 | python config.status 3.7 | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17297 | configured by $0, generated by GNU Autoconf 2.69, | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17298 |   with options \\"\$ac_cs_config\\" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17299 |  | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17300 | Copyright (C) 2012 Free Software Foundation, Inc. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17301 | This config.status script is free software; the Free Software Foundation | 
 | 17302 | gives unlimited permission to copy, distribute and modify it." | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17303 |  | 
 | 17304 | ac_pwd='$ac_pwd' | 
 | 17305 | srcdir='$srcdir' | 
 | 17306 | INSTALL='$INSTALL' | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17307 | MKDIR_P='$MKDIR_P' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17308 | test -n "\$AWK" || AWK=awk | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17309 | _ACEOF | 
 | 17310 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17311 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17312 | # The default lists apply if the user does not specify any file. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17313 | ac_need_defaults=: | 
 | 17314 | while test $# != 0 | 
 | 17315 | do | 
 | 17316 |   case $1 in | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17317 |   --*=?*) | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17318 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 17319 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17320 |     ac_shift=: | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17321 |     ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17322 |   --*=) | 
 | 17323 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 17324 |     ac_optarg= | 
 | 17325 |     ac_shift=: | 
 | 17326 |     ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17327 |   *) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17328 |     ac_option=$1 | 
 | 17329 |     ac_optarg=$2 | 
 | 17330 |     ac_shift=shift | 
 | 17331 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17332 |   esac | 
 | 17333 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17334 |   case $ac_option in | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17335 |   # Handling of the options. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17336 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 17337 |     ac_cs_recheck=: ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17338 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17339 |     $as_echo "$ac_cs_version"; exit ;; | 
 | 17340 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 17341 |     $as_echo "$ac_cs_config"; exit ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17342 |   --debug | --debu | --deb | --de | --d | -d ) | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17343 |     debug=: ;; | 
 | 17344 |   --file | --fil | --fi | --f ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17345 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17346 |     case $ac_optarg in | 
 | 17347 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17348 |     '') as_fn_error $? "missing file argument" ;; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17349 |     esac | 
 | 17350 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17351 |     ac_need_defaults=false;; | 
 | 17352 |   --header | --heade | --head | --hea ) | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17353 |     $ac_shift | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17354 |     case $ac_optarg in | 
 | 17355 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 17356 |     esac | 
 | 17357 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17358 |     ac_need_defaults=false;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17359 |   --he | --h) | 
 | 17360 |     # Conflict between --help and --header | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17361 |     as_fn_error $? "ambiguous option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17362 | Try \`$0 --help' for more information.";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17363 |   --help | --hel | -h ) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17364 |     $as_echo "$ac_cs_usage"; exit ;; | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17365 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 17366 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 17367 |     ac_cs_silent=: ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17368 |  | 
 | 17369 |   # This is an error. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17370 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17371 | Try \`$0 --help' for more information." ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17372 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17373 |   *) as_fn_append ac_config_targets " $1" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17374 |      ac_need_defaults=false ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17375 |  | 
 | 17376 |   esac | 
 | 17377 |   shift | 
 | 17378 | done | 
 | 17379 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17380 | ac_configure_extra_args= | 
 | 17381 |  | 
 | 17382 | if $ac_cs_silent; then | 
 | 17383 |   exec 6>/dev/null | 
 | 17384 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 17385 | fi | 
 | 17386 |  | 
 | 17387 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17388 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17389 | if \$ac_cs_recheck; then | 
| Ross Lagerwall | 1b863eb | 2012-10-29 17:31:54 +0000 | [diff] [blame] | 17390 |   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17391 |   shift | 
 | 17392 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 17393 |   CONFIG_SHELL='$SHELL' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17394 |   export CONFIG_SHELL | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17395 |   exec "\$@" | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17396 | fi | 
 | 17397 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17398 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17399 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17400 | exec 5>>config.log | 
 | 17401 | { | 
 | 17402 |   echo | 
 | 17403 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 17404 | ## Running $as_me. ## | 
 | 17405 | _ASBOX | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17406 |   $as_echo "$ac_log" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17407 | } >&5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17408 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17409 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17410 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17411 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17412 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17413 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17414 |  | 
 | 17415 | # Handling of arguments. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17416 | for ac_config_target in $ac_config_targets | 
 | 17417 | do | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17418 |   case $ac_config_target in | 
 | 17419 |     "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; | 
 | 17420 |     "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; | 
 | 17421 |     "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; | 
| Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 17422 |     "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; | 
 | 17423 |     "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17424 |     "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; | 
| Antoine Pitrou | 2032722 | 2009-05-24 20:39:11 +0000 | [diff] [blame] | 17425 |     "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; | 
| doko@python.org | 8742119 | 2013-01-26 11:39:31 +0100 | [diff] [blame] | 17426 |     "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17427 |     "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17428 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17429 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17430 |   esac | 
 | 17431 | done | 
 | 17432 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17433 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17434 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 17435 | # then the envvar interface is used.  Set only those that are not. | 
 | 17436 | # We use the long form for the default assignment because of an extremely | 
 | 17437 | # bizarre bug on SunOS 4.1.3. | 
 | 17438 | if $ac_need_defaults; then | 
 | 17439 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 17440 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 17441 | fi | 
 | 17442 |  | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17443 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17444 | # simply because there is no reason against having it here, and in addition, | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17445 | # creating and moving files from /tmp can sometimes cause problems. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17446 | # Hook for its removal unless debugging. | 
 | 17447 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 17448 | # after its creation but before its name has been assigned to `$tmp'. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17449 | $debug || | 
 | 17450 | { | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17451 |   tmp= ac_tmp= | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17452 |   trap 'exit_status=$? | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17453 |   : "${ac_tmp:=$tmp}" | 
 | 17454 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17455 | ' 0 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17456 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17457 | } | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17458 | # Create a (secure) tmp directory for tmp files. | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17459 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17460 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17461 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17462 |   test -d "$tmp" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17463 | }  || | 
 | 17464 | { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17465 |   tmp=./conf$$-$RANDOM | 
 | 17466 |   (umask 077 && mkdir "$tmp") | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17467 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17468 | ac_tmp=$tmp | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17469 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17470 | # Set up the scripts for CONFIG_FILES section. | 
 | 17471 | # No need to generate them if there are no CONFIG_FILES. | 
 | 17472 | # This happens for instance with `./config.status config.h'. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17473 | if test -n "$CONFIG_FILES"; then | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17474 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17475 |  | 
 | 17476 | ac_cr=`echo X | tr X '\015'` | 
 | 17477 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 17478 | # But we know of no other shell where ac_cr would be empty at this | 
 | 17479 | # point, so we can use a bashism as a fallback. | 
 | 17480 | if test "x$ac_cr" = x; then | 
 | 17481 |   eval ac_cr=\$\'\\r\' | 
 | 17482 | fi | 
 | 17483 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 17484 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17485 |   ac_cs_awk_cr='\\r' | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17486 | else | 
 | 17487 |   ac_cs_awk_cr=$ac_cr | 
 | 17488 | fi | 
 | 17489 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17490 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17491 | _ACEOF | 
 | 17492 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17493 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17494 | { | 
 | 17495 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 17496 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 17497 |   echo "_ACEOF" | 
 | 17498 | } >conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17499 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 17500 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17501 | ac_delim='%!_!# ' | 
 | 17502 | for ac_last_try in false false false false false :; do | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17503 |   . ./conf$$subs.sh || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17504 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17505 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17506 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 17507 |   if test $ac_delim_n = $ac_delim_num; then | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17508 |     break | 
 | 17509 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17510 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17511 |   else | 
 | 17512 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17513 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17514 | done | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17515 | rm -f conf$$subs.sh | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17516 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17517 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17518 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17519 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17520 | sed -n ' | 
 | 17521 | h | 
 | 17522 | s/^/S["/; s/!.*/"]=/ | 
 | 17523 | p | 
 | 17524 | g | 
 | 17525 | s/^[^!]*!// | 
 | 17526 | :repl | 
 | 17527 | t repl | 
 | 17528 | s/'"$ac_delim"'$// | 
 | 17529 | t delim | 
 | 17530 | :nl | 
 | 17531 | h | 
 | 17532 | s/\(.\{148\}\)..*/\1/ | 
 | 17533 | t more1 | 
 | 17534 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 17535 | p | 
 | 17536 | n | 
 | 17537 | b repl | 
 | 17538 | :more1 | 
 | 17539 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 17540 | p | 
 | 17541 | g | 
 | 17542 | s/.\{148\}// | 
 | 17543 | t nl | 
 | 17544 | :delim | 
 | 17545 | h | 
 | 17546 | s/\(.\{148\}\)..*/\1/ | 
 | 17547 | t more2 | 
 | 17548 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 17549 | p | 
 | 17550 | b | 
 | 17551 | :more2 | 
 | 17552 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 17553 | p | 
 | 17554 | g | 
 | 17555 | s/.\{148\}// | 
 | 17556 | t delim | 
 | 17557 | ' <conf$$subs.awk | sed ' | 
 | 17558 | /^[^""]/{ | 
 | 17559 |   N | 
 | 17560 |   s/\n// | 
 | 17561 | } | 
 | 17562 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 17563 | rm -f conf$$subs.awk | 
 | 17564 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17565 | _ACAWK | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17566 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17567 |   for (key in S) S_is_set[key] = 1 | 
 | 17568 |   FS = "" | 
 | 17569 |  | 
 | 17570 | } | 
 | 17571 | { | 
 | 17572 |   line = $ 0 | 
 | 17573 |   nfields = split(line, field, "@") | 
 | 17574 |   substed = 0 | 
 | 17575 |   len = length(field[1]) | 
 | 17576 |   for (i = 2; i < nfields; i++) { | 
 | 17577 |     key = field[i] | 
 | 17578 |     keylen = length(key) | 
 | 17579 |     if (S_is_set[key]) { | 
 | 17580 |       value = S[key] | 
 | 17581 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 17582 |       len += length(value) + length(field[++i]) | 
 | 17583 |       substed = 1 | 
 | 17584 |     } else | 
 | 17585 |       len += 1 + keylen | 
 | 17586 |   } | 
 | 17587 |  | 
 | 17588 |   print line | 
 | 17589 | } | 
 | 17590 |  | 
 | 17591 | _ACAWK | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17592 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17593 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 17594 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 17595 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 17596 | else | 
 | 17597 |   cat | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17598 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17599 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| Ronald Oussoren | 74f29b4 | 2009-09-20 20:09:26 +0000 | [diff] [blame] | 17600 | _ACEOF | 
 | 17601 |  | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17602 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 17603 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17604 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 17605 | # (actually we leave an empty line to preserve line numbers). | 
 | 17606 | if test "x$srcdir" = x.; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17607 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 17608 | h | 
 | 17609 | s/// | 
 | 17610 | s/^/:/ | 
 | 17611 | s/[	 ]*$/:/ | 
 | 17612 | s/:\$(srcdir):/:/g | 
 | 17613 | s/:\${srcdir}:/:/g | 
 | 17614 | s/:@srcdir@:/:/g | 
 | 17615 | s/^:*// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17616 | s/:*$// | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17617 | x | 
 | 17618 | s/\(=[	 ]*\).*/\1/ | 
 | 17619 | G | 
 | 17620 | s/\n// | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17621 | s/^[^=]*=[	 ]*$// | 
 | 17622 | }' | 
 | 17623 | fi | 
 | 17624 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17626 | fi # test -n "$CONFIG_FILES" | 
 | 17627 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17628 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 17629 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 17630 | # This happens for instance with `./config.status Makefile'. | 
 | 17631 | if test -n "$CONFIG_HEADERS"; then | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17632 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17633 | BEGIN { | 
 | 17634 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17635 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17636 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 17637 | # here-document in config.status, that substitutes the proper values into | 
 | 17638 | # config.h.in to produce config.h. | 
 | 17639 |  | 
 | 17640 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 17641 | # handling of long lines. | 
 | 17642 | ac_delim='%!_!# ' | 
 | 17643 | for ac_last_try in false false :; do | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17644 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 17645 |   if test -z "$ac_tt"; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17646 |     break | 
 | 17647 |   elif $ac_last_try; then | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17648 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17649 |   else | 
 | 17650 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 17651 |   fi | 
 | 17652 | done | 
 | 17653 |  | 
 | 17654 | # For the awk script, D is an array of macro values keyed by name, | 
 | 17655 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 17656 | # newline sequences. | 
 | 17657 |  | 
 | 17658 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 17659 | sed -n ' | 
 | 17660 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 17661 | t rset | 
 | 17662 | :rset | 
 | 17663 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 17664 | t def | 
 | 17665 | d | 
 | 17666 | :def | 
 | 17667 | s/\\$// | 
 | 17668 | t bsnl | 
 | 17669 | s/["\\]/\\&/g | 
 | 17670 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 17671 | D["\1"]=" \3"/p | 
 | 17672 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 17673 | d | 
 | 17674 | :bsnl | 
 | 17675 | s/["\\]/\\&/g | 
 | 17676 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 17677 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 17678 | t cont | 
 | 17679 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 17680 | t cont | 
 | 17681 | d | 
 | 17682 | :cont | 
 | 17683 | n | 
 | 17684 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 17685 | t clear | 
 | 17686 | :clear | 
 | 17687 | s/\\$// | 
 | 17688 | t bsnlc | 
 | 17689 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 17690 | d | 
 | 17691 | :bsnlc | 
 | 17692 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 17693 | b cont | 
 | 17694 | ' <confdefs.h | sed ' | 
 | 17695 | s/'"$ac_delim"'/"\\\ | 
 | 17696 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 17697 |  | 
 | 17698 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17699 |   for (key in D) D_is_set[key] = 1 | 
 | 17700 |   FS = "" | 
 | 17701 | } | 
 | 17702 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 17703 |   line = \$ 0 | 
 | 17704 |   split(line, arg, " ") | 
 | 17705 |   if (arg[1] == "#") { | 
 | 17706 |     defundef = arg[2] | 
 | 17707 |     mac1 = arg[3] | 
 | 17708 |   } else { | 
 | 17709 |     defundef = substr(arg[1], 2) | 
 | 17710 |     mac1 = arg[2] | 
 | 17711 |   } | 
 | 17712 |   split(mac1, mac2, "(") #) | 
 | 17713 |   macro = mac2[1] | 
 | 17714 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 17715 |   if (D_is_set[macro]) { | 
 | 17716 |     # Preserve the white space surrounding the "#". | 
 | 17717 |     print prefix "define", macro P[macro] D[macro] | 
 | 17718 |     next | 
 | 17719 |   } else { | 
 | 17720 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 17721 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 17722 |     # on some systems where configure will not decide to define it. | 
 | 17723 |     if (defundef == "undef") { | 
 | 17724 |       print "/*", prefix defundef, macro, "*/" | 
 | 17725 |       next | 
 | 17726 |     } | 
 | 17727 |   } | 
 | 17728 | } | 
 | 17729 | { print } | 
 | 17730 | _ACAWK | 
 | 17731 | _ACEOF | 
 | 17732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17733 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17734 | fi # test -n "$CONFIG_HEADERS" | 
 | 17735 |  | 
 | 17736 |  | 
 | 17737 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    " | 
 | 17738 | shift | 
 | 17739 | for ac_tag | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17740 | do | 
 | 17741 |   case $ac_tag in | 
 | 17742 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 17743 |   esac | 
 | 17744 |   case $ac_mode$ac_tag in | 
 | 17745 |   :[FHL]*:*);; | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17746 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17747 |   :[FH]-) ac_tag=-:-;; | 
 | 17748 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 17749 |   esac | 
 | 17750 |   ac_save_IFS=$IFS | 
 | 17751 |   IFS=: | 
 | 17752 |   set x $ac_tag | 
 | 17753 |   IFS=$ac_save_IFS | 
 | 17754 |   shift | 
 | 17755 |   ac_file=$1 | 
 | 17756 |   shift | 
 | 17757 |  | 
 | 17758 |   case $ac_mode in | 
 | 17759 |   :L) ac_source=$1;; | 
 | 17760 |   :[FH]) | 
 | 17761 |     ac_file_inputs= | 
 | 17762 |     for ac_f | 
 | 17763 |     do | 
 | 17764 |       case $ac_f in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17765 |       -) ac_f="$ac_tmp/stdin";; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17766 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 17767 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 17768 | 	 # because $ac_f cannot contain `:'. | 
 | 17769 | 	 test -f "$ac_f" || | 
 | 17770 | 	   case $ac_f in | 
 | 17771 | 	   [\\/$]*) false;; | 
 | 17772 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 17773 | 	   esac || | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17774 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17775 |       esac | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17776 |       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 
 | 17777 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17778 |     done | 
 | 17779 |  | 
 | 17780 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 17781 |     # use $as_me), people would be surprised to read: | 
 | 17782 |     #    /* config.h.  Generated by config.status.  */ | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17783 |     configure_input='Generated from '` | 
 | 17784 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 17785 | 	`' by configure.' | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17786 |     if test x"$ac_file" != x-; then | 
 | 17787 |       configure_input="$ac_file.  $configure_input" | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17788 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
 | 17789 | $as_echo "$as_me: creating $ac_file" >&6;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17790 |     fi | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17791 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 17792 |     case $configure_input in #( | 
 | 17793 |     *\&* | *\|* | *\\* ) | 
 | 17794 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 17795 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 17796 |     *) ac_sed_conf_input=$configure_input;; | 
 | 17797 |     esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17798 |  | 
 | 17799 |     case $ac_tag in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17800 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
 | 17801 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17802 |     esac | 
 | 17803 |     ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17804 |   esac | 
 | 17805 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17806 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17807 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17808 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 17809 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17810 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17811 | $as_echo X"$ac_file" | | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17812 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 17813 | 	    s//\1/ | 
 | 17814 | 	    q | 
 | 17815 | 	  } | 
 | 17816 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 17817 | 	    s//\1/ | 
 | 17818 | 	    q | 
 | 17819 | 	  } | 
 | 17820 | 	  /^X\(\/\/\)$/{ | 
 | 17821 | 	    s//\1/ | 
 | 17822 | 	    q | 
 | 17823 | 	  } | 
 | 17824 | 	  /^X\(\/\).*/{ | 
 | 17825 | 	    s//\1/ | 
 | 17826 | 	    q | 
 | 17827 | 	  } | 
 | 17828 | 	  s/.*/./; q'` | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17829 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17830 |   ac_builddir=. | 
 | 17831 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17832 | case "$ac_dir" in | 
 | 17833 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 17834 | *) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17835 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17836 |   # A ".." for each directory in $ac_dir_suffix. | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17837 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17838 |   case $ac_top_builddir_sub in | 
 | 17839 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 17840 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 17841 |   esac ;; | 
 | 17842 | esac | 
 | 17843 | ac_abs_top_builddir=$ac_pwd | 
 | 17844 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 17845 | # for backward compatibility: | 
 | 17846 | ac_top_builddir=$ac_top_build_prefix | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17847 |  | 
 | 17848 | case $srcdir in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17849 |   .)  # We are building in place. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17850 |     ac_srcdir=. | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17851 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 17852 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 17853 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17854 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17855 |     ac_top_srcdir=$srcdir | 
 | 17856 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 17857 |   *) # Relative name. | 
 | 17858 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 17859 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 17860 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17861 | esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17862 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17863 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17864 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17865 |   case $ac_mode in | 
 | 17866 |   :F) | 
 | 17867 |   # | 
 | 17868 |   # CONFIG_FILE | 
 | 17869 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17870 |  | 
 | 17871 |   case $INSTALL in | 
 | 17872 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17873 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17874 |   esac | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17875 |   ac_MKDIR_P=$MKDIR_P | 
 | 17876 |   case $MKDIR_P in | 
 | 17877 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 17878 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 17879 |   esac | 
| Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17880 | _ACEOF | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17881 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17882 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17883 | # If the template does not know about datarootdir, expand it. | 
 | 17884 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 17885 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17886 | ac_sed_dataroot=' | 
 | 17887 | /datarootdir/ { | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17888 |   p | 
 | 17889 |   q | 
 | 17890 | } | 
 | 17891 | /@datadir@/p | 
 | 17892 | /@docdir@/p | 
 | 17893 | /@infodir@/p | 
 | 17894 | /@localedir@/p | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17895 | /@mandir@/p' | 
 | 17896 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17897 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 17898 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17899 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 17900 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17901 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17902 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17903 |   ac_datarootdir_hack=' | 
 | 17904 |   s&@datadir@&$datadir&g | 
 | 17905 |   s&@docdir@&$docdir&g | 
 | 17906 |   s&@infodir@&$infodir&g | 
 | 17907 |   s&@localedir@&$localedir&g | 
 | 17908 |   s&@mandir@&$mandir&g | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17909 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17910 | esac | 
 | 17911 | _ACEOF | 
 | 17912 |  | 
 | 17913 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 17914 | # Shell code in configure.ac might set extrasub. | 
 | 17915 | # FIXME: do we really want to maintain this feature? | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17916 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 17917 | ac_sed_extra="$ac_vpsub | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17918 | $extrasub | 
 | 17919 | _ACEOF | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17920 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17921 | :t | 
 | 17922 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17923 | s|@configure_input@|$ac_sed_conf_input|;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17924 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17925 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17926 | s&@srcdir@&$ac_srcdir&;t t | 
 | 17927 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 17928 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 17929 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 17930 | s&@builddir@&$ac_builddir&;t t | 
 | 17931 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 17932 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 17933 | s&@INSTALL@&$ac_INSTALL&;t t | 
| Matthias Klose | 93a0ef1 | 2012-03-15 18:08:34 +0100 | [diff] [blame] | 17934 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17935 | $ac_datarootdir_hack | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17936 | " | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17937 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 17938 |   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17939 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17940 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17941 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 17942 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 17943 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17944 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17945 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17946 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17947 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17948 |  | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17949 |   rm -f "$ac_tmp/stdin" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17950 |   case $ac_file in | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17951 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 17952 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17953 |   esac \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17954 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17955 |  ;; | 
 | 17956 |   :H) | 
 | 17957 |   # | 
 | 17958 |   # CONFIG_HEADER | 
 | 17959 |   # | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17960 |   if test x"$ac_file" != x-; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17961 |     { | 
 | 17962 |       $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17963 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 17964 |     } >"$ac_tmp/config.h" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17965 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17966 |     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17967 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
 | 17968 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17969 |     else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17970 |       rm -f "$ac_file" | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17971 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17972 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17973 |     fi | 
 | 17974 |   else | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17975 |     $as_echo "/* $configure_input  */" \ | 
| Victor Stinner | e0be423 | 2011-10-25 13:06:09 +0200 | [diff] [blame] | 17976 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17977 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17978 |   fi | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17979 |  ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17980 |  | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17981 |  | 
 | 17982 |   esac | 
 | 17983 |  | 
| Antoine Pitrou | 8e6b407 | 2010-09-10 19:44:44 +0000 | [diff] [blame] | 17984 |  | 
 | 17985 |   case $ac_file$ac_mode in | 
 | 17986 |     "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; | 
 | 17987 |  | 
 | 17988 |   esac | 
| Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17989 | done # for ac_tag | 
 | 17990 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17991 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17992 | as_fn_exit 0 | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17993 | _ACEOF | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17994 | ac_clean_files=$ac_clean_files_save | 
 | 17995 |  | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17996 | test $ac_write_fail = 0 || | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 17997 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 17998 |  | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17999 |  | 
 | 18000 | # configure is writing to config.log, and then calls config.status. | 
 | 18001 | # config.status does its own redirection, appending to config.log. | 
 | 18002 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 18003 | # by configure, so config.status won't be able to write to it; its | 
 | 18004 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 18005 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 18006 | # appended to by config.status.  When coming back to configure, we | 
 | 18007 | # need to make the FD available again. | 
 | 18008 | if test "$no_create" != yes; then | 
 | 18009 |   ac_cs_success=: | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18010 |   ac_config_status_args= | 
 | 18011 |   test "$silent" = yes && | 
 | 18012 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18013 |   exec 5>/dev/null | 
| Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18014 |   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18015 |   exec 5>>config.log | 
 | 18016 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 18017 |   # would make configure fail if this is the last instruction. | 
| Ross Lagerwall | b0ae53d | 2011-06-10 07:30:30 +0200 | [diff] [blame] | 18018 |   $ac_cs_success || as_fn_exit 1 | 
| Matthias Klose | b962171 | 2010-04-24 17:59:49 +0000 | [diff] [blame] | 18019 | fi | 
 | 18020 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
 | 18021 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 
 | 18022 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 
| Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18023 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18024 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18025 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 18026 | echo "creating Modules/Setup" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18027 | if test ! -f Modules/Setup | 
 | 18028 | then | 
 | 18029 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 18030 | fi | 
 | 18031 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 18032 | echo "creating Modules/Setup.local" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18033 | if test ! -f Modules/Setup.local | 
 | 18034 | then | 
 | 18035 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 18036 | fi | 
 | 18037 |  | 
| Christian Heimes | 75ed890 | 2013-11-20 01:11:18 +0100 | [diff] [blame] | 18038 | echo "creating Makefile" >&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18039 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
| Antoine Pitrou | a6a4dc8 | 2017-09-07 18:56:24 +0200 | [diff] [blame] | 18040 | 			-s Modules \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 18041 | 			Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 18042 | mv config.c Modules | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 18043 |  | 
 | 18044 | if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then | 
 | 18045 |     echo "" >&6 | 
 | 18046 |     echo "" >&6 | 
| Brett Cannon | b4e5fee | 2017-06-09 13:56:57 -0700 | [diff] [blame] | 18047 |     echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6 | 
| Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 1016b2f | 2016-11-20 21:07:42 +0000 | [diff] [blame] | 18048 |     echo "please run ./configure --enable-optimizations" >&6 | 
| Brett Cannon | 63d98bc | 2016-09-06 17:12:40 -0700 | [diff] [blame] | 18049 |     echo "" >&6 | 
 | 18050 |     echo "" >&6 | 
 | 18051 | fi | 
 | 18052 |  |