Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 70903 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # Report bugs to <http://www.python.org/python-bugs>. |
| 7 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 45 | echo "#! /bin/sh" >conf$$.sh |
| 46 | echo "exit 0" >>conf$$.sh |
| 47 | chmod +x conf$$.sh |
| 48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
| 69 | as_nl=' |
| 70 | ' |
| 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
| 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 94 | { (exit 1); exit 1; } |
| 95 | fi |
| 96 | |
| 97 | # Work around bugs in pre-3.0 UWIN ksh. |
| 98 | for as_var in ENV MAIL MAILPATH |
| 99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 100 | done |
| 101 | PS1='$ ' |
| 102 | PS2='> ' |
| 103 | PS4='+ ' |
| 104 | |
| 105 | # NLS nuisances. |
| 106 | for as_var in \ |
| 107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 109 | LC_TELEPHONE LC_TIME |
| 110 | do |
| 111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 112 | eval $as_var=C; export $as_var |
| 113 | else |
| 114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 115 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 116 | done |
| 117 | |
| 118 | # Required to use basename. |
| 119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 121 | as_expr=expr |
| 122 | else |
| 123 | as_expr=false |
| 124 | fi |
| 125 | |
| 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 127 | as_basename=basename |
| 128 | else |
| 129 | as_basename=false |
| 130 | fi |
| 131 | |
| 132 | |
| 133 | # Name of the executable. |
| 134 | as_me=`$as_basename -- "$0" || |
| 135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 136 | X"$0" : 'X\(//\)$' \| \ |
| 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 138 | echo X/"$0" | |
| 139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 140 | s//\1/ |
| 141 | q |
| 142 | } |
| 143 | /^X\/\(\/\/\)$/{ |
| 144 | s//\1/ |
| 145 | q |
| 146 | } |
| 147 | /^X\/\(\/\).*/{ |
| 148 | s//\1/ |
| 149 | q |
| 150 | } |
| 151 | s/.*/./; q'` |
| 152 | |
| 153 | # CDPATH. |
| 154 | $as_unset CDPATH |
| 155 | |
| 156 | |
| 157 | if test "x$CONFIG_SHELL" = x; then |
| 158 | if (eval ":") 2>/dev/null; then |
| 159 | as_have_required=yes |
| 160 | else |
| 161 | as_have_required=no |
| 162 | fi |
| 163 | |
| 164 | if test $as_have_required = yes && (eval ": |
| 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
| 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
| 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
| 347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 348 | done |
| 349 | export CONFIG_SHELL |
| 350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 351 | fi |
| 352 | |
| 353 | |
| 354 | if test $as_have_required = no; then |
| 355 | echo This script requires a shell more modern than all the |
| 356 | echo shells that I found on your system. Please install a |
| 357 | echo modern shell, or manually run the script under such a |
| 358 | echo shell if you do have one. |
| 359 | { (exit 1); exit 1; } |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | fi |
| 364 | |
| 365 | fi |
| 366 | |
| 367 | |
| 368 | |
| 369 | (eval "as_func_return () { |
| 370 | (exit \$1) |
| 371 | } |
| 372 | as_func_success () { |
| 373 | as_func_return 0 |
| 374 | } |
| 375 | as_func_failure () { |
| 376 | as_func_return 1 |
| 377 | } |
| 378 | as_func_ret_success () { |
| 379 | return 0 |
| 380 | } |
| 381 | as_func_ret_failure () { |
| 382 | return 1 |
| 383 | } |
| 384 | |
| 385 | exitcode=0 |
| 386 | if as_func_success; then |
| 387 | : |
| 388 | else |
| 389 | exitcode=1 |
| 390 | echo as_func_success failed. |
| 391 | fi |
| 392 | |
| 393 | if as_func_failure; then |
| 394 | exitcode=1 |
| 395 | echo as_func_failure succeeded. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_success; then |
| 399 | : |
| 400 | else |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_success failed. |
| 403 | fi |
| 404 | |
| 405 | if as_func_ret_failure; then |
| 406 | exitcode=1 |
| 407 | echo as_func_ret_failure succeeded. |
| 408 | fi |
| 409 | |
| 410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 411 | : |
| 412 | else |
| 413 | exitcode=1 |
| 414 | echo positional parameters were not saved. |
| 415 | fi |
| 416 | |
| 417 | test \$exitcode = 0") || { |
| 418 | echo No shell found that supports shell functions. |
| 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
| 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
| 485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
| 498 | mkdir conf$$.dir |
| 499 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 502 | as_ln_s='ln -s' |
| 503 | # ... but there are two gotchas: |
| 504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 506 | # In both cases, we have to default to `cp -p'. |
| 507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 508 | as_ln_s='cp -p' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
| 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
| 535 | test -d "$1/."; |
| 536 | else |
| 537 | case $1 in |
| 538 | -*)set "./$1";; |
| 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | 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] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | 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] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.7' |
| 579 | PACKAGE_STRING='python 2.7' |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://www.python.org/python-bugs' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | |
| 582 | ac_unique_file="Include/object.h" |
| 583 | # Factoring default headers for most tests. |
| 584 | ac_includes_default="\ |
| 585 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
| 620 | PATH_SEPARATOR |
| 621 | PACKAGE_NAME |
| 622 | PACKAGE_TARNAME |
| 623 | PACKAGE_VERSION |
| 624 | PACKAGE_STRING |
| 625 | PACKAGE_BUGREPORT |
| 626 | exec_prefix |
| 627 | prefix |
| 628 | program_transform_name |
| 629 | bindir |
| 630 | sbindir |
| 631 | libexecdir |
| 632 | datarootdir |
| 633 | datadir |
| 634 | sysconfdir |
| 635 | sharedstatedir |
| 636 | localstatedir |
| 637 | includedir |
| 638 | oldincludedir |
| 639 | docdir |
| 640 | infodir |
| 641 | htmldir |
| 642 | dvidir |
| 643 | pdfdir |
| 644 | psdir |
| 645 | libdir |
| 646 | localedir |
| 647 | mandir |
| 648 | DEFS |
| 649 | ECHO_C |
| 650 | ECHO_N |
| 651 | ECHO_T |
| 652 | LIBS |
| 653 | build_alias |
| 654 | host_alias |
| 655 | target_alias |
| 656 | VERSION |
| 657 | SOVERSION |
| 658 | CONFIG_ARGS |
| 659 | UNIVERSALSDK |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 660 | ARCH_RUN_32BIT |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 661 | PYTHONFRAMEWORK |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 662 | PYTHONFRAMEWORKIDENTIFIER |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 663 | PYTHONFRAMEWORKDIR |
| 664 | PYTHONFRAMEWORKPREFIX |
| 665 | PYTHONFRAMEWORKINSTALLDIR |
| 666 | FRAMEWORKINSTALLFIRST |
| 667 | FRAMEWORKINSTALLLAST |
| 668 | FRAMEWORKALTINSTALLFIRST |
| 669 | FRAMEWORKALTINSTALLLAST |
| 670 | FRAMEWORKUNIXTOOLSPREFIX |
| 671 | MACHDEP |
| 672 | SGI_ABI |
| 673 | EXTRAPLATDIR |
| 674 | EXTRAMACHDEPPATH |
| 675 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 676 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 677 | CC |
| 678 | CFLAGS |
| 679 | LDFLAGS |
| 680 | CPPFLAGS |
| 681 | ac_ct_CC |
| 682 | EXEEXT |
| 683 | OBJEXT |
| 684 | CXX |
| 685 | MAINCC |
| 686 | CPP |
| 687 | GREP |
| 688 | EGREP |
| 689 | BUILDEXEEXT |
| 690 | LIBRARY |
| 691 | LDLIBRARY |
| 692 | DLLLIBRARY |
| 693 | BLDLIBRARY |
| 694 | LDLIBRARYDIR |
| 695 | INSTSONAME |
| 696 | RUNSHARED |
| 697 | LINKCC |
| 698 | RANLIB |
| 699 | AR |
| 700 | SVNVERSION |
| 701 | INSTALL_PROGRAM |
| 702 | INSTALL_SCRIPT |
| 703 | INSTALL_DATA |
| 704 | LN |
| 705 | OPT |
| 706 | BASECFLAGS |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 707 | UNIVERSAL_ARCH_FLAGS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 708 | OTHER_LIBTOOL_OPT |
| 709 | LIBTOOL_CRUFT |
| 710 | SO |
| 711 | LDSHARED |
| 712 | BLDSHARED |
| 713 | CCSHARED |
| 714 | LINKFORSHARED |
| 715 | CFLAGSFORSHARED |
| 716 | SHLIBS |
| 717 | USE_SIGNAL_MODULE |
| 718 | SIGNAL_OBJS |
| 719 | USE_THREAD_MODULE |
| 720 | LDLAST |
| 721 | THREADOBJ |
| 722 | DLINCLDIR |
| 723 | DYNLOADFILE |
| 724 | MACHDEP_OBJS |
| 725 | TRUE |
| 726 | LIBOBJS |
| 727 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 728 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 729 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 730 | HAVE_GETHOSTBYNAME_R |
| 731 | HAVE_GETHOSTBYNAME |
| 732 | LIBM |
| 733 | LIBC |
| 734 | UNICODE_OBJS |
| 735 | THREADHEADERS |
| 736 | SRCDIRS |
| 737 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 738 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 739 | ac_precious_vars='build_alias |
| 740 | host_alias |
| 741 | target_alias |
| 742 | CC |
| 743 | CFLAGS |
| 744 | LDFLAGS |
| 745 | LIBS |
| 746 | CPPFLAGS |
| 747 | CPP' |
| 748 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 749 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 750 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 751 | ac_init_help= |
| 752 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 753 | # The variables have the same names as the options, with |
| 754 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 755 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 756 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 757 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 758 | no_recursion= |
| 759 | prefix=NONE |
| 760 | program_prefix=NONE |
| 761 | program_suffix=NONE |
| 762 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 763 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 764 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 765 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 766 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 767 | x_includes=NONE |
| 768 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 769 | |
| 770 | # Installation directory options. |
| 771 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 772 | # and all the variables that are supposed to be based on exec_prefix |
| 773 | # by default will actually change. |
| 774 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 775 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 776 | bindir='${exec_prefix}/bin' |
| 777 | sbindir='${exec_prefix}/sbin' |
| 778 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 779 | datarootdir='${prefix}/share' |
| 780 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 781 | sysconfdir='${prefix}/etc' |
| 782 | sharedstatedir='${prefix}/com' |
| 783 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 784 | includedir='${prefix}/include' |
| 785 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 786 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 787 | infodir='${datarootdir}/info' |
| 788 | htmldir='${docdir}' |
| 789 | dvidir='${docdir}' |
| 790 | pdfdir='${docdir}' |
| 791 | psdir='${docdir}' |
| 792 | libdir='${exec_prefix}/lib' |
| 793 | localedir='${datarootdir}/locale' |
| 794 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 795 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 796 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 797 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 798 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 799 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | # If the previous option needs an argument, assign it. |
| 801 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 802 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | ac_prev= |
| 804 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 805 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 806 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 807 | case $ac_option in |
| 808 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 809 | *) ac_optarg=yes ;; |
| 810 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 811 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 812 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 813 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 814 | case $ac_dashdash$ac_option in |
| 815 | --) |
| 816 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 817 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 818 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 819 | ac_prev=bindir ;; |
| 820 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 821 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 822 | |
| 823 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 824 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 825 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 826 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 827 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 828 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 829 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 830 | ac_prev=cache_file ;; |
| 831 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 832 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 833 | cache_file=$ac_optarg ;; |
| 834 | |
| 835 | --config-cache | -C) |
| 836 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 837 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 838 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 839 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 840 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 841 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 842 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 843 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 844 | | --dataroo | --dataro | --datar) |
| 845 | ac_prev=datarootdir ;; |
| 846 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 847 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 848 | datarootdir=$ac_optarg ;; |
| 849 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 850 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 851 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 852 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 853 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 854 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 855 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 856 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 857 | eval enable_$ac_feature=no ;; |
| 858 | |
| 859 | -docdir | --docdir | --docdi | --doc | --do) |
| 860 | ac_prev=docdir ;; |
| 861 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 862 | docdir=$ac_optarg ;; |
| 863 | |
| 864 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 865 | ac_prev=dvidir ;; |
| 866 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 867 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 868 | |
| 869 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 870 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 871 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 872 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 873 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 874 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 875 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 876 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 877 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 878 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 879 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 880 | | --exec | --exe | --ex) |
| 881 | ac_prev=exec_prefix ;; |
| 882 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 883 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 884 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 885 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 886 | |
| 887 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 888 | # Obsolete; use --with-gas. |
| 889 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 891 | -help | --help | --hel | --he | -h) |
| 892 | ac_init_help=long ;; |
| 893 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 894 | ac_init_help=recursive ;; |
| 895 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 896 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 897 | |
| 898 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 899 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 900 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 901 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 903 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 904 | ac_prev=htmldir ;; |
| 905 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 906 | | --ht=*) |
| 907 | htmldir=$ac_optarg ;; |
| 908 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 909 | -includedir | --includedir | --includedi | --included | --include \ |
| 910 | | --includ | --inclu | --incl | --inc) |
| 911 | ac_prev=includedir ;; |
| 912 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 913 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 914 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 915 | |
| 916 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 917 | ac_prev=infodir ;; |
| 918 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 919 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 920 | |
| 921 | -libdir | --libdir | --libdi | --libd) |
| 922 | ac_prev=libdir ;; |
| 923 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 924 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 925 | |
| 926 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 927 | | --libexe | --libex | --libe) |
| 928 | ac_prev=libexecdir ;; |
| 929 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 930 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 931 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 932 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 933 | -localedir | --localedir | --localedi | --localed | --locale) |
| 934 | ac_prev=localedir ;; |
| 935 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 936 | localedir=$ac_optarg ;; |
| 937 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 938 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 939 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 940 | ac_prev=localstatedir ;; |
| 941 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 942 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 943 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 944 | |
| 945 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 946 | ac_prev=mandir ;; |
| 947 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 948 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 949 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 950 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 951 | # Obsolete; use --without-fp. |
| 952 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 953 | |
| 954 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 955 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 956 | no_create=yes ;; |
| 957 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 958 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 959 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 960 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 961 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 962 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 963 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 964 | | --oldin | --oldi | --old | --ol | --o) |
| 965 | ac_prev=oldincludedir ;; |
| 966 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 967 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 968 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 969 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 970 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 971 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 972 | ac_prev=prefix ;; |
| 973 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 975 | |
| 976 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 977 | | --program-pre | --program-pr | --program-p) |
| 978 | ac_prev=program_prefix ;; |
| 979 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 980 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 981 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 982 | |
| 983 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 984 | | --program-suf | --program-su | --program-s) |
| 985 | ac_prev=program_suffix ;; |
| 986 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 987 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 989 | |
| 990 | -program-transform-name | --program-transform-name \ |
| 991 | | --program-transform-nam | --program-transform-na \ |
| 992 | | --program-transform-n | --program-transform- \ |
| 993 | | --program-transform | --program-transfor \ |
| 994 | | --program-transfo | --program-transf \ |
| 995 | | --program-trans | --program-tran \ |
| 996 | | --progr-tra | --program-tr | --program-t) |
| 997 | ac_prev=program_transform_name ;; |
| 998 | -program-transform-name=* | --program-transform-name=* \ |
| 999 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1000 | | --program-transform-n=* | --program-transform-=* \ |
| 1001 | | --program-transform=* | --program-transfor=* \ |
| 1002 | | --program-transfo=* | --program-transf=* \ |
| 1003 | | --program-trans=* | --program-tran=* \ |
| 1004 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1005 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1006 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1007 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1008 | ac_prev=pdfdir ;; |
| 1009 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1010 | pdfdir=$ac_optarg ;; |
| 1011 | |
| 1012 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1013 | ac_prev=psdir ;; |
| 1014 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1015 | psdir=$ac_optarg ;; |
| 1016 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1018 | | -silent | --silent | --silen | --sile | --sil) |
| 1019 | silent=yes ;; |
| 1020 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1021 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1022 | ac_prev=sbindir ;; |
| 1023 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1024 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1025 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1026 | |
| 1027 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1028 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1029 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1030 | | --sha | --sh) |
| 1031 | ac_prev=sharedstatedir ;; |
| 1032 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1033 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1034 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1035 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1036 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1037 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1038 | -site | --site | --sit) |
| 1039 | ac_prev=site ;; |
| 1040 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1041 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1042 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1043 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1044 | ac_prev=srcdir ;; |
| 1045 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1046 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1047 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1048 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1049 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1050 | ac_prev=sysconfdir ;; |
| 1051 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1052 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1053 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1054 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1055 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1056 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1057 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1059 | |
| 1060 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1061 | verbose=yes ;; |
| 1062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | -version | --version | --versio | --versi | --vers | -V) |
| 1064 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1065 | |
| 1066 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1067 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1068 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1069 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1071 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1072 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1073 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1074 | |
| 1075 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1077 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1078 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1079 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1080 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1081 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1082 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1083 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1084 | --x) |
| 1085 | # Obsolete; use --with-x. |
| 1086 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1087 | |
| 1088 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1089 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1090 | ac_prev=x_includes ;; |
| 1091 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1092 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1093 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1094 | |
| 1095 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1096 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1097 | ac_prev=x_libraries ;; |
| 1098 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1099 | | --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] | 1100 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1102 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1103 | Try \`$0 --help' for more information." >&2 |
| 1104 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1105 | ;; |
| 1106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1107 | *=*) |
| 1108 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1109 | # Reject names that are not valid shell variable names. |
| 1110 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1111 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1112 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1113 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 | export $ac_envvar ;; |
| 1115 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1116 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1117 | # FIXME: should be removed in autoconf 3.0. |
| 1118 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1119 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1120 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1121 | : ${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] | 1122 | ;; |
| 1123 | |
| 1124 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1125 | done |
| 1126 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1127 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1128 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1129 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1130 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1131 | fi |
| 1132 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1133 | # Be sure to have absolute directory names. |
| 1134 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1135 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1136 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1137 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1138 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1139 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1140 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1141 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1142 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1143 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1144 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1145 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1146 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1148 | # There might be people who depend on the old broken behavior: `$host' |
| 1149 | # used to hold the argument of --host etc. |
| 1150 | # FIXME: To remove some day. |
| 1151 | build=$build_alias |
| 1152 | host=$host_alias |
| 1153 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1155 | # FIXME: To remove some day. |
| 1156 | if test "x$host_alias" != x; then |
| 1157 | if test "x$build_alias" = x; then |
| 1158 | cross_compiling=maybe |
| 1159 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1160 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1161 | elif test "x$build_alias" != "x$host_alias"; then |
| 1162 | cross_compiling=yes |
| 1163 | fi |
| 1164 | fi |
| 1165 | |
| 1166 | ac_tool_prefix= |
| 1167 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1168 | |
| 1169 | test "$silent" = yes && exec 6>/dev/null |
| 1170 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1171 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1172 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1173 | ac_ls_di=`ls -di .` && |
| 1174 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1175 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1176 | { (exit 1); exit 1; }; } |
| 1177 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1178 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1179 | { (exit 1); exit 1; }; } |
| 1180 | |
| 1181 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1182 | # Find the source files, if location was not specified. |
| 1183 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1184 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1185 | # Try the directory containing this script, then the parent directory. |
| 1186 | ac_confdir=`$as_dirname -- "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1187 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1188 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1189 | X"$0" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1190 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1191 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1192 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1193 | s//\1/ |
| 1194 | q |
| 1195 | } |
| 1196 | /^X\(\/\/\)[^/].*/{ |
| 1197 | s//\1/ |
| 1198 | q |
| 1199 | } |
| 1200 | /^X\(\/\/\)$/{ |
| 1201 | s//\1/ |
| 1202 | q |
| 1203 | } |
| 1204 | /^X\(\/\).*/{ |
| 1205 | s//\1/ |
| 1206 | q |
| 1207 | } |
| 1208 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1209 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1210 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1211 | srcdir=.. |
| 1212 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1213 | else |
| 1214 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1215 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1216 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1217 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1218 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1219 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1220 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1221 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1222 | ac_abs_confdir=`( |
| 1223 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1224 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1225 | pwd)` |
| 1226 | # When building in place, set srcdir=. |
| 1227 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1228 | srcdir=. |
| 1229 | fi |
| 1230 | # Remove unnecessary trailing slashes from srcdir. |
| 1231 | # Double slashes in file names in object file debugging info |
| 1232 | # mess up M-x gdb in Emacs. |
| 1233 | case $srcdir in |
| 1234 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1235 | esac |
| 1236 | for ac_var in $ac_precious_vars; do |
| 1237 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1238 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1239 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1240 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1241 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1243 | # |
| 1244 | # Report the --help message. |
| 1245 | # |
| 1246 | if test "$ac_init_help" = "long"; then |
| 1247 | # Omit some internal or obsolete options to make the list less imposing. |
| 1248 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1249 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1250 | \`configure' configures python 2.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1251 | |
| 1252 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1253 | |
| 1254 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1255 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1256 | |
| 1257 | Defaults for the options are specified in brackets. |
| 1258 | |
| 1259 | Configuration: |
| 1260 | -h, --help display this help and exit |
| 1261 | --help=short display options specific to this package |
| 1262 | --help=recursive display the short help of all the included packages |
| 1263 | -V, --version display version information and exit |
| 1264 | -q, --quiet, --silent do not print \`checking...' messages |
| 1265 | --cache-file=FILE cache test results in FILE [disabled] |
| 1266 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1267 | -n, --no-create do not create output files |
| 1268 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1270 | Installation directories: |
| 1271 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1272 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1273 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1274 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | |
| 1276 | By default, \`make install' will install all the files in |
| 1277 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1278 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1279 | for instance \`--prefix=\$HOME'. |
| 1280 | |
| 1281 | For better control, use the options below. |
| 1282 | |
| 1283 | Fine tuning of the installation directories: |
| 1284 | --bindir=DIR user executables [EPREFIX/bin] |
| 1285 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1286 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1287 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1288 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1289 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1290 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1291 | --includedir=DIR C header files [PREFIX/include] |
| 1292 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1293 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1294 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1295 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1296 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1297 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1298 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1299 | --htmldir=DIR html documentation [DOCDIR] |
| 1300 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1301 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1302 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1303 | _ACEOF |
| 1304 | |
| 1305 | cat <<\_ACEOF |
| 1306 | _ACEOF |
| 1307 | fi |
| 1308 | |
| 1309 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1310 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1311 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1312 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1313 | cat <<\_ACEOF |
| 1314 | |
| 1315 | Optional Features: |
| 1316 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1317 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1318 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1319 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1320 | --enable-framework[=INSTALLDIR] |
| 1321 | Build (MacOSX|Darwin) framework |
| 1322 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1323 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1324 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1325 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1326 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1327 | --enable-big-digits[=BITS] |
| 1328 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1329 | --enable-unicode[=ucs[24]] |
| 1330 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1331 | |
| 1332 | Optional Packages: |
| 1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1335 | --with-universal-archs=ARCH |
| 1336 | select architectures for universal build ("32-bit", |
| 1337 | "64-bit" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1338 | --with-framework-name=FRAMEWORK |
| 1339 | specify an alternate name of the framework built |
| 1340 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1341 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1342 | --with-cxx-main=<compiler> |
| 1343 | compile main() and link python executable with C++ |
| 1344 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1345 | --with-suffix=.exe set executable suffix |
| 1346 | --with-pydebug build with Py_DEBUG defined |
| 1347 | --with-libs='lib1 ...' link against additional libs |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1348 | --with-system-ffi build _ctypes module using an installed ffi library |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1349 | --with-signal-module disable/enable signal module |
| 1350 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1351 | --with(out)-threads[=DIRECTORY] |
| 1352 | disable/enable thread support |
| 1353 | --with(out)-thread[=DIRECTORY] |
| 1354 | deprecated; use --with(out)-threads |
| 1355 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1356 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1357 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1358 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1359 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1360 | --with-fpectl enable SIGFPE catching |
| 1361 | --with-libm=STRING math library |
| 1362 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1363 | |
| 1364 | Some influential environment variables: |
| 1365 | CC C compiler command |
| 1366 | CFLAGS C compiler flags |
| 1367 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1368 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1369 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1370 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1371 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1372 | CPP C preprocessor |
| 1373 | |
| 1374 | Use these variables to override the choices made by `configure' or to help |
| 1375 | it to find libraries and programs with nonstandard names/locations. |
| 1376 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 1377 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1379 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1380 | fi |
| 1381 | |
| 1382 | if test "$ac_init_help" = "recursive"; then |
| 1383 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1384 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1385 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | ac_builddir=. |
| 1387 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1388 | case "$ac_dir" in |
| 1389 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1390 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1391 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1392 | # A ".." for each directory in $ac_dir_suffix. |
| 1393 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1394 | case $ac_top_builddir_sub in |
| 1395 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1396 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1397 | esac ;; |
| 1398 | esac |
| 1399 | ac_abs_top_builddir=$ac_pwd |
| 1400 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1401 | # for backward compatibility: |
| 1402 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1403 | |
| 1404 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1405 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1406 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1407 | ac_top_srcdir=$ac_top_builddir_sub |
| 1408 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1409 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1410 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1411 | ac_top_srcdir=$srcdir |
| 1412 | ac_abs_top_srcdir=$srcdir ;; |
| 1413 | *) # Relative name. |
| 1414 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1415 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1416 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1417 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1418 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1419 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1420 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1421 | # Check for guested configure. |
| 1422 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1423 | echo && |
| 1424 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1425 | elif test -f "$ac_srcdir/configure"; then |
| 1426 | echo && |
| 1427 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1428 | else |
| 1429 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1430 | fi || ac_status=$? |
| 1431 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | done |
| 1433 | fi |
| 1434 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1435 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1436 | if $ac_init_version; then |
| 1437 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1438 | python configure 2.7 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1439 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1441 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1442 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1443 | This configure script is free software; the Free Software Foundation |
| 1444 | gives unlimited permission to copy, distribute and modify it. |
| 1445 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1446 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1447 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1448 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1449 | This file contains any messages produced by compilers while |
| 1450 | running configure, to aid debugging if configure makes a mistake. |
| 1451 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1452 | It was created by python $as_me 2.7, which was |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1453 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1454 | |
| 1455 | $ $0 $@ |
| 1456 | |
| 1457 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1458 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 | { |
| 1460 | cat <<_ASUNAME |
| 1461 | ## --------- ## |
| 1462 | ## Platform. ## |
| 1463 | ## --------- ## |
| 1464 | |
| 1465 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1466 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1467 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1468 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1469 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1470 | |
| 1471 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1472 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1473 | |
| 1474 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1475 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1476 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1477 | /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] | 1478 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1479 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1480 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1481 | |
| 1482 | _ASUNAME |
| 1483 | |
| 1484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1485 | for as_dir in $PATH |
| 1486 | do |
| 1487 | IFS=$as_save_IFS |
| 1488 | test -z "$as_dir" && as_dir=. |
| 1489 | echo "PATH: $as_dir" |
| 1490 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1491 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1492 | |
| 1493 | } >&5 |
| 1494 | |
| 1495 | cat >&5 <<_ACEOF |
| 1496 | |
| 1497 | |
| 1498 | ## ----------- ## |
| 1499 | ## Core tests. ## |
| 1500 | ## ----------- ## |
| 1501 | |
| 1502 | _ACEOF |
| 1503 | |
| 1504 | |
| 1505 | # Keep a trace of the command line. |
| 1506 | # 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] | 1507 | # 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] | 1508 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1509 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1511 | ac_configure_args0= |
| 1512 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1513 | ac_must_keep_next=false |
| 1514 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1515 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1516 | for ac_arg |
| 1517 | do |
| 1518 | case $ac_arg in |
| 1519 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1520 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1521 | | -silent | --silent | --silen | --sile | --sil) |
| 1522 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1523 | *\'*) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1524 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1525 | esac |
| 1526 | case $ac_pass in |
| 1527 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1528 | 2) |
| 1529 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1530 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1531 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1532 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1533 | case $ac_arg in |
| 1534 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1535 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1536 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1537 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1538 | case "$ac_configure_args0 " in |
| 1539 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1540 | esac |
| 1541 | ;; |
| 1542 | -* ) ac_must_keep_next=true ;; |
| 1543 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1544 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1545 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1546 | ;; |
| 1547 | esac |
| 1548 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1549 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1550 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1551 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 | |
| 1553 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1554 | # config.log. We remove comments because anyway the quotes in there |
| 1555 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1556 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1557 | # 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] | 1558 | trap 'exit_status=$? |
| 1559 | # Save into config.log some information that might help in debugging. |
| 1560 | { |
| 1561 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1563 | cat <<\_ASBOX |
| 1564 | ## ---------------- ## |
| 1565 | ## Cache variables. ## |
| 1566 | ## ---------------- ## |
| 1567 | _ASBOX |
| 1568 | echo |
| 1569 | # The following way of writing the cache mishandles newlines in values, |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1570 | ( |
| 1571 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1572 | eval ac_val=\$$ac_var |
| 1573 | case $ac_val in #( |
| 1574 | *${as_nl}*) |
| 1575 | case $ac_var in #( |
| 1576 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1577 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1578 | esac |
| 1579 | case $ac_var in #( |
| 1580 | _ | IFS | as_nl) ;; #( |
| 1581 | *) $as_unset $ac_var ;; |
| 1582 | esac ;; |
| 1583 | esac |
| 1584 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1585 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1586 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1587 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1588 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1589 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1590 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1591 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1592 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1593 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1594 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1595 | esac | |
| 1596 | sort |
| 1597 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1598 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1599 | |
| 1600 | cat <<\_ASBOX |
| 1601 | ## ----------------- ## |
| 1602 | ## Output variables. ## |
| 1603 | ## ----------------- ## |
| 1604 | _ASBOX |
| 1605 | echo |
| 1606 | for ac_var in $ac_subst_vars |
| 1607 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1608 | eval ac_val=\$$ac_var |
| 1609 | case $ac_val in |
| 1610 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1611 | esac |
| 1612 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1613 | done | sort |
| 1614 | echo |
| 1615 | |
| 1616 | if test -n "$ac_subst_files"; then |
| 1617 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1618 | ## ------------------- ## |
| 1619 | ## File substitutions. ## |
| 1620 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1621 | _ASBOX |
| 1622 | echo |
| 1623 | for ac_var in $ac_subst_files |
| 1624 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1625 | eval ac_val=\$$ac_var |
| 1626 | case $ac_val in |
| 1627 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1628 | esac |
| 1629 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1630 | done | sort |
| 1631 | echo |
| 1632 | fi |
| 1633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1634 | if test -s confdefs.h; then |
| 1635 | cat <<\_ASBOX |
| 1636 | ## ----------- ## |
| 1637 | ## confdefs.h. ## |
| 1638 | ## ----------- ## |
| 1639 | _ASBOX |
| 1640 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1641 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1642 | echo |
| 1643 | fi |
| 1644 | test "$ac_signal" != 0 && |
| 1645 | echo "$as_me: caught signal $ac_signal" |
| 1646 | echo "$as_me: exit $exit_status" |
| 1647 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1648 | rm -f core *.core core.conftest.* && |
| 1649 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1650 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1651 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1652 | for ac_signal in 1 2 13 15; do |
| 1653 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1654 | done |
| 1655 | ac_signal=0 |
| 1656 | |
| 1657 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1658 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1659 | |
| 1660 | # Predefined preprocessor variables. |
| 1661 | |
| 1662 | cat >>confdefs.h <<_ACEOF |
| 1663 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1664 | _ACEOF |
| 1665 | |
| 1666 | |
| 1667 | cat >>confdefs.h <<_ACEOF |
| 1668 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1669 | _ACEOF |
| 1670 | |
| 1671 | |
| 1672 | cat >>confdefs.h <<_ACEOF |
| 1673 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1674 | _ACEOF |
| 1675 | |
| 1676 | |
| 1677 | cat >>confdefs.h <<_ACEOF |
| 1678 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1679 | _ACEOF |
| 1680 | |
| 1681 | |
| 1682 | cat >>confdefs.h <<_ACEOF |
| 1683 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1684 | _ACEOF |
| 1685 | |
| 1686 | |
| 1687 | # Let the site file select an alternate cache file if it wants to. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1688 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1689 | if test -n "$CONFIG_SITE"; then |
| 1690 | set x "$CONFIG_SITE" |
| 1691 | elif test "x$prefix" != xNONE; then |
| 1692 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1693 | else |
| 1694 | set x "$ac_default_prefix/share/config.site" \ |
| 1695 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1696 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1697 | shift |
| 1698 | for ac_site_file |
| 1699 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1700 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1701 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1702 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1703 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1704 | . "$ac_site_file" |
| 1705 | fi |
| 1706 | done |
| 1707 | |
| 1708 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | # Some versions of bash will fail to source /dev/null (special |
| 1710 | # files actually), so we avoid doing that. |
| 1711 | if test -f "$cache_file"; then |
| 1712 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1713 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1714 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1715 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1716 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1717 | esac |
| 1718 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1719 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1721 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1722 | >$cache_file |
| 1723 | fi |
| 1724 | |
| 1725 | # Check that the precious variables saved in the cache have kept the same |
| 1726 | # value. |
| 1727 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1728 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1729 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1730 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1731 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1732 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1733 | case $ac_old_set,$ac_new_set in |
| 1734 | set,) |
| 1735 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1736 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1737 | ac_cache_corrupted=: ;; |
| 1738 | ,set) |
| 1739 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1740 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1741 | ac_cache_corrupted=: ;; |
| 1742 | ,);; |
| 1743 | *) |
| 1744 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1745 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1746 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1747 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1748 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1749 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1750 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1751 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1752 | fi;; |
| 1753 | esac |
| 1754 | # Pass precious variables to config.status. |
| 1755 | if test "$ac_new_set" = set; then |
| 1756 | case $ac_new_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1757 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1758 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1759 | esac |
| 1760 | case " $ac_configure_args " in |
| 1761 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1762 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1763 | esac |
| 1764 | fi |
| 1765 | done |
| 1766 | if $ac_cache_corrupted; then |
| 1767 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1768 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1769 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1770 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1771 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1772 | fi |
| 1773 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1774 | |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1798 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1799 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1803 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1804 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1805 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1806 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1807 | |
| 1808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1809 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1810 | if test "$prefix" != "/"; then |
| 1811 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1812 | fi |
| 1813 | |
| 1814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1815 | |
| 1816 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1817 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1818 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1819 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1820 | # with other autoconf-based packages that include Python.h |
| 1821 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1822 | rm confdefs.h |
| 1823 | mv confdefs.h.new confdefs.h |
| 1824 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1825 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1826 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1827 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1828 | |
| 1829 | SOVERSION=1.0 |
| 1830 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1831 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1832 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1833 | |
| 1834 | cat >>confdefs.h <<\_ACEOF |
| 1835 | #define _GNU_SOURCE 1 |
| 1836 | _ACEOF |
| 1837 | |
| 1838 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1839 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1840 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1841 | # them. |
| 1842 | |
| 1843 | cat >>confdefs.h <<\_ACEOF |
| 1844 | #define _NETBSD_SOURCE 1 |
| 1845 | _ACEOF |
| 1846 | |
| 1847 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1848 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1849 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1850 | # them. |
| 1851 | |
| 1852 | cat >>confdefs.h <<\_ACEOF |
| 1853 | #define __BSD_VISIBLE 1 |
| 1854 | _ACEOF |
| 1855 | |
| 1856 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1857 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1858 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1859 | |
| 1860 | cat >>confdefs.h <<\_ACEOF |
| 1861 | #define _BSD_TYPES 1 |
| 1862 | _ACEOF |
| 1863 | |
| 1864 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1865 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1866 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1867 | # them. |
| 1868 | |
| 1869 | cat >>confdefs.h <<\_ACEOF |
| 1870 | #define _DARWIN_C_SOURCE 1 |
| 1871 | _ACEOF |
| 1872 | |
| 1873 | |
| 1874 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1875 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1876 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1877 | # Arguments passed to configure. |
| 1878 | |
| 1879 | CONFIG_ARGS="$ac_configure_args" |
| 1880 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1881 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1882 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1883 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1884 | case $enableval in |
| 1885 | yes) |
| 1886 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1887 | ;; |
| 1888 | esac |
| 1889 | case $enableval in |
| 1890 | no) |
| 1891 | UNIVERSALSDK= |
| 1892 | enable_universalsdk= |
| 1893 | ;; |
| 1894 | *) |
| 1895 | UNIVERSALSDK=$enableval |
| 1896 | ;; |
| 1897 | esac |
| 1898 | |
| 1899 | else |
| 1900 | |
| 1901 | UNIVERSALSDK= |
| 1902 | enable_universalsdk= |
| 1903 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1904 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1905 | |
| 1906 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1907 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1908 | ARCH_RUN_32BIT= |
| 1909 | |
| 1910 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1911 | UNIVERSAL_ARCHS="32-bit" |
| 1912 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1913 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
| 1914 | |
| 1915 | # Check whether --with-universal-archs was given. |
| 1916 | if test "${with_universal_archs+set}" = set; then |
| 1917 | withval=$with_universal_archs; |
| 1918 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1919 | echo "${ECHO_T}$withval" >&6; } |
| 1920 | UNIVERSAL_ARCHS="$withval" |
| 1921 | |
| 1922 | else |
| 1923 | |
| 1924 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1925 | echo "${ECHO_T}32-bit" >&6; } |
| 1926 | |
| 1927 | fi |
| 1928 | |
| 1929 | |
| 1930 | |
| 1931 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1932 | |
| 1933 | # Check whether --with-framework-name was given. |
| 1934 | if test "${with_framework_name+set}" = set; then |
| 1935 | withval=$with_framework_name; |
| 1936 | PYTHONFRAMEWORK=${withval} |
| 1937 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1938 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1939 | |
| 1940 | else |
| 1941 | |
| 1942 | PYTHONFRAMEWORK=Python |
| 1943 | PYTHONFRAMEWORKDIR=Python.framework |
| 1944 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1945 | |
| 1946 | fi |
| 1947 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1948 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1949 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1950 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1951 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1952 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1953 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1954 | esac |
| 1955 | case $enableval in |
| 1956 | no) |
| 1957 | PYTHONFRAMEWORK= |
| 1958 | PYTHONFRAMEWORKDIR=no-framework |
| 1959 | PYTHONFRAMEWORKPREFIX= |
| 1960 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1961 | FRAMEWORKINSTALLFIRST= |
| 1962 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1963 | FRAMEWORKALTINSTALLFIRST= |
| 1964 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1965 | if test "x${prefix}" = "xNONE"; then |
| 1966 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1967 | else |
| 1968 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1969 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1970 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1971 | ;; |
| 1972 | *) |
| 1973 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1974 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1975 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1976 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
| 1977 | if test "$UNIVERSAL_ARCHS" = "all" |
| 1978 | then |
| 1979 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 1980 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1981 | else |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 1982 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1983 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 1984 | fi |
| 1985 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1986 | if test "x${prefix}" = "xNONE" ; then |
| 1987 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1988 | else |
| 1989 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1990 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1991 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1992 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1993 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1994 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1995 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1996 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1997 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1998 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1999 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2000 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2001 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2002 | |
| 2003 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2004 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2005 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2006 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2008 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2009 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2010 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2011 | PYTHONFRAMEWORKPREFIX= |
| 2012 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2013 | FRAMEWORKINSTALLFIRST= |
| 2014 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2015 | FRAMEWORKALTINSTALLFIRST= |
| 2016 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2017 | if test "x${prefix}" = "xNONE" ; then |
| 2018 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2019 | else |
| 2020 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2021 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2022 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2023 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2024 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2025 | then |
| 2026 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2027 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2028 | fi |
| 2029 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2030 | fi |
| 2031 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2036 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2037 | |
| 2038 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2039 | |
| 2040 | |
| 2041 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2042 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2043 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2044 | ## AC_HELP_STRING(--with-dyld, |
| 2045 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2046 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2047 | # Set name for machine-dependent library files |
| 2048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2049 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2050 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2051 | if test -z "$MACHDEP" |
| 2052 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2053 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2054 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 2055 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2056 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2057 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2058 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2059 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2060 | ac_md_system=`echo $ac_sys_system | |
| 2061 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2062 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2063 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2064 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2065 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2066 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2067 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2068 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2069 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2070 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2071 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2072 | esac |
| 2073 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2074 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2075 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2076 | # disable features if it is defined, without any means to access these |
| 2077 | # features as extensions. For these systems, we skip the definition of |
| 2078 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2079 | # some feature, make sure there is no alternative way to access this |
| 2080 | # feature. Also, when using wildcards, make sure you have verified the |
| 2081 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2082 | # wildcard, and that the wildcard does not include future systems |
| 2083 | # (which may remove their limitations). |
| 2084 | case $ac_sys_system/$ac_sys_release in |
| 2085 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2086 | # 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] | 2087 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 2088 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2089 | define_xopen_source=no |
| 2090 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2091 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2092 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2093 | |
| 2094 | cat >>confdefs.h <<\_ACEOF |
| 2095 | #define _BSD_SOURCE 1 |
| 2096 | _ACEOF |
| 2097 | |
| 2098 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2099 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2100 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2101 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2102 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2103 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2104 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2105 | # of union __?sigval. Reported by Stuart Bishop. |
| 2106 | SunOS/5.6) |
| 2107 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2108 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2109 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2110 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2111 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2112 | define_xopen_source=no;; |
| 2113 | # 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] | 2114 | # 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] | 2115 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2116 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2117 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2118 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2119 | FreeBSD/4.*) |
| 2120 | define_xopen_source=no;; |
| 2121 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2122 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2123 | # identifies itself as Darwin/7.* |
| 2124 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2125 | # disables platform specific features beyond repair. |
| 2126 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2127 | # has no effect, don't bother defining them |
| 2128 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2129 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2130 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2131 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2132 | # 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] | 2133 | AIX/4) |
| 2134 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2135 | AIX/5) |
| 2136 | if test `uname -r` -eq 1; then |
| 2137 | define_xopen_source=no |
| 2138 | fi |
| 2139 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2140 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2141 | # defining NI_NUMERICHOST. |
| 2142 | QNX/6.3.2) |
| 2143 | define_xopen_source=no |
| 2144 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2145 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2146 | esac |
| 2147 | |
| 2148 | if test $define_xopen_source = yes |
| 2149 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2150 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2151 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2152 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2153 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2154 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2155 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2156 | |
| 2157 | cat >>confdefs.h <<\_ACEOF |
| 2158 | #define _XOPEN_SOURCE 500 |
| 2159 | _ACEOF |
| 2160 | |
| 2161 | ;; |
| 2162 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2163 | |
| 2164 | cat >>confdefs.h <<\_ACEOF |
| 2165 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2166 | _ACEOF |
| 2167 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2168 | ;; |
| 2169 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2170 | |
| 2171 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2172 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2173 | # several APIs are not declared. Since this is also needed in some |
| 2174 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2175 | # except for Solaris 10, where it must not be defined, |
| 2176 | # as it implies XPG4.2 |
| 2177 | case $ac_sys_system/$ac_sys_release in |
| 2178 | SunOS/5.10) |
| 2179 | ;; |
| 2180 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2181 | |
| 2182 | cat >>confdefs.h <<\_ACEOF |
| 2183 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2184 | _ACEOF |
| 2185 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2186 | ;; |
| 2187 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2188 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2189 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2190 | cat >>confdefs.h <<\_ACEOF |
| 2191 | #define _POSIX_C_SOURCE 200112L |
| 2192 | _ACEOF |
| 2193 | |
| 2194 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2195 | fi |
| 2196 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2197 | # |
| 2198 | # SGI compilers allow the specification of the both the ABI and the |
| 2199 | # ISA on the command line. Depending on the values of these switches, |
| 2200 | # different and often incompatable code will be generated. |
| 2201 | # |
| 2202 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2203 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2204 | # variable is also adjusted. |
| 2205 | # |
| 2206 | |
| 2207 | if test ! -z "$SGI_ABI" |
| 2208 | then |
| 2209 | CC="cc $SGI_ABI" |
| 2210 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2211 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2212 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2213 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2214 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2215 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2216 | # And add extra plat-mac for darwin |
| 2217 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2218 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2219 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2220 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2221 | if test -z "$EXTRAPLATDIR" |
| 2222 | then |
| 2223 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2224 | darwin) |
| 2225 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2226 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2227 | ;; |
| 2228 | *) |
| 2229 | EXTRAPLATDIR="" |
| 2230 | EXTRAMACHDEPPATH="" |
| 2231 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2232 | esac |
| 2233 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2234 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2235 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2236 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2237 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2238 | # it may influence the way we can build extensions, so distutils |
| 2239 | # needs to check it |
| 2240 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2241 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2242 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2243 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2244 | |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2245 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2246 | echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; } |
| 2247 | ac_sys_machine=`uname -m` |
| 2248 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2249 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
| 2250 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2251 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2252 | |
| 2253 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2254 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2255 | # just to get things to compile and link. Users are free to override OPT |
| 2256 | # when running configure or make. The build should not break if they do. |
| 2257 | # BASECFLAGS should generally not be messed with, however. |
| 2258 | |
| 2259 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2260 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2261 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2262 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2263 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2264 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2265 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2266 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2267 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2268 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2269 | without_gcc=yes;; |
| 2270 | yes) CC=gcc |
| 2271 | without_gcc=no;; |
| 2272 | *) CC=$withval |
| 2273 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2274 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2276 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2277 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2278 | AIX*) CC=cc_r |
| 2279 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2280 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2281 | case $BE_HOST_CPU in |
| 2282 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2283 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2284 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2285 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2286 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2287 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2288 | ;; |
| 2289 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2290 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2291 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2292 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2293 | ;; |
| 2294 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2295 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2296 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 2297 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2298 | ;; |
| 2299 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2300 | AR="\$(srcdir)/Modules/ar_beos" |
| 2301 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2302 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2303 | Monterey*) |
| 2304 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2305 | without_gcc=;; |
| 2306 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2307 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2308 | fi |
| 2309 | |
| 2310 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2311 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2312 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2313 | # If the user switches compilers, we can't believe the cache |
| 2314 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2315 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2316 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 2317 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 2318 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 2319 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2320 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2321 | fi |
| 2322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2323 | ac_ext=c |
| 2324 | ac_cpp='$CPP $CPPFLAGS' |
| 2325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2328 | if test -n "$ac_tool_prefix"; then |
| 2329 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2330 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2335 | else |
| 2336 | if test -n "$CC"; then |
| 2337 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2340 | for as_dir in $PATH |
| 2341 | do |
| 2342 | IFS=$as_save_IFS |
| 2343 | test -z "$as_dir" && as_dir=. |
| 2344 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2346 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2348 | break 2 |
| 2349 | fi |
| 2350 | done |
| 2351 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2352 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2353 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2354 | fi |
| 2355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2356 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2357 | if test -n "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2358 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2359 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2360 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2361 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2362 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2363 | fi |
| 2364 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2366 | fi |
| 2367 | if test -z "$ac_cv_prog_CC"; then |
| 2368 | ac_ct_CC=$CC |
| 2369 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2370 | set dummy gcc; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2371 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2373 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2375 | else |
| 2376 | if test -n "$ac_ct_CC"; then |
| 2377 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2378 | else |
| 2379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2380 | for as_dir in $PATH |
| 2381 | do |
| 2382 | IFS=$as_save_IFS |
| 2383 | test -z "$as_dir" && as_dir=. |
| 2384 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2385 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2386 | ac_cv_prog_ac_ct_CC="gcc" |
| 2387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2388 | break 2 |
| 2389 | fi |
| 2390 | done |
| 2391 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2392 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | |
| 2394 | fi |
| 2395 | fi |
| 2396 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2397 | if test -n "$ac_ct_CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2398 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2399 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2400 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2401 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2402 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2403 | fi |
| 2404 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2405 | if test "x$ac_ct_CC" = x; then |
| 2406 | CC="" |
| 2407 | else |
| 2408 | case $cross_compiling:$ac_tool_warned in |
| 2409 | yes:) |
| 2410 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2411 | whose name does not start with the host triplet. If you think this |
| 2412 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2413 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2414 | whose name does not start with the host triplet. If you think this |
| 2415 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2416 | ac_tool_warned=yes ;; |
| 2417 | esac |
| 2418 | CC=$ac_ct_CC |
| 2419 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | else |
| 2421 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2422 | fi |
| 2423 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2424 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2425 | if test -n "$ac_tool_prefix"; then |
| 2426 | # 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] | 2427 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2428 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2430 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2432 | else |
| 2433 | if test -n "$CC"; then |
| 2434 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2437 | for as_dir in $PATH |
| 2438 | do |
| 2439 | IFS=$as_save_IFS |
| 2440 | test -z "$as_dir" && as_dir=. |
| 2441 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2443 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2445 | break 2 |
| 2446 | fi |
| 2447 | done |
| 2448 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2449 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2450 | |
| 2451 | fi |
| 2452 | fi |
| 2453 | CC=$ac_cv_prog_CC |
| 2454 | if test -n "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2455 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2456 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2457 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2458 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2459 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2460 | fi |
| 2461 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2464 | fi |
| 2465 | if test -z "$CC"; then |
| 2466 | # Extract the first word of "cc", so it can be a program name with args. |
| 2467 | set dummy cc; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2468 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2472 | else |
| 2473 | if test -n "$CC"; then |
| 2474 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2475 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2476 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2478 | for as_dir in $PATH |
| 2479 | do |
| 2480 | IFS=$as_save_IFS |
| 2481 | test -z "$as_dir" && as_dir=. |
| 2482 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2485 | ac_prog_rejected=yes |
| 2486 | continue |
| 2487 | fi |
| 2488 | ac_cv_prog_CC="cc" |
| 2489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2490 | break 2 |
| 2491 | fi |
| 2492 | done |
| 2493 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2494 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2495 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2496 | if test $ac_prog_rejected = yes; then |
| 2497 | # We found a bogon in the path, so make sure we never use it. |
| 2498 | set dummy $ac_cv_prog_CC |
| 2499 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2500 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2501 | # We chose a different compiler from the bogus one. |
| 2502 | # However, it has the same basename, so the bogon will be chosen |
| 2503 | # first if we set CC to just the basename; use the full file name. |
| 2504 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2505 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2506 | fi |
| 2507 | fi |
| 2508 | fi |
| 2509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2511 | if test -n "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2512 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2513 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2514 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2515 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2516 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2517 | fi |
| 2518 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2519 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | fi |
| 2521 | if test -z "$CC"; then |
| 2522 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2523 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2524 | do |
| 2525 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2526 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2527 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2528 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2529 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2531 | else |
| 2532 | if test -n "$CC"; then |
| 2533 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2536 | for as_dir in $PATH |
| 2537 | do |
| 2538 | IFS=$as_save_IFS |
| 2539 | test -z "$as_dir" && as_dir=. |
| 2540 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2544 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2545 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2546 | done |
| 2547 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2548 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 | |
| 2550 | fi |
| 2551 | fi |
| 2552 | CC=$ac_cv_prog_CC |
| 2553 | if test -n "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2554 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2555 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2556 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2557 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2558 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2559 | fi |
| 2560 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | test -n "$CC" && break |
| 2563 | done |
| 2564 | fi |
| 2565 | if test -z "$CC"; then |
| 2566 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2567 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2568 | do |
| 2569 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2570 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2571 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2573 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2575 | else |
| 2576 | if test -n "$ac_ct_CC"; then |
| 2577 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2578 | else |
| 2579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2580 | for as_dir in $PATH |
| 2581 | do |
| 2582 | IFS=$as_save_IFS |
| 2583 | test -z "$as_dir" && as_dir=. |
| 2584 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2588 | break 2 |
| 2589 | fi |
| 2590 | done |
| 2591 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2592 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2594 | fi |
| 2595 | fi |
| 2596 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2597 | if test -n "$ac_ct_CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2598 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2599 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2600 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2601 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2602 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2603 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2604 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2606 | test -n "$ac_ct_CC" && break |
| 2607 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2608 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2609 | if test "x$ac_ct_CC" = x; then |
| 2610 | CC="" |
| 2611 | else |
| 2612 | case $cross_compiling:$ac_tool_warned in |
| 2613 | yes:) |
| 2614 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2615 | whose name does not start with the host triplet. If you think this |
| 2616 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2617 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2618 | whose name does not start with the host triplet. If you think this |
| 2619 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2620 | ac_tool_warned=yes ;; |
| 2621 | esac |
| 2622 | CC=$ac_ct_CC |
| 2623 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | fi |
| 2625 | |
| 2626 | fi |
| 2627 | |
| 2628 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2629 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2630 | See \`config.log' for more details." >&5 |
| 2631 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2632 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2633 | { (exit 1); exit 1; }; } |
| 2634 | |
| 2635 | # Provide some information about the compiler. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2636 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2638 | { (ac_try="$ac_compiler --version >&5" |
| 2639 | case "(($ac_try" in |
| 2640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2641 | *) ac_try_echo=$ac_try;; |
| 2642 | esac |
| 2643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2644 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2645 | ac_status=$? |
| 2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2647 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2648 | { (ac_try="$ac_compiler -v >&5" |
| 2649 | case "(($ac_try" in |
| 2650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2651 | *) ac_try_echo=$ac_try;; |
| 2652 | esac |
| 2653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2654 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2655 | ac_status=$? |
| 2656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2657 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2658 | { (ac_try="$ac_compiler -V >&5" |
| 2659 | case "(($ac_try" in |
| 2660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2661 | *) ac_try_echo=$ac_try;; |
| 2662 | esac |
| 2663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2664 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2665 | ac_status=$? |
| 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); } |
| 2668 | |
| 2669 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2670 | /* confdefs.h. */ |
| 2671 | _ACEOF |
| 2672 | cat confdefs.h >>conftest.$ac_ext |
| 2673 | cat >>conftest.$ac_ext <<_ACEOF |
| 2674 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | int |
| 2677 | main () |
| 2678 | { |
| 2679 | |
| 2680 | ; |
| 2681 | return 0; |
| 2682 | } |
| 2683 | _ACEOF |
| 2684 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2685 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2686 | # Try to create an executable without -o first, disregard a.out. |
| 2687 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2688 | # of exeext. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2689 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2690 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2691 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2692 | # |
| 2693 | # List of possible output files, starting from the most likely. |
| 2694 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2695 | # only as a last resort. b.out is created by i960 compilers. |
| 2696 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2697 | # |
| 2698 | # The IRIX 6 linker writes into existing files which may not be |
| 2699 | # executable, retaining their permissions. Remove them first so a |
| 2700 | # subsequent execution test works. |
| 2701 | ac_rmfiles= |
| 2702 | for ac_file in $ac_files |
| 2703 | do |
| 2704 | case $ac_file in |
| 2705 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2706 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2707 | esac |
| 2708 | done |
| 2709 | rm -f $ac_rmfiles |
| 2710 | |
| 2711 | if { (ac_try="$ac_link_default" |
| 2712 | case "(($ac_try" in |
| 2713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2714 | *) ac_try_echo=$ac_try;; |
| 2715 | esac |
| 2716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2717 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2718 | ac_status=$? |
| 2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2720 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2721 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2722 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2723 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2724 | # so that the user can short-circuit this test for compilers unknown to |
| 2725 | # Autoconf. |
| 2726 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2727 | do |
| 2728 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2729 | case $ac_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2730 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2731 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2732 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2733 | # We found the default executable, but exeext='' is most |
| 2734 | # certainly right. |
| 2735 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2736 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2737 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2738 | then :; else |
| 2739 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2740 | fi |
| 2741 | # We set ac_cv_exeext here because the later test for it is not |
| 2742 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2743 | # argument, so we may need to know it at that point already. |
| 2744 | # Even if this section looks crufty: it has the advantage of |
| 2745 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2746 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2747 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2748 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2749 | esac |
| 2750 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2751 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2752 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2753 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2754 | ac_file='' |
| 2755 | fi |
| 2756 | |
| 2757 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2758 | echo "${ECHO_T}$ac_file" >&6; } |
| 2759 | if test -z "$ac_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2762 | |
| 2763 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2764 | See \`config.log' for more details." >&5 |
| 2765 | echo "$as_me: error: C compiler cannot create executables |
| 2766 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2767 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2768 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2770 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2771 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2772 | # Check that the compiler produces executables we can run. If not, either |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2773 | # the compiler is broken, or we cross compile. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2774 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2775 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2776 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2777 | # If not cross compiling, check that we can run a simple program. |
| 2778 | if test "$cross_compiling" != yes; then |
| 2779 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2780 | { (case "(($ac_try" in |
| 2781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2782 | *) ac_try_echo=$ac_try;; |
| 2783 | esac |
| 2784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2785 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2786 | ac_status=$? |
| 2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2788 | (exit $ac_status); }; }; then |
| 2789 | cross_compiling=no |
| 2790 | else |
| 2791 | if test "$cross_compiling" = maybe; then |
| 2792 | cross_compiling=yes |
| 2793 | else |
| 2794 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2795 | If you meant to cross compile, use \`--host'. |
| 2796 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2797 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2798 | If you meant to cross compile, use \`--host'. |
| 2799 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2800 | { (exit 1); exit 1; }; } |
| 2801 | fi |
| 2802 | fi |
| 2803 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2804 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2805 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2806 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2807 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2808 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2809 | # Check that the compiler produces executables we can run. If not, either |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2810 | # the compiler is broken, or we cross compile. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2811 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2812 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2813 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2814 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2816 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2817 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2818 | if { (ac_try="$ac_link" |
| 2819 | case "(($ac_try" in |
| 2820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2821 | *) ac_try_echo=$ac_try;; |
| 2822 | esac |
| 2823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2824 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2825 | ac_status=$? |
| 2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2827 | (exit $ac_status); }; then |
| 2828 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2829 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2830 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2831 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2832 | for ac_file in conftest.exe conftest conftest.*; do |
| 2833 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2834 | case $ac_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2836 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2837 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2838 | * ) break;; |
| 2839 | esac |
| 2840 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2841 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2842 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2843 | See \`config.log' for more details." >&5 |
| 2844 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2845 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2846 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2847 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2849 | rm -f conftest$ac_cv_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2850 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2851 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2852 | |
| 2853 | rm -f conftest.$ac_ext |
| 2854 | EXEEXT=$ac_cv_exeext |
| 2855 | ac_exeext=$EXEEXT |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2856 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2857 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2858 | if test "${ac_cv_objext+set}" = set; then |
| 2859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2860 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2861 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2862 | /* confdefs.h. */ |
| 2863 | _ACEOF |
| 2864 | cat confdefs.h >>conftest.$ac_ext |
| 2865 | cat >>conftest.$ac_ext <<_ACEOF |
| 2866 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2868 | int |
| 2869 | main () |
| 2870 | { |
| 2871 | |
| 2872 | ; |
| 2873 | return 0; |
| 2874 | } |
| 2875 | _ACEOF |
| 2876 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2877 | if { (ac_try="$ac_compile" |
| 2878 | case "(($ac_try" in |
| 2879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2880 | *) ac_try_echo=$ac_try;; |
| 2881 | esac |
| 2882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2883 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2884 | ac_status=$? |
| 2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2886 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2887 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2888 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | case $ac_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2890 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2891 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2892 | break;; |
| 2893 | esac |
| 2894 | done |
| 2895 | else |
| 2896 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2898 | |
| 2899 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2900 | See \`config.log' for more details." >&5 |
| 2901 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2902 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2903 | { (exit 1); exit 1; }; } |
| 2904 | fi |
| 2905 | |
| 2906 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2907 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2908 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2909 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2910 | OBJEXT=$ac_cv_objext |
| 2911 | ac_objext=$OBJEXT |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2912 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2913 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2914 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2916 | else |
| 2917 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2918 | /* confdefs.h. */ |
| 2919 | _ACEOF |
| 2920 | cat confdefs.h >>conftest.$ac_ext |
| 2921 | cat >>conftest.$ac_ext <<_ACEOF |
| 2922 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2924 | int |
| 2925 | main () |
| 2926 | { |
| 2927 | #ifndef __GNUC__ |
| 2928 | choke me |
| 2929 | #endif |
| 2930 | |
| 2931 | ; |
| 2932 | return 0; |
| 2933 | } |
| 2934 | _ACEOF |
| 2935 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2936 | if { (ac_try="$ac_compile" |
| 2937 | case "(($ac_try" in |
| 2938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2939 | *) ac_try_echo=$ac_try;; |
| 2940 | esac |
| 2941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2942 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2943 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2945 | rm -f conftest.er1 |
| 2946 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2948 | (exit $ac_status); } && { |
| 2949 | test -z "$ac_c_werror_flag" || |
| 2950 | test ! -s conftest.err |
| 2951 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2952 | ac_compiler_gnu=yes |
| 2953 | else |
| 2954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2956 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2957 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2958 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2959 | |
| 2960 | 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] | 2961 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2962 | |
| 2963 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2964 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2965 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2966 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2967 | ac_test_CFLAGS=${CFLAGS+set} |
| 2968 | ac_save_CFLAGS=$CFLAGS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2969 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2970 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2971 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2973 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2974 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2975 | ac_c_werror_flag=yes |
| 2976 | ac_cv_prog_cc_g=no |
| 2977 | CFLAGS="-g" |
| 2978 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2979 | /* confdefs.h. */ |
| 2980 | _ACEOF |
| 2981 | cat confdefs.h >>conftest.$ac_ext |
| 2982 | cat >>conftest.$ac_ext <<_ACEOF |
| 2983 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2985 | int |
| 2986 | main () |
| 2987 | { |
| 2988 | |
| 2989 | ; |
| 2990 | return 0; |
| 2991 | } |
| 2992 | _ACEOF |
| 2993 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2994 | if { (ac_try="$ac_compile" |
| 2995 | case "(($ac_try" in |
| 2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2997 | *) ac_try_echo=$ac_try;; |
| 2998 | esac |
| 2999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3000 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3003 | rm -f conftest.er1 |
| 3004 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3006 | (exit $ac_status); } && { |
| 3007 | test -z "$ac_c_werror_flag" || |
| 3008 | test ! -s conftest.err |
| 3009 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3010 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3011 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3012 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3014 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3015 | CFLAGS="" |
| 3016 | cat >conftest.$ac_ext <<_ACEOF |
| 3017 | /* confdefs.h. */ |
| 3018 | _ACEOF |
| 3019 | cat confdefs.h >>conftest.$ac_ext |
| 3020 | cat >>conftest.$ac_ext <<_ACEOF |
| 3021 | /* end confdefs.h. */ |
| 3022 | |
| 3023 | int |
| 3024 | main () |
| 3025 | { |
| 3026 | |
| 3027 | ; |
| 3028 | return 0; |
| 3029 | } |
| 3030 | _ACEOF |
| 3031 | rm -f conftest.$ac_objext |
| 3032 | if { (ac_try="$ac_compile" |
| 3033 | case "(($ac_try" in |
| 3034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3035 | *) ac_try_echo=$ac_try;; |
| 3036 | esac |
| 3037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3038 | (eval "$ac_compile") 2>conftest.er1 |
| 3039 | ac_status=$? |
| 3040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3041 | rm -f conftest.er1 |
| 3042 | cat conftest.err >&5 |
| 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3044 | (exit $ac_status); } && { |
| 3045 | test -z "$ac_c_werror_flag" || |
| 3046 | test ! -s conftest.err |
| 3047 | } && test -s conftest.$ac_objext; then |
| 3048 | : |
| 3049 | else |
| 3050 | echo "$as_me: failed program was:" >&5 |
| 3051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3052 | |
| 3053 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3054 | CFLAGS="-g" |
| 3055 | cat >conftest.$ac_ext <<_ACEOF |
| 3056 | /* confdefs.h. */ |
| 3057 | _ACEOF |
| 3058 | cat confdefs.h >>conftest.$ac_ext |
| 3059 | cat >>conftest.$ac_ext <<_ACEOF |
| 3060 | /* end confdefs.h. */ |
| 3061 | |
| 3062 | int |
| 3063 | main () |
| 3064 | { |
| 3065 | |
| 3066 | ; |
| 3067 | return 0; |
| 3068 | } |
| 3069 | _ACEOF |
| 3070 | rm -f conftest.$ac_objext |
| 3071 | if { (ac_try="$ac_compile" |
| 3072 | case "(($ac_try" in |
| 3073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3074 | *) ac_try_echo=$ac_try;; |
| 3075 | esac |
| 3076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3077 | (eval "$ac_compile") 2>conftest.er1 |
| 3078 | ac_status=$? |
| 3079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3080 | rm -f conftest.er1 |
| 3081 | cat conftest.err >&5 |
| 3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3083 | (exit $ac_status); } && { |
| 3084 | test -z "$ac_c_werror_flag" || |
| 3085 | test ! -s conftest.err |
| 3086 | } && test -s conftest.$ac_objext; then |
| 3087 | ac_cv_prog_cc_g=yes |
| 3088 | else |
| 3089 | echo "$as_me: failed program was:" >&5 |
| 3090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3091 | |
| 3092 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3093 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3094 | |
| 3095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3096 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3097 | |
| 3098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3099 | fi |
| 3100 | |
| 3101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3102 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3103 | fi |
| 3104 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3105 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3106 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3107 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3108 | elif test $ac_cv_prog_cc_g = yes; then |
| 3109 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3110 | CFLAGS="-g -O2" |
| 3111 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3112 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3113 | fi |
| 3114 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3115 | if test "$GCC" = yes; then |
| 3116 | CFLAGS="-O2" |
| 3117 | else |
| 3118 | CFLAGS= |
| 3119 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3120 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3121 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3122 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3123 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3125 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3126 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3127 | ac_save_CC=$CC |
| 3128 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3129 | /* confdefs.h. */ |
| 3130 | _ACEOF |
| 3131 | cat confdefs.h >>conftest.$ac_ext |
| 3132 | cat >>conftest.$ac_ext <<_ACEOF |
| 3133 | /* end confdefs.h. */ |
| 3134 | #include <stdarg.h> |
| 3135 | #include <stdio.h> |
| 3136 | #include <sys/types.h> |
| 3137 | #include <sys/stat.h> |
| 3138 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3139 | struct buf { int x; }; |
| 3140 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3141 | static char *e (p, i) |
| 3142 | char **p; |
| 3143 | int i; |
| 3144 | { |
| 3145 | return p[i]; |
| 3146 | } |
| 3147 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3148 | { |
| 3149 | char *s; |
| 3150 | va_list v; |
| 3151 | va_start (v,p); |
| 3152 | s = g (p, va_arg (v,int)); |
| 3153 | va_end (v); |
| 3154 | return s; |
| 3155 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3156 | |
| 3157 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3158 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3159 | These don't provoke an error unfortunately, instead are silently treated |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3160 | 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] | 3161 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3162 | array size at least. It's necessary to write '\x00'==0 to get something |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3163 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3164 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3165 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3166 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3167 | inside strings and character constants. */ |
| 3168 | #define FOO(x) 'x' |
| 3169 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3170 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3171 | int test (int i, double x); |
| 3172 | struct s1 {int (*f) (int a);}; |
| 3173 | struct s2 {int (*f) (double a);}; |
| 3174 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3175 | int argc; |
| 3176 | char **argv; |
| 3177 | int |
| 3178 | main () |
| 3179 | { |
| 3180 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3181 | ; |
| 3182 | return 0; |
| 3183 | } |
| 3184 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3185 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3186 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3187 | do |
| 3188 | CC="$ac_save_CC $ac_arg" |
| 3189 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3190 | if { (ac_try="$ac_compile" |
| 3191 | case "(($ac_try" in |
| 3192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3193 | *) ac_try_echo=$ac_try;; |
| 3194 | esac |
| 3195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3196 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3197 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3199 | rm -f conftest.er1 |
| 3200 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3202 | (exit $ac_status); } && { |
| 3203 | test -z "$ac_c_werror_flag" || |
| 3204 | test ! -s conftest.err |
| 3205 | } && test -s conftest.$ac_objext; then |
| 3206 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3207 | else |
| 3208 | echo "$as_me: failed program was:" >&5 |
| 3209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3210 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3211 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3212 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3213 | |
| 3214 | rm -f core conftest.err conftest.$ac_objext |
| 3215 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3216 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3217 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3218 | CC=$ac_save_CC |
| 3219 | |
| 3220 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3221 | # AC_CACHE_VAL |
| 3222 | case "x$ac_cv_prog_cc_c89" in |
| 3223 | x) |
| 3224 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3225 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3226 | xno) |
| 3227 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3228 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3229 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3230 | CC="$CC $ac_cv_prog_cc_c89" |
| 3231 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3232 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3233 | esac |
| 3234 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3236 | ac_ext=c |
| 3237 | ac_cpp='$CPP $CPPFLAGS' |
| 3238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3241 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3242 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3243 | |
| 3244 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3245 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3246 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3247 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3248 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3249 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3250 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3251 | |
| 3252 | case $withval in |
| 3253 | no) with_cxx_main=no |
| 3254 | MAINCC='$(CC)';; |
| 3255 | yes) with_cxx_main=yes |
| 3256 | MAINCC='$(CXX)';; |
| 3257 | *) with_cxx_main=yes |
| 3258 | MAINCC=$withval |
| 3259 | if test -z "$CXX" |
| 3260 | then |
| 3261 | CXX=$withval |
| 3262 | fi;; |
| 3263 | esac |
| 3264 | else |
| 3265 | |
| 3266 | with_cxx_main=no |
| 3267 | MAINCC='$(CC)' |
| 3268 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3269 | fi |
| 3270 | |
| 3271 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3272 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3273 | |
| 3274 | preset_cxx="$CXX" |
| 3275 | if test -z "$CXX" |
| 3276 | then |
| 3277 | case "$CC" in |
| 3278 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3279 | set dummy g++; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3280 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3282 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3284 | else |
| 3285 | case $CXX in |
| 3286 | [\\/]* | ?:[\\/]*) |
| 3287 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3288 | ;; |
| 3289 | *) |
| 3290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3291 | for as_dir in notfound |
| 3292 | do |
| 3293 | IFS=$as_save_IFS |
| 3294 | test -z "$as_dir" && as_dir=. |
| 3295 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3297 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3299 | break 2 |
| 3300 | fi |
| 3301 | done |
| 3302 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3303 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3304 | |
| 3305 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3306 | ;; |
| 3307 | esac |
| 3308 | fi |
| 3309 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3310 | if test -n "$CXX"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3311 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3312 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3313 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3314 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3315 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3316 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3317 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3318 | ;; |
| 3319 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3320 | set dummy c++; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3321 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3323 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3325 | else |
| 3326 | case $CXX in |
| 3327 | [\\/]* | ?:[\\/]*) |
| 3328 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3329 | ;; |
| 3330 | *) |
| 3331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3332 | for as_dir in notfound |
| 3333 | do |
| 3334 | IFS=$as_save_IFS |
| 3335 | test -z "$as_dir" && as_dir=. |
| 3336 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3337 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3338 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3340 | break 2 |
| 3341 | fi |
| 3342 | done |
| 3343 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3344 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3345 | |
| 3346 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3347 | ;; |
| 3348 | esac |
| 3349 | fi |
| 3350 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3351 | if test -n "$CXX"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3352 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3353 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3354 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3355 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3356 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3357 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3358 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3359 | ;; |
| 3360 | esac |
| 3361 | if test "$CXX" = "notfound" |
| 3362 | then |
| 3363 | CXX="" |
| 3364 | fi |
| 3365 | fi |
| 3366 | if test -z "$CXX" |
| 3367 | then |
| 3368 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3369 | do |
| 3370 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3371 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3372 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3374 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3376 | else |
| 3377 | if test -n "$CXX"; then |
| 3378 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3379 | else |
| 3380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3381 | for as_dir in $PATH |
| 3382 | do |
| 3383 | IFS=$as_save_IFS |
| 3384 | test -z "$as_dir" && as_dir=. |
| 3385 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3387 | ac_cv_prog_CXX="$ac_prog" |
| 3388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3389 | break 2 |
| 3390 | fi |
| 3391 | done |
| 3392 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3393 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3394 | |
| 3395 | fi |
| 3396 | fi |
| 3397 | CXX=$ac_cv_prog_CXX |
| 3398 | if test -n "$CXX"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3399 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3400 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3401 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3402 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3403 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3404 | fi |
| 3405 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3406 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3407 | test -n "$CXX" && break |
| 3408 | done |
| 3409 | test -n "$CXX" || CXX="notfound" |
| 3410 | |
| 3411 | if test "$CXX" = "notfound" |
| 3412 | then |
| 3413 | CXX="" |
| 3414 | fi |
| 3415 | fi |
| 3416 | if test "$preset_cxx" != "$CXX" |
| 3417 | then |
| 3418 | { echo "$as_me:$LINENO: WARNING: |
| 3419 | |
| 3420 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3421 | If this is not intended, then set CXX on the configure command line. |
| 3422 | " >&5 |
| 3423 | echo "$as_me: WARNING: |
| 3424 | |
| 3425 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3426 | If this is not intended, then set CXX on the configure command line. |
| 3427 | " >&2;} |
| 3428 | fi |
| 3429 | |
| 3430 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3431 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | |
| 3433 | ac_ext=c |
| 3434 | ac_cpp='$CPP $CPPFLAGS' |
| 3435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3438 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3439 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3440 | # On Suns, sometimes $CPP names a directory. |
| 3441 | if test -n "$CPP" && test -d "$CPP"; then |
| 3442 | CPP= |
| 3443 | fi |
| 3444 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3445 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3448 | # Double quotes because CPP needs to be expanded |
| 3449 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3450 | do |
| 3451 | ac_preproc_ok=false |
| 3452 | for ac_c_preproc_warn_flag in '' yes |
| 3453 | do |
| 3454 | # Use a header file that comes with gcc, so configuring glibc |
| 3455 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3456 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3457 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3458 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3459 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3460 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3461 | /* confdefs.h. */ |
| 3462 | _ACEOF |
| 3463 | cat confdefs.h >>conftest.$ac_ext |
| 3464 | cat >>conftest.$ac_ext <<_ACEOF |
| 3465 | /* end confdefs.h. */ |
| 3466 | #ifdef __STDC__ |
| 3467 | # include <limits.h> |
| 3468 | #else |
| 3469 | # include <assert.h> |
| 3470 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3471 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3472 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3473 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3474 | case "(($ac_try" in |
| 3475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3476 | *) ac_try_echo=$ac_try;; |
| 3477 | esac |
| 3478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3479 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3480 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3481 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 | rm -f conftest.er1 |
| 3483 | cat conftest.err >&5 |
| 3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3485 | (exit $ac_status); } >/dev/null && { |
| 3486 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3487 | test ! -s conftest.err |
| 3488 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3489 | : |
| 3490 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3494 | # Broken: fails on valid input. |
| 3495 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3496 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3499 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3500 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3501 | # can be detected and how. |
| 3502 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3503 | /* confdefs.h. */ |
| 3504 | _ACEOF |
| 3505 | cat confdefs.h >>conftest.$ac_ext |
| 3506 | cat >>conftest.$ac_ext <<_ACEOF |
| 3507 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3508 | #include <ac_nonexistent.h> |
| 3509 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3510 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3511 | case "(($ac_try" in |
| 3512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3513 | *) ac_try_echo=$ac_try;; |
| 3514 | esac |
| 3515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3516 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3518 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3519 | rm -f conftest.er1 |
| 3520 | cat conftest.err >&5 |
| 3521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3522 | (exit $ac_status); } >/dev/null && { |
| 3523 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3524 | test ! -s conftest.err |
| 3525 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3526 | # Broken: success on invalid input. |
| 3527 | continue |
| 3528 | else |
| 3529 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3532 | # Passes both tests. |
| 3533 | ac_preproc_ok=: |
| 3534 | break |
| 3535 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | rm -f conftest.err conftest.$ac_ext |
| 3538 | |
| 3539 | done |
| 3540 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3541 | rm -f conftest.err conftest.$ac_ext |
| 3542 | if $ac_preproc_ok; then |
| 3543 | break |
| 3544 | fi |
| 3545 | |
| 3546 | done |
| 3547 | ac_cv_prog_CPP=$CPP |
| 3548 | |
| 3549 | fi |
| 3550 | CPP=$ac_cv_prog_CPP |
| 3551 | else |
| 3552 | ac_cv_prog_CPP=$CPP |
| 3553 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3554 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3555 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3556 | ac_preproc_ok=false |
| 3557 | for ac_c_preproc_warn_flag in '' yes |
| 3558 | do |
| 3559 | # Use a header file that comes with gcc, so configuring glibc |
| 3560 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3561 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3562 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3563 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3564 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3565 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3566 | /* confdefs.h. */ |
| 3567 | _ACEOF |
| 3568 | cat confdefs.h >>conftest.$ac_ext |
| 3569 | cat >>conftest.$ac_ext <<_ACEOF |
| 3570 | /* end confdefs.h. */ |
| 3571 | #ifdef __STDC__ |
| 3572 | # include <limits.h> |
| 3573 | #else |
| 3574 | # include <assert.h> |
| 3575 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3576 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3577 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3578 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3579 | case "(($ac_try" in |
| 3580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3581 | *) ac_try_echo=$ac_try;; |
| 3582 | esac |
| 3583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3584 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3585 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3586 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | rm -f conftest.er1 |
| 3588 | cat conftest.err >&5 |
| 3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3590 | (exit $ac_status); } >/dev/null && { |
| 3591 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3592 | test ! -s conftest.err |
| 3593 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3594 | : |
| 3595 | else |
| 3596 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3599 | # Broken: fails on valid input. |
| 3600 | continue |
| 3601 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3603 | rm -f conftest.err conftest.$ac_ext |
| 3604 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3605 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | # can be detected and how. |
| 3607 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3608 | /* confdefs.h. */ |
| 3609 | _ACEOF |
| 3610 | cat confdefs.h >>conftest.$ac_ext |
| 3611 | cat >>conftest.$ac_ext <<_ACEOF |
| 3612 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 | #include <ac_nonexistent.h> |
| 3614 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3615 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3616 | case "(($ac_try" in |
| 3617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3618 | *) ac_try_echo=$ac_try;; |
| 3619 | esac |
| 3620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3621 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3622 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3623 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3624 | rm -f conftest.er1 |
| 3625 | cat conftest.err >&5 |
| 3626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3627 | (exit $ac_status); } >/dev/null && { |
| 3628 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3629 | test ! -s conftest.err |
| 3630 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3631 | # Broken: success on invalid input. |
| 3632 | continue |
| 3633 | else |
| 3634 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3637 | # Passes both tests. |
| 3638 | ac_preproc_ok=: |
| 3639 | break |
| 3640 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3642 | rm -f conftest.err conftest.$ac_ext |
| 3643 | |
| 3644 | done |
| 3645 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3646 | rm -f conftest.err conftest.$ac_ext |
| 3647 | if $ac_preproc_ok; then |
| 3648 | : |
| 3649 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3650 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3651 | See \`config.log' for more details." >&5 |
| 3652 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3653 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3654 | { (exit 1); exit 1; }; } |
| 3655 | fi |
| 3656 | |
| 3657 | ac_ext=c |
| 3658 | ac_cpp='$CPP $CPPFLAGS' |
| 3659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3662 | |
| 3663 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3664 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3665 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3666 | if test "${ac_cv_path_GREP+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3668 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3669 | # Extract the first word of "grep ggrep" to use in msg output |
| 3670 | if test -z "$GREP"; then |
| 3671 | set dummy grep ggrep; ac_prog_name=$2 |
| 3672 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3674 | else |
| 3675 | ac_path_GREP_found=false |
| 3676 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3678 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3679 | do |
| 3680 | IFS=$as_save_IFS |
| 3681 | test -z "$as_dir" && as_dir=. |
| 3682 | for ac_prog in grep ggrep; do |
| 3683 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3684 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3685 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3686 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3687 | # Check for GNU $ac_path_GREP |
| 3688 | case `"$ac_path_GREP" --version 2>&1` in |
| 3689 | *GNU*) |
| 3690 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3691 | *) |
| 3692 | ac_count=0 |
| 3693 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3694 | while : |
| 3695 | do |
| 3696 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3697 | mv "conftest.tmp" "conftest.in" |
| 3698 | cp "conftest.in" "conftest.nl" |
| 3699 | echo 'GREP' >> "conftest.nl" |
| 3700 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3701 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3702 | ac_count=`expr $ac_count + 1` |
| 3703 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3704 | # Best one so far, save it but keep looking for a better one |
| 3705 | ac_cv_path_GREP="$ac_path_GREP" |
| 3706 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3707 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3708 | # 10*(2^10) chars as input seems more than enough |
| 3709 | test $ac_count -gt 10 && break |
| 3710 | done |
| 3711 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3712 | esac |
| 3713 | |
| 3714 | |
| 3715 | $ac_path_GREP_found && break 3 |
| 3716 | done |
| 3717 | done |
| 3718 | |
| 3719 | done |
| 3720 | IFS=$as_save_IFS |
| 3721 | |
| 3722 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3723 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3724 | |
| 3725 | GREP="$ac_cv_path_GREP" |
| 3726 | if test -z "$GREP"; then |
| 3727 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3728 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3729 | { (exit 1); exit 1; }; } |
| 3730 | fi |
| 3731 | |
| 3732 | else |
| 3733 | ac_cv_path_GREP=$GREP |
| 3734 | fi |
| 3735 | |
| 3736 | |
| 3737 | fi |
| 3738 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3739 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3740 | GREP="$ac_cv_path_GREP" |
| 3741 | |
| 3742 | |
| 3743 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3744 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3745 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3747 | else |
| 3748 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3749 | then ac_cv_path_EGREP="$GREP -E" |
| 3750 | else |
| 3751 | # Extract the first word of "egrep" to use in msg output |
| 3752 | if test -z "$EGREP"; then |
| 3753 | set dummy egrep; ac_prog_name=$2 |
| 3754 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3756 | else |
| 3757 | ac_path_EGREP_found=false |
| 3758 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3760 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3761 | do |
| 3762 | IFS=$as_save_IFS |
| 3763 | test -z "$as_dir" && as_dir=. |
| 3764 | for ac_prog in egrep; do |
| 3765 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3766 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3767 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3768 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3769 | # Check for GNU $ac_path_EGREP |
| 3770 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3771 | *GNU*) |
| 3772 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3773 | *) |
| 3774 | ac_count=0 |
| 3775 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3776 | while : |
| 3777 | do |
| 3778 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3779 | mv "conftest.tmp" "conftest.in" |
| 3780 | cp "conftest.in" "conftest.nl" |
| 3781 | echo 'EGREP' >> "conftest.nl" |
| 3782 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3783 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3784 | ac_count=`expr $ac_count + 1` |
| 3785 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3786 | # Best one so far, save it but keep looking for a better one |
| 3787 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3788 | ac_path_EGREP_max=$ac_count |
| 3789 | fi |
| 3790 | # 10*(2^10) chars as input seems more than enough |
| 3791 | test $ac_count -gt 10 && break |
| 3792 | done |
| 3793 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3794 | esac |
| 3795 | |
| 3796 | |
| 3797 | $ac_path_EGREP_found && break 3 |
| 3798 | done |
| 3799 | done |
| 3800 | |
| 3801 | done |
| 3802 | IFS=$as_save_IFS |
| 3803 | |
| 3804 | |
| 3805 | fi |
| 3806 | |
| 3807 | EGREP="$ac_cv_path_EGREP" |
| 3808 | if test -z "$EGREP"; then |
| 3809 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3810 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3811 | { (exit 1); exit 1; }; } |
| 3812 | fi |
| 3813 | |
| 3814 | else |
| 3815 | ac_cv_path_EGREP=$EGREP |
| 3816 | fi |
| 3817 | |
| 3818 | |
| 3819 | fi |
| 3820 | fi |
| 3821 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3822 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3823 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3824 | |
| 3825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3826 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3827 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3828 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3830 | /* confdefs.h. */ |
| 3831 | _ACEOF |
| 3832 | cat confdefs.h >>conftest.$ac_ext |
| 3833 | cat >>conftest.$ac_ext <<_ACEOF |
| 3834 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3835 | #ifdef _AIX |
| 3836 | yes |
| 3837 | #endif |
| 3838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3839 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3841 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3842 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3843 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3844 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3845 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3846 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3847 | |
| 3848 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3849 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3850 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3851 | fi |
| 3852 | rm -f conftest* |
| 3853 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3854 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3855 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3856 | # Check for unsupported systems |
| 3857 | case $ac_sys_system/$ac_sys_release in |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 3858 | atheos*|Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3859 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3860 | echo See README for details. |
| 3861 | exit 1;; |
| 3862 | esac |
| 3863 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3864 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3865 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3866 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3867 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3868 | # Check whether --with-suffix was given. |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3869 | if test "${with_suffix+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3870 | withval=$with_suffix; |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3871 | case $withval in |
| 3872 | no) EXEEXT=;; |
| 3873 | yes) EXEEXT=.exe;; |
| 3874 | *) EXEEXT=$withval;; |
| 3875 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3876 | fi |
| 3877 | |
| 3878 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3879 | echo "${ECHO_T}$EXEEXT" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3880 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3881 | # Test whether we're running on a non-case-sensitive system, in which |
| 3882 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3883 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3884 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3885 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3886 | if test ! -d CaseSensitiveTestDir; then |
| 3887 | mkdir CaseSensitiveTestDir |
| 3888 | fi |
| 3889 | |
| 3890 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3891 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3892 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3893 | echo "${ECHO_T}yes" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3894 | BUILDEXEEXT=.exe |
| 3895 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3896 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3897 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3898 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3899 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3900 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3901 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3902 | case $MACHDEP in |
| 3903 | bsdos*) |
| 3904 | case $CC in |
| 3905 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3906 | esac;; |
| 3907 | esac |
| 3908 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3909 | case $ac_sys_system in |
| 3910 | hp*|HP*) |
| 3911 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3912 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3913 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3914 | Monterey*) |
| 3915 | case $CC in |
| 3916 | cc) CC="$CC -Wl,-Bexport";; |
| 3917 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3918 | SunOS*) |
| 3919 | # Some functions have a prototype only with that define, e.g. confstr |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3920 | |
| 3921 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3922 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3923 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3924 | |
| 3925 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3926 | esac |
| 3927 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3928 | |
| 3929 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3930 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3931 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3932 | if test -z "$LIBRARY" |
| 3933 | then |
| 3934 | LIBRARY='libpython$(VERSION).a' |
| 3935 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3936 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3937 | echo "${ECHO_T}$LIBRARY" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3938 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3939 | # LDLIBRARY is the name of the library to link against (as opposed to the |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3940 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3941 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3942 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3943 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3944 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3945 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3946 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3947 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3948 | # RUNSHARED is used to run shared python without installed libraries |
| 3949 | # |
| 3950 | # INSTSONAME is the name of the shared library that will be use to install |
| 3951 | # on the system - some systems like version suffix, others don't |
| 3952 | |
| 3953 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3954 | |
| 3955 | |
| 3956 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3957 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3958 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3959 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3960 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3961 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3962 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3963 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3964 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3965 | # LINKCC is the command that links the python executable -- default is $(CC). |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3966 | # If CXX is set, and if it is needed to link a main function that was |
| 3967 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3968 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3969 | # This is altered for AIX in order to build the export list before |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3970 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3971 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3972 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3973 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3974 | if test -z "$LINKCC" |
| 3975 | then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3976 | LINKCC='$(PURIFY) $(MAINCC)' |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3977 | case $ac_sys_system in |
| 3978 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3979 | exp_extra="\"\"" |
| 3980 | if test $ac_sys_release -ge 5 -o \ |
| 3981 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3982 | exp_extra="." |
| 3983 | fi |
| 3984 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3985 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3986 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 3987 | QNX*) |
| 3988 | # qcc must be used because the other compilers do not |
| 3989 | # support -N. |
| 3990 | LINKCC=qcc;; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3991 | esac |
| 3992 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3993 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3994 | echo "${ECHO_T}$LINKCC" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3995 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3996 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3997 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
| 3998 | # Check whether --enable-shared was given. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3999 | if test "${enable_shared+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4000 | enableval=$enable_shared; |
| 4001 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4002 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4003 | |
| 4004 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4005 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 4006 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4007 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 4008 | enable_shared="yes";; |
| 4009 | *) |
| 4010 | enable_shared="no";; |
| 4011 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4012 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4013 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4014 | echo "${ECHO_T}$enable_shared" >&6; } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4015 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4016 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4017 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
| 4018 | # Check whether --enable-profiling was given. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4019 | if test "${enable_profiling+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4020 | enableval=$enable_profiling; ac_save_cc="$CC" |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4021 | CC="$CC -pg" |
| 4022 | if test "$cross_compiling" = yes; then |
| 4023 | ac_enable_profiling="no" |
| 4024 | else |
| 4025 | cat >conftest.$ac_ext <<_ACEOF |
| 4026 | /* confdefs.h. */ |
| 4027 | _ACEOF |
| 4028 | cat confdefs.h >>conftest.$ac_ext |
| 4029 | cat >>conftest.$ac_ext <<_ACEOF |
| 4030 | /* end confdefs.h. */ |
| 4031 | int main() { return 0; } |
| 4032 | _ACEOF |
| 4033 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4034 | if { (ac_try="$ac_link" |
| 4035 | case "(($ac_try" in |
| 4036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4037 | *) ac_try_echo=$ac_try;; |
| 4038 | esac |
| 4039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4040 | (eval "$ac_link") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4041 | ac_status=$? |
| 4042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4043 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4044 | { (case "(($ac_try" in |
| 4045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4046 | *) ac_try_echo=$ac_try;; |
| 4047 | esac |
| 4048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4049 | (eval "$ac_try") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4050 | ac_status=$? |
| 4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4052 | (exit $ac_status); }; }; then |
| 4053 | ac_enable_profiling="yes" |
| 4054 | else |
| 4055 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4056 | echo "$as_me: failed program was:" >&5 |
| 4057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4058 | |
| 4059 | ( exit $ac_status ) |
| 4060 | ac_enable_profiling="no" |
| 4061 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4062 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4063 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4064 | |
| 4065 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4066 | CC="$ac_save_cc" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4067 | fi |
| 4068 | |
| 4069 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4070 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 4071 | |
| 4072 | case "$ac_enable_profiling" in |
| 4073 | "yes") |
| 4074 | BASECFLAGS="-pg $BASECFLAGS" |
| 4075 | LDFLAGS="-pg $LDFLAGS" |
| 4076 | ;; |
| 4077 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4078 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4079 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4080 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4081 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 4082 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4083 | # library that we build, but we do not want to link against it (we |
| 4084 | # will find it with a -framework option). For this reason there is an |
| 4085 | # extra variable BLDLIBRARY against which Python and the extension |
| 4086 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4087 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4088 | if test "$enable_framework" |
| 4089 | then |
| 4090 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 4091 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4092 | BLDLIBRARY='' |
| 4093 | else |
| 4094 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4095 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4096 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4097 | # Other platforms follow |
| 4098 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 4099 | |
| 4100 | cat >>confdefs.h <<\_ACEOF |
| 4101 | #define Py_ENABLE_SHARED 1 |
| 4102 | _ACEOF |
| 4103 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4104 | case $ac_sys_system in |
| 4105 | BeOS*) |
| 4106 | LDLIBRARY='libpython$(VERSION).so' |
| 4107 | ;; |
| 4108 | CYGWIN*) |
| 4109 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4110 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4111 | ;; |
| 4112 | SunOS*) |
| 4113 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 4114 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4115 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 4116 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4117 | ;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 4118 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4119 | LDLIBRARY='libpython$(VERSION).so' |
| 4120 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4121 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 4122 | case $ac_sys_system in |
| 4123 | FreeBSD*) |
| 4124 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4125 | ;; |
| 4126 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4127 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4128 | ;; |
| 4129 | hp*|HP*) |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 4130 | case `uname -m` in |
| 4131 | ia64) |
| 4132 | LDLIBRARY='libpython$(VERSION).so' |
| 4133 | ;; |
| 4134 | *) |
| 4135 | LDLIBRARY='libpython$(VERSION).sl' |
| 4136 | ;; |
| 4137 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4138 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4139 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4140 | ;; |
| 4141 | OSF*) |
| 4142 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 4143 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4144 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4145 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4146 | atheos*) |
| 4147 | LDLIBRARY='libpython$(VERSION).so' |
| 4148 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4149 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4150 | ;; |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 4151 | Darwin*) |
| 4152 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4153 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4154 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4155 | ;; |
| 4156 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4157 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 4158 | else # shared is disabled |
| 4159 | case $ac_sys_system in |
| 4160 | CYGWIN*) |
| 4161 | BLDLIBRARY='$(LIBRARY)' |
| 4162 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4163 | ;; |
| 4164 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4165 | fi |
| 4166 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4167 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4168 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4170 | if test -n "$ac_tool_prefix"; then |
| 4171 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4172 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4173 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4175 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4177 | else |
| 4178 | if test -n "$RANLIB"; then |
| 4179 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4182 | for as_dir in $PATH |
| 4183 | do |
| 4184 | IFS=$as_save_IFS |
| 4185 | test -z "$as_dir" && as_dir=. |
| 4186 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4188 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4190 | break 2 |
| 4191 | fi |
| 4192 | done |
| 4193 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4194 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4195 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4196 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4197 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4199 | if test -n "$RANLIB"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4200 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4201 | echo "${ECHO_T}$RANLIB" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4202 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4204 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4205 | fi |
| 4206 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4208 | fi |
| 4209 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4210 | ac_ct_RANLIB=$RANLIB |
| 4211 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4212 | set dummy ranlib; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4213 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4215 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4217 | else |
| 4218 | if test -n "$ac_ct_RANLIB"; then |
| 4219 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4220 | else |
| 4221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4222 | for as_dir in $PATH |
| 4223 | do |
| 4224 | IFS=$as_save_IFS |
| 4225 | test -z "$as_dir" && as_dir=. |
| 4226 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4228 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4230 | break 2 |
| 4231 | fi |
| 4232 | done |
| 4233 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4234 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4236 | fi |
| 4237 | fi |
| 4238 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4239 | if test -n "$ac_ct_RANLIB"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4240 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4241 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4242 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4243 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4244 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4245 | fi |
| 4246 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4247 | if test "x$ac_ct_RANLIB" = x; then |
| 4248 | RANLIB=":" |
| 4249 | else |
| 4250 | case $cross_compiling:$ac_tool_warned in |
| 4251 | yes:) |
| 4252 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4253 | whose name does not start with the host triplet. If you think this |
| 4254 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4255 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4256 | whose name does not start with the host triplet. If you think this |
| 4257 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4258 | ac_tool_warned=yes ;; |
| 4259 | esac |
| 4260 | RANLIB=$ac_ct_RANLIB |
| 4261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4262 | else |
| 4263 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4264 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4265 | |
| 4266 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4267 | for ac_prog in ar aal |
| 4268 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4269 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4270 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4271 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4273 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4275 | else |
| 4276 | if test -n "$AR"; then |
| 4277 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4278 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4280 | for as_dir in $PATH |
| 4281 | do |
| 4282 | IFS=$as_save_IFS |
| 4283 | test -z "$as_dir" && as_dir=. |
| 4284 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4286 | ac_cv_prog_AR="$ac_prog" |
| 4287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4288 | break 2 |
| 4289 | fi |
| 4290 | done |
| 4291 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4292 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4293 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4294 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4295 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4296 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4297 | if test -n "$AR"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4298 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4299 | echo "${ECHO_T}$AR" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4300 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4301 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4302 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4303 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4304 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4307 | done |
| 4308 | test -n "$AR" || AR="ar" |
| 4309 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4310 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4311 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4312 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4313 | set dummy svnversion; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4314 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4316 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 4317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4318 | else |
| 4319 | if test -n "$SVNVERSION"; then |
| 4320 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4321 | else |
| 4322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4323 | for as_dir in $PATH |
| 4324 | do |
| 4325 | IFS=$as_save_IFS |
| 4326 | test -z "$as_dir" && as_dir=. |
| 4327 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4329 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4331 | break 2 |
| 4332 | fi |
| 4333 | done |
| 4334 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4335 | IFS=$as_save_IFS |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4336 | |
Martin v. Löwis | ff60023 | 2006-04-03 19:12:32 +0000 | [diff] [blame] | 4337 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4338 | fi |
| 4339 | fi |
| 4340 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4341 | if test -n "$SVNVERSION"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4342 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4343 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4344 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4345 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4346 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4347 | fi |
| 4348 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4349 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4350 | if test $SVNVERSION = found |
| 4351 | then |
| 4352 | SVNVERSION="svnversion \$(srcdir)" |
| 4353 | else |
| 4354 | SVNVERSION="echo exported" |
| 4355 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4356 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4357 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 4358 | bsdos*|hp*|HP*) |
| 4359 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4360 | if test -z "$INSTALL" |
| 4361 | then |
| 4362 | INSTALL="${srcdir}/install-sh -c" |
| 4363 | fi |
| 4364 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4365 | ac_aux_dir= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4366 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4367 | if test -f "$ac_dir/install-sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4368 | ac_aux_dir=$ac_dir |
| 4369 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4370 | break |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4371 | elif test -f "$ac_dir/install.sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4372 | ac_aux_dir=$ac_dir |
| 4373 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4374 | break |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4375 | elif test -f "$ac_dir/shtool"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4376 | ac_aux_dir=$ac_dir |
| 4377 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4378 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4379 | fi |
| 4380 | done |
| 4381 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4382 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4383 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4384 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4385 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4386 | |
| 4387 | # These three variables are undocumented and unsupported, |
| 4388 | # and are intended to be withdrawn in a future Autoconf release. |
| 4389 | # They can cause serious problems if a builder's source tree is in a directory |
| 4390 | # whose full name contains unusual characters. |
| 4391 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4392 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4393 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4394 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4395 | |
| 4396 | # Find a good install program. We prefer a C program (faster), |
| 4397 | # so one script is as good as another. But avoid the broken or |
| 4398 | # incompatible versions: |
| 4399 | # SysV /etc/install, /usr/sbin/install |
| 4400 | # SunOS /usr/etc/install |
| 4401 | # IRIX /sbin/install |
| 4402 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4403 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4404 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4405 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4406 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4407 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4408 | # ./install, which can be erroneously created by make from ./install.sh. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4409 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4410 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4411 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4412 | if test "${ac_cv_path_install+set}" = set; then |
| 4413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4416 | for as_dir in $PATH |
| 4417 | do |
| 4418 | IFS=$as_save_IFS |
| 4419 | test -z "$as_dir" && as_dir=. |
| 4420 | # Account for people who put trailing slashes in PATH elements. |
| 4421 | case $as_dir/ in |
| 4422 | ./ | .// | /cC/* | \ |
| 4423 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4424 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4425 | /usr/ucb/* ) ;; |
| 4426 | *) |
| 4427 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4428 | # Don't use installbsd from OSF since it installs stuff as root |
| 4429 | # by default. |
| 4430 | for ac_prog in ginstall scoinst install; do |
| 4431 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4432 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4433 | if test $ac_prog = install && |
| 4434 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4435 | # AIX install. It has an incompatible calling convention. |
| 4436 | : |
| 4437 | elif test $ac_prog = install && |
| 4438 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4439 | # program-specific install script used by HP pwplus--don't use. |
| 4440 | : |
| 4441 | else |
| 4442 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4443 | break 3 |
| 4444 | fi |
| 4445 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4446 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4447 | done |
| 4448 | ;; |
| 4449 | esac |
| 4450 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4451 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4452 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4453 | |
| 4454 | fi |
| 4455 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4456 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4457 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4458 | # As a last resort, use the slow shell script. Don't cache a |
| 4459 | # value for INSTALL within a source directory, because that will |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4460 | # break other packages using the cache if that directory is |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4461 | # removed, or if the value is a relative name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4462 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4463 | fi |
| 4464 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4465 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4466 | echo "${ECHO_T}$INSTALL" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4467 | |
| 4468 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4469 | # It thinks the first close brace ends the variable substitution. |
| 4470 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4472 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4473 | |
| 4474 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4475 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4476 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4477 | # Not every filesystem supports hard links |
| 4478 | |
| 4479 | if test -z "$LN" ; then |
| 4480 | case $ac_sys_system in |
| 4481 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 4482 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4483 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4484 | *) LN=ln;; |
| 4485 | esac |
| 4486 | fi |
| 4487 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4488 | # Check for --with-pydebug |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4489 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4490 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4492 | # Check whether --with-pydebug was given. |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4493 | if test "${with_pydebug+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4494 | withval=$with_pydebug; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4495 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4496 | then |
| 4497 | |
| 4498 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4499 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4500 | _ACEOF |
| 4501 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4502 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4503 | echo "${ECHO_T}yes" >&6; }; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4504 | Py_DEBUG='true' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4505 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4506 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4507 | fi |
| 4508 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4509 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4510 | echo "${ECHO_T}no" >&6; } |
| 4511 | fi |
| 4512 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4513 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4514 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4515 | # merged with this chunk of code? |
| 4516 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4517 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4518 | # ------------------------ |
| 4519 | # (The following bit of code is complicated enough - please keep things |
| 4520 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4521 | |
| 4522 | # There are two parallel sets of case statements below, one that checks to |
| 4523 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4524 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4525 | # user set OPT. |
| 4526 | |
| 4527 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4528 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4529 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4530 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4531 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4532 | case $GCC in |
| 4533 | yes) |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 4534 | if test "$CC" != 'g++' ; then |
| 4535 | STRICT_PROTO="-Wstrict-prototypes" |
| 4536 | fi |
Thomas Heller | e552959 | 2007-12-13 21:20:29 +0000 | [diff] [blame] | 4537 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4538 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4539 | WRAP="-fwrapv" |
| 4540 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4541 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4542 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4543 | if test "$Py_DEBUG" = 'true' ; then |
| 4544 | # Optimization messes up debuggers, so turn it off for |
| 4545 | # debug builds. |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 4546 | OPT="-g -Wall $STRICT_PROTO" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4547 | else |
Thomas Heller | e552959 | 2007-12-13 21:20:29 +0000 | [diff] [blame] | 4548 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4549 | fi |
| 4550 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4551 | *) |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 4552 | OPT="-O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4553 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4554 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 4555 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4556 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4557 | ;; |
| 4558 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4559 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4560 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4561 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4562 | OPT="-O" |
| 4563 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4564 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4565 | |
| 4566 | # The current (beta) Monterey compiler dies with optimizations |
| 4567 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 4568 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4569 | Monterey*) |
| 4570 | OPT="" |
| 4571 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 4572 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4573 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4574 | fi |
| 4575 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4576 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 4577 | |
| 4578 | # The -arch flags for universal builds on OSX |
| 4579 | UNIVERSAL_ARCH_FLAGS= |
| 4580 | |
| 4581 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4582 | # tweak BASECFLAGS based on compiler and platform |
| 4583 | case $GCC in |
| 4584 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4585 | # Python violates C99 rules, by casting between incompatible |
| 4586 | # pointer types. GCC may generate bad code as a result of that, |
| 4587 | # so use -fno-strict-aliasing if supported. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4588 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4589 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; } |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4590 | ac_save_cc="$CC" |
| 4591 | CC="$CC -fno-strict-aliasing" |
| 4592 | if test "$cross_compiling" = yes; then |
| 4593 | ac_cv_no_strict_aliasing_ok=no |
| 4594 | else |
| 4595 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4596 | /* confdefs.h. */ |
| 4597 | _ACEOF |
| 4598 | cat confdefs.h >>conftest.$ac_ext |
| 4599 | cat >>conftest.$ac_ext <<_ACEOF |
| 4600 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4601 | int main() { return 0; } |
| 4602 | _ACEOF |
| 4603 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4604 | if { (ac_try="$ac_link" |
| 4605 | case "(($ac_try" in |
| 4606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4607 | *) ac_try_echo=$ac_try;; |
| 4608 | esac |
| 4609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4610 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4611 | ac_status=$? |
| 4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4614 | { (case "(($ac_try" in |
| 4615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4616 | *) ac_try_echo=$ac_try;; |
| 4617 | esac |
| 4618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4619 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4620 | ac_status=$? |
| 4621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4622 | (exit $ac_status); }; }; then |
| 4623 | ac_cv_no_strict_aliasing_ok=yes |
| 4624 | else |
| 4625 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4626 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4628 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4629 | ( exit $ac_status ) |
| 4630 | ac_cv_no_strict_aliasing_ok=no |
| 4631 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4632 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4633 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4634 | |
| 4635 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4636 | CC="$ac_save_cc" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4637 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4638 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4639 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4640 | then |
| 4641 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4642 | fi |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 4643 | |
| 4644 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4645 | # support. Without this, treatment of subnormals doesn't follow |
| 4646 | # the standard. |
| 4647 | case $ac_sys_machine in |
| 4648 | alpha*) |
| 4649 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4650 | ;; |
| 4651 | esac |
| 4652 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4653 | case $ac_sys_system in |
| 4654 | SCO_SV*) |
| 4655 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4656 | ;; |
| 4657 | # is there any other compiler on Darwin besides gcc? |
| 4658 | Darwin*) |
Jeffrey Yasskin | 1b4e45b | 2008-03-17 14:40:53 +0000 | [diff] [blame] | 4659 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4660 | # used to be here, but non-Apple gcc doesn't accept them. |
Benjamin Peterson | 4347c44 | 2008-07-17 15:59:24 +0000 | [diff] [blame] | 4661 | |
| 4662 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 4663 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 4664 | UNIVERSAL_ARCH_FLAGS="" |
| 4665 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4666 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 4667 | ARCH_RUN_32BIT="" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 4668 | |
| 4669 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4670 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4671 | |
| 4672 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4673 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
Ronald Oussoren | a4cb472 | 2008-08-12 12:29:13 +0000 | [diff] [blame] | 4674 | ARCH_RUN_32BIT="arch -i386 -ppc" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 4675 | |
| 4676 | else |
| 4677 | { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5 |
| 4678 | echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;} |
| 4679 | { (exit 1); exit 1; }; } |
| 4680 | |
| 4681 | fi |
| 4682 | |
| 4683 | |
| 4684 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
Ronald Oussoren | 5a849d4 | 2008-07-22 07:06:00 +0000 | [diff] [blame] | 4685 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Benjamin Peterson | 4347c44 | 2008-07-17 15:59:24 +0000 | [diff] [blame] | 4686 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4687 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4688 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 4689 | fi |
| 4690 | |
Benjamin Peterson | 4347c44 | 2008-07-17 15:59:24 +0000 | [diff] [blame] | 4691 | # Calculate the right deployment target for this build. |
| 4692 | # |
| 4693 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4694 | if test ${cur_target} '>' 10.2; then |
| 4695 | cur_target=10.3 |
| 4696 | fi |
| 4697 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4698 | # Ensure that the default platform for a 4-way |
| 4699 | # universal build is OSX 10.5, that's the first |
| 4700 | # OS release where 4-way builds make sense. |
| 4701 | cur_target='10.5' |
| 4702 | fi |
| 4703 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4704 | |
| 4705 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4706 | # environment with a value that is the same as what we'll use |
| 4707 | # in the Makefile to ensure that we'll get the same compiler |
| 4708 | # environment during configure and build time. |
| 4709 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4710 | export MACOSX_DEPLOYMENT_TARGET |
| 4711 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4712 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4713 | ;; |
Neal Norwitz | dedeeaa | 2006-03-31 06:54:45 +0000 | [diff] [blame] | 4714 | OSF*) |
| 4715 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4716 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4717 | esac |
| 4718 | ;; |
| 4719 | |
| 4720 | *) |
| 4721 | case $ac_sys_system in |
| 4722 | OpenUNIX*|UnixWare*) |
| 4723 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4724 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 4725 | OSF*) |
| 4726 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4727 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4728 | SCO_SV*) |
| 4729 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4730 | ;; |
| 4731 | esac |
| 4732 | ;; |
| 4733 | esac |
| 4734 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 4735 | if test "$Py_DEBUG" = 'true'; then |
| 4736 | : |
| 4737 | else |
| 4738 | OPT="-DNDEBUG $OPT" |
| 4739 | fi |
| 4740 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4741 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4742 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4743 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4744 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4745 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 4746 | # disable check for icc since it seems to pass, but generates a warning |
| 4747 | if test "$CC" = icc |
| 4748 | then |
| 4749 | ac_cv_opt_olimit_ok=no |
| 4750 | fi |
| 4751 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4752 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4753 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4754 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 4755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4756 | else |
| 4757 | ac_save_cc="$CC" |
| 4758 | CC="$CC -OPT:Olimit=0" |
| 4759 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4760 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4762 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4763 | /* confdefs.h. */ |
| 4764 | _ACEOF |
| 4765 | cat confdefs.h >>conftest.$ac_ext |
| 4766 | cat >>conftest.$ac_ext <<_ACEOF |
| 4767 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4768 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4769 | _ACEOF |
| 4770 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4771 | if { (ac_try="$ac_link" |
| 4772 | case "(($ac_try" in |
| 4773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4774 | *) ac_try_echo=$ac_try;; |
| 4775 | esac |
| 4776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4777 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4778 | ac_status=$? |
| 4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4780 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4781 | { (case "(($ac_try" in |
| 4782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4783 | *) ac_try_echo=$ac_try;; |
| 4784 | esac |
| 4785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4786 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4787 | ac_status=$? |
| 4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4789 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4790 | ac_cv_opt_olimit_ok=yes |
| 4791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4792 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4793 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4796 | ( exit $ac_status ) |
| 4797 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4798 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4799 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4800 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4801 | |
| 4802 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4803 | CC="$ac_save_cc" |
| 4804 | fi |
| 4805 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4806 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4807 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 4808 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4809 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4810 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4811 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4812 | # environment? |
| 4813 | Darwin*) |
| 4814 | ;; |
| 4815 | *) |
| 4816 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4817 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4818 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4819 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4820 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4821 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4822 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 4823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4824 | else |
| 4825 | ac_save_cc="$CC" |
| 4826 | CC="$CC -Olimit 1500" |
| 4827 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4828 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4830 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4831 | /* confdefs.h. */ |
| 4832 | _ACEOF |
| 4833 | cat confdefs.h >>conftest.$ac_ext |
| 4834 | cat >>conftest.$ac_ext <<_ACEOF |
| 4835 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4836 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4837 | _ACEOF |
| 4838 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4839 | if { (ac_try="$ac_link" |
| 4840 | case "(($ac_try" in |
| 4841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4842 | *) ac_try_echo=$ac_try;; |
| 4843 | esac |
| 4844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4845 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4846 | ac_status=$? |
| 4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4848 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4849 | { (case "(($ac_try" in |
| 4850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4851 | *) ac_try_echo=$ac_try;; |
| 4852 | esac |
| 4853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4854 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4855 | ac_status=$? |
| 4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4857 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4858 | ac_cv_olimit_ok=yes |
| 4859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4860 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4861 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4864 | ( exit $ac_status ) |
| 4865 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4866 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4867 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4868 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4869 | |
| 4870 | |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4871 | CC="$ac_save_cc" |
| 4872 | fi |
| 4873 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4874 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4875 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4876 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4877 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4878 | fi |
| 4879 | fi |
| 4880 | |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4881 | # Check whether GCC supports PyArg_ParseTuple format |
| 4882 | if test "$GCC" = "yes" |
| 4883 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4884 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4885 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4886 | save_CFLAGS=$CFLAGS |
| 4887 | CFLAGS="$CFLAGS -Werror" |
| 4888 | cat >conftest.$ac_ext <<_ACEOF |
| 4889 | /* confdefs.h. */ |
| 4890 | _ACEOF |
| 4891 | cat confdefs.h >>conftest.$ac_ext |
| 4892 | cat >>conftest.$ac_ext <<_ACEOF |
| 4893 | /* end confdefs.h. */ |
| 4894 | |
| 4895 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4896 | |
| 4897 | int |
| 4898 | main () |
| 4899 | { |
| 4900 | |
| 4901 | ; |
| 4902 | return 0; |
| 4903 | } |
| 4904 | _ACEOF |
| 4905 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4906 | if { (ac_try="$ac_compile" |
| 4907 | case "(($ac_try" in |
| 4908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4909 | *) ac_try_echo=$ac_try;; |
| 4910 | esac |
| 4911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4912 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4913 | ac_status=$? |
| 4914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4915 | rm -f conftest.er1 |
| 4916 | cat conftest.err >&5 |
| 4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4918 | (exit $ac_status); } && { |
| 4919 | test -z "$ac_c_werror_flag" || |
| 4920 | test ! -s conftest.err |
| 4921 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4922 | |
| 4923 | cat >>confdefs.h <<\_ACEOF |
| 4924 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4925 | _ACEOF |
| 4926 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4927 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4928 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4929 | else |
| 4930 | echo "$as_me: failed program was:" >&5 |
| 4931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4932 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4933 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4934 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4935 | |
| 4936 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4937 | |
| 4938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c1d7597 | 2006-10-19 16:01:37 +0000 | [diff] [blame] | 4939 | CFLAGS=$save_CFLAGS |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4940 | fi |
| 4941 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4942 | # On some compilers, pthreads are available without further options |
| 4943 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4944 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4945 | # So we have to see first whether pthreads are available without |
| 4946 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4947 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4948 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4949 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4951 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4952 | if test "$cross_compiling" = yes; then |
| 4953 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4956 | /* confdefs.h. */ |
| 4957 | _ACEOF |
| 4958 | cat confdefs.h >>conftest.$ac_ext |
| 4959 | cat >>conftest.$ac_ext <<_ACEOF |
| 4960 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4961 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4962 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4963 | |
| 4964 | void* routine(void* p){return NULL;} |
| 4965 | |
| 4966 | int main(){ |
| 4967 | pthread_t p; |
| 4968 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4969 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4970 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4971 | return 0; |
| 4972 | } |
| 4973 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4974 | _ACEOF |
| 4975 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4976 | if { (ac_try="$ac_link" |
| 4977 | case "(($ac_try" in |
| 4978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4979 | *) ac_try_echo=$ac_try;; |
| 4980 | esac |
| 4981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4982 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4983 | ac_status=$? |
| 4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 4986 | { (case "(($ac_try" in |
| 4987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4988 | *) ac_try_echo=$ac_try;; |
| 4989 | esac |
| 4990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4991 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4992 | ac_status=$? |
| 4993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4994 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4995 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4996 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4997 | ac_cv_kthread=no |
| 4998 | ac_cv_pthread=no |
| 4999 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5001 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5002 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5005 | ( exit $ac_status ) |
| 5006 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5007 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5009 | fi |
| 5010 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5011 | |
| 5012 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5013 | fi |
| 5014 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5015 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5016 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5017 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5019 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5020 | then |
| 5021 | ac_cv_kpthread=no |
| 5022 | else |
| 5023 | # -Kpthread, if available, provides the right #defines |
| 5024 | # and linker options to make pthread_create available |
| 5025 | # Some compilers won't report that they do not support -Kpthread, |
| 5026 | # so we need to run a program to see whether it really made the |
| 5027 | # function available. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5028 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5029 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5030 | if test "${ac_cv_kpthread+set}" = set; then |
| 5031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5032 | else |
| 5033 | ac_save_cc="$CC" |
| 5034 | CC="$CC -Kpthread" |
| 5035 | if test "$cross_compiling" = yes; then |
| 5036 | ac_cv_kpthread=no |
| 5037 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5038 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5039 | /* confdefs.h. */ |
| 5040 | _ACEOF |
| 5041 | cat confdefs.h >>conftest.$ac_ext |
| 5042 | cat >>conftest.$ac_ext <<_ACEOF |
| 5043 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5044 | |
| 5045 | #include <pthread.h> |
| 5046 | |
| 5047 | void* routine(void* p){return NULL;} |
| 5048 | |
| 5049 | int main(){ |
| 5050 | pthread_t p; |
| 5051 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5052 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 5053 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5054 | return 0; |
| 5055 | } |
| 5056 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5057 | _ACEOF |
| 5058 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5059 | if { (ac_try="$ac_link" |
| 5060 | case "(($ac_try" in |
| 5061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5062 | *) ac_try_echo=$ac_try;; |
| 5063 | esac |
| 5064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5065 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5066 | ac_status=$? |
| 5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5069 | { (case "(($ac_try" in |
| 5070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5071 | *) ac_try_echo=$ac_try;; |
| 5072 | esac |
| 5073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5074 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5075 | ac_status=$? |
| 5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5077 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 5078 | ac_cv_kpthread=yes |
| 5079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5080 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5084 | ( exit $ac_status ) |
| 5085 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 5086 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5087 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 5088 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5089 | |
| 5090 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 5091 | CC="$ac_save_cc" |
| 5092 | fi |
| 5093 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5094 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5095 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5096 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 5097 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 5098 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5099 | then |
| 5100 | # -Kthread, if available, provides the right #defines |
| 5101 | # and linker options to make pthread_create available |
| 5102 | # Some compilers won't report that they do not support -Kthread, |
| 5103 | # so we need to run a program to see whether it really made the |
| 5104 | # function available. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5105 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5106 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5107 | if test "${ac_cv_kthread+set}" = set; then |
| 5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5109 | else |
| 5110 | ac_save_cc="$CC" |
| 5111 | CC="$CC -Kthread" |
| 5112 | if test "$cross_compiling" = yes; then |
| 5113 | ac_cv_kthread=no |
| 5114 | else |
| 5115 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5116 | /* confdefs.h. */ |
| 5117 | _ACEOF |
| 5118 | cat confdefs.h >>conftest.$ac_ext |
| 5119 | cat >>conftest.$ac_ext <<_ACEOF |
| 5120 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5121 | |
| 5122 | #include <pthread.h> |
| 5123 | |
| 5124 | void* routine(void* p){return NULL;} |
| 5125 | |
| 5126 | int main(){ |
| 5127 | pthread_t p; |
| 5128 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5129 | return 1; |
| 5130 | (void)pthread_detach(p); |
| 5131 | return 0; |
| 5132 | } |
| 5133 | |
| 5134 | _ACEOF |
| 5135 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5136 | if { (ac_try="$ac_link" |
| 5137 | case "(($ac_try" in |
| 5138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5139 | *) ac_try_echo=$ac_try;; |
| 5140 | esac |
| 5141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5142 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5143 | ac_status=$? |
| 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5145 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5146 | { (case "(($ac_try" in |
| 5147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5148 | *) ac_try_echo=$ac_try;; |
| 5149 | esac |
| 5150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5151 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5152 | ac_status=$? |
| 5153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5154 | (exit $ac_status); }; }; then |
| 5155 | ac_cv_kthread=yes |
| 5156 | else |
| 5157 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5158 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5160 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5161 | ( exit $ac_status ) |
| 5162 | ac_cv_kthread=no |
| 5163 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5164 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5165 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5166 | |
| 5167 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5168 | CC="$ac_save_cc" |
| 5169 | fi |
| 5170 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5171 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5172 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5173 | fi |
| 5174 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 5175 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5176 | then |
| 5177 | # -pthread, if available, provides the right #defines |
| 5178 | # and linker options to make pthread_create available |
| 5179 | # Some compilers won't report that they do not support -pthread, |
| 5180 | # so we need to run a program to see whether it really made the |
| 5181 | # function available. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5182 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5183 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5184 | if test "${ac_cv_thread+set}" = set; then |
| 5185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5186 | else |
| 5187 | ac_save_cc="$CC" |
| 5188 | CC="$CC -pthread" |
| 5189 | if test "$cross_compiling" = yes; then |
| 5190 | ac_cv_pthread=no |
| 5191 | else |
| 5192 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5193 | /* confdefs.h. */ |
| 5194 | _ACEOF |
| 5195 | cat confdefs.h >>conftest.$ac_ext |
| 5196 | cat >>conftest.$ac_ext <<_ACEOF |
| 5197 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5198 | |
| 5199 | #include <pthread.h> |
| 5200 | |
| 5201 | void* routine(void* p){return NULL;} |
| 5202 | |
| 5203 | int main(){ |
| 5204 | pthread_t p; |
| 5205 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5206 | return 1; |
| 5207 | (void)pthread_detach(p); |
| 5208 | return 0; |
| 5209 | } |
| 5210 | |
| 5211 | _ACEOF |
| 5212 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5213 | if { (ac_try="$ac_link" |
| 5214 | case "(($ac_try" in |
| 5215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5216 | *) ac_try_echo=$ac_try;; |
| 5217 | esac |
| 5218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5219 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5220 | ac_status=$? |
| 5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5223 | { (case "(($ac_try" in |
| 5224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5225 | *) ac_try_echo=$ac_try;; |
| 5226 | esac |
| 5227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5228 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5229 | ac_status=$? |
| 5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5231 | (exit $ac_status); }; }; then |
| 5232 | ac_cv_pthread=yes |
| 5233 | else |
| 5234 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5235 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5237 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5238 | ( exit $ac_status ) |
| 5239 | ac_cv_pthread=no |
| 5240 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5241 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5242 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5243 | |
| 5244 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5245 | CC="$ac_save_cc" |
| 5246 | fi |
| 5247 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5248 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5249 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5250 | fi |
| 5251 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5252 | # If we have set a CC compiler flag for thread support then |
| 5253 | # check if it works for CXX, too. |
| 5254 | ac_cv_cxx_thread=no |
| 5255 | if test ! -z "$CXX" |
| 5256 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5257 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5258 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; } |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5259 | ac_save_cxx="$CXX" |
| 5260 | |
| 5261 | if test "$ac_cv_kpthread" = "yes" |
| 5262 | then |
| 5263 | CXX="$CXX -Kpthread" |
| 5264 | ac_cv_cxx_thread=yes |
| 5265 | elif test "$ac_cv_kthread" = "yes" |
| 5266 | then |
| 5267 | CXX="$CXX -Kthread" |
| 5268 | ac_cv_cxx_thread=yes |
| 5269 | elif test "$ac_cv_pthread" = "yes" |
| 5270 | then |
| 5271 | CXX="$CXX -pthread" |
| 5272 | ac_cv_cxx_thread=yes |
| 5273 | fi |
| 5274 | |
| 5275 | if test $ac_cv_cxx_thread = yes |
| 5276 | then |
| 5277 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5278 | $CXX -c conftest.$ac_ext 2>&5 |
| 5279 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5280 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5281 | then |
| 5282 | ac_cv_cxx_thread=yes |
| 5283 | else |
| 5284 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5285 | fi |
| 5286 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5287 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5288 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5289 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 5290 | fi |
| 5291 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5292 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5293 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5294 | # checks for header files |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5295 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5296 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5297 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5300 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5301 | /* confdefs.h. */ |
| 5302 | _ACEOF |
| 5303 | cat confdefs.h >>conftest.$ac_ext |
| 5304 | cat >>conftest.$ac_ext <<_ACEOF |
| 5305 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5306 | #include <stdlib.h> |
| 5307 | #include <stdarg.h> |
| 5308 | #include <string.h> |
| 5309 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5310 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5311 | int |
| 5312 | main () |
| 5313 | { |
| 5314 | |
| 5315 | ; |
| 5316 | return 0; |
| 5317 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5318 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5319 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5320 | if { (ac_try="$ac_compile" |
| 5321 | case "(($ac_try" in |
| 5322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5323 | *) ac_try_echo=$ac_try;; |
| 5324 | esac |
| 5325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5326 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5329 | rm -f conftest.er1 |
| 5330 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5332 | (exit $ac_status); } && { |
| 5333 | test -z "$ac_c_werror_flag" || |
| 5334 | test ! -s conftest.err |
| 5335 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5336 | ac_cv_header_stdc=yes |
| 5337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5340 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5341 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5342 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5343 | |
| 5344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5345 | |
| 5346 | if test $ac_cv_header_stdc = yes; then |
| 5347 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5348 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5349 | /* confdefs.h. */ |
| 5350 | _ACEOF |
| 5351 | cat confdefs.h >>conftest.$ac_ext |
| 5352 | cat >>conftest.$ac_ext <<_ACEOF |
| 5353 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5354 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5355 | |
| 5356 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5358 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5359 | : |
| 5360 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5361 | ac_cv_header_stdc=no |
| 5362 | fi |
| 5363 | rm -f conftest* |
| 5364 | |
| 5365 | fi |
| 5366 | |
| 5367 | if test $ac_cv_header_stdc = yes; then |
| 5368 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5369 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5370 | /* confdefs.h. */ |
| 5371 | _ACEOF |
| 5372 | cat confdefs.h >>conftest.$ac_ext |
| 5373 | cat >>conftest.$ac_ext <<_ACEOF |
| 5374 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5375 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5376 | |
| 5377 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5379 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5380 | : |
| 5381 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5382 | ac_cv_header_stdc=no |
| 5383 | fi |
| 5384 | rm -f conftest* |
| 5385 | |
| 5386 | fi |
| 5387 | |
| 5388 | if test $ac_cv_header_stdc = yes; then |
| 5389 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5390 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5391 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5393 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5394 | /* confdefs.h. */ |
| 5395 | _ACEOF |
| 5396 | cat confdefs.h >>conftest.$ac_ext |
| 5397 | cat >>conftest.$ac_ext <<_ACEOF |
| 5398 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5399 | #include <ctype.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5400 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5401 | #if ((' ' & 0x0FF) == 0x020) |
| 5402 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5403 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5404 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5405 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5406 | (('a' <= (c) && (c) <= 'i') \ |
| 5407 | || ('j' <= (c) && (c) <= 'r') \ |
| 5408 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5409 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5410 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5412 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5413 | int |
| 5414 | main () |
| 5415 | { |
| 5416 | int i; |
| 5417 | for (i = 0; i < 256; i++) |
| 5418 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5419 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5420 | return 2; |
| 5421 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5422 | } |
| 5423 | _ACEOF |
| 5424 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5425 | if { (ac_try="$ac_link" |
| 5426 | case "(($ac_try" in |
| 5427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5428 | *) ac_try_echo=$ac_try;; |
| 5429 | esac |
| 5430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5431 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5432 | ac_status=$? |
| 5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5434 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5435 | { (case "(($ac_try" in |
| 5436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5437 | *) ac_try_echo=$ac_try;; |
| 5438 | esac |
| 5439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5440 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5441 | ac_status=$? |
| 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5443 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5444 | : |
| 5445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5446 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5447 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5450 | ( exit $ac_status ) |
| 5451 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5452 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5453 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5454 | fi |
| 5455 | |
| 5456 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5457 | fi |
| 5458 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5459 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5460 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5461 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5462 | |
| 5463 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5464 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5465 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5466 | |
| 5467 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5468 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5469 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5470 | |
| 5471 | |
| 5472 | |
| 5473 | |
| 5474 | |
| 5475 | |
| 5476 | |
| 5477 | |
| 5478 | |
| 5479 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5480 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5481 | do |
| 5482 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5483 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5485 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5487 | else |
| 5488 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5489 | /* confdefs.h. */ |
| 5490 | _ACEOF |
| 5491 | cat confdefs.h >>conftest.$ac_ext |
| 5492 | cat >>conftest.$ac_ext <<_ACEOF |
| 5493 | /* end confdefs.h. */ |
| 5494 | $ac_includes_default |
| 5495 | |
| 5496 | #include <$ac_header> |
| 5497 | _ACEOF |
| 5498 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5499 | if { (ac_try="$ac_compile" |
| 5500 | case "(($ac_try" in |
| 5501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5502 | *) ac_try_echo=$ac_try;; |
| 5503 | esac |
| 5504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5505 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5506 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5508 | rm -f conftest.er1 |
| 5509 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5511 | (exit $ac_status); } && { |
| 5512 | test -z "$ac_c_werror_flag" || |
| 5513 | test ! -s conftest.err |
| 5514 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5515 | eval "$as_ac_Header=yes" |
| 5516 | else |
| 5517 | echo "$as_me: failed program was:" >&5 |
| 5518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5520 | eval "$as_ac_Header=no" |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5521 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5522 | |
| 5523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5524 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5525 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5526 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5527 | echo "${ECHO_T}$ac_res" >&6; } |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5528 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5529 | cat >>confdefs.h <<_ACEOF |
| 5530 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5531 | _ACEOF |
| 5532 | |
| 5533 | fi |
| 5534 | |
| 5535 | done |
| 5536 | |
| 5537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5538 | |
| 5539 | |
| 5540 | |
| 5541 | |
| 5542 | |
| 5543 | |
| 5544 | |
| 5545 | |
| 5546 | |
| 5547 | |
| 5548 | |
| 5549 | |
| 5550 | |
| 5551 | |
| 5552 | |
| 5553 | |
| 5554 | |
| 5555 | |
| 5556 | |
| 5557 | |
| 5558 | |
| 5559 | |
| 5560 | |
| 5561 | |
| 5562 | |
| 5563 | |
| 5564 | |
| 5565 | |
| 5566 | |
| 5567 | |
| 5568 | |
| 5569 | |
| 5570 | |
| 5571 | |
| 5572 | |
| 5573 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5574 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5575 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5576 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5577 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5578 | |
| 5579 | |
| 5580 | |
| 5581 | |
| 5582 | |
| 5583 | |
| 5584 | |
| 5585 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5586 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5587 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5588 | |
| 5589 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5590 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5591 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5592 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5593 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5594 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5595 | shadow.h signal.h stdint.h stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 5596 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5597 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5598 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5599 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5600 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5601 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 5602 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5603 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5604 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5605 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5606 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5607 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5608 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5609 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5611 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5612 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5613 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5614 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5615 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5616 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5617 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5618 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5619 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5620 | /* confdefs.h. */ |
| 5621 | _ACEOF |
| 5622 | cat confdefs.h >>conftest.$ac_ext |
| 5623 | cat >>conftest.$ac_ext <<_ACEOF |
| 5624 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5625 | $ac_includes_default |
| 5626 | #include <$ac_header> |
| 5627 | _ACEOF |
| 5628 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5629 | if { (ac_try="$ac_compile" |
| 5630 | case "(($ac_try" in |
| 5631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5632 | *) ac_try_echo=$ac_try;; |
| 5633 | esac |
| 5634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5635 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5636 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5638 | rm -f conftest.er1 |
| 5639 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5641 | (exit $ac_status); } && { |
| 5642 | test -z "$ac_c_werror_flag" || |
| 5643 | test ! -s conftest.err |
| 5644 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5645 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5647 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5649 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5650 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5651 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5652 | |
| 5653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5654 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5655 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5656 | |
| 5657 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5658 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5659 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5660 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5661 | /* confdefs.h. */ |
| 5662 | _ACEOF |
| 5663 | cat confdefs.h >>conftest.$ac_ext |
| 5664 | cat >>conftest.$ac_ext <<_ACEOF |
| 5665 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5666 | #include <$ac_header> |
| 5667 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5668 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5669 | case "(($ac_try" in |
| 5670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5671 | *) ac_try_echo=$ac_try;; |
| 5672 | esac |
| 5673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5674 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5675 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5676 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5677 | rm -f conftest.er1 |
| 5678 | cat conftest.err >&5 |
| 5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5680 | (exit $ac_status); } >/dev/null && { |
| 5681 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5682 | test ! -s conftest.err |
| 5683 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5684 | ac_header_preproc=yes |
| 5685 | else |
| 5686 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5689 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5690 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5692 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5693 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5694 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5695 | |
| 5696 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5697 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5698 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5699 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5700 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5701 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5702 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5703 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5704 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5705 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5706 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5707 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5708 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5709 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5710 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5711 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5712 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5713 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5715 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5716 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5717 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5718 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5719 | ## ------------------------------------------------ ## |
| 5720 | ## Report this to http://www.python.org/python-bugs ## |
| 5721 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5722 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5723 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5724 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5725 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5726 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5727 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5728 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5730 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5731 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5732 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5733 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5734 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5735 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5736 | |
| 5737 | fi |
| 5738 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5739 | cat >>confdefs.h <<_ACEOF |
| 5740 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5741 | _ACEOF |
| 5742 | |
| 5743 | fi |
| 5744 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5745 | done |
| 5746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5747 | |
| 5748 | |
| 5749 | |
| 5750 | |
| 5751 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5752 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5753 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 5754 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5755 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5756 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 5757 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5760 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5761 | /* confdefs.h. */ |
| 5762 | _ACEOF |
| 5763 | cat confdefs.h >>conftest.$ac_ext |
| 5764 | cat >>conftest.$ac_ext <<_ACEOF |
| 5765 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5766 | #include <sys/types.h> |
| 5767 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5769 | int |
| 5770 | main () |
| 5771 | { |
| 5772 | if ((DIR *) 0) |
| 5773 | return 0; |
| 5774 | ; |
| 5775 | return 0; |
| 5776 | } |
| 5777 | _ACEOF |
| 5778 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5779 | if { (ac_try="$ac_compile" |
| 5780 | case "(($ac_try" in |
| 5781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5782 | *) ac_try_echo=$ac_try;; |
| 5783 | esac |
| 5784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5785 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5786 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5788 | rm -f conftest.er1 |
| 5789 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5791 | (exit $ac_status); } && { |
| 5792 | test -z "$ac_c_werror_flag" || |
| 5793 | test ! -s conftest.err |
| 5794 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5795 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5797 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5799 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5800 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5801 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5802 | |
| 5803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5804 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5805 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5806 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5807 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5808 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5809 | cat >>confdefs.h <<_ACEOF |
| 5810 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 5811 | _ACEOF |
| 5812 | |
| 5813 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5815 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5816 | done |
| 5817 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5818 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5819 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5820 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5821 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5823 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5824 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5825 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5826 | /* confdefs.h. */ |
| 5827 | _ACEOF |
| 5828 | cat confdefs.h >>conftest.$ac_ext |
| 5829 | cat >>conftest.$ac_ext <<_ACEOF |
| 5830 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5831 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5832 | /* Override any GCC internal prototype to avoid an error. |
| 5833 | Use char because int might match the return type of a GCC |
| 5834 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5835 | #ifdef __cplusplus |
| 5836 | extern "C" |
| 5837 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5838 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5839 | int |
| 5840 | main () |
| 5841 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5842 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5843 | ; |
| 5844 | return 0; |
| 5845 | } |
| 5846 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5847 | for ac_lib in '' dir; do |
| 5848 | if test -z "$ac_lib"; then |
| 5849 | ac_res="none required" |
| 5850 | else |
| 5851 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5852 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5853 | fi |
| 5854 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5855 | if { (ac_try="$ac_link" |
| 5856 | case "(($ac_try" in |
| 5857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5858 | *) ac_try_echo=$ac_try;; |
| 5859 | esac |
| 5860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5861 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5862 | ac_status=$? |
| 5863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5864 | rm -f conftest.er1 |
| 5865 | cat conftest.err >&5 |
| 5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5867 | (exit $ac_status); } && { |
| 5868 | test -z "$ac_c_werror_flag" || |
| 5869 | test ! -s conftest.err |
| 5870 | } && test -s conftest$ac_exeext && |
| 5871 | $as_test_x conftest$ac_exeext; then |
| 5872 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5873 | else |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5874 | echo "$as_me: failed program was:" >&5 |
| 5875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5876 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5877 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5878 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5879 | |
| 5880 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5881 | conftest$ac_exeext |
| 5882 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5883 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5884 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5885 | done |
| 5886 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5887 | : |
| 5888 | else |
| 5889 | ac_cv_search_opendir=no |
| 5890 | fi |
| 5891 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5892 | LIBS=$ac_func_search_save_LIBS |
| 5893 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5894 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5895 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5896 | ac_res=$ac_cv_search_opendir |
| 5897 | if test "$ac_res" != no; then |
| 5898 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5899 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5900 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5901 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5902 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5903 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5904 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5905 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5907 | else |
| 5908 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5909 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5910 | /* confdefs.h. */ |
| 5911 | _ACEOF |
| 5912 | cat confdefs.h >>conftest.$ac_ext |
| 5913 | cat >>conftest.$ac_ext <<_ACEOF |
| 5914 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5915 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5916 | /* Override any GCC internal prototype to avoid an error. |
| 5917 | Use char because int might match the return type of a GCC |
| 5918 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5919 | #ifdef __cplusplus |
| 5920 | extern "C" |
| 5921 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5922 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5923 | int |
| 5924 | main () |
| 5925 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5926 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5927 | ; |
| 5928 | return 0; |
| 5929 | } |
| 5930 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5931 | for ac_lib in '' x; do |
| 5932 | if test -z "$ac_lib"; then |
| 5933 | ac_res="none required" |
| 5934 | else |
| 5935 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5936 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5937 | fi |
| 5938 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5939 | if { (ac_try="$ac_link" |
| 5940 | case "(($ac_try" in |
| 5941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5942 | *) ac_try_echo=$ac_try;; |
| 5943 | esac |
| 5944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5945 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5946 | ac_status=$? |
| 5947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5948 | rm -f conftest.er1 |
| 5949 | cat conftest.err >&5 |
| 5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5951 | (exit $ac_status); } && { |
| 5952 | test -z "$ac_c_werror_flag" || |
| 5953 | test ! -s conftest.err |
| 5954 | } && test -s conftest$ac_exeext && |
| 5955 | $as_test_x conftest$ac_exeext; then |
| 5956 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5957 | else |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5958 | echo "$as_me: failed program was:" >&5 |
| 5959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5960 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5961 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5962 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5963 | |
| 5964 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5965 | conftest$ac_exeext |
| 5966 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5967 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5968 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5969 | done |
| 5970 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5971 | : |
| 5972 | else |
| 5973 | ac_cv_search_opendir=no |
| 5974 | fi |
| 5975 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5976 | LIBS=$ac_func_search_save_LIBS |
| 5977 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5978 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5979 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5980 | ac_res=$ac_cv_search_opendir |
| 5981 | if test "$ac_res" != no; then |
| 5982 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5983 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5984 | fi |
| 5985 | |
| 5986 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5987 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5988 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5989 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5990 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5992 | else |
| 5993 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5994 | /* confdefs.h. */ |
| 5995 | _ACEOF |
| 5996 | cat confdefs.h >>conftest.$ac_ext |
| 5997 | cat >>conftest.$ac_ext <<_ACEOF |
| 5998 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5999 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6000 | int |
| 6001 | main () |
| 6002 | { |
| 6003 | return makedev(0, 0); |
| 6004 | ; |
| 6005 | return 0; |
| 6006 | } |
| 6007 | _ACEOF |
| 6008 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6009 | if { (ac_try="$ac_link" |
| 6010 | case "(($ac_try" in |
| 6011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6012 | *) ac_try_echo=$ac_try;; |
| 6013 | esac |
| 6014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6015 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6016 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6018 | rm -f conftest.er1 |
| 6019 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6021 | (exit $ac_status); } && { |
| 6022 | test -z "$ac_c_werror_flag" || |
| 6023 | test ! -s conftest.err |
| 6024 | } && test -s conftest$ac_exeext && |
| 6025 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6026 | ac_cv_header_sys_types_h_makedev=yes |
| 6027 | else |
| 6028 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6030 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6031 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6032 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6033 | |
| 6034 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6035 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6036 | |
| 6037 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6038 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6039 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6040 | |
| 6041 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6042 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6043 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6044 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6045 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 6046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6047 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6048 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6049 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6050 | else |
| 6051 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6052 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6053 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6054 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6055 | /* confdefs.h. */ |
| 6056 | _ACEOF |
| 6057 | cat confdefs.h >>conftest.$ac_ext |
| 6058 | cat >>conftest.$ac_ext <<_ACEOF |
| 6059 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6060 | $ac_includes_default |
| 6061 | #include <sys/mkdev.h> |
| 6062 | _ACEOF |
| 6063 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6064 | if { (ac_try="$ac_compile" |
| 6065 | case "(($ac_try" in |
| 6066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6067 | *) ac_try_echo=$ac_try;; |
| 6068 | esac |
| 6069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6070 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6071 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6073 | rm -f conftest.er1 |
| 6074 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6076 | (exit $ac_status); } && { |
| 6077 | test -z "$ac_c_werror_flag" || |
| 6078 | test ! -s conftest.err |
| 6079 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6080 | ac_header_compiler=yes |
| 6081 | else |
| 6082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6084 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6085 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6086 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6087 | |
| 6088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6089 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6090 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6091 | |
| 6092 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6093 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6094 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6095 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6096 | /* confdefs.h. */ |
| 6097 | _ACEOF |
| 6098 | cat confdefs.h >>conftest.$ac_ext |
| 6099 | cat >>conftest.$ac_ext <<_ACEOF |
| 6100 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6101 | #include <sys/mkdev.h> |
| 6102 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6103 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6104 | case "(($ac_try" in |
| 6105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6106 | *) ac_try_echo=$ac_try;; |
| 6107 | esac |
| 6108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6109 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6110 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6111 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6112 | rm -f conftest.er1 |
| 6113 | cat conftest.err >&5 |
| 6114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6115 | (exit $ac_status); } >/dev/null && { |
| 6116 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6117 | test ! -s conftest.err |
| 6118 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6119 | ac_header_preproc=yes |
| 6120 | else |
| 6121 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6123 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6124 | ac_header_preproc=no |
| 6125 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6126 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6127 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6128 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6129 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6130 | |
| 6131 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6132 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6133 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6134 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6135 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6136 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6137 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 6138 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6139 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6140 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6141 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6142 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6143 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6144 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6145 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6146 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6147 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6148 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6149 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6150 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6151 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6152 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6153 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6154 | ## ------------------------------------------------ ## |
| 6155 | ## Report this to http://www.python.org/python-bugs ## |
| 6156 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6157 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6158 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6159 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6160 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6161 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6162 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6163 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 6164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6165 | else |
| 6166 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6167 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6168 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6169 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6170 | |
| 6171 | fi |
| 6172 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 6173 | |
| 6174 | cat >>confdefs.h <<\_ACEOF |
| 6175 | #define MAJOR_IN_MKDEV 1 |
| 6176 | _ACEOF |
| 6177 | |
| 6178 | fi |
| 6179 | |
| 6180 | |
| 6181 | |
| 6182 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6183 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6184 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6185 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6186 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 6187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6188 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6189 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6190 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6191 | else |
| 6192 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6193 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6194 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6195 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6196 | /* confdefs.h. */ |
| 6197 | _ACEOF |
| 6198 | cat confdefs.h >>conftest.$ac_ext |
| 6199 | cat >>conftest.$ac_ext <<_ACEOF |
| 6200 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6201 | $ac_includes_default |
| 6202 | #include <sys/sysmacros.h> |
| 6203 | _ACEOF |
| 6204 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6205 | if { (ac_try="$ac_compile" |
| 6206 | case "(($ac_try" in |
| 6207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6208 | *) ac_try_echo=$ac_try;; |
| 6209 | esac |
| 6210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6211 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6212 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6214 | rm -f conftest.er1 |
| 6215 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6217 | (exit $ac_status); } && { |
| 6218 | test -z "$ac_c_werror_flag" || |
| 6219 | test ! -s conftest.err |
| 6220 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6221 | ac_header_compiler=yes |
| 6222 | else |
| 6223 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6225 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6226 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6227 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6228 | |
| 6229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6230 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6231 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6232 | |
| 6233 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6234 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6235 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6237 | /* confdefs.h. */ |
| 6238 | _ACEOF |
| 6239 | cat confdefs.h >>conftest.$ac_ext |
| 6240 | cat >>conftest.$ac_ext <<_ACEOF |
| 6241 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6242 | #include <sys/sysmacros.h> |
| 6243 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6244 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6245 | case "(($ac_try" in |
| 6246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6247 | *) ac_try_echo=$ac_try;; |
| 6248 | esac |
| 6249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6250 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6251 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6252 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6253 | rm -f conftest.er1 |
| 6254 | cat conftest.err >&5 |
| 6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6256 | (exit $ac_status); } >/dev/null && { |
| 6257 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6258 | test ! -s conftest.err |
| 6259 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6260 | ac_header_preproc=yes |
| 6261 | else |
| 6262 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6264 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6265 | ac_header_preproc=no |
| 6266 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6267 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6268 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6269 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6270 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6271 | |
| 6272 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6273 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6274 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6275 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6276 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6277 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6278 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 6279 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6280 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6281 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6282 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6283 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6284 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6285 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6286 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6287 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6288 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6289 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6290 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6291 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6292 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6293 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6294 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6295 | ## ------------------------------------------------ ## |
| 6296 | ## Report this to http://www.python.org/python-bugs ## |
| 6297 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6298 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6299 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6300 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6301 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6302 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6303 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6304 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 6305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6306 | else |
| 6307 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6308 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6309 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6310 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6311 | |
| 6312 | fi |
| 6313 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 6314 | |
| 6315 | cat >>confdefs.h <<\_ACEOF |
| 6316 | #define MAJOR_IN_SYSMACROS 1 |
| 6317 | _ACEOF |
| 6318 | |
| 6319 | fi |
| 6320 | |
| 6321 | |
| 6322 | fi |
| 6323 | fi |
| 6324 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6325 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6326 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6327 | |
| 6328 | for ac_header in term.h |
| 6329 | do |
| 6330 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6331 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6335 | else |
| 6336 | cat >conftest.$ac_ext <<_ACEOF |
| 6337 | /* confdefs.h. */ |
| 6338 | _ACEOF |
| 6339 | cat confdefs.h >>conftest.$ac_ext |
| 6340 | cat >>conftest.$ac_ext <<_ACEOF |
| 6341 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6342 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6343 | #ifdef HAVE_CURSES_H |
| 6344 | #include <curses.h> |
| 6345 | #endif |
| 6346 | |
| 6347 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6348 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6349 | _ACEOF |
| 6350 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6351 | if { (ac_try="$ac_compile" |
| 6352 | case "(($ac_try" in |
| 6353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6354 | *) ac_try_echo=$ac_try;; |
| 6355 | esac |
| 6356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6357 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6358 | ac_status=$? |
| 6359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6360 | rm -f conftest.er1 |
| 6361 | cat conftest.err >&5 |
| 6362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6363 | (exit $ac_status); } && { |
| 6364 | test -z "$ac_c_werror_flag" || |
| 6365 | test ! -s conftest.err |
| 6366 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6367 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6368 | else |
| 6369 | echo "$as_me: failed program was:" >&5 |
| 6370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6371 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6372 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6373 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6374 | |
| 6375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6376 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6377 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6378 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6379 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6380 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6381 | cat >>confdefs.h <<_ACEOF |
| 6382 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6383 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6384 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6385 | fi |
| 6386 | |
| 6387 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6388 | |
| 6389 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6390 | # On Linux, netlink.h requires asm/types.h |
| 6391 | |
| 6392 | for ac_header in linux/netlink.h |
| 6393 | do |
| 6394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6395 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6397 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6399 | else |
| 6400 | cat >conftest.$ac_ext <<_ACEOF |
| 6401 | /* confdefs.h. */ |
| 6402 | _ACEOF |
| 6403 | cat confdefs.h >>conftest.$ac_ext |
| 6404 | cat >>conftest.$ac_ext <<_ACEOF |
| 6405 | /* end confdefs.h. */ |
| 6406 | |
| 6407 | #ifdef HAVE_ASM_TYPES_H |
| 6408 | #include <asm/types.h> |
| 6409 | #endif |
| 6410 | #ifdef HAVE_SYS_SOCKET_H |
| 6411 | #include <sys/socket.h> |
| 6412 | #endif |
| 6413 | |
| 6414 | |
| 6415 | #include <$ac_header> |
| 6416 | _ACEOF |
| 6417 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6418 | if { (ac_try="$ac_compile" |
| 6419 | case "(($ac_try" in |
| 6420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6421 | *) ac_try_echo=$ac_try;; |
| 6422 | esac |
| 6423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6424 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6425 | ac_status=$? |
| 6426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6427 | rm -f conftest.er1 |
| 6428 | cat conftest.err >&5 |
| 6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6430 | (exit $ac_status); } && { |
| 6431 | test -z "$ac_c_werror_flag" || |
| 6432 | test ! -s conftest.err |
| 6433 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6434 | eval "$as_ac_Header=yes" |
| 6435 | else |
| 6436 | echo "$as_me: failed program was:" >&5 |
| 6437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6438 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6439 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6440 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6441 | |
| 6442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6443 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6444 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6445 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6446 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6447 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6448 | cat >>confdefs.h <<_ACEOF |
| 6449 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6450 | _ACEOF |
| 6451 | |
| 6452 | fi |
| 6453 | |
| 6454 | done |
| 6455 | |
| 6456 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6457 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6458 | was_it_defined=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6459 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6460 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6461 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6462 | /* confdefs.h. */ |
| 6463 | _ACEOF |
| 6464 | cat confdefs.h >>conftest.$ac_ext |
| 6465 | cat >>conftest.$ac_ext <<_ACEOF |
| 6466 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6467 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6468 | |
| 6469 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6470 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6471 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6472 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6474 | |
| 6475 | |
| 6476 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6477 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6478 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6479 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6480 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6481 | fi |
| 6482 | rm -f conftest* |
| 6483 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6484 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6485 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6486 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6487 | # Check whether using makedev requires defining _OSF_SOURCE |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6488 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6489 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6490 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6491 | /* confdefs.h. */ |
| 6492 | _ACEOF |
| 6493 | cat confdefs.h >>conftest.$ac_ext |
| 6494 | cat >>conftest.$ac_ext <<_ACEOF |
| 6495 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6496 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6497 | int |
| 6498 | main () |
| 6499 | { |
| 6500 | makedev(0, 0) |
| 6501 | ; |
| 6502 | return 0; |
| 6503 | } |
| 6504 | _ACEOF |
| 6505 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6506 | if { (ac_try="$ac_link" |
| 6507 | case "(($ac_try" in |
| 6508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6509 | *) ac_try_echo=$ac_try;; |
| 6510 | esac |
| 6511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6512 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6513 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6515 | rm -f conftest.er1 |
| 6516 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6518 | (exit $ac_status); } && { |
| 6519 | test -z "$ac_c_werror_flag" || |
| 6520 | test ! -s conftest.err |
| 6521 | } && test -s conftest$ac_exeext && |
| 6522 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6523 | ac_cv_has_makedev=yes |
| 6524 | else |
| 6525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6527 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6528 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6529 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6530 | |
| 6531 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6532 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6533 | if test "$ac_cv_has_makedev" = "no"; then |
| 6534 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6535 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6536 | /* confdefs.h. */ |
| 6537 | _ACEOF |
| 6538 | cat confdefs.h >>conftest.$ac_ext |
| 6539 | cat >>conftest.$ac_ext <<_ACEOF |
| 6540 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6541 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6542 | #define _OSF_SOURCE 1 |
| 6543 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6544 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6545 | int |
| 6546 | main () |
| 6547 | { |
| 6548 | makedev(0, 0) |
| 6549 | ; |
| 6550 | return 0; |
| 6551 | } |
| 6552 | _ACEOF |
| 6553 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6554 | if { (ac_try="$ac_link" |
| 6555 | case "(($ac_try" in |
| 6556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6557 | *) ac_try_echo=$ac_try;; |
| 6558 | esac |
| 6559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6560 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6563 | rm -f conftest.er1 |
| 6564 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6566 | (exit $ac_status); } && { |
| 6567 | test -z "$ac_c_werror_flag" || |
| 6568 | test ! -s conftest.err |
| 6569 | } && test -s conftest$ac_exeext && |
| 6570 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6571 | ac_cv_has_makedev=yes |
| 6572 | else |
| 6573 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6575 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6576 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6577 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6578 | |
| 6579 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6580 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6581 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6582 | |
| 6583 | cat >>confdefs.h <<\_ACEOF |
| 6584 | #define _OSF_SOURCE 1 |
| 6585 | _ACEOF |
| 6586 | |
| 6587 | fi |
| 6588 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6589 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6590 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6591 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6592 | |
| 6593 | cat >>confdefs.h <<\_ACEOF |
| 6594 | #define HAVE_MAKEDEV 1 |
| 6595 | _ACEOF |
| 6596 | |
| 6597 | fi |
| 6598 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6599 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6600 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6601 | # defined, but the compiler does not support pragma redefine_extname, |
| 6602 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6603 | # structures (such as rlimit64) without declaring them. As a |
| 6604 | # work-around, disable LFS on such configurations |
| 6605 | |
| 6606 | use_lfs=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6607 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6608 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6609 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6610 | /* confdefs.h. */ |
| 6611 | _ACEOF |
| 6612 | cat confdefs.h >>conftest.$ac_ext |
| 6613 | cat >>conftest.$ac_ext <<_ACEOF |
| 6614 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6615 | |
| 6616 | #define _LARGEFILE_SOURCE 1 |
| 6617 | #define _FILE_OFFSET_BITS 64 |
| 6618 | #include <sys/resource.h> |
| 6619 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6620 | int |
| 6621 | main () |
| 6622 | { |
| 6623 | struct rlimit foo; |
| 6624 | ; |
| 6625 | return 0; |
| 6626 | } |
| 6627 | _ACEOF |
| 6628 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6629 | if { (ac_try="$ac_compile" |
| 6630 | case "(($ac_try" in |
| 6631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6632 | *) ac_try_echo=$ac_try;; |
| 6633 | esac |
| 6634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6635 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6636 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6638 | rm -f conftest.er1 |
| 6639 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6641 | (exit $ac_status); } && { |
| 6642 | test -z "$ac_c_werror_flag" || |
| 6643 | test ! -s conftest.err |
| 6644 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6645 | sol_lfs_bug=no |
| 6646 | else |
| 6647 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6649 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6650 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6651 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6652 | |
| 6653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6654 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6655 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6656 | if test "$sol_lfs_bug" = "yes"; then |
| 6657 | use_lfs=no |
| 6658 | fi |
| 6659 | |
| 6660 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6661 | # Two defines needed to enable largefile support on various platforms |
| 6662 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6664 | cat >>confdefs.h <<\_ACEOF |
| 6665 | #define _LARGEFILE_SOURCE 1 |
| 6666 | _ACEOF |
| 6667 | |
| 6668 | |
| 6669 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6670 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6671 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6672 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6673 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6674 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6675 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6676 | cat >> confdefs.h <<\EOF |
| 6677 | #if defined(SCO_DS) |
| 6678 | #undef _OFF_T |
| 6679 | #endif |
| 6680 | EOF |
| 6681 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6682 | # Type availability checks |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6683 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6684 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6685 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 6686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6689 | /* confdefs.h. */ |
| 6690 | _ACEOF |
| 6691 | cat confdefs.h >>conftest.$ac_ext |
| 6692 | cat >>conftest.$ac_ext <<_ACEOF |
| 6693 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6694 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6695 | typedef mode_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6696 | int |
| 6697 | main () |
| 6698 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6699 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6700 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6701 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6702 | return 0; |
| 6703 | ; |
| 6704 | return 0; |
| 6705 | } |
| 6706 | _ACEOF |
| 6707 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6708 | if { (ac_try="$ac_compile" |
| 6709 | case "(($ac_try" in |
| 6710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6711 | *) ac_try_echo=$ac_try;; |
| 6712 | esac |
| 6713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6714 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6715 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6717 | rm -f conftest.er1 |
| 6718 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6720 | (exit $ac_status); } && { |
| 6721 | test -z "$ac_c_werror_flag" || |
| 6722 | test ! -s conftest.err |
| 6723 | } && test -s conftest.$ac_objext; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6724 | ac_cv_type_mode_t=yes |
| 6725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6726 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6728 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6729 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6730 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6731 | |
| 6732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6733 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6734 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6735 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | if test $ac_cv_type_mode_t = yes; then |
| 6737 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6739 | |
| 6740 | cat >>confdefs.h <<_ACEOF |
| 6741 | #define mode_t int |
| 6742 | _ACEOF |
| 6743 | |
| 6744 | fi |
| 6745 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6746 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6747 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6748 | if test "${ac_cv_type_off_t+set}" = set; then |
| 6749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6750 | else |
| 6751 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6752 | /* confdefs.h. */ |
| 6753 | _ACEOF |
| 6754 | cat confdefs.h >>conftest.$ac_ext |
| 6755 | cat >>conftest.$ac_ext <<_ACEOF |
| 6756 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6757 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6758 | typedef off_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6759 | int |
| 6760 | main () |
| 6761 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6762 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6763 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6764 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6765 | return 0; |
| 6766 | ; |
| 6767 | return 0; |
| 6768 | } |
| 6769 | _ACEOF |
| 6770 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6771 | if { (ac_try="$ac_compile" |
| 6772 | case "(($ac_try" in |
| 6773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6774 | *) ac_try_echo=$ac_try;; |
| 6775 | esac |
| 6776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6777 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6778 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6780 | rm -f conftest.er1 |
| 6781 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6783 | (exit $ac_status); } && { |
| 6784 | test -z "$ac_c_werror_flag" || |
| 6785 | test ! -s conftest.err |
| 6786 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6787 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6791 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6792 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6793 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6794 | |
| 6795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6796 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6797 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6798 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6799 | if test $ac_cv_type_off_t = yes; then |
| 6800 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6801 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6802 | |
| 6803 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6804 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | _ACEOF |
| 6806 | |
| 6807 | fi |
| 6808 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6809 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6810 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6811 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 6812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6813 | else |
| 6814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6815 | /* confdefs.h. */ |
| 6816 | _ACEOF |
| 6817 | cat confdefs.h >>conftest.$ac_ext |
| 6818 | cat >>conftest.$ac_ext <<_ACEOF |
| 6819 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6820 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6821 | typedef pid_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6822 | int |
| 6823 | main () |
| 6824 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6825 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6826 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6827 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6828 | return 0; |
| 6829 | ; |
| 6830 | return 0; |
| 6831 | } |
| 6832 | _ACEOF |
| 6833 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6834 | if { (ac_try="$ac_compile" |
| 6835 | case "(($ac_try" in |
| 6836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6837 | *) ac_try_echo=$ac_try;; |
| 6838 | esac |
| 6839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6840 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6841 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6843 | rm -f conftest.er1 |
| 6844 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6846 | (exit $ac_status); } && { |
| 6847 | test -z "$ac_c_werror_flag" || |
| 6848 | test ! -s conftest.err |
| 6849 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6850 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6852 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6854 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6855 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6856 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6857 | |
| 6858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6859 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6860 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6861 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6862 | if test $ac_cv_type_pid_t = yes; then |
| 6863 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6865 | |
| 6866 | cat >>confdefs.h <<_ACEOF |
| 6867 | #define pid_t int |
| 6868 | _ACEOF |
| 6869 | |
| 6870 | fi |
| 6871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6872 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6873 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6874 | if test "${ac_cv_type_signal+set}" = set; then |
| 6875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6876 | else |
| 6877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6878 | /* confdefs.h. */ |
| 6879 | _ACEOF |
| 6880 | cat confdefs.h >>conftest.$ac_ext |
| 6881 | cat >>conftest.$ac_ext <<_ACEOF |
| 6882 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6883 | #include <sys/types.h> |
| 6884 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6886 | int |
| 6887 | main () |
| 6888 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6889 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6890 | ; |
| 6891 | return 0; |
| 6892 | } |
| 6893 | _ACEOF |
| 6894 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6895 | if { (ac_try="$ac_compile" |
| 6896 | case "(($ac_try" in |
| 6897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6898 | *) ac_try_echo=$ac_try;; |
| 6899 | esac |
| 6900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6901 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6902 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6904 | rm -f conftest.er1 |
| 6905 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6907 | (exit $ac_status); } && { |
| 6908 | test -z "$ac_c_werror_flag" || |
| 6909 | test ! -s conftest.err |
| 6910 | } && test -s conftest.$ac_objext; then |
| 6911 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6913 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6915 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6916 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6918 | |
| 6919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6920 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6921 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6922 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6924 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6925 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6926 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6927 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6928 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6929 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6930 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6931 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6934 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6935 | /* confdefs.h. */ |
| 6936 | _ACEOF |
| 6937 | cat confdefs.h >>conftest.$ac_ext |
| 6938 | cat >>conftest.$ac_ext <<_ACEOF |
| 6939 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6940 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6941 | typedef size_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | int |
| 6943 | main () |
| 6944 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6945 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6946 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6947 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | return 0; |
| 6949 | ; |
| 6950 | return 0; |
| 6951 | } |
| 6952 | _ACEOF |
| 6953 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6954 | if { (ac_try="$ac_compile" |
| 6955 | case "(($ac_try" in |
| 6956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6957 | *) ac_try_echo=$ac_try;; |
| 6958 | esac |
| 6959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6960 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6961 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6963 | rm -f conftest.er1 |
| 6964 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6966 | (exit $ac_status); } && { |
| 6967 | test -z "$ac_c_werror_flag" || |
| 6968 | test ! -s conftest.err |
| 6969 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6970 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6972 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6974 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6975 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6976 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6977 | |
| 6978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6979 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6980 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6981 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6982 | if test $ac_cv_type_size_t = yes; then |
| 6983 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6985 | |
| 6986 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6987 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6988 | _ACEOF |
| 6989 | |
| 6990 | fi |
| 6991 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6992 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6993 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6994 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6996 | else |
| 6997 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6998 | /* confdefs.h. */ |
| 6999 | _ACEOF |
| 7000 | cat confdefs.h >>conftest.$ac_ext |
| 7001 | cat >>conftest.$ac_ext <<_ACEOF |
| 7002 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7003 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7004 | |
| 7005 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7006 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7007 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7008 | ac_cv_type_uid_t=yes |
| 7009 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7010 | ac_cv_type_uid_t=no |
| 7011 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7012 | rm -f conftest* |
| 7013 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7014 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7015 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7016 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7017 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7019 | cat >>confdefs.h <<\_ACEOF |
| 7020 | #define uid_t int |
| 7021 | _ACEOF |
| 7022 | |
| 7023 | |
| 7024 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7025 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7026 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7027 | |
| 7028 | fi |
| 7029 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7030 | |
| 7031 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7032 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
| 7033 | if test "${ac_cv_c_uint32_t+set}" = set; then |
| 7034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7035 | else |
| 7036 | ac_cv_c_uint32_t=no |
| 7037 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7038 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7039 | cat >conftest.$ac_ext <<_ACEOF |
| 7040 | /* confdefs.h. */ |
| 7041 | _ACEOF |
| 7042 | cat confdefs.h >>conftest.$ac_ext |
| 7043 | cat >>conftest.$ac_ext <<_ACEOF |
| 7044 | /* end confdefs.h. */ |
| 7045 | $ac_includes_default |
| 7046 | int |
| 7047 | main () |
| 7048 | { |
| 7049 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7050 | test_array [0] = 0 |
| 7051 | |
| 7052 | ; |
| 7053 | return 0; |
| 7054 | } |
| 7055 | _ACEOF |
| 7056 | rm -f conftest.$ac_objext |
| 7057 | if { (ac_try="$ac_compile" |
| 7058 | case "(($ac_try" in |
| 7059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7060 | *) ac_try_echo=$ac_try;; |
| 7061 | esac |
| 7062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7063 | (eval "$ac_compile") 2>conftest.er1 |
| 7064 | ac_status=$? |
| 7065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7066 | rm -f conftest.er1 |
| 7067 | cat conftest.err >&5 |
| 7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7069 | (exit $ac_status); } && { |
| 7070 | test -z "$ac_c_werror_flag" || |
| 7071 | test ! -s conftest.err |
| 7072 | } && test -s conftest.$ac_objext; then |
| 7073 | case $ac_type in |
| 7074 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7075 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7076 | esac |
| 7077 | |
| 7078 | else |
| 7079 | echo "$as_me: failed program was:" >&5 |
| 7080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7081 | |
| 7082 | |
| 7083 | fi |
| 7084 | |
| 7085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7086 | test "$ac_cv_c_uint32_t" != no && break |
| 7087 | done |
| 7088 | fi |
| 7089 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7090 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
| 7091 | case $ac_cv_c_uint32_t in #( |
| 7092 | no|yes) ;; #( |
| 7093 | *) |
| 7094 | |
| 7095 | cat >>confdefs.h <<\_ACEOF |
| 7096 | #define _UINT32_T 1 |
| 7097 | _ACEOF |
| 7098 | |
| 7099 | |
| 7100 | cat >>confdefs.h <<_ACEOF |
| 7101 | #define uint32_t $ac_cv_c_uint32_t |
| 7102 | _ACEOF |
| 7103 | ;; |
| 7104 | esac |
| 7105 | |
| 7106 | |
| 7107 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7108 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 7109 | if test "${ac_cv_c_uint64_t+set}" = set; then |
| 7110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7111 | else |
| 7112 | ac_cv_c_uint64_t=no |
| 7113 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7114 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7115 | cat >conftest.$ac_ext <<_ACEOF |
| 7116 | /* confdefs.h. */ |
| 7117 | _ACEOF |
| 7118 | cat confdefs.h >>conftest.$ac_ext |
| 7119 | cat >>conftest.$ac_ext <<_ACEOF |
| 7120 | /* end confdefs.h. */ |
| 7121 | $ac_includes_default |
| 7122 | int |
| 7123 | main () |
| 7124 | { |
| 7125 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7126 | test_array [0] = 0 |
| 7127 | |
| 7128 | ; |
| 7129 | return 0; |
| 7130 | } |
| 7131 | _ACEOF |
| 7132 | rm -f conftest.$ac_objext |
| 7133 | if { (ac_try="$ac_compile" |
| 7134 | case "(($ac_try" in |
| 7135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7136 | *) ac_try_echo=$ac_try;; |
| 7137 | esac |
| 7138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7139 | (eval "$ac_compile") 2>conftest.er1 |
| 7140 | ac_status=$? |
| 7141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7142 | rm -f conftest.er1 |
| 7143 | cat conftest.err >&5 |
| 7144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7145 | (exit $ac_status); } && { |
| 7146 | test -z "$ac_c_werror_flag" || |
| 7147 | test ! -s conftest.err |
| 7148 | } && test -s conftest.$ac_objext; then |
| 7149 | case $ac_type in |
| 7150 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7151 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7152 | esac |
| 7153 | |
| 7154 | else |
| 7155 | echo "$as_me: failed program was:" >&5 |
| 7156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7157 | |
| 7158 | |
| 7159 | fi |
| 7160 | |
| 7161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7162 | test "$ac_cv_c_uint64_t" != no && break |
| 7163 | done |
| 7164 | fi |
| 7165 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7166 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
| 7167 | case $ac_cv_c_uint64_t in #( |
| 7168 | no|yes) ;; #( |
| 7169 | *) |
| 7170 | |
| 7171 | cat >>confdefs.h <<\_ACEOF |
| 7172 | #define _UINT64_T 1 |
| 7173 | _ACEOF |
| 7174 | |
| 7175 | |
| 7176 | cat >>confdefs.h <<_ACEOF |
| 7177 | #define uint64_t $ac_cv_c_uint64_t |
| 7178 | _ACEOF |
| 7179 | ;; |
| 7180 | esac |
| 7181 | |
| 7182 | |
| 7183 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7184 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
| 7185 | if test "${ac_cv_c_int32_t+set}" = set; then |
| 7186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7187 | else |
| 7188 | ac_cv_c_int32_t=no |
| 7189 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7190 | 'long long int' 'short int' 'signed char'; do |
| 7191 | cat >conftest.$ac_ext <<_ACEOF |
| 7192 | /* confdefs.h. */ |
| 7193 | _ACEOF |
| 7194 | cat confdefs.h >>conftest.$ac_ext |
| 7195 | cat >>conftest.$ac_ext <<_ACEOF |
| 7196 | /* end confdefs.h. */ |
| 7197 | $ac_includes_default |
| 7198 | int |
| 7199 | main () |
| 7200 | { |
| 7201 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7202 | test_array [0] = 0 |
| 7203 | |
| 7204 | ; |
| 7205 | return 0; |
| 7206 | } |
| 7207 | _ACEOF |
| 7208 | rm -f conftest.$ac_objext |
| 7209 | if { (ac_try="$ac_compile" |
| 7210 | case "(($ac_try" in |
| 7211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7212 | *) ac_try_echo=$ac_try;; |
| 7213 | esac |
| 7214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7215 | (eval "$ac_compile") 2>conftest.er1 |
| 7216 | ac_status=$? |
| 7217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7218 | rm -f conftest.er1 |
| 7219 | cat conftest.err >&5 |
| 7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7221 | (exit $ac_status); } && { |
| 7222 | test -z "$ac_c_werror_flag" || |
| 7223 | test ! -s conftest.err |
| 7224 | } && test -s conftest.$ac_objext; then |
| 7225 | cat >conftest.$ac_ext <<_ACEOF |
| 7226 | /* confdefs.h. */ |
| 7227 | _ACEOF |
| 7228 | cat confdefs.h >>conftest.$ac_ext |
| 7229 | cat >>conftest.$ac_ext <<_ACEOF |
| 7230 | /* end confdefs.h. */ |
| 7231 | $ac_includes_default |
| 7232 | int |
| 7233 | main () |
| 7234 | { |
| 7235 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
| 7236 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
| 7237 | test_array [0] = 0 |
| 7238 | |
| 7239 | ; |
| 7240 | return 0; |
| 7241 | } |
| 7242 | _ACEOF |
| 7243 | rm -f conftest.$ac_objext |
| 7244 | if { (ac_try="$ac_compile" |
| 7245 | case "(($ac_try" in |
| 7246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7247 | *) ac_try_echo=$ac_try;; |
| 7248 | esac |
| 7249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7250 | (eval "$ac_compile") 2>conftest.er1 |
| 7251 | ac_status=$? |
| 7252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7253 | rm -f conftest.er1 |
| 7254 | cat conftest.err >&5 |
| 7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7256 | (exit $ac_status); } && { |
| 7257 | test -z "$ac_c_werror_flag" || |
| 7258 | test ! -s conftest.err |
| 7259 | } && test -s conftest.$ac_objext; then |
| 7260 | : |
| 7261 | else |
| 7262 | echo "$as_me: failed program was:" >&5 |
| 7263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7264 | |
| 7265 | case $ac_type in |
| 7266 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7267 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7268 | esac |
| 7269 | |
| 7270 | fi |
| 7271 | |
| 7272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7273 | else |
| 7274 | echo "$as_me: failed program was:" >&5 |
| 7275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7276 | |
| 7277 | |
| 7278 | fi |
| 7279 | |
| 7280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7281 | test "$ac_cv_c_int32_t" != no && break |
| 7282 | done |
| 7283 | fi |
| 7284 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7285 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
| 7286 | case $ac_cv_c_int32_t in #( |
| 7287 | no|yes) ;; #( |
| 7288 | *) |
| 7289 | |
| 7290 | cat >>confdefs.h <<_ACEOF |
| 7291 | #define int32_t $ac_cv_c_int32_t |
| 7292 | _ACEOF |
| 7293 | ;; |
| 7294 | esac |
| 7295 | |
| 7296 | |
| 7297 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7298 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 7299 | if test "${ac_cv_c_int64_t+set}" = set; then |
| 7300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7301 | else |
| 7302 | ac_cv_c_int64_t=no |
| 7303 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7304 | 'long long int' 'short int' 'signed char'; do |
| 7305 | cat >conftest.$ac_ext <<_ACEOF |
| 7306 | /* confdefs.h. */ |
| 7307 | _ACEOF |
| 7308 | cat confdefs.h >>conftest.$ac_ext |
| 7309 | cat >>conftest.$ac_ext <<_ACEOF |
| 7310 | /* end confdefs.h. */ |
| 7311 | $ac_includes_default |
| 7312 | int |
| 7313 | main () |
| 7314 | { |
| 7315 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7316 | test_array [0] = 0 |
| 7317 | |
| 7318 | ; |
| 7319 | return 0; |
| 7320 | } |
| 7321 | _ACEOF |
| 7322 | rm -f conftest.$ac_objext |
| 7323 | if { (ac_try="$ac_compile" |
| 7324 | case "(($ac_try" in |
| 7325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7326 | *) ac_try_echo=$ac_try;; |
| 7327 | esac |
| 7328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7329 | (eval "$ac_compile") 2>conftest.er1 |
| 7330 | ac_status=$? |
| 7331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7332 | rm -f conftest.er1 |
| 7333 | cat conftest.err >&5 |
| 7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7335 | (exit $ac_status); } && { |
| 7336 | test -z "$ac_c_werror_flag" || |
| 7337 | test ! -s conftest.err |
| 7338 | } && test -s conftest.$ac_objext; then |
| 7339 | cat >conftest.$ac_ext <<_ACEOF |
| 7340 | /* confdefs.h. */ |
| 7341 | _ACEOF |
| 7342 | cat confdefs.h >>conftest.$ac_ext |
| 7343 | cat >>conftest.$ac_ext <<_ACEOF |
| 7344 | /* end confdefs.h. */ |
| 7345 | $ac_includes_default |
| 7346 | int |
| 7347 | main () |
| 7348 | { |
| 7349 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
| 7350 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
| 7351 | test_array [0] = 0 |
| 7352 | |
| 7353 | ; |
| 7354 | return 0; |
| 7355 | } |
| 7356 | _ACEOF |
| 7357 | rm -f conftest.$ac_objext |
| 7358 | if { (ac_try="$ac_compile" |
| 7359 | case "(($ac_try" in |
| 7360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7361 | *) ac_try_echo=$ac_try;; |
| 7362 | esac |
| 7363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7364 | (eval "$ac_compile") 2>conftest.er1 |
| 7365 | ac_status=$? |
| 7366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7367 | rm -f conftest.er1 |
| 7368 | cat conftest.err >&5 |
| 7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7370 | (exit $ac_status); } && { |
| 7371 | test -z "$ac_c_werror_flag" || |
| 7372 | test ! -s conftest.err |
| 7373 | } && test -s conftest.$ac_objext; then |
| 7374 | : |
| 7375 | else |
| 7376 | echo "$as_me: failed program was:" >&5 |
| 7377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7378 | |
| 7379 | case $ac_type in |
| 7380 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7381 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7382 | esac |
| 7383 | |
| 7384 | fi |
| 7385 | |
| 7386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7387 | else |
| 7388 | echo "$as_me: failed program was:" >&5 |
| 7389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7390 | |
| 7391 | |
| 7392 | fi |
| 7393 | |
| 7394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7395 | test "$ac_cv_c_int64_t" != no && break |
| 7396 | done |
| 7397 | fi |
| 7398 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7399 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
| 7400 | case $ac_cv_c_int64_t in #( |
| 7401 | no|yes) ;; #( |
| 7402 | *) |
| 7403 | |
| 7404 | cat >>confdefs.h <<_ACEOF |
| 7405 | #define int64_t $ac_cv_c_int64_t |
| 7406 | _ACEOF |
| 7407 | ;; |
| 7408 | esac |
| 7409 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7410 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7411 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7412 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 7413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7414 | else |
| 7415 | cat >conftest.$ac_ext <<_ACEOF |
| 7416 | /* confdefs.h. */ |
| 7417 | _ACEOF |
| 7418 | cat confdefs.h >>conftest.$ac_ext |
| 7419 | cat >>conftest.$ac_ext <<_ACEOF |
| 7420 | /* end confdefs.h. */ |
| 7421 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7422 | typedef ssize_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7423 | int |
| 7424 | main () |
| 7425 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7426 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7427 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7428 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7429 | return 0; |
| 7430 | ; |
| 7431 | return 0; |
| 7432 | } |
| 7433 | _ACEOF |
| 7434 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7435 | if { (ac_try="$ac_compile" |
| 7436 | case "(($ac_try" in |
| 7437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7438 | *) ac_try_echo=$ac_try;; |
| 7439 | esac |
| 7440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7441 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7442 | ac_status=$? |
| 7443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7444 | rm -f conftest.er1 |
| 7445 | cat conftest.err >&5 |
| 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7447 | (exit $ac_status); } && { |
| 7448 | test -z "$ac_c_werror_flag" || |
| 7449 | test ! -s conftest.err |
| 7450 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7451 | ac_cv_type_ssize_t=yes |
| 7452 | else |
| 7453 | echo "$as_me: failed program was:" >&5 |
| 7454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7456 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7457 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7458 | |
| 7459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7461 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7462 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7463 | if test $ac_cv_type_ssize_t = yes; then |
| 7464 | |
| 7465 | cat >>confdefs.h <<\_ACEOF |
| 7466 | #define HAVE_SSIZE_T 1 |
| 7467 | _ACEOF |
| 7468 | |
| 7469 | fi |
| 7470 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7471 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7472 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7473 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7474 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7475 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7476 | if test "${ac_cv_type_int+set}" = set; then |
| 7477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7478 | else |
| 7479 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7480 | /* confdefs.h. */ |
| 7481 | _ACEOF |
| 7482 | cat confdefs.h >>conftest.$ac_ext |
| 7483 | cat >>conftest.$ac_ext <<_ACEOF |
| 7484 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7485 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7486 | typedef int ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7487 | int |
| 7488 | main () |
| 7489 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7490 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7491 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7492 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7493 | return 0; |
| 7494 | ; |
| 7495 | return 0; |
| 7496 | } |
| 7497 | _ACEOF |
| 7498 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7499 | if { (ac_try="$ac_compile" |
| 7500 | case "(($ac_try" in |
| 7501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7502 | *) ac_try_echo=$ac_try;; |
| 7503 | esac |
| 7504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7505 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7506 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7508 | rm -f conftest.er1 |
| 7509 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7511 | (exit $ac_status); } && { |
| 7512 | test -z "$ac_c_werror_flag" || |
| 7513 | test ! -s conftest.err |
| 7514 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7515 | ac_cv_type_int=yes |
| 7516 | else |
| 7517 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7520 | ac_cv_type_int=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7521 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 7522 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7524 | fi |
| 7525 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7526 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7527 | |
| 7528 | # The cast to long int works around a bug in the HP C Compiler |
| 7529 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7530 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7531 | # This bug is HP SR number 8606223364. |
| 7532 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7533 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7534 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 7535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7536 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7537 | if test "$cross_compiling" = yes; then |
| 7538 | # Depending upon the size, compute the lo and hi bounds. |
| 7539 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7540 | /* confdefs.h. */ |
| 7541 | _ACEOF |
| 7542 | cat confdefs.h >>conftest.$ac_ext |
| 7543 | cat >>conftest.$ac_ext <<_ACEOF |
| 7544 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7545 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7546 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7547 | int |
| 7548 | main () |
| 7549 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7550 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7551 | test_array [0] = 0 |
| 7552 | |
| 7553 | ; |
| 7554 | return 0; |
| 7555 | } |
| 7556 | _ACEOF |
| 7557 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7558 | if { (ac_try="$ac_compile" |
| 7559 | case "(($ac_try" in |
| 7560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7561 | *) ac_try_echo=$ac_try;; |
| 7562 | esac |
| 7563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7564 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7565 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7567 | rm -f conftest.er1 |
| 7568 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7570 | (exit $ac_status); } && { |
| 7571 | test -z "$ac_c_werror_flag" || |
| 7572 | test ! -s conftest.err |
| 7573 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7574 | ac_lo=0 ac_mid=0 |
| 7575 | while :; do |
| 7576 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7577 | /* confdefs.h. */ |
| 7578 | _ACEOF |
| 7579 | cat confdefs.h >>conftest.$ac_ext |
| 7580 | cat >>conftest.$ac_ext <<_ACEOF |
| 7581 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7582 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7583 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7584 | int |
| 7585 | main () |
| 7586 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7587 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7588 | test_array [0] = 0 |
| 7589 | |
| 7590 | ; |
| 7591 | return 0; |
| 7592 | } |
| 7593 | _ACEOF |
| 7594 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7595 | if { (ac_try="$ac_compile" |
| 7596 | case "(($ac_try" in |
| 7597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7598 | *) ac_try_echo=$ac_try;; |
| 7599 | esac |
| 7600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7601 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7602 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7604 | rm -f conftest.er1 |
| 7605 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7607 | (exit $ac_status); } && { |
| 7608 | test -z "$ac_c_werror_flag" || |
| 7609 | test ! -s conftest.err |
| 7610 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7611 | ac_hi=$ac_mid; break |
| 7612 | else |
| 7613 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7615 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7616 | ac_lo=`expr $ac_mid + 1` |
| 7617 | if test $ac_lo -le $ac_mid; then |
| 7618 | ac_lo= ac_hi= |
| 7619 | break |
| 7620 | fi |
| 7621 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7622 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7623 | |
| 7624 | 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] | 7625 | done |
| 7626 | else |
| 7627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7630 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7631 | /* confdefs.h. */ |
| 7632 | _ACEOF |
| 7633 | cat confdefs.h >>conftest.$ac_ext |
| 7634 | cat >>conftest.$ac_ext <<_ACEOF |
| 7635 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7637 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7638 | int |
| 7639 | main () |
| 7640 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7641 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7642 | test_array [0] = 0 |
| 7643 | |
| 7644 | ; |
| 7645 | return 0; |
| 7646 | } |
| 7647 | _ACEOF |
| 7648 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7649 | if { (ac_try="$ac_compile" |
| 7650 | case "(($ac_try" in |
| 7651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7652 | *) ac_try_echo=$ac_try;; |
| 7653 | esac |
| 7654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7655 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7656 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7658 | rm -f conftest.er1 |
| 7659 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7661 | (exit $ac_status); } && { |
| 7662 | test -z "$ac_c_werror_flag" || |
| 7663 | test ! -s conftest.err |
| 7664 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7665 | ac_hi=-1 ac_mid=-1 |
| 7666 | while :; do |
| 7667 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7668 | /* confdefs.h. */ |
| 7669 | _ACEOF |
| 7670 | cat confdefs.h >>conftest.$ac_ext |
| 7671 | cat >>conftest.$ac_ext <<_ACEOF |
| 7672 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7673 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7674 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7675 | int |
| 7676 | main () |
| 7677 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7678 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | test_array [0] = 0 |
| 7680 | |
| 7681 | ; |
| 7682 | return 0; |
| 7683 | } |
| 7684 | _ACEOF |
| 7685 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7686 | if { (ac_try="$ac_compile" |
| 7687 | case "(($ac_try" in |
| 7688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7689 | *) ac_try_echo=$ac_try;; |
| 7690 | esac |
| 7691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7692 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7693 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7695 | rm -f conftest.er1 |
| 7696 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7698 | (exit $ac_status); } && { |
| 7699 | test -z "$ac_c_werror_flag" || |
| 7700 | test ! -s conftest.err |
| 7701 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7702 | ac_lo=$ac_mid; break |
| 7703 | else |
| 7704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7706 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7707 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7708 | if test $ac_mid -le $ac_hi; then |
| 7709 | ac_lo= ac_hi= |
| 7710 | break |
| 7711 | fi |
| 7712 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7714 | |
| 7715 | 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] | 7716 | done |
| 7717 | else |
| 7718 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7720 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7721 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7722 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7723 | |
| 7724 | 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] | 7725 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7726 | |
| 7727 | 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] | 7728 | # Binary search between lo and hi bounds. |
| 7729 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7730 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7731 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7732 | /* confdefs.h. */ |
| 7733 | _ACEOF |
| 7734 | cat confdefs.h >>conftest.$ac_ext |
| 7735 | cat >>conftest.$ac_ext <<_ACEOF |
| 7736 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7737 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7738 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7739 | int |
| 7740 | main () |
| 7741 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7742 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | test_array [0] = 0 |
| 7744 | |
| 7745 | ; |
| 7746 | return 0; |
| 7747 | } |
| 7748 | _ACEOF |
| 7749 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7750 | if { (ac_try="$ac_compile" |
| 7751 | case "(($ac_try" in |
| 7752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7753 | *) ac_try_echo=$ac_try;; |
| 7754 | esac |
| 7755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7759 | rm -f conftest.er1 |
| 7760 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7762 | (exit $ac_status); } && { |
| 7763 | test -z "$ac_c_werror_flag" || |
| 7764 | test ! -s conftest.err |
| 7765 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | ac_hi=$ac_mid |
| 7767 | else |
| 7768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7770 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7771 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7772 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7773 | |
| 7774 | 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] | 7775 | done |
| 7776 | case $ac_lo in |
| 7777 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7778 | '') if test "$ac_cv_type_int" = yes; then |
| 7779 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7780 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7781 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7782 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7783 | { (exit 77); exit 77; }; } |
| 7784 | else |
| 7785 | ac_cv_sizeof_int=0 |
| 7786 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7787 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7790 | /* confdefs.h. */ |
| 7791 | _ACEOF |
| 7792 | cat confdefs.h >>conftest.$ac_ext |
| 7793 | cat >>conftest.$ac_ext <<_ACEOF |
| 7794 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7795 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7796 | typedef int ac__type_sizeof_; |
| 7797 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7798 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7799 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7801 | int |
| 7802 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7803 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7804 | |
| 7805 | FILE *f = fopen ("conftest.val", "w"); |
| 7806 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7807 | return 1; |
| 7808 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7809 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7810 | long int i = longval (); |
| 7811 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7812 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7813 | fprintf (f, "%ld\n", i); |
| 7814 | } |
| 7815 | else |
| 7816 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7817 | unsigned long int i = ulongval (); |
| 7818 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7819 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7820 | fprintf (f, "%lu\n", i); |
| 7821 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7822 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7823 | |
| 7824 | ; |
| 7825 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7826 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7827 | _ACEOF |
| 7828 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7829 | if { (ac_try="$ac_link" |
| 7830 | case "(($ac_try" in |
| 7831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7832 | *) ac_try_echo=$ac_try;; |
| 7833 | esac |
| 7834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7835 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7836 | ac_status=$? |
| 7837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7838 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7839 | { (case "(($ac_try" in |
| 7840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7841 | *) ac_try_echo=$ac_try;; |
| 7842 | esac |
| 7843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7844 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7845 | ac_status=$? |
| 7846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7847 | (exit $ac_status); }; }; then |
| 7848 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7850 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7854 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7855 | if test "$ac_cv_type_int" = yes; then |
| 7856 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7857 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7858 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7859 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7860 | { (exit 77); exit 77; }; } |
| 7861 | else |
| 7862 | ac_cv_sizeof_int=0 |
| 7863 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7864 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7865 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7866 | fi |
| 7867 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7868 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7869 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7870 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
| 7871 | |
| 7872 | |
| 7873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7874 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7875 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7877 | |
| 7878 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7879 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7880 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | if test "${ac_cv_type_long+set}" = set; then |
| 7882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7883 | else |
| 7884 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7885 | /* confdefs.h. */ |
| 7886 | _ACEOF |
| 7887 | cat confdefs.h >>conftest.$ac_ext |
| 7888 | cat >>conftest.$ac_ext <<_ACEOF |
| 7889 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7890 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7891 | typedef long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7892 | int |
| 7893 | main () |
| 7894 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7895 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7896 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7897 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | return 0; |
| 7899 | ; |
| 7900 | return 0; |
| 7901 | } |
| 7902 | _ACEOF |
| 7903 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7904 | if { (ac_try="$ac_compile" |
| 7905 | case "(($ac_try" in |
| 7906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7907 | *) ac_try_echo=$ac_try;; |
| 7908 | esac |
| 7909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7910 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7911 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7913 | rm -f conftest.er1 |
| 7914 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7916 | (exit $ac_status); } && { |
| 7917 | test -z "$ac_c_werror_flag" || |
| 7918 | test ! -s conftest.err |
| 7919 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7920 | ac_cv_type_long=yes |
| 7921 | else |
| 7922 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7925 | ac_cv_type_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 7927 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7929 | fi |
| 7930 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7931 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7932 | |
| 7933 | # The cast to long int works around a bug in the HP C Compiler |
| 7934 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7935 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7936 | # This bug is HP SR number 8606223364. |
| 7937 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7938 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7939 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 7940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7942 | if test "$cross_compiling" = yes; then |
| 7943 | # Depending upon the size, compute the lo and hi bounds. |
| 7944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7945 | /* confdefs.h. */ |
| 7946 | _ACEOF |
| 7947 | cat confdefs.h >>conftest.$ac_ext |
| 7948 | cat >>conftest.$ac_ext <<_ACEOF |
| 7949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7951 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7952 | int |
| 7953 | main () |
| 7954 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7955 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | test_array [0] = 0 |
| 7957 | |
| 7958 | ; |
| 7959 | return 0; |
| 7960 | } |
| 7961 | _ACEOF |
| 7962 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7963 | if { (ac_try="$ac_compile" |
| 7964 | case "(($ac_try" in |
| 7965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7966 | *) ac_try_echo=$ac_try;; |
| 7967 | esac |
| 7968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7969 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7970 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7972 | rm -f conftest.er1 |
| 7973 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7975 | (exit $ac_status); } && { |
| 7976 | test -z "$ac_c_werror_flag" || |
| 7977 | test ! -s conftest.err |
| 7978 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7979 | ac_lo=0 ac_mid=0 |
| 7980 | while :; do |
| 7981 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7982 | /* confdefs.h. */ |
| 7983 | _ACEOF |
| 7984 | cat confdefs.h >>conftest.$ac_ext |
| 7985 | cat >>conftest.$ac_ext <<_ACEOF |
| 7986 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7988 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7989 | int |
| 7990 | main () |
| 7991 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7992 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7993 | test_array [0] = 0 |
| 7994 | |
| 7995 | ; |
| 7996 | return 0; |
| 7997 | } |
| 7998 | _ACEOF |
| 7999 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8000 | if { (ac_try="$ac_compile" |
| 8001 | case "(($ac_try" in |
| 8002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8003 | *) ac_try_echo=$ac_try;; |
| 8004 | esac |
| 8005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8006 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8007 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8009 | rm -f conftest.er1 |
| 8010 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8012 | (exit $ac_status); } && { |
| 8013 | test -z "$ac_c_werror_flag" || |
| 8014 | test ! -s conftest.err |
| 8015 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8016 | ac_hi=$ac_mid; break |
| 8017 | else |
| 8018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8020 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8021 | ac_lo=`expr $ac_mid + 1` |
| 8022 | if test $ac_lo -le $ac_mid; then |
| 8023 | ac_lo= ac_hi= |
| 8024 | break |
| 8025 | fi |
| 8026 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8028 | |
| 8029 | 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] | 8030 | done |
| 8031 | else |
| 8032 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8034 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8036 | /* confdefs.h. */ |
| 8037 | _ACEOF |
| 8038 | cat confdefs.h >>conftest.$ac_ext |
| 8039 | cat >>conftest.$ac_ext <<_ACEOF |
| 8040 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8041 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8042 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8043 | int |
| 8044 | main () |
| 8045 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8046 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 | test_array [0] = 0 |
| 8048 | |
| 8049 | ; |
| 8050 | return 0; |
| 8051 | } |
| 8052 | _ACEOF |
| 8053 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8054 | if { (ac_try="$ac_compile" |
| 8055 | case "(($ac_try" in |
| 8056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8057 | *) ac_try_echo=$ac_try;; |
| 8058 | esac |
| 8059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8060 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8063 | rm -f conftest.er1 |
| 8064 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8066 | (exit $ac_status); } && { |
| 8067 | test -z "$ac_c_werror_flag" || |
| 8068 | test ! -s conftest.err |
| 8069 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8070 | ac_hi=-1 ac_mid=-1 |
| 8071 | while :; do |
| 8072 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8073 | /* confdefs.h. */ |
| 8074 | _ACEOF |
| 8075 | cat confdefs.h >>conftest.$ac_ext |
| 8076 | cat >>conftest.$ac_ext <<_ACEOF |
| 8077 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8078 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8079 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | int |
| 8081 | main () |
| 8082 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8083 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | test_array [0] = 0 |
| 8085 | |
| 8086 | ; |
| 8087 | return 0; |
| 8088 | } |
| 8089 | _ACEOF |
| 8090 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8091 | if { (ac_try="$ac_compile" |
| 8092 | case "(($ac_try" in |
| 8093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8094 | *) ac_try_echo=$ac_try;; |
| 8095 | esac |
| 8096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8097 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8098 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8100 | rm -f conftest.er1 |
| 8101 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8103 | (exit $ac_status); } && { |
| 8104 | test -z "$ac_c_werror_flag" || |
| 8105 | test ! -s conftest.err |
| 8106 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8107 | ac_lo=$ac_mid; break |
| 8108 | else |
| 8109 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8111 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8112 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8113 | if test $ac_mid -le $ac_hi; then |
| 8114 | ac_lo= ac_hi= |
| 8115 | break |
| 8116 | fi |
| 8117 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8119 | |
| 8120 | 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] | 8121 | done |
| 8122 | else |
| 8123 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8125 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8126 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8128 | |
| 8129 | 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] | 8130 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8131 | |
| 8132 | 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] | 8133 | # Binary search between lo and hi bounds. |
| 8134 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8135 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8137 | /* confdefs.h. */ |
| 8138 | _ACEOF |
| 8139 | cat confdefs.h >>conftest.$ac_ext |
| 8140 | cat >>conftest.$ac_ext <<_ACEOF |
| 8141 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8143 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | int |
| 8145 | main () |
| 8146 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8147 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8148 | test_array [0] = 0 |
| 8149 | |
| 8150 | ; |
| 8151 | return 0; |
| 8152 | } |
| 8153 | _ACEOF |
| 8154 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8155 | if { (ac_try="$ac_compile" |
| 8156 | case "(($ac_try" in |
| 8157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8158 | *) ac_try_echo=$ac_try;; |
| 8159 | esac |
| 8160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8161 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8162 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8164 | rm -f conftest.er1 |
| 8165 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8167 | (exit $ac_status); } && { |
| 8168 | test -z "$ac_c_werror_flag" || |
| 8169 | test ! -s conftest.err |
| 8170 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 | ac_hi=$ac_mid |
| 8172 | else |
| 8173 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8175 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8176 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8177 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8178 | |
| 8179 | 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] | 8180 | done |
| 8181 | case $ac_lo in |
| 8182 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8183 | '') if test "$ac_cv_type_long" = yes; then |
| 8184 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8185 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8186 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8187 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8188 | { (exit 77); exit 77; }; } |
| 8189 | else |
| 8190 | ac_cv_sizeof_long=0 |
| 8191 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8195 | /* confdefs.h. */ |
| 8196 | _ACEOF |
| 8197 | cat confdefs.h >>conftest.$ac_ext |
| 8198 | cat >>conftest.$ac_ext <<_ACEOF |
| 8199 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8201 | typedef long ac__type_sizeof_; |
| 8202 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8203 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8204 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8206 | int |
| 8207 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8208 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8209 | |
| 8210 | FILE *f = fopen ("conftest.val", "w"); |
| 8211 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8212 | return 1; |
| 8213 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8215 | long int i = longval (); |
| 8216 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8217 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 | fprintf (f, "%ld\n", i); |
| 8219 | } |
| 8220 | else |
| 8221 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8222 | unsigned long int i = ulongval (); |
| 8223 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8224 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8225 | fprintf (f, "%lu\n", i); |
| 8226 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8227 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8228 | |
| 8229 | ; |
| 8230 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8231 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | _ACEOF |
| 8233 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8234 | if { (ac_try="$ac_link" |
| 8235 | case "(($ac_try" in |
| 8236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8237 | *) ac_try_echo=$ac_try;; |
| 8238 | esac |
| 8239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8240 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8241 | ac_status=$? |
| 8242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8243 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8244 | { (case "(($ac_try" in |
| 8245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8246 | *) ac_try_echo=$ac_try;; |
| 8247 | esac |
| 8248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8249 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8250 | ac_status=$? |
| 8251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8252 | (exit $ac_status); }; }; then |
| 8253 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8255 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8259 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8260 | if test "$ac_cv_type_long" = yes; then |
| 8261 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8262 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8263 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8264 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8265 | { (exit 77); exit 77; }; } |
| 8266 | else |
| 8267 | ac_cv_sizeof_long=0 |
| 8268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8270 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | fi |
| 8272 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8273 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8274 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8275 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
| 8276 | |
| 8277 | |
| 8278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8279 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8280 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8281 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8282 | |
| 8283 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8284 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8285 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8288 | else |
| 8289 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8290 | /* confdefs.h. */ |
| 8291 | _ACEOF |
| 8292 | cat confdefs.h >>conftest.$ac_ext |
| 8293 | cat >>conftest.$ac_ext <<_ACEOF |
| 8294 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8296 | typedef void * ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8297 | int |
| 8298 | main () |
| 8299 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8300 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8301 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8302 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | return 0; |
| 8304 | ; |
| 8305 | return 0; |
| 8306 | } |
| 8307 | _ACEOF |
| 8308 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8309 | if { (ac_try="$ac_compile" |
| 8310 | case "(($ac_try" in |
| 8311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8312 | *) ac_try_echo=$ac_try;; |
| 8313 | esac |
| 8314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8315 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8316 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8318 | rm -f conftest.er1 |
| 8319 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8321 | (exit $ac_status); } && { |
| 8322 | test -z "$ac_c_werror_flag" || |
| 8323 | test ! -s conftest.err |
| 8324 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8325 | ac_cv_type_void_p=yes |
| 8326 | else |
| 8327 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8329 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8330 | ac_cv_type_void_p=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8331 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8332 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8334 | fi |
| 8335 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8336 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8337 | |
| 8338 | # The cast to long int works around a bug in the HP C Compiler |
| 8339 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8340 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8341 | # This bug is HP SR number 8606223364. |
| 8342 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8343 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8344 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 8345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | if test "$cross_compiling" = yes; then |
| 8348 | # Depending upon the size, compute the lo and hi bounds. |
| 8349 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8350 | /* confdefs.h. */ |
| 8351 | _ACEOF |
| 8352 | cat confdefs.h >>conftest.$ac_ext |
| 8353 | cat >>conftest.$ac_ext <<_ACEOF |
| 8354 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8355 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8356 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8357 | int |
| 8358 | main () |
| 8359 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8360 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | test_array [0] = 0 |
| 8362 | |
| 8363 | ; |
| 8364 | return 0; |
| 8365 | } |
| 8366 | _ACEOF |
| 8367 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8368 | if { (ac_try="$ac_compile" |
| 8369 | case "(($ac_try" in |
| 8370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8371 | *) ac_try_echo=$ac_try;; |
| 8372 | esac |
| 8373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8374 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8375 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8377 | rm -f conftest.er1 |
| 8378 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8380 | (exit $ac_status); } && { |
| 8381 | test -z "$ac_c_werror_flag" || |
| 8382 | test ! -s conftest.err |
| 8383 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8384 | ac_lo=0 ac_mid=0 |
| 8385 | while :; do |
| 8386 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8387 | /* confdefs.h. */ |
| 8388 | _ACEOF |
| 8389 | cat confdefs.h >>conftest.$ac_ext |
| 8390 | cat >>conftest.$ac_ext <<_ACEOF |
| 8391 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8393 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8394 | int |
| 8395 | main () |
| 8396 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8397 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8398 | test_array [0] = 0 |
| 8399 | |
| 8400 | ; |
| 8401 | return 0; |
| 8402 | } |
| 8403 | _ACEOF |
| 8404 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8405 | if { (ac_try="$ac_compile" |
| 8406 | case "(($ac_try" in |
| 8407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8408 | *) ac_try_echo=$ac_try;; |
| 8409 | esac |
| 8410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8411 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8412 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8414 | rm -f conftest.er1 |
| 8415 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8417 | (exit $ac_status); } && { |
| 8418 | test -z "$ac_c_werror_flag" || |
| 8419 | test ! -s conftest.err |
| 8420 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | ac_hi=$ac_mid; break |
| 8422 | else |
| 8423 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8425 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8426 | ac_lo=`expr $ac_mid + 1` |
| 8427 | if test $ac_lo -le $ac_mid; then |
| 8428 | ac_lo= ac_hi= |
| 8429 | break |
| 8430 | fi |
| 8431 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8433 | |
| 8434 | 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] | 8435 | done |
| 8436 | else |
| 8437 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8439 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8440 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8441 | /* confdefs.h. */ |
| 8442 | _ACEOF |
| 8443 | cat confdefs.h >>conftest.$ac_ext |
| 8444 | cat >>conftest.$ac_ext <<_ACEOF |
| 8445 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8447 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8448 | int |
| 8449 | main () |
| 8450 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8451 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8452 | test_array [0] = 0 |
| 8453 | |
| 8454 | ; |
| 8455 | return 0; |
| 8456 | } |
| 8457 | _ACEOF |
| 8458 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8459 | if { (ac_try="$ac_compile" |
| 8460 | case "(($ac_try" in |
| 8461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8462 | *) ac_try_echo=$ac_try;; |
| 8463 | esac |
| 8464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8465 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8466 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8468 | rm -f conftest.er1 |
| 8469 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8471 | (exit $ac_status); } && { |
| 8472 | test -z "$ac_c_werror_flag" || |
| 8473 | test ! -s conftest.err |
| 8474 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8475 | ac_hi=-1 ac_mid=-1 |
| 8476 | while :; do |
| 8477 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8478 | /* confdefs.h. */ |
| 8479 | _ACEOF |
| 8480 | cat confdefs.h >>conftest.$ac_ext |
| 8481 | cat >>conftest.$ac_ext <<_ACEOF |
| 8482 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8483 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8484 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8485 | int |
| 8486 | main () |
| 8487 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8488 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | test_array [0] = 0 |
| 8490 | |
| 8491 | ; |
| 8492 | return 0; |
| 8493 | } |
| 8494 | _ACEOF |
| 8495 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8496 | if { (ac_try="$ac_compile" |
| 8497 | case "(($ac_try" in |
| 8498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8499 | *) ac_try_echo=$ac_try;; |
| 8500 | esac |
| 8501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8502 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8505 | rm -f conftest.er1 |
| 8506 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8508 | (exit $ac_status); } && { |
| 8509 | test -z "$ac_c_werror_flag" || |
| 8510 | test ! -s conftest.err |
| 8511 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 | ac_lo=$ac_mid; break |
| 8513 | else |
| 8514 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8516 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8517 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8518 | if test $ac_mid -le $ac_hi; then |
| 8519 | ac_lo= ac_hi= |
| 8520 | break |
| 8521 | fi |
| 8522 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8524 | |
| 8525 | 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] | 8526 | done |
| 8527 | else |
| 8528 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8530 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8531 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8532 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8533 | |
| 8534 | 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] | 8535 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8536 | |
| 8537 | 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] | 8538 | # Binary search between lo and hi bounds. |
| 8539 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8540 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8542 | /* confdefs.h. */ |
| 8543 | _ACEOF |
| 8544 | cat confdefs.h >>conftest.$ac_ext |
| 8545 | cat >>conftest.$ac_ext <<_ACEOF |
| 8546 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8548 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8549 | int |
| 8550 | main () |
| 8551 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8552 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | test_array [0] = 0 |
| 8554 | |
| 8555 | ; |
| 8556 | return 0; |
| 8557 | } |
| 8558 | _ACEOF |
| 8559 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8560 | if { (ac_try="$ac_compile" |
| 8561 | case "(($ac_try" in |
| 8562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8563 | *) ac_try_echo=$ac_try;; |
| 8564 | esac |
| 8565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8566 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8567 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8569 | rm -f conftest.er1 |
| 8570 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8572 | (exit $ac_status); } && { |
| 8573 | test -z "$ac_c_werror_flag" || |
| 8574 | test ! -s conftest.err |
| 8575 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | ac_hi=$ac_mid |
| 8577 | else |
| 8578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8580 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8581 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8583 | |
| 8584 | 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] | 8585 | done |
| 8586 | case $ac_lo in |
| 8587 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8588 | '') if test "$ac_cv_type_void_p" = yes; then |
| 8589 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8590 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8591 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8592 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8593 | { (exit 77); exit 77; }; } |
| 8594 | else |
| 8595 | ac_cv_sizeof_void_p=0 |
| 8596 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8597 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8600 | /* confdefs.h. */ |
| 8601 | _ACEOF |
| 8602 | cat confdefs.h >>conftest.$ac_ext |
| 8603 | cat >>conftest.$ac_ext <<_ACEOF |
| 8604 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8606 | typedef void * ac__type_sizeof_; |
| 8607 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8608 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8609 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8611 | int |
| 8612 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8613 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8614 | |
| 8615 | FILE *f = fopen ("conftest.val", "w"); |
| 8616 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8617 | return 1; |
| 8618 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8620 | long int i = longval (); |
| 8621 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8622 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8623 | fprintf (f, "%ld\n", i); |
| 8624 | } |
| 8625 | else |
| 8626 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8627 | unsigned long int i = ulongval (); |
| 8628 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8629 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | fprintf (f, "%lu\n", i); |
| 8631 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8632 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | |
| 8634 | ; |
| 8635 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8636 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8637 | _ACEOF |
| 8638 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8639 | if { (ac_try="$ac_link" |
| 8640 | case "(($ac_try" in |
| 8641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8642 | *) ac_try_echo=$ac_try;; |
| 8643 | esac |
| 8644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8645 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8646 | ac_status=$? |
| 8647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8648 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8649 | { (case "(($ac_try" in |
| 8650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8651 | *) ac_try_echo=$ac_try;; |
| 8652 | esac |
| 8653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8654 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8655 | ac_status=$? |
| 8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8657 | (exit $ac_status); }; }; then |
| 8658 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8659 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8661 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8664 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8665 | if test "$ac_cv_type_void_p" = yes; then |
| 8666 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8667 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8668 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8669 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8670 | { (exit 77); exit 77; }; } |
| 8671 | else |
| 8672 | ac_cv_sizeof_void_p=0 |
| 8673 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8675 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | fi |
| 8677 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8678 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8679 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8680 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
| 8681 | |
| 8682 | |
| 8683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8684 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8685 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8687 | |
| 8688 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8689 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8690 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | if test "${ac_cv_type_short+set}" = set; then |
| 8692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8693 | else |
| 8694 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8695 | /* confdefs.h. */ |
| 8696 | _ACEOF |
| 8697 | cat confdefs.h >>conftest.$ac_ext |
| 8698 | cat >>conftest.$ac_ext <<_ACEOF |
| 8699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8701 | typedef short ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8702 | int |
| 8703 | main () |
| 8704 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8705 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8707 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | return 0; |
| 8709 | ; |
| 8710 | return 0; |
| 8711 | } |
| 8712 | _ACEOF |
| 8713 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8714 | if { (ac_try="$ac_compile" |
| 8715 | case "(($ac_try" in |
| 8716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8717 | *) ac_try_echo=$ac_try;; |
| 8718 | esac |
| 8719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8720 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8721 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8723 | rm -f conftest.er1 |
| 8724 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8726 | (exit $ac_status); } && { |
| 8727 | test -z "$ac_c_werror_flag" || |
| 8728 | test ! -s conftest.err |
| 8729 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | ac_cv_type_short=yes |
| 8731 | else |
| 8732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8734 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8735 | ac_cv_type_short=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 8737 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8739 | fi |
| 8740 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8741 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8742 | |
| 8743 | # The cast to long int works around a bug in the HP C Compiler |
| 8744 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8745 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8746 | # This bug is HP SR number 8606223364. |
| 8747 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8748 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 8750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8752 | if test "$cross_compiling" = yes; then |
| 8753 | # Depending upon the size, compute the lo and hi bounds. |
| 8754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8755 | /* confdefs.h. */ |
| 8756 | _ACEOF |
| 8757 | cat confdefs.h >>conftest.$ac_ext |
| 8758 | cat >>conftest.$ac_ext <<_ACEOF |
| 8759 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8761 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8762 | int |
| 8763 | main () |
| 8764 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8765 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | test_array [0] = 0 |
| 8767 | |
| 8768 | ; |
| 8769 | return 0; |
| 8770 | } |
| 8771 | _ACEOF |
| 8772 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8773 | if { (ac_try="$ac_compile" |
| 8774 | case "(($ac_try" in |
| 8775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8776 | *) ac_try_echo=$ac_try;; |
| 8777 | esac |
| 8778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8779 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8782 | rm -f conftest.er1 |
| 8783 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8785 | (exit $ac_status); } && { |
| 8786 | test -z "$ac_c_werror_flag" || |
| 8787 | test ! -s conftest.err |
| 8788 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8789 | ac_lo=0 ac_mid=0 |
| 8790 | while :; do |
| 8791 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8792 | /* confdefs.h. */ |
| 8793 | _ACEOF |
| 8794 | cat confdefs.h >>conftest.$ac_ext |
| 8795 | cat >>conftest.$ac_ext <<_ACEOF |
| 8796 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8798 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | int |
| 8800 | main () |
| 8801 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8802 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | test_array [0] = 0 |
| 8804 | |
| 8805 | ; |
| 8806 | return 0; |
| 8807 | } |
| 8808 | _ACEOF |
| 8809 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8810 | if { (ac_try="$ac_compile" |
| 8811 | case "(($ac_try" in |
| 8812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8813 | *) ac_try_echo=$ac_try;; |
| 8814 | esac |
| 8815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8816 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8819 | rm -f conftest.er1 |
| 8820 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8822 | (exit $ac_status); } && { |
| 8823 | test -z "$ac_c_werror_flag" || |
| 8824 | test ! -s conftest.err |
| 8825 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | ac_hi=$ac_mid; break |
| 8827 | else |
| 8828 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8830 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8831 | ac_lo=`expr $ac_mid + 1` |
| 8832 | if test $ac_lo -le $ac_mid; then |
| 8833 | ac_lo= ac_hi= |
| 8834 | break |
| 8835 | fi |
| 8836 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8838 | |
| 8839 | 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] | 8840 | done |
| 8841 | else |
| 8842 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8845 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8846 | /* confdefs.h. */ |
| 8847 | _ACEOF |
| 8848 | cat confdefs.h >>conftest.$ac_ext |
| 8849 | cat >>conftest.$ac_ext <<_ACEOF |
| 8850 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8852 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8853 | int |
| 8854 | main () |
| 8855 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8856 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | test_array [0] = 0 |
| 8858 | |
| 8859 | ; |
| 8860 | return 0; |
| 8861 | } |
| 8862 | _ACEOF |
| 8863 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8864 | if { (ac_try="$ac_compile" |
| 8865 | case "(($ac_try" in |
| 8866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8867 | *) ac_try_echo=$ac_try;; |
| 8868 | esac |
| 8869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8870 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8873 | rm -f conftest.er1 |
| 8874 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8876 | (exit $ac_status); } && { |
| 8877 | test -z "$ac_c_werror_flag" || |
| 8878 | test ! -s conftest.err |
| 8879 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8880 | ac_hi=-1 ac_mid=-1 |
| 8881 | while :; do |
| 8882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8883 | /* confdefs.h. */ |
| 8884 | _ACEOF |
| 8885 | cat confdefs.h >>conftest.$ac_ext |
| 8886 | cat >>conftest.$ac_ext <<_ACEOF |
| 8887 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8889 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | int |
| 8891 | main () |
| 8892 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8893 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8894 | test_array [0] = 0 |
| 8895 | |
| 8896 | ; |
| 8897 | return 0; |
| 8898 | } |
| 8899 | _ACEOF |
| 8900 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8901 | if { (ac_try="$ac_compile" |
| 8902 | case "(($ac_try" in |
| 8903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8904 | *) ac_try_echo=$ac_try;; |
| 8905 | esac |
| 8906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8907 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8908 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8910 | rm -f conftest.er1 |
| 8911 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8913 | (exit $ac_status); } && { |
| 8914 | test -z "$ac_c_werror_flag" || |
| 8915 | test ! -s conftest.err |
| 8916 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8917 | ac_lo=$ac_mid; break |
| 8918 | else |
| 8919 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8922 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8923 | if test $ac_mid -le $ac_hi; then |
| 8924 | ac_lo= ac_hi= |
| 8925 | break |
| 8926 | fi |
| 8927 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8929 | |
| 8930 | 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] | 8931 | done |
| 8932 | else |
| 8933 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8935 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8936 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8937 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8938 | |
| 8939 | 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] | 8940 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8941 | |
| 8942 | 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] | 8943 | # Binary search between lo and hi bounds. |
| 8944 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8945 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8946 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8947 | /* confdefs.h. */ |
| 8948 | _ACEOF |
| 8949 | cat confdefs.h >>conftest.$ac_ext |
| 8950 | cat >>conftest.$ac_ext <<_ACEOF |
| 8951 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8952 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8953 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8954 | int |
| 8955 | main () |
| 8956 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8957 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8958 | test_array [0] = 0 |
| 8959 | |
| 8960 | ; |
| 8961 | return 0; |
| 8962 | } |
| 8963 | _ACEOF |
| 8964 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8965 | if { (ac_try="$ac_compile" |
| 8966 | case "(($ac_try" in |
| 8967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8968 | *) ac_try_echo=$ac_try;; |
| 8969 | esac |
| 8970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8971 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8972 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8974 | rm -f conftest.er1 |
| 8975 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8977 | (exit $ac_status); } && { |
| 8978 | test -z "$ac_c_werror_flag" || |
| 8979 | test ! -s conftest.err |
| 8980 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | ac_hi=$ac_mid |
| 8982 | else |
| 8983 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8985 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8986 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8987 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8988 | |
| 8989 | 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] | 8990 | done |
| 8991 | case $ac_lo in |
| 8992 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8993 | '') if test "$ac_cv_type_short" = yes; then |
| 8994 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8995 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8996 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8997 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8998 | { (exit 77); exit 77; }; } |
| 8999 | else |
| 9000 | ac_cv_sizeof_short=0 |
| 9001 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9005 | /* confdefs.h. */ |
| 9006 | _ACEOF |
| 9007 | cat confdefs.h >>conftest.$ac_ext |
| 9008 | cat >>conftest.$ac_ext <<_ACEOF |
| 9009 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9011 | typedef short ac__type_sizeof_; |
| 9012 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9013 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9014 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9016 | int |
| 9017 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9018 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9019 | |
| 9020 | FILE *f = fopen ("conftest.val", "w"); |
| 9021 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9022 | return 1; |
| 9023 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9025 | long int i = longval (); |
| 9026 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9027 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9028 | fprintf (f, "%ld\n", i); |
| 9029 | } |
| 9030 | else |
| 9031 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9032 | unsigned long int i = ulongval (); |
| 9033 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9034 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9035 | fprintf (f, "%lu\n", i); |
| 9036 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9037 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9038 | |
| 9039 | ; |
| 9040 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9041 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9042 | _ACEOF |
| 9043 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9044 | if { (ac_try="$ac_link" |
| 9045 | case "(($ac_try" in |
| 9046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9047 | *) ac_try_echo=$ac_try;; |
| 9048 | esac |
| 9049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9050 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | ac_status=$? |
| 9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9054 | { (case "(($ac_try" in |
| 9055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9056 | *) ac_try_echo=$ac_try;; |
| 9057 | esac |
| 9058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9059 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | ac_status=$? |
| 9061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9062 | (exit $ac_status); }; }; then |
| 9063 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9064 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9065 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9069 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9070 | if test "$ac_cv_type_short" = yes; then |
| 9071 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9072 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9073 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9074 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9075 | { (exit 77); exit 77; }; } |
| 9076 | else |
| 9077 | ac_cv_sizeof_short=0 |
| 9078 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9079 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | fi |
| 9082 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9083 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9084 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9085 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
| 9086 | |
| 9087 | |
| 9088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9089 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9090 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9091 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9092 | |
| 9093 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9094 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9095 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9096 | if test "${ac_cv_type_float+set}" = set; then |
| 9097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9098 | else |
| 9099 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9100 | /* confdefs.h. */ |
| 9101 | _ACEOF |
| 9102 | cat confdefs.h >>conftest.$ac_ext |
| 9103 | cat >>conftest.$ac_ext <<_ACEOF |
| 9104 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9106 | typedef float ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9107 | int |
| 9108 | main () |
| 9109 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9110 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9111 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9112 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | return 0; |
| 9114 | ; |
| 9115 | return 0; |
| 9116 | } |
| 9117 | _ACEOF |
| 9118 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9119 | if { (ac_try="$ac_compile" |
| 9120 | case "(($ac_try" in |
| 9121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9122 | *) ac_try_echo=$ac_try;; |
| 9123 | esac |
| 9124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9125 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9126 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9128 | rm -f conftest.er1 |
| 9129 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9131 | (exit $ac_status); } && { |
| 9132 | test -z "$ac_c_werror_flag" || |
| 9133 | test ! -s conftest.err |
| 9134 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9135 | ac_cv_type_float=yes |
| 9136 | else |
| 9137 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9139 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9140 | ac_cv_type_float=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9141 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 9142 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9144 | fi |
| 9145 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9146 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9147 | |
| 9148 | # The cast to long int works around a bug in the HP C Compiler |
| 9149 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9150 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9151 | # This bug is HP SR number 8606223364. |
| 9152 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9153 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9154 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 9155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9157 | if test "$cross_compiling" = yes; then |
| 9158 | # Depending upon the size, compute the lo and hi bounds. |
| 9159 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9160 | /* confdefs.h. */ |
| 9161 | _ACEOF |
| 9162 | cat confdefs.h >>conftest.$ac_ext |
| 9163 | cat >>conftest.$ac_ext <<_ACEOF |
| 9164 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9166 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9167 | int |
| 9168 | main () |
| 9169 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9170 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | test_array [0] = 0 |
| 9172 | |
| 9173 | ; |
| 9174 | return 0; |
| 9175 | } |
| 9176 | _ACEOF |
| 9177 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9178 | if { (ac_try="$ac_compile" |
| 9179 | case "(($ac_try" in |
| 9180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9181 | *) ac_try_echo=$ac_try;; |
| 9182 | esac |
| 9183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9184 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9185 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9187 | rm -f conftest.er1 |
| 9188 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9190 | (exit $ac_status); } && { |
| 9191 | test -z "$ac_c_werror_flag" || |
| 9192 | test ! -s conftest.err |
| 9193 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9194 | ac_lo=0 ac_mid=0 |
| 9195 | while :; do |
| 9196 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9197 | /* confdefs.h. */ |
| 9198 | _ACEOF |
| 9199 | cat confdefs.h >>conftest.$ac_ext |
| 9200 | cat >>conftest.$ac_ext <<_ACEOF |
| 9201 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9202 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9203 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | int |
| 9205 | main () |
| 9206 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9207 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 | test_array [0] = 0 |
| 9209 | |
| 9210 | ; |
| 9211 | return 0; |
| 9212 | } |
| 9213 | _ACEOF |
| 9214 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9215 | if { (ac_try="$ac_compile" |
| 9216 | case "(($ac_try" in |
| 9217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9218 | *) ac_try_echo=$ac_try;; |
| 9219 | esac |
| 9220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9221 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9222 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9224 | rm -f conftest.er1 |
| 9225 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9227 | (exit $ac_status); } && { |
| 9228 | test -z "$ac_c_werror_flag" || |
| 9229 | test ! -s conftest.err |
| 9230 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9231 | ac_hi=$ac_mid; break |
| 9232 | else |
| 9233 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9235 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9236 | ac_lo=`expr $ac_mid + 1` |
| 9237 | if test $ac_lo -le $ac_mid; then |
| 9238 | ac_lo= ac_hi= |
| 9239 | break |
| 9240 | fi |
| 9241 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9243 | |
| 9244 | 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] | 9245 | done |
| 9246 | else |
| 9247 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9249 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9250 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9251 | /* confdefs.h. */ |
| 9252 | _ACEOF |
| 9253 | cat confdefs.h >>conftest.$ac_ext |
| 9254 | cat >>conftest.$ac_ext <<_ACEOF |
| 9255 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9257 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9258 | int |
| 9259 | main () |
| 9260 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9261 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | test_array [0] = 0 |
| 9263 | |
| 9264 | ; |
| 9265 | return 0; |
| 9266 | } |
| 9267 | _ACEOF |
| 9268 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9269 | if { (ac_try="$ac_compile" |
| 9270 | case "(($ac_try" in |
| 9271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9272 | *) ac_try_echo=$ac_try;; |
| 9273 | esac |
| 9274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9275 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9276 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9278 | rm -f conftest.er1 |
| 9279 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9281 | (exit $ac_status); } && { |
| 9282 | test -z "$ac_c_werror_flag" || |
| 9283 | test ! -s conftest.err |
| 9284 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9285 | ac_hi=-1 ac_mid=-1 |
| 9286 | while :; do |
| 9287 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9288 | /* confdefs.h. */ |
| 9289 | _ACEOF |
| 9290 | cat confdefs.h >>conftest.$ac_ext |
| 9291 | cat >>conftest.$ac_ext <<_ACEOF |
| 9292 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9293 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9294 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9295 | int |
| 9296 | main () |
| 9297 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9298 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9299 | test_array [0] = 0 |
| 9300 | |
| 9301 | ; |
| 9302 | return 0; |
| 9303 | } |
| 9304 | _ACEOF |
| 9305 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9306 | if { (ac_try="$ac_compile" |
| 9307 | case "(($ac_try" in |
| 9308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9309 | *) ac_try_echo=$ac_try;; |
| 9310 | esac |
| 9311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9312 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9313 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9315 | rm -f conftest.er1 |
| 9316 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9318 | (exit $ac_status); } && { |
| 9319 | test -z "$ac_c_werror_flag" || |
| 9320 | test ! -s conftest.err |
| 9321 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9322 | ac_lo=$ac_mid; break |
| 9323 | else |
| 9324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9326 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9327 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9328 | if test $ac_mid -le $ac_hi; then |
| 9329 | ac_lo= ac_hi= |
| 9330 | break |
| 9331 | fi |
| 9332 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9333 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9334 | |
| 9335 | 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] | 9336 | done |
| 9337 | else |
| 9338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9340 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9341 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9342 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9343 | |
| 9344 | 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] | 9345 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9346 | |
| 9347 | 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] | 9348 | # Binary search between lo and hi bounds. |
| 9349 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9350 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9351 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9352 | /* confdefs.h. */ |
| 9353 | _ACEOF |
| 9354 | cat confdefs.h >>conftest.$ac_ext |
| 9355 | cat >>conftest.$ac_ext <<_ACEOF |
| 9356 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9357 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9358 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9359 | int |
| 9360 | main () |
| 9361 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9362 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9363 | test_array [0] = 0 |
| 9364 | |
| 9365 | ; |
| 9366 | return 0; |
| 9367 | } |
| 9368 | _ACEOF |
| 9369 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9370 | if { (ac_try="$ac_compile" |
| 9371 | case "(($ac_try" in |
| 9372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9373 | *) ac_try_echo=$ac_try;; |
| 9374 | esac |
| 9375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9376 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9377 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9379 | rm -f conftest.er1 |
| 9380 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9382 | (exit $ac_status); } && { |
| 9383 | test -z "$ac_c_werror_flag" || |
| 9384 | test ! -s conftest.err |
| 9385 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | ac_hi=$ac_mid |
| 9387 | else |
| 9388 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9390 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9391 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9392 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9393 | |
| 9394 | 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] | 9395 | done |
| 9396 | case $ac_lo in |
| 9397 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9398 | '') if test "$ac_cv_type_float" = yes; then |
| 9399 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9400 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9401 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9402 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9403 | { (exit 77); exit 77; }; } |
| 9404 | else |
| 9405 | ac_cv_sizeof_float=0 |
| 9406 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9410 | /* confdefs.h. */ |
| 9411 | _ACEOF |
| 9412 | cat confdefs.h >>conftest.$ac_ext |
| 9413 | cat >>conftest.$ac_ext <<_ACEOF |
| 9414 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9415 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9416 | typedef float ac__type_sizeof_; |
| 9417 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9418 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9419 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9421 | int |
| 9422 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9423 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | |
| 9425 | FILE *f = fopen ("conftest.val", "w"); |
| 9426 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9427 | return 1; |
| 9428 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9430 | long int i = longval (); |
| 9431 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9432 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9433 | fprintf (f, "%ld\n", i); |
| 9434 | } |
| 9435 | else |
| 9436 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9437 | unsigned long int i = ulongval (); |
| 9438 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9439 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9440 | fprintf (f, "%lu\n", i); |
| 9441 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9442 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9443 | |
| 9444 | ; |
| 9445 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9446 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | _ACEOF |
| 9448 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9449 | if { (ac_try="$ac_link" |
| 9450 | case "(($ac_try" in |
| 9451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9452 | *) ac_try_echo=$ac_try;; |
| 9453 | esac |
| 9454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9455 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9456 | ac_status=$? |
| 9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9458 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9459 | { (case "(($ac_try" in |
| 9460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9461 | *) ac_try_echo=$ac_try;; |
| 9462 | esac |
| 9463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9464 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9465 | ac_status=$? |
| 9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9467 | (exit $ac_status); }; }; then |
| 9468 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9471 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9474 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9475 | if test "$ac_cv_type_float" = yes; then |
| 9476 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9477 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9478 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9479 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9480 | { (exit 77); exit 77; }; } |
| 9481 | else |
| 9482 | ac_cv_sizeof_float=0 |
| 9483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9484 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9485 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | fi |
| 9487 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9488 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9489 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9490 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
| 9491 | |
| 9492 | |
| 9493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9494 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9495 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9496 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9497 | |
| 9498 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9499 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9500 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | if test "${ac_cv_type_double+set}" = set; then |
| 9502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9503 | else |
| 9504 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9505 | /* confdefs.h. */ |
| 9506 | _ACEOF |
| 9507 | cat confdefs.h >>conftest.$ac_ext |
| 9508 | cat >>conftest.$ac_ext <<_ACEOF |
| 9509 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9510 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9511 | typedef double ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9512 | int |
| 9513 | main () |
| 9514 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9515 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9517 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9518 | return 0; |
| 9519 | ; |
| 9520 | return 0; |
| 9521 | } |
| 9522 | _ACEOF |
| 9523 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9524 | if { (ac_try="$ac_compile" |
| 9525 | case "(($ac_try" in |
| 9526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9527 | *) ac_try_echo=$ac_try;; |
| 9528 | esac |
| 9529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9530 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9531 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9533 | rm -f conftest.er1 |
| 9534 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9536 | (exit $ac_status); } && { |
| 9537 | test -z "$ac_c_werror_flag" || |
| 9538 | test ! -s conftest.err |
| 9539 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9540 | ac_cv_type_double=yes |
| 9541 | else |
| 9542 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9544 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9545 | ac_cv_type_double=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 9547 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9549 | fi |
| 9550 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9551 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9552 | |
| 9553 | # The cast to long int works around a bug in the HP C Compiler |
| 9554 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9555 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9556 | # This bug is HP SR number 8606223364. |
| 9557 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9558 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 9560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9562 | if test "$cross_compiling" = yes; then |
| 9563 | # Depending upon the size, compute the lo and hi bounds. |
| 9564 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9565 | /* confdefs.h. */ |
| 9566 | _ACEOF |
| 9567 | cat confdefs.h >>conftest.$ac_ext |
| 9568 | cat >>conftest.$ac_ext <<_ACEOF |
| 9569 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9571 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9572 | int |
| 9573 | main () |
| 9574 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9575 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | test_array [0] = 0 |
| 9577 | |
| 9578 | ; |
| 9579 | return 0; |
| 9580 | } |
| 9581 | _ACEOF |
| 9582 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9583 | if { (ac_try="$ac_compile" |
| 9584 | case "(($ac_try" in |
| 9585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9586 | *) ac_try_echo=$ac_try;; |
| 9587 | esac |
| 9588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9589 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9590 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9592 | rm -f conftest.er1 |
| 9593 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9595 | (exit $ac_status); } && { |
| 9596 | test -z "$ac_c_werror_flag" || |
| 9597 | test ! -s conftest.err |
| 9598 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9599 | ac_lo=0 ac_mid=0 |
| 9600 | while :; do |
| 9601 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9602 | /* confdefs.h. */ |
| 9603 | _ACEOF |
| 9604 | cat confdefs.h >>conftest.$ac_ext |
| 9605 | cat >>conftest.$ac_ext <<_ACEOF |
| 9606 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9608 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9609 | int |
| 9610 | main () |
| 9611 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9612 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | test_array [0] = 0 |
| 9614 | |
| 9615 | ; |
| 9616 | return 0; |
| 9617 | } |
| 9618 | _ACEOF |
| 9619 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9620 | if { (ac_try="$ac_compile" |
| 9621 | case "(($ac_try" in |
| 9622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9623 | *) ac_try_echo=$ac_try;; |
| 9624 | esac |
| 9625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9626 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9627 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9629 | rm -f conftest.er1 |
| 9630 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9632 | (exit $ac_status); } && { |
| 9633 | test -z "$ac_c_werror_flag" || |
| 9634 | test ! -s conftest.err |
| 9635 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9636 | ac_hi=$ac_mid; break |
| 9637 | else |
| 9638 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9640 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9641 | ac_lo=`expr $ac_mid + 1` |
| 9642 | if test $ac_lo -le $ac_mid; then |
| 9643 | ac_lo= ac_hi= |
| 9644 | break |
| 9645 | fi |
| 9646 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9647 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9648 | |
| 9649 | 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] | 9650 | done |
| 9651 | else |
| 9652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9654 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9655 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9656 | /* confdefs.h. */ |
| 9657 | _ACEOF |
| 9658 | cat confdefs.h >>conftest.$ac_ext |
| 9659 | cat >>conftest.$ac_ext <<_ACEOF |
| 9660 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9661 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9662 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9663 | int |
| 9664 | main () |
| 9665 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9666 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9667 | test_array [0] = 0 |
| 9668 | |
| 9669 | ; |
| 9670 | return 0; |
| 9671 | } |
| 9672 | _ACEOF |
| 9673 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9674 | if { (ac_try="$ac_compile" |
| 9675 | case "(($ac_try" in |
| 9676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9677 | *) ac_try_echo=$ac_try;; |
| 9678 | esac |
| 9679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9680 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9681 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9683 | rm -f conftest.er1 |
| 9684 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9686 | (exit $ac_status); } && { |
| 9687 | test -z "$ac_c_werror_flag" || |
| 9688 | test ! -s conftest.err |
| 9689 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9690 | ac_hi=-1 ac_mid=-1 |
| 9691 | while :; do |
| 9692 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9693 | /* confdefs.h. */ |
| 9694 | _ACEOF |
| 9695 | cat confdefs.h >>conftest.$ac_ext |
| 9696 | cat >>conftest.$ac_ext <<_ACEOF |
| 9697 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9698 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9699 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9700 | int |
| 9701 | main () |
| 9702 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9703 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | test_array [0] = 0 |
| 9705 | |
| 9706 | ; |
| 9707 | return 0; |
| 9708 | } |
| 9709 | _ACEOF |
| 9710 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9711 | if { (ac_try="$ac_compile" |
| 9712 | case "(($ac_try" in |
| 9713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9714 | *) ac_try_echo=$ac_try;; |
| 9715 | esac |
| 9716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9717 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9718 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9720 | rm -f conftest.er1 |
| 9721 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9723 | (exit $ac_status); } && { |
| 9724 | test -z "$ac_c_werror_flag" || |
| 9725 | test ! -s conftest.err |
| 9726 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | ac_lo=$ac_mid; break |
| 9728 | else |
| 9729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9731 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9732 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9733 | if test $ac_mid -le $ac_hi; then |
| 9734 | ac_lo= ac_hi= |
| 9735 | break |
| 9736 | fi |
| 9737 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9739 | |
| 9740 | 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] | 9741 | done |
| 9742 | else |
| 9743 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9745 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9746 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9747 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9748 | |
| 9749 | 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] | 9750 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9751 | |
| 9752 | 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] | 9753 | # Binary search between lo and hi bounds. |
| 9754 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9755 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9756 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9757 | /* confdefs.h. */ |
| 9758 | _ACEOF |
| 9759 | cat confdefs.h >>conftest.$ac_ext |
| 9760 | cat >>conftest.$ac_ext <<_ACEOF |
| 9761 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9762 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9763 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9764 | int |
| 9765 | main () |
| 9766 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9767 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | test_array [0] = 0 |
| 9769 | |
| 9770 | ; |
| 9771 | return 0; |
| 9772 | } |
| 9773 | _ACEOF |
| 9774 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9775 | if { (ac_try="$ac_compile" |
| 9776 | case "(($ac_try" in |
| 9777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9778 | *) ac_try_echo=$ac_try;; |
| 9779 | esac |
| 9780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9781 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9782 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9784 | rm -f conftest.er1 |
| 9785 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9787 | (exit $ac_status); } && { |
| 9788 | test -z "$ac_c_werror_flag" || |
| 9789 | test ! -s conftest.err |
| 9790 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9791 | ac_hi=$ac_mid |
| 9792 | else |
| 9793 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9795 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9796 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9797 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9798 | |
| 9799 | 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] | 9800 | done |
| 9801 | case $ac_lo in |
| 9802 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9803 | '') if test "$ac_cv_type_double" = yes; then |
| 9804 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9805 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9806 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9807 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9808 | { (exit 77); exit 77; }; } |
| 9809 | else |
| 9810 | ac_cv_sizeof_double=0 |
| 9811 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9815 | /* confdefs.h. */ |
| 9816 | _ACEOF |
| 9817 | cat confdefs.h >>conftest.$ac_ext |
| 9818 | cat >>conftest.$ac_ext <<_ACEOF |
| 9819 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9821 | typedef double ac__type_sizeof_; |
| 9822 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9823 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9824 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | int |
| 9827 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9828 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9829 | |
| 9830 | FILE *f = fopen ("conftest.val", "w"); |
| 9831 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9832 | return 1; |
| 9833 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9835 | long int i = longval (); |
| 9836 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9837 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9838 | fprintf (f, "%ld\n", i); |
| 9839 | } |
| 9840 | else |
| 9841 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9842 | unsigned long int i = ulongval (); |
| 9843 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9844 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9845 | fprintf (f, "%lu\n", i); |
| 9846 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9847 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9848 | |
| 9849 | ; |
| 9850 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9851 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | _ACEOF |
| 9853 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9854 | if { (ac_try="$ac_link" |
| 9855 | case "(($ac_try" in |
| 9856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9857 | *) ac_try_echo=$ac_try;; |
| 9858 | esac |
| 9859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9860 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | ac_status=$? |
| 9862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9864 | { (case "(($ac_try" in |
| 9865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9866 | *) ac_try_echo=$ac_try;; |
| 9867 | esac |
| 9868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9869 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9870 | ac_status=$? |
| 9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9872 | (exit $ac_status); }; }; then |
| 9873 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9879 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9880 | if test "$ac_cv_type_double" = yes; then |
| 9881 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9882 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9883 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9884 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9885 | { (exit 77); exit 77; }; } |
| 9886 | else |
| 9887 | ac_cv_sizeof_double=0 |
| 9888 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9889 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9890 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | fi |
| 9892 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9893 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9894 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9895 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
| 9896 | |
| 9897 | |
| 9898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9899 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9900 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9901 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9902 | |
| 9903 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9904 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9905 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9906 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9908 | else |
| 9909 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9910 | /* confdefs.h. */ |
| 9911 | _ACEOF |
| 9912 | cat confdefs.h >>conftest.$ac_ext |
| 9913 | cat >>conftest.$ac_ext <<_ACEOF |
| 9914 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9916 | typedef fpos_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | int |
| 9918 | main () |
| 9919 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9920 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9922 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | return 0; |
| 9924 | ; |
| 9925 | return 0; |
| 9926 | } |
| 9927 | _ACEOF |
| 9928 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9929 | if { (ac_try="$ac_compile" |
| 9930 | case "(($ac_try" in |
| 9931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9932 | *) ac_try_echo=$ac_try;; |
| 9933 | esac |
| 9934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9935 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9936 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9938 | rm -f conftest.er1 |
| 9939 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9941 | (exit $ac_status); } && { |
| 9942 | test -z "$ac_c_werror_flag" || |
| 9943 | test ! -s conftest.err |
| 9944 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9945 | ac_cv_type_fpos_t=yes |
| 9946 | else |
| 9947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9949 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9950 | ac_cv_type_fpos_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9951 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 9952 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9954 | fi |
| 9955 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 9956 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 9957 | |
| 9958 | # The cast to long int works around a bug in the HP C Compiler |
| 9959 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9960 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9961 | # This bug is HP SR number 8606223364. |
| 9962 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9963 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 9965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | if test "$cross_compiling" = yes; then |
| 9968 | # Depending upon the size, compute the lo and hi bounds. |
| 9969 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9970 | /* confdefs.h. */ |
| 9971 | _ACEOF |
| 9972 | cat confdefs.h >>conftest.$ac_ext |
| 9973 | cat >>conftest.$ac_ext <<_ACEOF |
| 9974 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9976 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9977 | int |
| 9978 | main () |
| 9979 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9980 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | test_array [0] = 0 |
| 9982 | |
| 9983 | ; |
| 9984 | return 0; |
| 9985 | } |
| 9986 | _ACEOF |
| 9987 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9988 | if { (ac_try="$ac_compile" |
| 9989 | case "(($ac_try" in |
| 9990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9991 | *) ac_try_echo=$ac_try;; |
| 9992 | esac |
| 9993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9994 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9995 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9997 | rm -f conftest.er1 |
| 9998 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10000 | (exit $ac_status); } && { |
| 10001 | test -z "$ac_c_werror_flag" || |
| 10002 | test ! -s conftest.err |
| 10003 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10004 | ac_lo=0 ac_mid=0 |
| 10005 | while :; do |
| 10006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10007 | /* confdefs.h. */ |
| 10008 | _ACEOF |
| 10009 | cat confdefs.h >>conftest.$ac_ext |
| 10010 | cat >>conftest.$ac_ext <<_ACEOF |
| 10011 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10013 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 | int |
| 10015 | main () |
| 10016 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10017 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10018 | test_array [0] = 0 |
| 10019 | |
| 10020 | ; |
| 10021 | return 0; |
| 10022 | } |
| 10023 | _ACEOF |
| 10024 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10025 | if { (ac_try="$ac_compile" |
| 10026 | case "(($ac_try" in |
| 10027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10028 | *) ac_try_echo=$ac_try;; |
| 10029 | esac |
| 10030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10031 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10034 | rm -f conftest.er1 |
| 10035 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10037 | (exit $ac_status); } && { |
| 10038 | test -z "$ac_c_werror_flag" || |
| 10039 | test ! -s conftest.err |
| 10040 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10041 | ac_hi=$ac_mid; break |
| 10042 | else |
| 10043 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10045 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10046 | ac_lo=`expr $ac_mid + 1` |
| 10047 | if test $ac_lo -le $ac_mid; then |
| 10048 | ac_lo= ac_hi= |
| 10049 | break |
| 10050 | fi |
| 10051 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10052 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10053 | |
| 10054 | 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] | 10055 | done |
| 10056 | else |
| 10057 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10059 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10060 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10061 | /* confdefs.h. */ |
| 10062 | _ACEOF |
| 10063 | cat confdefs.h >>conftest.$ac_ext |
| 10064 | cat >>conftest.$ac_ext <<_ACEOF |
| 10065 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10067 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10068 | int |
| 10069 | main () |
| 10070 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10071 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10072 | test_array [0] = 0 |
| 10073 | |
| 10074 | ; |
| 10075 | return 0; |
| 10076 | } |
| 10077 | _ACEOF |
| 10078 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10079 | if { (ac_try="$ac_compile" |
| 10080 | case "(($ac_try" in |
| 10081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10082 | *) ac_try_echo=$ac_try;; |
| 10083 | esac |
| 10084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10085 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10086 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10088 | rm -f conftest.er1 |
| 10089 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10091 | (exit $ac_status); } && { |
| 10092 | test -z "$ac_c_werror_flag" || |
| 10093 | test ! -s conftest.err |
| 10094 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10095 | ac_hi=-1 ac_mid=-1 |
| 10096 | while :; do |
| 10097 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10098 | /* confdefs.h. */ |
| 10099 | _ACEOF |
| 10100 | cat confdefs.h >>conftest.$ac_ext |
| 10101 | cat >>conftest.$ac_ext <<_ACEOF |
| 10102 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10104 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10105 | int |
| 10106 | main () |
| 10107 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10108 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10109 | test_array [0] = 0 |
| 10110 | |
| 10111 | ; |
| 10112 | return 0; |
| 10113 | } |
| 10114 | _ACEOF |
| 10115 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10116 | if { (ac_try="$ac_compile" |
| 10117 | case "(($ac_try" in |
| 10118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10119 | *) ac_try_echo=$ac_try;; |
| 10120 | esac |
| 10121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10122 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10125 | rm -f conftest.er1 |
| 10126 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10128 | (exit $ac_status); } && { |
| 10129 | test -z "$ac_c_werror_flag" || |
| 10130 | test ! -s conftest.err |
| 10131 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10132 | ac_lo=$ac_mid; break |
| 10133 | else |
| 10134 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10136 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10137 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10138 | if test $ac_mid -le $ac_hi; then |
| 10139 | ac_lo= ac_hi= |
| 10140 | break |
| 10141 | fi |
| 10142 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10143 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10144 | |
| 10145 | 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] | 10146 | done |
| 10147 | else |
| 10148 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10150 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10151 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10153 | |
| 10154 | 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] | 10155 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10156 | |
| 10157 | 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] | 10158 | # Binary search between lo and hi bounds. |
| 10159 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10160 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10161 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10162 | /* confdefs.h. */ |
| 10163 | _ACEOF |
| 10164 | cat confdefs.h >>conftest.$ac_ext |
| 10165 | cat >>conftest.$ac_ext <<_ACEOF |
| 10166 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10167 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10168 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10169 | int |
| 10170 | main () |
| 10171 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10172 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10173 | test_array [0] = 0 |
| 10174 | |
| 10175 | ; |
| 10176 | return 0; |
| 10177 | } |
| 10178 | _ACEOF |
| 10179 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10180 | if { (ac_try="$ac_compile" |
| 10181 | case "(($ac_try" in |
| 10182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10183 | *) ac_try_echo=$ac_try;; |
| 10184 | esac |
| 10185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10186 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10187 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10189 | rm -f conftest.er1 |
| 10190 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10192 | (exit $ac_status); } && { |
| 10193 | test -z "$ac_c_werror_flag" || |
| 10194 | test ! -s conftest.err |
| 10195 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | ac_hi=$ac_mid |
| 10197 | else |
| 10198 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10200 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10201 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10203 | |
| 10204 | 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] | 10205 | done |
| 10206 | case $ac_lo in |
| 10207 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10208 | '') if test "$ac_cv_type_fpos_t" = yes; then |
| 10209 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10210 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10211 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10212 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10213 | { (exit 77); exit 77; }; } |
| 10214 | else |
| 10215 | ac_cv_sizeof_fpos_t=0 |
| 10216 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10219 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10220 | /* confdefs.h. */ |
| 10221 | _ACEOF |
| 10222 | cat confdefs.h >>conftest.$ac_ext |
| 10223 | cat >>conftest.$ac_ext <<_ACEOF |
| 10224 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10225 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10226 | typedef fpos_t ac__type_sizeof_; |
| 10227 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10228 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10229 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10231 | int |
| 10232 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10233 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 | |
| 10235 | FILE *f = fopen ("conftest.val", "w"); |
| 10236 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10237 | return 1; |
| 10238 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10240 | long int i = longval (); |
| 10241 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10242 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10243 | fprintf (f, "%ld\n", i); |
| 10244 | } |
| 10245 | else |
| 10246 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10247 | unsigned long int i = ulongval (); |
| 10248 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10249 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 | fprintf (f, "%lu\n", i); |
| 10251 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10252 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | |
| 10254 | ; |
| 10255 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10256 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10257 | _ACEOF |
| 10258 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10259 | if { (ac_try="$ac_link" |
| 10260 | case "(($ac_try" in |
| 10261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10262 | *) ac_try_echo=$ac_try;; |
| 10263 | esac |
| 10264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10265 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | ac_status=$? |
| 10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10268 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10269 | { (case "(($ac_try" in |
| 10270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10271 | *) ac_try_echo=$ac_try;; |
| 10272 | esac |
| 10273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10274 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10275 | ac_status=$? |
| 10276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10277 | (exit $ac_status); }; }; then |
| 10278 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10279 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10280 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10281 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10284 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10285 | if test "$ac_cv_type_fpos_t" = yes; then |
| 10286 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10287 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10288 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10289 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10290 | { (exit 77); exit 77; }; } |
| 10291 | else |
| 10292 | ac_cv_sizeof_fpos_t=0 |
| 10293 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10295 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | fi |
| 10297 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10298 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10299 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10300 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
| 10301 | |
| 10302 | |
| 10303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10304 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10305 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10307 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10308 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10309 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10310 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10311 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10313 | else |
| 10314 | cat >conftest.$ac_ext <<_ACEOF |
| 10315 | /* confdefs.h. */ |
| 10316 | _ACEOF |
| 10317 | cat confdefs.h >>conftest.$ac_ext |
| 10318 | cat >>conftest.$ac_ext <<_ACEOF |
| 10319 | /* end confdefs.h. */ |
| 10320 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10321 | typedef size_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10322 | int |
| 10323 | main () |
| 10324 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10325 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10326 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10327 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10328 | return 0; |
| 10329 | ; |
| 10330 | return 0; |
| 10331 | } |
| 10332 | _ACEOF |
| 10333 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10334 | if { (ac_try="$ac_compile" |
| 10335 | case "(($ac_try" in |
| 10336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10337 | *) ac_try_echo=$ac_try;; |
| 10338 | esac |
| 10339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10340 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10341 | ac_status=$? |
| 10342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10343 | rm -f conftest.er1 |
| 10344 | cat conftest.err >&5 |
| 10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10346 | (exit $ac_status); } && { |
| 10347 | test -z "$ac_c_werror_flag" || |
| 10348 | test ! -s conftest.err |
| 10349 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10350 | ac_cv_type_size_t=yes |
| 10351 | else |
| 10352 | echo "$as_me: failed program was:" >&5 |
| 10353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10354 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10355 | ac_cv_type_size_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10356 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 10357 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10359 | fi |
| 10360 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10361 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10362 | |
| 10363 | # The cast to long int works around a bug in the HP C Compiler |
| 10364 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10365 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10366 | # This bug is HP SR number 8606223364. |
| 10367 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10368 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10369 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
| 10370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10371 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10372 | if test "$cross_compiling" = yes; then |
| 10373 | # Depending upon the size, compute the lo and hi bounds. |
| 10374 | cat >conftest.$ac_ext <<_ACEOF |
| 10375 | /* confdefs.h. */ |
| 10376 | _ACEOF |
| 10377 | cat confdefs.h >>conftest.$ac_ext |
| 10378 | cat >>conftest.$ac_ext <<_ACEOF |
| 10379 | /* end confdefs.h. */ |
| 10380 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10381 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10382 | int |
| 10383 | main () |
| 10384 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10385 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10386 | test_array [0] = 0 |
| 10387 | |
| 10388 | ; |
| 10389 | return 0; |
| 10390 | } |
| 10391 | _ACEOF |
| 10392 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10393 | if { (ac_try="$ac_compile" |
| 10394 | case "(($ac_try" in |
| 10395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10396 | *) ac_try_echo=$ac_try;; |
| 10397 | esac |
| 10398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10399 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10400 | ac_status=$? |
| 10401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10402 | rm -f conftest.er1 |
| 10403 | cat conftest.err >&5 |
| 10404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10405 | (exit $ac_status); } && { |
| 10406 | test -z "$ac_c_werror_flag" || |
| 10407 | test ! -s conftest.err |
| 10408 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10409 | ac_lo=0 ac_mid=0 |
| 10410 | while :; do |
| 10411 | cat >conftest.$ac_ext <<_ACEOF |
| 10412 | /* confdefs.h. */ |
| 10413 | _ACEOF |
| 10414 | cat confdefs.h >>conftest.$ac_ext |
| 10415 | cat >>conftest.$ac_ext <<_ACEOF |
| 10416 | /* end confdefs.h. */ |
| 10417 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10418 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10419 | int |
| 10420 | main () |
| 10421 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10422 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10423 | test_array [0] = 0 |
| 10424 | |
| 10425 | ; |
| 10426 | return 0; |
| 10427 | } |
| 10428 | _ACEOF |
| 10429 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10430 | if { (ac_try="$ac_compile" |
| 10431 | case "(($ac_try" in |
| 10432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10433 | *) ac_try_echo=$ac_try;; |
| 10434 | esac |
| 10435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10436 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10437 | ac_status=$? |
| 10438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10439 | rm -f conftest.er1 |
| 10440 | cat conftest.err >&5 |
| 10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10442 | (exit $ac_status); } && { |
| 10443 | test -z "$ac_c_werror_flag" || |
| 10444 | test ! -s conftest.err |
| 10445 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10446 | ac_hi=$ac_mid; break |
| 10447 | else |
| 10448 | echo "$as_me: failed program was:" >&5 |
| 10449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10450 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10451 | ac_lo=`expr $ac_mid + 1` |
| 10452 | if test $ac_lo -le $ac_mid; then |
| 10453 | ac_lo= ac_hi= |
| 10454 | break |
| 10455 | fi |
| 10456 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10457 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10458 | |
| 10459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10460 | done |
| 10461 | else |
| 10462 | echo "$as_me: failed program was:" >&5 |
| 10463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10464 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10465 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10466 | /* confdefs.h. */ |
| 10467 | _ACEOF |
| 10468 | cat confdefs.h >>conftest.$ac_ext |
| 10469 | cat >>conftest.$ac_ext <<_ACEOF |
| 10470 | /* end confdefs.h. */ |
| 10471 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10472 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10473 | int |
| 10474 | main () |
| 10475 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10476 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10477 | test_array [0] = 0 |
| 10478 | |
| 10479 | ; |
| 10480 | return 0; |
| 10481 | } |
| 10482 | _ACEOF |
| 10483 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10484 | if { (ac_try="$ac_compile" |
| 10485 | case "(($ac_try" in |
| 10486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10487 | *) ac_try_echo=$ac_try;; |
| 10488 | esac |
| 10489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10490 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10491 | ac_status=$? |
| 10492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10493 | rm -f conftest.er1 |
| 10494 | cat conftest.err >&5 |
| 10495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10496 | (exit $ac_status); } && { |
| 10497 | test -z "$ac_c_werror_flag" || |
| 10498 | test ! -s conftest.err |
| 10499 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10500 | ac_hi=-1 ac_mid=-1 |
| 10501 | while :; do |
| 10502 | cat >conftest.$ac_ext <<_ACEOF |
| 10503 | /* confdefs.h. */ |
| 10504 | _ACEOF |
| 10505 | cat confdefs.h >>conftest.$ac_ext |
| 10506 | cat >>conftest.$ac_ext <<_ACEOF |
| 10507 | /* end confdefs.h. */ |
| 10508 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10509 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10510 | int |
| 10511 | main () |
| 10512 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10513 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10514 | test_array [0] = 0 |
| 10515 | |
| 10516 | ; |
| 10517 | return 0; |
| 10518 | } |
| 10519 | _ACEOF |
| 10520 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10521 | if { (ac_try="$ac_compile" |
| 10522 | case "(($ac_try" in |
| 10523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10524 | *) ac_try_echo=$ac_try;; |
| 10525 | esac |
| 10526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10527 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10528 | ac_status=$? |
| 10529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10530 | rm -f conftest.er1 |
| 10531 | cat conftest.err >&5 |
| 10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10533 | (exit $ac_status); } && { |
| 10534 | test -z "$ac_c_werror_flag" || |
| 10535 | test ! -s conftest.err |
| 10536 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10537 | ac_lo=$ac_mid; break |
| 10538 | else |
| 10539 | echo "$as_me: failed program was:" >&5 |
| 10540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10541 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10542 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10543 | if test $ac_mid -le $ac_hi; then |
| 10544 | ac_lo= ac_hi= |
| 10545 | break |
| 10546 | fi |
| 10547 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10548 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10549 | |
| 10550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10551 | done |
| 10552 | else |
| 10553 | echo "$as_me: failed program was:" >&5 |
| 10554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10555 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10556 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10557 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10558 | |
| 10559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10560 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10561 | |
| 10562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10563 | # Binary search between lo and hi bounds. |
| 10564 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10565 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10566 | cat >conftest.$ac_ext <<_ACEOF |
| 10567 | /* confdefs.h. */ |
| 10568 | _ACEOF |
| 10569 | cat confdefs.h >>conftest.$ac_ext |
| 10570 | cat >>conftest.$ac_ext <<_ACEOF |
| 10571 | /* end confdefs.h. */ |
| 10572 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10573 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10574 | int |
| 10575 | main () |
| 10576 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10577 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10578 | test_array [0] = 0 |
| 10579 | |
| 10580 | ; |
| 10581 | return 0; |
| 10582 | } |
| 10583 | _ACEOF |
| 10584 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10585 | if { (ac_try="$ac_compile" |
| 10586 | case "(($ac_try" in |
| 10587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10588 | *) ac_try_echo=$ac_try;; |
| 10589 | esac |
| 10590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10591 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10592 | ac_status=$? |
| 10593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10594 | rm -f conftest.er1 |
| 10595 | cat conftest.err >&5 |
| 10596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10597 | (exit $ac_status); } && { |
| 10598 | test -z "$ac_c_werror_flag" || |
| 10599 | test ! -s conftest.err |
| 10600 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10601 | ac_hi=$ac_mid |
| 10602 | else |
| 10603 | echo "$as_me: failed program was:" >&5 |
| 10604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10605 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10606 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10607 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10608 | |
| 10609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10610 | done |
| 10611 | case $ac_lo in |
| 10612 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10613 | '') if test "$ac_cv_type_size_t" = yes; then |
| 10614 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10615 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10616 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10617 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10618 | { (exit 77); exit 77; }; } |
| 10619 | else |
| 10620 | ac_cv_sizeof_size_t=0 |
| 10621 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10622 | esac |
| 10623 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10624 | cat >conftest.$ac_ext <<_ACEOF |
| 10625 | /* confdefs.h. */ |
| 10626 | _ACEOF |
| 10627 | cat confdefs.h >>conftest.$ac_ext |
| 10628 | cat >>conftest.$ac_ext <<_ACEOF |
| 10629 | /* end confdefs.h. */ |
| 10630 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10631 | typedef size_t ac__type_sizeof_; |
| 10632 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10633 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10634 | #include <stdio.h> |
| 10635 | #include <stdlib.h> |
| 10636 | int |
| 10637 | main () |
| 10638 | { |
| 10639 | |
| 10640 | FILE *f = fopen ("conftest.val", "w"); |
| 10641 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10642 | return 1; |
| 10643 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10644 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10645 | long int i = longval (); |
| 10646 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10647 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10648 | fprintf (f, "%ld\n", i); |
| 10649 | } |
| 10650 | else |
| 10651 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10652 | unsigned long int i = ulongval (); |
| 10653 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10654 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10655 | fprintf (f, "%lu\n", i); |
| 10656 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10657 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10658 | |
| 10659 | ; |
| 10660 | return 0; |
| 10661 | } |
| 10662 | _ACEOF |
| 10663 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10664 | if { (ac_try="$ac_link" |
| 10665 | case "(($ac_try" in |
| 10666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10667 | *) ac_try_echo=$ac_try;; |
| 10668 | esac |
| 10669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10670 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10671 | ac_status=$? |
| 10672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10674 | { (case "(($ac_try" in |
| 10675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10676 | *) ac_try_echo=$ac_try;; |
| 10677 | esac |
| 10678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10679 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10680 | ac_status=$? |
| 10681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10682 | (exit $ac_status); }; }; then |
| 10683 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10684 | else |
| 10685 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10686 | echo "$as_me: failed program was:" >&5 |
| 10687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10688 | |
| 10689 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10690 | if test "$ac_cv_type_size_t" = yes; then |
| 10691 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10692 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10693 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10694 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10695 | { (exit 77); exit 77; }; } |
| 10696 | else |
| 10697 | ac_cv_sizeof_size_t=0 |
| 10698 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10699 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10700 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10701 | fi |
| 10702 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10703 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10704 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10705 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
| 10706 | |
| 10707 | |
| 10708 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10709 | cat >>confdefs.h <<_ACEOF |
| 10710 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10711 | _ACEOF |
| 10712 | |
| 10713 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10714 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10715 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10716 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10718 | else |
| 10719 | cat >conftest.$ac_ext <<_ACEOF |
| 10720 | /* confdefs.h. */ |
| 10721 | _ACEOF |
| 10722 | cat confdefs.h >>conftest.$ac_ext |
| 10723 | cat >>conftest.$ac_ext <<_ACEOF |
| 10724 | /* end confdefs.h. */ |
| 10725 | $ac_includes_default |
| 10726 | typedef pid_t ac__type_new_; |
| 10727 | int |
| 10728 | main () |
| 10729 | { |
| 10730 | if ((ac__type_new_ *) 0) |
| 10731 | return 0; |
| 10732 | if (sizeof (ac__type_new_)) |
| 10733 | return 0; |
| 10734 | ; |
| 10735 | return 0; |
| 10736 | } |
| 10737 | _ACEOF |
| 10738 | rm -f conftest.$ac_objext |
| 10739 | if { (ac_try="$ac_compile" |
| 10740 | case "(($ac_try" in |
| 10741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10742 | *) ac_try_echo=$ac_try;; |
| 10743 | esac |
| 10744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10745 | (eval "$ac_compile") 2>conftest.er1 |
| 10746 | ac_status=$? |
| 10747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10748 | rm -f conftest.er1 |
| 10749 | cat conftest.err >&5 |
| 10750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10751 | (exit $ac_status); } && { |
| 10752 | test -z "$ac_c_werror_flag" || |
| 10753 | test ! -s conftest.err |
| 10754 | } && test -s conftest.$ac_objext; then |
| 10755 | ac_cv_type_pid_t=yes |
| 10756 | else |
| 10757 | echo "$as_me: failed program was:" >&5 |
| 10758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10759 | |
| 10760 | ac_cv_type_pid_t=no |
| 10761 | fi |
| 10762 | |
| 10763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10764 | fi |
| 10765 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10766 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10767 | |
| 10768 | # The cast to long int works around a bug in the HP C Compiler |
| 10769 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10770 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10771 | # This bug is HP SR number 8606223364. |
| 10772 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10773 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
| 10774 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
| 10775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10776 | else |
| 10777 | if test "$cross_compiling" = yes; then |
| 10778 | # Depending upon the size, compute the lo and hi bounds. |
| 10779 | cat >conftest.$ac_ext <<_ACEOF |
| 10780 | /* confdefs.h. */ |
| 10781 | _ACEOF |
| 10782 | cat confdefs.h >>conftest.$ac_ext |
| 10783 | cat >>conftest.$ac_ext <<_ACEOF |
| 10784 | /* end confdefs.h. */ |
| 10785 | $ac_includes_default |
| 10786 | typedef pid_t ac__type_sizeof_; |
| 10787 | int |
| 10788 | main () |
| 10789 | { |
| 10790 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 10791 | test_array [0] = 0 |
| 10792 | |
| 10793 | ; |
| 10794 | return 0; |
| 10795 | } |
| 10796 | _ACEOF |
| 10797 | rm -f conftest.$ac_objext |
| 10798 | if { (ac_try="$ac_compile" |
| 10799 | case "(($ac_try" in |
| 10800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10801 | *) ac_try_echo=$ac_try;; |
| 10802 | esac |
| 10803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10804 | (eval "$ac_compile") 2>conftest.er1 |
| 10805 | ac_status=$? |
| 10806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10807 | rm -f conftest.er1 |
| 10808 | cat conftest.err >&5 |
| 10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10810 | (exit $ac_status); } && { |
| 10811 | test -z "$ac_c_werror_flag" || |
| 10812 | test ! -s conftest.err |
| 10813 | } && test -s conftest.$ac_objext; then |
| 10814 | ac_lo=0 ac_mid=0 |
| 10815 | while :; do |
| 10816 | cat >conftest.$ac_ext <<_ACEOF |
| 10817 | /* confdefs.h. */ |
| 10818 | _ACEOF |
| 10819 | cat confdefs.h >>conftest.$ac_ext |
| 10820 | cat >>conftest.$ac_ext <<_ACEOF |
| 10821 | /* end confdefs.h. */ |
| 10822 | $ac_includes_default |
| 10823 | typedef pid_t ac__type_sizeof_; |
| 10824 | int |
| 10825 | main () |
| 10826 | { |
| 10827 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 10828 | test_array [0] = 0 |
| 10829 | |
| 10830 | ; |
| 10831 | return 0; |
| 10832 | } |
| 10833 | _ACEOF |
| 10834 | rm -f conftest.$ac_objext |
| 10835 | if { (ac_try="$ac_compile" |
| 10836 | case "(($ac_try" in |
| 10837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10838 | *) ac_try_echo=$ac_try;; |
| 10839 | esac |
| 10840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10841 | (eval "$ac_compile") 2>conftest.er1 |
| 10842 | ac_status=$? |
| 10843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10844 | rm -f conftest.er1 |
| 10845 | cat conftest.err >&5 |
| 10846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10847 | (exit $ac_status); } && { |
| 10848 | test -z "$ac_c_werror_flag" || |
| 10849 | test ! -s conftest.err |
| 10850 | } && test -s conftest.$ac_objext; then |
| 10851 | ac_hi=$ac_mid; break |
| 10852 | else |
| 10853 | echo "$as_me: failed program was:" >&5 |
| 10854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10855 | |
| 10856 | ac_lo=`expr $ac_mid + 1` |
| 10857 | if test $ac_lo -le $ac_mid; then |
| 10858 | ac_lo= ac_hi= |
| 10859 | break |
| 10860 | fi |
| 10861 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10862 | fi |
| 10863 | |
| 10864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10865 | done |
| 10866 | else |
| 10867 | echo "$as_me: failed program was:" >&5 |
| 10868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10869 | |
| 10870 | cat >conftest.$ac_ext <<_ACEOF |
| 10871 | /* confdefs.h. */ |
| 10872 | _ACEOF |
| 10873 | cat confdefs.h >>conftest.$ac_ext |
| 10874 | cat >>conftest.$ac_ext <<_ACEOF |
| 10875 | /* end confdefs.h. */ |
| 10876 | $ac_includes_default |
| 10877 | typedef pid_t ac__type_sizeof_; |
| 10878 | int |
| 10879 | main () |
| 10880 | { |
| 10881 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 10882 | test_array [0] = 0 |
| 10883 | |
| 10884 | ; |
| 10885 | return 0; |
| 10886 | } |
| 10887 | _ACEOF |
| 10888 | rm -f conftest.$ac_objext |
| 10889 | if { (ac_try="$ac_compile" |
| 10890 | case "(($ac_try" in |
| 10891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10892 | *) ac_try_echo=$ac_try;; |
| 10893 | esac |
| 10894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10895 | (eval "$ac_compile") 2>conftest.er1 |
| 10896 | ac_status=$? |
| 10897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10898 | rm -f conftest.er1 |
| 10899 | cat conftest.err >&5 |
| 10900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10901 | (exit $ac_status); } && { |
| 10902 | test -z "$ac_c_werror_flag" || |
| 10903 | test ! -s conftest.err |
| 10904 | } && test -s conftest.$ac_objext; then |
| 10905 | ac_hi=-1 ac_mid=-1 |
| 10906 | while :; do |
| 10907 | cat >conftest.$ac_ext <<_ACEOF |
| 10908 | /* confdefs.h. */ |
| 10909 | _ACEOF |
| 10910 | cat confdefs.h >>conftest.$ac_ext |
| 10911 | cat >>conftest.$ac_ext <<_ACEOF |
| 10912 | /* end confdefs.h. */ |
| 10913 | $ac_includes_default |
| 10914 | typedef pid_t ac__type_sizeof_; |
| 10915 | int |
| 10916 | main () |
| 10917 | { |
| 10918 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 10919 | test_array [0] = 0 |
| 10920 | |
| 10921 | ; |
| 10922 | return 0; |
| 10923 | } |
| 10924 | _ACEOF |
| 10925 | rm -f conftest.$ac_objext |
| 10926 | if { (ac_try="$ac_compile" |
| 10927 | case "(($ac_try" in |
| 10928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10929 | *) ac_try_echo=$ac_try;; |
| 10930 | esac |
| 10931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10932 | (eval "$ac_compile") 2>conftest.er1 |
| 10933 | ac_status=$? |
| 10934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10935 | rm -f conftest.er1 |
| 10936 | cat conftest.err >&5 |
| 10937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10938 | (exit $ac_status); } && { |
| 10939 | test -z "$ac_c_werror_flag" || |
| 10940 | test ! -s conftest.err |
| 10941 | } && test -s conftest.$ac_objext; then |
| 10942 | ac_lo=$ac_mid; break |
| 10943 | else |
| 10944 | echo "$as_me: failed program was:" >&5 |
| 10945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10946 | |
| 10947 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10948 | if test $ac_mid -le $ac_hi; then |
| 10949 | ac_lo= ac_hi= |
| 10950 | break |
| 10951 | fi |
| 10952 | ac_mid=`expr 2 '*' $ac_mid` |
| 10953 | fi |
| 10954 | |
| 10955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10956 | done |
| 10957 | else |
| 10958 | echo "$as_me: failed program was:" >&5 |
| 10959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10960 | |
| 10961 | ac_lo= ac_hi= |
| 10962 | fi |
| 10963 | |
| 10964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10965 | fi |
| 10966 | |
| 10967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10968 | # Binary search between lo and hi bounds. |
| 10969 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10970 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10971 | cat >conftest.$ac_ext <<_ACEOF |
| 10972 | /* confdefs.h. */ |
| 10973 | _ACEOF |
| 10974 | cat confdefs.h >>conftest.$ac_ext |
| 10975 | cat >>conftest.$ac_ext <<_ACEOF |
| 10976 | /* end confdefs.h. */ |
| 10977 | $ac_includes_default |
| 10978 | typedef pid_t ac__type_sizeof_; |
| 10979 | int |
| 10980 | main () |
| 10981 | { |
| 10982 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 10983 | test_array [0] = 0 |
| 10984 | |
| 10985 | ; |
| 10986 | return 0; |
| 10987 | } |
| 10988 | _ACEOF |
| 10989 | rm -f conftest.$ac_objext |
| 10990 | if { (ac_try="$ac_compile" |
| 10991 | case "(($ac_try" in |
| 10992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10993 | *) ac_try_echo=$ac_try;; |
| 10994 | esac |
| 10995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10996 | (eval "$ac_compile") 2>conftest.er1 |
| 10997 | ac_status=$? |
| 10998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10999 | rm -f conftest.er1 |
| 11000 | cat conftest.err >&5 |
| 11001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11002 | (exit $ac_status); } && { |
| 11003 | test -z "$ac_c_werror_flag" || |
| 11004 | test ! -s conftest.err |
| 11005 | } && test -s conftest.$ac_objext; then |
| 11006 | ac_hi=$ac_mid |
| 11007 | else |
| 11008 | echo "$as_me: failed program was:" >&5 |
| 11009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11010 | |
| 11011 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11012 | fi |
| 11013 | |
| 11014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11015 | done |
| 11016 | case $ac_lo in |
| 11017 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11018 | '') if test "$ac_cv_type_pid_t" = yes; then |
| 11019 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
| 11020 | See \`config.log' for more details." >&5 |
| 11021 | echo "$as_me: error: cannot compute sizeof (pid_t) |
| 11022 | See \`config.log' for more details." >&2;} |
| 11023 | { (exit 77); exit 77; }; } |
| 11024 | else |
| 11025 | ac_cv_sizeof_pid_t=0 |
| 11026 | fi ;; |
| 11027 | esac |
| 11028 | else |
| 11029 | cat >conftest.$ac_ext <<_ACEOF |
| 11030 | /* confdefs.h. */ |
| 11031 | _ACEOF |
| 11032 | cat confdefs.h >>conftest.$ac_ext |
| 11033 | cat >>conftest.$ac_ext <<_ACEOF |
| 11034 | /* end confdefs.h. */ |
| 11035 | $ac_includes_default |
| 11036 | typedef pid_t ac__type_sizeof_; |
| 11037 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11038 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11039 | #include <stdio.h> |
| 11040 | #include <stdlib.h> |
| 11041 | int |
| 11042 | main () |
| 11043 | { |
| 11044 | |
| 11045 | FILE *f = fopen ("conftest.val", "w"); |
| 11046 | if (! f) |
| 11047 | return 1; |
| 11048 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 11049 | { |
| 11050 | long int i = longval (); |
| 11051 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11052 | return 1; |
| 11053 | fprintf (f, "%ld\n", i); |
| 11054 | } |
| 11055 | else |
| 11056 | { |
| 11057 | unsigned long int i = ulongval (); |
| 11058 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11059 | return 1; |
| 11060 | fprintf (f, "%lu\n", i); |
| 11061 | } |
| 11062 | return ferror (f) || fclose (f) != 0; |
| 11063 | |
| 11064 | ; |
| 11065 | return 0; |
| 11066 | } |
| 11067 | _ACEOF |
| 11068 | rm -f conftest$ac_exeext |
| 11069 | if { (ac_try="$ac_link" |
| 11070 | case "(($ac_try" in |
| 11071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11072 | *) ac_try_echo=$ac_try;; |
| 11073 | esac |
| 11074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11075 | (eval "$ac_link") 2>&5 |
| 11076 | ac_status=$? |
| 11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11078 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11079 | { (case "(($ac_try" in |
| 11080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11081 | *) ac_try_echo=$ac_try;; |
| 11082 | esac |
| 11083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11084 | (eval "$ac_try") 2>&5 |
| 11085 | ac_status=$? |
| 11086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11087 | (exit $ac_status); }; }; then |
| 11088 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11089 | else |
| 11090 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11091 | echo "$as_me: failed program was:" >&5 |
| 11092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11093 | |
| 11094 | ( exit $ac_status ) |
| 11095 | if test "$ac_cv_type_pid_t" = yes; then |
| 11096 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
| 11097 | See \`config.log' for more details." >&5 |
| 11098 | echo "$as_me: error: cannot compute sizeof (pid_t) |
| 11099 | See \`config.log' for more details." >&2;} |
| 11100 | { (exit 77); exit 77; }; } |
| 11101 | else |
| 11102 | ac_cv_sizeof_pid_t=0 |
| 11103 | fi |
| 11104 | fi |
| 11105 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11106 | fi |
| 11107 | rm -f conftest.val |
| 11108 | fi |
| 11109 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11110 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
| 11111 | |
| 11112 | |
| 11113 | |
| 11114 | cat >>confdefs.h <<_ACEOF |
| 11115 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11116 | _ACEOF |
| 11117 | |
| 11118 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11119 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11120 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11121 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11122 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11124 | /* confdefs.h. */ |
| 11125 | _ACEOF |
| 11126 | cat confdefs.h >>conftest.$ac_ext |
| 11127 | cat >>conftest.$ac_ext <<_ACEOF |
| 11128 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11130 | int |
| 11131 | main () |
| 11132 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11133 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | ; |
| 11135 | return 0; |
| 11136 | } |
| 11137 | _ACEOF |
| 11138 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11139 | if { (ac_try="$ac_compile" |
| 11140 | case "(($ac_try" in |
| 11141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11142 | *) ac_try_echo=$ac_try;; |
| 11143 | esac |
| 11144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11145 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11148 | rm -f conftest.er1 |
| 11149 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11151 | (exit $ac_status); } && { |
| 11152 | test -z "$ac_c_werror_flag" || |
| 11153 | test ! -s conftest.err |
| 11154 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11155 | |
| 11156 | |
| 11157 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11158 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11159 | _ACEOF |
| 11160 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11161 | have_long_long=yes |
| 11162 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11166 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11167 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11168 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11169 | |
| 11170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11171 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11172 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11173 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11174 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11175 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11176 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11178 | else |
| 11179 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11180 | /* confdefs.h. */ |
| 11181 | _ACEOF |
| 11182 | cat confdefs.h >>conftest.$ac_ext |
| 11183 | cat >>conftest.$ac_ext <<_ACEOF |
| 11184 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11186 | typedef long long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | int |
| 11188 | main () |
| 11189 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11190 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11191 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11192 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11193 | return 0; |
| 11194 | ; |
| 11195 | return 0; |
| 11196 | } |
| 11197 | _ACEOF |
| 11198 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11199 | if { (ac_try="$ac_compile" |
| 11200 | case "(($ac_try" in |
| 11201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11202 | *) ac_try_echo=$ac_try;; |
| 11203 | esac |
| 11204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11205 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11206 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11208 | rm -f conftest.er1 |
| 11209 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11211 | (exit $ac_status); } && { |
| 11212 | test -z "$ac_c_werror_flag" || |
| 11213 | test ! -s conftest.err |
| 11214 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11215 | ac_cv_type_long_long=yes |
| 11216 | else |
| 11217 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11219 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11220 | ac_cv_type_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11221 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 11222 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11224 | fi |
| 11225 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11226 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11227 | |
| 11228 | # The cast to long int works around a bug in the HP C Compiler |
| 11229 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11230 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11231 | # This bug is HP SR number 8606223364. |
| 11232 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11233 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 11235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11237 | if test "$cross_compiling" = yes; then |
| 11238 | # Depending upon the size, compute the lo and hi bounds. |
| 11239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11240 | /* confdefs.h. */ |
| 11241 | _ACEOF |
| 11242 | cat confdefs.h >>conftest.$ac_ext |
| 11243 | cat >>conftest.$ac_ext <<_ACEOF |
| 11244 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11245 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11246 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11247 | int |
| 11248 | main () |
| 11249 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11250 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11251 | test_array [0] = 0 |
| 11252 | |
| 11253 | ; |
| 11254 | return 0; |
| 11255 | } |
| 11256 | _ACEOF |
| 11257 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11258 | if { (ac_try="$ac_compile" |
| 11259 | case "(($ac_try" in |
| 11260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11261 | *) ac_try_echo=$ac_try;; |
| 11262 | esac |
| 11263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11264 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11267 | rm -f conftest.er1 |
| 11268 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11270 | (exit $ac_status); } && { |
| 11271 | test -z "$ac_c_werror_flag" || |
| 11272 | test ! -s conftest.err |
| 11273 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | ac_lo=0 ac_mid=0 |
| 11275 | while :; do |
| 11276 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11277 | /* confdefs.h. */ |
| 11278 | _ACEOF |
| 11279 | cat confdefs.h >>conftest.$ac_ext |
| 11280 | cat >>conftest.$ac_ext <<_ACEOF |
| 11281 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11283 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11284 | int |
| 11285 | main () |
| 11286 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11287 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | test_array [0] = 0 |
| 11289 | |
| 11290 | ; |
| 11291 | return 0; |
| 11292 | } |
| 11293 | _ACEOF |
| 11294 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11295 | if { (ac_try="$ac_compile" |
| 11296 | case "(($ac_try" in |
| 11297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11298 | *) ac_try_echo=$ac_try;; |
| 11299 | esac |
| 11300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11301 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11304 | rm -f conftest.er1 |
| 11305 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11307 | (exit $ac_status); } && { |
| 11308 | test -z "$ac_c_werror_flag" || |
| 11309 | test ! -s conftest.err |
| 11310 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 | ac_hi=$ac_mid; break |
| 11312 | else |
| 11313 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11315 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11316 | ac_lo=`expr $ac_mid + 1` |
| 11317 | if test $ac_lo -le $ac_mid; then |
| 11318 | ac_lo= ac_hi= |
| 11319 | break |
| 11320 | fi |
| 11321 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11322 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11323 | |
| 11324 | 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] | 11325 | done |
| 11326 | else |
| 11327 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11329 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11330 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11331 | /* confdefs.h. */ |
| 11332 | _ACEOF |
| 11333 | cat confdefs.h >>conftest.$ac_ext |
| 11334 | cat >>conftest.$ac_ext <<_ACEOF |
| 11335 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11336 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11337 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11338 | int |
| 11339 | main () |
| 11340 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11341 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11342 | test_array [0] = 0 |
| 11343 | |
| 11344 | ; |
| 11345 | return 0; |
| 11346 | } |
| 11347 | _ACEOF |
| 11348 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11349 | if { (ac_try="$ac_compile" |
| 11350 | case "(($ac_try" in |
| 11351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11352 | *) ac_try_echo=$ac_try;; |
| 11353 | esac |
| 11354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11355 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11358 | rm -f conftest.er1 |
| 11359 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11361 | (exit $ac_status); } && { |
| 11362 | test -z "$ac_c_werror_flag" || |
| 11363 | test ! -s conftest.err |
| 11364 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11365 | ac_hi=-1 ac_mid=-1 |
| 11366 | while :; do |
| 11367 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11368 | /* confdefs.h. */ |
| 11369 | _ACEOF |
| 11370 | cat confdefs.h >>conftest.$ac_ext |
| 11371 | cat >>conftest.$ac_ext <<_ACEOF |
| 11372 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11374 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11375 | int |
| 11376 | main () |
| 11377 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11378 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 | test_array [0] = 0 |
| 11380 | |
| 11381 | ; |
| 11382 | return 0; |
| 11383 | } |
| 11384 | _ACEOF |
| 11385 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11386 | if { (ac_try="$ac_compile" |
| 11387 | case "(($ac_try" in |
| 11388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11389 | *) ac_try_echo=$ac_try;; |
| 11390 | esac |
| 11391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11392 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11393 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11395 | rm -f conftest.er1 |
| 11396 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11398 | (exit $ac_status); } && { |
| 11399 | test -z "$ac_c_werror_flag" || |
| 11400 | test ! -s conftest.err |
| 11401 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | ac_lo=$ac_mid; break |
| 11403 | else |
| 11404 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11406 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11407 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11408 | if test $ac_mid -le $ac_hi; then |
| 11409 | ac_lo= ac_hi= |
| 11410 | break |
| 11411 | fi |
| 11412 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11413 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11414 | |
| 11415 | 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] | 11416 | done |
| 11417 | else |
| 11418 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11420 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11421 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11422 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11423 | |
| 11424 | 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] | 11425 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11426 | |
| 11427 | 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] | 11428 | # Binary search between lo and hi bounds. |
| 11429 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11430 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11431 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11432 | /* confdefs.h. */ |
| 11433 | _ACEOF |
| 11434 | cat confdefs.h >>conftest.$ac_ext |
| 11435 | cat >>conftest.$ac_ext <<_ACEOF |
| 11436 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11437 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11438 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11439 | int |
| 11440 | main () |
| 11441 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11442 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | test_array [0] = 0 |
| 11444 | |
| 11445 | ; |
| 11446 | return 0; |
| 11447 | } |
| 11448 | _ACEOF |
| 11449 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11450 | if { (ac_try="$ac_compile" |
| 11451 | case "(($ac_try" in |
| 11452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11453 | *) ac_try_echo=$ac_try;; |
| 11454 | esac |
| 11455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11456 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11459 | rm -f conftest.er1 |
| 11460 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11462 | (exit $ac_status); } && { |
| 11463 | test -z "$ac_c_werror_flag" || |
| 11464 | test ! -s conftest.err |
| 11465 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11466 | ac_hi=$ac_mid |
| 11467 | else |
| 11468 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11470 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11471 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11472 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11473 | |
| 11474 | 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] | 11475 | done |
| 11476 | case $ac_lo in |
| 11477 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11478 | '') if test "$ac_cv_type_long_long" = yes; then |
| 11479 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11480 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11481 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11482 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11483 | { (exit 77); exit 77; }; } |
| 11484 | else |
| 11485 | ac_cv_sizeof_long_long=0 |
| 11486 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11487 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11488 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11489 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11490 | /* confdefs.h. */ |
| 11491 | _ACEOF |
| 11492 | cat confdefs.h >>conftest.$ac_ext |
| 11493 | cat >>conftest.$ac_ext <<_ACEOF |
| 11494 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11496 | typedef long long ac__type_sizeof_; |
| 11497 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11498 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11499 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11500 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11501 | int |
| 11502 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11503 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11504 | |
| 11505 | FILE *f = fopen ("conftest.val", "w"); |
| 11506 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11507 | return 1; |
| 11508 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11509 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11510 | long int i = longval (); |
| 11511 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11512 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11513 | fprintf (f, "%ld\n", i); |
| 11514 | } |
| 11515 | else |
| 11516 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11517 | unsigned long int i = ulongval (); |
| 11518 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11519 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11520 | fprintf (f, "%lu\n", i); |
| 11521 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11522 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11523 | |
| 11524 | ; |
| 11525 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11526 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11527 | _ACEOF |
| 11528 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11529 | if { (ac_try="$ac_link" |
| 11530 | case "(($ac_try" in |
| 11531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11532 | *) ac_try_echo=$ac_try;; |
| 11533 | esac |
| 11534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11535 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11536 | ac_status=$? |
| 11537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11538 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11539 | { (case "(($ac_try" in |
| 11540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11541 | *) ac_try_echo=$ac_try;; |
| 11542 | esac |
| 11543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11544 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11545 | ac_status=$? |
| 11546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11547 | (exit $ac_status); }; }; then |
| 11548 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11549 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11551 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11555 | if test "$ac_cv_type_long_long" = yes; then |
| 11556 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11557 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11558 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11559 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11560 | { (exit 77); exit 77; }; } |
| 11561 | else |
| 11562 | ac_cv_sizeof_long_long=0 |
| 11563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11564 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11565 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | fi |
| 11567 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11568 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11569 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11570 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
| 11571 | |
| 11572 | |
| 11573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11574 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11575 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11576 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11577 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11578 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11579 | fi |
| 11580 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11581 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11582 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
| 11583 | have_long_double=no |
| 11584 | cat >conftest.$ac_ext <<_ACEOF |
| 11585 | /* confdefs.h. */ |
| 11586 | _ACEOF |
| 11587 | cat confdefs.h >>conftest.$ac_ext |
| 11588 | cat >>conftest.$ac_ext <<_ACEOF |
| 11589 | /* end confdefs.h. */ |
| 11590 | |
| 11591 | int |
| 11592 | main () |
| 11593 | { |
| 11594 | long double x; x = (long double)0.; |
| 11595 | ; |
| 11596 | return 0; |
| 11597 | } |
| 11598 | _ACEOF |
| 11599 | rm -f conftest.$ac_objext |
| 11600 | if { (ac_try="$ac_compile" |
| 11601 | case "(($ac_try" in |
| 11602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11603 | *) ac_try_echo=$ac_try;; |
| 11604 | esac |
| 11605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11606 | (eval "$ac_compile") 2>conftest.er1 |
| 11607 | ac_status=$? |
| 11608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11609 | rm -f conftest.er1 |
| 11610 | cat conftest.err >&5 |
| 11611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11612 | (exit $ac_status); } && { |
| 11613 | test -z "$ac_c_werror_flag" || |
| 11614 | test ! -s conftest.err |
| 11615 | } && test -s conftest.$ac_objext; then |
| 11616 | |
| 11617 | |
| 11618 | cat >>confdefs.h <<\_ACEOF |
| 11619 | #define HAVE_LONG_DOUBLE 1 |
| 11620 | _ACEOF |
| 11621 | |
| 11622 | have_long_double=yes |
| 11623 | |
| 11624 | else |
| 11625 | echo "$as_me: failed program was:" >&5 |
| 11626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11627 | |
| 11628 | |
| 11629 | fi |
| 11630 | |
| 11631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11632 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11633 | echo "${ECHO_T}$have_long_double" >&6; } |
| 11634 | if test "$have_long_double" = yes ; then |
| 11635 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11636 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11637 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11639 | else |
| 11640 | cat >conftest.$ac_ext <<_ACEOF |
| 11641 | /* confdefs.h. */ |
| 11642 | _ACEOF |
| 11643 | cat confdefs.h >>conftest.$ac_ext |
| 11644 | cat >>conftest.$ac_ext <<_ACEOF |
| 11645 | /* end confdefs.h. */ |
| 11646 | $ac_includes_default |
| 11647 | typedef long double ac__type_new_; |
| 11648 | int |
| 11649 | main () |
| 11650 | { |
| 11651 | if ((ac__type_new_ *) 0) |
| 11652 | return 0; |
| 11653 | if (sizeof (ac__type_new_)) |
| 11654 | return 0; |
| 11655 | ; |
| 11656 | return 0; |
| 11657 | } |
| 11658 | _ACEOF |
| 11659 | rm -f conftest.$ac_objext |
| 11660 | if { (ac_try="$ac_compile" |
| 11661 | case "(($ac_try" in |
| 11662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11663 | *) ac_try_echo=$ac_try;; |
| 11664 | esac |
| 11665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11666 | (eval "$ac_compile") 2>conftest.er1 |
| 11667 | ac_status=$? |
| 11668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11669 | rm -f conftest.er1 |
| 11670 | cat conftest.err >&5 |
| 11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11672 | (exit $ac_status); } && { |
| 11673 | test -z "$ac_c_werror_flag" || |
| 11674 | test ! -s conftest.err |
| 11675 | } && test -s conftest.$ac_objext; then |
| 11676 | ac_cv_type_long_double=yes |
| 11677 | else |
| 11678 | echo "$as_me: failed program was:" >&5 |
| 11679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11680 | |
| 11681 | ac_cv_type_long_double=no |
| 11682 | fi |
| 11683 | |
| 11684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11685 | fi |
| 11686 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11687 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11688 | |
| 11689 | # The cast to long int works around a bug in the HP C Compiler |
| 11690 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11691 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11692 | # This bug is HP SR number 8606223364. |
| 11693 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11694 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
| 11695 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
| 11696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11697 | else |
| 11698 | if test "$cross_compiling" = yes; then |
| 11699 | # Depending upon the size, compute the lo and hi bounds. |
| 11700 | cat >conftest.$ac_ext <<_ACEOF |
| 11701 | /* confdefs.h. */ |
| 11702 | _ACEOF |
| 11703 | cat confdefs.h >>conftest.$ac_ext |
| 11704 | cat >>conftest.$ac_ext <<_ACEOF |
| 11705 | /* end confdefs.h. */ |
| 11706 | $ac_includes_default |
| 11707 | typedef long double ac__type_sizeof_; |
| 11708 | int |
| 11709 | main () |
| 11710 | { |
| 11711 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 11712 | test_array [0] = 0 |
| 11713 | |
| 11714 | ; |
| 11715 | return 0; |
| 11716 | } |
| 11717 | _ACEOF |
| 11718 | rm -f conftest.$ac_objext |
| 11719 | if { (ac_try="$ac_compile" |
| 11720 | case "(($ac_try" in |
| 11721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11722 | *) ac_try_echo=$ac_try;; |
| 11723 | esac |
| 11724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11725 | (eval "$ac_compile") 2>conftest.er1 |
| 11726 | ac_status=$? |
| 11727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11728 | rm -f conftest.er1 |
| 11729 | cat conftest.err >&5 |
| 11730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11731 | (exit $ac_status); } && { |
| 11732 | test -z "$ac_c_werror_flag" || |
| 11733 | test ! -s conftest.err |
| 11734 | } && test -s conftest.$ac_objext; then |
| 11735 | ac_lo=0 ac_mid=0 |
| 11736 | while :; do |
| 11737 | cat >conftest.$ac_ext <<_ACEOF |
| 11738 | /* confdefs.h. */ |
| 11739 | _ACEOF |
| 11740 | cat confdefs.h >>conftest.$ac_ext |
| 11741 | cat >>conftest.$ac_ext <<_ACEOF |
| 11742 | /* end confdefs.h. */ |
| 11743 | $ac_includes_default |
| 11744 | typedef long double ac__type_sizeof_; |
| 11745 | int |
| 11746 | main () |
| 11747 | { |
| 11748 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 11749 | test_array [0] = 0 |
| 11750 | |
| 11751 | ; |
| 11752 | return 0; |
| 11753 | } |
| 11754 | _ACEOF |
| 11755 | rm -f conftest.$ac_objext |
| 11756 | if { (ac_try="$ac_compile" |
| 11757 | case "(($ac_try" in |
| 11758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11759 | *) ac_try_echo=$ac_try;; |
| 11760 | esac |
| 11761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11762 | (eval "$ac_compile") 2>conftest.er1 |
| 11763 | ac_status=$? |
| 11764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11765 | rm -f conftest.er1 |
| 11766 | cat conftest.err >&5 |
| 11767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11768 | (exit $ac_status); } && { |
| 11769 | test -z "$ac_c_werror_flag" || |
| 11770 | test ! -s conftest.err |
| 11771 | } && test -s conftest.$ac_objext; then |
| 11772 | ac_hi=$ac_mid; break |
| 11773 | else |
| 11774 | echo "$as_me: failed program was:" >&5 |
| 11775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11776 | |
| 11777 | ac_lo=`expr $ac_mid + 1` |
| 11778 | if test $ac_lo -le $ac_mid; then |
| 11779 | ac_lo= ac_hi= |
| 11780 | break |
| 11781 | fi |
| 11782 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11783 | fi |
| 11784 | |
| 11785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11786 | done |
| 11787 | else |
| 11788 | echo "$as_me: failed program was:" >&5 |
| 11789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11790 | |
| 11791 | cat >conftest.$ac_ext <<_ACEOF |
| 11792 | /* confdefs.h. */ |
| 11793 | _ACEOF |
| 11794 | cat confdefs.h >>conftest.$ac_ext |
| 11795 | cat >>conftest.$ac_ext <<_ACEOF |
| 11796 | /* end confdefs.h. */ |
| 11797 | $ac_includes_default |
| 11798 | typedef long double ac__type_sizeof_; |
| 11799 | int |
| 11800 | main () |
| 11801 | { |
| 11802 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 11803 | test_array [0] = 0 |
| 11804 | |
| 11805 | ; |
| 11806 | return 0; |
| 11807 | } |
| 11808 | _ACEOF |
| 11809 | rm -f conftest.$ac_objext |
| 11810 | if { (ac_try="$ac_compile" |
| 11811 | case "(($ac_try" in |
| 11812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11813 | *) ac_try_echo=$ac_try;; |
| 11814 | esac |
| 11815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11816 | (eval "$ac_compile") 2>conftest.er1 |
| 11817 | ac_status=$? |
| 11818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11819 | rm -f conftest.er1 |
| 11820 | cat conftest.err >&5 |
| 11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11822 | (exit $ac_status); } && { |
| 11823 | test -z "$ac_c_werror_flag" || |
| 11824 | test ! -s conftest.err |
| 11825 | } && test -s conftest.$ac_objext; then |
| 11826 | ac_hi=-1 ac_mid=-1 |
| 11827 | while :; do |
| 11828 | cat >conftest.$ac_ext <<_ACEOF |
| 11829 | /* confdefs.h. */ |
| 11830 | _ACEOF |
| 11831 | cat confdefs.h >>conftest.$ac_ext |
| 11832 | cat >>conftest.$ac_ext <<_ACEOF |
| 11833 | /* end confdefs.h. */ |
| 11834 | $ac_includes_default |
| 11835 | typedef long double ac__type_sizeof_; |
| 11836 | int |
| 11837 | main () |
| 11838 | { |
| 11839 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 11840 | test_array [0] = 0 |
| 11841 | |
| 11842 | ; |
| 11843 | return 0; |
| 11844 | } |
| 11845 | _ACEOF |
| 11846 | rm -f conftest.$ac_objext |
| 11847 | if { (ac_try="$ac_compile" |
| 11848 | case "(($ac_try" in |
| 11849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11850 | *) ac_try_echo=$ac_try;; |
| 11851 | esac |
| 11852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11853 | (eval "$ac_compile") 2>conftest.er1 |
| 11854 | ac_status=$? |
| 11855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11856 | rm -f conftest.er1 |
| 11857 | cat conftest.err >&5 |
| 11858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11859 | (exit $ac_status); } && { |
| 11860 | test -z "$ac_c_werror_flag" || |
| 11861 | test ! -s conftest.err |
| 11862 | } && test -s conftest.$ac_objext; then |
| 11863 | ac_lo=$ac_mid; break |
| 11864 | else |
| 11865 | echo "$as_me: failed program was:" >&5 |
| 11866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11867 | |
| 11868 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11869 | if test $ac_mid -le $ac_hi; then |
| 11870 | ac_lo= ac_hi= |
| 11871 | break |
| 11872 | fi |
| 11873 | ac_mid=`expr 2 '*' $ac_mid` |
| 11874 | fi |
| 11875 | |
| 11876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11877 | done |
| 11878 | else |
| 11879 | echo "$as_me: failed program was:" >&5 |
| 11880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11881 | |
| 11882 | ac_lo= ac_hi= |
| 11883 | fi |
| 11884 | |
| 11885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11886 | fi |
| 11887 | |
| 11888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11889 | # Binary search between lo and hi bounds. |
| 11890 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11891 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11892 | cat >conftest.$ac_ext <<_ACEOF |
| 11893 | /* confdefs.h. */ |
| 11894 | _ACEOF |
| 11895 | cat confdefs.h >>conftest.$ac_ext |
| 11896 | cat >>conftest.$ac_ext <<_ACEOF |
| 11897 | /* end confdefs.h. */ |
| 11898 | $ac_includes_default |
| 11899 | typedef long double ac__type_sizeof_; |
| 11900 | int |
| 11901 | main () |
| 11902 | { |
| 11903 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 11904 | test_array [0] = 0 |
| 11905 | |
| 11906 | ; |
| 11907 | return 0; |
| 11908 | } |
| 11909 | _ACEOF |
| 11910 | rm -f conftest.$ac_objext |
| 11911 | if { (ac_try="$ac_compile" |
| 11912 | case "(($ac_try" in |
| 11913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11914 | *) ac_try_echo=$ac_try;; |
| 11915 | esac |
| 11916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11917 | (eval "$ac_compile") 2>conftest.er1 |
| 11918 | ac_status=$? |
| 11919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11920 | rm -f conftest.er1 |
| 11921 | cat conftest.err >&5 |
| 11922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11923 | (exit $ac_status); } && { |
| 11924 | test -z "$ac_c_werror_flag" || |
| 11925 | test ! -s conftest.err |
| 11926 | } && test -s conftest.$ac_objext; then |
| 11927 | ac_hi=$ac_mid |
| 11928 | else |
| 11929 | echo "$as_me: failed program was:" >&5 |
| 11930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11931 | |
| 11932 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11933 | fi |
| 11934 | |
| 11935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11936 | done |
| 11937 | case $ac_lo in |
| 11938 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 11939 | '') if test "$ac_cv_type_long_double" = yes; then |
| 11940 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
| 11941 | See \`config.log' for more details." >&5 |
| 11942 | echo "$as_me: error: cannot compute sizeof (long double) |
| 11943 | See \`config.log' for more details." >&2;} |
| 11944 | { (exit 77); exit 77; }; } |
| 11945 | else |
| 11946 | ac_cv_sizeof_long_double=0 |
| 11947 | fi ;; |
| 11948 | esac |
| 11949 | else |
| 11950 | cat >conftest.$ac_ext <<_ACEOF |
| 11951 | /* confdefs.h. */ |
| 11952 | _ACEOF |
| 11953 | cat confdefs.h >>conftest.$ac_ext |
| 11954 | cat >>conftest.$ac_ext <<_ACEOF |
| 11955 | /* end confdefs.h. */ |
| 11956 | $ac_includes_default |
| 11957 | typedef long double ac__type_sizeof_; |
| 11958 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11959 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11960 | #include <stdio.h> |
| 11961 | #include <stdlib.h> |
| 11962 | int |
| 11963 | main () |
| 11964 | { |
| 11965 | |
| 11966 | FILE *f = fopen ("conftest.val", "w"); |
| 11967 | if (! f) |
| 11968 | return 1; |
| 11969 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 11970 | { |
| 11971 | long int i = longval (); |
| 11972 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11973 | return 1; |
| 11974 | fprintf (f, "%ld\n", i); |
| 11975 | } |
| 11976 | else |
| 11977 | { |
| 11978 | unsigned long int i = ulongval (); |
| 11979 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11980 | return 1; |
| 11981 | fprintf (f, "%lu\n", i); |
| 11982 | } |
| 11983 | return ferror (f) || fclose (f) != 0; |
| 11984 | |
| 11985 | ; |
| 11986 | return 0; |
| 11987 | } |
| 11988 | _ACEOF |
| 11989 | rm -f conftest$ac_exeext |
| 11990 | if { (ac_try="$ac_link" |
| 11991 | case "(($ac_try" in |
| 11992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11993 | *) ac_try_echo=$ac_try;; |
| 11994 | esac |
| 11995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11996 | (eval "$ac_link") 2>&5 |
| 11997 | ac_status=$? |
| 11998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11999 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12000 | { (case "(($ac_try" in |
| 12001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12002 | *) ac_try_echo=$ac_try;; |
| 12003 | esac |
| 12004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12005 | (eval "$ac_try") 2>&5 |
| 12006 | ac_status=$? |
| 12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12008 | (exit $ac_status); }; }; then |
| 12009 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12010 | else |
| 12011 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12012 | echo "$as_me: failed program was:" >&5 |
| 12013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12014 | |
| 12015 | ( exit $ac_status ) |
| 12016 | if test "$ac_cv_type_long_double" = yes; then |
| 12017 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
| 12018 | See \`config.log' for more details." >&5 |
| 12019 | echo "$as_me: error: cannot compute sizeof (long double) |
| 12020 | See \`config.log' for more details." >&2;} |
| 12021 | { (exit 77); exit 77; }; } |
| 12022 | else |
| 12023 | ac_cv_sizeof_long_double=0 |
| 12024 | fi |
| 12025 | fi |
| 12026 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12027 | fi |
| 12028 | rm -f conftest.val |
| 12029 | fi |
| 12030 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12031 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
| 12032 | |
| 12033 | |
| 12034 | |
| 12035 | cat >>confdefs.h <<_ACEOF |
| 12036 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12037 | _ACEOF |
| 12038 | |
| 12039 | |
| 12040 | fi |
| 12041 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12042 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12043 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12044 | have_c99_bool=no |
| 12045 | cat >conftest.$ac_ext <<_ACEOF |
| 12046 | /* confdefs.h. */ |
| 12047 | _ACEOF |
| 12048 | cat confdefs.h >>conftest.$ac_ext |
| 12049 | cat >>conftest.$ac_ext <<_ACEOF |
| 12050 | /* end confdefs.h. */ |
| 12051 | |
| 12052 | int |
| 12053 | main () |
| 12054 | { |
| 12055 | _Bool x; x = (_Bool)0; |
| 12056 | ; |
| 12057 | return 0; |
| 12058 | } |
| 12059 | _ACEOF |
| 12060 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12061 | if { (ac_try="$ac_compile" |
| 12062 | case "(($ac_try" in |
| 12063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12064 | *) ac_try_echo=$ac_try;; |
| 12065 | esac |
| 12066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12067 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12068 | ac_status=$? |
| 12069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12070 | rm -f conftest.er1 |
| 12071 | cat conftest.err >&5 |
| 12072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12073 | (exit $ac_status); } && { |
| 12074 | test -z "$ac_c_werror_flag" || |
| 12075 | test ! -s conftest.err |
| 12076 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12077 | |
| 12078 | |
| 12079 | cat >>confdefs.h <<\_ACEOF |
| 12080 | #define HAVE_C99_BOOL 1 |
| 12081 | _ACEOF |
| 12082 | |
| 12083 | have_c99_bool=yes |
| 12084 | |
| 12085 | else |
| 12086 | echo "$as_me: failed program was:" >&5 |
| 12087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12088 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12089 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12090 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12091 | |
| 12092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12093 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12094 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12095 | if test "$have_c99_bool" = yes ; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12096 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12097 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12098 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12100 | else |
| 12101 | cat >conftest.$ac_ext <<_ACEOF |
| 12102 | /* confdefs.h. */ |
| 12103 | _ACEOF |
| 12104 | cat confdefs.h >>conftest.$ac_ext |
| 12105 | cat >>conftest.$ac_ext <<_ACEOF |
| 12106 | /* end confdefs.h. */ |
| 12107 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12108 | typedef _Bool ac__type_new_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12109 | int |
| 12110 | main () |
| 12111 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12112 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12113 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12114 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12115 | return 0; |
| 12116 | ; |
| 12117 | return 0; |
| 12118 | } |
| 12119 | _ACEOF |
| 12120 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12121 | if { (ac_try="$ac_compile" |
| 12122 | case "(($ac_try" in |
| 12123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12124 | *) ac_try_echo=$ac_try;; |
| 12125 | esac |
| 12126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12127 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12128 | ac_status=$? |
| 12129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12130 | rm -f conftest.er1 |
| 12131 | cat conftest.err >&5 |
| 12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12133 | (exit $ac_status); } && { |
| 12134 | test -z "$ac_c_werror_flag" || |
| 12135 | test ! -s conftest.err |
| 12136 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12137 | ac_cv_type__Bool=yes |
| 12138 | else |
| 12139 | echo "$as_me: failed program was:" >&5 |
| 12140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12141 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12142 | ac_cv_type__Bool=no |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12143 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 12144 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12146 | fi |
| 12147 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12148 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12149 | |
| 12150 | # The cast to long int works around a bug in the HP C Compiler |
| 12151 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12152 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12153 | # This bug is HP SR number 8606223364. |
| 12154 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12155 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12156 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
| 12157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12158 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12159 | if test "$cross_compiling" = yes; then |
| 12160 | # Depending upon the size, compute the lo and hi bounds. |
| 12161 | cat >conftest.$ac_ext <<_ACEOF |
| 12162 | /* confdefs.h. */ |
| 12163 | _ACEOF |
| 12164 | cat confdefs.h >>conftest.$ac_ext |
| 12165 | cat >>conftest.$ac_ext <<_ACEOF |
| 12166 | /* end confdefs.h. */ |
| 12167 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12168 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12169 | int |
| 12170 | main () |
| 12171 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12172 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12173 | test_array [0] = 0 |
| 12174 | |
| 12175 | ; |
| 12176 | return 0; |
| 12177 | } |
| 12178 | _ACEOF |
| 12179 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12180 | if { (ac_try="$ac_compile" |
| 12181 | case "(($ac_try" in |
| 12182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12183 | *) ac_try_echo=$ac_try;; |
| 12184 | esac |
| 12185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12186 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12187 | ac_status=$? |
| 12188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12189 | rm -f conftest.er1 |
| 12190 | cat conftest.err >&5 |
| 12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12192 | (exit $ac_status); } && { |
| 12193 | test -z "$ac_c_werror_flag" || |
| 12194 | test ! -s conftest.err |
| 12195 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12196 | ac_lo=0 ac_mid=0 |
| 12197 | while :; do |
| 12198 | cat >conftest.$ac_ext <<_ACEOF |
| 12199 | /* confdefs.h. */ |
| 12200 | _ACEOF |
| 12201 | cat confdefs.h >>conftest.$ac_ext |
| 12202 | cat >>conftest.$ac_ext <<_ACEOF |
| 12203 | /* end confdefs.h. */ |
| 12204 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12205 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12206 | int |
| 12207 | main () |
| 12208 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12209 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12210 | test_array [0] = 0 |
| 12211 | |
| 12212 | ; |
| 12213 | return 0; |
| 12214 | } |
| 12215 | _ACEOF |
| 12216 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12217 | if { (ac_try="$ac_compile" |
| 12218 | case "(($ac_try" in |
| 12219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12220 | *) ac_try_echo=$ac_try;; |
| 12221 | esac |
| 12222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12223 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12224 | ac_status=$? |
| 12225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12226 | rm -f conftest.er1 |
| 12227 | cat conftest.err >&5 |
| 12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12229 | (exit $ac_status); } && { |
| 12230 | test -z "$ac_c_werror_flag" || |
| 12231 | test ! -s conftest.err |
| 12232 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12233 | ac_hi=$ac_mid; break |
| 12234 | else |
| 12235 | echo "$as_me: failed program was:" >&5 |
| 12236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12237 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12238 | ac_lo=`expr $ac_mid + 1` |
| 12239 | if test $ac_lo -le $ac_mid; then |
| 12240 | ac_lo= ac_hi= |
| 12241 | break |
| 12242 | fi |
| 12243 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12244 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12245 | |
| 12246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12247 | done |
| 12248 | else |
| 12249 | echo "$as_me: failed program was:" >&5 |
| 12250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12251 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12252 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12253 | /* confdefs.h. */ |
| 12254 | _ACEOF |
| 12255 | cat confdefs.h >>conftest.$ac_ext |
| 12256 | cat >>conftest.$ac_ext <<_ACEOF |
| 12257 | /* end confdefs.h. */ |
| 12258 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12259 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12260 | int |
| 12261 | main () |
| 12262 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12263 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12264 | test_array [0] = 0 |
| 12265 | |
| 12266 | ; |
| 12267 | return 0; |
| 12268 | } |
| 12269 | _ACEOF |
| 12270 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12271 | if { (ac_try="$ac_compile" |
| 12272 | case "(($ac_try" in |
| 12273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12274 | *) ac_try_echo=$ac_try;; |
| 12275 | esac |
| 12276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12277 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12278 | ac_status=$? |
| 12279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12280 | rm -f conftest.er1 |
| 12281 | cat conftest.err >&5 |
| 12282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12283 | (exit $ac_status); } && { |
| 12284 | test -z "$ac_c_werror_flag" || |
| 12285 | test ! -s conftest.err |
| 12286 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12287 | ac_hi=-1 ac_mid=-1 |
| 12288 | while :; do |
| 12289 | cat >conftest.$ac_ext <<_ACEOF |
| 12290 | /* confdefs.h. */ |
| 12291 | _ACEOF |
| 12292 | cat confdefs.h >>conftest.$ac_ext |
| 12293 | cat >>conftest.$ac_ext <<_ACEOF |
| 12294 | /* end confdefs.h. */ |
| 12295 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12296 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12297 | int |
| 12298 | main () |
| 12299 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12300 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12301 | test_array [0] = 0 |
| 12302 | |
| 12303 | ; |
| 12304 | return 0; |
| 12305 | } |
| 12306 | _ACEOF |
| 12307 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12308 | if { (ac_try="$ac_compile" |
| 12309 | case "(($ac_try" in |
| 12310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12311 | *) ac_try_echo=$ac_try;; |
| 12312 | esac |
| 12313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12314 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12315 | ac_status=$? |
| 12316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12317 | rm -f conftest.er1 |
| 12318 | cat conftest.err >&5 |
| 12319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12320 | (exit $ac_status); } && { |
| 12321 | test -z "$ac_c_werror_flag" || |
| 12322 | test ! -s conftest.err |
| 12323 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12324 | ac_lo=$ac_mid; break |
| 12325 | else |
| 12326 | echo "$as_me: failed program was:" >&5 |
| 12327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12328 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12329 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12330 | if test $ac_mid -le $ac_hi; then |
| 12331 | ac_lo= ac_hi= |
| 12332 | break |
| 12333 | fi |
| 12334 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12335 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12336 | |
| 12337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12338 | done |
| 12339 | else |
| 12340 | echo "$as_me: failed program was:" >&5 |
| 12341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12342 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12343 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12344 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12345 | |
| 12346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12347 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12348 | |
| 12349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12350 | # Binary search between lo and hi bounds. |
| 12351 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12352 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12353 | cat >conftest.$ac_ext <<_ACEOF |
| 12354 | /* confdefs.h. */ |
| 12355 | _ACEOF |
| 12356 | cat confdefs.h >>conftest.$ac_ext |
| 12357 | cat >>conftest.$ac_ext <<_ACEOF |
| 12358 | /* end confdefs.h. */ |
| 12359 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12360 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12361 | int |
| 12362 | main () |
| 12363 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12364 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12365 | test_array [0] = 0 |
| 12366 | |
| 12367 | ; |
| 12368 | return 0; |
| 12369 | } |
| 12370 | _ACEOF |
| 12371 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12372 | if { (ac_try="$ac_compile" |
| 12373 | case "(($ac_try" in |
| 12374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12375 | *) ac_try_echo=$ac_try;; |
| 12376 | esac |
| 12377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12378 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12379 | ac_status=$? |
| 12380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12381 | rm -f conftest.er1 |
| 12382 | cat conftest.err >&5 |
| 12383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12384 | (exit $ac_status); } && { |
| 12385 | test -z "$ac_c_werror_flag" || |
| 12386 | test ! -s conftest.err |
| 12387 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12388 | ac_hi=$ac_mid |
| 12389 | else |
| 12390 | echo "$as_me: failed program was:" >&5 |
| 12391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12392 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12393 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12394 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12395 | |
| 12396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12397 | done |
| 12398 | case $ac_lo in |
| 12399 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12400 | '') if test "$ac_cv_type__Bool" = yes; then |
| 12401 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12402 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12403 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12404 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12405 | { (exit 77); exit 77; }; } |
| 12406 | else |
| 12407 | ac_cv_sizeof__Bool=0 |
| 12408 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12409 | esac |
| 12410 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12411 | cat >conftest.$ac_ext <<_ACEOF |
| 12412 | /* confdefs.h. */ |
| 12413 | _ACEOF |
| 12414 | cat confdefs.h >>conftest.$ac_ext |
| 12415 | cat >>conftest.$ac_ext <<_ACEOF |
| 12416 | /* end confdefs.h. */ |
| 12417 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12418 | typedef _Bool ac__type_sizeof_; |
| 12419 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12420 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12421 | #include <stdio.h> |
| 12422 | #include <stdlib.h> |
| 12423 | int |
| 12424 | main () |
| 12425 | { |
| 12426 | |
| 12427 | FILE *f = fopen ("conftest.val", "w"); |
| 12428 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12429 | return 1; |
| 12430 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12431 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12432 | long int i = longval (); |
| 12433 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12434 | return 1; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12435 | fprintf (f, "%ld\n", i); |
| 12436 | } |
| 12437 | else |
| 12438 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12439 | unsigned long int i = ulongval (); |
| 12440 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12441 | return 1; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12442 | fprintf (f, "%lu\n", i); |
| 12443 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12444 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12445 | |
| 12446 | ; |
| 12447 | return 0; |
| 12448 | } |
| 12449 | _ACEOF |
| 12450 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12451 | if { (ac_try="$ac_link" |
| 12452 | case "(($ac_try" in |
| 12453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12454 | *) ac_try_echo=$ac_try;; |
| 12455 | esac |
| 12456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12457 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12458 | ac_status=$? |
| 12459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12460 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12461 | { (case "(($ac_try" in |
| 12462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12463 | *) ac_try_echo=$ac_try;; |
| 12464 | esac |
| 12465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12466 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12467 | ac_status=$? |
| 12468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12469 | (exit $ac_status); }; }; then |
| 12470 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12471 | else |
| 12472 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12473 | echo "$as_me: failed program was:" >&5 |
| 12474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12475 | |
| 12476 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12477 | if test "$ac_cv_type__Bool" = yes; then |
| 12478 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12479 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12480 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12481 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12482 | { (exit 77); exit 77; }; } |
| 12483 | else |
| 12484 | ac_cv_sizeof__Bool=0 |
| 12485 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12486 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12487 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12488 | fi |
| 12489 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12490 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12491 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12492 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
| 12493 | |
| 12494 | |
| 12495 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12496 | cat >>confdefs.h <<_ACEOF |
| 12497 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12498 | _ACEOF |
| 12499 | |
| 12500 | |
| 12501 | fi |
| 12502 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12503 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12504 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12505 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12507 | else |
| 12508 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12509 | /* confdefs.h. */ |
| 12510 | _ACEOF |
| 12511 | cat confdefs.h >>conftest.$ac_ext |
| 12512 | cat >>conftest.$ac_ext <<_ACEOF |
| 12513 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12514 | #ifdef HAVE_STDINT_H |
| 12515 | #include <stdint.h> |
| 12516 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12517 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12518 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12519 | int |
| 12520 | main () |
| 12521 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12522 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12523 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12524 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12525 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12526 | ; |
| 12527 | return 0; |
| 12528 | } |
| 12529 | _ACEOF |
| 12530 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12531 | if { (ac_try="$ac_compile" |
| 12532 | case "(($ac_try" in |
| 12533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12534 | *) ac_try_echo=$ac_try;; |
| 12535 | esac |
| 12536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12537 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12538 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12540 | rm -f conftest.er1 |
| 12541 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12543 | (exit $ac_status); } && { |
| 12544 | test -z "$ac_c_werror_flag" || |
| 12545 | test ! -s conftest.err |
| 12546 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12547 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12549 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12551 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12552 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12553 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12554 | |
| 12555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12557 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12558 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12559 | if test $ac_cv_type_uintptr_t = yes; then |
| 12560 | |
| 12561 | cat >>confdefs.h <<_ACEOF |
| 12562 | #define HAVE_UINTPTR_T 1 |
| 12563 | _ACEOF |
| 12564 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12565 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12566 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12567 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12569 | else |
| 12570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12571 | /* confdefs.h. */ |
| 12572 | _ACEOF |
| 12573 | cat confdefs.h >>conftest.$ac_ext |
| 12574 | cat >>conftest.$ac_ext <<_ACEOF |
| 12575 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12576 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12577 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | int |
| 12579 | main () |
| 12580 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12581 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12582 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12583 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12584 | return 0; |
| 12585 | ; |
| 12586 | return 0; |
| 12587 | } |
| 12588 | _ACEOF |
| 12589 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12590 | if { (ac_try="$ac_compile" |
| 12591 | case "(($ac_try" in |
| 12592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12593 | *) ac_try_echo=$ac_try;; |
| 12594 | esac |
| 12595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12596 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12597 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12599 | rm -f conftest.er1 |
| 12600 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12602 | (exit $ac_status); } && { |
| 12603 | test -z "$ac_c_werror_flag" || |
| 12604 | test ! -s conftest.err |
| 12605 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12606 | ac_cv_type_uintptr_t=yes |
| 12607 | else |
| 12608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12610 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12611 | ac_cv_type_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12612 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 12613 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12615 | fi |
| 12616 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12617 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12618 | |
| 12619 | # The cast to long int works around a bug in the HP C Compiler |
| 12620 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12621 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12622 | # This bug is HP SR number 8606223364. |
| 12623 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12624 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12625 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 12626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12628 | if test "$cross_compiling" = yes; then |
| 12629 | # Depending upon the size, compute the lo and hi bounds. |
| 12630 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12631 | /* confdefs.h. */ |
| 12632 | _ACEOF |
| 12633 | cat confdefs.h >>conftest.$ac_ext |
| 12634 | cat >>conftest.$ac_ext <<_ACEOF |
| 12635 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12636 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12637 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12638 | int |
| 12639 | main () |
| 12640 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12641 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12642 | test_array [0] = 0 |
| 12643 | |
| 12644 | ; |
| 12645 | return 0; |
| 12646 | } |
| 12647 | _ACEOF |
| 12648 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12649 | if { (ac_try="$ac_compile" |
| 12650 | case "(($ac_try" in |
| 12651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12652 | *) ac_try_echo=$ac_try;; |
| 12653 | esac |
| 12654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12655 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12656 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12658 | rm -f conftest.er1 |
| 12659 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12661 | (exit $ac_status); } && { |
| 12662 | test -z "$ac_c_werror_flag" || |
| 12663 | test ! -s conftest.err |
| 12664 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12665 | ac_lo=0 ac_mid=0 |
| 12666 | while :; do |
| 12667 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12668 | /* confdefs.h. */ |
| 12669 | _ACEOF |
| 12670 | cat confdefs.h >>conftest.$ac_ext |
| 12671 | cat >>conftest.$ac_ext <<_ACEOF |
| 12672 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12673 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12674 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12675 | int |
| 12676 | main () |
| 12677 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12678 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12679 | test_array [0] = 0 |
| 12680 | |
| 12681 | ; |
| 12682 | return 0; |
| 12683 | } |
| 12684 | _ACEOF |
| 12685 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12686 | if { (ac_try="$ac_compile" |
| 12687 | case "(($ac_try" in |
| 12688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12689 | *) ac_try_echo=$ac_try;; |
| 12690 | esac |
| 12691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12692 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12693 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12695 | rm -f conftest.er1 |
| 12696 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12698 | (exit $ac_status); } && { |
| 12699 | test -z "$ac_c_werror_flag" || |
| 12700 | test ! -s conftest.err |
| 12701 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12702 | ac_hi=$ac_mid; break |
| 12703 | else |
| 12704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12706 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12707 | ac_lo=`expr $ac_mid + 1` |
| 12708 | if test $ac_lo -le $ac_mid; then |
| 12709 | ac_lo= ac_hi= |
| 12710 | break |
| 12711 | fi |
| 12712 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12713 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12714 | |
| 12715 | 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] | 12716 | done |
| 12717 | else |
| 12718 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12720 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12721 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12722 | /* confdefs.h. */ |
| 12723 | _ACEOF |
| 12724 | cat confdefs.h >>conftest.$ac_ext |
| 12725 | cat >>conftest.$ac_ext <<_ACEOF |
| 12726 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12728 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12729 | int |
| 12730 | main () |
| 12731 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12732 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12733 | test_array [0] = 0 |
| 12734 | |
| 12735 | ; |
| 12736 | return 0; |
| 12737 | } |
| 12738 | _ACEOF |
| 12739 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12740 | if { (ac_try="$ac_compile" |
| 12741 | case "(($ac_try" in |
| 12742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12743 | *) ac_try_echo=$ac_try;; |
| 12744 | esac |
| 12745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12746 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12747 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12749 | rm -f conftest.er1 |
| 12750 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12752 | (exit $ac_status); } && { |
| 12753 | test -z "$ac_c_werror_flag" || |
| 12754 | test ! -s conftest.err |
| 12755 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12756 | ac_hi=-1 ac_mid=-1 |
| 12757 | while :; do |
| 12758 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12759 | /* confdefs.h. */ |
| 12760 | _ACEOF |
| 12761 | cat confdefs.h >>conftest.$ac_ext |
| 12762 | cat >>conftest.$ac_ext <<_ACEOF |
| 12763 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12764 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12765 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12766 | int |
| 12767 | main () |
| 12768 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12769 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12770 | test_array [0] = 0 |
| 12771 | |
| 12772 | ; |
| 12773 | return 0; |
| 12774 | } |
| 12775 | _ACEOF |
| 12776 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12777 | if { (ac_try="$ac_compile" |
| 12778 | case "(($ac_try" in |
| 12779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12780 | *) ac_try_echo=$ac_try;; |
| 12781 | esac |
| 12782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12783 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12784 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12786 | rm -f conftest.er1 |
| 12787 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12789 | (exit $ac_status); } && { |
| 12790 | test -z "$ac_c_werror_flag" || |
| 12791 | test ! -s conftest.err |
| 12792 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12793 | ac_lo=$ac_mid; break |
| 12794 | else |
| 12795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12797 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12798 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12799 | if test $ac_mid -le $ac_hi; then |
| 12800 | ac_lo= ac_hi= |
| 12801 | break |
| 12802 | fi |
| 12803 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12805 | |
| 12806 | 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] | 12807 | done |
| 12808 | else |
| 12809 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12812 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12813 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12814 | |
| 12815 | 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] | 12816 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12817 | |
| 12818 | 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] | 12819 | # Binary search between lo and hi bounds. |
| 12820 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12821 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12822 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12823 | /* confdefs.h. */ |
| 12824 | _ACEOF |
| 12825 | cat confdefs.h >>conftest.$ac_ext |
| 12826 | cat >>conftest.$ac_ext <<_ACEOF |
| 12827 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12828 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12829 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12830 | int |
| 12831 | main () |
| 12832 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12833 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12834 | test_array [0] = 0 |
| 12835 | |
| 12836 | ; |
| 12837 | return 0; |
| 12838 | } |
| 12839 | _ACEOF |
| 12840 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12841 | if { (ac_try="$ac_compile" |
| 12842 | case "(($ac_try" in |
| 12843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12844 | *) ac_try_echo=$ac_try;; |
| 12845 | esac |
| 12846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12847 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12848 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12850 | rm -f conftest.er1 |
| 12851 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12853 | (exit $ac_status); } && { |
| 12854 | test -z "$ac_c_werror_flag" || |
| 12855 | test ! -s conftest.err |
| 12856 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | ac_hi=$ac_mid |
| 12858 | else |
| 12859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12862 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12863 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12864 | |
| 12865 | 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] | 12866 | done |
| 12867 | case $ac_lo in |
| 12868 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12869 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
| 12870 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12871 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12872 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12873 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12874 | { (exit 77); exit 77; }; } |
| 12875 | else |
| 12876 | ac_cv_sizeof_uintptr_t=0 |
| 12877 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12881 | /* confdefs.h. */ |
| 12882 | _ACEOF |
| 12883 | cat confdefs.h >>conftest.$ac_ext |
| 12884 | cat >>conftest.$ac_ext <<_ACEOF |
| 12885 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12886 | $ac_includes_default |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12887 | typedef uintptr_t ac__type_sizeof_; |
| 12888 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12889 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12890 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | int |
| 12893 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12894 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12895 | |
| 12896 | FILE *f = fopen ("conftest.val", "w"); |
| 12897 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12898 | return 1; |
| 12899 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12900 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12901 | long int i = longval (); |
| 12902 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12903 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12904 | fprintf (f, "%ld\n", i); |
| 12905 | } |
| 12906 | else |
| 12907 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12908 | unsigned long int i = ulongval (); |
| 12909 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12910 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12911 | fprintf (f, "%lu\n", i); |
| 12912 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12913 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12914 | |
| 12915 | ; |
| 12916 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12917 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 | _ACEOF |
| 12919 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12920 | if { (ac_try="$ac_link" |
| 12921 | case "(($ac_try" in |
| 12922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12923 | *) ac_try_echo=$ac_try;; |
| 12924 | esac |
| 12925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12926 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12927 | ac_status=$? |
| 12928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12930 | { (case "(($ac_try" in |
| 12931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12932 | *) ac_try_echo=$ac_try;; |
| 12933 | esac |
| 12934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12935 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 | ac_status=$? |
| 12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12938 | (exit $ac_status); }; }; then |
| 12939 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12941 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12942 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12946 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 12947 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12948 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12949 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12950 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12951 | { (exit 77); exit 77; }; } |
| 12952 | else |
| 12953 | ac_cv_sizeof_uintptr_t=0 |
| 12954 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12956 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | fi |
| 12958 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12959 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12960 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 12961 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
| 12962 | |
| 12963 | |
| 12964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12966 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12968 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12969 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12970 | fi |
| 12971 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12972 | |
| 12973 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12974 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12975 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 12976 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12977 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 12978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12979 | else |
| 12980 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12981 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12984 | /* confdefs.h. */ |
| 12985 | _ACEOF |
| 12986 | cat confdefs.h >>conftest.$ac_ext |
| 12987 | cat >>conftest.$ac_ext <<_ACEOF |
| 12988 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12989 | #include <stdio.h> |
| 12990 | #include <sys/types.h> |
| 12991 | main() |
| 12992 | { |
| 12993 | FILE *f=fopen("conftestval", "w"); |
| 12994 | if (!f) exit(1); |
| 12995 | fprintf(f, "%d\n", sizeof(off_t)); |
| 12996 | exit(0); |
| 12997 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12998 | _ACEOF |
| 12999 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13000 | if { (ac_try="$ac_link" |
| 13001 | case "(($ac_try" in |
| 13002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13003 | *) ac_try_echo=$ac_try;; |
| 13004 | esac |
| 13005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13006 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | ac_status=$? |
| 13008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13009 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13010 | { (case "(($ac_try" in |
| 13011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13012 | *) ac_try_echo=$ac_try;; |
| 13013 | esac |
| 13014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13015 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | ac_status=$? |
| 13017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13018 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13019 | ac_cv_sizeof_off_t=`cat conftestval` |
| 13020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | ( exit $ac_status ) |
| 13026 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13027 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13028 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13029 | fi |
| 13030 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13031 | |
| 13032 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13033 | fi |
| 13034 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13035 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13036 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | |
| 13038 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13039 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13041 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13042 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13043 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13044 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 13045 | if test "$have_long_long" = yes -a \ |
| 13046 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 13047 | "$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] | 13048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13049 | cat >>confdefs.h <<\_ACEOF |
| 13050 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13051 | _ACEOF |
| 13052 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13053 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13054 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13055 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13056 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13057 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13058 | fi |
| 13059 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13060 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13061 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13062 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13063 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13065 | else |
| 13066 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13067 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13070 | /* confdefs.h. */ |
| 13071 | _ACEOF |
| 13072 | cat confdefs.h >>conftest.$ac_ext |
| 13073 | cat >>conftest.$ac_ext <<_ACEOF |
| 13074 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13075 | #include <stdio.h> |
| 13076 | #include <time.h> |
| 13077 | main() |
| 13078 | { |
| 13079 | FILE *f=fopen("conftestval", "w"); |
| 13080 | if (!f) exit(1); |
| 13081 | fprintf(f, "%d\n", sizeof(time_t)); |
| 13082 | exit(0); |
| 13083 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13084 | _ACEOF |
| 13085 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13086 | if { (ac_try="$ac_link" |
| 13087 | case "(($ac_try" in |
| 13088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13089 | *) ac_try_echo=$ac_try;; |
| 13090 | esac |
| 13091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13092 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13093 | ac_status=$? |
| 13094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13095 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13096 | { (case "(($ac_try" in |
| 13097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13098 | *) ac_try_echo=$ac_try;; |
| 13099 | esac |
| 13100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13101 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | ac_status=$? |
| 13103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13104 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13105 | ac_cv_sizeof_time_t=`cat conftestval` |
| 13106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13108 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | ( exit $ac_status ) |
| 13112 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13113 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13114 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13115 | fi |
| 13116 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13117 | |
| 13118 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13119 | fi |
| 13120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13121 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13122 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13123 | |
| 13124 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13125 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13127 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13128 | |
| 13129 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13130 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13131 | ac_save_cc="$CC" |
| 13132 | if test "$ac_cv_kpthread" = "yes" |
| 13133 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13134 | elif test "$ac_cv_kthread" = "yes" |
| 13135 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13136 | elif test "$ac_cv_pthread" = "yes" |
| 13137 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13138 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13139 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13140 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13141 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13142 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13143 | /* confdefs.h. */ |
| 13144 | _ACEOF |
| 13145 | cat confdefs.h >>conftest.$ac_ext |
| 13146 | cat >>conftest.$ac_ext <<_ACEOF |
| 13147 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13148 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13149 | int |
| 13150 | main () |
| 13151 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 13152 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13153 | ; |
| 13154 | return 0; |
| 13155 | } |
| 13156 | _ACEOF |
| 13157 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13158 | if { (ac_try="$ac_compile" |
| 13159 | case "(($ac_try" in |
| 13160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13161 | *) ac_try_echo=$ac_try;; |
| 13162 | esac |
| 13163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13164 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13165 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13167 | rm -f conftest.er1 |
| 13168 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13170 | (exit $ac_status); } && { |
| 13171 | test -z "$ac_c_werror_flag" || |
| 13172 | test ! -s conftest.err |
| 13173 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13174 | have_pthread_t=yes |
| 13175 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13178 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13179 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13180 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13181 | |
| 13182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13183 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 13184 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13185 | if test "$have_pthread_t" = yes ; then |
| 13186 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13187 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 13188 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 13190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13191 | else |
| 13192 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13193 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13195 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13196 | /* confdefs.h. */ |
| 13197 | _ACEOF |
| 13198 | cat confdefs.h >>conftest.$ac_ext |
| 13199 | cat >>conftest.$ac_ext <<_ACEOF |
| 13200 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13201 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13202 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13203 | main() |
| 13204 | { |
| 13205 | FILE *f=fopen("conftestval", "w"); |
| 13206 | if (!f) exit(1); |
| 13207 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 13208 | exit(0); |
| 13209 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13210 | _ACEOF |
| 13211 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13212 | if { (ac_try="$ac_link" |
| 13213 | case "(($ac_try" in |
| 13214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13215 | *) ac_try_echo=$ac_try;; |
| 13216 | esac |
| 13217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13218 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13219 | ac_status=$? |
| 13220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13222 | { (case "(($ac_try" in |
| 13223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13224 | *) ac_try_echo=$ac_try;; |
| 13225 | esac |
| 13226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13227 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13228 | ac_status=$? |
| 13229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13230 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13231 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 13232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13233 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13234 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 | ( exit $ac_status ) |
| 13238 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13239 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13240 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13241 | fi |
| 13242 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13243 | |
| 13244 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13245 | fi |
| 13246 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13247 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 13248 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13249 | |
| 13250 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13251 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13252 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13253 | |
| 13254 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13255 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13256 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13257 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 13258 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; } |
| 13259 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13260 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13261 | enableval=$enable_toolbox_glue; |
| 13262 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13263 | |
| 13264 | |
| 13265 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13266 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13267 | case $ac_sys_system/$ac_sys_release in |
| 13268 | Darwin/*) |
| 13269 | enable_toolbox_glue="yes";; |
| 13270 | *) |
| 13271 | enable_toolbox_glue="no";; |
| 13272 | esac |
| 13273 | fi |
| 13274 | case "$enable_toolbox_glue" in |
| 13275 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13276 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13277 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13278 | |
| 13279 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13280 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13281 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13282 | |
| 13283 | ;; |
| 13284 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13285 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 13286 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13287 | ;; |
| 13288 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13289 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 13290 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13291 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13292 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 13293 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13294 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 13295 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13296 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 13297 | ;; |
| 13298 | Darwin/*) |
| 13299 | OTHER_LIBTOOL_OPT="" |
| 13300 | ;; |
| 13301 | esac |
| 13302 | |
| 13303 | |
| 13304 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 13305 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 13306 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 13307 | if test "${enable_universalsdk}"; then |
| 13308 | : |
| 13309 | else |
| 13310 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 13311 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13312 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13313 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 13314 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 13315 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 13316 | if test ${gcc_version} '<' 4.0 |
| 13317 | then |
| 13318 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 13319 | else |
| 13320 | LIBTOOL_CRUFT="" |
| 13321 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 13322 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 13323 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13324 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13325 | esac |
| 13326 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13327 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 13328 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13329 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13330 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13331 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13332 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13333 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13335 | cat >>confdefs.h <<\_ACEOF |
| 13336 | #define WITH_NEXT_FRAMEWORK 1 |
| 13337 | _ACEOF |
| 13338 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13339 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13340 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13341 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13342 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13343 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13344 | fi |
| 13345 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13346 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 13347 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13348 | case $ac_sys_system/$ac_sys_release in |
| 13349 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13351 | cat >>confdefs.h <<\_ACEOF |
| 13352 | #define WITH_DYLD 1 |
| 13353 | _ACEOF |
| 13354 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13355 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 13356 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13357 | ;; |
| 13358 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13359 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13360 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13361 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13362 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13363 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13364 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13365 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13366 | |
| 13367 | |
| 13368 | |
| 13369 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13370 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13371 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13372 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 13373 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13374 | if test -z "$SO" |
| 13375 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13376 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 13377 | hp*|HP*) |
| 13378 | case `uname -m` in |
| 13379 | ia64) SO=.so;; |
| 13380 | *) SO=.sl;; |
| 13381 | esac |
| 13382 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13383 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 13384 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13385 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 13386 | else |
| 13387 | # this might also be a termcap variable, see #610332 |
| 13388 | echo |
| 13389 | echo '=====================================================================' |
| 13390 | echo '+ +' |
| 13391 | echo '+ WARNING: You have set SO in your environment. +' |
| 13392 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 13393 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 13394 | echo '+ +' |
| 13395 | echo '=====================================================================' |
| 13396 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13397 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13398 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 13399 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 13400 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 13401 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 13402 | cat >>confdefs.h <<_ACEOF |
| 13403 | #define SHLIB_EXT "$SO" |
| 13404 | _ACEOF |
| 13405 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13406 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 13407 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13408 | # (Shared libraries in this instance are shared modules to be loaded into |
| 13409 | # Python, as opposed to building Python itself as a shared library.) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13410 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 13411 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13412 | if test -z "$LDSHARED" |
| 13413 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13414 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13415 | AIX*) |
| 13416 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 13417 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13418 | ;; |
| 13419 | BeOS*) |
| 13420 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 13421 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13422 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13423 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 13424 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13426 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 13427 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 13428 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 13429 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 13430 | hp*|HP*) |
| 13431 | if test "$GCC" = "yes" |
| 13432 | then LDSHARED='$(CC) -shared' |
| 13433 | else LDSHARED='ld -b'; |
| 13434 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13435 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13436 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13437 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13438 | if test "$enable_framework" ; then |
| 13439 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13440 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13441 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13442 | else |
| 13443 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 13444 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 13445 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13446 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13447 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13448 | if test "$enable_framework" ; then |
| 13449 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13450 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13451 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13452 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 13453 | # No framework, use the Python app as bundle-loader |
| 13454 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 13455 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13456 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13457 | Darwin/*) |
| 13458 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 13459 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 13460 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 13461 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13462 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 13463 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 13464 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 13465 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13466 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 13467 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13468 | else |
| 13469 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 13470 | if test "$enable_framework" ; then |
| 13471 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13472 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 13473 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 13474 | else |
| 13475 | # No framework, use the Python app as bundle-loader |
| 13476 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 13477 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 13478 | fi |
| 13479 | fi |
| 13480 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 13481 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 13482 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 13483 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 13484 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13485 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 13486 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 13487 | else |
| 13488 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13489 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 13490 | OpenBSD*) |
| 13491 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13492 | then |
| 13493 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13494 | else |
| 13495 | case `uname -r` in |
| 13496 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 13497 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 13498 | ;; |
| 13499 | *) |
| 13500 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 13501 | ;; |
| 13502 | esac |
| 13503 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13504 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13505 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13506 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13507 | then LDSHARED='$(CC) -shared' |
| 13508 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13509 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 13510 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13511 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 13512 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13513 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13514 | *) LDSHARED="ld";; |
| 13515 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13516 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13517 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 13518 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13519 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13520 | # 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] | 13521 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13522 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 13523 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13524 | if test -z "$CCSHARED" |
| 13525 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13526 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 13527 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 13528 | then CCSHARED="-fPIC"; |
| 13529 | elif test `uname -p` = sparc; |
| 13530 | then CCSHARED="-xcode=pic32"; |
| 13531 | else CCSHARED="-Kpic"; |
| 13532 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13533 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 13534 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13535 | else CCSHARED="+z"; |
| 13536 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13537 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13538 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13539 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13540 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13541 | if test "$GCC" = "yes" |
| 13542 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13543 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13544 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13545 | SCO_SV*) |
| 13546 | if test "$GCC" = "yes" |
| 13547 | then CCSHARED="-fPIC" |
| 13548 | else CCSHARED="-Kpic -belf" |
| 13549 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13550 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13551 | IRIX*/6*) case $CC in |
| 13552 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 13553 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13554 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13555 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13556 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13557 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13558 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 13559 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13560 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13561 | # the python executable -- this is only needed for a few systems |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13562 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 13563 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13564 | if test -z "$LINKFORSHARED" |
| 13565 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13566 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13567 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 13568 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13569 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 13570 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13571 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13572 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13573 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13574 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13575 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 13576 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13577 | # not used by the core itself but which needs to be in the core so |
| 13578 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 13579 | # -prebind is no longer used, because it actually seems to give a |
| 13580 | # slowdown in stead of a speedup, maybe due to the large number of |
| 13581 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13582 | |
| 13583 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13584 | if test "$enable_framework" |
| 13585 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13586 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13587 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13588 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13589 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13590 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 13591 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13592 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 13593 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13594 | then |
| 13595 | LINKFORSHARED="-Wl,--export-dynamic" |
| 13596 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13597 | SunOS/5*) case $CC in |
| 13598 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 13599 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 13600 | then |
| 13601 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13602 | fi;; |
| 13603 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 13604 | CYGWIN*) |
| 13605 | if test $enable_shared = "no" |
| 13606 | then |
| 13607 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 13608 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 13609 | QNX*) |
| 13610 | # -Wl,-E causes the symbols to be added to the dynamic |
| 13611 | # symbol table so that they can be found when a module |
| 13612 | # is loaded. -N 2048K causes the stack size to be set |
| 13613 | # to 2048 kilobytes so that the stack doesn't overflow |
| 13614 | # when running test_compile.py. |
| 13615 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13616 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13617 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13618 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 13619 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13620 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13621 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 13622 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13623 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 13624 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13625 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 13626 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 13627 | case $ac_sys_system in |
| 13628 | CYGWIN*) |
| 13629 | # Cygwin needs CCSHARED when building extension DLLs |
| 13630 | # but not when building the interpreter DLL. |
| 13631 | CFLAGSFORSHARED='';; |
| 13632 | *) |
| 13633 | CFLAGSFORSHARED='$(CCSHARED)' |
| 13634 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13635 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13636 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 13637 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13638 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13639 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 13640 | # library (with --enable-shared). |
| 13641 | # 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] | 13642 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 13643 | # if it is not required, since it creates a dependency of the shared library |
| 13644 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 13645 | # don't need to link LIBS explicitly. The default should be only changed |
| 13646 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13647 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13648 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 13649 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13650 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13651 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 13652 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13653 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13654 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 13655 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13656 | |
| 13657 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13658 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13659 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13660 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13661 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13662 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13665 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13666 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13667 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13668 | /* confdefs.h. */ |
| 13669 | _ACEOF |
| 13670 | cat confdefs.h >>conftest.$ac_ext |
| 13671 | cat >>conftest.$ac_ext <<_ACEOF |
| 13672 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13673 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13674 | /* Override any GCC internal prototype to avoid an error. |
| 13675 | Use char because int might match the return type of a GCC |
| 13676 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13677 | #ifdef __cplusplus |
| 13678 | extern "C" |
| 13679 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13680 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13681 | int |
| 13682 | main () |
| 13683 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13684 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13685 | ; |
| 13686 | return 0; |
| 13687 | } |
| 13688 | _ACEOF |
| 13689 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13690 | if { (ac_try="$ac_link" |
| 13691 | case "(($ac_try" in |
| 13692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13693 | *) ac_try_echo=$ac_try;; |
| 13694 | esac |
| 13695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13696 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13697 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13699 | rm -f conftest.er1 |
| 13700 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13702 | (exit $ac_status); } && { |
| 13703 | test -z "$ac_c_werror_flag" || |
| 13704 | test ! -s conftest.err |
| 13705 | } && test -s conftest$ac_exeext && |
| 13706 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13707 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13712 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13713 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13714 | |
| 13715 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13716 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13717 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13718 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13719 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13720 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13721 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13722 | cat >>confdefs.h <<_ACEOF |
| 13723 | #define HAVE_LIBDL 1 |
| 13724 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13725 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13726 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13727 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13728 | fi |
| 13729 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13730 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13731 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 13732 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13733 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 13734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13736 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13737 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13738 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13739 | /* confdefs.h. */ |
| 13740 | _ACEOF |
| 13741 | cat confdefs.h >>conftest.$ac_ext |
| 13742 | cat >>conftest.$ac_ext <<_ACEOF |
| 13743 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13744 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13745 | /* Override any GCC internal prototype to avoid an error. |
| 13746 | Use char because int might match the return type of a GCC |
| 13747 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13748 | #ifdef __cplusplus |
| 13749 | extern "C" |
| 13750 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13751 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13752 | int |
| 13753 | main () |
| 13754 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13755 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13756 | ; |
| 13757 | return 0; |
| 13758 | } |
| 13759 | _ACEOF |
| 13760 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13761 | if { (ac_try="$ac_link" |
| 13762 | case "(($ac_try" in |
| 13763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13764 | *) ac_try_echo=$ac_try;; |
| 13765 | esac |
| 13766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13767 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13768 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13770 | rm -f conftest.er1 |
| 13771 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13773 | (exit $ac_status); } && { |
| 13774 | test -z "$ac_c_werror_flag" || |
| 13775 | test ! -s conftest.err |
| 13776 | } && test -s conftest$ac_exeext && |
| 13777 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13778 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13780 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13783 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13784 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13785 | |
| 13786 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13787 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13788 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13789 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13790 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13791 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13792 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 13793 | cat >>confdefs.h <<_ACEOF |
| 13794 | #define HAVE_LIBDLD 1 |
| 13795 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13796 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13797 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13798 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13799 | fi |
| 13800 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13801 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 13802 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13803 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13804 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 13805 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; } |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13806 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13808 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13809 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13810 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13811 | /* confdefs.h. */ |
| 13812 | _ACEOF |
| 13813 | cat confdefs.h >>conftest.$ac_ext |
| 13814 | cat >>conftest.$ac_ext <<_ACEOF |
| 13815 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13817 | /* Override any GCC internal prototype to avoid an error. |
| 13818 | Use char because int might match the return type of a GCC |
| 13819 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13820 | #ifdef __cplusplus |
| 13821 | extern "C" |
| 13822 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13823 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13824 | int |
| 13825 | main () |
| 13826 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13827 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13828 | ; |
| 13829 | return 0; |
| 13830 | } |
| 13831 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13832 | for ac_lib in '' pthread rt posix4; do |
| 13833 | if test -z "$ac_lib"; then |
| 13834 | ac_res="none required" |
| 13835 | else |
| 13836 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13837 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13838 | fi |
| 13839 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13840 | if { (ac_try="$ac_link" |
| 13841 | case "(($ac_try" in |
| 13842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13843 | *) ac_try_echo=$ac_try;; |
| 13844 | esac |
| 13845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13846 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13847 | ac_status=$? |
| 13848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13849 | rm -f conftest.er1 |
| 13850 | cat conftest.err >&5 |
| 13851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13852 | (exit $ac_status); } && { |
| 13853 | test -z "$ac_c_werror_flag" || |
| 13854 | test ! -s conftest.err |
| 13855 | } && test -s conftest$ac_exeext && |
| 13856 | $as_test_x conftest$ac_exeext; then |
| 13857 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 13858 | else |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13859 | echo "$as_me: failed program was:" >&5 |
| 13860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13861 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13862 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 13863 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13864 | |
| 13865 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13866 | conftest$ac_exeext |
| 13867 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13868 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 13869 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13870 | done |
| 13871 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13872 | : |
| 13873 | else |
| 13874 | ac_cv_search_sem_init=no |
| 13875 | fi |
| 13876 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13877 | LIBS=$ac_func_search_save_LIBS |
| 13878 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13879 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 13880 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
| 13881 | ac_res=$ac_cv_search_sem_init |
| 13882 | if test "$ac_res" != no; then |
| 13883 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13884 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13885 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 13886 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13887 | # posix4 on Solaris 2.6 |
| 13888 | # pthread (first!) on Linux |
| 13889 | fi |
| 13890 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13891 | # check if we need libintl for locale functions |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13892 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 13893 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13894 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 13895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13896 | else |
| 13897 | ac_check_lib_save_LIBS=$LIBS |
| 13898 | LIBS="-lintl $LIBS" |
| 13899 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13900 | /* confdefs.h. */ |
| 13901 | _ACEOF |
| 13902 | cat confdefs.h >>conftest.$ac_ext |
| 13903 | cat >>conftest.$ac_ext <<_ACEOF |
| 13904 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13905 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13906 | /* Override any GCC internal prototype to avoid an error. |
| 13907 | Use char because int might match the return type of a GCC |
| 13908 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13909 | #ifdef __cplusplus |
| 13910 | extern "C" |
| 13911 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13912 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13913 | int |
| 13914 | main () |
| 13915 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13916 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13917 | ; |
| 13918 | return 0; |
| 13919 | } |
| 13920 | _ACEOF |
| 13921 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13922 | if { (ac_try="$ac_link" |
| 13923 | case "(($ac_try" in |
| 13924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13925 | *) ac_try_echo=$ac_try;; |
| 13926 | esac |
| 13927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13928 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13929 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13931 | rm -f conftest.er1 |
| 13932 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13934 | (exit $ac_status); } && { |
| 13935 | test -z "$ac_c_werror_flag" || |
| 13936 | test ! -s conftest.err |
| 13937 | } && test -s conftest$ac_exeext && |
| 13938 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13939 | ac_cv_lib_intl_textdomain=yes |
| 13940 | else |
| 13941 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13943 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13944 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13945 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13946 | |
| 13947 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13948 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13949 | LIBS=$ac_check_lib_save_LIBS |
| 13950 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13951 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 13952 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13953 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 13954 | |
| 13955 | cat >>confdefs.h <<\_ACEOF |
| 13956 | #define WITH_LIBINTL 1 |
| 13957 | _ACEOF |
| 13958 | |
| 13959 | fi |
| 13960 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13961 | |
| 13962 | # checks for system dependent C++ extensions support |
| 13963 | case "$ac_sys_system" in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13964 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 13965 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13966 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13967 | /* confdefs.h. */ |
| 13968 | _ACEOF |
| 13969 | cat confdefs.h >>conftest.$ac_ext |
| 13970 | cat >>conftest.$ac_ext <<_ACEOF |
| 13971 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13972 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13973 | int |
| 13974 | main () |
| 13975 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13976 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13977 | ; |
| 13978 | return 0; |
| 13979 | } |
| 13980 | _ACEOF |
| 13981 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13982 | if { (ac_try="$ac_link" |
| 13983 | case "(($ac_try" in |
| 13984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13985 | *) ac_try_echo=$ac_try;; |
| 13986 | esac |
| 13987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13988 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13989 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13991 | rm -f conftest.er1 |
| 13992 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13994 | (exit $ac_status); } && { |
| 13995 | test -z "$ac_c_werror_flag" || |
| 13996 | test ! -s conftest.err |
| 13997 | } && test -s conftest$ac_exeext && |
| 13998 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13999 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14000 | cat >>confdefs.h <<\_ACEOF |
| 14001 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 14002 | _ACEOF |
| 14003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14004 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14005 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14007 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14009 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14010 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14011 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14012 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14013 | |
| 14014 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14015 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 14016 | *) ;; |
| 14017 | esac |
| 14018 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 14019 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14020 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14021 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 14022 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14023 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 14024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14025 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14026 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14027 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14028 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14029 | /* confdefs.h. */ |
| 14030 | _ACEOF |
| 14031 | cat confdefs.h >>conftest.$ac_ext |
| 14032 | cat >>conftest.$ac_ext <<_ACEOF |
| 14033 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14035 | /* Override any GCC internal prototype to avoid an error. |
| 14036 | Use char because int might match the return type of a GCC |
| 14037 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14038 | #ifdef __cplusplus |
| 14039 | extern "C" |
| 14040 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14041 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14042 | int |
| 14043 | main () |
| 14044 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14045 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14046 | ; |
| 14047 | return 0; |
| 14048 | } |
| 14049 | _ACEOF |
| 14050 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14051 | if { (ac_try="$ac_link" |
| 14052 | case "(($ac_try" in |
| 14053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14054 | *) ac_try_echo=$ac_try;; |
| 14055 | esac |
| 14056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14057 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14060 | rm -f conftest.er1 |
| 14061 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14063 | (exit $ac_status); } && { |
| 14064 | test -z "$ac_c_werror_flag" || |
| 14065 | test ! -s conftest.err |
| 14066 | } && test -s conftest$ac_exeext && |
| 14067 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14069 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14070 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14072 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14073 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14074 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14075 | |
| 14076 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14077 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14078 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14079 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14080 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 14081 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14083 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 14084 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 14085 | # SVR4 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14086 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14087 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14088 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 14089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14091 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14092 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14094 | /* confdefs.h. */ |
| 14095 | _ACEOF |
| 14096 | cat confdefs.h >>conftest.$ac_ext |
| 14097 | cat >>conftest.$ac_ext <<_ACEOF |
| 14098 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14099 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14100 | /* Override any GCC internal prototype to avoid an error. |
| 14101 | Use char because int might match the return type of a GCC |
| 14102 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14103 | #ifdef __cplusplus |
| 14104 | extern "C" |
| 14105 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14106 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14107 | int |
| 14108 | main () |
| 14109 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14110 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14111 | ; |
| 14112 | return 0; |
| 14113 | } |
| 14114 | _ACEOF |
| 14115 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14116 | if { (ac_try="$ac_link" |
| 14117 | case "(($ac_try" in |
| 14118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14119 | *) ac_try_echo=$ac_try;; |
| 14120 | esac |
| 14121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14122 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14123 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14125 | rm -f conftest.er1 |
| 14126 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14128 | (exit $ac_status); } && { |
| 14129 | test -z "$ac_c_werror_flag" || |
| 14130 | test ! -s conftest.err |
| 14131 | } && test -s conftest$ac_exeext && |
| 14132 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14133 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14137 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14138 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14139 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14140 | |
| 14141 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14142 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14143 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14144 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14145 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14146 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14147 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14148 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14149 | fi |
| 14150 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 14151 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 14152 | case "$ac_sys_system" in |
| 14153 | BeOS*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14154 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 14155 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14156 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 14157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14159 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14160 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14162 | /* confdefs.h. */ |
| 14163 | _ACEOF |
| 14164 | cat confdefs.h >>conftest.$ac_ext |
| 14165 | cat >>conftest.$ac_ext <<_ACEOF |
| 14166 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14167 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14168 | /* Override any GCC internal prototype to avoid an error. |
| 14169 | Use char because int might match the return type of a GCC |
| 14170 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14171 | #ifdef __cplusplus |
| 14172 | extern "C" |
| 14173 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14174 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14175 | int |
| 14176 | main () |
| 14177 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14178 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14179 | ; |
| 14180 | return 0; |
| 14181 | } |
| 14182 | _ACEOF |
| 14183 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14184 | if { (ac_try="$ac_link" |
| 14185 | case "(($ac_try" in |
| 14186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14187 | *) ac_try_echo=$ac_try;; |
| 14188 | esac |
| 14189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14190 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14191 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14193 | rm -f conftest.er1 |
| 14194 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14196 | (exit $ac_status); } && { |
| 14197 | test -z "$ac_c_werror_flag" || |
| 14198 | test ! -s conftest.err |
| 14199 | } && test -s conftest$ac_exeext && |
| 14200 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14201 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14202 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14205 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14206 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14207 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14208 | |
| 14209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14210 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14211 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14212 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14213 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 14214 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14215 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14216 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14217 | fi |
| 14218 | # BeOS |
| 14219 | ;; |
| 14220 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 14221 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14222 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 14223 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14224 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14225 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 14226 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14227 | withval=$with_libs; |
| 14228 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14229 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 14230 | LIBS="$withval $LIBS" |
| 14231 | |
| 14232 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14233 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14234 | echo "${ECHO_T}no" >&6; } |
| 14235 | fi |
| 14236 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14237 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14238 | # Check for use of the system libffi library |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14239 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 14240 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14241 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14242 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14243 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14244 | withval=$with_system_ffi; |
| 14245 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14246 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14247 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14248 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 14249 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 14250 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14251 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14252 | |
| 14253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14254 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 14255 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14256 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14257 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14258 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14259 | withval=$with_signal_module; |
| 14260 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14261 | |
| 14262 | |
| 14263 | if test -z "$with_signal_module" |
| 14264 | then with_signal_module="yes" |
| 14265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14266 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 14267 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 14268 | |
| 14269 | if test "${with_signal_module}" = "yes"; then |
| 14270 | USE_SIGNAL_MODULE="" |
| 14271 | SIGNAL_OBJS="" |
| 14272 | else |
| 14273 | USE_SIGNAL_MODULE="#" |
| 14274 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 14275 | fi |
| 14276 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 14277 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14278 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14279 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 14280 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14281 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 14282 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14283 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14284 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14285 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14286 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14287 | withval=$with_dec_threads; |
| 14288 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14289 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14290 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14291 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14292 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14293 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14294 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14295 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14296 | echo "${ECHO_T}no" >&6; } |
| 14297 | fi |
| 14298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14299 | |
| 14300 | # Templates for things AC_DEFINEd more than once. |
| 14301 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14302 | |
| 14303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14304 | |
| 14305 | |
| 14306 | |
| 14307 | |
| 14308 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14309 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 14310 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14311 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14312 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14313 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14314 | withval=$with_threads; |
| 14315 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 14316 | |
| 14317 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14318 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14320 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14321 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14322 | withval=$with_thread; with_threads=$with_thread |
| 14323 | fi |
| 14324 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14325 | |
| 14326 | if test -z "$with_threads" |
| 14327 | then with_threads="yes" |
| 14328 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14329 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 14330 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14331 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14332 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 14333 | if test "$with_threads" = "no" |
| 14334 | then |
| 14335 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14336 | elif test "$ac_cv_pthread_is_default" = yes |
| 14337 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14338 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14339 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14340 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14341 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14342 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14343 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14344 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14345 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14346 | |
| 14347 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14348 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14349 | elif test "$ac_cv_kpthread" = "yes" |
| 14350 | then |
| 14351 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14352 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14353 | CXX="$CXX -Kpthread" |
| 14354 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14355 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14356 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14357 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 14358 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14359 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14360 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14361 | elif test "$ac_cv_kthread" = "yes" |
| 14362 | then |
| 14363 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14364 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14365 | CXX="$CXX -Kthread" |
| 14366 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14367 | cat >>confdefs.h <<\_ACEOF |
| 14368 | #define WITH_THREAD 1 |
| 14369 | _ACEOF |
| 14370 | |
| 14371 | posix_threads=yes |
| 14372 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14373 | elif test "$ac_cv_pthread" = "yes" |
| 14374 | then |
| 14375 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 14376 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 14377 | CXX="$CXX -pthread" |
| 14378 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14379 | cat >>confdefs.h <<\_ACEOF |
| 14380 | #define WITH_THREAD 1 |
| 14381 | _ACEOF |
| 14382 | |
| 14383 | posix_threads=yes |
| 14384 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14385 | else |
| 14386 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 14387 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 14388 | fi |
| 14389 | if test ! -z "$withval" -a -d "$withval" |
| 14390 | then LDFLAGS="$LDFLAGS -L$withval" |
| 14391 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14392 | |
| 14393 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 14394 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 14395 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14396 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 14397 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14398 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14399 | /* confdefs.h. */ |
| 14400 | _ACEOF |
| 14401 | cat confdefs.h >>conftest.$ac_ext |
| 14402 | cat >>conftest.$ac_ext <<_ACEOF |
| 14403 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14404 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14405 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14406 | #ifdef _POSIX_THREADS |
| 14407 | yes |
| 14408 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14409 | |
| 14410 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14411 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14412 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14413 | unistd_defines_pthreads=yes |
| 14414 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14415 | unistd_defines_pthreads=no |
| 14416 | fi |
| 14417 | rm -f conftest* |
| 14418 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14419 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 14420 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14422 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14423 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 14425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14426 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14427 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14428 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14429 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 14430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14431 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14432 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14433 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14436 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 14437 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14439 | /* confdefs.h. */ |
| 14440 | _ACEOF |
| 14441 | cat confdefs.h >>conftest.$ac_ext |
| 14442 | cat >>conftest.$ac_ext <<_ACEOF |
| 14443 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14444 | $ac_includes_default |
| 14445 | #include <cthreads.h> |
| 14446 | _ACEOF |
| 14447 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14448 | if { (ac_try="$ac_compile" |
| 14449 | case "(($ac_try" in |
| 14450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14451 | *) ac_try_echo=$ac_try;; |
| 14452 | esac |
| 14453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14454 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14455 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14457 | rm -f conftest.er1 |
| 14458 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14460 | (exit $ac_status); } && { |
| 14461 | test -z "$ac_c_werror_flag" || |
| 14462 | test ! -s conftest.err |
| 14463 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14464 | ac_header_compiler=yes |
| 14465 | else |
| 14466 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14469 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14470 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14471 | |
| 14472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14473 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14474 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14475 | |
| 14476 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14477 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 14478 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14479 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14480 | /* confdefs.h. */ |
| 14481 | _ACEOF |
| 14482 | cat confdefs.h >>conftest.$ac_ext |
| 14483 | cat >>conftest.$ac_ext <<_ACEOF |
| 14484 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14485 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14486 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14487 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14488 | case "(($ac_try" in |
| 14489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14490 | *) ac_try_echo=$ac_try;; |
| 14491 | esac |
| 14492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14493 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14495 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | rm -f conftest.er1 |
| 14497 | cat conftest.err >&5 |
| 14498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14499 | (exit $ac_status); } >/dev/null && { |
| 14500 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14501 | test ! -s conftest.err |
| 14502 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14503 | ac_header_preproc=yes |
| 14504 | else |
| 14505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14508 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14509 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14511 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14512 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14513 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14514 | |
| 14515 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14516 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14517 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14518 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14519 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14520 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 14521 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 14522 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14523 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14524 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14525 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 14526 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14527 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 14528 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14529 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 14530 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 14531 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14532 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14533 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14534 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14535 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14536 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14537 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14538 | ## ------------------------------------------------ ## |
| 14539 | ## Report this to http://www.python.org/python-bugs ## |
| 14540 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14541 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14542 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14543 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14544 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14545 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 14546 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 14548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14549 | else |
| 14550 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14552 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 14553 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14554 | |
| 14555 | fi |
| 14556 | if test $ac_cv_header_cthreads_h = yes; then |
| 14557 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14558 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14559 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14562 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14563 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | |
| 14566 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14567 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14569 | |
| 14570 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14571 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14572 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14574 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14575 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14576 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14577 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 14578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14579 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14580 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14581 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14583 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14584 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 14585 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14587 | /* confdefs.h. */ |
| 14588 | _ACEOF |
| 14589 | cat confdefs.h >>conftest.$ac_ext |
| 14590 | cat >>conftest.$ac_ext <<_ACEOF |
| 14591 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 | $ac_includes_default |
| 14593 | #include <mach/cthreads.h> |
| 14594 | _ACEOF |
| 14595 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14596 | if { (ac_try="$ac_compile" |
| 14597 | case "(($ac_try" in |
| 14598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14599 | *) ac_try_echo=$ac_try;; |
| 14600 | esac |
| 14601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14602 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14603 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14605 | rm -f conftest.er1 |
| 14606 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14608 | (exit $ac_status); } && { |
| 14609 | test -z "$ac_c_werror_flag" || |
| 14610 | test ! -s conftest.err |
| 14611 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | ac_header_compiler=yes |
| 14613 | else |
| 14614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14616 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14617 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14619 | |
| 14620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14621 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14622 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | |
| 14624 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14625 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 14626 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14627 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14628 | /* confdefs.h. */ |
| 14629 | _ACEOF |
| 14630 | cat confdefs.h >>conftest.$ac_ext |
| 14631 | cat >>conftest.$ac_ext <<_ACEOF |
| 14632 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14633 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14635 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14636 | case "(($ac_try" in |
| 14637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14638 | *) ac_try_echo=$ac_try;; |
| 14639 | esac |
| 14640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14641 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14642 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14643 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14644 | rm -f conftest.er1 |
| 14645 | cat conftest.err >&5 |
| 14646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14647 | (exit $ac_status); } >/dev/null && { |
| 14648 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14649 | test ! -s conftest.err |
| 14650 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14651 | ac_header_preproc=yes |
| 14652 | else |
| 14653 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14656 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14657 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14659 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14660 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14661 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | |
| 14663 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14664 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14665 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14666 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14667 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14668 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 14669 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 14670 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14671 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14672 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14673 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 14674 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14675 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 14676 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14677 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 14678 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 14679 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14680 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14681 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14682 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14683 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14684 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14685 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14686 | ## ------------------------------------------------ ## |
| 14687 | ## Report this to http://www.python.org/python-bugs ## |
| 14688 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14689 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14690 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14691 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14692 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14693 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14694 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14695 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 14696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14697 | else |
| 14698 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14699 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14700 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14701 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14702 | |
| 14703 | fi |
| 14704 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 14705 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14706 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14707 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14709 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14710 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14711 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14713 | |
| 14714 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14715 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14716 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14717 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14718 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14719 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14720 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14721 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 14722 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14723 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14724 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14725 | if test "${with_pth+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14726 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14727 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14728 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14729 | #define WITH_THREAD 1 |
| 14730 | _ACEOF |
| 14731 | |
| 14732 | |
| 14733 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14734 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14735 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14736 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14737 | LIBS="-lpth $LIBS" |
| 14738 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14739 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14740 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14741 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14742 | |
| 14743 | # Just looking for pthread_create in libpthread is not enough: |
| 14744 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 14745 | # So we really have to include pthread.h, and then link. |
| 14746 | _libs=$LIBS |
| 14747 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14748 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 14749 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14750 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14751 | /* confdefs.h. */ |
| 14752 | _ACEOF |
| 14753 | cat confdefs.h >>conftest.$ac_ext |
| 14754 | cat >>conftest.$ac_ext <<_ACEOF |
| 14755 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14756 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14757 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14758 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14759 | int |
| 14760 | main () |
| 14761 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14762 | |
| 14763 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14764 | ; |
| 14765 | return 0; |
| 14766 | } |
| 14767 | _ACEOF |
| 14768 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14769 | if { (ac_try="$ac_link" |
| 14770 | case "(($ac_try" in |
| 14771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14772 | *) ac_try_echo=$ac_try;; |
| 14773 | esac |
| 14774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14775 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14776 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14778 | rm -f conftest.er1 |
| 14779 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14781 | (exit $ac_status); } && { |
| 14782 | test -z "$ac_c_werror_flag" || |
| 14783 | test ! -s conftest.err |
| 14784 | } && test -s conftest$ac_exeext && |
| 14785 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14786 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14787 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14788 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14789 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14790 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14791 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14792 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14793 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14794 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14795 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14796 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14800 | LIBS=$_libs |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14801 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 14802 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14803 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 14804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14807 | /* confdefs.h. */ |
| 14808 | _ACEOF |
| 14809 | cat confdefs.h >>conftest.$ac_ext |
| 14810 | cat >>conftest.$ac_ext <<_ACEOF |
| 14811 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14812 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 14813 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14814 | #define pthread_detach innocuous_pthread_detach |
| 14815 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14816 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14817 | which can conflict with char pthread_detach (); below. |
| 14818 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14819 | <limits.h> exists even on freestanding compilers. */ |
| 14820 | |
| 14821 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14822 | # include <limits.h> |
| 14823 | #else |
| 14824 | # include <assert.h> |
| 14825 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14826 | |
| 14827 | #undef pthread_detach |
| 14828 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14829 | /* Override any GCC internal prototype to avoid an error. |
| 14830 | Use char because int might match the return type of a GCC |
| 14831 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 | #ifdef __cplusplus |
| 14833 | extern "C" |
| 14834 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14835 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14836 | /* The GNU C library defines this for functions which it implements |
| 14837 | to always fail with ENOSYS. Some functions are actually named |
| 14838 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14839 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14840 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14841 | #endif |
| 14842 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14843 | int |
| 14844 | main () |
| 14845 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14846 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14847 | ; |
| 14848 | return 0; |
| 14849 | } |
| 14850 | _ACEOF |
| 14851 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14852 | if { (ac_try="$ac_link" |
| 14853 | case "(($ac_try" in |
| 14854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14855 | *) ac_try_echo=$ac_try;; |
| 14856 | esac |
| 14857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14858 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14859 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14861 | rm -f conftest.er1 |
| 14862 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14864 | (exit $ac_status); } && { |
| 14865 | test -z "$ac_c_werror_flag" || |
| 14866 | test ! -s conftest.err |
| 14867 | } && test -s conftest$ac_exeext && |
| 14868 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14869 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14873 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14874 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14875 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14876 | |
| 14877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14878 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14879 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14880 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 14881 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | if test $ac_cv_func_pthread_detach = yes; then |
| 14883 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14884 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14885 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14886 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14887 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14888 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14889 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14890 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14891 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14892 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 14893 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14894 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 14895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14896 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14897 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 14898 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14899 | else |
| 14900 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14901 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 14902 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14903 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14904 | /* confdefs.h. */ |
| 14905 | _ACEOF |
| 14906 | cat confdefs.h >>conftest.$ac_ext |
| 14907 | cat >>conftest.$ac_ext <<_ACEOF |
| 14908 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14909 | $ac_includes_default |
| 14910 | #include <atheos/threads.h> |
| 14911 | _ACEOF |
| 14912 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14913 | if { (ac_try="$ac_compile" |
| 14914 | case "(($ac_try" in |
| 14915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14916 | *) ac_try_echo=$ac_try;; |
| 14917 | esac |
| 14918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14919 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14920 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14922 | rm -f conftest.er1 |
| 14923 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14925 | (exit $ac_status); } && { |
| 14926 | test -z "$ac_c_werror_flag" || |
| 14927 | test ! -s conftest.err |
| 14928 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14929 | ac_header_compiler=yes |
| 14930 | else |
| 14931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14933 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14934 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14935 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14936 | |
| 14937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14938 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14939 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14940 | |
| 14941 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14942 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 14943 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14945 | /* confdefs.h. */ |
| 14946 | _ACEOF |
| 14947 | cat confdefs.h >>conftest.$ac_ext |
| 14948 | cat >>conftest.$ac_ext <<_ACEOF |
| 14949 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14950 | #include <atheos/threads.h> |
| 14951 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14952 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14953 | case "(($ac_try" in |
| 14954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14955 | *) ac_try_echo=$ac_try;; |
| 14956 | esac |
| 14957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14958 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14959 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14960 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14961 | rm -f conftest.er1 |
| 14962 | cat conftest.err >&5 |
| 14963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14964 | (exit $ac_status); } >/dev/null && { |
| 14965 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14966 | test ! -s conftest.err |
| 14967 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14968 | ac_header_preproc=yes |
| 14969 | else |
| 14970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14972 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14973 | ac_header_preproc=no |
| 14974 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14975 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14976 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14977 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14978 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14979 | |
| 14980 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14982 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14983 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14984 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14985 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 14986 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 14987 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14988 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14989 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14990 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 14991 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14992 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 14993 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 14994 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 14995 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 14996 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14997 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14998 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 14999 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15000 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 15001 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15002 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15003 | ## ------------------------------------------------ ## |
| 15004 | ## Report this to http://www.python.org/python-bugs ## |
| 15005 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15006 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15007 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15008 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15009 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15010 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 15011 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15012 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 15013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15014 | else |
| 15015 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 15016 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15017 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 15018 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15019 | |
| 15020 | fi |
| 15021 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 15022 | cat >>confdefs.h <<\_ACEOF |
| 15023 | #define WITH_THREAD 1 |
| 15024 | _ACEOF |
| 15025 | |
| 15026 | |
| 15027 | cat >>confdefs.h <<\_ACEOF |
| 15028 | #define ATHEOS_THREADS 1 |
| 15029 | _ACEOF |
| 15030 | |
| 15031 | THREADOBJ="Python/thread.o" |
| 15032 | else |
| 15033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15034 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15035 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 15036 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15037 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 15038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15039 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15040 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 15041 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15043 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15044 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 15045 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15047 | /* confdefs.h. */ |
| 15048 | _ACEOF |
| 15049 | cat confdefs.h >>conftest.$ac_ext |
| 15050 | cat >>conftest.$ac_ext <<_ACEOF |
| 15051 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15052 | $ac_includes_default |
| 15053 | #include <kernel/OS.h> |
| 15054 | _ACEOF |
| 15055 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15056 | if { (ac_try="$ac_compile" |
| 15057 | case "(($ac_try" in |
| 15058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15059 | *) ac_try_echo=$ac_try;; |
| 15060 | esac |
| 15061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15062 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15063 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15065 | rm -f conftest.er1 |
| 15066 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15068 | (exit $ac_status); } && { |
| 15069 | test -z "$ac_c_werror_flag" || |
| 15070 | test ! -s conftest.err |
| 15071 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 | ac_header_compiler=yes |
| 15073 | else |
| 15074 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15076 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15077 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15079 | |
| 15080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15081 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15082 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15083 | |
| 15084 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15085 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 15086 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15087 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15088 | /* confdefs.h. */ |
| 15089 | _ACEOF |
| 15090 | cat confdefs.h >>conftest.$ac_ext |
| 15091 | cat >>conftest.$ac_ext <<_ACEOF |
| 15092 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15093 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15095 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15096 | case "(($ac_try" in |
| 15097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15098 | *) ac_try_echo=$ac_try;; |
| 15099 | esac |
| 15100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15101 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15102 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15103 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | rm -f conftest.er1 |
| 15105 | cat conftest.err >&5 |
| 15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15107 | (exit $ac_status); } >/dev/null && { |
| 15108 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15109 | test ! -s conftest.err |
| 15110 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15111 | ac_header_preproc=yes |
| 15112 | else |
| 15113 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15116 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15117 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15120 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15121 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15124 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15125 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15127 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15128 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 15129 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 15130 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15131 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15132 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15133 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 15134 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15135 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 15136 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 15137 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 15138 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 15139 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15140 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15141 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 15142 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15143 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 15144 | echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15145 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 15146 | ## ------------------------------------------------ ## |
| 15147 | ## Report this to http://www.python.org/python-bugs ## |
| 15148 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15149 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15150 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15151 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15152 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15153 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 15154 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15155 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 15156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15157 | else |
| 15158 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 15159 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15160 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 15161 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 | |
| 15163 | fi |
| 15164 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 15165 | cat >>confdefs.h <<\_ACEOF |
| 15166 | #define WITH_THREAD 1 |
| 15167 | _ACEOF |
| 15168 | |
| 15169 | |
| 15170 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15171 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15172 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15173 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15174 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15175 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15177 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 15178 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15179 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 15180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15182 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15183 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15185 | /* confdefs.h. */ |
| 15186 | _ACEOF |
| 15187 | cat confdefs.h >>conftest.$ac_ext |
| 15188 | cat >>conftest.$ac_ext <<_ACEOF |
| 15189 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15190 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15191 | /* Override any GCC internal prototype to avoid an error. |
| 15192 | Use char because int might match the return type of a GCC |
| 15193 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15194 | #ifdef __cplusplus |
| 15195 | extern "C" |
| 15196 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15197 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 | int |
| 15199 | main () |
| 15200 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15201 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 | ; |
| 15203 | return 0; |
| 15204 | } |
| 15205 | _ACEOF |
| 15206 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15207 | if { (ac_try="$ac_link" |
| 15208 | case "(($ac_try" in |
| 15209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15210 | *) ac_try_echo=$ac_try;; |
| 15211 | esac |
| 15212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15213 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15214 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15216 | rm -f conftest.er1 |
| 15217 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15219 | (exit $ac_status); } && { |
| 15220 | test -z "$ac_c_werror_flag" || |
| 15221 | test ! -s conftest.err |
| 15222 | } && test -s conftest$ac_exeext && |
| 15223 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15228 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15229 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15230 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15231 | |
| 15232 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15233 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15234 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15235 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15236 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 15237 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15238 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 15239 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15240 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15241 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15242 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15243 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15244 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15245 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15246 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15247 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15248 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 15249 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15250 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 15251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15253 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 15254 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15256 | /* confdefs.h. */ |
| 15257 | _ACEOF |
| 15258 | cat confdefs.h >>conftest.$ac_ext |
| 15259 | cat >>conftest.$ac_ext <<_ACEOF |
| 15260 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15261 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15262 | /* Override any GCC internal prototype to avoid an error. |
| 15263 | Use char because int might match the return type of a GCC |
| 15264 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | #ifdef __cplusplus |
| 15266 | extern "C" |
| 15267 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15268 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15269 | int |
| 15270 | main () |
| 15271 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15272 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15273 | ; |
| 15274 | return 0; |
| 15275 | } |
| 15276 | _ACEOF |
| 15277 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15278 | if { (ac_try="$ac_link" |
| 15279 | case "(($ac_try" in |
| 15280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15281 | *) ac_try_echo=$ac_try;; |
| 15282 | esac |
| 15283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15284 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15285 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15287 | rm -f conftest.er1 |
| 15288 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15290 | (exit $ac_status); } && { |
| 15291 | test -z "$ac_c_werror_flag" || |
| 15292 | test ! -s conftest.err |
| 15293 | } && test -s conftest$ac_exeext && |
| 15294 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15295 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15297 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15299 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15300 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15301 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15302 | |
| 15303 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15304 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15305 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15306 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15307 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 15308 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15309 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 15310 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15311 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15312 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15313 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15314 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15315 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15316 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15317 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15318 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15319 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 15320 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15321 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 15322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15325 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15326 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15327 | /* confdefs.h. */ |
| 15328 | _ACEOF |
| 15329 | cat confdefs.h >>conftest.$ac_ext |
| 15330 | cat >>conftest.$ac_ext <<_ACEOF |
| 15331 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15332 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15333 | /* Override any GCC internal prototype to avoid an error. |
| 15334 | Use char because int might match the return type of a GCC |
| 15335 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15336 | #ifdef __cplusplus |
| 15337 | extern "C" |
| 15338 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15339 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15340 | int |
| 15341 | main () |
| 15342 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15343 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15344 | ; |
| 15345 | return 0; |
| 15346 | } |
| 15347 | _ACEOF |
| 15348 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15349 | if { (ac_try="$ac_link" |
| 15350 | case "(($ac_try" in |
| 15351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15352 | *) ac_try_echo=$ac_try;; |
| 15353 | esac |
| 15354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15355 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15356 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15358 | rm -f conftest.er1 |
| 15359 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15361 | (exit $ac_status); } && { |
| 15362 | test -z "$ac_c_werror_flag" || |
| 15363 | test ! -s conftest.err |
| 15364 | } && test -s conftest$ac_exeext && |
| 15365 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15366 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15368 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15371 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15372 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15373 | |
| 15374 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15375 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15377 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15378 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 15379 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 15381 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15382 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15384 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15385 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15386 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15387 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15388 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15389 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15390 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 15391 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15392 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 15393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15395 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15396 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15397 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15398 | /* confdefs.h. */ |
| 15399 | _ACEOF |
| 15400 | cat confdefs.h >>conftest.$ac_ext |
| 15401 | cat >>conftest.$ac_ext <<_ACEOF |
| 15402 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15403 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15404 | /* Override any GCC internal prototype to avoid an error. |
| 15405 | Use char because int might match the return type of a GCC |
| 15406 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15407 | #ifdef __cplusplus |
| 15408 | extern "C" |
| 15409 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15410 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15411 | int |
| 15412 | main () |
| 15413 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15414 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | ; |
| 15416 | return 0; |
| 15417 | } |
| 15418 | _ACEOF |
| 15419 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15420 | if { (ac_try="$ac_link" |
| 15421 | case "(($ac_try" in |
| 15422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15423 | *) ac_try_echo=$ac_try;; |
| 15424 | esac |
| 15425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15426 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15427 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15429 | rm -f conftest.er1 |
| 15430 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15432 | (exit $ac_status); } && { |
| 15433 | test -z "$ac_c_werror_flag" || |
| 15434 | test ! -s conftest.err |
| 15435 | } && test -s conftest$ac_exeext && |
| 15436 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15437 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15439 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15441 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15442 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15443 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15444 | |
| 15445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15446 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15447 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15448 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15449 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 15450 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15451 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 15452 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15453 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15454 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15455 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15456 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15457 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15458 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15459 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 15460 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15461 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 15462 | fi |
| 15463 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15464 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15465 | fi |
| 15466 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 15467 | fi |
| 15468 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 15469 | fi |
| 15470 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 15471 | fi |
| 15472 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 15473 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15474 | fi |
| 15475 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15476 | |
| 15477 | fi |
| 15478 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15479 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15480 | |
| 15481 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15482 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15483 | fi |
| 15484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | fi |
| 15486 | |
| 15487 | |
| 15488 | fi |
| 15489 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15490 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15492 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 15493 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15494 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 15495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15497 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15498 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15499 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15500 | /* confdefs.h. */ |
| 15501 | _ACEOF |
| 15502 | cat confdefs.h >>conftest.$ac_ext |
| 15503 | cat >>conftest.$ac_ext <<_ACEOF |
| 15504 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15505 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15506 | /* Override any GCC internal prototype to avoid an error. |
| 15507 | Use char because int might match the return type of a GCC |
| 15508 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15509 | #ifdef __cplusplus |
| 15510 | extern "C" |
| 15511 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15512 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15513 | int |
| 15514 | main () |
| 15515 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15516 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15517 | ; |
| 15518 | return 0; |
| 15519 | } |
| 15520 | _ACEOF |
| 15521 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15522 | if { (ac_try="$ac_link" |
| 15523 | case "(($ac_try" in |
| 15524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15525 | *) ac_try_echo=$ac_try;; |
| 15526 | esac |
| 15527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15528 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15529 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15531 | rm -f conftest.er1 |
| 15532 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15534 | (exit $ac_status); } && { |
| 15535 | test -z "$ac_c_werror_flag" || |
| 15536 | test ! -s conftest.err |
| 15537 | } && test -s conftest$ac_exeext && |
| 15538 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15539 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15543 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15544 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15545 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15546 | |
| 15547 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15548 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15549 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15550 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15551 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 15552 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15553 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 15554 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15555 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15556 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15557 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15558 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15559 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15560 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15561 | fi |
| 15562 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15563 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 15564 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15565 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 15566 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15567 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 15568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15569 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15570 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15571 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15572 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15573 | /* confdefs.h. */ |
| 15574 | _ACEOF |
| 15575 | cat confdefs.h >>conftest.$ac_ext |
| 15576 | cat >>conftest.$ac_ext <<_ACEOF |
| 15577 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15578 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15579 | /* Override any GCC internal prototype to avoid an error. |
| 15580 | Use char because int might match the return type of a GCC |
| 15581 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15582 | #ifdef __cplusplus |
| 15583 | extern "C" |
| 15584 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15585 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15586 | int |
| 15587 | main () |
| 15588 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15589 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15590 | ; |
| 15591 | return 0; |
| 15592 | } |
| 15593 | _ACEOF |
| 15594 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15595 | if { (ac_try="$ac_link" |
| 15596 | case "(($ac_try" in |
| 15597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15598 | *) ac_try_echo=$ac_try;; |
| 15599 | esac |
| 15600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15601 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15602 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15604 | rm -f conftest.er1 |
| 15605 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15607 | (exit $ac_status); } && { |
| 15608 | test -z "$ac_c_werror_flag" || |
| 15609 | test ! -s conftest.err |
| 15610 | } && test -s conftest$ac_exeext && |
| 15611 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15612 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15616 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15617 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15618 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15619 | |
| 15620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15621 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15622 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15623 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15624 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 15625 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15626 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 15627 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15628 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15629 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15630 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15631 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15632 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15633 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15634 | fi |
| 15635 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 15636 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15637 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15638 | if test "$USE_THREAD_MODULE" != "#" |
| 15639 | then |
| 15640 | # If the above checks didn't disable threads, (at least) OSF1 |
| 15641 | # needs this '-threads' argument during linking. |
| 15642 | case $ac_sys_system in |
| 15643 | OSF1) LDLAST=-threads;; |
| 15644 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 15645 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15646 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15647 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15648 | if test "$posix_threads" = "yes"; then |
| 15649 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15650 | |
| 15651 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15652 | #define _POSIX_THREADS 1 |
| 15653 | _ACEOF |
| 15654 | |
| 15655 | fi |
| 15656 | |
| 15657 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 15658 | case $ac_sys_system/$ac_sys_release in |
| 15659 | SunOS/5.6) |
| 15660 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15661 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 15662 | _ACEOF |
| 15663 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15664 | ;; |
| 15665 | SunOS/5.8) |
| 15666 | cat >>confdefs.h <<\_ACEOF |
| 15667 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15668 | _ACEOF |
| 15669 | |
| 15670 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 15671 | AIX/5) |
| 15672 | cat >>confdefs.h <<\_ACEOF |
| 15673 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 15674 | _ACEOF |
| 15675 | |
| 15676 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15677 | esac |
| 15678 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15679 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 15680 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15681 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 15682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15683 | else |
| 15684 | if test "$cross_compiling" = yes; then |
| 15685 | ac_cv_pthread_system_supported=no |
| 15686 | else |
| 15687 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15688 | /* confdefs.h. */ |
| 15689 | _ACEOF |
| 15690 | cat confdefs.h >>conftest.$ac_ext |
| 15691 | cat >>conftest.$ac_ext <<_ACEOF |
| 15692 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15693 | #include <pthread.h> |
| 15694 | void *foo(void *parm) { |
| 15695 | return NULL; |
| 15696 | } |
| 15697 | main() { |
| 15698 | pthread_attr_t attr; |
| 15699 | pthread_t id; |
| 15700 | if (pthread_attr_init(&attr)) exit(-1); |
| 15701 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 15702 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 15703 | exit(0); |
| 15704 | } |
| 15705 | _ACEOF |
| 15706 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15707 | if { (ac_try="$ac_link" |
| 15708 | case "(($ac_try" in |
| 15709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15710 | *) ac_try_echo=$ac_try;; |
| 15711 | esac |
| 15712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15713 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15714 | ac_status=$? |
| 15715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15716 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15717 | { (case "(($ac_try" in |
| 15718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15719 | *) ac_try_echo=$ac_try;; |
| 15720 | esac |
| 15721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15722 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15723 | ac_status=$? |
| 15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15725 | (exit $ac_status); }; }; then |
| 15726 | ac_cv_pthread_system_supported=yes |
| 15727 | else |
| 15728 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15731 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15732 | ( exit $ac_status ) |
| 15733 | ac_cv_pthread_system_supported=no |
| 15734 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15735 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15736 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 15737 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15738 | |
| 15739 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15740 | fi |
| 15741 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15742 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 15743 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15744 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 15745 | |
| 15746 | cat >>confdefs.h <<\_ACEOF |
| 15747 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 15748 | _ACEOF |
| 15749 | |
| 15750 | fi |
| 15751 | |
| 15752 | for ac_func in pthread_sigmask |
| 15753 | do |
| 15754 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15755 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15756 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15757 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15759 | else |
| 15760 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15761 | /* confdefs.h. */ |
| 15762 | _ACEOF |
| 15763 | cat confdefs.h >>conftest.$ac_ext |
| 15764 | cat >>conftest.$ac_ext <<_ACEOF |
| 15765 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15766 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15767 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15768 | #define $ac_func innocuous_$ac_func |
| 15769 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15770 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15771 | which can conflict with char $ac_func (); below. |
| 15772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15773 | <limits.h> exists even on freestanding compilers. */ |
| 15774 | |
| 15775 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15776 | # include <limits.h> |
| 15777 | #else |
| 15778 | # include <assert.h> |
| 15779 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15780 | |
| 15781 | #undef $ac_func |
| 15782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15783 | /* Override any GCC internal prototype to avoid an error. |
| 15784 | Use char because int might match the return type of a GCC |
| 15785 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15786 | #ifdef __cplusplus |
| 15787 | extern "C" |
| 15788 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15789 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15790 | /* The GNU C library defines this for functions which it implements |
| 15791 | to always fail with ENOSYS. Some functions are actually named |
| 15792 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15793 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15794 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15795 | #endif |
| 15796 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15797 | int |
| 15798 | main () |
| 15799 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15800 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15801 | ; |
| 15802 | return 0; |
| 15803 | } |
| 15804 | _ACEOF |
| 15805 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15806 | if { (ac_try="$ac_link" |
| 15807 | case "(($ac_try" in |
| 15808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15809 | *) ac_try_echo=$ac_try;; |
| 15810 | esac |
| 15811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15812 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15813 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15815 | rm -f conftest.er1 |
| 15816 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15818 | (exit $ac_status); } && { |
| 15819 | test -z "$ac_c_werror_flag" || |
| 15820 | test ! -s conftest.err |
| 15821 | } && test -s conftest$ac_exeext && |
| 15822 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15823 | eval "$as_ac_var=yes" |
| 15824 | else |
| 15825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15827 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15828 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15829 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15830 | |
| 15831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15832 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15833 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15834 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15835 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15836 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15837 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15838 | cat >>confdefs.h <<_ACEOF |
| 15839 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15840 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15841 | case $ac_sys_system in |
| 15842 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15843 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15844 | cat >>confdefs.h <<\_ACEOF |
| 15845 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 15846 | _ACEOF |
| 15847 | |
| 15848 | ;; |
| 15849 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15850 | fi |
| 15851 | done |
| 15852 | |
| 15853 | fi |
| 15854 | |
| 15855 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15856 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | |
| 15858 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15859 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 15860 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
| 15861 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15862 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15863 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15864 | no) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15865 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15866 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15867 | ipv6=no |
| 15868 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15869 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 15870 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15871 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15872 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15874 | |
| 15875 | ipv6=yes |
| 15876 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15877 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15880 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15881 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15882 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15883 | ipv6=no |
| 15884 | |
| 15885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15886 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15887 | /* confdefs.h. */ |
| 15888 | _ACEOF |
| 15889 | cat confdefs.h >>conftest.$ac_ext |
| 15890 | cat >>conftest.$ac_ext <<_ACEOF |
| 15891 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15892 | /* AF_INET6 available check */ |
| 15893 | #include <sys/types.h> |
| 15894 | #include <sys/socket.h> |
| 15895 | main() |
| 15896 | { |
| 15897 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 15898 | exit(1); |
| 15899 | else |
| 15900 | exit(0); |
| 15901 | } |
| 15902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15903 | _ACEOF |
| 15904 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15905 | if { (ac_try="$ac_link" |
| 15906 | case "(($ac_try" in |
| 15907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15908 | *) ac_try_echo=$ac_try;; |
| 15909 | esac |
| 15910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15911 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15912 | ac_status=$? |
| 15913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15914 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15915 | { (case "(($ac_try" in |
| 15916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15917 | *) ac_try_echo=$ac_try;; |
| 15918 | esac |
| 15919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15920 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15921 | ac_status=$? |
| 15922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15923 | (exit $ac_status); }; }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15924 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15925 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15926 | ipv6=yes |
| 15927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15933 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15934 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15935 | ipv6=no |
| 15936 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15937 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15938 | fi |
| 15939 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15940 | |
| 15941 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15942 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15943 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 15944 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15945 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15946 | /* confdefs.h. */ |
| 15947 | _ACEOF |
| 15948 | cat confdefs.h >>conftest.$ac_ext |
| 15949 | cat >>conftest.$ac_ext <<_ACEOF |
| 15950 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15951 | #include <sys/types.h> |
| 15952 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | int |
| 15954 | main () |
| 15955 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15956 | struct sockaddr_in6 x; |
| 15957 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15958 | ; |
| 15959 | return 0; |
| 15960 | } |
| 15961 | _ACEOF |
| 15962 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15963 | if { (ac_try="$ac_compile" |
| 15964 | case "(($ac_try" in |
| 15965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15966 | *) ac_try_echo=$ac_try;; |
| 15967 | esac |
| 15968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15969 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15970 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15972 | rm -f conftest.er1 |
| 15973 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15975 | (exit $ac_status); } && { |
| 15976 | test -z "$ac_c_werror_flag" || |
| 15977 | test ! -s conftest.err |
| 15978 | } && test -s conftest.$ac_objext; then |
| 15979 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15980 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15981 | ipv6=yes |
| 15982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15983 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15985 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15986 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15987 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15988 | ipv6=no |
| 15989 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15990 | |
| 15991 | 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] | 15992 | fi |
| 15993 | |
| 15994 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15995 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15996 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15997 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15998 | |
| 15999 | fi |
| 16000 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16001 | fi |
| 16002 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16003 | |
| 16004 | ipv6type=unknown |
| 16005 | ipv6lib=none |
| 16006 | ipv6trylibc=no |
| 16007 | |
| 16008 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16009 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 16010 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 16011 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 16012 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16013 | case $i in |
| 16014 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16016 | /* confdefs.h. */ |
| 16017 | _ACEOF |
| 16018 | cat confdefs.h >>conftest.$ac_ext |
| 16019 | cat >>conftest.$ac_ext <<_ACEOF |
| 16020 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16021 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16022 | #include <netinet/in.h> |
| 16023 | #ifdef IPV6_INRIA_VERSION |
| 16024 | yes |
| 16025 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16026 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16028 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16029 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16030 | fi |
| 16031 | rm -f conftest* |
| 16032 | |
| 16033 | ;; |
| 16034 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16036 | /* confdefs.h. */ |
| 16037 | _ACEOF |
| 16038 | cat confdefs.h >>conftest.$ac_ext |
| 16039 | cat >>conftest.$ac_ext <<_ACEOF |
| 16040 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16041 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16042 | #include <netinet/in.h> |
| 16043 | #ifdef __KAME__ |
| 16044 | yes |
| 16045 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16046 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16048 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16049 | ipv6type=$i; |
| 16050 | ipv6lib=inet6 |
| 16051 | ipv6libdir=/usr/local/v6/lib |
| 16052 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16053 | fi |
| 16054 | rm -f conftest* |
| 16055 | |
| 16056 | ;; |
| 16057 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16058 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16059 | /* confdefs.h. */ |
| 16060 | _ACEOF |
| 16061 | cat confdefs.h >>conftest.$ac_ext |
| 16062 | cat >>conftest.$ac_ext <<_ACEOF |
| 16063 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16064 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16065 | #include <features.h> |
| 16066 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 16067 | yes |
| 16068 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16069 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16070 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16071 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16072 | ipv6type=$i; |
| 16073 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16074 | fi |
| 16075 | rm -f conftest* |
| 16076 | |
| 16077 | ;; |
| 16078 | linux-inet6) |
| 16079 | if test -d /usr/inet6; then |
| 16080 | ipv6type=$i |
| 16081 | ipv6lib=inet6 |
| 16082 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16083 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16084 | fi |
| 16085 | ;; |
| 16086 | solaris) |
| 16087 | if test -f /etc/netconfig; then |
| 16088 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 16089 | ipv6type=$i |
| 16090 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16091 | fi |
| 16092 | fi |
| 16093 | ;; |
| 16094 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16095 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16096 | /* confdefs.h. */ |
| 16097 | _ACEOF |
| 16098 | cat confdefs.h >>conftest.$ac_ext |
| 16099 | cat >>conftest.$ac_ext <<_ACEOF |
| 16100 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16101 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16102 | #include <sys/param.h> |
| 16103 | #ifdef _TOSHIBA_INET6 |
| 16104 | yes |
| 16105 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16106 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16107 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16108 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16109 | ipv6type=$i; |
| 16110 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16111 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16112 | fi |
| 16113 | rm -f conftest* |
| 16114 | |
| 16115 | ;; |
| 16116 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16117 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16118 | /* confdefs.h. */ |
| 16119 | _ACEOF |
| 16120 | cat confdefs.h >>conftest.$ac_ext |
| 16121 | cat >>conftest.$ac_ext <<_ACEOF |
| 16122 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16123 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16124 | #include </usr/local/v6/include/sys/v6config.h> |
| 16125 | #ifdef __V6D__ |
| 16126 | yes |
| 16127 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16128 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16129 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16130 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16131 | ipv6type=$i; |
| 16132 | ipv6lib=v6; |
| 16133 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 16134 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16135 | fi |
| 16136 | rm -f conftest* |
| 16137 | |
| 16138 | ;; |
| 16139 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16140 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16141 | /* confdefs.h. */ |
| 16142 | _ACEOF |
| 16143 | cat confdefs.h >>conftest.$ac_ext |
| 16144 | cat >>conftest.$ac_ext <<_ACEOF |
| 16145 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 16146 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16147 | #include <sys/param.h> |
| 16148 | #ifdef _ZETA_MINAMI_INET6 |
| 16149 | yes |
| 16150 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16151 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16152 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16153 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16154 | ipv6type=$i; |
| 16155 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 16156 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16157 | fi |
| 16158 | rm -f conftest* |
| 16159 | |
| 16160 | ;; |
| 16161 | esac |
| 16162 | if test "$ipv6type" != "unknown"; then |
| 16163 | break |
| 16164 | fi |
| 16165 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16166 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 16167 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 16168 | fi |
| 16169 | |
| 16170 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 16171 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 16172 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 16173 | echo "using lib$ipv6lib" |
| 16174 | else |
| 16175 | if test $ipv6trylibc = "yes"; then |
| 16176 | echo "using libc" |
| 16177 | else |
| 16178 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 16179 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 16180 | echo 'ipv6 kit and compile beforehand.' |
| 16181 | exit 1 |
| 16182 | fi |
| 16183 | fi |
| 16184 | fi |
| 16185 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 16186 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 16187 | echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; } |
| 16188 | cat >conftest.$ac_ext <<_ACEOF |
| 16189 | /* confdefs.h. */ |
| 16190 | _ACEOF |
| 16191 | cat confdefs.h >>conftest.$ac_ext |
| 16192 | cat >>conftest.$ac_ext <<_ACEOF |
| 16193 | /* end confdefs.h. */ |
| 16194 | #include <Carbon/Carbon.h> |
| 16195 | int |
| 16196 | main () |
| 16197 | { |
| 16198 | FSIORefNum fRef = 0 |
| 16199 | ; |
| 16200 | return 0; |
| 16201 | } |
| 16202 | _ACEOF |
| 16203 | rm -f conftest.$ac_objext |
| 16204 | if { (ac_try="$ac_compile" |
| 16205 | case "(($ac_try" in |
| 16206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16207 | *) ac_try_echo=$ac_try;; |
| 16208 | esac |
| 16209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16210 | (eval "$ac_compile") 2>conftest.er1 |
| 16211 | ac_status=$? |
| 16212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16213 | rm -f conftest.er1 |
| 16214 | cat conftest.err >&5 |
| 16215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16216 | (exit $ac_status); } && { |
| 16217 | test -z "$ac_c_werror_flag" || |
| 16218 | test ! -s conftest.err |
| 16219 | } && test -s conftest.$ac_objext; then |
| 16220 | |
| 16221 | cat >>confdefs.h <<\_ACEOF |
| 16222 | #define HAVE_OSX105_SDK 1 |
| 16223 | _ACEOF |
| 16224 | |
| 16225 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16226 | echo "${ECHO_T}yes" >&6; } |
| 16227 | else |
| 16228 | echo "$as_me: failed program was:" >&5 |
| 16229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16230 | |
| 16231 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16232 | echo "${ECHO_T}no" >&6; } |
| 16233 | |
| 16234 | fi |
| 16235 | |
| 16236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16237 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16238 | # Check for --with-doc-strings |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16239 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 16240 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16241 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16242 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16243 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16244 | withval=$with_doc_strings; |
| 16245 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16246 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16247 | |
| 16248 | if test -z "$with_doc_strings" |
| 16249 | then with_doc_strings="yes" |
| 16250 | fi |
| 16251 | if test "$with_doc_strings" != "no" |
| 16252 | then |
| 16253 | |
| 16254 | cat >>confdefs.h <<\_ACEOF |
| 16255 | #define WITH_DOC_STRINGS 1 |
| 16256 | _ACEOF |
| 16257 | |
| 16258 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16259 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 16260 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 16261 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 16262 | # Check for Python-specific malloc support |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16263 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 16264 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16265 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16266 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16267 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16268 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16269 | if test "$withval" != no |
| 16270 | then |
| 16271 | |
| 16272 | cat >>confdefs.h <<\_ACEOF |
| 16273 | #define WITH_TSC 1 |
| 16274 | _ACEOF |
| 16275 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16276 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16277 | echo "${ECHO_T}yes" >&6; } |
| 16278 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 16279 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16280 | fi |
| 16281 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16282 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16283 | echo "${ECHO_T}no" >&6; } |
| 16284 | fi |
| 16285 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 16286 | |
| 16287 | # Check for Python-specific malloc support |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16288 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 16289 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16291 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 16292 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16293 | withval=$with_pymalloc; |
| 16294 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16295 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 16296 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16297 | if test -z "$with_pymalloc" |
| 16298 | then with_pymalloc="yes" |
| 16299 | fi |
| 16300 | if test "$with_pymalloc" != "no" |
| 16301 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16302 | |
| 16303 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16304 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16305 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16306 | |
| 16307 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16308 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 16309 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 16310 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16311 | # Check for --with-wctype-functions |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16312 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 16313 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16314 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16315 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16316 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16317 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16318 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16319 | then |
| 16320 | |
| 16321 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16322 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16323 | _ACEOF |
| 16324 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16325 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16326 | echo "${ECHO_T}yes" >&6; } |
| 16327 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 16328 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16329 | fi |
| 16330 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16331 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16332 | echo "${ECHO_T}no" >&6; } |
| 16333 | fi |
| 16334 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 16335 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16336 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16337 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 16338 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16339 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16340 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 16341 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16343 | for ac_func in dlopen |
| 16344 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16345 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16346 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16347 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16348 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16351 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16352 | /* confdefs.h. */ |
| 16353 | _ACEOF |
| 16354 | cat confdefs.h >>conftest.$ac_ext |
| 16355 | cat >>conftest.$ac_ext <<_ACEOF |
| 16356 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16357 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16358 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16359 | #define $ac_func innocuous_$ac_func |
| 16360 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16361 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16362 | which can conflict with char $ac_func (); below. |
| 16363 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16364 | <limits.h> exists even on freestanding compilers. */ |
| 16365 | |
| 16366 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16367 | # include <limits.h> |
| 16368 | #else |
| 16369 | # include <assert.h> |
| 16370 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16371 | |
| 16372 | #undef $ac_func |
| 16373 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16374 | /* Override any GCC internal prototype to avoid an error. |
| 16375 | Use char because int might match the return type of a GCC |
| 16376 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16377 | #ifdef __cplusplus |
| 16378 | extern "C" |
| 16379 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16381 | /* The GNU C library defines this for functions which it implements |
| 16382 | to always fail with ENOSYS. Some functions are actually named |
| 16383 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16384 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16385 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16386 | #endif |
| 16387 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16388 | int |
| 16389 | main () |
| 16390 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16391 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16392 | ; |
| 16393 | return 0; |
| 16394 | } |
| 16395 | _ACEOF |
| 16396 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16397 | if { (ac_try="$ac_link" |
| 16398 | case "(($ac_try" in |
| 16399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16400 | *) ac_try_echo=$ac_try;; |
| 16401 | esac |
| 16402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16403 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16404 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16406 | rm -f conftest.er1 |
| 16407 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16409 | (exit $ac_status); } && { |
| 16410 | test -z "$ac_c_werror_flag" || |
| 16411 | test ! -s conftest.err |
| 16412 | } && test -s conftest$ac_exeext && |
| 16413 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16414 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16416 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16418 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16419 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16420 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16421 | |
| 16422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16423 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16424 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16425 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16426 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16427 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16428 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16429 | cat >>confdefs.h <<_ACEOF |
| 16430 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16431 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16432 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16433 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16434 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16435 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16436 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16437 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 16438 | # loading of modules. |
| 16439 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16440 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 16441 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16442 | if test -z "$DYNLOADFILE" |
| 16443 | then |
| 16444 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 16445 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 16446 | if test "$ac_cv_func_dlopen" = yes |
| 16447 | then DYNLOADFILE="dynload_shlib.o" |
| 16448 | else DYNLOADFILE="dynload_aix.o" |
| 16449 | fi |
| 16450 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16451 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 16452 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 16453 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 16454 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16455 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16456 | *) |
| 16457 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 16458 | # out any dynamic loading |
| 16459 | if test "$ac_cv_func_dlopen" = yes |
| 16460 | then DYNLOADFILE="dynload_shlib.o" |
| 16461 | else DYNLOADFILE="dynload_stub.o" |
| 16462 | fi |
| 16463 | ;; |
| 16464 | esac |
| 16465 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16466 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 16467 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16468 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 16469 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16470 | |
| 16471 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16472 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16473 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 16474 | |
| 16475 | fi |
| 16476 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16477 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 16478 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16479 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16480 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 16481 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16482 | if test -z "$MACHDEP_OBJS" |
| 16483 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 16484 | MACHDEP_OBJS=$extra_machdep_objs |
| 16485 | else |
| 16486 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16487 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16488 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 16489 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 16490 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16491 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16492 | |
| 16493 | |
| 16494 | |
| 16495 | |
| 16496 | |
| 16497 | |
| 16498 | |
| 16499 | |
| 16500 | |
| 16501 | |
| 16502 | |
| 16503 | |
| 16504 | |
| 16505 | |
| 16506 | |
| 16507 | |
| 16508 | |
| 16509 | |
| 16510 | |
| 16511 | |
| 16512 | |
| 16513 | |
| 16514 | |
| 16515 | |
| 16516 | |
| 16517 | |
| 16518 | |
| 16519 | |
| 16520 | |
| 16521 | |
| 16522 | |
| 16523 | |
| 16524 | |
| 16525 | |
| 16526 | |
| 16527 | |
| 16528 | |
| 16529 | |
| 16530 | |
| 16531 | |
| 16532 | |
| 16533 | |
| 16534 | |
| 16535 | |
| 16536 | |
| 16537 | |
| 16538 | |
| 16539 | |
| 16540 | |
| 16541 | |
| 16542 | |
| 16543 | |
| 16544 | |
| 16545 | |
| 16546 | |
| 16547 | |
| 16548 | |
| 16549 | |
| 16550 | |
| 16551 | |
| 16552 | |
| 16553 | |
| 16554 | |
| 16555 | |
| 16556 | |
| 16557 | |
| 16558 | |
| 16559 | |
| 16560 | |
| 16561 | |
| 16562 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 16563 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16564 | |
| 16565 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 16566 | |
| 16567 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 16568 | |
| 16569 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 16570 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 16571 | |
| 16572 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 16573 | |
| 16574 | |
| 16575 | |
| 16576 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 16577 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 16578 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 16579 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 16580 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 16581 | kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 16582 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 16583 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 16584 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 16585 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 16586 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 16587 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 16588 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 16589 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16590 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16591 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16592 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16593 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16594 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16597 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16598 | /* confdefs.h. */ |
| 16599 | _ACEOF |
| 16600 | cat confdefs.h >>conftest.$ac_ext |
| 16601 | cat >>conftest.$ac_ext <<_ACEOF |
| 16602 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16603 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16604 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16605 | #define $ac_func innocuous_$ac_func |
| 16606 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16607 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16608 | which can conflict with char $ac_func (); below. |
| 16609 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16610 | <limits.h> exists even on freestanding compilers. */ |
| 16611 | |
| 16612 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16613 | # include <limits.h> |
| 16614 | #else |
| 16615 | # include <assert.h> |
| 16616 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16617 | |
| 16618 | #undef $ac_func |
| 16619 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16620 | /* Override any GCC internal prototype to avoid an error. |
| 16621 | Use char because int might match the return type of a GCC |
| 16622 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16623 | #ifdef __cplusplus |
| 16624 | extern "C" |
| 16625 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16627 | /* The GNU C library defines this for functions which it implements |
| 16628 | to always fail with ENOSYS. Some functions are actually named |
| 16629 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16630 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16631 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16632 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16633 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16634 | int |
| 16635 | main () |
| 16636 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16637 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16638 | ; |
| 16639 | return 0; |
| 16640 | } |
| 16641 | _ACEOF |
| 16642 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16643 | if { (ac_try="$ac_link" |
| 16644 | case "(($ac_try" in |
| 16645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16646 | *) ac_try_echo=$ac_try;; |
| 16647 | esac |
| 16648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16649 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16650 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16652 | rm -f conftest.er1 |
| 16653 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16655 | (exit $ac_status); } && { |
| 16656 | test -z "$ac_c_werror_flag" || |
| 16657 | test ! -s conftest.err |
| 16658 | } && test -s conftest$ac_exeext && |
| 16659 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16660 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16662 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16664 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16665 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16666 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16667 | |
| 16668 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16669 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16670 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16671 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16672 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16673 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16675 | cat >>confdefs.h <<_ACEOF |
| 16676 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16677 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16678 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16679 | fi |
| 16680 | done |
| 16681 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16682 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16683 | # For some functions, having a definition is not sufficient, since |
| 16684 | # we want to take their address. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16685 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 16686 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16687 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16688 | /* confdefs.h. */ |
| 16689 | _ACEOF |
| 16690 | cat confdefs.h >>conftest.$ac_ext |
| 16691 | cat >>conftest.$ac_ext <<_ACEOF |
| 16692 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16693 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16694 | int |
| 16695 | main () |
| 16696 | { |
| 16697 | void *x=chroot |
| 16698 | ; |
| 16699 | return 0; |
| 16700 | } |
| 16701 | _ACEOF |
| 16702 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16703 | if { (ac_try="$ac_compile" |
| 16704 | case "(($ac_try" in |
| 16705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16706 | *) ac_try_echo=$ac_try;; |
| 16707 | esac |
| 16708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16709 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16710 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16712 | rm -f conftest.er1 |
| 16713 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16715 | (exit $ac_status); } && { |
| 16716 | test -z "$ac_c_werror_flag" || |
| 16717 | test ! -s conftest.err |
| 16718 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16719 | |
| 16720 | cat >>confdefs.h <<\_ACEOF |
| 16721 | #define HAVE_CHROOT 1 |
| 16722 | _ACEOF |
| 16723 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16724 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16725 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16726 | else |
| 16727 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16729 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16730 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16731 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16732 | |
| 16733 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16734 | |
| 16735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16736 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 16737 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16738 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16739 | /* confdefs.h. */ |
| 16740 | _ACEOF |
| 16741 | cat confdefs.h >>conftest.$ac_ext |
| 16742 | cat >>conftest.$ac_ext <<_ACEOF |
| 16743 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16744 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16745 | int |
| 16746 | main () |
| 16747 | { |
| 16748 | void *x=link |
| 16749 | ; |
| 16750 | return 0; |
| 16751 | } |
| 16752 | _ACEOF |
| 16753 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16754 | if { (ac_try="$ac_compile" |
| 16755 | case "(($ac_try" in |
| 16756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16757 | *) ac_try_echo=$ac_try;; |
| 16758 | esac |
| 16759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16760 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16761 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16763 | rm -f conftest.er1 |
| 16764 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16766 | (exit $ac_status); } && { |
| 16767 | test -z "$ac_c_werror_flag" || |
| 16768 | test ! -s conftest.err |
| 16769 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16770 | |
| 16771 | cat >>confdefs.h <<\_ACEOF |
| 16772 | #define HAVE_LINK 1 |
| 16773 | _ACEOF |
| 16774 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16775 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16776 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16777 | else |
| 16778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16780 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16781 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16782 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16783 | |
| 16784 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16785 | |
| 16786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16787 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 16788 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16790 | /* confdefs.h. */ |
| 16791 | _ACEOF |
| 16792 | cat confdefs.h >>conftest.$ac_ext |
| 16793 | cat >>conftest.$ac_ext <<_ACEOF |
| 16794 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16795 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16796 | int |
| 16797 | main () |
| 16798 | { |
| 16799 | void *x=symlink |
| 16800 | ; |
| 16801 | return 0; |
| 16802 | } |
| 16803 | _ACEOF |
| 16804 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16805 | if { (ac_try="$ac_compile" |
| 16806 | case "(($ac_try" in |
| 16807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16808 | *) ac_try_echo=$ac_try;; |
| 16809 | esac |
| 16810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16811 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16812 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16814 | rm -f conftest.er1 |
| 16815 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16817 | (exit $ac_status); } && { |
| 16818 | test -z "$ac_c_werror_flag" || |
| 16819 | test ! -s conftest.err |
| 16820 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16821 | |
| 16822 | cat >>confdefs.h <<\_ACEOF |
| 16823 | #define HAVE_SYMLINK 1 |
| 16824 | _ACEOF |
| 16825 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16826 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16827 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16828 | else |
| 16829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16831 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16832 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16833 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16834 | |
| 16835 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16836 | |
| 16837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16838 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 16839 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16841 | /* confdefs.h. */ |
| 16842 | _ACEOF |
| 16843 | cat confdefs.h >>conftest.$ac_ext |
| 16844 | cat >>conftest.$ac_ext <<_ACEOF |
| 16845 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16846 | #include <unistd.h> |
| 16847 | int |
| 16848 | main () |
| 16849 | { |
| 16850 | void *x=fchdir |
| 16851 | ; |
| 16852 | return 0; |
| 16853 | } |
| 16854 | _ACEOF |
| 16855 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16856 | if { (ac_try="$ac_compile" |
| 16857 | case "(($ac_try" in |
| 16858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16859 | *) ac_try_echo=$ac_try;; |
| 16860 | esac |
| 16861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16862 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16863 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16865 | rm -f conftest.er1 |
| 16866 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16868 | (exit $ac_status); } && { |
| 16869 | test -z "$ac_c_werror_flag" || |
| 16870 | test ! -s conftest.err |
| 16871 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16872 | |
| 16873 | cat >>confdefs.h <<\_ACEOF |
| 16874 | #define HAVE_FCHDIR 1 |
| 16875 | _ACEOF |
| 16876 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16877 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16878 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16879 | else |
| 16880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16882 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16883 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16884 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16885 | |
| 16886 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16887 | |
| 16888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16889 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 16890 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16891 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16892 | /* confdefs.h. */ |
| 16893 | _ACEOF |
| 16894 | cat confdefs.h >>conftest.$ac_ext |
| 16895 | cat >>conftest.$ac_ext <<_ACEOF |
| 16896 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16897 | #include <unistd.h> |
| 16898 | int |
| 16899 | main () |
| 16900 | { |
| 16901 | void *x=fsync |
| 16902 | ; |
| 16903 | return 0; |
| 16904 | } |
| 16905 | _ACEOF |
| 16906 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16907 | if { (ac_try="$ac_compile" |
| 16908 | case "(($ac_try" in |
| 16909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16910 | *) ac_try_echo=$ac_try;; |
| 16911 | esac |
| 16912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16913 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16914 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16916 | rm -f conftest.er1 |
| 16917 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16919 | (exit $ac_status); } && { |
| 16920 | test -z "$ac_c_werror_flag" || |
| 16921 | test ! -s conftest.err |
| 16922 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16923 | |
| 16924 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16925 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16926 | _ACEOF |
| 16927 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16928 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16929 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16930 | else |
| 16931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16933 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16934 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16935 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16936 | |
| 16937 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16938 | |
| 16939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16940 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 16941 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16942 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16943 | /* confdefs.h. */ |
| 16944 | _ACEOF |
| 16945 | cat confdefs.h >>conftest.$ac_ext |
| 16946 | cat >>conftest.$ac_ext <<_ACEOF |
| 16947 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16948 | #include <unistd.h> |
| 16949 | int |
| 16950 | main () |
| 16951 | { |
| 16952 | void *x=fdatasync |
| 16953 | ; |
| 16954 | return 0; |
| 16955 | } |
| 16956 | _ACEOF |
| 16957 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16958 | if { (ac_try="$ac_compile" |
| 16959 | case "(($ac_try" in |
| 16960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16961 | *) ac_try_echo=$ac_try;; |
| 16962 | esac |
| 16963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16964 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16965 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16967 | rm -f conftest.er1 |
| 16968 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16970 | (exit $ac_status); } && { |
| 16971 | test -z "$ac_c_werror_flag" || |
| 16972 | test ! -s conftest.err |
| 16973 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16974 | |
| 16975 | cat >>confdefs.h <<\_ACEOF |
| 16976 | #define HAVE_FDATASYNC 1 |
| 16977 | _ACEOF |
| 16978 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16979 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16980 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16981 | else |
| 16982 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16984 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16985 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16986 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16987 | |
| 16988 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16989 | |
| 16990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 16991 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 16992 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
| 16993 | cat >conftest.$ac_ext <<_ACEOF |
| 16994 | /* confdefs.h. */ |
| 16995 | _ACEOF |
| 16996 | cat confdefs.h >>conftest.$ac_ext |
| 16997 | cat >>conftest.$ac_ext <<_ACEOF |
| 16998 | /* end confdefs.h. */ |
| 16999 | #include <sys/epoll.h> |
| 17000 | int |
| 17001 | main () |
| 17002 | { |
| 17003 | void *x=epoll_create |
| 17004 | ; |
| 17005 | return 0; |
| 17006 | } |
| 17007 | _ACEOF |
| 17008 | rm -f conftest.$ac_objext |
| 17009 | if { (ac_try="$ac_compile" |
| 17010 | case "(($ac_try" in |
| 17011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17012 | *) ac_try_echo=$ac_try;; |
| 17013 | esac |
| 17014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17015 | (eval "$ac_compile") 2>conftest.er1 |
| 17016 | ac_status=$? |
| 17017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17018 | rm -f conftest.er1 |
| 17019 | cat conftest.err >&5 |
| 17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17021 | (exit $ac_status); } && { |
| 17022 | test -z "$ac_c_werror_flag" || |
| 17023 | test ! -s conftest.err |
| 17024 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17025 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 17026 | cat >>confdefs.h <<\_ACEOF |
| 17027 | #define HAVE_EPOLL 1 |
| 17028 | _ACEOF |
| 17029 | |
| 17030 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17031 | echo "${ECHO_T}yes" >&6; } |
| 17032 | else |
| 17033 | echo "$as_me: failed program was:" >&5 |
| 17034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17035 | |
| 17036 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17037 | echo "${ECHO_T}no" >&6; } |
| 17038 | |
| 17039 | fi |
| 17040 | |
| 17041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17042 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 17043 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
| 17044 | cat >conftest.$ac_ext <<_ACEOF |
| 17045 | /* confdefs.h. */ |
| 17046 | _ACEOF |
| 17047 | cat confdefs.h >>conftest.$ac_ext |
| 17048 | cat >>conftest.$ac_ext <<_ACEOF |
| 17049 | /* end confdefs.h. */ |
| 17050 | |
| 17051 | #include <sys/types.h> |
| 17052 | #include <sys/event.h> |
| 17053 | |
| 17054 | int |
| 17055 | main () |
| 17056 | { |
| 17057 | int x=kqueue() |
| 17058 | ; |
| 17059 | return 0; |
| 17060 | } |
| 17061 | _ACEOF |
| 17062 | rm -f conftest.$ac_objext |
| 17063 | if { (ac_try="$ac_compile" |
| 17064 | case "(($ac_try" in |
| 17065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17066 | *) ac_try_echo=$ac_try;; |
| 17067 | esac |
| 17068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17069 | (eval "$ac_compile") 2>conftest.er1 |
| 17070 | ac_status=$? |
| 17071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17072 | rm -f conftest.er1 |
| 17073 | cat conftest.err >&5 |
| 17074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17075 | (exit $ac_status); } && { |
| 17076 | test -z "$ac_c_werror_flag" || |
| 17077 | test ! -s conftest.err |
| 17078 | } && test -s conftest.$ac_objext; then |
| 17079 | |
| 17080 | cat >>confdefs.h <<\_ACEOF |
| 17081 | #define HAVE_KQUEUE 1 |
| 17082 | _ACEOF |
| 17083 | |
| 17084 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17085 | echo "${ECHO_T}yes" >&6; } |
| 17086 | else |
| 17087 | echo "$as_me: failed program was:" >&5 |
| 17088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17089 | |
| 17090 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17091 | echo "${ECHO_T}no" >&6; } |
| 17092 | |
| 17093 | fi |
| 17094 | |
| 17095 | 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] | 17096 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 17097 | # functions ctermid_r, setgroups in the library, but no prototype |
| 17098 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 17099 | # address to avoid compiler warnings and potential miscompilations |
| 17100 | # because of the missing prototypes. |
| 17101 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17102 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 17103 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17104 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17105 | /* confdefs.h. */ |
| 17106 | _ACEOF |
| 17107 | cat confdefs.h >>conftest.$ac_ext |
| 17108 | cat >>conftest.$ac_ext <<_ACEOF |
| 17109 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17110 | |
| 17111 | #include "confdefs.h" |
| 17112 | #include <stdio.h> |
| 17113 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17114 | int |
| 17115 | main () |
| 17116 | { |
| 17117 | void* p = ctermid_r |
| 17118 | ; |
| 17119 | return 0; |
| 17120 | } |
| 17121 | _ACEOF |
| 17122 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17123 | if { (ac_try="$ac_compile" |
| 17124 | case "(($ac_try" in |
| 17125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17126 | *) ac_try_echo=$ac_try;; |
| 17127 | esac |
| 17128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17129 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17130 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17132 | rm -f conftest.er1 |
| 17133 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17135 | (exit $ac_status); } && { |
| 17136 | test -z "$ac_c_werror_flag" || |
| 17137 | test ! -s conftest.err |
| 17138 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17139 | |
| 17140 | cat >>confdefs.h <<\_ACEOF |
| 17141 | #define HAVE_CTERMID_R 1 |
| 17142 | _ACEOF |
| 17143 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17144 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17145 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17146 | else |
| 17147 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17149 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17150 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17151 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17152 | |
| 17153 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17154 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17156 | |
| 17157 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 17158 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17159 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17160 | /* confdefs.h. */ |
| 17161 | _ACEOF |
| 17162 | cat confdefs.h >>conftest.$ac_ext |
| 17163 | cat >>conftest.$ac_ext <<_ACEOF |
| 17164 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17165 | |
| 17166 | #include "confdefs.h" |
| 17167 | #include <sys/file.h> |
| 17168 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17169 | int |
| 17170 | main () |
| 17171 | { |
| 17172 | void* p = flock |
| 17173 | ; |
| 17174 | return 0; |
| 17175 | } |
| 17176 | _ACEOF |
| 17177 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17178 | if { (ac_try="$ac_compile" |
| 17179 | case "(($ac_try" in |
| 17180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17181 | *) ac_try_echo=$ac_try;; |
| 17182 | esac |
| 17183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17184 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17185 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17187 | rm -f conftest.er1 |
| 17188 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17190 | (exit $ac_status); } && { |
| 17191 | test -z "$ac_c_werror_flag" || |
| 17192 | test ! -s conftest.err |
| 17193 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17194 | |
| 17195 | cat >>confdefs.h <<\_ACEOF |
| 17196 | #define HAVE_FLOCK 1 |
| 17197 | _ACEOF |
| 17198 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17199 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17200 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17201 | else |
| 17202 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17204 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17205 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17206 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17207 | |
| 17208 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17209 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17211 | |
| 17212 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 17213 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17214 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17215 | /* confdefs.h. */ |
| 17216 | _ACEOF |
| 17217 | cat confdefs.h >>conftest.$ac_ext |
| 17218 | cat >>conftest.$ac_ext <<_ACEOF |
| 17219 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17220 | |
| 17221 | #include "confdefs.h" |
| 17222 | #include <unistd.h> |
| 17223 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17224 | int |
| 17225 | main () |
| 17226 | { |
| 17227 | void* p = getpagesize |
| 17228 | ; |
| 17229 | return 0; |
| 17230 | } |
| 17231 | _ACEOF |
| 17232 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17233 | if { (ac_try="$ac_compile" |
| 17234 | case "(($ac_try" in |
| 17235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17236 | *) ac_try_echo=$ac_try;; |
| 17237 | esac |
| 17238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17239 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17240 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17242 | rm -f conftest.er1 |
| 17243 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17245 | (exit $ac_status); } && { |
| 17246 | test -z "$ac_c_werror_flag" || |
| 17247 | test ! -s conftest.err |
| 17248 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17249 | |
| 17250 | cat >>confdefs.h <<\_ACEOF |
| 17251 | #define HAVE_GETPAGESIZE 1 |
| 17252 | _ACEOF |
| 17253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17254 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17255 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17256 | else |
| 17257 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17259 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17260 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17261 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 17262 | |
| 17263 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17264 | |
| 17265 | 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] | 17266 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17267 | for ac_prog in true |
| 17268 | do |
| 17269 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17270 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17271 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 17272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17273 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 17274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17275 | else |
| 17276 | if test -n "$TRUE"; then |
| 17277 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 17278 | else |
| 17279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17280 | for as_dir in $PATH |
| 17281 | do |
| 17282 | IFS=$as_save_IFS |
| 17283 | test -z "$as_dir" && as_dir=. |
| 17284 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17286 | ac_cv_prog_TRUE="$ac_prog" |
| 17287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17288 | break 2 |
| 17289 | fi |
| 17290 | done |
| 17291 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17292 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17293 | |
| 17294 | fi |
| 17295 | fi |
| 17296 | TRUE=$ac_cv_prog_TRUE |
| 17297 | if test -n "$TRUE"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17298 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 17299 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17300 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17301 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17302 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17303 | fi |
| 17304 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17305 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17306 | test -n "$TRUE" && break |
| 17307 | done |
| 17308 | test -n "$TRUE" || TRUE="/bin/true" |
| 17309 | |
| 17310 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17311 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 17312 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17313 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 17314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17315 | else |
| 17316 | ac_check_lib_save_LIBS=$LIBS |
| 17317 | LIBS="-lc $LIBS" |
| 17318 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17319 | /* confdefs.h. */ |
| 17320 | _ACEOF |
| 17321 | cat confdefs.h >>conftest.$ac_ext |
| 17322 | cat >>conftest.$ac_ext <<_ACEOF |
| 17323 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17324 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17325 | /* Override any GCC internal prototype to avoid an error. |
| 17326 | Use char because int might match the return type of a GCC |
| 17327 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17328 | #ifdef __cplusplus |
| 17329 | extern "C" |
| 17330 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17331 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17332 | int |
| 17333 | main () |
| 17334 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17335 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17336 | ; |
| 17337 | return 0; |
| 17338 | } |
| 17339 | _ACEOF |
| 17340 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17341 | if { (ac_try="$ac_link" |
| 17342 | case "(($ac_try" in |
| 17343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17344 | *) ac_try_echo=$ac_try;; |
| 17345 | esac |
| 17346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17347 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17348 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17350 | rm -f conftest.er1 |
| 17351 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17353 | (exit $ac_status); } && { |
| 17354 | test -z "$ac_c_werror_flag" || |
| 17355 | test ! -s conftest.err |
| 17356 | } && test -s conftest$ac_exeext && |
| 17357 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17358 | ac_cv_lib_c_inet_aton=yes |
| 17359 | else |
| 17360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17362 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17363 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17364 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17365 | |
| 17366 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17367 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17368 | LIBS=$ac_check_lib_save_LIBS |
| 17369 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17370 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 17371 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17372 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17373 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17374 | else |
| 17375 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17376 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 17377 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17378 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 17379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17380 | else |
| 17381 | ac_check_lib_save_LIBS=$LIBS |
| 17382 | LIBS="-lresolv $LIBS" |
| 17383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17384 | /* confdefs.h. */ |
| 17385 | _ACEOF |
| 17386 | cat confdefs.h >>conftest.$ac_ext |
| 17387 | cat >>conftest.$ac_ext <<_ACEOF |
| 17388 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17389 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17390 | /* Override any GCC internal prototype to avoid an error. |
| 17391 | Use char because int might match the return type of a GCC |
| 17392 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17393 | #ifdef __cplusplus |
| 17394 | extern "C" |
| 17395 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17396 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17397 | int |
| 17398 | main () |
| 17399 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17400 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17401 | ; |
| 17402 | return 0; |
| 17403 | } |
| 17404 | _ACEOF |
| 17405 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17406 | if { (ac_try="$ac_link" |
| 17407 | case "(($ac_try" in |
| 17408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17409 | *) ac_try_echo=$ac_try;; |
| 17410 | esac |
| 17411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17412 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17413 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17415 | rm -f conftest.er1 |
| 17416 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17418 | (exit $ac_status); } && { |
| 17419 | test -z "$ac_c_werror_flag" || |
| 17420 | test ! -s conftest.err |
| 17421 | } && test -s conftest$ac_exeext && |
| 17422 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17423 | ac_cv_lib_resolv_inet_aton=yes |
| 17424 | else |
| 17425 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17427 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17428 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17429 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17430 | |
| 17431 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17432 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17433 | LIBS=$ac_check_lib_save_LIBS |
| 17434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17435 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 17436 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17437 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 17438 | cat >>confdefs.h <<_ACEOF |
| 17439 | #define HAVE_LIBRESOLV 1 |
| 17440 | _ACEOF |
| 17441 | |
| 17442 | LIBS="-lresolv $LIBS" |
| 17443 | |
| 17444 | fi |
| 17445 | |
| 17446 | |
| 17447 | fi |
| 17448 | |
| 17449 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17450 | # On Tru64, chflags seems to be present, but calling it will |
| 17451 | # exit Python |
| 17452 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 17453 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 17454 | if test "$cross_compiling" = yes; then |
| 17455 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17456 | See \`config.log' for more details." >&5 |
| 17457 | echo "$as_me: error: cannot run test program while cross compiling |
| 17458 | See \`config.log' for more details." >&2;} |
| 17459 | { (exit 1); exit 1; }; } |
| 17460 | else |
| 17461 | cat >conftest.$ac_ext <<_ACEOF |
| 17462 | /* confdefs.h. */ |
| 17463 | _ACEOF |
| 17464 | cat confdefs.h >>conftest.$ac_ext |
| 17465 | cat >>conftest.$ac_ext <<_ACEOF |
| 17466 | /* end confdefs.h. */ |
| 17467 | |
| 17468 | #include <sys/stat.h> |
| 17469 | #include <unistd.h> |
| 17470 | int main(int argc, char*argv[]) |
| 17471 | { |
| 17472 | if(chflags(argv[0], 0) != 0) |
| 17473 | return 1; |
| 17474 | return 0; |
| 17475 | } |
| 17476 | |
| 17477 | _ACEOF |
| 17478 | rm -f conftest$ac_exeext |
| 17479 | if { (ac_try="$ac_link" |
| 17480 | case "(($ac_try" in |
| 17481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17482 | *) ac_try_echo=$ac_try;; |
| 17483 | esac |
| 17484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17485 | (eval "$ac_link") 2>&5 |
| 17486 | ac_status=$? |
| 17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17488 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17489 | { (case "(($ac_try" in |
| 17490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17491 | *) ac_try_echo=$ac_try;; |
| 17492 | esac |
| 17493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17494 | (eval "$ac_try") 2>&5 |
| 17495 | ac_status=$? |
| 17496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17497 | (exit $ac_status); }; }; then |
| 17498 | |
| 17499 | cat >>confdefs.h <<\_ACEOF |
| 17500 | #define HAVE_CHFLAGS 1 |
| 17501 | _ACEOF |
| 17502 | |
| 17503 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17504 | echo "${ECHO_T}yes" >&6; } |
| 17505 | else |
| 17506 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17507 | echo "$as_me: failed program was:" >&5 |
| 17508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17509 | |
| 17510 | ( exit $ac_status ) |
| 17511 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17512 | echo "${ECHO_T}no" >&6; } |
| 17513 | |
| 17514 | fi |
| 17515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17516 | fi |
| 17517 | |
| 17518 | |
| 17519 | |
| 17520 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 17521 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 17522 | if test "$cross_compiling" = yes; then |
| 17523 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17524 | See \`config.log' for more details." >&5 |
| 17525 | echo "$as_me: error: cannot run test program while cross compiling |
| 17526 | See \`config.log' for more details." >&2;} |
| 17527 | { (exit 1); exit 1; }; } |
| 17528 | else |
| 17529 | cat >conftest.$ac_ext <<_ACEOF |
| 17530 | /* confdefs.h. */ |
| 17531 | _ACEOF |
| 17532 | cat confdefs.h >>conftest.$ac_ext |
| 17533 | cat >>conftest.$ac_ext <<_ACEOF |
| 17534 | /* end confdefs.h. */ |
| 17535 | |
| 17536 | #include <sys/stat.h> |
| 17537 | #include <unistd.h> |
| 17538 | int main(int argc, char*argv[]) |
| 17539 | { |
| 17540 | if(lchflags(argv[0], 0) != 0) |
| 17541 | return 1; |
| 17542 | return 0; |
| 17543 | } |
| 17544 | |
| 17545 | _ACEOF |
| 17546 | rm -f conftest$ac_exeext |
| 17547 | if { (ac_try="$ac_link" |
| 17548 | case "(($ac_try" in |
| 17549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17550 | *) ac_try_echo=$ac_try;; |
| 17551 | esac |
| 17552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17553 | (eval "$ac_link") 2>&5 |
| 17554 | ac_status=$? |
| 17555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17556 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17557 | { (case "(($ac_try" in |
| 17558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17559 | *) ac_try_echo=$ac_try;; |
| 17560 | esac |
| 17561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17562 | (eval "$ac_try") 2>&5 |
| 17563 | ac_status=$? |
| 17564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17565 | (exit $ac_status); }; }; then |
| 17566 | |
| 17567 | cat >>confdefs.h <<\_ACEOF |
| 17568 | #define HAVE_LCHFLAGS 1 |
| 17569 | _ACEOF |
| 17570 | |
| 17571 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17572 | echo "${ECHO_T}yes" >&6; } |
| 17573 | else |
| 17574 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17575 | echo "$as_me: failed program was:" >&5 |
| 17576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17577 | |
| 17578 | ( exit $ac_status ) |
| 17579 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17580 | echo "${ECHO_T}no" >&6; } |
| 17581 | |
| 17582 | fi |
| 17583 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17584 | fi |
| 17585 | |
| 17586 | |
| 17587 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 17588 | case $ac_sys_system/$ac_sys_release in |
| 17589 | Darwin/*) |
| 17590 | _CUR_CFLAGS="${CFLAGS}" |
| 17591 | _CUR_LDFLAGS="${LDFLAGS}" |
| 17592 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 17593 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 17594 | ;; |
| 17595 | esac |
| 17596 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17597 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 17598 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17599 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
| 17600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17601 | else |
| 17602 | ac_check_lib_save_LIBS=$LIBS |
| 17603 | LIBS="-lz $LIBS" |
| 17604 | cat >conftest.$ac_ext <<_ACEOF |
| 17605 | /* confdefs.h. */ |
| 17606 | _ACEOF |
| 17607 | cat confdefs.h >>conftest.$ac_ext |
| 17608 | cat >>conftest.$ac_ext <<_ACEOF |
| 17609 | /* end confdefs.h. */ |
| 17610 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17611 | /* Override any GCC internal prototype to avoid an error. |
| 17612 | Use char because int might match the return type of a GCC |
| 17613 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17614 | #ifdef __cplusplus |
| 17615 | extern "C" |
| 17616 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17617 | char inflateCopy (); |
| 17618 | int |
| 17619 | main () |
| 17620 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17621 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17622 | ; |
| 17623 | return 0; |
| 17624 | } |
| 17625 | _ACEOF |
| 17626 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17627 | if { (ac_try="$ac_link" |
| 17628 | case "(($ac_try" in |
| 17629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17630 | *) ac_try_echo=$ac_try;; |
| 17631 | esac |
| 17632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17633 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17634 | ac_status=$? |
| 17635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17636 | rm -f conftest.er1 |
| 17637 | cat conftest.err >&5 |
| 17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17639 | (exit $ac_status); } && { |
| 17640 | test -z "$ac_c_werror_flag" || |
| 17641 | test ! -s conftest.err |
| 17642 | } && test -s conftest$ac_exeext && |
| 17643 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17644 | ac_cv_lib_z_inflateCopy=yes |
| 17645 | else |
| 17646 | echo "$as_me: failed program was:" >&5 |
| 17647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17648 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17649 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17650 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17651 | |
| 17652 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17653 | conftest$ac_exeext conftest.$ac_ext |
| 17654 | LIBS=$ac_check_lib_save_LIBS |
| 17655 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17656 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 17657 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 17658 | if test $ac_cv_lib_z_inflateCopy = yes; then |
| 17659 | |
| 17660 | cat >>confdefs.h <<\_ACEOF |
| 17661 | #define HAVE_ZLIB_COPY 1 |
| 17662 | _ACEOF |
| 17663 | |
| 17664 | fi |
| 17665 | |
| 17666 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 17667 | case $ac_sys_system/$ac_sys_release in |
| 17668 | Darwin/*) |
| 17669 | CFLAGS="${_CUR_CFLAGS}" |
| 17670 | LDFLAGS="${_CUR_LDFLAGS}" |
| 17671 | ;; |
| 17672 | esac |
| 17673 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17674 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 17675 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17677 | /* confdefs.h. */ |
| 17678 | _ACEOF |
| 17679 | cat confdefs.h >>conftest.$ac_ext |
| 17680 | cat >>conftest.$ac_ext <<_ACEOF |
| 17681 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17682 | |
| 17683 | #include "confdefs.h" |
| 17684 | #include <netdb.h> |
| 17685 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17686 | int |
| 17687 | main () |
| 17688 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17689 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17690 | ; |
| 17691 | return 0; |
| 17692 | } |
| 17693 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17694 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17695 | if { (ac_try="$ac_link" |
| 17696 | case "(($ac_try" in |
| 17697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17698 | *) ac_try_echo=$ac_try;; |
| 17699 | esac |
| 17700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17701 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17704 | rm -f conftest.er1 |
| 17705 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17707 | (exit $ac_status); } && { |
| 17708 | test -z "$ac_c_werror_flag" || |
| 17709 | test ! -s conftest.err |
| 17710 | } && test -s conftest$ac_exeext && |
| 17711 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17712 | |
| 17713 | cat >>confdefs.h <<\_ACEOF |
| 17714 | #define HAVE_HSTRERROR 1 |
| 17715 | _ACEOF |
| 17716 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17717 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17718 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17719 | else |
| 17720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17722 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17723 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17724 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17725 | |
| 17726 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17727 | |
| 17728 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17729 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17730 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17731 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 17732 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17734 | /* confdefs.h. */ |
| 17735 | _ACEOF |
| 17736 | cat confdefs.h >>conftest.$ac_ext |
| 17737 | cat >>conftest.$ac_ext <<_ACEOF |
| 17738 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17739 | |
| 17740 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 17741 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17742 | #include <sys/socket.h> |
| 17743 | #include <netinet/in.h> |
| 17744 | #include <arpa/inet.h> |
| 17745 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17746 | int |
| 17747 | main () |
| 17748 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17749 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17750 | ; |
| 17751 | return 0; |
| 17752 | } |
| 17753 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 17754 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17755 | if { (ac_try="$ac_link" |
| 17756 | case "(($ac_try" in |
| 17757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17758 | *) ac_try_echo=$ac_try;; |
| 17759 | esac |
| 17760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17761 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17762 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17764 | rm -f conftest.er1 |
| 17765 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17767 | (exit $ac_status); } && { |
| 17768 | test -z "$ac_c_werror_flag" || |
| 17769 | test ! -s conftest.err |
| 17770 | } && test -s conftest$ac_exeext && |
| 17771 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17772 | |
| 17773 | cat >>confdefs.h <<\_ACEOF |
| 17774 | #define HAVE_INET_ATON 1 |
| 17775 | _ACEOF |
| 17776 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17777 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17778 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17779 | else |
| 17780 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17782 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17783 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17784 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17785 | |
| 17786 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17787 | |
| 17788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17789 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17790 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17791 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 17792 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17793 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17794 | /* confdefs.h. */ |
| 17795 | _ACEOF |
| 17796 | cat confdefs.h >>conftest.$ac_ext |
| 17797 | cat >>conftest.$ac_ext <<_ACEOF |
| 17798 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17799 | |
| 17800 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17801 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17802 | #include <sys/socket.h> |
| 17803 | #include <netinet/in.h> |
| 17804 | #include <arpa/inet.h> |
| 17805 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17806 | int |
| 17807 | main () |
| 17808 | { |
| 17809 | void* p = inet_pton |
| 17810 | ; |
| 17811 | return 0; |
| 17812 | } |
| 17813 | _ACEOF |
| 17814 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17815 | if { (ac_try="$ac_compile" |
| 17816 | case "(($ac_try" in |
| 17817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17818 | *) ac_try_echo=$ac_try;; |
| 17819 | esac |
| 17820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17821 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17822 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17824 | rm -f conftest.er1 |
| 17825 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17827 | (exit $ac_status); } && { |
| 17828 | test -z "$ac_c_werror_flag" || |
| 17829 | test ! -s conftest.err |
| 17830 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17831 | |
| 17832 | cat >>confdefs.h <<\_ACEOF |
| 17833 | #define HAVE_INET_PTON 1 |
| 17834 | _ACEOF |
| 17835 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17836 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17837 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17838 | else |
| 17839 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17841 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17842 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17843 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17844 | |
| 17845 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17846 | |
| 17847 | 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] | 17848 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17849 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17850 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 17851 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17852 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17853 | /* confdefs.h. */ |
| 17854 | _ACEOF |
| 17855 | cat confdefs.h >>conftest.$ac_ext |
| 17856 | cat >>conftest.$ac_ext <<_ACEOF |
| 17857 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17858 | |
| 17859 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17860 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17861 | #ifdef HAVE_GRP_H |
| 17862 | #include <grp.h> |
| 17863 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17864 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17865 | int |
| 17866 | main () |
| 17867 | { |
| 17868 | void* p = setgroups |
| 17869 | ; |
| 17870 | return 0; |
| 17871 | } |
| 17872 | _ACEOF |
| 17873 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17874 | if { (ac_try="$ac_compile" |
| 17875 | case "(($ac_try" in |
| 17876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17877 | *) ac_try_echo=$ac_try;; |
| 17878 | esac |
| 17879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17880 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17881 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17883 | rm -f conftest.er1 |
| 17884 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17886 | (exit $ac_status); } && { |
| 17887 | test -z "$ac_c_werror_flag" || |
| 17888 | test ! -s conftest.err |
| 17889 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17890 | |
| 17891 | cat >>confdefs.h <<\_ACEOF |
| 17892 | #define HAVE_SETGROUPS 1 |
| 17893 | _ACEOF |
| 17894 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17895 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17896 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17897 | else |
| 17898 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17900 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17901 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17902 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17903 | |
| 17904 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17905 | |
| 17906 | 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] | 17907 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17908 | # check for openpty and forkpty |
| 17909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17910 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17911 | for ac_func in openpty |
| 17912 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17913 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17914 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17915 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17916 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17919 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17920 | /* confdefs.h. */ |
| 17921 | _ACEOF |
| 17922 | cat confdefs.h >>conftest.$ac_ext |
| 17923 | cat >>conftest.$ac_ext <<_ACEOF |
| 17924 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17925 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17927 | #define $ac_func innocuous_$ac_func |
| 17928 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17929 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17930 | which can conflict with char $ac_func (); below. |
| 17931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17932 | <limits.h> exists even on freestanding compilers. */ |
| 17933 | |
| 17934 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17935 | # include <limits.h> |
| 17936 | #else |
| 17937 | # include <assert.h> |
| 17938 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17939 | |
| 17940 | #undef $ac_func |
| 17941 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17942 | /* Override any GCC internal prototype to avoid an error. |
| 17943 | Use char because int might match the return type of a GCC |
| 17944 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17945 | #ifdef __cplusplus |
| 17946 | extern "C" |
| 17947 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17948 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17949 | /* The GNU C library defines this for functions which it implements |
| 17950 | to always fail with ENOSYS. Some functions are actually named |
| 17951 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17952 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17953 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17954 | #endif |
| 17955 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17956 | int |
| 17957 | main () |
| 17958 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17959 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17960 | ; |
| 17961 | return 0; |
| 17962 | } |
| 17963 | _ACEOF |
| 17964 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17965 | if { (ac_try="$ac_link" |
| 17966 | case "(($ac_try" in |
| 17967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17968 | *) ac_try_echo=$ac_try;; |
| 17969 | esac |
| 17970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17971 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17972 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17974 | rm -f conftest.er1 |
| 17975 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17977 | (exit $ac_status); } && { |
| 17978 | test -z "$ac_c_werror_flag" || |
| 17979 | test ! -s conftest.err |
| 17980 | } && test -s conftest$ac_exeext && |
| 17981 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17982 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17983 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17984 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17986 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17987 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17988 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17989 | |
| 17990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17991 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17992 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17993 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17994 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17995 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17996 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17997 | cat >>confdefs.h <<_ACEOF |
| 17998 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17999 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18000 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18001 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18002 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 18003 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18004 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 18005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18007 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18008 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18009 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18010 | /* confdefs.h. */ |
| 18011 | _ACEOF |
| 18012 | cat confdefs.h >>conftest.$ac_ext |
| 18013 | cat >>conftest.$ac_ext <<_ACEOF |
| 18014 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18015 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18016 | /* Override any GCC internal prototype to avoid an error. |
| 18017 | Use char because int might match the return type of a GCC |
| 18018 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18019 | #ifdef __cplusplus |
| 18020 | extern "C" |
| 18021 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18022 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18023 | int |
| 18024 | main () |
| 18025 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18026 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18027 | ; |
| 18028 | return 0; |
| 18029 | } |
| 18030 | _ACEOF |
| 18031 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18032 | if { (ac_try="$ac_link" |
| 18033 | case "(($ac_try" in |
| 18034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18035 | *) ac_try_echo=$ac_try;; |
| 18036 | esac |
| 18037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18038 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18039 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18041 | rm -f conftest.er1 |
| 18042 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18044 | (exit $ac_status); } && { |
| 18045 | test -z "$ac_c_werror_flag" || |
| 18046 | test ! -s conftest.err |
| 18047 | } && test -s conftest$ac_exeext && |
| 18048 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18049 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18051 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18053 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18054 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18055 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18056 | |
| 18057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18058 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18059 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18060 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18061 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 18062 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18063 | if test $ac_cv_lib_util_openpty = yes; then |
| 18064 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18065 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18066 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18067 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18068 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18069 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 18070 | echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18071 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 18072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18073 | else |
| 18074 | ac_check_lib_save_LIBS=$LIBS |
| 18075 | LIBS="-lbsd $LIBS" |
| 18076 | cat >conftest.$ac_ext <<_ACEOF |
| 18077 | /* confdefs.h. */ |
| 18078 | _ACEOF |
| 18079 | cat confdefs.h >>conftest.$ac_ext |
| 18080 | cat >>conftest.$ac_ext <<_ACEOF |
| 18081 | /* end confdefs.h. */ |
| 18082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18083 | /* Override any GCC internal prototype to avoid an error. |
| 18084 | Use char because int might match the return type of a GCC |
| 18085 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18086 | #ifdef __cplusplus |
| 18087 | extern "C" |
| 18088 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18089 | char openpty (); |
| 18090 | int |
| 18091 | main () |
| 18092 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18093 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18094 | ; |
| 18095 | return 0; |
| 18096 | } |
| 18097 | _ACEOF |
| 18098 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18099 | if { (ac_try="$ac_link" |
| 18100 | case "(($ac_try" in |
| 18101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18102 | *) ac_try_echo=$ac_try;; |
| 18103 | esac |
| 18104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18105 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18106 | ac_status=$? |
| 18107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18108 | rm -f conftest.er1 |
| 18109 | cat conftest.err >&5 |
| 18110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18111 | (exit $ac_status); } && { |
| 18112 | test -z "$ac_c_werror_flag" || |
| 18113 | test ! -s conftest.err |
| 18114 | } && test -s conftest$ac_exeext && |
| 18115 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18116 | ac_cv_lib_bsd_openpty=yes |
| 18117 | else |
| 18118 | echo "$as_me: failed program was:" >&5 |
| 18119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18121 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18122 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18123 | |
| 18124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18125 | conftest$ac_exeext conftest.$ac_ext |
| 18126 | LIBS=$ac_check_lib_save_LIBS |
| 18127 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 18129 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18130 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 18131 | cat >>confdefs.h <<\_ACEOF |
| 18132 | #define HAVE_OPENPTY 1 |
| 18133 | _ACEOF |
| 18134 | LIBS="$LIBS -lbsd" |
| 18135 | fi |
| 18136 | |
| 18137 | |
| 18138 | fi |
| 18139 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18140 | |
| 18141 | fi |
| 18142 | done |
| 18143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18144 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18145 | for ac_func in forkpty |
| 18146 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18147 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18148 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18149 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18150 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18153 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18154 | /* confdefs.h. */ |
| 18155 | _ACEOF |
| 18156 | cat confdefs.h >>conftest.$ac_ext |
| 18157 | cat >>conftest.$ac_ext <<_ACEOF |
| 18158 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18159 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18160 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18161 | #define $ac_func innocuous_$ac_func |
| 18162 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18163 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18164 | which can conflict with char $ac_func (); below. |
| 18165 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18166 | <limits.h> exists even on freestanding compilers. */ |
| 18167 | |
| 18168 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18169 | # include <limits.h> |
| 18170 | #else |
| 18171 | # include <assert.h> |
| 18172 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18173 | |
| 18174 | #undef $ac_func |
| 18175 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18176 | /* Override any GCC internal prototype to avoid an error. |
| 18177 | Use char because int might match the return type of a GCC |
| 18178 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18179 | #ifdef __cplusplus |
| 18180 | extern "C" |
| 18181 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18182 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18183 | /* The GNU C library defines this for functions which it implements |
| 18184 | to always fail with ENOSYS. Some functions are actually named |
| 18185 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18186 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18187 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18188 | #endif |
| 18189 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18190 | int |
| 18191 | main () |
| 18192 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18193 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18194 | ; |
| 18195 | return 0; |
| 18196 | } |
| 18197 | _ACEOF |
| 18198 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18199 | if { (ac_try="$ac_link" |
| 18200 | case "(($ac_try" in |
| 18201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18202 | *) ac_try_echo=$ac_try;; |
| 18203 | esac |
| 18204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18205 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18206 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18208 | rm -f conftest.er1 |
| 18209 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18211 | (exit $ac_status); } && { |
| 18212 | test -z "$ac_c_werror_flag" || |
| 18213 | test ! -s conftest.err |
| 18214 | } && test -s conftest$ac_exeext && |
| 18215 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18216 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18220 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18221 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18223 | |
| 18224 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18225 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18227 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18228 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18229 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18230 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18231 | cat >>confdefs.h <<_ACEOF |
| 18232 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18233 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18234 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18235 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18236 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 18237 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18238 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 18239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18241 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18242 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18243 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18244 | /* confdefs.h. */ |
| 18245 | _ACEOF |
| 18246 | cat confdefs.h >>conftest.$ac_ext |
| 18247 | cat >>conftest.$ac_ext <<_ACEOF |
| 18248 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18249 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18250 | /* Override any GCC internal prototype to avoid an error. |
| 18251 | Use char because int might match the return type of a GCC |
| 18252 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18253 | #ifdef __cplusplus |
| 18254 | extern "C" |
| 18255 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18256 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18257 | int |
| 18258 | main () |
| 18259 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18260 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18261 | ; |
| 18262 | return 0; |
| 18263 | } |
| 18264 | _ACEOF |
| 18265 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18266 | if { (ac_try="$ac_link" |
| 18267 | case "(($ac_try" in |
| 18268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18269 | *) ac_try_echo=$ac_try;; |
| 18270 | esac |
| 18271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18272 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18273 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18275 | rm -f conftest.er1 |
| 18276 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18278 | (exit $ac_status); } && { |
| 18279 | test -z "$ac_c_werror_flag" || |
| 18280 | test ! -s conftest.err |
| 18281 | } && test -s conftest$ac_exeext && |
| 18282 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18283 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18287 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18288 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18289 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18290 | |
| 18291 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18292 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18293 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18294 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18295 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 18296 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18297 | if test $ac_cv_lib_util_forkpty = yes; then |
| 18298 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18299 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18300 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18301 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18302 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18303 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 18304 | echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18305 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 18306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18307 | else |
| 18308 | ac_check_lib_save_LIBS=$LIBS |
| 18309 | LIBS="-lbsd $LIBS" |
| 18310 | cat >conftest.$ac_ext <<_ACEOF |
| 18311 | /* confdefs.h. */ |
| 18312 | _ACEOF |
| 18313 | cat confdefs.h >>conftest.$ac_ext |
| 18314 | cat >>conftest.$ac_ext <<_ACEOF |
| 18315 | /* end confdefs.h. */ |
| 18316 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18317 | /* Override any GCC internal prototype to avoid an error. |
| 18318 | Use char because int might match the return type of a GCC |
| 18319 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18320 | #ifdef __cplusplus |
| 18321 | extern "C" |
| 18322 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18323 | char forkpty (); |
| 18324 | int |
| 18325 | main () |
| 18326 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18327 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18328 | ; |
| 18329 | return 0; |
| 18330 | } |
| 18331 | _ACEOF |
| 18332 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18333 | if { (ac_try="$ac_link" |
| 18334 | case "(($ac_try" in |
| 18335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18336 | *) ac_try_echo=$ac_try;; |
| 18337 | esac |
| 18338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18339 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18340 | ac_status=$? |
| 18341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18342 | rm -f conftest.er1 |
| 18343 | cat conftest.err >&5 |
| 18344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18345 | (exit $ac_status); } && { |
| 18346 | test -z "$ac_c_werror_flag" || |
| 18347 | test ! -s conftest.err |
| 18348 | } && test -s conftest$ac_exeext && |
| 18349 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18350 | ac_cv_lib_bsd_forkpty=yes |
| 18351 | else |
| 18352 | echo "$as_me: failed program was:" >&5 |
| 18353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18354 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18355 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18356 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18357 | |
| 18358 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18359 | conftest$ac_exeext conftest.$ac_ext |
| 18360 | LIBS=$ac_check_lib_save_LIBS |
| 18361 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18362 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 18363 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 18364 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 18365 | cat >>confdefs.h <<\_ACEOF |
| 18366 | #define HAVE_FORKPTY 1 |
| 18367 | _ACEOF |
| 18368 | LIBS="$LIBS -lbsd" |
| 18369 | fi |
| 18370 | |
| 18371 | |
| 18372 | fi |
| 18373 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18374 | |
| 18375 | fi |
| 18376 | done |
| 18377 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18378 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18379 | # Stuff for expat. |
| 18380 | |
| 18381 | for ac_func in memmove |
| 18382 | do |
| 18383 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18384 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18385 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18386 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18388 | else |
| 18389 | cat >conftest.$ac_ext <<_ACEOF |
| 18390 | /* confdefs.h. */ |
| 18391 | _ACEOF |
| 18392 | cat confdefs.h >>conftest.$ac_ext |
| 18393 | cat >>conftest.$ac_ext <<_ACEOF |
| 18394 | /* end confdefs.h. */ |
| 18395 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18397 | #define $ac_func innocuous_$ac_func |
| 18398 | |
| 18399 | /* System header to define __stub macros and hopefully few prototypes, |
| 18400 | which can conflict with char $ac_func (); below. |
| 18401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18402 | <limits.h> exists even on freestanding compilers. */ |
| 18403 | |
| 18404 | #ifdef __STDC__ |
| 18405 | # include <limits.h> |
| 18406 | #else |
| 18407 | # include <assert.h> |
| 18408 | #endif |
| 18409 | |
| 18410 | #undef $ac_func |
| 18411 | |
| 18412 | /* Override any GCC internal prototype to avoid an error. |
| 18413 | Use char because int might match the return type of a GCC |
| 18414 | builtin and then its argument prototype would still apply. */ |
| 18415 | #ifdef __cplusplus |
| 18416 | extern "C" |
| 18417 | #endif |
| 18418 | char $ac_func (); |
| 18419 | /* The GNU C library defines this for functions which it implements |
| 18420 | to always fail with ENOSYS. Some functions are actually named |
| 18421 | something starting with __ and the normal name is an alias. */ |
| 18422 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18423 | choke me |
| 18424 | #endif |
| 18425 | |
| 18426 | int |
| 18427 | main () |
| 18428 | { |
| 18429 | return $ac_func (); |
| 18430 | ; |
| 18431 | return 0; |
| 18432 | } |
| 18433 | _ACEOF |
| 18434 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18435 | if { (ac_try="$ac_link" |
| 18436 | case "(($ac_try" in |
| 18437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18438 | *) ac_try_echo=$ac_try;; |
| 18439 | esac |
| 18440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18441 | (eval "$ac_link") 2>conftest.er1 |
| 18442 | ac_status=$? |
| 18443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18444 | rm -f conftest.er1 |
| 18445 | cat conftest.err >&5 |
| 18446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18447 | (exit $ac_status); } && { |
| 18448 | test -z "$ac_c_werror_flag" || |
| 18449 | test ! -s conftest.err |
| 18450 | } && test -s conftest$ac_exeext && |
| 18451 | $as_test_x conftest$ac_exeext; then |
| 18452 | eval "$as_ac_var=yes" |
| 18453 | else |
| 18454 | echo "$as_me: failed program was:" >&5 |
| 18455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18456 | |
| 18457 | eval "$as_ac_var=no" |
| 18458 | fi |
| 18459 | |
| 18460 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 18461 | conftest$ac_exeext conftest.$ac_ext |
| 18462 | fi |
| 18463 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18464 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18465 | echo "${ECHO_T}$ac_res" >&6; } |
| 18466 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18467 | cat >>confdefs.h <<_ACEOF |
| 18468 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18469 | _ACEOF |
| 18470 | |
| 18471 | fi |
| 18472 | done |
| 18473 | |
| 18474 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18475 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18476 | |
| 18477 | |
| 18478 | |
| 18479 | |
| 18480 | |
| 18481 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18482 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 18483 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18484 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18485 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18486 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18487 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18489 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18490 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18491 | /* confdefs.h. */ |
| 18492 | _ACEOF |
| 18493 | cat confdefs.h >>conftest.$ac_ext |
| 18494 | cat >>conftest.$ac_ext <<_ACEOF |
| 18495 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18496 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18497 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18498 | #define $ac_func innocuous_$ac_func |
| 18499 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18500 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18501 | which can conflict with char $ac_func (); below. |
| 18502 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18503 | <limits.h> exists even on freestanding compilers. */ |
| 18504 | |
| 18505 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18506 | # include <limits.h> |
| 18507 | #else |
| 18508 | # include <assert.h> |
| 18509 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18510 | |
| 18511 | #undef $ac_func |
| 18512 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18513 | /* Override any GCC internal prototype to avoid an error. |
| 18514 | Use char because int might match the return type of a GCC |
| 18515 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18516 | #ifdef __cplusplus |
| 18517 | extern "C" |
| 18518 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18519 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18520 | /* The GNU C library defines this for functions which it implements |
| 18521 | to always fail with ENOSYS. Some functions are actually named |
| 18522 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18523 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18524 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 18525 | #endif |
| 18526 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18527 | int |
| 18528 | main () |
| 18529 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18530 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18531 | ; |
| 18532 | return 0; |
| 18533 | } |
| 18534 | _ACEOF |
| 18535 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18536 | if { (ac_try="$ac_link" |
| 18537 | case "(($ac_try" in |
| 18538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18539 | *) ac_try_echo=$ac_try;; |
| 18540 | esac |
| 18541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18542 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18543 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18545 | rm -f conftest.er1 |
| 18546 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18548 | (exit $ac_status); } && { |
| 18549 | test -z "$ac_c_werror_flag" || |
| 18550 | test ! -s conftest.err |
| 18551 | } && test -s conftest$ac_exeext && |
| 18552 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18553 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18554 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18555 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18557 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18558 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18559 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18560 | |
| 18561 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18562 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18563 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18564 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18565 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18566 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18567 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18568 | cat >>confdefs.h <<_ACEOF |
| 18569 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18570 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18571 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18572 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18573 | done |
| 18574 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18576 | |
| 18577 | |
| 18578 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 18579 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18580 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18581 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18582 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18583 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18584 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18587 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18588 | /* confdefs.h. */ |
| 18589 | _ACEOF |
| 18590 | cat confdefs.h >>conftest.$ac_ext |
| 18591 | cat >>conftest.$ac_ext <<_ACEOF |
| 18592 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18593 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18595 | #define $ac_func innocuous_$ac_func |
| 18596 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18597 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18598 | which can conflict with char $ac_func (); below. |
| 18599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18600 | <limits.h> exists even on freestanding compilers. */ |
| 18601 | |
| 18602 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18603 | # include <limits.h> |
| 18604 | #else |
| 18605 | # include <assert.h> |
| 18606 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18607 | |
| 18608 | #undef $ac_func |
| 18609 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18610 | /* Override any GCC internal prototype to avoid an error. |
| 18611 | Use char because int might match the return type of a GCC |
| 18612 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18613 | #ifdef __cplusplus |
| 18614 | extern "C" |
| 18615 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18616 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18617 | /* The GNU C library defines this for functions which it implements |
| 18618 | to always fail with ENOSYS. Some functions are actually named |
| 18619 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18620 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18621 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18622 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18623 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18624 | int |
| 18625 | main () |
| 18626 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18627 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18628 | ; |
| 18629 | return 0; |
| 18630 | } |
| 18631 | _ACEOF |
| 18632 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18633 | if { (ac_try="$ac_link" |
| 18634 | case "(($ac_try" in |
| 18635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18636 | *) ac_try_echo=$ac_try;; |
| 18637 | esac |
| 18638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18639 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18640 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18642 | rm -f conftest.er1 |
| 18643 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18645 | (exit $ac_status); } && { |
| 18646 | test -z "$ac_c_werror_flag" || |
| 18647 | test ! -s conftest.err |
| 18648 | } && test -s conftest$ac_exeext && |
| 18649 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18650 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18654 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18655 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18656 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18657 | |
| 18658 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18659 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18660 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18661 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18662 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18663 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18664 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18665 | cat >>confdefs.h <<_ACEOF |
| 18666 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18667 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18668 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18669 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18670 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18671 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18672 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 18673 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18674 | esac |
| 18675 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18676 | fi |
| 18677 | done |
| 18678 | |
| 18679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18680 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18681 | for ac_func in getpgrp |
| 18682 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18683 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18684 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18685 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18686 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18689 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18690 | /* confdefs.h. */ |
| 18691 | _ACEOF |
| 18692 | cat confdefs.h >>conftest.$ac_ext |
| 18693 | cat >>conftest.$ac_ext <<_ACEOF |
| 18694 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18695 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18696 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18697 | #define $ac_func innocuous_$ac_func |
| 18698 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18699 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18700 | which can conflict with char $ac_func (); below. |
| 18701 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18702 | <limits.h> exists even on freestanding compilers. */ |
| 18703 | |
| 18704 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18705 | # include <limits.h> |
| 18706 | #else |
| 18707 | # include <assert.h> |
| 18708 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18709 | |
| 18710 | #undef $ac_func |
| 18711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18712 | /* Override any GCC internal prototype to avoid an error. |
| 18713 | Use char because int might match the return type of a GCC |
| 18714 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18715 | #ifdef __cplusplus |
| 18716 | extern "C" |
| 18717 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18718 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18719 | /* The GNU C library defines this for functions which it implements |
| 18720 | to always fail with ENOSYS. Some functions are actually named |
| 18721 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18722 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18723 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 18724 | #endif |
| 18725 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18726 | int |
| 18727 | main () |
| 18728 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18729 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18730 | ; |
| 18731 | return 0; |
| 18732 | } |
| 18733 | _ACEOF |
| 18734 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18735 | if { (ac_try="$ac_link" |
| 18736 | case "(($ac_try" in |
| 18737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18738 | *) ac_try_echo=$ac_try;; |
| 18739 | esac |
| 18740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18741 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18742 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18744 | rm -f conftest.er1 |
| 18745 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18747 | (exit $ac_status); } && { |
| 18748 | test -z "$ac_c_werror_flag" || |
| 18749 | test ! -s conftest.err |
| 18750 | } && test -s conftest$ac_exeext && |
| 18751 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18752 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18754 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18756 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18757 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18758 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18759 | |
| 18760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18761 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18762 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18763 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18764 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18765 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18766 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18767 | cat >>confdefs.h <<_ACEOF |
| 18768 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18769 | _ACEOF |
| 18770 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18771 | /* confdefs.h. */ |
| 18772 | _ACEOF |
| 18773 | cat confdefs.h >>conftest.$ac_ext |
| 18774 | cat >>conftest.$ac_ext <<_ACEOF |
| 18775 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18776 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18777 | int |
| 18778 | main () |
| 18779 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18780 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18781 | ; |
| 18782 | return 0; |
| 18783 | } |
| 18784 | _ACEOF |
| 18785 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18786 | if { (ac_try="$ac_compile" |
| 18787 | case "(($ac_try" in |
| 18788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18789 | *) ac_try_echo=$ac_try;; |
| 18790 | esac |
| 18791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18792 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18793 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18795 | rm -f conftest.er1 |
| 18796 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18798 | (exit $ac_status); } && { |
| 18799 | test -z "$ac_c_werror_flag" || |
| 18800 | test ! -s conftest.err |
| 18801 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18802 | |
| 18803 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18804 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18805 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18807 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18808 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18809 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18812 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18813 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18814 | |
| 18815 | 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] | 18816 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18817 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18818 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18819 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18820 | |
| 18821 | for ac_func in setpgrp |
| 18822 | do |
| 18823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18824 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18826 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18830 | /* confdefs.h. */ |
| 18831 | _ACEOF |
| 18832 | cat confdefs.h >>conftest.$ac_ext |
| 18833 | cat >>conftest.$ac_ext <<_ACEOF |
| 18834 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18837 | #define $ac_func innocuous_$ac_func |
| 18838 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18839 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18840 | which can conflict with char $ac_func (); below. |
| 18841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18842 | <limits.h> exists even on freestanding compilers. */ |
| 18843 | |
| 18844 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18845 | # include <limits.h> |
| 18846 | #else |
| 18847 | # include <assert.h> |
| 18848 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18849 | |
| 18850 | #undef $ac_func |
| 18851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18852 | /* Override any GCC internal prototype to avoid an error. |
| 18853 | Use char because int might match the return type of a GCC |
| 18854 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18855 | #ifdef __cplusplus |
| 18856 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18857 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18858 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18859 | /* The GNU C library defines this for functions which it implements |
| 18860 | to always fail with ENOSYS. Some functions are actually named |
| 18861 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18862 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18863 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18864 | #endif |
| 18865 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18866 | int |
| 18867 | main () |
| 18868 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18869 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18870 | ; |
| 18871 | return 0; |
| 18872 | } |
| 18873 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18874 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18875 | if { (ac_try="$ac_link" |
| 18876 | case "(($ac_try" in |
| 18877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18878 | *) ac_try_echo=$ac_try;; |
| 18879 | esac |
| 18880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18881 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18882 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18884 | rm -f conftest.er1 |
| 18885 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18887 | (exit $ac_status); } && { |
| 18888 | test -z "$ac_c_werror_flag" || |
| 18889 | test ! -s conftest.err |
| 18890 | } && test -s conftest$ac_exeext && |
| 18891 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18892 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18893 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18894 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18896 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18897 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18898 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18899 | |
| 18900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18901 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18902 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18903 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18904 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18905 | echo "${ECHO_T}$ac_res" >&6; } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18906 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18907 | cat >>confdefs.h <<_ACEOF |
| 18908 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18909 | _ACEOF |
| 18910 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18911 | /* confdefs.h. */ |
| 18912 | _ACEOF |
| 18913 | cat confdefs.h >>conftest.$ac_ext |
| 18914 | cat >>conftest.$ac_ext <<_ACEOF |
| 18915 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18916 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18917 | int |
| 18918 | main () |
| 18919 | { |
| 18920 | setpgrp(0,0); |
| 18921 | ; |
| 18922 | return 0; |
| 18923 | } |
| 18924 | _ACEOF |
| 18925 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18926 | if { (ac_try="$ac_compile" |
| 18927 | case "(($ac_try" in |
| 18928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18929 | *) ac_try_echo=$ac_try;; |
| 18930 | esac |
| 18931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18932 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18935 | rm -f conftest.er1 |
| 18936 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18938 | (exit $ac_status); } && { |
| 18939 | test -z "$ac_c_werror_flag" || |
| 18940 | test ! -s conftest.err |
| 18941 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18942 | |
| 18943 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18944 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18945 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18946 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18947 | |
| 18948 | else |
| 18949 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18951 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18952 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18953 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18954 | |
| 18955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18956 | |
| 18957 | fi |
| 18958 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18960 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18961 | for ac_func in gettimeofday |
| 18962 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18964 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18965 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18966 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18968 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18969 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18970 | /* confdefs.h. */ |
| 18971 | _ACEOF |
| 18972 | cat confdefs.h >>conftest.$ac_ext |
| 18973 | cat >>conftest.$ac_ext <<_ACEOF |
| 18974 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18975 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18976 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18977 | #define $ac_func innocuous_$ac_func |
| 18978 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18979 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18980 | which can conflict with char $ac_func (); below. |
| 18981 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18982 | <limits.h> exists even on freestanding compilers. */ |
| 18983 | |
| 18984 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18985 | # include <limits.h> |
| 18986 | #else |
| 18987 | # include <assert.h> |
| 18988 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18989 | |
| 18990 | #undef $ac_func |
| 18991 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18992 | /* Override any GCC internal prototype to avoid an error. |
| 18993 | Use char because int might match the return type of a GCC |
| 18994 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18995 | #ifdef __cplusplus |
| 18996 | extern "C" |
| 18997 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18998 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18999 | /* The GNU C library defines this for functions which it implements |
| 19000 | to always fail with ENOSYS. Some functions are actually named |
| 19001 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19002 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19003 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19004 | #endif |
| 19005 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19006 | int |
| 19007 | main () |
| 19008 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19009 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19010 | ; |
| 19011 | return 0; |
| 19012 | } |
| 19013 | _ACEOF |
| 19014 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19015 | if { (ac_try="$ac_link" |
| 19016 | case "(($ac_try" in |
| 19017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19018 | *) ac_try_echo=$ac_try;; |
| 19019 | esac |
| 19020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19021 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19022 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19024 | rm -f conftest.er1 |
| 19025 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19027 | (exit $ac_status); } && { |
| 19028 | test -z "$ac_c_werror_flag" || |
| 19029 | test ! -s conftest.err |
| 19030 | } && test -s conftest$ac_exeext && |
| 19031 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19032 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19034 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19036 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19037 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19038 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19039 | |
| 19040 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19041 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19042 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19043 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19044 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19045 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19046 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19047 | cat >>confdefs.h <<_ACEOF |
| 19048 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19049 | _ACEOF |
| 19050 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19051 | /* confdefs.h. */ |
| 19052 | _ACEOF |
| 19053 | cat confdefs.h >>conftest.$ac_ext |
| 19054 | cat >>conftest.$ac_ext <<_ACEOF |
| 19055 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19056 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19057 | int |
| 19058 | main () |
| 19059 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19060 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19061 | ; |
| 19062 | return 0; |
| 19063 | } |
| 19064 | _ACEOF |
| 19065 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19066 | if { (ac_try="$ac_compile" |
| 19067 | case "(($ac_try" in |
| 19068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19069 | *) ac_try_echo=$ac_try;; |
| 19070 | esac |
| 19071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19072 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19073 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19075 | rm -f conftest.er1 |
| 19076 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19078 | (exit $ac_status); } && { |
| 19079 | test -z "$ac_c_werror_flag" || |
| 19080 | test ! -s conftest.err |
| 19081 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19082 | : |
| 19083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19087 | |
| 19088 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19089 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19090 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19092 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19093 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19094 | |
| 19095 | 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] | 19096 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19097 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19098 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19099 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19101 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 19102 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19103 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19104 | /* confdefs.h. */ |
| 19105 | _ACEOF |
| 19106 | cat confdefs.h >>conftest.$ac_ext |
| 19107 | cat >>conftest.$ac_ext <<_ACEOF |
| 19108 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19109 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 19110 | #if defined(MAJOR_IN_MKDEV) |
| 19111 | #include <sys/mkdev.h> |
| 19112 | #elif defined(MAJOR_IN_SYSMACROS) |
| 19113 | #include <sys/sysmacros.h> |
| 19114 | #else |
| 19115 | #include <sys/types.h> |
| 19116 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19117 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19118 | int |
| 19119 | main () |
| 19120 | { |
| 19121 | |
| 19122 | makedev(major(0),minor(0)); |
| 19123 | |
| 19124 | ; |
| 19125 | return 0; |
| 19126 | } |
| 19127 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 19128 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19129 | if { (ac_try="$ac_link" |
| 19130 | case "(($ac_try" in |
| 19131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19132 | *) ac_try_echo=$ac_try;; |
| 19133 | esac |
| 19134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19135 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19136 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19138 | rm -f conftest.er1 |
| 19139 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19141 | (exit $ac_status); } && { |
| 19142 | test -z "$ac_c_werror_flag" || |
| 19143 | test ! -s conftest.err |
| 19144 | } && test -s conftest$ac_exeext && |
| 19145 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19146 | |
| 19147 | |
| 19148 | cat >>confdefs.h <<\_ACEOF |
| 19149 | #define HAVE_DEVICE_MACROS 1 |
| 19150 | _ACEOF |
| 19151 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19152 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19153 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19154 | |
| 19155 | else |
| 19156 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19158 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19159 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19160 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19161 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 19162 | |
| 19163 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19164 | |
| 19165 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19166 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19167 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19168 | # 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] | 19169 | # for [no]getaddrinfo in netdb.h. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19170 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 19171 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19172 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19173 | /* confdefs.h. */ |
| 19174 | _ACEOF |
| 19175 | cat confdefs.h >>conftest.$ac_ext |
| 19176 | cat >>conftest.$ac_ext <<_ACEOF |
| 19177 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19178 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 19179 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19180 | #include <sys/socket.h> |
| 19181 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 19182 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19184 | int |
| 19185 | main () |
| 19186 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19187 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19188 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19190 | ; |
| 19191 | return 0; |
| 19192 | } |
| 19193 | _ACEOF |
| 19194 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19195 | if { (ac_try="$ac_link" |
| 19196 | case "(($ac_try" in |
| 19197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19198 | *) ac_try_echo=$ac_try;; |
| 19199 | esac |
| 19200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19201 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19202 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19204 | rm -f conftest.er1 |
| 19205 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19207 | (exit $ac_status); } && { |
| 19208 | test -z "$ac_c_werror_flag" || |
| 19209 | test ! -s conftest.err |
| 19210 | } && test -s conftest$ac_exeext && |
| 19211 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19212 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19213 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19214 | echo "${ECHO_T}yes" >&6; } |
| 19215 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 19216 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19217 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19218 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 19219 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19220 | buggygetaddrinfo=yes |
| 19221 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19222 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19223 | /* confdefs.h. */ |
| 19224 | _ACEOF |
| 19225 | cat confdefs.h >>conftest.$ac_ext |
| 19226 | cat >>conftest.$ac_ext <<_ACEOF |
| 19227 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19228 | |
| 19229 | #include <sys/types.h> |
| 19230 | #include <netdb.h> |
| 19231 | #include <string.h> |
| 19232 | #include <sys/socket.h> |
| 19233 | #include <netinet/in.h> |
| 19234 | |
| 19235 | main() |
| 19236 | { |
| 19237 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 19238 | struct addrinfo hints, *ai, *aitop; |
| 19239 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 19240 | |
| 19241 | for (passive = 0; passive <= 1; passive++) { |
| 19242 | memset(&hints, 0, sizeof(hints)); |
| 19243 | hints.ai_family = AF_UNSPEC; |
| 19244 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 19245 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 19246 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19247 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 19248 | (void)gai_strerror(gaierr); |
| 19249 | goto bad; |
| 19250 | } |
| 19251 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 19252 | if (ai->ai_addr == NULL || |
| 19253 | ai->ai_addrlen == 0 || |
| 19254 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 19255 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 19256 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 19257 | goto bad; |
| 19258 | } |
| 19259 | switch (ai->ai_family) { |
| 19260 | case AF_INET: |
| 19261 | if (strcmp(strport, "54321") != 0) { |
| 19262 | goto bad; |
| 19263 | } |
| 19264 | if (passive) { |
| 19265 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 19266 | goto bad; |
| 19267 | } |
| 19268 | } else { |
| 19269 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 19270 | goto bad; |
| 19271 | } |
| 19272 | } |
| 19273 | inet4++; |
| 19274 | break; |
| 19275 | case AF_INET6: |
| 19276 | if (strcmp(strport, "54321") != 0) { |
| 19277 | goto bad; |
| 19278 | } |
| 19279 | if (passive) { |
| 19280 | if (strcmp(straddr, "::") != 0) { |
| 19281 | goto bad; |
| 19282 | } |
| 19283 | } else { |
| 19284 | if (strcmp(straddr, "::1") != 0) { |
| 19285 | goto bad; |
| 19286 | } |
| 19287 | } |
| 19288 | inet6++; |
| 19289 | break; |
| 19290 | case AF_UNSPEC: |
| 19291 | goto bad; |
| 19292 | break; |
| 19293 | default: |
| 19294 | /* another family support? */ |
| 19295 | break; |
| 19296 | } |
| 19297 | } |
| 19298 | } |
| 19299 | |
| 19300 | if (!(inet4 == 0 || inet4 == 2)) |
| 19301 | goto bad; |
| 19302 | if (!(inet6 == 0 || inet6 == 2)) |
| 19303 | goto bad; |
| 19304 | |
| 19305 | if (aitop) |
| 19306 | freeaddrinfo(aitop); |
| 19307 | exit(0); |
| 19308 | |
| 19309 | bad: |
| 19310 | if (aitop) |
| 19311 | freeaddrinfo(aitop); |
| 19312 | exit(1); |
| 19313 | } |
| 19314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19315 | _ACEOF |
| 19316 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19317 | if { (ac_try="$ac_link" |
| 19318 | case "(($ac_try" in |
| 19319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19320 | *) ac_try_echo=$ac_try;; |
| 19321 | esac |
| 19322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19323 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19324 | ac_status=$? |
| 19325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19326 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19327 | { (case "(($ac_try" in |
| 19328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19329 | *) ac_try_echo=$ac_try;; |
| 19330 | esac |
| 19331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19332 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19333 | ac_status=$? |
| 19334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19335 | (exit $ac_status); }; }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19336 | { echo "$as_me:$LINENO: result: good" >&5 |
| 19337 | echo "${ECHO_T}good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19338 | buggygetaddrinfo=no |
| 19339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19340 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19341 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19344 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19345 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 19346 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19347 | buggygetaddrinfo=yes |
| 19348 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19349 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19350 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19351 | |
| 19352 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19357 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19358 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19359 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19360 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19361 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19362 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19363 | |
| 19364 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19365 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19366 | |
| 19367 | if test "$buggygetaddrinfo" = "yes"; then |
| 19368 | if test "$ipv6" = "yes"; then |
| 19369 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 19370 | echo ' or you can specify "--disable-ipv6"'. |
| 19371 | exit 1 |
| 19372 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19374 | |
| 19375 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19376 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19377 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 19378 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19379 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19380 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 19381 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19382 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19383 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19384 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19385 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19386 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19389 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19390 | /* confdefs.h. */ |
| 19391 | _ACEOF |
| 19392 | cat confdefs.h >>conftest.$ac_ext |
| 19393 | cat >>conftest.$ac_ext <<_ACEOF |
| 19394 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19395 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19397 | #define $ac_func innocuous_$ac_func |
| 19398 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19399 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19400 | which can conflict with char $ac_func (); below. |
| 19401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19402 | <limits.h> exists even on freestanding compilers. */ |
| 19403 | |
| 19404 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19405 | # include <limits.h> |
| 19406 | #else |
| 19407 | # include <assert.h> |
| 19408 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19409 | |
| 19410 | #undef $ac_func |
| 19411 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19412 | /* Override any GCC internal prototype to avoid an error. |
| 19413 | Use char because int might match the return type of a GCC |
| 19414 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19415 | #ifdef __cplusplus |
| 19416 | extern "C" |
| 19417 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19418 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19419 | /* The GNU C library defines this for functions which it implements |
| 19420 | to always fail with ENOSYS. Some functions are actually named |
| 19421 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19422 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19423 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19424 | #endif |
| 19425 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19426 | int |
| 19427 | main () |
| 19428 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19429 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19430 | ; |
| 19431 | return 0; |
| 19432 | } |
| 19433 | _ACEOF |
| 19434 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19435 | if { (ac_try="$ac_link" |
| 19436 | case "(($ac_try" in |
| 19437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19438 | *) ac_try_echo=$ac_try;; |
| 19439 | esac |
| 19440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19441 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19442 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19444 | rm -f conftest.er1 |
| 19445 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19447 | (exit $ac_status); } && { |
| 19448 | test -z "$ac_c_werror_flag" || |
| 19449 | test ! -s conftest.err |
| 19450 | } && test -s conftest$ac_exeext && |
| 19451 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19452 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19453 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19456 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19457 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19458 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19459 | |
| 19460 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19461 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19462 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19463 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19464 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19465 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19466 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19467 | cat >>confdefs.h <<_ACEOF |
| 19468 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19469 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19470 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19471 | fi |
| 19472 | done |
| 19473 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19474 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19475 | # checks for structures |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19476 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 19477 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19478 | if test "${ac_cv_header_time+set}" = set; then |
| 19479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19481 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19482 | /* confdefs.h. */ |
| 19483 | _ACEOF |
| 19484 | cat confdefs.h >>conftest.$ac_ext |
| 19485 | cat >>conftest.$ac_ext <<_ACEOF |
| 19486 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19487 | #include <sys/types.h> |
| 19488 | #include <sys/time.h> |
| 19489 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19491 | int |
| 19492 | main () |
| 19493 | { |
| 19494 | if ((struct tm *) 0) |
| 19495 | return 0; |
| 19496 | ; |
| 19497 | return 0; |
| 19498 | } |
| 19499 | _ACEOF |
| 19500 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19501 | if { (ac_try="$ac_compile" |
| 19502 | case "(($ac_try" in |
| 19503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19504 | *) ac_try_echo=$ac_try;; |
| 19505 | esac |
| 19506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19507 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19508 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19510 | rm -f conftest.er1 |
| 19511 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19513 | (exit $ac_status); } && { |
| 19514 | test -z "$ac_c_werror_flag" || |
| 19515 | test ! -s conftest.err |
| 19516 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19517 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19519 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19521 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19522 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19523 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19524 | |
| 19525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19526 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19527 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 19528 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19529 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19530 | |
| 19531 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19532 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19533 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19534 | |
| 19535 | fi |
| 19536 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19537 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 19538 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19539 | if test "${ac_cv_struct_tm+set}" = set; then |
| 19540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19541 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19543 | /* confdefs.h. */ |
| 19544 | _ACEOF |
| 19545 | cat confdefs.h >>conftest.$ac_ext |
| 19546 | cat >>conftest.$ac_ext <<_ACEOF |
| 19547 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19548 | #include <sys/types.h> |
| 19549 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19551 | int |
| 19552 | main () |
| 19553 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19554 | struct tm tm; |
| 19555 | int *p = &tm.tm_sec; |
| 19556 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19557 | ; |
| 19558 | return 0; |
| 19559 | } |
| 19560 | _ACEOF |
| 19561 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19562 | if { (ac_try="$ac_compile" |
| 19563 | case "(($ac_try" in |
| 19564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19565 | *) ac_try_echo=$ac_try;; |
| 19566 | esac |
| 19567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19568 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19569 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19571 | rm -f conftest.er1 |
| 19572 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19574 | (exit $ac_status); } && { |
| 19575 | test -z "$ac_c_werror_flag" || |
| 19576 | test ! -s conftest.err |
| 19577 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19578 | ac_cv_struct_tm=time.h |
| 19579 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19582 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19583 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19584 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19585 | |
| 19586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19587 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19588 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 19589 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19590 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19591 | |
| 19592 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19593 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19594 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19595 | |
| 19596 | fi |
| 19597 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19598 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 19599 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19600 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 19601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19602 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19604 | /* confdefs.h. */ |
| 19605 | _ACEOF |
| 19606 | cat confdefs.h >>conftest.$ac_ext |
| 19607 | cat >>conftest.$ac_ext <<_ACEOF |
| 19608 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19609 | #include <sys/types.h> |
| 19610 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19611 | |
| 19612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19613 | int |
| 19614 | main () |
| 19615 | { |
| 19616 | static struct tm ac_aggr; |
| 19617 | if (ac_aggr.tm_zone) |
| 19618 | return 0; |
| 19619 | ; |
| 19620 | return 0; |
| 19621 | } |
| 19622 | _ACEOF |
| 19623 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19624 | if { (ac_try="$ac_compile" |
| 19625 | case "(($ac_try" in |
| 19626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19627 | *) ac_try_echo=$ac_try;; |
| 19628 | esac |
| 19629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19630 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19631 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19633 | rm -f conftest.er1 |
| 19634 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19636 | (exit $ac_status); } && { |
| 19637 | test -z "$ac_c_werror_flag" || |
| 19638 | test ! -s conftest.err |
| 19639 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19640 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19642 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19644 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19645 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19646 | /* confdefs.h. */ |
| 19647 | _ACEOF |
| 19648 | cat confdefs.h >>conftest.$ac_ext |
| 19649 | cat >>conftest.$ac_ext <<_ACEOF |
| 19650 | /* end confdefs.h. */ |
| 19651 | #include <sys/types.h> |
| 19652 | #include <$ac_cv_struct_tm> |
| 19653 | |
| 19654 | |
| 19655 | int |
| 19656 | main () |
| 19657 | { |
| 19658 | static struct tm ac_aggr; |
| 19659 | if (sizeof ac_aggr.tm_zone) |
| 19660 | return 0; |
| 19661 | ; |
| 19662 | return 0; |
| 19663 | } |
| 19664 | _ACEOF |
| 19665 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19666 | if { (ac_try="$ac_compile" |
| 19667 | case "(($ac_try" in |
| 19668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19669 | *) ac_try_echo=$ac_try;; |
| 19670 | esac |
| 19671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19672 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19673 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19675 | rm -f conftest.er1 |
| 19676 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19678 | (exit $ac_status); } && { |
| 19679 | test -z "$ac_c_werror_flag" || |
| 19680 | test ! -s conftest.err |
| 19681 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19682 | ac_cv_member_struct_tm_tm_zone=yes |
| 19683 | else |
| 19684 | echo "$as_me: failed program was:" >&5 |
| 19685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19686 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19687 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19688 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19689 | |
| 19690 | 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] | 19691 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19692 | |
| 19693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19694 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19695 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 19696 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19697 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 19698 | |
| 19699 | cat >>confdefs.h <<_ACEOF |
| 19700 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 19701 | _ACEOF |
| 19702 | |
| 19703 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19704 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19706 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 19707 | |
| 19708 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19709 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19710 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19711 | |
| 19712 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19713 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 19714 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 19715 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 19716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19717 | else |
| 19718 | cat >conftest.$ac_ext <<_ACEOF |
| 19719 | /* confdefs.h. */ |
| 19720 | _ACEOF |
| 19721 | cat confdefs.h >>conftest.$ac_ext |
| 19722 | cat >>conftest.$ac_ext <<_ACEOF |
| 19723 | /* end confdefs.h. */ |
| 19724 | #include <time.h> |
| 19725 | |
| 19726 | int |
| 19727 | main () |
| 19728 | { |
| 19729 | #ifndef tzname |
| 19730 | (void) tzname; |
| 19731 | #endif |
| 19732 | |
| 19733 | ; |
| 19734 | return 0; |
| 19735 | } |
| 19736 | _ACEOF |
| 19737 | rm -f conftest.$ac_objext |
| 19738 | if { (ac_try="$ac_compile" |
| 19739 | case "(($ac_try" in |
| 19740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19741 | *) ac_try_echo=$ac_try;; |
| 19742 | esac |
| 19743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19744 | (eval "$ac_compile") 2>conftest.er1 |
| 19745 | ac_status=$? |
| 19746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19747 | rm -f conftest.er1 |
| 19748 | cat conftest.err >&5 |
| 19749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19750 | (exit $ac_status); } && { |
| 19751 | test -z "$ac_c_werror_flag" || |
| 19752 | test ! -s conftest.err |
| 19753 | } && test -s conftest.$ac_objext; then |
| 19754 | ac_cv_have_decl_tzname=yes |
| 19755 | else |
| 19756 | echo "$as_me: failed program was:" >&5 |
| 19757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19758 | |
| 19759 | ac_cv_have_decl_tzname=no |
| 19760 | fi |
| 19761 | |
| 19762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19763 | fi |
| 19764 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 19765 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 19766 | if test $ac_cv_have_decl_tzname = yes; then |
| 19767 | |
| 19768 | cat >>confdefs.h <<_ACEOF |
| 19769 | #define HAVE_DECL_TZNAME 1 |
| 19770 | _ACEOF |
| 19771 | |
| 19772 | |
| 19773 | else |
| 19774 | cat >>confdefs.h <<_ACEOF |
| 19775 | #define HAVE_DECL_TZNAME 0 |
| 19776 | _ACEOF |
| 19777 | |
| 19778 | |
| 19779 | fi |
| 19780 | |
| 19781 | |
| 19782 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 19783 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19784 | if test "${ac_cv_var_tzname+set}" = set; then |
| 19785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19788 | /* confdefs.h. */ |
| 19789 | _ACEOF |
| 19790 | cat confdefs.h >>conftest.$ac_ext |
| 19791 | cat >>conftest.$ac_ext <<_ACEOF |
| 19792 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19793 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19794 | #if !HAVE_DECL_TZNAME |
| 19795 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19796 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19798 | int |
| 19799 | main () |
| 19800 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19801 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19802 | ; |
| 19803 | return 0; |
| 19804 | } |
| 19805 | _ACEOF |
| 19806 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19807 | if { (ac_try="$ac_link" |
| 19808 | case "(($ac_try" in |
| 19809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19810 | *) ac_try_echo=$ac_try;; |
| 19811 | esac |
| 19812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19813 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19814 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19816 | rm -f conftest.er1 |
| 19817 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19819 | (exit $ac_status); } && { |
| 19820 | test -z "$ac_c_werror_flag" || |
| 19821 | test ! -s conftest.err |
| 19822 | } && test -s conftest$ac_exeext && |
| 19823 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19824 | ac_cv_var_tzname=yes |
| 19825 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19826 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19828 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19829 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19830 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19831 | |
| 19832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19833 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19834 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19835 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 19836 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19837 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19838 | |
| 19839 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19840 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19841 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19842 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19843 | fi |
| 19844 | fi |
| 19845 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19846 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 19847 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19848 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 19849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19850 | else |
| 19851 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19852 | /* confdefs.h. */ |
| 19853 | _ACEOF |
| 19854 | cat confdefs.h >>conftest.$ac_ext |
| 19855 | cat >>conftest.$ac_ext <<_ACEOF |
| 19856 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19857 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19858 | int |
| 19859 | main () |
| 19860 | { |
| 19861 | static struct stat ac_aggr; |
| 19862 | if (ac_aggr.st_rdev) |
| 19863 | return 0; |
| 19864 | ; |
| 19865 | return 0; |
| 19866 | } |
| 19867 | _ACEOF |
| 19868 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19869 | if { (ac_try="$ac_compile" |
| 19870 | case "(($ac_try" in |
| 19871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19872 | *) ac_try_echo=$ac_try;; |
| 19873 | esac |
| 19874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19875 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19876 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19878 | rm -f conftest.er1 |
| 19879 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19881 | (exit $ac_status); } && { |
| 19882 | test -z "$ac_c_werror_flag" || |
| 19883 | test ! -s conftest.err |
| 19884 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19885 | ac_cv_member_struct_stat_st_rdev=yes |
| 19886 | else |
| 19887 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19889 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19890 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19891 | /* confdefs.h. */ |
| 19892 | _ACEOF |
| 19893 | cat confdefs.h >>conftest.$ac_ext |
| 19894 | cat >>conftest.$ac_ext <<_ACEOF |
| 19895 | /* end confdefs.h. */ |
| 19896 | $ac_includes_default |
| 19897 | int |
| 19898 | main () |
| 19899 | { |
| 19900 | static struct stat ac_aggr; |
| 19901 | if (sizeof ac_aggr.st_rdev) |
| 19902 | return 0; |
| 19903 | ; |
| 19904 | return 0; |
| 19905 | } |
| 19906 | _ACEOF |
| 19907 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19908 | if { (ac_try="$ac_compile" |
| 19909 | case "(($ac_try" in |
| 19910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19911 | *) ac_try_echo=$ac_try;; |
| 19912 | esac |
| 19913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19914 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19915 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19917 | rm -f conftest.er1 |
| 19918 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19920 | (exit $ac_status); } && { |
| 19921 | test -z "$ac_c_werror_flag" || |
| 19922 | test ! -s conftest.err |
| 19923 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19924 | ac_cv_member_struct_stat_st_rdev=yes |
| 19925 | else |
| 19926 | echo "$as_me: failed program was:" >&5 |
| 19927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19928 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19929 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19930 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19931 | |
| 19932 | 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] | 19933 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19934 | |
| 19935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19936 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19937 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 19938 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19939 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 19940 | |
| 19941 | cat >>confdefs.h <<_ACEOF |
| 19942 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 19943 | _ACEOF |
| 19944 | |
| 19945 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19946 | fi |
| 19947 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19948 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 19949 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19950 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 19951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19953 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19954 | /* confdefs.h. */ |
| 19955 | _ACEOF |
| 19956 | cat confdefs.h >>conftest.$ac_ext |
| 19957 | cat >>conftest.$ac_ext <<_ACEOF |
| 19958 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19959 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19960 | int |
| 19961 | main () |
| 19962 | { |
| 19963 | static struct stat ac_aggr; |
| 19964 | if (ac_aggr.st_blksize) |
| 19965 | return 0; |
| 19966 | ; |
| 19967 | return 0; |
| 19968 | } |
| 19969 | _ACEOF |
| 19970 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19971 | if { (ac_try="$ac_compile" |
| 19972 | case "(($ac_try" in |
| 19973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19974 | *) ac_try_echo=$ac_try;; |
| 19975 | esac |
| 19976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19977 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19978 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19980 | rm -f conftest.er1 |
| 19981 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19983 | (exit $ac_status); } && { |
| 19984 | test -z "$ac_c_werror_flag" || |
| 19985 | test ! -s conftest.err |
| 19986 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19987 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19989 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19991 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19992 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19993 | /* confdefs.h. */ |
| 19994 | _ACEOF |
| 19995 | cat confdefs.h >>conftest.$ac_ext |
| 19996 | cat >>conftest.$ac_ext <<_ACEOF |
| 19997 | /* end confdefs.h. */ |
| 19998 | $ac_includes_default |
| 19999 | int |
| 20000 | main () |
| 20001 | { |
| 20002 | static struct stat ac_aggr; |
| 20003 | if (sizeof ac_aggr.st_blksize) |
| 20004 | return 0; |
| 20005 | ; |
| 20006 | return 0; |
| 20007 | } |
| 20008 | _ACEOF |
| 20009 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20010 | if { (ac_try="$ac_compile" |
| 20011 | case "(($ac_try" in |
| 20012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20013 | *) ac_try_echo=$ac_try;; |
| 20014 | esac |
| 20015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20016 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20017 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20019 | rm -f conftest.er1 |
| 20020 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20022 | (exit $ac_status); } && { |
| 20023 | test -z "$ac_c_werror_flag" || |
| 20024 | test ! -s conftest.err |
| 20025 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20026 | ac_cv_member_struct_stat_st_blksize=yes |
| 20027 | else |
| 20028 | echo "$as_me: failed program was:" >&5 |
| 20029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20030 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20031 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20032 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20033 | |
| 20034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20035 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20036 | |
| 20037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20038 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20039 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 20040 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20041 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20043 | cat >>confdefs.h <<_ACEOF |
| 20044 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 20045 | _ACEOF |
| 20046 | |
| 20047 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20048 | fi |
| 20049 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20050 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 20051 | echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20052 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 20053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20054 | else |
| 20055 | cat >conftest.$ac_ext <<_ACEOF |
| 20056 | /* confdefs.h. */ |
| 20057 | _ACEOF |
| 20058 | cat confdefs.h >>conftest.$ac_ext |
| 20059 | cat >>conftest.$ac_ext <<_ACEOF |
| 20060 | /* end confdefs.h. */ |
| 20061 | $ac_includes_default |
| 20062 | int |
| 20063 | main () |
| 20064 | { |
| 20065 | static struct stat ac_aggr; |
| 20066 | if (ac_aggr.st_flags) |
| 20067 | return 0; |
| 20068 | ; |
| 20069 | return 0; |
| 20070 | } |
| 20071 | _ACEOF |
| 20072 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20073 | if { (ac_try="$ac_compile" |
| 20074 | case "(($ac_try" in |
| 20075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20076 | *) ac_try_echo=$ac_try;; |
| 20077 | esac |
| 20078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20079 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20080 | ac_status=$? |
| 20081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20082 | rm -f conftest.er1 |
| 20083 | cat conftest.err >&5 |
| 20084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20085 | (exit $ac_status); } && { |
| 20086 | test -z "$ac_c_werror_flag" || |
| 20087 | test ! -s conftest.err |
| 20088 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20089 | ac_cv_member_struct_stat_st_flags=yes |
| 20090 | else |
| 20091 | echo "$as_me: failed program was:" >&5 |
| 20092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20093 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20094 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20095 | /* confdefs.h. */ |
| 20096 | _ACEOF |
| 20097 | cat confdefs.h >>conftest.$ac_ext |
| 20098 | cat >>conftest.$ac_ext <<_ACEOF |
| 20099 | /* end confdefs.h. */ |
| 20100 | $ac_includes_default |
| 20101 | int |
| 20102 | main () |
| 20103 | { |
| 20104 | static struct stat ac_aggr; |
| 20105 | if (sizeof ac_aggr.st_flags) |
| 20106 | return 0; |
| 20107 | ; |
| 20108 | return 0; |
| 20109 | } |
| 20110 | _ACEOF |
| 20111 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20112 | if { (ac_try="$ac_compile" |
| 20113 | case "(($ac_try" in |
| 20114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20115 | *) ac_try_echo=$ac_try;; |
| 20116 | esac |
| 20117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20118 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20119 | ac_status=$? |
| 20120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20121 | rm -f conftest.er1 |
| 20122 | cat conftest.err >&5 |
| 20123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20124 | (exit $ac_status); } && { |
| 20125 | test -z "$ac_c_werror_flag" || |
| 20126 | test ! -s conftest.err |
| 20127 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20128 | ac_cv_member_struct_stat_st_flags=yes |
| 20129 | else |
| 20130 | echo "$as_me: failed program was:" >&5 |
| 20131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20132 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20133 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20134 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20135 | |
| 20136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20137 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20138 | |
| 20139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20141 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 20142 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 20143 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 20144 | |
| 20145 | cat >>confdefs.h <<_ACEOF |
| 20146 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 20147 | _ACEOF |
| 20148 | |
| 20149 | |
| 20150 | fi |
| 20151 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20152 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 20153 | echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20154 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 20155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20156 | else |
| 20157 | cat >conftest.$ac_ext <<_ACEOF |
| 20158 | /* confdefs.h. */ |
| 20159 | _ACEOF |
| 20160 | cat confdefs.h >>conftest.$ac_ext |
| 20161 | cat >>conftest.$ac_ext <<_ACEOF |
| 20162 | /* end confdefs.h. */ |
| 20163 | $ac_includes_default |
| 20164 | int |
| 20165 | main () |
| 20166 | { |
| 20167 | static struct stat ac_aggr; |
| 20168 | if (ac_aggr.st_gen) |
| 20169 | return 0; |
| 20170 | ; |
| 20171 | return 0; |
| 20172 | } |
| 20173 | _ACEOF |
| 20174 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20175 | if { (ac_try="$ac_compile" |
| 20176 | case "(($ac_try" in |
| 20177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20178 | *) ac_try_echo=$ac_try;; |
| 20179 | esac |
| 20180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20181 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20182 | ac_status=$? |
| 20183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20184 | rm -f conftest.er1 |
| 20185 | cat conftest.err >&5 |
| 20186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20187 | (exit $ac_status); } && { |
| 20188 | test -z "$ac_c_werror_flag" || |
| 20189 | test ! -s conftest.err |
| 20190 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20191 | ac_cv_member_struct_stat_st_gen=yes |
| 20192 | else |
| 20193 | echo "$as_me: failed program was:" >&5 |
| 20194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20195 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20196 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20197 | /* confdefs.h. */ |
| 20198 | _ACEOF |
| 20199 | cat confdefs.h >>conftest.$ac_ext |
| 20200 | cat >>conftest.$ac_ext <<_ACEOF |
| 20201 | /* end confdefs.h. */ |
| 20202 | $ac_includes_default |
| 20203 | int |
| 20204 | main () |
| 20205 | { |
| 20206 | static struct stat ac_aggr; |
| 20207 | if (sizeof ac_aggr.st_gen) |
| 20208 | return 0; |
| 20209 | ; |
| 20210 | return 0; |
| 20211 | } |
| 20212 | _ACEOF |
| 20213 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20214 | if { (ac_try="$ac_compile" |
| 20215 | case "(($ac_try" in |
| 20216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20217 | *) ac_try_echo=$ac_try;; |
| 20218 | esac |
| 20219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20220 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20221 | ac_status=$? |
| 20222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20223 | rm -f conftest.er1 |
| 20224 | cat conftest.err >&5 |
| 20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20226 | (exit $ac_status); } && { |
| 20227 | test -z "$ac_c_werror_flag" || |
| 20228 | test ! -s conftest.err |
| 20229 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20230 | ac_cv_member_struct_stat_st_gen=yes |
| 20231 | else |
| 20232 | echo "$as_me: failed program was:" >&5 |
| 20233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20234 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20235 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20236 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20237 | |
| 20238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20239 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20240 | |
| 20241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20242 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20243 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 20244 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20245 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 20246 | |
| 20247 | cat >>confdefs.h <<_ACEOF |
| 20248 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 20249 | _ACEOF |
| 20250 | |
| 20251 | |
| 20252 | fi |
| 20253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20254 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 20255 | echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20256 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 20257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20258 | else |
| 20259 | cat >conftest.$ac_ext <<_ACEOF |
| 20260 | /* confdefs.h. */ |
| 20261 | _ACEOF |
| 20262 | cat confdefs.h >>conftest.$ac_ext |
| 20263 | cat >>conftest.$ac_ext <<_ACEOF |
| 20264 | /* end confdefs.h. */ |
| 20265 | $ac_includes_default |
| 20266 | int |
| 20267 | main () |
| 20268 | { |
| 20269 | static struct stat ac_aggr; |
| 20270 | if (ac_aggr.st_birthtime) |
| 20271 | return 0; |
| 20272 | ; |
| 20273 | return 0; |
| 20274 | } |
| 20275 | _ACEOF |
| 20276 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20277 | if { (ac_try="$ac_compile" |
| 20278 | case "(($ac_try" in |
| 20279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20280 | *) ac_try_echo=$ac_try;; |
| 20281 | esac |
| 20282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20283 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20284 | ac_status=$? |
| 20285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20286 | rm -f conftest.er1 |
| 20287 | cat conftest.err >&5 |
| 20288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20289 | (exit $ac_status); } && { |
| 20290 | test -z "$ac_c_werror_flag" || |
| 20291 | test ! -s conftest.err |
| 20292 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20293 | ac_cv_member_struct_stat_st_birthtime=yes |
| 20294 | else |
| 20295 | echo "$as_me: failed program was:" >&5 |
| 20296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20297 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20298 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20299 | /* confdefs.h. */ |
| 20300 | _ACEOF |
| 20301 | cat confdefs.h >>conftest.$ac_ext |
| 20302 | cat >>conftest.$ac_ext <<_ACEOF |
| 20303 | /* end confdefs.h. */ |
| 20304 | $ac_includes_default |
| 20305 | int |
| 20306 | main () |
| 20307 | { |
| 20308 | static struct stat ac_aggr; |
| 20309 | if (sizeof ac_aggr.st_birthtime) |
| 20310 | return 0; |
| 20311 | ; |
| 20312 | return 0; |
| 20313 | } |
| 20314 | _ACEOF |
| 20315 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20316 | if { (ac_try="$ac_compile" |
| 20317 | case "(($ac_try" in |
| 20318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20319 | *) ac_try_echo=$ac_try;; |
| 20320 | esac |
| 20321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20322 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20323 | ac_status=$? |
| 20324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20325 | rm -f conftest.er1 |
| 20326 | cat conftest.err >&5 |
| 20327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20328 | (exit $ac_status); } && { |
| 20329 | test -z "$ac_c_werror_flag" || |
| 20330 | test ! -s conftest.err |
| 20331 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20332 | ac_cv_member_struct_stat_st_birthtime=yes |
| 20333 | else |
| 20334 | echo "$as_me: failed program was:" >&5 |
| 20335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20336 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20337 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20338 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20339 | |
| 20340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20341 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20342 | |
| 20343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20344 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20345 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 20346 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20347 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 20348 | |
| 20349 | cat >>confdefs.h <<_ACEOF |
| 20350 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 20351 | _ACEOF |
| 20352 | |
| 20353 | |
| 20354 | fi |
| 20355 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20356 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 20357 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20358 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 20359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20360 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20361 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20362 | /* confdefs.h. */ |
| 20363 | _ACEOF |
| 20364 | cat confdefs.h >>conftest.$ac_ext |
| 20365 | cat >>conftest.$ac_ext <<_ACEOF |
| 20366 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20367 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20368 | int |
| 20369 | main () |
| 20370 | { |
| 20371 | static struct stat ac_aggr; |
| 20372 | if (ac_aggr.st_blocks) |
| 20373 | return 0; |
| 20374 | ; |
| 20375 | return 0; |
| 20376 | } |
| 20377 | _ACEOF |
| 20378 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20379 | if { (ac_try="$ac_compile" |
| 20380 | case "(($ac_try" in |
| 20381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20382 | *) ac_try_echo=$ac_try;; |
| 20383 | esac |
| 20384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20385 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20386 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20388 | rm -f conftest.er1 |
| 20389 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20391 | (exit $ac_status); } && { |
| 20392 | test -z "$ac_c_werror_flag" || |
| 20393 | test ! -s conftest.err |
| 20394 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20395 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20396 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20397 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20399 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20400 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20401 | /* confdefs.h. */ |
| 20402 | _ACEOF |
| 20403 | cat confdefs.h >>conftest.$ac_ext |
| 20404 | cat >>conftest.$ac_ext <<_ACEOF |
| 20405 | /* end confdefs.h. */ |
| 20406 | $ac_includes_default |
| 20407 | int |
| 20408 | main () |
| 20409 | { |
| 20410 | static struct stat ac_aggr; |
| 20411 | if (sizeof ac_aggr.st_blocks) |
| 20412 | return 0; |
| 20413 | ; |
| 20414 | return 0; |
| 20415 | } |
| 20416 | _ACEOF |
| 20417 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20418 | if { (ac_try="$ac_compile" |
| 20419 | case "(($ac_try" in |
| 20420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20421 | *) ac_try_echo=$ac_try;; |
| 20422 | esac |
| 20423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20424 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20425 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20427 | rm -f conftest.er1 |
| 20428 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20430 | (exit $ac_status); } && { |
| 20431 | test -z "$ac_c_werror_flag" || |
| 20432 | test ! -s conftest.err |
| 20433 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20434 | ac_cv_member_struct_stat_st_blocks=yes |
| 20435 | else |
| 20436 | echo "$as_me: failed program was:" >&5 |
| 20437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20438 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20439 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20440 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20441 | |
| 20442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20443 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20444 | |
| 20445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20446 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20447 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 20448 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20449 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20451 | cat >>confdefs.h <<_ACEOF |
| 20452 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 20453 | _ACEOF |
| 20454 | |
| 20455 | |
| 20456 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20457 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20458 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20459 | |
| 20460 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20461 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20462 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20463 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 20464 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20465 | esac |
| 20466 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 20467 | fi |
| 20468 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20470 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20471 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 20472 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20473 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 20474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20477 | /* confdefs.h. */ |
| 20478 | _ACEOF |
| 20479 | cat confdefs.h >>conftest.$ac_ext |
| 20480 | cat >>conftest.$ac_ext <<_ACEOF |
| 20481 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20482 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20483 | int |
| 20484 | main () |
| 20485 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20486 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20487 | ; |
| 20488 | return 0; |
| 20489 | } |
| 20490 | _ACEOF |
| 20491 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20492 | if { (ac_try="$ac_compile" |
| 20493 | case "(($ac_try" in |
| 20494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20495 | *) ac_try_echo=$ac_try;; |
| 20496 | esac |
| 20497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20498 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20499 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20501 | rm -f conftest.er1 |
| 20502 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20504 | (exit $ac_status); } && { |
| 20505 | test -z "$ac_c_werror_flag" || |
| 20506 | test ! -s conftest.err |
| 20507 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20508 | ac_cv_header_time_altzone=yes |
| 20509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20510 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20512 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20513 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20514 | fi |
| 20515 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20517 | fi |
| 20518 | |
| 20519 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 20520 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20521 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20522 | |
| 20523 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20524 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20525 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20526 | |
| 20527 | fi |
| 20528 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20529 | was_it_defined=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20530 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 20531 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20533 | /* confdefs.h. */ |
| 20534 | _ACEOF |
| 20535 | cat confdefs.h >>conftest.$ac_ext |
| 20536 | cat >>conftest.$ac_ext <<_ACEOF |
| 20537 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20538 | |
| 20539 | #include <sys/types.h> |
| 20540 | #include <sys/select.h> |
| 20541 | #include <sys/time.h> |
| 20542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20543 | int |
| 20544 | main () |
| 20545 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20546 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20547 | ; |
| 20548 | return 0; |
| 20549 | } |
| 20550 | _ACEOF |
| 20551 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20552 | if { (ac_try="$ac_compile" |
| 20553 | case "(($ac_try" in |
| 20554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20555 | *) ac_try_echo=$ac_try;; |
| 20556 | esac |
| 20557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20558 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20559 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20561 | rm -f conftest.er1 |
| 20562 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20564 | (exit $ac_status); } && { |
| 20565 | test -z "$ac_c_werror_flag" || |
| 20566 | test ! -s conftest.err |
| 20567 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20568 | |
| 20569 | |
| 20570 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20571 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20572 | _ACEOF |
| 20573 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20574 | was_it_defined=yes |
| 20575 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20579 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 20580 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20581 | fi |
| 20582 | |
| 20583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20584 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 20585 | echo "${ECHO_T}$was_it_defined" >&6; } |
| 20586 | |
| 20587 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 20588 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20589 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 20590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20593 | /* confdefs.h. */ |
| 20594 | _ACEOF |
| 20595 | cat confdefs.h >>conftest.$ac_ext |
| 20596 | cat >>conftest.$ac_ext <<_ACEOF |
| 20597 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20598 | |
| 20599 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20600 | int |
| 20601 | main () |
| 20602 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20603 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20604 | ; |
| 20605 | return 0; |
| 20606 | } |
| 20607 | _ACEOF |
| 20608 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20609 | if { (ac_try="$ac_compile" |
| 20610 | case "(($ac_try" in |
| 20611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20612 | *) ac_try_echo=$ac_try;; |
| 20613 | esac |
| 20614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20615 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20618 | rm -f conftest.er1 |
| 20619 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20621 | (exit $ac_status); } && { |
| 20622 | test -z "$ac_c_werror_flag" || |
| 20623 | test ! -s conftest.err |
| 20624 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20625 | ac_cv_struct_addrinfo=yes |
| 20626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20629 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20630 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20631 | fi |
| 20632 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20634 | fi |
| 20635 | |
| 20636 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 20637 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20638 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20639 | |
| 20640 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20641 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20642 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20643 | |
| 20644 | fi |
| 20645 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20646 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 20647 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20648 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 20649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20652 | /* confdefs.h. */ |
| 20653 | _ACEOF |
| 20654 | cat confdefs.h >>conftest.$ac_ext |
| 20655 | cat >>conftest.$ac_ext <<_ACEOF |
| 20656 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20657 | |
| 20658 | # include <sys/types.h> |
| 20659 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20660 | int |
| 20661 | main () |
| 20662 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20663 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20664 | ; |
| 20665 | return 0; |
| 20666 | } |
| 20667 | _ACEOF |
| 20668 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20669 | if { (ac_try="$ac_compile" |
| 20670 | case "(($ac_try" in |
| 20671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20672 | *) ac_try_echo=$ac_try;; |
| 20673 | esac |
| 20674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20675 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20676 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20678 | rm -f conftest.er1 |
| 20679 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20681 | (exit $ac_status); } && { |
| 20682 | test -z "$ac_c_werror_flag" || |
| 20683 | test ! -s conftest.err |
| 20684 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20685 | ac_cv_struct_sockaddr_storage=yes |
| 20686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20689 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20690 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20691 | fi |
| 20692 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20694 | fi |
| 20695 | |
| 20696 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 20697 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20698 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20699 | |
| 20700 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20701 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20702 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20703 | |
| 20704 | fi |
| 20705 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20706 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20707 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20708 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20709 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 20710 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20711 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 20712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20714 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20715 | /* confdefs.h. */ |
| 20716 | _ACEOF |
| 20717 | cat confdefs.h >>conftest.$ac_ext |
| 20718 | cat >>conftest.$ac_ext <<_ACEOF |
| 20719 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20720 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20721 | int |
| 20722 | main () |
| 20723 | { |
| 20724 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 20725 | test_array [0] = 0 |
| 20726 | |
| 20727 | ; |
| 20728 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20729 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20730 | _ACEOF |
| 20731 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20732 | if { (ac_try="$ac_compile" |
| 20733 | case "(($ac_try" in |
| 20734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20735 | *) ac_try_echo=$ac_try;; |
| 20736 | esac |
| 20737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20738 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20739 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20741 | rm -f conftest.er1 |
| 20742 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20744 | (exit $ac_status); } && { |
| 20745 | test -z "$ac_c_werror_flag" || |
| 20746 | test ! -s conftest.err |
| 20747 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20748 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20749 | else |
| 20750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20752 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20753 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20754 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20755 | |
| 20756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20757 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20758 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 20759 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20760 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20761 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20762 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20763 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20764 | |
| 20765 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20766 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20767 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 20768 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20769 | if test "${ac_cv_c_const+set}" = set; then |
| 20770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20771 | else |
| 20772 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20773 | /* confdefs.h. */ |
| 20774 | _ACEOF |
| 20775 | cat confdefs.h >>conftest.$ac_ext |
| 20776 | cat >>conftest.$ac_ext <<_ACEOF |
| 20777 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20779 | int |
| 20780 | main () |
| 20781 | { |
| 20782 | /* FIXME: Include the comments suggested by Paul. */ |
| 20783 | #ifndef __cplusplus |
| 20784 | /* Ultrix mips cc rejects this. */ |
| 20785 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20786 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20787 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20788 | char const *const *pcpcc; |
| 20789 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20790 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 20791 | struct point {int x, y;}; |
| 20792 | static struct point const zero = {0,0}; |
| 20793 | /* AIX XL C 1.02.0.0 rejects this. |
| 20794 | It does not let you subtract one const X* pointer from another in |
| 20795 | an arm of an if-expression whose if-part is not a constant |
| 20796 | expression */ |
| 20797 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20798 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20799 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20800 | ++pcpcc; |
| 20801 | ppc = (char**) pcpcc; |
| 20802 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20803 | { /* SCO 3.2v4 cc rejects this. */ |
| 20804 | char *t; |
| 20805 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20807 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20808 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20809 | } |
| 20810 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 20811 | int x[] = {25, 17}; |
| 20812 | const int *foo = &x[0]; |
| 20813 | ++foo; |
| 20814 | } |
| 20815 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 20816 | typedef const int *iptr; |
| 20817 | iptr p = 0; |
| 20818 | ++p; |
| 20819 | } |
| 20820 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 20821 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 20822 | struct s { int j; const int *ap[3]; }; |
| 20823 | struct s *b; b->j = 5; |
| 20824 | } |
| 20825 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 20826 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20827 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20828 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20829 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20830 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20832 | ; |
| 20833 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20834 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20835 | _ACEOF |
| 20836 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20837 | if { (ac_try="$ac_compile" |
| 20838 | case "(($ac_try" in |
| 20839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20840 | *) ac_try_echo=$ac_try;; |
| 20841 | esac |
| 20842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20843 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20844 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20846 | rm -f conftest.er1 |
| 20847 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20849 | (exit $ac_status); } && { |
| 20850 | test -z "$ac_c_werror_flag" || |
| 20851 | test ! -s conftest.err |
| 20852 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20853 | ac_cv_c_const=yes |
| 20854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20857 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20858 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20859 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20860 | |
| 20861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20862 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20863 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 20864 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20865 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20866 | |
| 20867 | cat >>confdefs.h <<\_ACEOF |
| 20868 | #define const |
| 20869 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20870 | |
| 20871 | fi |
| 20872 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20873 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20874 | works=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20875 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 20876 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20878 | /* confdefs.h. */ |
| 20879 | _ACEOF |
| 20880 | cat confdefs.h >>conftest.$ac_ext |
| 20881 | cat >>conftest.$ac_ext <<_ACEOF |
| 20882 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20884 | int |
| 20885 | main () |
| 20886 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20887 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20888 | ; |
| 20889 | return 0; |
| 20890 | } |
| 20891 | _ACEOF |
| 20892 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20893 | if { (ac_try="$ac_compile" |
| 20894 | case "(($ac_try" in |
| 20895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20896 | *) ac_try_echo=$ac_try;; |
| 20897 | esac |
| 20898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20899 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20900 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20902 | rm -f conftest.er1 |
| 20903 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20905 | (exit $ac_status); } && { |
| 20906 | test -z "$ac_c_werror_flag" || |
| 20907 | test ! -s conftest.err |
| 20908 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20909 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20911 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20914 | |
| 20915 | cat >>confdefs.h <<\_ACEOF |
| 20916 | #define volatile |
| 20917 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20918 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20919 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20920 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20921 | |
| 20922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20923 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 20924 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20925 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20926 | works=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20927 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 20928 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20929 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20930 | /* confdefs.h. */ |
| 20931 | _ACEOF |
| 20932 | cat confdefs.h >>conftest.$ac_ext |
| 20933 | cat >>conftest.$ac_ext <<_ACEOF |
| 20934 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 20935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20936 | int |
| 20937 | main () |
| 20938 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20939 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20940 | ; |
| 20941 | return 0; |
| 20942 | } |
| 20943 | _ACEOF |
| 20944 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20945 | if { (ac_try="$ac_compile" |
| 20946 | case "(($ac_try" in |
| 20947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20948 | *) ac_try_echo=$ac_try;; |
| 20949 | esac |
| 20950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20951 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20952 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20954 | rm -f conftest.er1 |
| 20955 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20957 | (exit $ac_status); } && { |
| 20958 | test -z "$ac_c_werror_flag" || |
| 20959 | test ! -s conftest.err |
| 20960 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20961 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 20962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20963 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20966 | |
| 20967 | cat >>confdefs.h <<\_ACEOF |
| 20968 | #define signed |
| 20969 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20970 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20971 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20972 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20973 | |
| 20974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20975 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 20976 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20977 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20978 | have_prototypes=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20979 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 20980 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20981 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20982 | /* confdefs.h. */ |
| 20983 | _ACEOF |
| 20984 | cat confdefs.h >>conftest.$ac_ext |
| 20985 | cat >>conftest.$ac_ext <<_ACEOF |
| 20986 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20987 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20988 | int |
| 20989 | main () |
| 20990 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20991 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20992 | ; |
| 20993 | return 0; |
| 20994 | } |
| 20995 | _ACEOF |
| 20996 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20997 | if { (ac_try="$ac_compile" |
| 20998 | case "(($ac_try" in |
| 20999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21000 | *) ac_try_echo=$ac_try;; |
| 21001 | esac |
| 21002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21003 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21004 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21006 | rm -f conftest.er1 |
| 21007 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21009 | (exit $ac_status); } && { |
| 21010 | test -z "$ac_c_werror_flag" || |
| 21011 | test ! -s conftest.err |
| 21012 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21013 | |
| 21014 | |
| 21015 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21016 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21017 | _ACEOF |
| 21018 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21019 | have_prototypes=yes |
| 21020 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21024 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21025 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21026 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21027 | |
| 21028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21029 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 21030 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21031 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21032 | works=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21033 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 21034 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21036 | /* confdefs.h. */ |
| 21037 | _ACEOF |
| 21038 | cat confdefs.h >>conftest.$ac_ext |
| 21039 | cat >>conftest.$ac_ext <<_ACEOF |
| 21040 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21041 | |
| 21042 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 21043 | int foo(int x, ...) { |
| 21044 | va_list va; |
| 21045 | va_start(va, x); |
| 21046 | va_arg(va, int); |
| 21047 | va_arg(va, char *); |
| 21048 | va_arg(va, double); |
| 21049 | return 0; |
| 21050 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21052 | int |
| 21053 | main () |
| 21054 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 21055 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21056 | ; |
| 21057 | return 0; |
| 21058 | } |
| 21059 | _ACEOF |
| 21060 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21061 | if { (ac_try="$ac_compile" |
| 21062 | case "(($ac_try" in |
| 21063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21064 | *) ac_try_echo=$ac_try;; |
| 21065 | esac |
| 21066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21067 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21068 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21070 | rm -f conftest.er1 |
| 21071 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21073 | (exit $ac_status); } && { |
| 21074 | test -z "$ac_c_werror_flag" || |
| 21075 | test ! -s conftest.err |
| 21076 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21077 | |
| 21078 | |
| 21079 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21080 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21081 | _ACEOF |
| 21082 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21083 | works=yes |
| 21084 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21086 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21088 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21089 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21090 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21091 | |
| 21092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21093 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 21094 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21095 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21096 | # check for socketpair |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21097 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 21098 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21099 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21100 | /* confdefs.h. */ |
| 21101 | _ACEOF |
| 21102 | cat confdefs.h >>conftest.$ac_ext |
| 21103 | cat >>conftest.$ac_ext <<_ACEOF |
| 21104 | /* end confdefs.h. */ |
| 21105 | |
| 21106 | #include <sys/types.h> |
| 21107 | #include <sys/socket.h> |
| 21108 | |
| 21109 | int |
| 21110 | main () |
| 21111 | { |
| 21112 | void *x=socketpair |
| 21113 | ; |
| 21114 | return 0; |
| 21115 | } |
| 21116 | _ACEOF |
| 21117 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21118 | if { (ac_try="$ac_compile" |
| 21119 | case "(($ac_try" in |
| 21120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21121 | *) ac_try_echo=$ac_try;; |
| 21122 | esac |
| 21123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21124 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21125 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21127 | rm -f conftest.er1 |
| 21128 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21130 | (exit $ac_status); } && { |
| 21131 | test -z "$ac_c_werror_flag" || |
| 21132 | test ! -s conftest.err |
| 21133 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21134 | |
| 21135 | cat >>confdefs.h <<\_ACEOF |
| 21136 | #define HAVE_SOCKETPAIR 1 |
| 21137 | _ACEOF |
| 21138 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21139 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21140 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21141 | else |
| 21142 | echo "$as_me: failed program was:" >&5 |
| 21143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21144 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21145 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21146 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 21147 | |
| 21148 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21149 | |
| 21150 | 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] | 21151 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21152 | # check if sockaddr has sa_len member |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21153 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 21154 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21155 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21156 | /* confdefs.h. */ |
| 21157 | _ACEOF |
| 21158 | cat confdefs.h >>conftest.$ac_ext |
| 21159 | cat >>conftest.$ac_ext <<_ACEOF |
| 21160 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21161 | #include <sys/types.h> |
| 21162 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21163 | int |
| 21164 | main () |
| 21165 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21166 | struct sockaddr x; |
| 21167 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21168 | ; |
| 21169 | return 0; |
| 21170 | } |
| 21171 | _ACEOF |
| 21172 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21173 | if { (ac_try="$ac_compile" |
| 21174 | case "(($ac_try" in |
| 21175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21176 | *) ac_try_echo=$ac_try;; |
| 21177 | esac |
| 21178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21179 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21182 | rm -f conftest.er1 |
| 21183 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21185 | (exit $ac_status); } && { |
| 21186 | test -z "$ac_c_werror_flag" || |
| 21187 | test ! -s conftest.err |
| 21188 | } && test -s conftest.$ac_objext; then |
| 21189 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21190 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21191 | |
| 21192 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21193 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21194 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21195 | |
| 21196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21197 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21199 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21200 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21201 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21202 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21203 | |
| 21204 | 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] | 21205 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21206 | va_list_is_array=no |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21207 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 21208 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21209 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21210 | /* confdefs.h. */ |
| 21211 | _ACEOF |
| 21212 | cat confdefs.h >>conftest.$ac_ext |
| 21213 | cat >>conftest.$ac_ext <<_ACEOF |
| 21214 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21215 | |
| 21216 | #ifdef HAVE_STDARG_PROTOTYPES |
| 21217 | #include <stdarg.h> |
| 21218 | #else |
| 21219 | #include <varargs.h> |
| 21220 | #endif |
| 21221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21222 | int |
| 21223 | main () |
| 21224 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21225 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21226 | ; |
| 21227 | return 0; |
| 21228 | } |
| 21229 | _ACEOF |
| 21230 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21231 | if { (ac_try="$ac_compile" |
| 21232 | case "(($ac_try" in |
| 21233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21234 | *) ac_try_echo=$ac_try;; |
| 21235 | esac |
| 21236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21237 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21238 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21240 | rm -f conftest.er1 |
| 21241 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21243 | (exit $ac_status); } && { |
| 21244 | test -z "$ac_c_werror_flag" || |
| 21245 | test ! -s conftest.err |
| 21246 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21247 | : |
| 21248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21249 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21252 | |
| 21253 | |
| 21254 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21255 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21256 | _ACEOF |
| 21257 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 21258 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21259 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21260 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21261 | |
| 21262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21263 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 21264 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21265 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21266 | # 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] | 21267 | |
| 21268 | |
| 21269 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21270 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 21271 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21272 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 21273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21274 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21276 | /* confdefs.h. */ |
| 21277 | _ACEOF |
| 21278 | cat confdefs.h >>conftest.$ac_ext |
| 21279 | cat >>conftest.$ac_ext <<_ACEOF |
| 21280 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21281 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 21282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21283 | #define gethostbyname_r innocuous_gethostbyname_r |
| 21284 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21285 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21286 | which can conflict with char gethostbyname_r (); below. |
| 21287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21288 | <limits.h> exists even on freestanding compilers. */ |
| 21289 | |
| 21290 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21291 | # include <limits.h> |
| 21292 | #else |
| 21293 | # include <assert.h> |
| 21294 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21295 | |
| 21296 | #undef gethostbyname_r |
| 21297 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21298 | /* Override any GCC internal prototype to avoid an error. |
| 21299 | Use char because int might match the return type of a GCC |
| 21300 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21301 | #ifdef __cplusplus |
| 21302 | extern "C" |
| 21303 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21304 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21305 | /* The GNU C library defines this for functions which it implements |
| 21306 | to always fail with ENOSYS. Some functions are actually named |
| 21307 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21308 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21309 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21310 | #endif |
| 21311 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21312 | int |
| 21313 | main () |
| 21314 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21315 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21316 | ; |
| 21317 | return 0; |
| 21318 | } |
| 21319 | _ACEOF |
| 21320 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21321 | if { (ac_try="$ac_link" |
| 21322 | case "(($ac_try" in |
| 21323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21324 | *) ac_try_echo=$ac_try;; |
| 21325 | esac |
| 21326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21327 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21328 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21330 | rm -f conftest.er1 |
| 21331 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21333 | (exit $ac_status); } && { |
| 21334 | test -z "$ac_c_werror_flag" || |
| 21335 | test ! -s conftest.err |
| 21336 | } && test -s conftest$ac_exeext && |
| 21337 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21338 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21340 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21342 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21343 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21344 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21345 | |
| 21346 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21347 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21348 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21349 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 21350 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21351 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21353 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21354 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21355 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21356 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21357 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 21358 | echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21359 | OLD_CFLAGS=$CFLAGS |
| 21360 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21361 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21362 | /* confdefs.h. */ |
| 21363 | _ACEOF |
| 21364 | cat confdefs.h >>conftest.$ac_ext |
| 21365 | cat >>conftest.$ac_ext <<_ACEOF |
| 21366 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21367 | |
| 21368 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21370 | int |
| 21371 | main () |
| 21372 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21373 | |
| 21374 | char *name; |
| 21375 | struct hostent *he, *res; |
| 21376 | char buffer[2048]; |
| 21377 | int buflen = 2048; |
| 21378 | int h_errnop; |
| 21379 | |
| 21380 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21381 | |
| 21382 | ; |
| 21383 | return 0; |
| 21384 | } |
| 21385 | _ACEOF |
| 21386 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21387 | if { (ac_try="$ac_compile" |
| 21388 | case "(($ac_try" in |
| 21389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21390 | *) ac_try_echo=$ac_try;; |
| 21391 | esac |
| 21392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21393 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21394 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21396 | rm -f conftest.er1 |
| 21397 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21399 | (exit $ac_status); } && { |
| 21400 | test -z "$ac_c_werror_flag" || |
| 21401 | test ! -s conftest.err |
| 21402 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21403 | |
| 21404 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21405 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21406 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21408 | |
| 21409 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21410 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21411 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21412 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21413 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21414 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21415 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21417 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21421 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21422 | echo "${ECHO_T}no" >&6; } |
| 21423 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 21424 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21425 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21426 | /* confdefs.h. */ |
| 21427 | _ACEOF |
| 21428 | cat confdefs.h >>conftest.$ac_ext |
| 21429 | cat >>conftest.$ac_ext <<_ACEOF |
| 21430 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21431 | |
| 21432 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21434 | int |
| 21435 | main () |
| 21436 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21437 | |
| 21438 | char *name; |
| 21439 | struct hostent *he; |
| 21440 | char buffer[2048]; |
| 21441 | int buflen = 2048; |
| 21442 | int h_errnop; |
| 21443 | |
| 21444 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21445 | |
| 21446 | ; |
| 21447 | return 0; |
| 21448 | } |
| 21449 | _ACEOF |
| 21450 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21451 | if { (ac_try="$ac_compile" |
| 21452 | case "(($ac_try" in |
| 21453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21454 | *) ac_try_echo=$ac_try;; |
| 21455 | esac |
| 21456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21457 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21458 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21460 | rm -f conftest.er1 |
| 21461 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21463 | (exit $ac_status); } && { |
| 21464 | test -z "$ac_c_werror_flag" || |
| 21465 | test ! -s conftest.err |
| 21466 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21467 | |
| 21468 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21469 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21470 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21472 | |
| 21473 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21474 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21475 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21476 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21477 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21478 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21479 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21481 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21484 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21485 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21486 | echo "${ECHO_T}no" >&6; } |
| 21487 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 21488 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21489 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21490 | /* confdefs.h. */ |
| 21491 | _ACEOF |
| 21492 | cat confdefs.h >>conftest.$ac_ext |
| 21493 | cat >>conftest.$ac_ext <<_ACEOF |
| 21494 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21495 | |
| 21496 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21498 | int |
| 21499 | main () |
| 21500 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21501 | |
| 21502 | char *name; |
| 21503 | struct hostent *he; |
| 21504 | struct hostent_data data; |
| 21505 | |
| 21506 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21507 | |
| 21508 | ; |
| 21509 | return 0; |
| 21510 | } |
| 21511 | _ACEOF |
| 21512 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21513 | if { (ac_try="$ac_compile" |
| 21514 | case "(($ac_try" in |
| 21515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21516 | *) ac_try_echo=$ac_try;; |
| 21517 | esac |
| 21518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21519 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21520 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21522 | rm -f conftest.er1 |
| 21523 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21525 | (exit $ac_status); } && { |
| 21526 | test -z "$ac_c_werror_flag" || |
| 21527 | test ! -s conftest.err |
| 21528 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21529 | |
| 21530 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21531 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21532 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 21533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21534 | |
| 21535 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21536 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21537 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21538 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21539 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21540 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21541 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21546 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21547 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21548 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21549 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21550 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21551 | |
| 21552 | 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] | 21553 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21554 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21555 | |
| 21556 | 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] | 21557 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21558 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21559 | |
| 21560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21561 | CFLAGS=$OLD_CFLAGS |
| 21562 | |
| 21563 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21565 | |
| 21566 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21567 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21568 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21569 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21570 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 21571 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21574 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21575 | /* confdefs.h. */ |
| 21576 | _ACEOF |
| 21577 | cat confdefs.h >>conftest.$ac_ext |
| 21578 | cat >>conftest.$ac_ext <<_ACEOF |
| 21579 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21580 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21581 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21582 | #define $ac_func innocuous_$ac_func |
| 21583 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21584 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21585 | which can conflict with char $ac_func (); below. |
| 21586 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21587 | <limits.h> exists even on freestanding compilers. */ |
| 21588 | |
| 21589 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21590 | # include <limits.h> |
| 21591 | #else |
| 21592 | # include <assert.h> |
| 21593 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21594 | |
| 21595 | #undef $ac_func |
| 21596 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21597 | /* Override any GCC internal prototype to avoid an error. |
| 21598 | Use char because int might match the return type of a GCC |
| 21599 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21600 | #ifdef __cplusplus |
| 21601 | extern "C" |
| 21602 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21603 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21604 | /* The GNU C library defines this for functions which it implements |
| 21605 | to always fail with ENOSYS. Some functions are actually named |
| 21606 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21607 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21608 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21609 | #endif |
| 21610 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21611 | int |
| 21612 | main () |
| 21613 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21614 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21615 | ; |
| 21616 | return 0; |
| 21617 | } |
| 21618 | _ACEOF |
| 21619 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21620 | if { (ac_try="$ac_link" |
| 21621 | case "(($ac_try" in |
| 21622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21623 | *) ac_try_echo=$ac_try;; |
| 21624 | esac |
| 21625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21626 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21627 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21629 | rm -f conftest.er1 |
| 21630 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21632 | (exit $ac_status); } && { |
| 21633 | test -z "$ac_c_werror_flag" || |
| 21634 | test ! -s conftest.err |
| 21635 | } && test -s conftest$ac_exeext && |
| 21636 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21637 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21641 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21642 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21643 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21644 | |
| 21645 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21646 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21647 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21648 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21650 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21651 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21652 | cat >>confdefs.h <<_ACEOF |
| 21653 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21654 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21655 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21656 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 21657 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21658 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21659 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 21660 | fi |
| 21661 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21662 | |
| 21663 | |
| 21664 | |
| 21665 | |
| 21666 | |
| 21667 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21668 | # checks for system services |
| 21669 | # (none yet) |
| 21670 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21671 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21672 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 21673 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21674 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 21675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21678 | /* confdefs.h. */ |
| 21679 | _ACEOF |
| 21680 | cat confdefs.h >>conftest.$ac_ext |
| 21681 | cat >>conftest.$ac_ext <<_ACEOF |
| 21682 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21683 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 21684 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21685 | #define __fpu_control innocuous___fpu_control |
| 21686 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21687 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21688 | which can conflict with char __fpu_control (); below. |
| 21689 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21690 | <limits.h> exists even on freestanding compilers. */ |
| 21691 | |
| 21692 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21693 | # include <limits.h> |
| 21694 | #else |
| 21695 | # include <assert.h> |
| 21696 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21697 | |
| 21698 | #undef __fpu_control |
| 21699 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21700 | /* Override any GCC internal prototype to avoid an error. |
| 21701 | Use char because int might match the return type of a GCC |
| 21702 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21703 | #ifdef __cplusplus |
| 21704 | extern "C" |
| 21705 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21706 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21707 | /* The GNU C library defines this for functions which it implements |
| 21708 | to always fail with ENOSYS. Some functions are actually named |
| 21709 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21710 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21711 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21712 | #endif |
| 21713 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21714 | int |
| 21715 | main () |
| 21716 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21717 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21718 | ; |
| 21719 | return 0; |
| 21720 | } |
| 21721 | _ACEOF |
| 21722 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21723 | if { (ac_try="$ac_link" |
| 21724 | case "(($ac_try" in |
| 21725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21726 | *) ac_try_echo=$ac_try;; |
| 21727 | esac |
| 21728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21729 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21730 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21732 | rm -f conftest.er1 |
| 21733 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21735 | (exit $ac_status); } && { |
| 21736 | test -z "$ac_c_werror_flag" || |
| 21737 | test ! -s conftest.err |
| 21738 | } && test -s conftest$ac_exeext && |
| 21739 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21740 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21741 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21742 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21744 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21745 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21746 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21747 | |
| 21748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21749 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21750 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21751 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 21752 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21753 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21754 | : |
| 21755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21756 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21757 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 21758 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21759 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 21760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21762 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21763 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21765 | /* confdefs.h. */ |
| 21766 | _ACEOF |
| 21767 | cat confdefs.h >>conftest.$ac_ext |
| 21768 | cat >>conftest.$ac_ext <<_ACEOF |
| 21769 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21770 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21771 | /* Override any GCC internal prototype to avoid an error. |
| 21772 | Use char because int might match the return type of a GCC |
| 21773 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21774 | #ifdef __cplusplus |
| 21775 | extern "C" |
| 21776 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21777 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21778 | int |
| 21779 | main () |
| 21780 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21781 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21782 | ; |
| 21783 | return 0; |
| 21784 | } |
| 21785 | _ACEOF |
| 21786 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21787 | if { (ac_try="$ac_link" |
| 21788 | case "(($ac_try" in |
| 21789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21790 | *) ac_try_echo=$ac_try;; |
| 21791 | esac |
| 21792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21793 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21794 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21796 | rm -f conftest.er1 |
| 21797 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21799 | (exit $ac_status); } && { |
| 21800 | test -z "$ac_c_werror_flag" || |
| 21801 | test ! -s conftest.err |
| 21802 | } && test -s conftest$ac_exeext && |
| 21803 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21804 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21806 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21808 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21809 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21810 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21811 | |
| 21812 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21813 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21814 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21815 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21816 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 21817 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21818 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 21819 | cat >>confdefs.h <<_ACEOF |
| 21820 | #define HAVE_LIBIEEE 1 |
| 21821 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21822 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21823 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21824 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21825 | fi |
| 21826 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21827 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21828 | fi |
| 21829 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21830 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21831 | # Check for --with-fpectl |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21832 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 21833 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21834 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21835 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21836 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21837 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21838 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21839 | then |
| 21840 | |
| 21841 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21842 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21843 | _ACEOF |
| 21844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21845 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21846 | echo "${ECHO_T}yes" >&6; } |
| 21847 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 21848 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21849 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21850 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21851 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21852 | echo "${ECHO_T}no" >&6; } |
| 21853 | fi |
| 21854 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21855 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21856 | # check for --with-libm=... |
| 21857 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21858 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21859 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 21860 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21861 | *) LIBM=-lm |
| 21862 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21863 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 21864 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21865 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21866 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21867 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21868 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21869 | if test "$withval" = no |
| 21870 | then LIBM= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21871 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 21872 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21873 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21874 | then LIBM=$withval |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21875 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 21876 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21877 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 21878 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 21879 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21880 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21881 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21882 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 21883 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
| 21884 | fi |
| 21885 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21886 | |
| 21887 | # check for --with-libc=... |
| 21888 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21889 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 21890 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21891 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21892 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21893 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21894 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21895 | if test "$withval" = no |
| 21896 | then LIBC= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21897 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 21898 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21899 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21900 | then LIBC=$withval |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21901 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 21902 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21903 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 21904 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 21905 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21906 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21907 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21908 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 21909 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
| 21910 | fi |
| 21911 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21912 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 21913 | # ************************************ |
| 21914 | # * Check for mathematical functions * |
| 21915 | # ************************************ |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 21916 | |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 21917 | LIBS_SAVE=$LIBS |
| 21918 | LIBS="$LIBS $LIBM" |
| 21919 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 21920 | # Detect whether system arithmetic is subject to x87-style double |
| 21921 | # rounding issues. The result of this test has little meaning on non |
| 21922 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 21923 | # mode is round-to-nearest and double rounding issues are present, and |
| 21924 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
| 21925 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 21926 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
| 21927 | if test "${ac_cv_x87_double_rounding+set}" = set; then |
| 21928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21929 | else |
| 21930 | |
| 21931 | if test "$cross_compiling" = yes; then |
| 21932 | ac_cv_x87_double_rounding=no |
| 21933 | else |
| 21934 | cat >conftest.$ac_ext <<_ACEOF |
| 21935 | /* confdefs.h. */ |
| 21936 | _ACEOF |
| 21937 | cat confdefs.h >>conftest.$ac_ext |
| 21938 | cat >>conftest.$ac_ext <<_ACEOF |
| 21939 | /* end confdefs.h. */ |
| 21940 | |
| 21941 | #include <stdlib.h> |
| 21942 | #include <math.h> |
| 21943 | int main() { |
| 21944 | volatile double x, y, z; |
| 21945 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 21946 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 21947 | y = 1./x; |
| 21948 | if (y != 1.) |
| 21949 | exit(0); |
| 21950 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 21951 | x = 1e16; |
| 21952 | y = 2.99999; |
| 21953 | z = x + y; |
| 21954 | if (z != 1e16+4.) |
| 21955 | exit(0); |
| 21956 | /* both tests show evidence of double rounding */ |
| 21957 | exit(1); |
| 21958 | } |
| 21959 | |
| 21960 | _ACEOF |
| 21961 | rm -f conftest$ac_exeext |
| 21962 | if { (ac_try="$ac_link" |
| 21963 | case "(($ac_try" in |
| 21964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21965 | *) ac_try_echo=$ac_try;; |
| 21966 | esac |
| 21967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21968 | (eval "$ac_link") 2>&5 |
| 21969 | ac_status=$? |
| 21970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21971 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21972 | { (case "(($ac_try" in |
| 21973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21974 | *) ac_try_echo=$ac_try;; |
| 21975 | esac |
| 21976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21977 | (eval "$ac_try") 2>&5 |
| 21978 | ac_status=$? |
| 21979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21980 | (exit $ac_status); }; }; then |
| 21981 | ac_cv_x87_double_rounding=no |
| 21982 | else |
| 21983 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21984 | echo "$as_me: failed program was:" >&5 |
| 21985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21986 | |
| 21987 | ( exit $ac_status ) |
| 21988 | ac_cv_x87_double_rounding=yes |
| 21989 | fi |
| 21990 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21991 | fi |
| 21992 | |
| 21993 | |
| 21994 | fi |
| 21995 | |
| 21996 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 21997 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
| 21998 | if test "$ac_cv_x87_double_rounding" = yes |
| 21999 | then |
| 22000 | |
| 22001 | cat >>confdefs.h <<\_ACEOF |
| 22002 | #define X87_DOUBLE_ROUNDING 1 |
| 22003 | _ACEOF |
| 22004 | |
| 22005 | fi |
| 22006 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 22007 | # Multiprocessing check for broken sem_getvalue |
| 22008 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 22009 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
| 22010 | if test "$cross_compiling" = yes; then |
| 22011 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 22012 | See \`config.log' for more details." >&5 |
| 22013 | echo "$as_me: error: cannot run test program while cross compiling |
| 22014 | See \`config.log' for more details." >&2;} |
| 22015 | { (exit 1); exit 1; }; } |
| 22016 | else |
| 22017 | cat >conftest.$ac_ext <<_ACEOF |
| 22018 | /* confdefs.h. */ |
| 22019 | _ACEOF |
| 22020 | cat confdefs.h >>conftest.$ac_ext |
| 22021 | cat >>conftest.$ac_ext <<_ACEOF |
| 22022 | /* end confdefs.h. */ |
| 22023 | |
| 22024 | #include <unistd.h> |
| 22025 | #include <fcntl.h> |
| 22026 | #include <stdio.h> |
| 22027 | #include <semaphore.h> |
| 22028 | #include <sys/stat.h> |
| 22029 | |
| 22030 | int main(void){ |
| 22031 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 22032 | int count; |
| 22033 | int res; |
| 22034 | if(a==SEM_FAILED){ |
| 22035 | perror("sem_open"); |
| 22036 | return 1; |
| 22037 | |
| 22038 | } |
| 22039 | res = sem_getvalue(a, &count); |
| 22040 | sem_close(a); |
| 22041 | return res==-1 ? 1 : 0; |
| 22042 | } |
| 22043 | |
| 22044 | |
| 22045 | _ACEOF |
| 22046 | rm -f conftest$ac_exeext |
| 22047 | if { (ac_try="$ac_link" |
| 22048 | case "(($ac_try" in |
| 22049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22050 | *) ac_try_echo=$ac_try;; |
| 22051 | esac |
| 22052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22053 | (eval "$ac_link") 2>&5 |
| 22054 | ac_status=$? |
| 22055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22056 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22057 | { (case "(($ac_try" in |
| 22058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22059 | *) ac_try_echo=$ac_try;; |
| 22060 | esac |
| 22061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22062 | (eval "$ac_try") 2>&5 |
| 22063 | ac_status=$? |
| 22064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22065 | (exit $ac_status); }; }; then |
| 22066 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22067 | echo "${ECHO_T}no" >&6; } |
| 22068 | else |
| 22069 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22070 | echo "$as_me: failed program was:" >&5 |
| 22071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22072 | |
| 22073 | ( exit $ac_status ) |
| 22074 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22075 | echo "${ECHO_T}yes" >&6; } |
| 22076 | |
| 22077 | cat >>confdefs.h <<\_ACEOF |
| 22078 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 22079 | _ACEOF |
| 22080 | |
| 22081 | |
| 22082 | fi |
| 22083 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22084 | fi |
| 22085 | |
| 22086 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 22087 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22088 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 22089 | # -0. on some architectures. |
| 22090 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 22091 | echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; } |
| 22092 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
| 22093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22094 | else |
| 22095 | |
| 22096 | if test "$cross_compiling" = yes; then |
| 22097 | ac_cv_tanh_preserves_zero_sign=no |
| 22098 | else |
| 22099 | cat >conftest.$ac_ext <<_ACEOF |
| 22100 | /* confdefs.h. */ |
| 22101 | _ACEOF |
| 22102 | cat confdefs.h >>conftest.$ac_ext |
| 22103 | cat >>conftest.$ac_ext <<_ACEOF |
| 22104 | /* end confdefs.h. */ |
| 22105 | |
| 22106 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 22107 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 22108 | int main() { |
| 22109 | /* return 0 if either negative zeros don't exist |
| 22110 | on this platform or if negative zeros exist |
| 22111 | and tanh(-0.) == -0. */ |
| 22112 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 22113 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 22114 | else exit(1); |
| 22115 | } |
| 22116 | |
| 22117 | _ACEOF |
| 22118 | rm -f conftest$ac_exeext |
| 22119 | if { (ac_try="$ac_link" |
| 22120 | case "(($ac_try" in |
| 22121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22122 | *) ac_try_echo=$ac_try;; |
| 22123 | esac |
| 22124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22125 | (eval "$ac_link") 2>&5 |
| 22126 | ac_status=$? |
| 22127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22128 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22129 | { (case "(($ac_try" in |
| 22130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22131 | *) ac_try_echo=$ac_try;; |
| 22132 | esac |
| 22133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22134 | (eval "$ac_try") 2>&5 |
| 22135 | ac_status=$? |
| 22136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22137 | (exit $ac_status); }; }; then |
| 22138 | ac_cv_tanh_preserves_zero_sign=yes |
| 22139 | else |
| 22140 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22141 | echo "$as_me: failed program was:" >&5 |
| 22142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22143 | |
| 22144 | ( exit $ac_status ) |
| 22145 | ac_cv_tanh_preserves_zero_sign=no |
| 22146 | fi |
| 22147 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22148 | fi |
| 22149 | |
| 22150 | |
| 22151 | fi |
| 22152 | |
| 22153 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 22154 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
| 22155 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 22156 | then |
| 22157 | |
| 22158 | cat >>confdefs.h <<\_ACEOF |
| 22159 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 22160 | _ACEOF |
| 22161 | |
| 22162 | fi |
| 22163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22164 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 22165 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22166 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22167 | |
| 22168 | |
| 22169 | |
| 22170 | |
| 22171 | |
Mark Dickinson | 1de3327 | 2009-01-04 20:19:41 +0000 | [diff] [blame] | 22172 | for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22173 | do |
| 22174 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22175 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22176 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 22177 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22179 | else |
| 22180 | cat >conftest.$ac_ext <<_ACEOF |
| 22181 | /* confdefs.h. */ |
| 22182 | _ACEOF |
| 22183 | cat confdefs.h >>conftest.$ac_ext |
| 22184 | cat >>conftest.$ac_ext <<_ACEOF |
| 22185 | /* end confdefs.h. */ |
| 22186 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22187 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22188 | #define $ac_func innocuous_$ac_func |
| 22189 | |
| 22190 | /* System header to define __stub macros and hopefully few prototypes, |
| 22191 | which can conflict with char $ac_func (); below. |
| 22192 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22193 | <limits.h> exists even on freestanding compilers. */ |
| 22194 | |
| 22195 | #ifdef __STDC__ |
| 22196 | # include <limits.h> |
| 22197 | #else |
| 22198 | # include <assert.h> |
| 22199 | #endif |
| 22200 | |
| 22201 | #undef $ac_func |
| 22202 | |
| 22203 | /* Override any GCC internal prototype to avoid an error. |
| 22204 | Use char because int might match the return type of a GCC |
| 22205 | builtin and then its argument prototype would still apply. */ |
| 22206 | #ifdef __cplusplus |
| 22207 | extern "C" |
| 22208 | #endif |
| 22209 | char $ac_func (); |
| 22210 | /* The GNU C library defines this for functions which it implements |
| 22211 | to always fail with ENOSYS. Some functions are actually named |
| 22212 | something starting with __ and the normal name is an alias. */ |
| 22213 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 22214 | choke me |
| 22215 | #endif |
| 22216 | |
| 22217 | int |
| 22218 | main () |
| 22219 | { |
| 22220 | return $ac_func (); |
| 22221 | ; |
| 22222 | return 0; |
| 22223 | } |
| 22224 | _ACEOF |
| 22225 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22226 | if { (ac_try="$ac_link" |
| 22227 | case "(($ac_try" in |
| 22228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22229 | *) ac_try_echo=$ac_try;; |
| 22230 | esac |
| 22231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22232 | (eval "$ac_link") 2>conftest.er1 |
| 22233 | ac_status=$? |
| 22234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22235 | rm -f conftest.er1 |
| 22236 | cat conftest.err >&5 |
| 22237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22238 | (exit $ac_status); } && { |
| 22239 | test -z "$ac_c_werror_flag" || |
| 22240 | test ! -s conftest.err |
| 22241 | } && test -s conftest$ac_exeext && |
| 22242 | $as_test_x conftest$ac_exeext; then |
| 22243 | eval "$as_ac_var=yes" |
| 22244 | else |
| 22245 | echo "$as_me: failed program was:" >&5 |
| 22246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22247 | |
| 22248 | eval "$as_ac_var=no" |
| 22249 | fi |
| 22250 | |
| 22251 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 22252 | conftest$ac_exeext conftest.$ac_ext |
| 22253 | fi |
| 22254 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22255 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22256 | echo "${ECHO_T}$ac_res" >&6; } |
| 22257 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22258 | cat >>confdefs.h <<_ACEOF |
| 22259 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22260 | _ACEOF |
| 22261 | |
| 22262 | fi |
| 22263 | done |
| 22264 | |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 22265 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 22266 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
| 22267 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
| 22268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22269 | else |
| 22270 | cat >conftest.$ac_ext <<_ACEOF |
| 22271 | /* confdefs.h. */ |
| 22272 | _ACEOF |
| 22273 | cat confdefs.h >>conftest.$ac_ext |
| 22274 | cat >>conftest.$ac_ext <<_ACEOF |
| 22275 | /* end confdefs.h. */ |
| 22276 | #include <math.h> |
| 22277 | |
| 22278 | int |
| 22279 | main () |
| 22280 | { |
| 22281 | #ifndef isinf |
| 22282 | (void) isinf; |
| 22283 | #endif |
| 22284 | |
| 22285 | ; |
| 22286 | return 0; |
| 22287 | } |
| 22288 | _ACEOF |
| 22289 | rm -f conftest.$ac_objext |
| 22290 | if { (ac_try="$ac_compile" |
| 22291 | case "(($ac_try" in |
| 22292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22293 | *) ac_try_echo=$ac_try;; |
| 22294 | esac |
| 22295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22296 | (eval "$ac_compile") 2>conftest.er1 |
| 22297 | ac_status=$? |
| 22298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22299 | rm -f conftest.er1 |
| 22300 | cat conftest.err >&5 |
| 22301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22302 | (exit $ac_status); } && { |
| 22303 | test -z "$ac_c_werror_flag" || |
| 22304 | test ! -s conftest.err |
| 22305 | } && test -s conftest.$ac_objext; then |
| 22306 | ac_cv_have_decl_isinf=yes |
| 22307 | else |
| 22308 | echo "$as_me: failed program was:" >&5 |
| 22309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22310 | |
| 22311 | ac_cv_have_decl_isinf=no |
| 22312 | fi |
| 22313 | |
| 22314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22315 | fi |
| 22316 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 22317 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 22318 | if test $ac_cv_have_decl_isinf = yes; then |
| 22319 | |
| 22320 | cat >>confdefs.h <<_ACEOF |
| 22321 | #define HAVE_DECL_ISINF 1 |
| 22322 | _ACEOF |
| 22323 | |
| 22324 | |
| 22325 | else |
| 22326 | cat >>confdefs.h <<_ACEOF |
| 22327 | #define HAVE_DECL_ISINF 0 |
| 22328 | _ACEOF |
| 22329 | |
| 22330 | |
| 22331 | fi |
| 22332 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 22333 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
| 22334 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
| 22335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22336 | else |
| 22337 | cat >conftest.$ac_ext <<_ACEOF |
| 22338 | /* confdefs.h. */ |
| 22339 | _ACEOF |
| 22340 | cat confdefs.h >>conftest.$ac_ext |
| 22341 | cat >>conftest.$ac_ext <<_ACEOF |
| 22342 | /* end confdefs.h. */ |
| 22343 | #include <math.h> |
| 22344 | |
| 22345 | int |
| 22346 | main () |
| 22347 | { |
| 22348 | #ifndef isnan |
| 22349 | (void) isnan; |
| 22350 | #endif |
| 22351 | |
| 22352 | ; |
| 22353 | return 0; |
| 22354 | } |
| 22355 | _ACEOF |
| 22356 | rm -f conftest.$ac_objext |
| 22357 | if { (ac_try="$ac_compile" |
| 22358 | case "(($ac_try" in |
| 22359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22360 | *) ac_try_echo=$ac_try;; |
| 22361 | esac |
| 22362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22363 | (eval "$ac_compile") 2>conftest.er1 |
| 22364 | ac_status=$? |
| 22365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22366 | rm -f conftest.er1 |
| 22367 | cat conftest.err >&5 |
| 22368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22369 | (exit $ac_status); } && { |
| 22370 | test -z "$ac_c_werror_flag" || |
| 22371 | test ! -s conftest.err |
| 22372 | } && test -s conftest.$ac_objext; then |
| 22373 | ac_cv_have_decl_isnan=yes |
| 22374 | else |
| 22375 | echo "$as_me: failed program was:" >&5 |
| 22376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22377 | |
| 22378 | ac_cv_have_decl_isnan=no |
| 22379 | fi |
| 22380 | |
| 22381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22382 | fi |
| 22383 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 22384 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 22385 | if test $ac_cv_have_decl_isnan = yes; then |
| 22386 | |
| 22387 | cat >>confdefs.h <<_ACEOF |
| 22388 | #define HAVE_DECL_ISNAN 1 |
| 22389 | _ACEOF |
| 22390 | |
| 22391 | |
| 22392 | else |
| 22393 | cat >>confdefs.h <<_ACEOF |
| 22394 | #define HAVE_DECL_ISNAN 0 |
| 22395 | _ACEOF |
| 22396 | |
| 22397 | |
| 22398 | fi |
| 22399 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 22400 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
| 22401 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
| 22402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22403 | else |
| 22404 | cat >conftest.$ac_ext <<_ACEOF |
| 22405 | /* confdefs.h. */ |
| 22406 | _ACEOF |
| 22407 | cat confdefs.h >>conftest.$ac_ext |
| 22408 | cat >>conftest.$ac_ext <<_ACEOF |
| 22409 | /* end confdefs.h. */ |
| 22410 | #include <math.h> |
| 22411 | |
| 22412 | int |
| 22413 | main () |
| 22414 | { |
| 22415 | #ifndef isfinite |
| 22416 | (void) isfinite; |
| 22417 | #endif |
| 22418 | |
| 22419 | ; |
| 22420 | return 0; |
| 22421 | } |
| 22422 | _ACEOF |
| 22423 | rm -f conftest.$ac_objext |
| 22424 | if { (ac_try="$ac_compile" |
| 22425 | case "(($ac_try" in |
| 22426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22427 | *) ac_try_echo=$ac_try;; |
| 22428 | esac |
| 22429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22430 | (eval "$ac_compile") 2>conftest.er1 |
| 22431 | ac_status=$? |
| 22432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22433 | rm -f conftest.er1 |
| 22434 | cat conftest.err >&5 |
| 22435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22436 | (exit $ac_status); } && { |
| 22437 | test -z "$ac_c_werror_flag" || |
| 22438 | test ! -s conftest.err |
| 22439 | } && test -s conftest.$ac_objext; then |
| 22440 | ac_cv_have_decl_isfinite=yes |
| 22441 | else |
| 22442 | echo "$as_me: failed program was:" >&5 |
| 22443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22444 | |
| 22445 | ac_cv_have_decl_isfinite=no |
| 22446 | fi |
| 22447 | |
| 22448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22449 | fi |
| 22450 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 22451 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 22452 | if test $ac_cv_have_decl_isfinite = yes; then |
| 22453 | |
| 22454 | cat >>confdefs.h <<_ACEOF |
| 22455 | #define HAVE_DECL_ISFINITE 1 |
| 22456 | _ACEOF |
| 22457 | |
| 22458 | |
| 22459 | else |
| 22460 | cat >>confdefs.h <<_ACEOF |
| 22461 | #define HAVE_DECL_ISFINITE 0 |
| 22462 | _ACEOF |
| 22463 | |
| 22464 | |
| 22465 | fi |
| 22466 | |
| 22467 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 22468 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 22469 | LIBS=$LIBS_SAVE |
| 22470 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 22471 | # determine what size digit to use for Python's longs |
| 22472 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 22473 | echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; } |
| 22474 | # Check whether --enable-big-digits was given. |
| 22475 | if test "${enable_big_digits+set}" = set; then |
| 22476 | enableval=$enable_big_digits; case $enable_big_digits in |
| 22477 | yes) |
| 22478 | enable_big_digits=30 ;; |
| 22479 | no) |
| 22480 | enable_big_digits=15 ;; |
| 22481 | 15|30) |
| 22482 | ;; |
| 22483 | *) |
| 22484 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 22485 | echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;} |
| 22486 | { (exit 1); exit 1; }; } ;; |
| 22487 | esac |
| 22488 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 22489 | echo "${ECHO_T}$enable_big_digits" >&6; } |
| 22490 | |
| 22491 | cat >>confdefs.h <<_ACEOF |
| 22492 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 22493 | _ACEOF |
| 22494 | |
| 22495 | |
| 22496 | else |
| 22497 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 22498 | echo "${ECHO_T}no value specified" >&6; } |
| 22499 | fi |
| 22500 | |
| 22501 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22502 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22503 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22504 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 22505 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22506 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 22507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22508 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22509 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 22510 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22511 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22512 | # Is the header compilable? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22513 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 22514 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22515 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22516 | /* confdefs.h. */ |
| 22517 | _ACEOF |
| 22518 | cat confdefs.h >>conftest.$ac_ext |
| 22519 | cat >>conftest.$ac_ext <<_ACEOF |
| 22520 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22521 | $ac_includes_default |
| 22522 | #include <wchar.h> |
| 22523 | _ACEOF |
| 22524 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22525 | if { (ac_try="$ac_compile" |
| 22526 | case "(($ac_try" in |
| 22527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22528 | *) ac_try_echo=$ac_try;; |
| 22529 | esac |
| 22530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22531 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22532 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22534 | rm -f conftest.er1 |
| 22535 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22537 | (exit $ac_status); } && { |
| 22538 | test -z "$ac_c_werror_flag" || |
| 22539 | test ! -s conftest.err |
| 22540 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22541 | ac_header_compiler=yes |
| 22542 | else |
| 22543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22545 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22546 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22547 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22548 | |
| 22549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22550 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22551 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22552 | |
| 22553 | # Is the header present? |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22554 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 22555 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22556 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22557 | /* confdefs.h. */ |
| 22558 | _ACEOF |
| 22559 | cat confdefs.h >>conftest.$ac_ext |
| 22560 | cat >>conftest.$ac_ext <<_ACEOF |
| 22561 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22562 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22563 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22564 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22565 | case "(($ac_try" in |
| 22566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22567 | *) ac_try_echo=$ac_try;; |
| 22568 | esac |
| 22569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22570 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22571 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22572 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22573 | rm -f conftest.er1 |
| 22574 | cat conftest.err >&5 |
| 22575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22576 | (exit $ac_status); } >/dev/null && { |
| 22577 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22578 | test ! -s conftest.err |
| 22579 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22580 | ac_header_preproc=yes |
| 22581 | else |
| 22582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22585 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22586 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22588 | rm -f conftest.err conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22589 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22590 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22591 | |
| 22592 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22593 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22594 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22595 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22596 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22597 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 22598 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 22599 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22600 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22601 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22602 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 22603 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22604 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 22605 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 22606 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 22607 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 22608 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 22609 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22610 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 22611 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22612 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 22613 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22614 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22615 | ## ------------------------------------------------ ## |
| 22616 | ## Report this to http://www.python.org/python-bugs ## |
| 22617 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22618 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22619 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22620 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22621 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22622 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 22623 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22624 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 22625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22626 | else |
| 22627 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22628 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22629 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 22630 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22631 | |
| 22632 | fi |
| 22633 | if test $ac_cv_header_wchar_h = yes; then |
| 22634 | |
| 22635 | |
| 22636 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22637 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22638 | _ACEOF |
| 22639 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22640 | wchar_h="yes" |
| 22641 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22643 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22644 | |
| 22645 | fi |
| 22646 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22648 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22649 | # determine wchar_t size |
| 22650 | if test "$wchar_h" = yes |
| 22651 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22652 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 22653 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22654 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 22655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22656 | else |
| 22657 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22658 | /* confdefs.h. */ |
| 22659 | _ACEOF |
| 22660 | cat confdefs.h >>conftest.$ac_ext |
| 22661 | cat >>conftest.$ac_ext <<_ACEOF |
| 22662 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22663 | #include <wchar.h> |
| 22664 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22665 | typedef wchar_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22666 | int |
| 22667 | main () |
| 22668 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22669 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22670 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22671 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22672 | return 0; |
| 22673 | ; |
| 22674 | return 0; |
| 22675 | } |
| 22676 | _ACEOF |
| 22677 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22678 | if { (ac_try="$ac_compile" |
| 22679 | case "(($ac_try" in |
| 22680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22681 | *) ac_try_echo=$ac_try;; |
| 22682 | esac |
| 22683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22684 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22685 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22687 | rm -f conftest.er1 |
| 22688 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22690 | (exit $ac_status); } && { |
| 22691 | test -z "$ac_c_werror_flag" || |
| 22692 | test ! -s conftest.err |
| 22693 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22694 | ac_cv_type_wchar_t=yes |
| 22695 | else |
| 22696 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22698 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22699 | ac_cv_type_wchar_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22700 | fi |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22701 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22703 | fi |
| 22704 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 22705 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 22706 | |
| 22707 | # The cast to long int works around a bug in the HP C Compiler |
| 22708 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 22709 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 22710 | # This bug is HP SR number 8606223364. |
| 22711 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 22712 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22713 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 22714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22716 | if test "$cross_compiling" = yes; then |
| 22717 | # Depending upon the size, compute the lo and hi bounds. |
| 22718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22719 | /* confdefs.h. */ |
| 22720 | _ACEOF |
| 22721 | cat confdefs.h >>conftest.$ac_ext |
| 22722 | cat >>conftest.$ac_ext <<_ACEOF |
| 22723 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22724 | #include <wchar.h> |
| 22725 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22726 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22727 | int |
| 22728 | main () |
| 22729 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22730 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22731 | test_array [0] = 0 |
| 22732 | |
| 22733 | ; |
| 22734 | return 0; |
| 22735 | } |
| 22736 | _ACEOF |
| 22737 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22738 | if { (ac_try="$ac_compile" |
| 22739 | case "(($ac_try" in |
| 22740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22741 | *) ac_try_echo=$ac_try;; |
| 22742 | esac |
| 22743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22744 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22745 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22747 | rm -f conftest.er1 |
| 22748 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22750 | (exit $ac_status); } && { |
| 22751 | test -z "$ac_c_werror_flag" || |
| 22752 | test ! -s conftest.err |
| 22753 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22754 | ac_lo=0 ac_mid=0 |
| 22755 | while :; do |
| 22756 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22757 | /* confdefs.h. */ |
| 22758 | _ACEOF |
| 22759 | cat confdefs.h >>conftest.$ac_ext |
| 22760 | cat >>conftest.$ac_ext <<_ACEOF |
| 22761 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22762 | #include <wchar.h> |
| 22763 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22764 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22765 | int |
| 22766 | main () |
| 22767 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22768 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22769 | test_array [0] = 0 |
| 22770 | |
| 22771 | ; |
| 22772 | return 0; |
| 22773 | } |
| 22774 | _ACEOF |
| 22775 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22776 | if { (ac_try="$ac_compile" |
| 22777 | case "(($ac_try" in |
| 22778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22779 | *) ac_try_echo=$ac_try;; |
| 22780 | esac |
| 22781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22782 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22783 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22785 | rm -f conftest.er1 |
| 22786 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22788 | (exit $ac_status); } && { |
| 22789 | test -z "$ac_c_werror_flag" || |
| 22790 | test ! -s conftest.err |
| 22791 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22792 | ac_hi=$ac_mid; break |
| 22793 | else |
| 22794 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22796 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22797 | ac_lo=`expr $ac_mid + 1` |
| 22798 | if test $ac_lo -le $ac_mid; then |
| 22799 | ac_lo= ac_hi= |
| 22800 | break |
| 22801 | fi |
| 22802 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22803 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22804 | |
| 22805 | 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] | 22806 | done |
| 22807 | else |
| 22808 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22810 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22811 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22812 | /* confdefs.h. */ |
| 22813 | _ACEOF |
| 22814 | cat confdefs.h >>conftest.$ac_ext |
| 22815 | cat >>conftest.$ac_ext <<_ACEOF |
| 22816 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22817 | #include <wchar.h> |
| 22818 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22819 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22820 | int |
| 22821 | main () |
| 22822 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22823 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22824 | test_array [0] = 0 |
| 22825 | |
| 22826 | ; |
| 22827 | return 0; |
| 22828 | } |
| 22829 | _ACEOF |
| 22830 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22831 | if { (ac_try="$ac_compile" |
| 22832 | case "(($ac_try" in |
| 22833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22834 | *) ac_try_echo=$ac_try;; |
| 22835 | esac |
| 22836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22837 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22838 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22840 | rm -f conftest.er1 |
| 22841 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22843 | (exit $ac_status); } && { |
| 22844 | test -z "$ac_c_werror_flag" || |
| 22845 | test ! -s conftest.err |
| 22846 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22847 | ac_hi=-1 ac_mid=-1 |
| 22848 | while :; do |
| 22849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22850 | /* confdefs.h. */ |
| 22851 | _ACEOF |
| 22852 | cat confdefs.h >>conftest.$ac_ext |
| 22853 | cat >>conftest.$ac_ext <<_ACEOF |
| 22854 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22855 | #include <wchar.h> |
| 22856 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22857 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22858 | int |
| 22859 | main () |
| 22860 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22861 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22862 | test_array [0] = 0 |
| 22863 | |
| 22864 | ; |
| 22865 | return 0; |
| 22866 | } |
| 22867 | _ACEOF |
| 22868 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22869 | if { (ac_try="$ac_compile" |
| 22870 | case "(($ac_try" in |
| 22871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22872 | *) ac_try_echo=$ac_try;; |
| 22873 | esac |
| 22874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22875 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22876 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22878 | rm -f conftest.er1 |
| 22879 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22881 | (exit $ac_status); } && { |
| 22882 | test -z "$ac_c_werror_flag" || |
| 22883 | test ! -s conftest.err |
| 22884 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22885 | ac_lo=$ac_mid; break |
| 22886 | else |
| 22887 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22889 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22890 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 22891 | if test $ac_mid -le $ac_hi; then |
| 22892 | ac_lo= ac_hi= |
| 22893 | break |
| 22894 | fi |
| 22895 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22896 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22897 | |
| 22898 | 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] | 22899 | done |
| 22900 | else |
| 22901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22903 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22904 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22905 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22906 | |
| 22907 | 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] | 22908 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22909 | |
| 22910 | 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] | 22911 | # Binary search between lo and hi bounds. |
| 22912 | while test "x$ac_lo" != "x$ac_hi"; do |
| 22913 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 22914 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22915 | /* confdefs.h. */ |
| 22916 | _ACEOF |
| 22917 | cat confdefs.h >>conftest.$ac_ext |
| 22918 | cat >>conftest.$ac_ext <<_ACEOF |
| 22919 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22920 | #include <wchar.h> |
| 22921 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22922 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22923 | int |
| 22924 | main () |
| 22925 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22926 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22927 | test_array [0] = 0 |
| 22928 | |
| 22929 | ; |
| 22930 | return 0; |
| 22931 | } |
| 22932 | _ACEOF |
| 22933 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22934 | if { (ac_try="$ac_compile" |
| 22935 | case "(($ac_try" in |
| 22936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22937 | *) ac_try_echo=$ac_try;; |
| 22938 | esac |
| 22939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22940 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22941 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22943 | rm -f conftest.er1 |
| 22944 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22946 | (exit $ac_status); } && { |
| 22947 | test -z "$ac_c_werror_flag" || |
| 22948 | test ! -s conftest.err |
| 22949 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22950 | ac_hi=$ac_mid |
| 22951 | else |
| 22952 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22954 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22955 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22956 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22957 | |
| 22958 | 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] | 22959 | done |
| 22960 | case $ac_lo in |
| 22961 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22962 | '') if test "$ac_cv_type_wchar_t" = yes; then |
| 22963 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22964 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22965 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22966 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22967 | { (exit 77); exit 77; }; } |
| 22968 | else |
| 22969 | ac_cv_sizeof_wchar_t=0 |
| 22970 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22971 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22973 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22974 | /* confdefs.h. */ |
| 22975 | _ACEOF |
| 22976 | cat confdefs.h >>conftest.$ac_ext |
| 22977 | cat >>conftest.$ac_ext <<_ACEOF |
| 22978 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22979 | #include <wchar.h> |
| 22980 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22981 | typedef wchar_t ac__type_sizeof_; |
| 22982 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 22983 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22984 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22985 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22986 | int |
| 22987 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22988 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22989 | |
| 22990 | FILE *f = fopen ("conftest.val", "w"); |
| 22991 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22992 | return 1; |
| 22993 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22994 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22995 | long int i = longval (); |
| 22996 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 22997 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22998 | fprintf (f, "%ld\n", i); |
| 22999 | } |
| 23000 | else |
| 23001 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23002 | unsigned long int i = ulongval (); |
| 23003 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 23004 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23005 | fprintf (f, "%lu\n", i); |
| 23006 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23007 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23008 | |
| 23009 | ; |
| 23010 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23011 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23012 | _ACEOF |
| 23013 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23014 | if { (ac_try="$ac_link" |
| 23015 | case "(($ac_try" in |
| 23016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23017 | *) ac_try_echo=$ac_try;; |
| 23018 | esac |
| 23019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23020 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23021 | ac_status=$? |
| 23022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23023 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23024 | { (case "(($ac_try" in |
| 23025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23026 | *) ac_try_echo=$ac_try;; |
| 23027 | esac |
| 23028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23029 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23030 | ac_status=$? |
| 23031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23032 | (exit $ac_status); }; }; then |
| 23033 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23034 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23035 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23039 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23040 | if test "$ac_cv_type_wchar_t" = yes; then |
| 23041 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23042 | See \`config.log' for more details." >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23043 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23044 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23045 | { (exit 77); exit 77; }; } |
| 23046 | else |
| 23047 | ac_cv_sizeof_wchar_t=0 |
| 23048 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23049 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23050 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23051 | fi |
| 23052 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23053 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23054 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 23055 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
| 23056 | |
| 23057 | |
| 23058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23059 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23060 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23061 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23062 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23063 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23064 | fi |
| 23065 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23066 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 23067 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23068 | have_ucs4_tcl=no |
| 23069 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23070 | /* confdefs.h. */ |
| 23071 | _ACEOF |
| 23072 | cat confdefs.h >>conftest.$ac_ext |
| 23073 | cat >>conftest.$ac_ext <<_ACEOF |
| 23074 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23075 | |
| 23076 | #include <tcl.h> |
| 23077 | #if TCL_UTF_MAX != 6 |
| 23078 | # error "NOT UCS4_TCL" |
| 23079 | #endif |
| 23080 | int |
| 23081 | main () |
| 23082 | { |
| 23083 | |
| 23084 | ; |
| 23085 | return 0; |
| 23086 | } |
| 23087 | _ACEOF |
| 23088 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23089 | if { (ac_try="$ac_compile" |
| 23090 | case "(($ac_try" in |
| 23091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23092 | *) ac_try_echo=$ac_try;; |
| 23093 | esac |
| 23094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23095 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23096 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23098 | rm -f conftest.er1 |
| 23099 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23101 | (exit $ac_status); } && { |
| 23102 | test -z "$ac_c_werror_flag" || |
| 23103 | test ! -s conftest.err |
| 23104 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23105 | |
| 23106 | |
| 23107 | cat >>confdefs.h <<\_ACEOF |
| 23108 | #define HAVE_UCS4_TCL 1 |
| 23109 | _ACEOF |
| 23110 | |
| 23111 | have_ucs4_tcl=yes |
| 23112 | |
| 23113 | else |
| 23114 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23116 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23117 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23118 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23119 | |
| 23120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23121 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 23122 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23123 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23124 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23125 | if test "$wchar_h" = yes |
| 23126 | then |
| 23127 | # check whether wchar_t is signed or not |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23128 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 23129 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; } |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23130 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 23131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23132 | else |
| 23133 | |
| 23134 | if test "$cross_compiling" = yes; then |
| 23135 | ac_cv_wchar_t_signed=yes |
| 23136 | else |
| 23137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23138 | /* confdefs.h. */ |
| 23139 | _ACEOF |
| 23140 | cat confdefs.h >>conftest.$ac_ext |
| 23141 | cat >>conftest.$ac_ext <<_ACEOF |
| 23142 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23143 | |
| 23144 | #include <wchar.h> |
| 23145 | int main() |
| 23146 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 23147 | /* Success: exit code 0 */ |
| 23148 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23149 | } |
| 23150 | |
| 23151 | _ACEOF |
| 23152 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23153 | if { (ac_try="$ac_link" |
| 23154 | case "(($ac_try" in |
| 23155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23156 | *) ac_try_echo=$ac_try;; |
| 23157 | esac |
| 23158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23159 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23160 | ac_status=$? |
| 23161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23162 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23163 | { (case "(($ac_try" in |
| 23164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23165 | *) ac_try_echo=$ac_try;; |
| 23166 | esac |
| 23167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23168 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23169 | ac_status=$? |
| 23170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23171 | (exit $ac_status); }; }; then |
| 23172 | ac_cv_wchar_t_signed=yes |
| 23173 | else |
| 23174 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23177 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23178 | ( exit $ac_status ) |
| 23179 | ac_cv_wchar_t_signed=no |
| 23180 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23181 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23182 | fi |
| 23183 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23184 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23185 | fi |
| 23186 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23187 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 23188 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
| 23189 | fi |
| 23190 | |
| 23191 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 23192 | echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; } |
| 23193 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23194 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23195 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23196 | else |
| 23197 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23198 | fi |
| 23199 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23200 | |
| 23201 | if test $enable_unicode = yes |
| 23202 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 23203 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 23204 | case "$have_ucs4_tcl" in |
| 23205 | yes) enable_unicode="ucs4" |
| 23206 | ;; |
| 23207 | *) enable_unicode="ucs2" |
| 23208 | ;; |
| 23209 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23210 | fi |
| 23211 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 23212 | |
| 23213 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23214 | case "$enable_unicode" in |
| 23215 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23216 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23217 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23218 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23219 | |
| 23220 | ;; |
| 23221 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23222 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23223 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23224 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23225 | |
| 23226 | ;; |
| 23227 | esac |
| 23228 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23230 | |
| 23231 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 23232 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23233 | if test "$enable_unicode" = "no" |
| 23234 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 23235 | UNICODE_OBJS="" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23236 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 23237 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23238 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 23239 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23240 | |
| 23241 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23242 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23243 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23244 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 23245 | |
| 23246 | # wchar_t is only usable if it maps to an unsigned type |
| 23247 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 23248 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23249 | then |
| 23250 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23252 | cat >>confdefs.h <<\_ACEOF |
| 23253 | #define HAVE_USABLE_WCHAR_T 1 |
| 23254 | _ACEOF |
| 23255 | |
| 23256 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23257 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23258 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23259 | |
| 23260 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 23261 | then |
| 23262 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23263 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23264 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23265 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23266 | |
| 23267 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 23268 | then |
| 23269 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23270 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23271 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23272 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23273 | |
| 23274 | else |
| 23275 | PY_UNICODE_TYPE="no type found" |
| 23276 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23277 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 23278 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 23279 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23280 | |
| 23281 | # check for endianness |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23282 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 23283 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23284 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 23285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23287 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 23288 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23289 | /* confdefs.h. */ |
| 23290 | _ACEOF |
| 23291 | cat confdefs.h >>conftest.$ac_ext |
| 23292 | cat >>conftest.$ac_ext <<_ACEOF |
| 23293 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23294 | #include <sys/types.h> |
| 23295 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23297 | int |
| 23298 | main () |
| 23299 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23300 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 23301 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23302 | bogus endian macros |
| 23303 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23304 | |
| 23305 | ; |
| 23306 | return 0; |
| 23307 | } |
| 23308 | _ACEOF |
| 23309 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23310 | if { (ac_try="$ac_compile" |
| 23311 | case "(($ac_try" in |
| 23312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23313 | *) ac_try_echo=$ac_try;; |
| 23314 | esac |
| 23315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23316 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23317 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23319 | rm -f conftest.er1 |
| 23320 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23322 | (exit $ac_status); } && { |
| 23323 | test -z "$ac_c_werror_flag" || |
| 23324 | test ! -s conftest.err |
| 23325 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23326 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23328 | /* confdefs.h. */ |
| 23329 | _ACEOF |
| 23330 | cat confdefs.h >>conftest.$ac_ext |
| 23331 | cat >>conftest.$ac_ext <<_ACEOF |
| 23332 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23333 | #include <sys/types.h> |
| 23334 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23336 | int |
| 23337 | main () |
| 23338 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23339 | #if BYTE_ORDER != BIG_ENDIAN |
| 23340 | not big endian |
| 23341 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23342 | |
| 23343 | ; |
| 23344 | return 0; |
| 23345 | } |
| 23346 | _ACEOF |
| 23347 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23348 | if { (ac_try="$ac_compile" |
| 23349 | case "(($ac_try" in |
| 23350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23351 | *) ac_try_echo=$ac_try;; |
| 23352 | esac |
| 23353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23354 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23355 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23357 | rm -f conftest.er1 |
| 23358 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23360 | (exit $ac_status); } && { |
| 23361 | test -z "$ac_c_werror_flag" || |
| 23362 | test ! -s conftest.err |
| 23363 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23364 | ac_cv_c_bigendian=yes |
| 23365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23366 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23368 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23369 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23370 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23371 | |
| 23372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23374 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23376 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23377 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23378 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23379 | # try to guess the endianness by grepping values into an object file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23380 | ac_cv_c_bigendian=unknown |
| 23381 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23382 | /* confdefs.h. */ |
| 23383 | _ACEOF |
| 23384 | cat confdefs.h >>conftest.$ac_ext |
| 23385 | cat >>conftest.$ac_ext <<_ACEOF |
| 23386 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23387 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 23388 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23389 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23390 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 23391 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23392 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23393 | int |
| 23394 | main () |
| 23395 | { |
| 23396 | _ascii (); _ebcdic (); |
| 23397 | ; |
| 23398 | return 0; |
| 23399 | } |
| 23400 | _ACEOF |
| 23401 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23402 | if { (ac_try="$ac_compile" |
| 23403 | case "(($ac_try" in |
| 23404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23405 | *) ac_try_echo=$ac_try;; |
| 23406 | esac |
| 23407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23408 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23409 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23411 | rm -f conftest.er1 |
| 23412 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23414 | (exit $ac_status); } && { |
| 23415 | test -z "$ac_c_werror_flag" || |
| 23416 | test ! -s conftest.err |
| 23417 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23418 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23419 | ac_cv_c_bigendian=yes |
| 23420 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23421 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23422 | if test "$ac_cv_c_bigendian" = unknown; then |
| 23423 | ac_cv_c_bigendian=no |
| 23424 | else |
| 23425 | # finding both strings is unlikely to happen, but who knows? |
| 23426 | ac_cv_c_bigendian=unknown |
| 23427 | fi |
| 23428 | fi |
| 23429 | else |
| 23430 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23432 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23435 | |
| 23436 | 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] | 23437 | else |
| 23438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23439 | /* confdefs.h. */ |
| 23440 | _ACEOF |
| 23441 | cat confdefs.h >>conftest.$ac_ext |
| 23442 | cat >>conftest.$ac_ext <<_ACEOF |
| 23443 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23444 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23445 | int |
| 23446 | main () |
| 23447 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23448 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23449 | /* Are we little or big endian? From Harbison&Steele. */ |
| 23450 | union |
| 23451 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23452 | long int l; |
| 23453 | char c[sizeof (long int)]; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23454 | } u; |
| 23455 | u.l = 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23456 | return u.c[sizeof (long int) - 1] == 1; |
| 23457 | |
| 23458 | ; |
| 23459 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23460 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23461 | _ACEOF |
| 23462 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23463 | if { (ac_try="$ac_link" |
| 23464 | case "(($ac_try" in |
| 23465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23466 | *) ac_try_echo=$ac_try;; |
| 23467 | esac |
| 23468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23469 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23470 | ac_status=$? |
| 23471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23473 | { (case "(($ac_try" in |
| 23474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23475 | *) ac_try_echo=$ac_try;; |
| 23476 | esac |
| 23477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23478 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23479 | ac_status=$? |
| 23480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23481 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23482 | ac_cv_c_bigendian=no |
| 23483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23484 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23488 | ( exit $ac_status ) |
| 23489 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23490 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23491 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23492 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23493 | |
| 23494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23495 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23496 | |
| 23497 | 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] | 23498 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23499 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 23500 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23501 | case $ac_cv_c_bigendian in |
| 23502 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23504 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23505 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23506 | _ACEOF |
| 23507 | ;; |
| 23508 | no) |
| 23509 | ;; |
| 23510 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23511 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23512 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23513 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23514 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 23515 | { (exit 1); exit 1; }; } ;; |
| 23516 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23517 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23518 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23519 | # Check whether right shifting a negative integer extends the sign bit |
| 23520 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23521 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 23522 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23523 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 23524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23525 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23526 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23527 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 23528 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23530 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23531 | /* confdefs.h. */ |
| 23532 | _ACEOF |
| 23533 | cat confdefs.h >>conftest.$ac_ext |
| 23534 | cat >>conftest.$ac_ext <<_ACEOF |
| 23535 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23536 | |
| 23537 | int main() |
| 23538 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23539 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23540 | } |
| 23541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23542 | _ACEOF |
| 23543 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23544 | if { (ac_try="$ac_link" |
| 23545 | case "(($ac_try" in |
| 23546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23547 | *) ac_try_echo=$ac_try;; |
| 23548 | esac |
| 23549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23550 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23551 | ac_status=$? |
| 23552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23553 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23554 | { (case "(($ac_try" in |
| 23555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23556 | *) ac_try_echo=$ac_try;; |
| 23557 | esac |
| 23558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23559 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23560 | ac_status=$? |
| 23561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23562 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23563 | ac_cv_rshift_extends_sign=yes |
| 23564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23565 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23566 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23569 | ( exit $ac_status ) |
| 23570 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23571 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23572 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23573 | fi |
| 23574 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23575 | |
| 23576 | fi |
| 23577 | |
| 23578 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 23579 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 23580 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23581 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23582 | |
| 23583 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23584 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23585 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23586 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23587 | fi |
| 23588 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23589 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23590 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 23591 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23592 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 23593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23594 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23595 | |
| 23596 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23597 | /* confdefs.h. */ |
| 23598 | _ACEOF |
| 23599 | cat confdefs.h >>conftest.$ac_ext |
| 23600 | cat >>conftest.$ac_ext <<_ACEOF |
| 23601 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23602 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23603 | int |
| 23604 | main () |
| 23605 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23606 | |
| 23607 | FILE *f = fopen("/dev/null", "r"); |
| 23608 | flockfile(f); |
| 23609 | getc_unlocked(f); |
| 23610 | funlockfile(f); |
| 23611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23612 | ; |
| 23613 | return 0; |
| 23614 | } |
| 23615 | _ACEOF |
| 23616 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23617 | if { (ac_try="$ac_link" |
| 23618 | case "(($ac_try" in |
| 23619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23620 | *) ac_try_echo=$ac_try;; |
| 23621 | esac |
| 23622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23623 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23624 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23626 | rm -f conftest.er1 |
| 23627 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23629 | (exit $ac_status); } && { |
| 23630 | test -z "$ac_c_werror_flag" || |
| 23631 | test ! -s conftest.err |
| 23632 | } && test -s conftest$ac_exeext && |
| 23633 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23634 | ac_cv_have_getc_unlocked=yes |
| 23635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23636 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23638 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23639 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23640 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23641 | |
| 23642 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23643 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23644 | fi |
| 23645 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23646 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 23647 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23648 | if test "$ac_cv_have_getc_unlocked" = yes |
| 23649 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23650 | |
| 23651 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23652 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23653 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 23654 | |
| 23655 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 23656 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23657 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 23658 | # save the value of LIBS so we don't actually link Python with readline |
| 23659 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23660 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23661 | # On some systems we need to link readline to a termcap compatible |
| 23662 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 23663 | # with setup.py. |
| 23664 | py_cv_lib_readline=no |
| 23665 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 23666 | echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; } |
| 23667 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 23668 | if test -z "$py_libtermcap"; then |
| 23669 | READLINE_LIBS="-lreadline" |
| 23670 | else |
| 23671 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 23672 | fi |
| 23673 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 23674 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23675 | /* confdefs.h. */ |
| 23676 | _ACEOF |
| 23677 | cat confdefs.h >>conftest.$ac_ext |
| 23678 | cat >>conftest.$ac_ext <<_ACEOF |
| 23679 | /* end confdefs.h. */ |
| 23680 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23681 | /* Override any GCC internal prototype to avoid an error. |
| 23682 | Use char because int might match the return type of a GCC |
| 23683 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23684 | #ifdef __cplusplus |
| 23685 | extern "C" |
| 23686 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23687 | char readline (); |
| 23688 | int |
| 23689 | main () |
| 23690 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23691 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23692 | ; |
| 23693 | return 0; |
| 23694 | } |
| 23695 | _ACEOF |
| 23696 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23697 | if { (ac_try="$ac_link" |
| 23698 | case "(($ac_try" in |
| 23699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23700 | *) ac_try_echo=$ac_try;; |
| 23701 | esac |
| 23702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23703 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23704 | ac_status=$? |
| 23705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23706 | rm -f conftest.er1 |
| 23707 | cat conftest.err >&5 |
| 23708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23709 | (exit $ac_status); } && { |
| 23710 | test -z "$ac_c_werror_flag" || |
| 23711 | test ! -s conftest.err |
| 23712 | } && test -s conftest$ac_exeext && |
| 23713 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23714 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23715 | else |
| 23716 | echo "$as_me: failed program was:" >&5 |
| 23717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23718 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23719 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23720 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23721 | |
| 23722 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23723 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23724 | if test $py_cv_lib_readline = yes; then |
| 23725 | break |
| 23726 | fi |
| 23727 | done |
| 23728 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 23729 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 23730 | if test $py_cv_lib_readline = no; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 23731 | { echo "$as_me:$LINENO: result: none" >&5 |
| 23732 | echo "${ECHO_T}none" >&6; } |
| 23733 | else |
| 23734 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 23735 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
| 23736 | |
| 23737 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23738 | #define HAVE_LIBREADLINE 1 |
| 23739 | _ACEOF |
| 23740 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 23741 | fi |
| 23742 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23743 | # check for readline 2.1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23744 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 23745 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; } |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23746 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 23747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23748 | else |
| 23749 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 23750 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23751 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23752 | /* confdefs.h. */ |
| 23753 | _ACEOF |
| 23754 | cat confdefs.h >>conftest.$ac_ext |
| 23755 | cat >>conftest.$ac_ext <<_ACEOF |
| 23756 | /* end confdefs.h. */ |
| 23757 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23758 | /* Override any GCC internal prototype to avoid an error. |
| 23759 | Use char because int might match the return type of a GCC |
| 23760 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23761 | #ifdef __cplusplus |
| 23762 | extern "C" |
| 23763 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23764 | char rl_callback_handler_install (); |
| 23765 | int |
| 23766 | main () |
| 23767 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23768 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23769 | ; |
| 23770 | return 0; |
| 23771 | } |
| 23772 | _ACEOF |
| 23773 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23774 | if { (ac_try="$ac_link" |
| 23775 | case "(($ac_try" in |
| 23776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23777 | *) ac_try_echo=$ac_try;; |
| 23778 | esac |
| 23779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23780 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23781 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23783 | rm -f conftest.er1 |
| 23784 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23786 | (exit $ac_status); } && { |
| 23787 | test -z "$ac_c_werror_flag" || |
| 23788 | test ! -s conftest.err |
| 23789 | } && test -s conftest$ac_exeext && |
| 23790 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23791 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 23792 | else |
| 23793 | echo "$as_me: failed program was:" >&5 |
| 23794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23795 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23796 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23797 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23798 | |
| 23799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23800 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23801 | LIBS=$ac_check_lib_save_LIBS |
| 23802 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23803 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 23804 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23805 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 23806 | |
| 23807 | cat >>confdefs.h <<\_ACEOF |
| 23808 | #define HAVE_RL_CALLBACK 1 |
| 23809 | _ACEOF |
| 23810 | |
| 23811 | fi |
| 23812 | |
| 23813 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23814 | # check for readline 2.2 |
| 23815 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23816 | /* confdefs.h. */ |
| 23817 | _ACEOF |
| 23818 | cat confdefs.h >>conftest.$ac_ext |
| 23819 | cat >>conftest.$ac_ext <<_ACEOF |
| 23820 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23821 | #include <readline/readline.h> |
| 23822 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23823 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23824 | case "(($ac_try" in |
| 23825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23826 | *) ac_try_echo=$ac_try;; |
| 23827 | esac |
| 23828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23829 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23830 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23831 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23832 | rm -f conftest.er1 |
| 23833 | cat conftest.err >&5 |
| 23834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23835 | (exit $ac_status); } >/dev/null && { |
| 23836 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23837 | test ! -s conftest.err |
| 23838 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23839 | have_readline=yes |
| 23840 | else |
| 23841 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23843 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23844 | have_readline=no |
| 23845 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23846 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23847 | rm -f conftest.err conftest.$ac_ext |
| 23848 | if test $have_readline = yes |
| 23849 | then |
| 23850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23851 | /* confdefs.h. */ |
| 23852 | _ACEOF |
| 23853 | cat confdefs.h >>conftest.$ac_ext |
| 23854 | cat >>conftest.$ac_ext <<_ACEOF |
| 23855 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 23856 | #include <readline/readline.h> |
| 23857 | |
| 23858 | _ACEOF |
| 23859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23860 | $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] | 23861 | |
| 23862 | cat >>confdefs.h <<\_ACEOF |
| 23863 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 23864 | _ACEOF |
| 23865 | |
| 23866 | fi |
| 23867 | rm -f conftest* |
| 23868 | |
| 23869 | fi |
| 23870 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23871 | # check for readline 4.0 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23872 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 23873 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23874 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 23875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23877 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 23878 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23879 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23880 | /* confdefs.h. */ |
| 23881 | _ACEOF |
| 23882 | cat confdefs.h >>conftest.$ac_ext |
| 23883 | cat >>conftest.$ac_ext <<_ACEOF |
| 23884 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23885 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23886 | /* Override any GCC internal prototype to avoid an error. |
| 23887 | Use char because int might match the return type of a GCC |
| 23888 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23889 | #ifdef __cplusplus |
| 23890 | extern "C" |
| 23891 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23892 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23893 | int |
| 23894 | main () |
| 23895 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23896 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23897 | ; |
| 23898 | return 0; |
| 23899 | } |
| 23900 | _ACEOF |
| 23901 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23902 | if { (ac_try="$ac_link" |
| 23903 | case "(($ac_try" in |
| 23904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23905 | *) ac_try_echo=$ac_try;; |
| 23906 | esac |
| 23907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23908 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23909 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23911 | rm -f conftest.er1 |
| 23912 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23914 | (exit $ac_status); } && { |
| 23915 | test -z "$ac_c_werror_flag" || |
| 23916 | test ! -s conftest.err |
| 23917 | } && test -s conftest$ac_exeext && |
| 23918 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23919 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23921 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23923 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23924 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23925 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23926 | |
| 23927 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23928 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23929 | LIBS=$ac_check_lib_save_LIBS |
| 23930 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23931 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 23932 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23933 | if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23935 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23936 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23937 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23938 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 23939 | fi |
| 23940 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23941 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 23942 | # also in 4.0 |
| 23943 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 23944 | echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; } |
| 23945 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
| 23946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23947 | else |
| 23948 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 23949 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 23950 | cat >conftest.$ac_ext <<_ACEOF |
| 23951 | /* confdefs.h. */ |
| 23952 | _ACEOF |
| 23953 | cat confdefs.h >>conftest.$ac_ext |
| 23954 | cat >>conftest.$ac_ext <<_ACEOF |
| 23955 | /* end confdefs.h. */ |
| 23956 | |
| 23957 | /* Override any GCC internal prototype to avoid an error. |
| 23958 | Use char because int might match the return type of a GCC |
| 23959 | builtin and then its argument prototype would still apply. */ |
| 23960 | #ifdef __cplusplus |
| 23961 | extern "C" |
| 23962 | #endif |
| 23963 | char rl_completion_display_matches_hook (); |
| 23964 | int |
| 23965 | main () |
| 23966 | { |
| 23967 | return rl_completion_display_matches_hook (); |
| 23968 | ; |
| 23969 | return 0; |
| 23970 | } |
| 23971 | _ACEOF |
| 23972 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23973 | if { (ac_try="$ac_link" |
| 23974 | case "(($ac_try" in |
| 23975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23976 | *) ac_try_echo=$ac_try;; |
| 23977 | esac |
| 23978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23979 | (eval "$ac_link") 2>conftest.er1 |
| 23980 | ac_status=$? |
| 23981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23982 | rm -f conftest.er1 |
| 23983 | cat conftest.err >&5 |
| 23984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23985 | (exit $ac_status); } && { |
| 23986 | test -z "$ac_c_werror_flag" || |
| 23987 | test ! -s conftest.err |
| 23988 | } && test -s conftest$ac_exeext && |
| 23989 | $as_test_x conftest$ac_exeext; then |
| 23990 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 23991 | else |
| 23992 | echo "$as_me: failed program was:" >&5 |
| 23993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23994 | |
| 23995 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 23996 | fi |
| 23997 | |
| 23998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 23999 | conftest$ac_exeext conftest.$ac_ext |
| 24000 | LIBS=$ac_check_lib_save_LIBS |
| 24001 | fi |
| 24002 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 24003 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 24004 | if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then |
| 24005 | |
| 24006 | cat >>confdefs.h <<\_ACEOF |
| 24007 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 24008 | _ACEOF |
| 24009 | |
| 24010 | fi |
| 24011 | |
| 24012 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24013 | # check for readline 4.2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24014 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 24015 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24016 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 24017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 24018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24019 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 24020 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24021 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24022 | /* confdefs.h. */ |
| 24023 | _ACEOF |
| 24024 | cat confdefs.h >>conftest.$ac_ext |
| 24025 | cat >>conftest.$ac_ext <<_ACEOF |
| 24026 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24027 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24028 | /* Override any GCC internal prototype to avoid an error. |
| 24029 | Use char because int might match the return type of a GCC |
| 24030 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24031 | #ifdef __cplusplus |
| 24032 | extern "C" |
| 24033 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24034 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24035 | int |
| 24036 | main () |
| 24037 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24038 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24039 | ; |
| 24040 | return 0; |
| 24041 | } |
| 24042 | _ACEOF |
| 24043 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24044 | if { (ac_try="$ac_link" |
| 24045 | case "(($ac_try" in |
| 24046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24047 | *) ac_try_echo=$ac_try;; |
| 24048 | esac |
| 24049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24050 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24051 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24053 | rm -f conftest.er1 |
| 24054 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24056 | (exit $ac_status); } && { |
| 24057 | test -z "$ac_c_werror_flag" || |
| 24058 | test ! -s conftest.err |
| 24059 | } && test -s conftest$ac_exeext && |
| 24060 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24061 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24062 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24063 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24065 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24066 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24067 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24068 | |
| 24069 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24070 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24071 | LIBS=$ac_check_lib_save_LIBS |
| 24072 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24073 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 24074 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24075 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24077 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24078 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24079 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24080 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 24081 | fi |
| 24082 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24083 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24084 | # also in readline 4.2 |
| 24085 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24086 | /* confdefs.h. */ |
| 24087 | _ACEOF |
| 24088 | cat confdefs.h >>conftest.$ac_ext |
| 24089 | cat >>conftest.$ac_ext <<_ACEOF |
| 24090 | /* end confdefs.h. */ |
| 24091 | #include <readline/readline.h> |
| 24092 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24093 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24094 | case "(($ac_try" in |
| 24095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24096 | *) ac_try_echo=$ac_try;; |
| 24097 | esac |
| 24098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24099 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24100 | ac_status=$? |
| 24101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24102 | rm -f conftest.er1 |
| 24103 | cat conftest.err >&5 |
| 24104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24105 | (exit $ac_status); } >/dev/null && { |
| 24106 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24107 | test ! -s conftest.err |
| 24108 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24109 | have_readline=yes |
| 24110 | else |
| 24111 | echo "$as_me: failed program was:" >&5 |
| 24112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24113 | |
| 24114 | have_readline=no |
| 24115 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24116 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24117 | rm -f conftest.err conftest.$ac_ext |
| 24118 | if test $have_readline = yes |
| 24119 | then |
| 24120 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24121 | /* confdefs.h. */ |
| 24122 | _ACEOF |
| 24123 | cat confdefs.h >>conftest.$ac_ext |
| 24124 | cat >>conftest.$ac_ext <<_ACEOF |
| 24125 | /* end confdefs.h. */ |
| 24126 | #include <readline/readline.h> |
| 24127 | |
| 24128 | _ACEOF |
| 24129 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24130 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 24131 | |
| 24132 | cat >>confdefs.h <<\_ACEOF |
| 24133 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 24134 | _ACEOF |
| 24135 | |
| 24136 | fi |
| 24137 | rm -f conftest* |
| 24138 | |
| 24139 | fi |
| 24140 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 24141 | # End of readline checks: restore LIBS |
| 24142 | LIBS=$LIBS_no_readline |
| 24143 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24144 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 24145 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24146 | if test "${ac_cv_broken_nice+set}" = set; then |
| 24147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24149 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24150 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 24151 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24153 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24154 | /* confdefs.h. */ |
| 24155 | _ACEOF |
| 24156 | cat confdefs.h >>conftest.$ac_ext |
| 24157 | cat >>conftest.$ac_ext <<_ACEOF |
| 24158 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24159 | |
| 24160 | int main() |
| 24161 | { |
| 24162 | int val1 = nice(1); |
| 24163 | if (val1 != -1 && val1 == nice(2)) |
| 24164 | exit(0); |
| 24165 | exit(1); |
| 24166 | } |
| 24167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24168 | _ACEOF |
| 24169 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24170 | if { (ac_try="$ac_link" |
| 24171 | case "(($ac_try" in |
| 24172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24173 | *) ac_try_echo=$ac_try;; |
| 24174 | esac |
| 24175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24176 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24177 | ac_status=$? |
| 24178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24180 | { (case "(($ac_try" in |
| 24181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24182 | *) ac_try_echo=$ac_try;; |
| 24183 | esac |
| 24184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24185 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24186 | ac_status=$? |
| 24187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24188 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24189 | ac_cv_broken_nice=yes |
| 24190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24191 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24192 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24195 | ( exit $ac_status ) |
| 24196 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24197 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24198 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24199 | fi |
| 24200 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24201 | |
| 24202 | fi |
| 24203 | |
| 24204 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 24205 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24206 | if test "$ac_cv_broken_nice" = yes |
| 24207 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24208 | |
| 24209 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24210 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24211 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 24212 | |
| 24213 | fi |
| 24214 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24215 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 24216 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24217 | if test "$cross_compiling" = yes; then |
| 24218 | ac_cv_broken_poll=no |
| 24219 | else |
| 24220 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24221 | /* confdefs.h. */ |
| 24222 | _ACEOF |
| 24223 | cat confdefs.h >>conftest.$ac_ext |
| 24224 | cat >>conftest.$ac_ext <<_ACEOF |
| 24225 | /* end confdefs.h. */ |
| 24226 | |
| 24227 | #include <poll.h> |
| 24228 | |
| 24229 | int main (void) |
| 24230 | { |
| 24231 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 24232 | |
| 24233 | close (42); |
| 24234 | |
| 24235 | int poll_test = poll (&poll_struct, 1, 0); |
| 24236 | |
| 24237 | if (poll_test < 0) |
| 24238 | { |
| 24239 | exit(0); |
| 24240 | } |
| 24241 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 24242 | { |
| 24243 | exit(0); |
| 24244 | } |
| 24245 | else |
| 24246 | { |
| 24247 | exit(1); |
| 24248 | } |
| 24249 | } |
| 24250 | |
| 24251 | _ACEOF |
| 24252 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24253 | if { (ac_try="$ac_link" |
| 24254 | case "(($ac_try" in |
| 24255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24256 | *) ac_try_echo=$ac_try;; |
| 24257 | esac |
| 24258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24259 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24260 | ac_status=$? |
| 24261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24262 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24263 | { (case "(($ac_try" in |
| 24264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24265 | *) ac_try_echo=$ac_try;; |
| 24266 | esac |
| 24267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24268 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24269 | ac_status=$? |
| 24270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24271 | (exit $ac_status); }; }; then |
| 24272 | ac_cv_broken_poll=yes |
| 24273 | else |
| 24274 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24275 | echo "$as_me: failed program was:" >&5 |
| 24276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24277 | |
| 24278 | ( exit $ac_status ) |
| 24279 | ac_cv_broken_poll=no |
| 24280 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24281 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24282 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24283 | |
| 24284 | |
| 24285 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 24286 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24287 | if test "$ac_cv_broken_poll" = yes |
| 24288 | then |
| 24289 | |
| 24290 | cat >>confdefs.h <<\_ACEOF |
| 24291 | #define HAVE_BROKEN_POLL 1 |
| 24292 | _ACEOF |
| 24293 | |
| 24294 | fi |
| 24295 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24296 | # 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] | 24297 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 24298 | # tzname[] |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24299 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 24300 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24301 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 24302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24303 | else |
| 24304 | cat >conftest.$ac_ext <<_ACEOF |
| 24305 | /* confdefs.h. */ |
| 24306 | _ACEOF |
| 24307 | cat confdefs.h >>conftest.$ac_ext |
| 24308 | cat >>conftest.$ac_ext <<_ACEOF |
| 24309 | /* end confdefs.h. */ |
| 24310 | #include <sys/types.h> |
| 24311 | #include <$ac_cv_struct_tm> |
| 24312 | |
| 24313 | |
| 24314 | int |
| 24315 | main () |
| 24316 | { |
| 24317 | static struct tm ac_aggr; |
| 24318 | if (ac_aggr.tm_zone) |
| 24319 | return 0; |
| 24320 | ; |
| 24321 | return 0; |
| 24322 | } |
| 24323 | _ACEOF |
| 24324 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24325 | if { (ac_try="$ac_compile" |
| 24326 | case "(($ac_try" in |
| 24327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24328 | *) ac_try_echo=$ac_try;; |
| 24329 | esac |
| 24330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24331 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24332 | ac_status=$? |
| 24333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24334 | rm -f conftest.er1 |
| 24335 | cat conftest.err >&5 |
| 24336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24337 | (exit $ac_status); } && { |
| 24338 | test -z "$ac_c_werror_flag" || |
| 24339 | test ! -s conftest.err |
| 24340 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24341 | ac_cv_member_struct_tm_tm_zone=yes |
| 24342 | else |
| 24343 | echo "$as_me: failed program was:" >&5 |
| 24344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24345 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24346 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24347 | /* confdefs.h. */ |
| 24348 | _ACEOF |
| 24349 | cat confdefs.h >>conftest.$ac_ext |
| 24350 | cat >>conftest.$ac_ext <<_ACEOF |
| 24351 | /* end confdefs.h. */ |
| 24352 | #include <sys/types.h> |
| 24353 | #include <$ac_cv_struct_tm> |
| 24354 | |
| 24355 | |
| 24356 | int |
| 24357 | main () |
| 24358 | { |
| 24359 | static struct tm ac_aggr; |
| 24360 | if (sizeof ac_aggr.tm_zone) |
| 24361 | return 0; |
| 24362 | ; |
| 24363 | return 0; |
| 24364 | } |
| 24365 | _ACEOF |
| 24366 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24367 | if { (ac_try="$ac_compile" |
| 24368 | case "(($ac_try" in |
| 24369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24370 | *) ac_try_echo=$ac_try;; |
| 24371 | esac |
| 24372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24373 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24374 | ac_status=$? |
| 24375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24376 | rm -f conftest.er1 |
| 24377 | cat conftest.err >&5 |
| 24378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24379 | (exit $ac_status); } && { |
| 24380 | test -z "$ac_c_werror_flag" || |
| 24381 | test ! -s conftest.err |
| 24382 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24383 | ac_cv_member_struct_tm_tm_zone=yes |
| 24384 | else |
| 24385 | echo "$as_me: failed program was:" >&5 |
| 24386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24387 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24388 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24389 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24390 | |
| 24391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24392 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24393 | |
| 24394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24395 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24396 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 24397 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24398 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 24399 | |
| 24400 | cat >>confdefs.h <<_ACEOF |
| 24401 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 24402 | _ACEOF |
| 24403 | |
| 24404 | |
| 24405 | fi |
| 24406 | |
| 24407 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 24408 | |
| 24409 | cat >>confdefs.h <<\_ACEOF |
| 24410 | #define HAVE_TM_ZONE 1 |
| 24411 | _ACEOF |
| 24412 | |
| 24413 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24414 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 24415 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 24416 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 24417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24418 | else |
| 24419 | cat >conftest.$ac_ext <<_ACEOF |
| 24420 | /* confdefs.h. */ |
| 24421 | _ACEOF |
| 24422 | cat confdefs.h >>conftest.$ac_ext |
| 24423 | cat >>conftest.$ac_ext <<_ACEOF |
| 24424 | /* end confdefs.h. */ |
| 24425 | #include <time.h> |
| 24426 | |
| 24427 | int |
| 24428 | main () |
| 24429 | { |
| 24430 | #ifndef tzname |
| 24431 | (void) tzname; |
| 24432 | #endif |
| 24433 | |
| 24434 | ; |
| 24435 | return 0; |
| 24436 | } |
| 24437 | _ACEOF |
| 24438 | rm -f conftest.$ac_objext |
| 24439 | if { (ac_try="$ac_compile" |
| 24440 | case "(($ac_try" in |
| 24441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24442 | *) ac_try_echo=$ac_try;; |
| 24443 | esac |
| 24444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24445 | (eval "$ac_compile") 2>conftest.er1 |
| 24446 | ac_status=$? |
| 24447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24448 | rm -f conftest.er1 |
| 24449 | cat conftest.err >&5 |
| 24450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24451 | (exit $ac_status); } && { |
| 24452 | test -z "$ac_c_werror_flag" || |
| 24453 | test ! -s conftest.err |
| 24454 | } && test -s conftest.$ac_objext; then |
| 24455 | ac_cv_have_decl_tzname=yes |
| 24456 | else |
| 24457 | echo "$as_me: failed program was:" >&5 |
| 24458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24459 | |
| 24460 | ac_cv_have_decl_tzname=no |
| 24461 | fi |
| 24462 | |
| 24463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24464 | fi |
| 24465 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 24466 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 24467 | if test $ac_cv_have_decl_tzname = yes; then |
| 24468 | |
| 24469 | cat >>confdefs.h <<_ACEOF |
| 24470 | #define HAVE_DECL_TZNAME 1 |
| 24471 | _ACEOF |
| 24472 | |
| 24473 | |
| 24474 | else |
| 24475 | cat >>confdefs.h <<_ACEOF |
| 24476 | #define HAVE_DECL_TZNAME 0 |
| 24477 | _ACEOF |
| 24478 | |
| 24479 | |
| 24480 | fi |
| 24481 | |
| 24482 | |
| 24483 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 24484 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24485 | if test "${ac_cv_var_tzname+set}" = set; then |
| 24486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24487 | else |
| 24488 | cat >conftest.$ac_ext <<_ACEOF |
| 24489 | /* confdefs.h. */ |
| 24490 | _ACEOF |
| 24491 | cat confdefs.h >>conftest.$ac_ext |
| 24492 | cat >>conftest.$ac_ext <<_ACEOF |
| 24493 | /* end confdefs.h. */ |
| 24494 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24495 | #if !HAVE_DECL_TZNAME |
| 24496 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24497 | #endif |
| 24498 | |
| 24499 | int |
| 24500 | main () |
| 24501 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24502 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24503 | ; |
| 24504 | return 0; |
| 24505 | } |
| 24506 | _ACEOF |
| 24507 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24508 | if { (ac_try="$ac_link" |
| 24509 | case "(($ac_try" in |
| 24510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24511 | *) ac_try_echo=$ac_try;; |
| 24512 | esac |
| 24513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24514 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24515 | ac_status=$? |
| 24516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24517 | rm -f conftest.er1 |
| 24518 | cat conftest.err >&5 |
| 24519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24520 | (exit $ac_status); } && { |
| 24521 | test -z "$ac_c_werror_flag" || |
| 24522 | test ! -s conftest.err |
| 24523 | } && test -s conftest$ac_exeext && |
| 24524 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24525 | ac_cv_var_tzname=yes |
| 24526 | else |
| 24527 | echo "$as_me: failed program was:" >&5 |
| 24528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24529 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24530 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24531 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24532 | |
| 24533 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24534 | conftest$ac_exeext conftest.$ac_ext |
| 24535 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24536 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 24537 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24538 | if test $ac_cv_var_tzname = yes; then |
| 24539 | |
| 24540 | cat >>confdefs.h <<\_ACEOF |
| 24541 | #define HAVE_TZNAME 1 |
| 24542 | _ACEOF |
| 24543 | |
| 24544 | fi |
| 24545 | fi |
| 24546 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 24547 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24548 | # check tzset(3) exists and works like we expect it to |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24549 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 24550 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24551 | if test "${ac_cv_working_tzset+set}" = set; then |
| 24552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24553 | else |
| 24554 | |
| 24555 | if test "$cross_compiling" = yes; then |
| 24556 | ac_cv_working_tzset=no |
| 24557 | else |
| 24558 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24559 | /* confdefs.h. */ |
| 24560 | _ACEOF |
| 24561 | cat confdefs.h >>conftest.$ac_ext |
| 24562 | cat >>conftest.$ac_ext <<_ACEOF |
| 24563 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24564 | |
| 24565 | #include <stdlib.h> |
| 24566 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24567 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24568 | |
| 24569 | #if HAVE_TZNAME |
| 24570 | extern char *tzname[]; |
| 24571 | #endif |
| 24572 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24573 | int main() |
| 24574 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24575 | /* Note that we need to ensure that not only does tzset(3) |
| 24576 | do 'something' with localtime, but it works as documented |
| 24577 | 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] | 24578 | This includes making sure that tzname is set properly if |
| 24579 | tm->tm_zone does not exist since it is the alternative way |
| 24580 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24581 | |
| 24582 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24583 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24584 | */ |
| 24585 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 24586 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24587 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 24588 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 24589 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24590 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24591 | if (localtime(&groundhogday)->tm_hour != 0) |
| 24592 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24593 | #if HAVE_TZNAME |
| 24594 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 24595 | if (strcmp(tzname[0], "UTC") || |
| 24596 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 24597 | exit(1); |
| 24598 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24599 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 24600 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24601 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24602 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24603 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24604 | #if HAVE_TZNAME |
| 24605 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 24606 | exit(1); |
| 24607 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24608 | |
| 24609 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 24610 | tzset(); |
| 24611 | if (localtime(&groundhogday)->tm_hour != 11) |
| 24612 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24613 | #if HAVE_TZNAME |
| 24614 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 24615 | exit(1); |
| 24616 | #endif |
| 24617 | |
| 24618 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24619 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 24620 | exit(1); |
| 24621 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 24622 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 24623 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 24624 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24625 | exit(0); |
| 24626 | } |
| 24627 | |
| 24628 | _ACEOF |
| 24629 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24630 | if { (ac_try="$ac_link" |
| 24631 | case "(($ac_try" in |
| 24632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24633 | *) ac_try_echo=$ac_try;; |
| 24634 | esac |
| 24635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24636 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24637 | ac_status=$? |
| 24638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24640 | { (case "(($ac_try" in |
| 24641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24642 | *) ac_try_echo=$ac_try;; |
| 24643 | esac |
| 24644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24645 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24646 | ac_status=$? |
| 24647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24648 | (exit $ac_status); }; }; then |
| 24649 | ac_cv_working_tzset=yes |
| 24650 | else |
| 24651 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24654 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24655 | ( exit $ac_status ) |
| 24656 | ac_cv_working_tzset=no |
| 24657 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24658 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24659 | fi |
| 24660 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24661 | |
| 24662 | fi |
| 24663 | |
| 24664 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 24665 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 24666 | if test "$ac_cv_working_tzset" = yes |
| 24667 | then |
| 24668 | |
| 24669 | cat >>confdefs.h <<\_ACEOF |
| 24670 | #define HAVE_WORKING_TZSET 1 |
| 24671 | _ACEOF |
| 24672 | |
| 24673 | fi |
| 24674 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24675 | # Look for subsecond timestamps in struct stat |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24676 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 24677 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24678 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 24679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24680 | else |
| 24681 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24682 | /* confdefs.h. */ |
| 24683 | _ACEOF |
| 24684 | cat confdefs.h >>conftest.$ac_ext |
| 24685 | cat >>conftest.$ac_ext <<_ACEOF |
| 24686 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24687 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24688 | int |
| 24689 | main () |
| 24690 | { |
| 24691 | |
| 24692 | struct stat st; |
| 24693 | st.st_mtim.tv_nsec = 1; |
| 24694 | |
| 24695 | ; |
| 24696 | return 0; |
| 24697 | } |
| 24698 | _ACEOF |
| 24699 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24700 | if { (ac_try="$ac_compile" |
| 24701 | case "(($ac_try" in |
| 24702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24703 | *) ac_try_echo=$ac_try;; |
| 24704 | esac |
| 24705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24706 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24707 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24709 | rm -f conftest.er1 |
| 24710 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24712 | (exit $ac_status); } && { |
| 24713 | test -z "$ac_c_werror_flag" || |
| 24714 | test ! -s conftest.err |
| 24715 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 24716 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24717 | else |
| 24718 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24720 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24721 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24722 | fi |
| 24723 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24725 | fi |
| 24726 | |
| 24727 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 24728 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 24729 | if test "$ac_cv_stat_tv_nsec" = yes |
| 24730 | then |
| 24731 | |
| 24732 | cat >>confdefs.h <<\_ACEOF |
| 24733 | #define HAVE_STAT_TV_NSEC 1 |
| 24734 | _ACEOF |
| 24735 | |
| 24736 | fi |
| 24737 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24738 | # Look for BSD style subsecond timestamps in struct stat |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24739 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 24740 | echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24741 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 24742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24743 | else |
| 24744 | cat >conftest.$ac_ext <<_ACEOF |
| 24745 | /* confdefs.h. */ |
| 24746 | _ACEOF |
| 24747 | cat confdefs.h >>conftest.$ac_ext |
| 24748 | cat >>conftest.$ac_ext <<_ACEOF |
| 24749 | /* end confdefs.h. */ |
| 24750 | #include <sys/stat.h> |
| 24751 | int |
| 24752 | main () |
| 24753 | { |
| 24754 | |
| 24755 | struct stat st; |
| 24756 | st.st_mtimespec.tv_nsec = 1; |
| 24757 | |
| 24758 | ; |
| 24759 | return 0; |
| 24760 | } |
| 24761 | _ACEOF |
| 24762 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24763 | if { (ac_try="$ac_compile" |
| 24764 | case "(($ac_try" in |
| 24765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24766 | *) ac_try_echo=$ac_try;; |
| 24767 | esac |
| 24768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24769 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24770 | ac_status=$? |
| 24771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24772 | rm -f conftest.er1 |
| 24773 | cat conftest.err >&5 |
| 24774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24775 | (exit $ac_status); } && { |
| 24776 | test -z "$ac_c_werror_flag" || |
| 24777 | test ! -s conftest.err |
| 24778 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24779 | ac_cv_stat_tv_nsec2=yes |
| 24780 | else |
| 24781 | echo "$as_me: failed program was:" >&5 |
| 24782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24783 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24784 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24785 | fi |
| 24786 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24788 | fi |
| 24789 | |
| 24790 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 24791 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 24792 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 24793 | then |
| 24794 | |
| 24795 | cat >>confdefs.h <<\_ACEOF |
| 24796 | #define HAVE_STAT_TV_NSEC2 1 |
| 24797 | _ACEOF |
| 24798 | |
| 24799 | fi |
| 24800 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24801 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24802 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 24803 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24804 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 24805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24808 | /* confdefs.h. */ |
| 24809 | _ACEOF |
| 24810 | cat confdefs.h >>conftest.$ac_ext |
| 24811 | cat >>conftest.$ac_ext <<_ACEOF |
| 24812 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24813 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24814 | int |
| 24815 | main () |
| 24816 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24817 | |
| 24818 | int rtn; |
| 24819 | rtn = mvwdelch(0,0,0); |
| 24820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24821 | ; |
| 24822 | return 0; |
| 24823 | } |
| 24824 | _ACEOF |
| 24825 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24826 | if { (ac_try="$ac_compile" |
| 24827 | case "(($ac_try" in |
| 24828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24829 | *) ac_try_echo=$ac_try;; |
| 24830 | esac |
| 24831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24832 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24835 | rm -f conftest.er1 |
| 24836 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24838 | (exit $ac_status); } && { |
| 24839 | test -z "$ac_c_werror_flag" || |
| 24840 | test ! -s conftest.err |
| 24841 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24842 | ac_cv_mvwdelch_is_expression=yes |
| 24843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24844 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24846 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24847 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24848 | fi |
| 24849 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24851 | fi |
| 24852 | |
| 24853 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 24854 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24855 | |
| 24856 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 24857 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24858 | |
| 24859 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24860 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24861 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24862 | |
| 24863 | fi |
| 24864 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24865 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 24866 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24867 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 24868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24870 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24871 | /* confdefs.h. */ |
| 24872 | _ACEOF |
| 24873 | cat confdefs.h >>conftest.$ac_ext |
| 24874 | cat >>conftest.$ac_ext <<_ACEOF |
| 24875 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24876 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24877 | int |
| 24878 | main () |
| 24879 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24880 | |
| 24881 | WINDOW *w; |
| 24882 | w->_flags = 0; |
| 24883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24884 | ; |
| 24885 | return 0; |
| 24886 | } |
| 24887 | _ACEOF |
| 24888 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24889 | if { (ac_try="$ac_compile" |
| 24890 | case "(($ac_try" in |
| 24891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24892 | *) ac_try_echo=$ac_try;; |
| 24893 | esac |
| 24894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24895 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24896 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24898 | rm -f conftest.er1 |
| 24899 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24901 | (exit $ac_status); } && { |
| 24902 | test -z "$ac_c_werror_flag" || |
| 24903 | test ! -s conftest.err |
| 24904 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24905 | ac_cv_window_has_flags=yes |
| 24906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24907 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24910 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24911 | fi |
| 24912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24914 | fi |
| 24915 | |
| 24916 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 24917 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24918 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24919 | |
| 24920 | if test "$ac_cv_window_has_flags" = yes |
| 24921 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24922 | |
| 24923 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24924 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24925 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 24926 | |
| 24927 | fi |
| 24928 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24929 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 24930 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 24931 | cat >conftest.$ac_ext <<_ACEOF |
| 24932 | /* confdefs.h. */ |
| 24933 | _ACEOF |
| 24934 | cat confdefs.h >>conftest.$ac_ext |
| 24935 | cat >>conftest.$ac_ext <<_ACEOF |
| 24936 | /* end confdefs.h. */ |
| 24937 | #include <curses.h> |
| 24938 | int |
| 24939 | main () |
| 24940 | { |
| 24941 | void *x=is_term_resized |
| 24942 | ; |
| 24943 | return 0; |
| 24944 | } |
| 24945 | _ACEOF |
| 24946 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24947 | if { (ac_try="$ac_compile" |
| 24948 | case "(($ac_try" in |
| 24949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24950 | *) ac_try_echo=$ac_try;; |
| 24951 | esac |
| 24952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24953 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 24954 | ac_status=$? |
| 24955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24956 | rm -f conftest.er1 |
| 24957 | cat conftest.err >&5 |
| 24958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24959 | (exit $ac_status); } && { |
| 24960 | test -z "$ac_c_werror_flag" || |
| 24961 | test ! -s conftest.err |
| 24962 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 24963 | |
| 24964 | cat >>confdefs.h <<\_ACEOF |
| 24965 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 24966 | _ACEOF |
| 24967 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24968 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24969 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 24970 | else |
| 24971 | echo "$as_me: failed program was:" >&5 |
| 24972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24973 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24974 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24975 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 24976 | |
| 24977 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 24978 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24980 | |
| 24981 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 24982 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 24983 | cat >conftest.$ac_ext <<_ACEOF |
| 24984 | /* confdefs.h. */ |
| 24985 | _ACEOF |
| 24986 | cat confdefs.h >>conftest.$ac_ext |
| 24987 | cat >>conftest.$ac_ext <<_ACEOF |
| 24988 | /* end confdefs.h. */ |
| 24989 | #include <curses.h> |
| 24990 | int |
| 24991 | main () |
| 24992 | { |
| 24993 | void *x=resize_term |
| 24994 | ; |
| 24995 | return 0; |
| 24996 | } |
| 24997 | _ACEOF |
| 24998 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24999 | if { (ac_try="$ac_compile" |
| 25000 | case "(($ac_try" in |
| 25001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25002 | *) ac_try_echo=$ac_try;; |
| 25003 | esac |
| 25004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25005 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25006 | ac_status=$? |
| 25007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25008 | rm -f conftest.er1 |
| 25009 | cat conftest.err >&5 |
| 25010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25011 | (exit $ac_status); } && { |
| 25012 | test -z "$ac_c_werror_flag" || |
| 25013 | test ! -s conftest.err |
| 25014 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25015 | |
| 25016 | cat >>confdefs.h <<\_ACEOF |
| 25017 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 25018 | _ACEOF |
| 25019 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25020 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25021 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25022 | else |
| 25023 | echo "$as_me: failed program was:" >&5 |
| 25024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25025 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25026 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25027 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25028 | |
| 25029 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25030 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25032 | |
| 25033 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 25034 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25035 | cat >conftest.$ac_ext <<_ACEOF |
| 25036 | /* confdefs.h. */ |
| 25037 | _ACEOF |
| 25038 | cat confdefs.h >>conftest.$ac_ext |
| 25039 | cat >>conftest.$ac_ext <<_ACEOF |
| 25040 | /* end confdefs.h. */ |
| 25041 | #include <curses.h> |
| 25042 | int |
| 25043 | main () |
| 25044 | { |
| 25045 | void *x=resizeterm |
| 25046 | ; |
| 25047 | return 0; |
| 25048 | } |
| 25049 | _ACEOF |
| 25050 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25051 | if { (ac_try="$ac_compile" |
| 25052 | case "(($ac_try" in |
| 25053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25054 | *) ac_try_echo=$ac_try;; |
| 25055 | esac |
| 25056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25057 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25058 | ac_status=$? |
| 25059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25060 | rm -f conftest.er1 |
| 25061 | cat conftest.err >&5 |
| 25062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25063 | (exit $ac_status); } && { |
| 25064 | test -z "$ac_c_werror_flag" || |
| 25065 | test ! -s conftest.err |
| 25066 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25067 | |
| 25068 | cat >>confdefs.h <<\_ACEOF |
| 25069 | #define HAVE_CURSES_RESIZETERM 1 |
| 25070 | _ACEOF |
| 25071 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25072 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25073 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25074 | else |
| 25075 | echo "$as_me: failed program was:" >&5 |
| 25076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25077 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25078 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25079 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25080 | |
| 25081 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 25082 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25084 | |
| 25085 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 25086 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 25087 | |
| 25088 | if test -r /dev/ptmx |
| 25089 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25090 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25091 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 25092 | |
| 25093 | cat >>confdefs.h <<\_ACEOF |
| 25094 | #define HAVE_DEV_PTMX 1 |
| 25095 | _ACEOF |
| 25096 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 25097 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25098 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25099 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 25100 | fi |
| 25101 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25102 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 25103 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 25104 | |
| 25105 | if test -r /dev/ptc |
| 25106 | then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25107 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25108 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 25109 | |
| 25110 | cat >>confdefs.h <<\_ACEOF |
| 25111 | #define HAVE_DEV_PTC 1 |
| 25112 | _ACEOF |
| 25113 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 25114 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25115 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25116 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 25117 | fi |
| 25118 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25119 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 25120 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25121 | if test "$cross_compiling" = yes; then |
| 25122 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 25123 | See \`config.log' for more details." >&5 |
| 25124 | echo "$as_me: error: cannot run test program while cross compiling |
| 25125 | See \`config.log' for more details." >&2;} |
| 25126 | { (exit 1); exit 1; }; } |
| 25127 | else |
| 25128 | cat >conftest.$ac_ext <<_ACEOF |
| 25129 | /* confdefs.h. */ |
| 25130 | _ACEOF |
| 25131 | cat confdefs.h >>conftest.$ac_ext |
| 25132 | cat >>conftest.$ac_ext <<_ACEOF |
| 25133 | /* end confdefs.h. */ |
| 25134 | #include <stdio.h> |
| 25135 | #include <stddef.h> |
| 25136 | #include <string.h> |
| 25137 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 25138 | #ifdef HAVE_SYS_TYPES_H |
| 25139 | #include <sys/types.h> |
| 25140 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 25141 | |
| 25142 | #ifdef HAVE_SSIZE_T |
| 25143 | typedef ssize_t Py_ssize_t; |
| 25144 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 25145 | typedef long Py_ssize_t; |
| 25146 | #else |
| 25147 | typedef int Py_ssize_t; |
| 25148 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25149 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 25150 | int main() |
| 25151 | { |
| 25152 | char buffer[256]; |
| 25153 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25154 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 25155 | return 1; |
| 25156 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 25157 | if (strcmp(buffer, "123")) |
| 25158 | return 1; |
| 25159 | |
| 25160 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 25161 | return 1; |
| 25162 | |
| 25163 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25164 | return 1; |
| 25165 | |
| 25166 | return 0; |
| 25167 | } |
| 25168 | _ACEOF |
| 25169 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25170 | if { (ac_try="$ac_link" |
| 25171 | case "(($ac_try" in |
| 25172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25173 | *) ac_try_echo=$ac_try;; |
| 25174 | esac |
| 25175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25176 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25177 | ac_status=$? |
| 25178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25180 | { (case "(($ac_try" in |
| 25181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25182 | *) ac_try_echo=$ac_try;; |
| 25183 | esac |
| 25184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25185 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25186 | ac_status=$? |
| 25187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25188 | (exit $ac_status); }; }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25189 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 25190 | echo "${ECHO_T}yes" >&6; } |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25191 | |
| 25192 | cat >>confdefs.h <<\_ACEOF |
| 25193 | #define PY_FORMAT_SIZE_T "z" |
| 25194 | _ACEOF |
| 25195 | |
| 25196 | else |
| 25197 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25198 | echo "$as_me: failed program was:" >&5 |
| 25199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25200 | |
| 25201 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25202 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25203 | echo "${ECHO_T}no" >&6; } |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25204 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25205 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 25206 | fi |
| 25207 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25208 | |
| 25209 | |
| 25210 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 25211 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25212 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 25213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25215 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25216 | /* confdefs.h. */ |
| 25217 | _ACEOF |
| 25218 | cat confdefs.h >>conftest.$ac_ext |
| 25219 | cat >>conftest.$ac_ext <<_ACEOF |
| 25220 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 25221 | |
| 25222 | #ifdef HAVE_SYS_TYPES_H |
| 25223 | #include <sys/types.h> |
| 25224 | #endif |
| 25225 | #ifdef HAVE_SYS_SOCKET_H |
| 25226 | #include <sys/socket.h> |
| 25227 | #endif |
| 25228 | |
| 25229 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25230 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25231 | int |
| 25232 | main () |
| 25233 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25234 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25235 | return 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25236 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25237 | return 0; |
| 25238 | ; |
| 25239 | return 0; |
| 25240 | } |
| 25241 | _ACEOF |
| 25242 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25243 | if { (ac_try="$ac_compile" |
| 25244 | case "(($ac_try" in |
| 25245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25246 | *) ac_try_echo=$ac_try;; |
| 25247 | esac |
| 25248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25249 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25250 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25252 | rm -f conftest.er1 |
| 25253 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25255 | (exit $ac_status); } && { |
| 25256 | test -z "$ac_c_werror_flag" || |
| 25257 | test ! -s conftest.err |
| 25258 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 25259 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25261 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25263 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25264 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25266 | |
| 25267 | 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] | 25268 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25269 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 25270 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25271 | if test $ac_cv_type_socklen_t = yes; then |
| 25272 | : |
| 25273 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25274 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 25275 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25276 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25277 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 25278 | |
| 25279 | fi |
| 25280 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25281 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25282 | |
| 25283 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 25284 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 25285 | do |
| 25286 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 25287 | done |
| 25288 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25289 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 25290 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25291 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 25292 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 25293 | for dir in $SRCDIRS; do |
| 25294 | if test ! -d $dir; then |
| 25295 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 25296 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 25297 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25298 | { echo "$as_me:$LINENO: result: done" >&5 |
| 25299 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 25300 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25301 | # generate output files |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25302 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 25303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25304 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25305 | # This file is a shell script that caches the results of configure |
| 25306 | # 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] | 25307 | # scripts and configure runs, see configure's option --config-cache. |
| 25308 | # It is not useful on other systems. If it contains results you don't |
| 25309 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25310 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25311 | # config.status only pays attention to the cache file if you give it |
| 25312 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25313 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25314 | # `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] | 25315 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 25316 | # following values. |
| 25317 | |
| 25318 | _ACEOF |
| 25319 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 25320 | # The following way of writing the cache mishandles newlines in values, |
| 25321 | # but we know of no workaround that is simple, portable, and efficient. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25322 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25323 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 25324 | # and sets the high bit in the cache file unless we assign to the vars. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25325 | ( |
| 25326 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 25327 | eval ac_val=\$$ac_var |
| 25328 | case $ac_val in #( |
| 25329 | *${as_nl}*) |
| 25330 | case $ac_var in #( |
| 25331 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 25332 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 25333 | esac |
| 25334 | case $ac_var in #( |
| 25335 | _ | IFS | as_nl) ;; #( |
| 25336 | *) $as_unset $ac_var ;; |
| 25337 | esac ;; |
| 25338 | esac |
| 25339 | done |
| 25340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25341 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25342 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 25343 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25344 | # `set' does not quote correctly, so add quotes (double-quote |
| 25345 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 25346 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25347 | "s/'/'\\\\''/g; |
| 25348 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25349 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25350 | *) |
| 25351 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25352 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25353 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25354 | esac | |
| 25355 | sort |
| 25356 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25357 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25358 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25359 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25360 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25361 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 25362 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25363 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 25364 | :end' >>confcache |
| 25365 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 25366 | if test -w "$cache_file"; then |
| 25367 | test "x$cache_file" != "x/dev/null" && |
| 25368 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 25369 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25370 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25371 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25372 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 25373 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25374 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25375 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 25376 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 25377 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25378 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 25379 | # Let make expand exec_prefix. |
| 25380 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 25381 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25382 | DEFS=-DHAVE_CONFIG_H |
| 25383 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25384 | ac_libobjs= |
| 25385 | ac_ltlibobjs= |
| 25386 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 25387 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25388 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 25389 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 25390 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 25391 | # will be set to the directory where LIBOBJS objects are built. |
| 25392 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 25393 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25394 | done |
| 25395 | LIBOBJS=$ac_libobjs |
| 25396 | |
| 25397 | LTLIBOBJS=$ac_ltlibobjs |
| 25398 | |
| 25399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25400 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25401 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25402 | ac_clean_files_save=$ac_clean_files |
| 25403 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 25404 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 25405 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 25406 | cat >$CONFIG_STATUS <<_ACEOF |
| 25407 | #! $SHELL |
| 25408 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25409 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25410 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25411 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25413 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25414 | ac_cs_recheck=false |
| 25415 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25416 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 25417 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25419 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25420 | ## --------------------- ## |
| 25421 | ## M4sh Initialization. ## |
| 25422 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25423 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25424 | # Be more Bourne compatible |
| 25425 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25426 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 25427 | emulate sh |
| 25428 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25429 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 25430 | # is contrary to our usage. Disable this feature. |
| 25431 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25432 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25433 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25434 | case `(set -o) 2>/dev/null` in |
| 25435 | *posix*) set -o posix ;; |
| 25436 | esac |
| 25437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25438 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25439 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25441 | |
| 25442 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25443 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25444 | # Avoid depending upon Character Ranges. |
| 25445 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 25446 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 25447 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 25448 | as_cr_digits='0123456789' |
| 25449 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 25450 | |
| 25451 | # The user is always right. |
| 25452 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25453 | echo "#! /bin/sh" >conf$$.sh |
| 25454 | echo "exit 0" >>conf$$.sh |
| 25455 | chmod +x conf$$.sh |
| 25456 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25457 | PATH_SEPARATOR=';' |
| 25458 | else |
| 25459 | PATH_SEPARATOR=: |
| 25460 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25461 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25462 | fi |
| 25463 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25464 | # Support unset when possible. |
| 25465 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 25466 | as_unset=unset |
| 25467 | else |
| 25468 | as_unset=false |
| 25469 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25470 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25471 | |
| 25472 | # IFS |
| 25473 | # We need space, tab and new line, in precisely that order. Quoting is |
| 25474 | # there to prevent editors from complaining about space-tab. |
| 25475 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 25476 | # splitting by setting IFS to empty value.) |
| 25477 | as_nl=' |
| 25478 | ' |
| 25479 | IFS=" "" $as_nl" |
| 25480 | |
| 25481 | # Find who we are. Look in the path if we contain no directory separator. |
| 25482 | case $0 in |
| 25483 | *[\\/]* ) as_myself=$0 ;; |
| 25484 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25485 | for as_dir in $PATH |
| 25486 | do |
| 25487 | IFS=$as_save_IFS |
| 25488 | test -z "$as_dir" && as_dir=. |
| 25489 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 25490 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25491 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25492 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25493 | ;; |
| 25494 | esac |
| 25495 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 25496 | # in which case we are not to be found in the path. |
| 25497 | if test "x$as_myself" = x; then |
| 25498 | as_myself=$0 |
| 25499 | fi |
| 25500 | if test ! -f "$as_myself"; then |
| 25501 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 25502 | { (exit 1); exit 1; } |
| 25503 | fi |
| 25504 | |
| 25505 | # Work around bugs in pre-3.0 UWIN ksh. |
| 25506 | for as_var in ENV MAIL MAILPATH |
| 25507 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 25508 | done |
| 25509 | PS1='$ ' |
| 25510 | PS2='> ' |
| 25511 | PS4='+ ' |
| 25512 | |
| 25513 | # NLS nuisances. |
| 25514 | for as_var in \ |
| 25515 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 25516 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 25517 | LC_TELEPHONE LC_TIME |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25518 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25519 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 25520 | eval $as_var=C; export $as_var |
| 25521 | else |
| 25522 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 25523 | fi |
| 25524 | done |
| 25525 | |
| 25526 | # Required to use basename. |
| 25527 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25528 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 25529 | as_expr=expr |
| 25530 | else |
| 25531 | as_expr=false |
| 25532 | fi |
| 25533 | |
| 25534 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 25535 | as_basename=basename |
| 25536 | else |
| 25537 | as_basename=false |
| 25538 | fi |
| 25539 | |
| 25540 | |
| 25541 | # Name of the executable. |
| 25542 | as_me=`$as_basename -- "$0" || |
| 25543 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 25544 | X"$0" : 'X\(//\)$' \| \ |
| 25545 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 25546 | echo X/"$0" | |
| 25547 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 25548 | s//\1/ |
| 25549 | q |
| 25550 | } |
| 25551 | /^X\/\(\/\/\)$/{ |
| 25552 | s//\1/ |
| 25553 | q |
| 25554 | } |
| 25555 | /^X\/\(\/\).*/{ |
| 25556 | s//\1/ |
| 25557 | q |
| 25558 | } |
| 25559 | s/.*/./; q'` |
| 25560 | |
| 25561 | # CDPATH. |
| 25562 | $as_unset CDPATH |
| 25563 | |
| 25564 | |
| 25565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25566 | as_lineno_1=$LINENO |
| 25567 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25568 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25569 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25570 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25571 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 25572 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25573 | # line-number line after each line using $LINENO; the second 'sed' |
| 25574 | # does the real work. The second script uses 'N' to pair each |
| 25575 | # line-number line with the line containing $LINENO, and appends |
| 25576 | # trailing '-' during substitution so that $LINENO is not a special |
| 25577 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25578 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25579 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 25580 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 25581 | sed -n ' |
| 25582 | p |
| 25583 | /[$]LINENO/= |
| 25584 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25585 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25586 | s/[$]LINENO.*/&-/ |
| 25587 | t lineno |
| 25588 | b |
| 25589 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25590 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25591 | :loop |
| 25592 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25593 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25594 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25595 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25596 | chmod +x "$as_me.lineno" || |
| 25597 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25598 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25600 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 25601 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25602 | # original and so on. Autoconf is especially sensitive to this). |
| 25603 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25604 | # Exit status is that of the last command. |
| 25605 | exit |
| 25606 | } |
| 25607 | |
| 25608 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25609 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 25610 | as_dirname=dirname |
| 25611 | else |
| 25612 | as_dirname=false |
| 25613 | fi |
| 25614 | |
| 25615 | ECHO_C= ECHO_N= ECHO_T= |
| 25616 | case `echo -n x` in |
| 25617 | -n*) |
| 25618 | case `echo 'x\c'` in |
| 25619 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 25620 | *) ECHO_C='\c';; |
| 25621 | esac;; |
| 25622 | *) |
| 25623 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25624 | esac |
| 25625 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25626 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25627 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25628 | as_expr=expr |
| 25629 | else |
| 25630 | as_expr=false |
| 25631 | fi |
| 25632 | |
| 25633 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25634 | if test -d conf$$.dir; then |
| 25635 | rm -f conf$$.dir/conf$$.file |
| 25636 | else |
| 25637 | rm -f conf$$.dir |
| 25638 | mkdir conf$$.dir |
| 25639 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25640 | echo >conf$$.file |
| 25641 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25642 | as_ln_s='ln -s' |
| 25643 | # ... but there are two gotchas: |
| 25644 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 25645 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 25646 | # In both cases, we have to default to `cp -p'. |
| 25647 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25648 | as_ln_s='cp -p' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25649 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 25650 | as_ln_s=ln |
| 25651 | else |
| 25652 | as_ln_s='cp -p' |
| 25653 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25654 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 25655 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25656 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25657 | if mkdir -p . 2>/dev/null; then |
| 25658 | as_mkdir_p=: |
| 25659 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25660 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25661 | as_mkdir_p=false |
| 25662 | fi |
| 25663 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25664 | if test -x / >/dev/null 2>&1; then |
| 25665 | as_test_x='test -x' |
| 25666 | else |
| 25667 | if ls -dL / >/dev/null 2>&1; then |
| 25668 | as_ls_L_option=L |
| 25669 | else |
| 25670 | as_ls_L_option= |
| 25671 | fi |
| 25672 | as_test_x=' |
| 25673 | eval sh -c '\'' |
| 25674 | if test -d "$1"; then |
| 25675 | test -d "$1/."; |
| 25676 | else |
| 25677 | case $1 in |
| 25678 | -*)set "./$1";; |
| 25679 | esac; |
| 25680 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 25681 | ???[sx]*):;;*)false;;esac;fi |
| 25682 | '\'' sh |
| 25683 | ' |
| 25684 | fi |
| 25685 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25686 | |
| 25687 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25688 | 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] | 25689 | |
| 25690 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25691 | 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] | 25692 | |
| 25693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25694 | exec 6>&1 |
| 25695 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25696 | # 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] | 25697 | # report actual input values of CONFIG_FILES etc. instead of their |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25698 | # values after options handling. |
| 25699 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 25700 | This file was extended by python $as_me 2.7, which was |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25701 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25702 | |
| 25703 | CONFIG_FILES = $CONFIG_FILES |
| 25704 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 25705 | CONFIG_LINKS = $CONFIG_LINKS |
| 25706 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 25707 | $ $0 $@ |
| 25708 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25709 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 25710 | " |
| 25711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25712 | _ACEOF |
| 25713 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25714 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25715 | # Files that config.status was made for. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25716 | config_files="$ac_config_files" |
| 25717 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25718 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25719 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25720 | |
| 25721 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25722 | ac_cs_usage="\ |
| 25723 | \`$as_me' instantiates files from templates according to the |
| 25724 | current configuration. |
| 25725 | |
| 25726 | Usage: $0 [OPTIONS] [FILE]... |
| 25727 | |
| 25728 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25729 | -V, --version print version number and configuration settings, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25730 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25731 | -d, --debug don't remove temporary files |
| 25732 | --recheck update $as_me by reconfiguring in the same conditions |
| 25733 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25734 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25735 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25736 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25737 | |
| 25738 | Configuration files: |
| 25739 | $config_files |
| 25740 | |
| 25741 | Configuration headers: |
| 25742 | $config_headers |
| 25743 | |
| 25744 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25745 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25746 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25747 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25748 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 25749 | python config.status 2.7 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25750 | configured by $0, generated by GNU Autoconf 2.61, |
| 25751 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25752 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25753 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25754 | This config.status script is free software; the Free Software Foundation |
| 25755 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25756 | |
| 25757 | ac_pwd='$ac_pwd' |
| 25758 | srcdir='$srcdir' |
| 25759 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25760 | _ACEOF |
| 25761 | |
| 25762 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25763 | # If no file are specified by the user, then we need to provide default |
| 25764 | # value. By we need to know if files were specified by the user. |
| 25765 | ac_need_defaults=: |
| 25766 | while test $# != 0 |
| 25767 | do |
| 25768 | case $1 in |
| 25769 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25770 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 25771 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25772 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25773 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25774 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25775 | ac_option=$1 |
| 25776 | ac_optarg=$2 |
| 25777 | ac_shift=shift |
| 25778 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25779 | esac |
| 25780 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25781 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25782 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25783 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 25784 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25785 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 25786 | echo "$ac_cs_version"; exit ;; |
| 25787 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25788 | debug=: ;; |
| 25789 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25790 | $ac_shift |
| 25791 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25792 | ac_need_defaults=false;; |
| 25793 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25794 | $ac_shift |
| 25795 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25796 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25797 | --he | --h) |
| 25798 | # Conflict between --help and --header |
| 25799 | { echo "$as_me: error: ambiguous option: $1 |
| 25800 | Try \`$0 --help' for more information." >&2 |
| 25801 | { (exit 1); exit 1; }; };; |
| 25802 | --help | --hel | -h ) |
| 25803 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25804 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 25805 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 25806 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25807 | |
| 25808 | # This is an error. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25809 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 25810 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25811 | { (exit 1); exit 1; }; } ;; |
| 25812 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25813 | *) ac_config_targets="$ac_config_targets $1" |
| 25814 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25815 | |
| 25816 | esac |
| 25817 | shift |
| 25818 | done |
| 25819 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25820 | ac_configure_extra_args= |
| 25821 | |
| 25822 | if $ac_cs_silent; then |
| 25823 | exec 6>/dev/null |
| 25824 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 25825 | fi |
| 25826 | |
| 25827 | _ACEOF |
| 25828 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25829 | if \$ac_cs_recheck; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25830 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 25831 | CONFIG_SHELL=$SHELL |
| 25832 | export CONFIG_SHELL |
| 25833 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25834 | fi |
| 25835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25836 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25837 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25838 | exec 5>>config.log |
| 25839 | { |
| 25840 | echo |
| 25841 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 25842 | ## Running $as_me. ## |
| 25843 | _ASBOX |
| 25844 | echo "$ac_log" |
| 25845 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25846 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25847 | _ACEOF |
| 25848 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25849 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25850 | |
| 25851 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25852 | |
| 25853 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25854 | for ac_config_target in $ac_config_targets |
| 25855 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25856 | case $ac_config_target in |
| 25857 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 25858 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 25859 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 25860 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 25861 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 25862 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25863 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 25864 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 25865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25866 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 25867 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 25868 | { (exit 1); exit 1; }; };; |
| 25869 | esac |
| 25870 | done |
| 25871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25873 | # If the user did not use the arguments to specify the items to instantiate, |
| 25874 | # then the envvar interface is used. Set only those that are not. |
| 25875 | # We use the long form for the default assignment because of an extremely |
| 25876 | # bizarre bug on SunOS 4.1.3. |
| 25877 | if $ac_need_defaults; then |
| 25878 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 25879 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 25880 | fi |
| 25881 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25882 | # Have a temporary directory for convenience. Make it in the build tree |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25883 | # 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] | 25884 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25885 | # Hook for its removal unless debugging. |
| 25886 | # Note that there is a small window in which the directory will not be cleaned: |
| 25887 | # 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] | 25888 | $debug || |
| 25889 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25890 | tmp= |
| 25891 | trap 'exit_status=$? |
| 25892 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 25893 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25894 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 25895 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25896 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25898 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25899 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25900 | test -n "$tmp" && test -d "$tmp" |
| 25901 | } || |
| 25902 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25903 | tmp=./conf$$-$RANDOM |
| 25904 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25905 | } || |
| 25906 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25907 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25908 | { (exit 1); exit 1; } |
| 25909 | } |
| 25910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25911 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25912 | # Set up the sed scripts for CONFIG_FILES section. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25913 | # |
| 25914 | |
| 25915 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 25916 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25917 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25918 | |
| 25919 | _ACEOF |
| 25920 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25921 | |
| 25922 | |
| 25923 | ac_delim='%!_!# ' |
| 25924 | for ac_last_try in false false false false false :; do |
| 25925 | cat >conf$$subs.sed <<_ACEOF |
| 25926 | SHELL!$SHELL$ac_delim |
| 25927 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 25928 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 25929 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 25930 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 25931 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 25932 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 25933 | exec_prefix!$exec_prefix$ac_delim |
| 25934 | prefix!$prefix$ac_delim |
| 25935 | program_transform_name!$program_transform_name$ac_delim |
| 25936 | bindir!$bindir$ac_delim |
| 25937 | sbindir!$sbindir$ac_delim |
| 25938 | libexecdir!$libexecdir$ac_delim |
| 25939 | datarootdir!$datarootdir$ac_delim |
| 25940 | datadir!$datadir$ac_delim |
| 25941 | sysconfdir!$sysconfdir$ac_delim |
| 25942 | sharedstatedir!$sharedstatedir$ac_delim |
| 25943 | localstatedir!$localstatedir$ac_delim |
| 25944 | includedir!$includedir$ac_delim |
| 25945 | oldincludedir!$oldincludedir$ac_delim |
| 25946 | docdir!$docdir$ac_delim |
| 25947 | infodir!$infodir$ac_delim |
| 25948 | htmldir!$htmldir$ac_delim |
| 25949 | dvidir!$dvidir$ac_delim |
| 25950 | pdfdir!$pdfdir$ac_delim |
| 25951 | psdir!$psdir$ac_delim |
| 25952 | libdir!$libdir$ac_delim |
| 25953 | localedir!$localedir$ac_delim |
| 25954 | mandir!$mandir$ac_delim |
| 25955 | DEFS!$DEFS$ac_delim |
| 25956 | ECHO_C!$ECHO_C$ac_delim |
| 25957 | ECHO_N!$ECHO_N$ac_delim |
| 25958 | ECHO_T!$ECHO_T$ac_delim |
| 25959 | LIBS!$LIBS$ac_delim |
| 25960 | build_alias!$build_alias$ac_delim |
| 25961 | host_alias!$host_alias$ac_delim |
| 25962 | target_alias!$target_alias$ac_delim |
| 25963 | VERSION!$VERSION$ac_delim |
| 25964 | SOVERSION!$SOVERSION$ac_delim |
| 25965 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 25966 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 25967 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25968 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 25969 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25970 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 25971 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 25972 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 25973 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 25974 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 25975 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 25976 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 25977 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 25978 | MACHDEP!$MACHDEP$ac_delim |
| 25979 | SGI_ABI!$SGI_ABI$ac_delim |
| 25980 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 25981 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 25982 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 25983 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 25984 | CC!$CC$ac_delim |
| 25985 | CFLAGS!$CFLAGS$ac_delim |
| 25986 | LDFLAGS!$LDFLAGS$ac_delim |
| 25987 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 25988 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 25989 | EXEEXT!$EXEEXT$ac_delim |
| 25990 | OBJEXT!$OBJEXT$ac_delim |
| 25991 | CXX!$CXX$ac_delim |
| 25992 | MAINCC!$MAINCC$ac_delim |
| 25993 | CPP!$CPP$ac_delim |
| 25994 | GREP!$GREP$ac_delim |
| 25995 | EGREP!$EGREP$ac_delim |
| 25996 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 25997 | LIBRARY!$LIBRARY$ac_delim |
| 25998 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 25999 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 26000 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 26001 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 26002 | INSTSONAME!$INSTSONAME$ac_delim |
| 26003 | RUNSHARED!$RUNSHARED$ac_delim |
| 26004 | LINKCC!$LINKCC$ac_delim |
| 26005 | RANLIB!$RANLIB$ac_delim |
| 26006 | AR!$AR$ac_delim |
| 26007 | SVNVERSION!$SVNVERSION$ac_delim |
| 26008 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 26009 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 26010 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 26011 | LN!$LN$ac_delim |
| 26012 | OPT!$OPT$ac_delim |
| 26013 | BASECFLAGS!$BASECFLAGS$ac_delim |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 26014 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26015 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 26016 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 26017 | SO!$SO$ac_delim |
| 26018 | LDSHARED!$LDSHARED$ac_delim |
| 26019 | BLDSHARED!$BLDSHARED$ac_delim |
| 26020 | CCSHARED!$CCSHARED$ac_delim |
| 26021 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 26022 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26023 | _ACEOF |
| 26024 | |
| 26025 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 26026 | break |
| 26027 | elif $ac_last_try; then |
| 26028 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26029 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 26030 | { (exit 1); exit 1; }; } |
| 26031 | else |
| 26032 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26033 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26034 | done |
| 26035 | |
| 26036 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 26037 | if test -n "$ac_eof"; then |
| 26038 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 26039 | ac_eof=`expr $ac_eof + 1` |
| 26040 | fi |
| 26041 | |
| 26042 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26043 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 26044 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 26045 | _ACEOF |
| 26046 | sed ' |
| 26047 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 26048 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 26049 | :n |
| 26050 | t n |
| 26051 | s/'"$ac_delim"'$/,g/; t |
| 26052 | s/$/\\/; p |
| 26053 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 26054 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 26055 | rm -f conf$$subs.sed |
| 26056 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26057 | CEOF$ac_eof |
| 26058 | _ACEOF |
| 26059 | |
| 26060 | |
| 26061 | ac_delim='%!_!# ' |
| 26062 | for ac_last_try in false false false false false :; do |
| 26063 | cat >conf$$subs.sed <<_ACEOF |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 26064 | SHLIBS!$SHLIBS$ac_delim |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 26065 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 26066 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26067 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 26068 | LDLAST!$LDLAST$ac_delim |
| 26069 | THREADOBJ!$THREADOBJ$ac_delim |
| 26070 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 26071 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 26072 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 26073 | TRUE!$TRUE$ac_delim |
| 26074 | LIBOBJS!$LIBOBJS$ac_delim |
| 26075 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 26076 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 26077 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 26078 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 26079 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 26080 | LIBM!$LIBM$ac_delim |
| 26081 | LIBC!$LIBC$ac_delim |
| 26082 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 26083 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 26084 | SRCDIRS!$SRCDIRS$ac_delim |
| 26085 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 26086 | _ACEOF |
| 26087 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 26088 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26089 | break |
| 26090 | elif $ac_last_try; then |
| 26091 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 26092 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 26093 | { (exit 1); exit 1; }; } |
| 26094 | else |
| 26095 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 26096 | fi |
| 26097 | done |
| 26098 | |
| 26099 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 26100 | if test -n "$ac_eof"; then |
| 26101 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 26102 | ac_eof=`expr $ac_eof + 1` |
| 26103 | fi |
| 26104 | |
| 26105 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26106 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 26107 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 26108 | _ACEOF |
| 26109 | sed ' |
| 26110 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 26111 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 26112 | :n |
| 26113 | t n |
| 26114 | s/'"$ac_delim"'$/,g/; t |
| 26115 | s/$/\\/; p |
| 26116 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 26117 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 26118 | rm -f conf$$subs.sed |
| 26119 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26120 | :end |
| 26121 | s/|#_!!_#|//g |
| 26122 | CEOF$ac_eof |
| 26123 | _ACEOF |
| 26124 | |
| 26125 | |
| 26126 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 26127 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 26128 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 26129 | # (actually we leave an empty line to preserve line numbers). |
| 26130 | if test "x$srcdir" = x.; then |
| 26131 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 26132 | s/:*\$(srcdir):*/:/ |
| 26133 | s/:*\${srcdir}:*/:/ |
| 26134 | s/:*@srcdir@:*/:/ |
| 26135 | s/^\([^=]*=[ ]*\):*/\1/ |
| 26136 | s/:*$// |
| 26137 | s/^[^=]*=[ ]*$// |
| 26138 | }' |
| 26139 | fi |
| 26140 | |
| 26141 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26142 | fi # test -n "$CONFIG_FILES" |
| 26143 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26144 | |
| 26145 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
| 26146 | do |
| 26147 | case $ac_tag in |
| 26148 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 26149 | esac |
| 26150 | case $ac_mode$ac_tag in |
| 26151 | :[FHL]*:*);; |
| 26152 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 26153 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 26154 | { (exit 1); exit 1; }; };; |
| 26155 | :[FH]-) ac_tag=-:-;; |
| 26156 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 26157 | esac |
| 26158 | ac_save_IFS=$IFS |
| 26159 | IFS=: |
| 26160 | set x $ac_tag |
| 26161 | IFS=$ac_save_IFS |
| 26162 | shift |
| 26163 | ac_file=$1 |
| 26164 | shift |
| 26165 | |
| 26166 | case $ac_mode in |
| 26167 | :L) ac_source=$1;; |
| 26168 | :[FH]) |
| 26169 | ac_file_inputs= |
| 26170 | for ac_f |
| 26171 | do |
| 26172 | case $ac_f in |
| 26173 | -) ac_f="$tmp/stdin";; |
| 26174 | *) # Look for the file first in the build tree, then in the source tree |
| 26175 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 26176 | # because $ac_f cannot contain `:'. |
| 26177 | test -f "$ac_f" || |
| 26178 | case $ac_f in |
| 26179 | [\\/$]*) false;; |
| 26180 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 26181 | esac || |
| 26182 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 26183 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 26184 | { (exit 1); exit 1; }; };; |
| 26185 | esac |
| 26186 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 26187 | done |
| 26188 | |
| 26189 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 26190 | # use $as_me), people would be surprised to read: |
| 26191 | # /* config.h. Generated by config.status. */ |
| 26192 | configure_input="Generated from "`IFS=: |
| 26193 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 26194 | if test x"$ac_file" != x-; then |
| 26195 | configure_input="$ac_file. $configure_input" |
| 26196 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 26197 | echo "$as_me: creating $ac_file" >&6;} |
| 26198 | fi |
| 26199 | |
| 26200 | case $ac_tag in |
| 26201 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 26202 | esac |
| 26203 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26204 | esac |
| 26205 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26206 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26207 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26208 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 26209 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26210 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26211 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26212 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26213 | s//\1/ |
| 26214 | q |
| 26215 | } |
| 26216 | /^X\(\/\/\)[^/].*/{ |
| 26217 | s//\1/ |
| 26218 | q |
| 26219 | } |
| 26220 | /^X\(\/\/\)$/{ |
| 26221 | s//\1/ |
| 26222 | q |
| 26223 | } |
| 26224 | /^X\(\/\).*/{ |
| 26225 | s//\1/ |
| 26226 | q |
| 26227 | } |
| 26228 | s/.*/./; q'` |
| 26229 | { as_dir="$ac_dir" |
| 26230 | case $as_dir in #( |
| 26231 | -*) as_dir=./$as_dir;; |
| 26232 | esac |
| 26233 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26234 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26235 | while :; do |
| 26236 | case $as_dir in #( |
| 26237 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 26238 | *) as_qdir=$as_dir;; |
| 26239 | esac |
| 26240 | as_dirs="'$as_qdir' $as_dirs" |
| 26241 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26242 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26243 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26244 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26245 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26246 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26247 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26248 | s//\1/ |
| 26249 | q |
| 26250 | } |
| 26251 | /^X\(\/\/\)[^/].*/{ |
| 26252 | s//\1/ |
| 26253 | q |
| 26254 | } |
| 26255 | /^X\(\/\/\)$/{ |
| 26256 | s//\1/ |
| 26257 | q |
| 26258 | } |
| 26259 | /^X\(\/\).*/{ |
| 26260 | s//\1/ |
| 26261 | q |
| 26262 | } |
| 26263 | s/.*/./; q'` |
| 26264 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26265 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26266 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 26267 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 26268 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26269 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26270 | ac_builddir=. |
| 26271 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26272 | case "$ac_dir" in |
| 26273 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26274 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26275 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26276 | # A ".." for each directory in $ac_dir_suffix. |
| 26277 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 26278 | case $ac_top_builddir_sub in |
| 26279 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26280 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 26281 | esac ;; |
| 26282 | esac |
| 26283 | ac_abs_top_builddir=$ac_pwd |
| 26284 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 26285 | # for backward compatibility: |
| 26286 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26287 | |
| 26288 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26289 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26290 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26291 | ac_top_srcdir=$ac_top_builddir_sub |
| 26292 | ac_abs_top_srcdir=$ac_pwd ;; |
| 26293 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26294 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26295 | ac_top_srcdir=$srcdir |
| 26296 | ac_abs_top_srcdir=$srcdir ;; |
| 26297 | *) # Relative name. |
| 26298 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 26299 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 26300 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26301 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26302 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26304 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26305 | case $ac_mode in |
| 26306 | :F) |
| 26307 | # |
| 26308 | # CONFIG_FILE |
| 26309 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26310 | |
| 26311 | case $INSTALL in |
| 26312 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26313 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26314 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 26315 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26316 | |
| 26317 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26318 | # If the template does not know about datarootdir, expand it. |
| 26319 | # FIXME: This hack should be removed a few years after 2.60. |
| 26320 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 26321 | |
| 26322 | case `sed -n '/datarootdir/ { |
| 26323 | p |
| 26324 | q |
| 26325 | } |
| 26326 | /@datadir@/p |
| 26327 | /@docdir@/p |
| 26328 | /@infodir@/p |
| 26329 | /@localedir@/p |
| 26330 | /@mandir@/p |
| 26331 | ' $ac_file_inputs` in |
| 26332 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 26333 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 26334 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 26335 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 26336 | _ACEOF |
| 26337 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26338 | ac_datarootdir_hack=' |
| 26339 | s&@datadir@&$datadir&g |
| 26340 | s&@docdir@&$docdir&g |
| 26341 | s&@infodir@&$infodir&g |
| 26342 | s&@localedir@&$localedir&g |
| 26343 | s&@mandir@&$mandir&g |
| 26344 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 26345 | esac |
| 26346 | _ACEOF |
| 26347 | |
| 26348 | # Neutralize VPATH when `$srcdir' = `.'. |
| 26349 | # Shell code in configure.ac might set extrasub. |
| 26350 | # FIXME: do we really want to maintain this feature? |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 26351 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26352 | sed "$ac_vpsub |
| 26353 | $extrasub |
| 26354 | _ACEOF |
| 26355 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26356 | :t |
| 26357 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26358 | s&@configure_input@&$configure_input&;t t |
| 26359 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 26360 | s&@srcdir@&$ac_srcdir&;t t |
| 26361 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 26362 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 26363 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 26364 | s&@builddir@&$ac_builddir&;t t |
| 26365 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 26366 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 26367 | s&@INSTALL@&$ac_INSTALL&;t t |
| 26368 | $ac_datarootdir_hack |
| 26369 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26370 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26371 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 26372 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 26373 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 26374 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 26375 | which seems to be undefined. Please make sure it is defined." >&5 |
| 26376 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 26377 | which seems to be undefined. Please make sure it is defined." >&2;} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26378 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26379 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26380 | case $ac_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26381 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 26382 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26383 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26384 | ;; |
| 26385 | :H) |
| 26386 | # |
| 26387 | # CONFIG_HEADER |
| 26388 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26389 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26390 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26391 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 26392 | # substitutes the proper values into config.h.in to produce config.h. |
| 26393 | rm -f conftest.defines conftest.tail |
| 26394 | # First, append a space to every undef/define line, to ease matching. |
| 26395 | echo 's/$/ /' >conftest.defines |
| 26396 | # Then, protect against being on the right side of a sed subst, or in |
| 26397 | # an unquoted here document, in config.status. If some macros were |
| 26398 | # called several times there might be several #defines for the same |
| 26399 | # symbol, which is useless. But do not sort them, since the last |
| 26400 | # AC_DEFINE must be honored. |
| 26401 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 26402 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 26403 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 26404 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 26405 | # just an empty string. |
| 26406 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 26407 | ac_dB='\\)[ (].*,\\1define\\2' |
| 26408 | ac_dC=' ' |
| 26409 | ac_dD=' ,' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26410 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26411 | uniq confdefs.h | |
| 26412 | sed -n ' |
| 26413 | t rset |
| 26414 | :rset |
| 26415 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 26416 | t ok |
| 26417 | d |
| 26418 | :ok |
| 26419 | s/[\\&,]/\\&/g |
| 26420 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 26421 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 26422 | ' >>conftest.defines |
| 26423 | |
| 26424 | # Remove the space that was appended to ease matching. |
| 26425 | # Then replace #undef with comments. This is necessary, for |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26426 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 26427 | # on some systems where configure will not decide to define it. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26428 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 26429 | echo 's/ $// |
| 26430 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 26431 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26432 | # Break up conftest.defines: |
| 26433 | ac_max_sed_lines=50 |
| 26434 | |
| 26435 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 26436 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 26437 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 26438 | # et cetera. |
| 26439 | ac_in='$ac_file_inputs' |
| 26440 | ac_out='"$tmp/out1"' |
| 26441 | ac_nxt='"$tmp/out2"' |
| 26442 | |
| 26443 | while : |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 26444 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26445 | # Write a here document: |
| 26446 | cat >>$CONFIG_STATUS <<_ACEOF |
| 26447 | # First, check the format of the line: |
| 26448 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 26449 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 26450 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 26451 | b |
| 26452 | :def |
| 26453 | _ACEOF |
| 26454 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26455 | echo 'CEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26456 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 26457 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 26458 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 26459 | grep . conftest.tail >/dev/null || break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26460 | rm -f conftest.defines |
| 26461 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26462 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26463 | rm -f conftest.defines conftest.tail |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26464 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26465 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26466 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26467 | if test x"$ac_file" != x-; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26468 | echo "/* $configure_input */" >"$tmp/config.h" |
| 26469 | cat "$ac_result" >>"$tmp/config.h" |
| 26470 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26471 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 26472 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 26473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26474 | rm -f $ac_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26475 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26476 | fi |
| 26477 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26478 | echo "/* $configure_input */" |
| 26479 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26480 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26481 | rm -f "$tmp/out12" |
| 26482 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 26483 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26484 | |
| 26485 | esac |
| 26486 | |
| 26487 | done # for ac_tag |
| 26488 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26490 | { (exit 0); exit 0; } |
| 26491 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 26492 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26493 | ac_clean_files=$ac_clean_files_save |
| 26494 | |
| 26495 | |
| 26496 | # configure is writing to config.log, and then calls config.status. |
| 26497 | # config.status does its own redirection, appending to config.log. |
| 26498 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 26499 | # by configure, so config.status won't be able to write to it; its |
| 26500 | # output is simply discarded. So we exec the FD to /dev/null, |
| 26501 | # effectively closing config.log, so it can be properly (re)opened and |
| 26502 | # appended to by config.status. When coming back to configure, we |
| 26503 | # need to make the FD available again. |
| 26504 | if test "$no_create" != yes; then |
| 26505 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26506 | ac_config_status_args= |
| 26507 | test "$silent" = yes && |
| 26508 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26509 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26510 | $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] | 26511 | exec 5>>config.log |
| 26512 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 26513 | # would make configure fail if this is the last instruction. |
| 26514 | $ac_cs_success || { (exit 1); exit 1; } |
| 26515 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 26516 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26517 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 26518 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26519 | if test ! -f Modules/Setup |
| 26520 | then |
| 26521 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 26522 | fi |
| 26523 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 26524 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 26525 | if test ! -f Modules/Setup.local |
| 26526 | then |
| 26527 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 26528 | fi |
| 26529 | |
| 26530 | echo "creating Makefile" |
| 26531 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 26532 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 26533 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 26534 | |
| 26535 | case $ac_sys_system in |
| 26536 | BeOS) |
| 26537 | { echo "$as_me:$LINENO: WARNING: |
| 26538 | |
| 26539 | Support for BeOS is deprecated as of Python 2.6. |
| 26540 | See PEP 11 for the gory details. |
| 26541 | " >&5 |
| 26542 | echo "$as_me: WARNING: |
| 26543 | |
| 26544 | Support for BeOS is deprecated as of Python 2.6. |
| 26545 | See PEP 11 for the gory details. |
| 26546 | " >&2;} |
| 26547 | ;; |
| 26548 | *) ;; |
| 26549 | esac |
| 26550 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 26551 | mv config.c Modules |